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,usenames,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
175 \default_output_format pdf2
177 \bibtex_command default
178 \index_command default
182 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
183 \pdf_author "LyX Team, Uwe Stöhr"
184 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
185 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
187 \pdf_bookmarksnumbered true
188 \pdf_bookmarksopen true
189 \pdf_bookmarksopenlevel 1
190 \pdf_breaklinks false
194 \pdf_pdfusetitle false
195 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
198 \use_package amsmath 2
199 \use_package amssymb 2
200 \use_package cancel 0
202 \use_package mathdots 1
203 \use_package mathtools 0
204 \use_package mhchem 1
205 \use_package stackrel 0
206 \use_package stmaryrd 0
207 \use_package undertilde 0
209 \cite_engine_type default
213 \paperorientation portrait
217 \notefontcolor #0000ff
224 \paragraph_separation skip
226 \quotes_language english
229 \paperpagestyle default
230 \tracking_changes false
231 \output_changes false
234 \html_be_strict false
241 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
245 by the \SpecialChar LyX
250 \begin_layout Plain Layout
252 If you have comments or error corrections, please send them to the \SpecialChar LyX
255 \begin_inset CommandInset href
257 name "lyx-docs@lists.lyx.org"
258 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
269 \begin_inset Note Note
272 \begin_layout Plain Layout
279 \begin_inset Newline newline
283 \begin_inset Newline newline
291 \begin_layout Standard
292 \begin_inset CommandInset toc
293 LatexCommand tableofcontents
300 \begin_layout Standard
301 \begin_inset Note Note
304 \begin_layout Plain Layout
305 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
316 diagbox, lettrine, marginnote, picinpar
323 If they are not installed you can export the document anyway but the sections
324 where the packages are required won't appear in the output.
327 \begin_layout Plain Layout
328 The latest PDF-version of this document can be found here:
329 \begin_inset Newline newline
334 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
342 \begin_layout Chapter
344 \begin_inset Index idx
347 \begin_layout Plain Layout
354 \begin_inset Index idx
357 \begin_layout Plain Layout
362 \begin_layout Plain Layout
373 \begin_layout Plain Layout
388 \begin_layout Section
390 \begin_inset Index idx
393 \begin_layout Plain Layout
394 Figures ! Graphics Dialog
400 \begin_inset CommandInset label
402 name "sec:Graphics-Dialog"
409 \begin_layout Standard
410 To insert an image into your document, place the cursor at the text position
411 you want and click on the toolbar icon
414 arg "dialog-show-new-inset graphics"
419 Insert\SpecialChar menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside \SpecialChar LyX
468 \begin_inset Newline newline
472 \begin_inset Index idx
475 \begin_layout Plain Layout
481 Images can be scaled by using a percentage value or by setting the width
482 and height explicitly.
483 If you set only the width or only the height, the other size will be determined
485 If you set both, then the image will be transformed to the given size,
486 possibly distorting it.
487 To prevent the image from distortion, use the option
489 Maintain aspect ratio
492 The image will then be scaled so that its width and height don't exceed
493 the specified dimensions.
494 \begin_inset Newline newline
497 Images can be opened in a program of your choice by right-clicking on it
498 and choosing the entry
507 The program can be set for every image format in the file format settings
512 \begin_layout Description
517 Alternatively to the usage of scaling units it is possible to set image
518 coordinates to adjust the height and width of the image in the output.
519 The coordinates can also be calculated automatically by pressing the button
549 will only print the image region within the given coordinates.
550 Normally you don't need to worry about image coordinates and can ignore
554 \begin_layout Description
571 In this tab you can modify the appearance of the image within \SpecialChar LyX
572 and \SpecialChar LaTeX
574 can specify additional \SpecialChar LaTeX
576 \begin_inset Newline newline
587 makes the image appear in the output only as a frame with the size of the
589 \begin_inset Newline newline
600 you can define or join an image settings group.
601 \begin_inset Index idx
604 \begin_layout Plain Layout
605 Figures ! Settings grouping
610 Images within such a group share their settings, so adjusting one image
611 of the group automatically also adjusts all other images of the group in
613 So you can for example change the size for a bunch of images without the
614 need to manually change each of them.
615 Joining an existing group can also be done using the context menu of the
616 image by checking the name of the desired group.
619 \begin_layout Standard
620 \begin_inset VSpace bigskip
626 \begin_layout Standard
627 This is an example image in EPS format
631 \begin_layout Plain Layout
632 Image formats are explained in section
637 \begin_inset CommandInset ref
639 reference "sec:Image-Formats"
648 within a separate, horizontally centered paragraph:
649 \begin_inset Separator parbreak
655 \begin_layout Standard
657 \begin_inset Graphics
658 filename clipart/mobius.eps
668 \begin_layout Standard
669 This is the same image like the one above but in draft mode:
670 \begin_inset Separator parbreak
676 \begin_layout Standard
678 \begin_inset Graphics
679 filename clipart/mobius.eps
690 \begin_layout Standard
691 \begin_inset Newpage newpage
697 \begin_layout Section
699 \begin_inset CommandInset label
701 name "sec:Figure-Floats"
706 \begin_inset Index idx
709 \begin_layout Plain Layout
716 \begin_inset Index idx
719 \begin_layout Plain Layout
728 \begin_layout Standard
729 For general explanations about floats, have a look at section
734 \begin_inset CommandInset ref
736 reference "sec:FloatIntroduction"
743 \begin_layout Standard
747 arg "float-insert figure"
752 Insert\SpecialChar menuseparator
753 Float\SpecialChar menuseparator
756 inserts a float with a caption that has the label
757 \begin_inset Quotes eld
765 \begin_inset Quotes erd
768 (# is the actual number).
769 You can insert the image above the caption, like in Figure
774 \begin_inset CommandInset ref
776 reference "fig:kill-plat"
780 or below the caption, like in Figure
785 \begin_inset CommandInset ref
787 reference "fig:escher"
792 More about caption placement is described in section
797 \begin_inset CommandInset ref
799 reference "sec:Caption-Placement"
806 \begin_layout Standard
807 \begin_inset Float figure
812 \begin_layout Plain Layout
814 \begin_inset Graphics
815 filename clipart/platypus.eps
825 \begin_layout Plain Layout
826 \begin_inset Caption Standard
828 \begin_layout Plain Layout
829 \begin_inset CommandInset label
835 A severely distorted platypus in a float.
848 \begin_layout Standard
849 \begin_inset Float figure
854 \begin_layout Plain Layout
855 \begin_inset Caption Standard
857 \begin_layout Plain Layout
858 \begin_inset CommandInset label
873 \begin_layout Plain Layout
875 \begin_inset Graphics
876 filename clipart/escher-lsd.eps
891 \begin_layout Standard
892 \begin_inset Index idx
895 \begin_layout Plain Layout
896 References ! to Figures
906 \begin_inset CommandInset ref
908 reference "fig:kill-plat"
913 \begin_inset CommandInset ref
915 reference "fig:escher"
919 are examples of referenced figures.
920 Figures can be referenced in the text by referencing their label.
921 To do this insert a label in the caption using the menu
923 Insert\SpecialChar menuseparator
926 or the toolbar button
933 You can now refer to the label using the menu
935 Insert\SpecialChar menuseparator
942 or the toolbar button
945 arg "dialog-show-new-inset ref"
949 It is important to use references to floats, rather than using vague references
951 \begin_inset Quotes eld
955 \begin_inset Quotes erd
958 , because \SpecialChar LaTeX
959 will reposition the floats in the final document and it might
961 \begin_inset Quotes eld
965 \begin_inset Quotes erd
969 \begin_inset Newline newline
972 Referencing is explained in detail in section
977 \begin_inset CommandInset ref
979 reference "sec:Referencing-Floats"
986 \begin_layout Standard
987 Normally only one image is inserted to a figure float, but sometimes you
988 might want to use two images with separate subcaptions.
989 This can be done by inserting image floats into existing image floats.
990 Note that only the main caption of the float is added to the List of Figures.
996 \begin_inset CommandInset ref
998 reference "fig:Two-distorted-images"
1002 is an example of a figure float with two images set side by side.
1003 You can also set the images one below the other.
1005 \begin_inset space ~
1009 \begin_inset CommandInset ref
1011 reference "fig:Undefinable-structure"
1016 \begin_inset CommandInset ref
1018 reference "fig:A-Platypus"
1025 \begin_layout Standard
1026 \begin_inset Float figure
1031 \begin_layout Plain Layout
1032 \begin_inset space \hfill{}
1036 \begin_inset Float figure
1041 \begin_layout Plain Layout
1042 \begin_inset Caption Standard
1044 \begin_layout Plain Layout
1045 \begin_inset CommandInset label
1047 name "fig:Undefinable-structure"
1051 Undefinable structure.
1059 \begin_layout Plain Layout
1060 \begin_inset Graphics
1061 filename clipart/escher-lsd.eps
1074 \begin_inset space \hfill{}
1078 \begin_inset Float figure
1083 \begin_layout Plain Layout
1084 \begin_inset Caption Standard
1086 \begin_layout Plain Layout
1087 \begin_inset CommandInset label
1089 name "fig:A-Platypus"
1101 \begin_layout Plain Layout
1102 \begin_inset Graphics
1103 filename clipart/platypus.eps
1116 \begin_inset space \hfill{}
1122 \begin_layout Plain Layout
1123 \begin_inset Caption Standard
1125 \begin_layout Plain Layout
1126 \begin_inset CommandInset label
1128 name "fig:Two-distorted-images"
1132 Two distorted images.
1133 Both images are in the image settings group named
1134 \begin_inset Quotes eld
1138 \begin_inset Quotes erd
1154 \begin_layout Standard
1155 \begin_inset Newpage newpage
1161 \begin_layout Section
1163 \begin_inset CommandInset label
1165 name "sec:Image-Formats"
1170 \begin_inset Index idx
1173 \begin_layout Plain Layout
1180 \begin_inset Index idx
1183 \begin_layout Plain Layout
1184 Figures ! Image Formats
1192 \begin_layout Standard
1193 You can insert images in any known file format.
1194 But as explained in appendix
1195 \begin_inset space ~
1199 \begin_inset CommandInset ref
1201 reference "cha:Output-File-Formats"
1205 , each output document format allows only a few image formats.
1207 uses therefore the program
1211 in the background to convert the images to the right format.
1212 To increase your work flow by avoiding these conversions in the background,
1213 you could choose to use only the image formats that can directly be embedded
1214 in the output file format.
1215 The output file formats are explained in appendix
1216 \begin_inset space ~
1220 \begin_inset CommandInset ref
1222 reference "cha:Output-File-Formats"
1229 \begin_layout Standard
1230 Similar to fonts there are two types of image formats:
1233 \begin_layout Description
1235 \begin_inset space ~
1238 images consist of pixel values, often in a compressed form.
1239 They are therefore not fully scalable and look pixelated in large zooms.
1240 Well-known bitmap image formats are
1241 \begin_inset Quotes eld
1244 Graphics Interchange Format
1245 \begin_inset Quotes erd
1248 (GIF, file extension
1249 \begin_inset Quotes eld
1257 \begin_inset Quotes erd
1261 \begin_inset Index idx
1264 \begin_layout Plain Layout
1269 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1293 \begin_inset Quotes eld
1296 Portable Network Graphics
1297 \begin_inset Quotes erd
1300 (PNG, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1313 \begin_inset Index idx
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Joint Photographic Experts Group
1349 \begin_inset Quotes erd
1352 (JPG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1365 \begin_inset Quotes eld
1373 \begin_inset Quotes erd
1377 \begin_inset Index idx
1380 \begin_layout Plain Layout
1385 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1411 \begin_layout Description
1413 \begin_inset space ~
1416 images consist of vectors and can therefore be scaled to any size without
1418 The scaling ability is necessary if you want to create presentations, because
1419 presentations are always scaled by the video projector.
1420 Scaling is also useful for online documents to let the user zoom into diagrams.
1421 \begin_inset Newline newline
1424 Well-known scalable image formats are
1425 \begin_inset Quotes eld
1428 Scalable Vector Graphics
1429 \begin_inset Quotes erd
1432 (SVG, file extension
1433 \begin_inset Quotes eld
1441 \begin_inset Quotes erd
1445 \begin_inset Index idx
1448 \begin_layout Plain Layout
1453 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1477 \begin_inset Quotes eld
1480 Encapsulated PostScript
1481 \begin_inset Quotes erd
1484 (EPS, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1497 \begin_inset Index idx
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Portable Document Format
1533 \begin_inset Quotes erd
1536 (PDF, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1549 \begin_inset Index idx
1552 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1566 (WMF, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1619 , because you can convert any bitmap image to a PDF or EPS-image and the
1620 result will still be a bitmap image.
1621 In such cases only a header with the image properties is added to the original
1626 \begin_layout Plain Layout
1627 In the case of PDF, the original image is additionally compressed.
1633 The PDF-files generated by
1637 are for example bitmap images.
1640 \begin_layout Standard
1641 Normally it is not possible to convert a bitmap image into a scalable one,
1643 Only the image formats PDF and EPS can directly be embedded to PDF and
1644 PostScript output files, respectively.
1645 SVG and WMF-images are recalculated to bitmaps when the output file is
1646 generated because there is currently no adequate WMF/SVG
1647 \begin_inset Formula $\to$
1650 PDF/EPS converter available.
1653 \begin_layout Chapter
1655 \begin_inset Index idx
1658 \begin_layout Plain Layout
1667 \begin_layout Section
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1673 Table ! Introduction
1681 \begin_layout Standard
1682 You can insert a table using either the toolbar button
1685 arg "tabular-insert"
1690 Insert\SpecialChar menuseparator
1694 The toolbar button offers you a graphical selection: move the mouse to
1695 set the column/row number of the table that should be created and then
1696 press a mouse button.
1697 When you use the menu to create a table, a dialog will appear, asking you
1698 for the number of rows and columns.
1699 \begin_inset Newline newline
1702 The default table has lines around any cell and the first row appears separated
1703 from the rest of the table.
1704 This separation occurs due to a double line: The cells of the first row
1705 have a line below them and the cells of the second row have a line above
1707 Here is an example table:
1708 \begin_inset Separator parbreak
1714 \begin_layout Standard
1716 \begin_inset Tabular
1717 <lyxtabular version="3" rows="4" columns="4">
1718 <features tabularvalignment="middle">
1719 <column alignment="center" valignment="top">
1720 <column alignment="center" valignment="top">
1721 <column alignment="center" valignment="top">
1722 <column alignment="center" valignment="top">
1724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1727 \begin_layout Plain Layout
1733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1736 \begin_layout Plain Layout
1751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1754 \begin_layout Plain Layout
1760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1763 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1774 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1801 \begin_layout Plain Layout
1807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1810 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1839 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1848 \begin_layout Plain Layout
1854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1857 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1895 \begin_layout Plain Layout
1901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1904 \begin_layout Plain Layout
1918 \begin_layout Section
1920 \begin_inset Index idx
1923 \begin_layout Plain Layout
1932 \begin_layout Standard
1933 You can alter a table by clicking on it with the right mouse button, which
1934 brings up the context menu.
1935 Under the menu entry
1939 you can adjust the settings of that cell and row/column respectively where
1940 the cursor is currently placed.
1943 More\SpecialChar menuseparator
1946 opens the table dialog where you can adjust more things.
1947 Most of the dialog options also work on selections.
1948 This means if you select more cells, columns or rows, the action is done
1949 for the whole selection.
1950 Note that there is a difference between selecting the
1954 of the cell, and the cell itself.
1955 \begin_inset Newline newline
1958 With the dialog option
1961 \begin_inset space ~
1966 every change you make in the dialog is directly applied.
1967 If you move the cursor to another table cell the dialog will then also
1968 be updated with the parameters of the new cell.
1969 If you change length values in the dialog you must press
1973 to get the change applied.
1974 \begin_inset Newline newline
1977 You can alter tables with the following tabs of the table dialog:
1980 \begin_layout Description
1984 \begin_inset space ~
1989 Here you can set the table width
1990 \begin_inset Index idx
1993 \begin_layout Plain Layout
1999 , and the horizontal alignment and the width of the current column.
2003 \begin_inset space ~
2007 \begin_inset space ~
2012 is described in section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "subsec:Special-Cell-Alignment"
2024 When you have set a width you can also adjust the vertical alignment of
2026 A given width will allow the cell to have line breaks and multiple paragraphs
2028 \begin_inset space \thinspace{}
2032 \begin_inset CommandInset ref
2034 reference "subsec:Multiple-Lines-in"
2039 If you set no width, the column is as wide as the content of its widest
2041 \begin_inset Newline newline
2044 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2046 \begin_inset space \thinspace{}
2050 \begin_inset CommandInset ref
2052 reference "subsec:Multicolumns"
2056 or the cells of one column as multirow cell, see sec.
2057 \begin_inset space \thinspace{}
2061 \begin_inset CommandInset ref
2063 reference "subsec:Multirows"
2068 \begin_inset Newline newline
2071 The rotate check boxes rotate the current cell, a selection, or the whole
2072 table counter-clockwise by 90
2073 \begin_inset space \thinspace{}
2077 The rotation is not shown within \SpecialChar LyX
2078 , only in the output.
2079 For more information see sec.
2080 \begin_inset space \thinspace{}
2084 \begin_inset CommandInset ref
2086 reference "sec:Rotated-Table-Cells"
2091 \begin_inset Newline newline
2095 \begin_inset Note Greyedout
2098 \begin_layout Plain Layout
2103 Not all DVI-viewers are able to display rotations.
2109 \begin_inset Newline newline
2112 The table-wide vertical alignment is used for tables within text lines:
2113 \begin_inset Newline newline
2116 A line with tables with different alignments:
2117 \begin_inset Tabular
2118 <lyxtabular version="3" rows="2" columns="2">
2119 <features tabularvalignment="top">
2120 <column alignment="center" valignment="top" width="0pt">
2121 <column alignment="center" valignment="top">
2123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2126 \begin_layout Plain Layout
2132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2135 \begin_layout Plain Layout
2152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2155 \begin_layout Plain Layout
2170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2173 \begin_layout Plain Layout
2185 \begin_inset Tabular
2186 <lyxtabular version="3" rows="2" columns="2">
2187 <features tabularvalignment="middle">
2188 <column alignment="center" valignment="top">
2189 <column alignment="center" valignment="top">
2191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2194 \begin_layout Plain Layout
2200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2203 \begin_layout Plain Layout
2220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2223 \begin_layout Plain Layout
2238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2241 \begin_layout Plain Layout
2253 \begin_inset Tabular
2254 <lyxtabular version="3" rows="2" columns="2">
2255 <features tabularvalignment="bottom">
2256 <column alignment="center" valignment="top" width="0pt">
2257 <column alignment="center" valignment="top">
2259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2262 \begin_layout Plain Layout
2268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2271 \begin_layout Plain Layout
2288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2291 \begin_layout Plain Layout
2306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2309 \begin_layout Plain Layout
2321 \begin_inset Newline newline
2324 It is also possible to enter a \SpecialChar LaTeX
2325 -argument which is needed for special table
2326 formattings, see sec.
2327 \begin_inset space \thinspace{}
2331 \begin_inset CommandInset ref
2333 reference "subsec:Multicolumn-Calculations"
2338 \begin_inset CommandInset ref
2340 reference "sec:Colored-Tables"
2347 \begin_layout Description
2352 In this tab you can add and delete border lines for the current row/column.
2353 \begin_inset Newline newline
2356 Using the style option
2360 will convert the table to a formal table as described in sec.
2361 \begin_inset space \thinspace{}
2365 \begin_inset CommandInset ref
2367 reference "sec:Formal-Tables"
2372 \begin_inset Newline newline
2375 You can also add space here to table rows as described in sec.
2376 \begin_inset space \thinspace{}
2380 \begin_inset CommandInset ref
2382 reference "subsec:Row-Spacing"
2389 \begin_layout Description
2394 This tab is to make a table a so called
2395 \begin_inset Quotes eld
2403 \begin_inset Quotes erd
2406 that can run over several pages.
2408 \begin_inset space ~
2412 \begin_inset CommandInset ref
2414 reference "sec:Longtables"
2419 \begin_inset CommandInset ref
2421 reference "sec:Special-Longtable-Issues"
2425 describe the longtable features in detail.
2428 \begin_layout Section
2430 \begin_inset Index idx
2433 \begin_layout Plain Layout
2442 \begin_layout Standard
2443 The table toolbar is an alternative to the table dialog to be able to alter
2445 It should normally appear at the bottom of \SpecialChar LyX
2446 's main window when the cursor
2448 You can alternatively switch it on to appear always, by right-clicking
2453 \begin_layout Standard
2454 The toolbar has the following icons:
2457 \begin_layout Labeling
2458 \labelwidthstring 00.00.0000
2461 arg "inset-modify tabular append-row"
2464 adds a row below the current cell or selection
2467 \begin_layout Labeling
2468 \labelwidthstring 00.00.0000
2471 arg "inset-modify tabular append-column"
2474 adds a column right beside the current cell or selection
2477 \begin_layout Labeling
2478 \labelwidthstring 00.00.0000
2481 arg "inset-modify tabular delete-row"
2484 deletes the current row or selection
2487 \begin_layout Labeling
2488 \labelwidthstring 00.00.0000
2491 arg "inset-modify tabular delete-column"
2494 deletes the current column or selection
2497 \begin_layout Labeling
2498 \labelwidthstring 00.00.0000
2501 arg "inset-modify tabular move-row-up"
2507 \begin_layout Labeling
2508 \labelwidthstring 00.00.0000
2511 arg "inset-modify tabular move-column-left"
2514 moves the column to the left
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2521 arg "inset-modify tabular move-row-down"
2527 \begin_layout Labeling
2528 \labelwidthstring 00.00.0000
2531 arg "inset-modify tabular move-column-right"
2534 moves the column to the right
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2541 arg "inset-modify tabular toggle-line-top"
2544 adds a line at the top of the current cell / row or of a selection
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2551 arg "inset-modify tabular toggle-line-bottom"
2554 adds a line at the bottom of the current cell / row or of a selection
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2561 arg "inset-modify tabular toggle-line-left"
2564 adds a line at the left side of the current cell / row or of a selection
2567 \begin_layout Labeling
2568 \labelwidthstring 00.00.0000
2571 arg "inset-modify tabular toggle-line-right"
2574 adds a line at the right side of the current cell / row or of a selection
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2581 arg "inset-modify tabular set-all-lines"
2584 adds lines around the current or selected cells - if the current cell no
2585 multicolumn cell this also affects the current row and column
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2592 arg "inset-modify tabular unset-all-lines"
2595 deletes all lines of the current or selected cells - if the current cell
2596 no multicolumn cell this also affects the current row and column
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "inset-modify tabular m-align-left"
2606 left-aligns the content of the current cell / column
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2613 arg "inset-modify tabular m-align-center"
2616 centers the content of the current cell / column horizontally
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2623 arg "inset-modify tabular m-align-right"
2626 right-aligns the content of the current cell / column
2629 \begin_layout Labeling
2630 \labelwidthstring 00.00.0000
2633 arg "inset-modify tabular align-decimal"
2636 aligns the content of the current column at a character
2639 \begin_layout Labeling
2640 \labelwidthstring 00.00.0000
2643 arg "inset-modify tabular m-valign-top"
2646 aligns the content of the current cell vertically to the top
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2653 arg "inset-modify tabular m-valign-middle"
2656 centers the content of the current cell vertically
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2663 arg "inset-modify tabular m-valign-bottom"
2666 aligns the content of the current cell vertically to the bottom
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2673 arg "inset-modify tabular set-rotate-cell"
2676 rotates the current cell or selection counter-clockwise by 90°
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2683 arg "inset-modify tabular set-rotate-tabular"
2686 rotates the whole table counter-clockwise by 90°
2689 \begin_layout Labeling
2690 \labelwidthstring 00.00.0000
2693 arg "inset-modify tabular multicolumn"
2696 sets the current cell or selection as a multicolumn
2699 \begin_layout Labeling
2700 \labelwidthstring 00.00.0000
2703 arg "inset-modify tabular multirow"
2706 sets the current cell or selection as a multirow
2709 \begin_layout Standard
2710 \begin_inset Note Greyedout
2713 \begin_layout Plain Layout
2718 For the output the vertical alignment of the first cell in a row is used
2719 for all following cells in the row.
2727 \begin_layout Section
2729 \begin_inset Index idx
2732 \begin_layout Plain Layout
2741 \begin_layout Standard
2742 In addition to the table dialog and toolbar, the menu
2744 Edit\SpecialChar menuseparator
2747 allows you to add and delete border lines for the current row/column and
2748 to set the current selection as multicolumn.
2749 The menu is only available when the cursor is inside a table.
2752 \begin_layout Section
2754 \begin_inset CommandInset label
2756 name "sec:Table-Floats"
2761 \begin_inset Index idx
2764 \begin_layout Plain Layout
2771 \begin_inset Index idx
2774 \begin_layout Plain Layout
2783 \begin_layout Standard
2784 For general explanations about floats, have a look at section
2785 \begin_inset space ~
2789 \begin_inset CommandInset ref
2791 reference "sec:FloatIntroduction"
2798 \begin_layout Standard
2799 \begin_inset Float table
2805 \begin_layout Plain Layout
2806 \begin_inset Caption Standard
2808 \begin_layout Plain Layout
2809 \begin_inset CommandInset label
2811 name "tab:a table float"
2823 \begin_layout Plain Layout
2825 \begin_inset Tabular
2826 <lyxtabular version="3" rows="3" columns="3">
2827 <features tabularvalignment="middle">
2828 <column alignment="center" valignment="top" width="0pt">
2829 <column alignment="center" valignment="top" width="0pt">
2830 <column alignment="center" valignment="top" width="0pt">
2832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2835 \begin_layout Plain Layout
2850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2853 \begin_layout Plain Layout
2868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2871 \begin_layout Plain Layout
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Plain Layout
2906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2909 \begin_layout Plain Layout
2924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2927 \begin_layout Plain Layout
2944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2947 \begin_layout Plain Layout
2957 \begin_inset Formula $\int x^{2}dx$
2965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2968 \begin_layout Plain Layout
2978 \begin_inset Formula $\left[\begin{array}{cc}
2989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2992 \begin_layout Plain Layout
3002 \begin_inset Formula $1+1=2$
3023 \begin_layout Standard
3024 Table floats can be inserted using the menu
3026 Insert\SpecialChar menuseparator
3027 Float\SpecialChar menuseparator
3030 or the toolbar button
3033 arg "float-insert table"
3039 \begin_layout Standard
3040 The float appears as a collapsible box with a caption that has the label
3042 \begin_inset Quotes eld
3046 \begin_inset space ~
3050 \begin_inset Quotes erd
3053 (# is the actual table number).
3054 You can insert tables in the float above or below the caption.
3057 \begin_layout Standard
3059 \begin_inset space ~
3063 \begin_inset CommandInset ref
3065 reference "tab:a table float"
3069 is an example table within a table float.
3072 \begin_layout Standard
3073 Having the caption above the table is the common rule that is unfortunately
3074 not supported in \SpecialChar LaTeX
3075 's standard classes.
3076 This means that, if you are using the document classes
3092 , there will be no space between the caption and the table.
3093 To insert the needed space, add the following option to the load command
3094 of the \SpecialChar LaTeX
3100 \begin_inset Index idx
3103 \begin_layout Plain Layout
3110 in your document preamble
3114 \begin_layout Plain Layout
3115 For more information have a look at section
3116 \begin_inset space ~
3120 \begin_inset CommandInset ref
3122 reference "sec:Caption-Placement"
3134 \begin_layout Standard
3140 \begin_layout Standard
3145 , which is described in section
3146 \begin_inset space ~
3150 \begin_inset CommandInset ref
3152 reference "sec:Caption-Formatting"
3156 , is used to adjust the caption format.
3159 \begin_layout Standard
3160 \begin_inset Index idx
3163 \begin_layout Plain Layout
3164 References ! to Tables
3169 Tables can be cross-referenced in the text by referencing their label.
3170 To do this insert a label in the caption using the menu
3172 Insert\SpecialChar menuseparator
3175 or the toolbar button
3182 You can now refer to the label using the menu
3184 Insert\SpecialChar menuseparator
3186 \begin_inset space ~
3191 or the toolbar button
3194 arg "dialog-show-new-inset ref"
3198 \begin_inset Newline newline
3201 Referencing is explained in detail in section
3202 \begin_inset space ~
3206 \begin_inset CommandInset ref
3208 reference "sec:Referencing-Floats"
3215 \begin_layout Section
3217 \begin_inset CommandInset label
3219 name "sec:Longtables"
3224 \begin_inset Index idx
3227 \begin_layout Plain Layout
3234 \begin_inset Index idx
3237 \begin_layout Plain Layout
3246 \begin_layout Standard
3247 If the table is too long to fit on one page, you can use the option
3250 \begin_inset space ~
3254 \begin_inset space ~
3263 of the table dialog to split the table automatically over more pages.
3264 Doing this enables the following options:
3267 \begin_layout Description
3268 Header: The current row is defined to be a header row that appears on all
3269 pages of the longtable; except for the first page, if
3272 \begin_inset space ~
3278 This is therefore called the main header.
3281 \begin_layout Description
3283 \begin_inset space ~
3286 header: The current row is defined to be a header row that appears on the
3287 first page of the longtable.
3290 \begin_layout Description
3291 Footer: The current row is defined to be a footer row that appears on all
3292 pages of the longtable; except for the last page, if
3295 \begin_inset space ~
3303 \begin_layout Description
3305 \begin_inset space ~
3308 footer: The current row is defined to be a footer row that appears on the
3309 last page of the longtable.
3312 \begin_layout Description
3313 Caption: The current row contains the table caption.
3314 The row is reset as single column and a caption is inserted.
3315 More about longtable captions is explained in sec.
3316 \begin_inset space \thinspace{}
3320 \begin_inset CommandInset ref
3322 reference "subsec:Longtable-Captions"
3329 \begin_layout Standard
3330 You can also specify a row where the table is split.
3331 See the following longtable to see how it works:
3332 \begin_inset Separator parbreak
3338 \begin_layout Standard
3340 \begin_inset Tabular
3341 <lyxtabular version="3" rows="69" columns="3">
3342 <features islongtable="true" longtabularalignment="center">
3343 <column alignment="left" valignment="top" width="0cm">
3344 <column alignment="left" valignment="top" width="0pt">
3345 <column alignment="center" valignment="top" width="0pt">
3346 <row endfirsthead="true">
3347 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3350 \begin_layout Plain Layout
3353 Example Phone List (ignore the names)
3358 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3361 \begin_layout Plain Layout
3367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3370 \begin_layout Plain Layout
3377 <row endfirsthead="true">
3378 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3381 \begin_layout Plain Layout
3389 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3392 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3401 \begin_layout Plain Layout
3410 <row endhead="true">
3411 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3441 <row endhead="true">
3442 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3474 <row endfoot="true">
3475 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3478 \begin_layout Plain Layout
3479 continued on next page
3484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4220 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" usebox="none">
4231 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4240 \begin_layout Plain Layout
4248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4251 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" usebox="none">
4262 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4271 \begin_layout Plain Layout
4279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4282 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" usebox="none">
4293 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4302 \begin_layout Plain Layout
4310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4313 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" usebox="none">
4324 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4333 \begin_layout Plain Layout
4341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4344 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" usebox="none">
4355 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4364 \begin_layout Plain Layout
4372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4375 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" usebox="none">
4386 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4395 \begin_layout Plain Layout
4403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4406 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" usebox="none">
4417 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4426 \begin_layout Plain Layout
4434 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4437 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4448 \begin_layout Plain Layout
4454 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4457 \begin_layout Plain Layout
4465 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4468 \begin_layout Plain Layout
4474 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5207 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5210 \begin_layout Plain Layout
5218 <cell alignment="center" valignment="top" usebox="none">
5221 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5230 \begin_layout Plain Layout
5238 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5241 \begin_layout Plain Layout
5249 <cell alignment="center" valignment="top" usebox="none">
5252 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5261 \begin_layout Plain Layout
5269 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5272 \begin_layout Plain Layout
5280 <cell alignment="center" valignment="top" usebox="none">
5283 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5292 \begin_layout Plain Layout
5300 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5303 \begin_layout Plain Layout
5311 <cell alignment="center" valignment="top" usebox="none">
5314 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5323 \begin_layout Plain Layout
5331 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5334 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" usebox="none">
5345 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5354 \begin_layout Plain Layout
5362 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5365 \begin_layout Plain Layout
5373 <cell alignment="center" valignment="top" usebox="none">
5376 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5385 \begin_layout Plain Layout
5393 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5396 \begin_layout Plain Layout
5404 <cell alignment="center" valignment="top" usebox="none">
5407 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5416 \begin_layout Plain Layout
5424 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5427 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5438 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5447 \begin_layout Plain Layout
5454 <row endlastfoot="true">
5455 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5458 \begin_layout Plain Layout
5464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5476 \begin_layout Plain Layout
5491 \begin_layout Plain Layout
5495 addtocounter{table}{-1}
5501 \begin_inset Note Note
5504 \begin_layout Plain Layout
5505 See the first greyed-out note in section
5506 \begin_inset space ~
5510 \begin_inset CommandInset ref
5512 reference "subsec:Longtable-Captions"
5516 for an explanation of this command.
5524 \begin_layout Subsection
5525 Footnotes in Longtables
5526 \begin_inset CommandInset label
5528 name "subsec:Footnotes-in-Longtables"
5533 \begin_inset Index idx
5536 \begin_layout Plain Layout
5537 Longtables ! Footnotes
5545 \begin_layout Standard
5546 Footnotes can be inserted to every longtable cell.
5547 They appear at the bottom of the page where the table cell with the footnote
5550 \begin_inset space ~
5554 \begin_inset CommandInset ref
5556 reference "tab:DiffCaptions"
5560 has for example a footnote.
5563 \begin_layout Subsection
5565 \begin_inset Index idx
5568 \begin_layout Plain Layout
5569 Longtables ! Alignment
5577 \begin_layout Standard
5578 The horizontal alignment of longtables can be set in the table settings
5580 For left- and right-alignment the table will be directly at the page border.
5581 To add space between the table and the border one has to set the alignment
5582 to center and change the value of the \SpecialChar LaTeX
5595 by inserting this line as \SpecialChar TeX
5596 Code before the longtable:
5599 \begin_layout Standard
5609 \begin_layout Standard
5610 The value can have any of the units listed in Table
5611 \begin_inset space ~
5615 \begin_inset CommandInset ref
5617 reference "tab:Units"
5628 controls the horizontal distance from the left page border to the longtable,
5635 the distance from the right side.
5636 The default value for both lengths is
5642 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5646 \begin_layout Standard
5647 The following longtable was centered and
5663 \begin_layout Plain Layout
5679 \begin_layout Standard
5680 \begin_inset Tabular
5681 <lyxtabular version="3" rows="5" columns="5">
5682 <features islongtable="true" longtabularalignment="center">
5683 <column alignment="center" valignment="top">
5684 <column alignment="center" valignment="top" width="0pt">
5685 <column alignment="center" valignment="top">
5686 <column alignment="center" valignment="top">
5687 <column alignment="center" valignment="top">
5689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5692 \begin_layout Plain Layout
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_layout Plain Layout
5707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5710 \begin_layout Plain Layout
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5719 \begin_layout Plain Layout
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5728 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Plain Layout
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5748 \begin_layout Plain Layout
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Plain Layout
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Plain Layout
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5775 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Plain Layout
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5822 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5869 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5889 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5916 \begin_layout Plain Layout
5931 \begin_layout Plain Layout
5948 \begin_layout Plain Layout
5952 addtocounter{table}{-1}
5958 \begin_inset Note Note
5961 \begin_layout Plain Layout
5962 See the first greyed-out note in section
5963 \begin_inset space ~
5967 \begin_inset CommandInset ref
5969 reference "subsec:Longtable-Captions"
5973 for an explanation of this command.
5981 \begin_layout Subsection
5983 \begin_inset Index idx
5986 \begin_layout Plain Layout
5987 Longtables ! Captions
5993 \begin_inset CommandInset label
5995 name "subsec:Longtable-Captions"
6002 \begin_layout Standard
6003 A longtable cannot be put into a table float because floats can only be
6005 But the caption environment of floats can also be used for longtables when
6006 you use the longtable option
6010 as described in sec.
6011 \begin_inset space \thinspace{}
6015 \begin_inset CommandInset ref
6017 reference "sec:Longtables"
6022 Only one table row should contain a caption, either a header or a footer
6026 \begin_layout Standard
6027 Here is a short longtable to see how it works:
6030 \begin_layout Standard
6031 \begin_inset Tabular
6032 <lyxtabular version="3" rows="6" columns="5">
6033 <features islongtable="true" longtabularalignment="center">
6034 <column alignment="center" valignment="top">
6035 <column alignment="center" valignment="top">
6036 <column alignment="center" valignment="top">
6037 <column alignment="center" valignment="top">
6038 <column alignment="center" valignment="top">
6039 <row endfirsthead="true" caption="true">
6040 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6043 \begin_layout Plain Layout
6044 \begin_inset Caption Standard
6046 \begin_layout Plain Layout
6047 Longtable with caption
6048 \begin_inset Argument 1
6051 \begin_layout Plain Layout
6067 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6070 \begin_layout Plain Layout
6076 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6079 \begin_layout Plain Layout
6085 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6088 \begin_layout Plain Layout
6094 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6097 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6108 \begin_layout Plain Layout
6114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6117 \begin_layout Plain Layout
6123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6126 \begin_layout Plain Layout
6132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6135 \begin_layout Plain Layout
6141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6144 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6155 \begin_layout Plain Layout
6161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6164 \begin_layout Plain Layout
6170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6173 \begin_layout Plain Layout
6179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6182 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6191 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6202 \begin_layout Plain Layout
6208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6211 \begin_layout Plain Layout
6217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6238 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6285 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6332 \begin_layout Plain Layout
6346 \begin_layout Standard
6347 \begin_inset VSpace medskip
6351 \begin_inset Note Greyedout
6354 \begin_layout Plain Layout
6358 \begin_inset space ~
6363 The table number is increased for every longtable, even if you did not
6364 set a caption for it.
6365 For this reason you could have the case that e.
6366 \begin_inset space \thinspace{}
6370 \begin_inset space \space{}
6374 \begin_inset space ~
6378 \begin_inset space ~
6381 2.1 in the list of tables if there are two longtables without captions.
6382 To avoid this you can add the following command in \SpecialChar TeX
6383 Code after every longtable
6387 \begin_layout Plain Layout
6392 addtocounter{table}{-1}
6395 \begin_layout Plain Layout
6396 This is not needed when none of your longtables has a caption and you add
6397 the following code to the document preamble:
6400 \begin_layout Plain Layout
6410 \begin_inset Newline newline
6421 addtocounter{table}{-1}}
6429 \begin_layout Standard
6430 \begin_inset Note Greyedout
6433 \begin_layout Plain Layout
6437 \begin_inset space ~
6447 \begin_inset Index idx
6450 \begin_layout Plain Layout
6452 -packages ! hyperref
6465 dialog to link cross-references, the link to a longtable caption will always
6466 point to the beginning of the document.
6474 \begin_layout Subsubsection
6475 References to Longtables
6476 \begin_inset Index idx
6479 \begin_layout Plain Layout
6480 Longtables ! References
6488 \begin_layout Standard
6489 \begin_inset Tabular
6490 <lyxtabular version="3" rows="6" columns="5">
6491 <features islongtable="true" longtabularalignment="center">
6492 <column alignment="center" valignment="top">
6493 <column alignment="center" valignment="top">
6494 <column alignment="center" valignment="top">
6495 <column alignment="center" valignment="top">
6496 <column alignment="center" valignment="top">
6497 <row endfirsthead="true" caption="true">
6498 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6501 \begin_layout Plain Layout
6502 \begin_inset Caption Standard
6504 \begin_layout Plain Layout
6505 Referenced longtable
6506 \begin_inset CommandInset label
6508 name "tab:RefExample"
6522 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6525 \begin_layout Plain Layout
6531 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6534 \begin_layout Plain Layout
6540 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6543 \begin_layout Plain Layout
6549 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6552 \begin_layout Plain Layout
6560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6563 \begin_layout Plain Layout
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6572 \begin_layout Plain Layout
6578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6581 \begin_layout Plain Layout
6587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6590 \begin_layout Plain Layout
6596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6599 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6646 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6801 \begin_layout Standard
6802 To reference a longtable, insert a label into the caption.
6805 \begin_layout Standard
6806 This is a reference to Table
6807 \begin_inset space ~
6811 \begin_inset CommandInset ref
6813 reference "tab:RefExample"
6820 \begin_layout Standard
6821 The caption layout can be set together with all other captions of your document
6822 using the \SpecialChar LaTeX
6828 \begin_inset Index idx
6831 \begin_layout Plain Layout
6839 \begin_inset space ~
6843 \begin_inset CommandInset ref
6845 reference "sec:Caption-Formatting"
6852 \begin_layout Subsubsection
6854 \begin_inset Index idx
6857 \begin_layout Plain Layout
6858 Longtables ! Caption Width
6866 \begin_layout Standard
6867 The maximal width of caption lines is defined by the length
6874 Its default value is 4
6875 \begin_inset space \thinspace{}
6879 To change it add the following command to your document preamble or as
6881 Code into your document before the longtable that should be affected
6884 \begin_layout Standard
6894 \begin_layout Standard
6895 where the width could have one of the units listed in appendix
6896 \begin_inset space ~
6900 \begin_inset CommandInset ref
6902 reference "cha:Units-available-in"
6909 \begin_layout Standard
6910 The following tables show the difference:
6913 \begin_layout Standard
6914 \begin_inset Tabular
6915 <lyxtabular version="3" rows="6" columns="5">
6916 <features islongtable="true" longtabularalignment="center">
6917 <column alignment="center" valignment="top">
6918 <column alignment="center" valignment="top">
6919 <column alignment="center" valignment="top">
6920 <column alignment="center" valignment="top">
6921 <column alignment="center" valignment="top">
6922 <row endfirsthead="true" caption="true">
6923 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6926 \begin_layout Plain Layout
6927 \begin_inset Caption Standard
6929 \begin_layout Plain Layout
6930 long full title with default width long full title with default width long
6931 full title with default width
6932 \begin_inset Argument 1
6935 \begin_layout Plain Layout
6936 caption with default width
6951 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6954 \begin_layout Plain Layout
6960 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6963 \begin_layout Plain Layout
6969 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6972 \begin_layout Plain Layout
6978 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6981 \begin_layout Plain Layout
6989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7028 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7075 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7122 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7169 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7216 \begin_layout Plain Layout
7230 \begin_layout Standard
7234 \begin_layout Plain Layout
7246 \begin_inset Tabular
7247 <lyxtabular version="3" rows="6" columns="5">
7248 <features islongtable="true" longtabularalignment="center">
7249 <column alignment="center" valignment="top">
7250 <column alignment="center" valignment="top">
7251 <column alignment="center" valignment="top">
7252 <column alignment="center" valignment="top">
7253 <column alignment="center" valignment="top">
7254 <row endfirsthead="true" caption="true">
7255 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7258 \begin_layout Plain Layout
7259 \begin_inset Caption Standard
7261 \begin_layout Plain Layout
7262 long full title with width set to 5
7263 \begin_inset space \thinspace{}
7266 cm long full title with width set to 5
7267 \begin_inset space \thinspace{}
7270 cm long full title with width set to 5
7271 \begin_inset space \thinspace{}
7275 \begin_inset Argument 1
7278 \begin_layout Plain Layout
7280 \begin_inset space \thinspace{}
7284 \begin_inset space \thinspace{}
7288 \begin_inset space \thinspace{}
7306 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7309 \begin_layout Plain Layout
7315 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7318 \begin_layout Plain Layout
7324 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7327 \begin_layout Plain Layout
7333 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7336 \begin_layout Plain Layout
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Plain Layout
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7365 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7383 \begin_layout Plain Layout
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7394 \begin_layout Plain Layout
7400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7403 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7412 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7430 \begin_layout Plain Layout
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Plain Layout
7447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7459 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7477 \begin_layout Plain Layout
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Plain Layout
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7506 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7524 \begin_layout Plain Layout
7532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7535 \begin_layout Plain Layout
7541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7553 \begin_layout Plain Layout
7559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7562 \begin_layout Plain Layout
7568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7571 \begin_layout Plain Layout
7585 \begin_layout Standard
7589 \begin_layout Plain Layout
7603 \begin_layout Standard
7604 \begin_inset Note Greyedout
7607 \begin_layout Plain Layout
7612 When the \SpecialChar LaTeX
7618 \begin_inset Index idx
7621 \begin_layout Plain Layout
7628 is used, as in this document, the full page width is used for the caption
7629 when you use the default value of 4
7630 \begin_inset space \thinspace{}
7640 To get in this case exactly a 4
7641 \begin_inset space \thinspace{}
7644 in wide caption, you can either use a value slightly different from 4.0
7645 \begin_inset space \thinspace{}
7649 \begin_inset space \thinspace{}
7653 \begin_inset space \space{}
7657 \begin_inset space \thinspace{}
7660 in, or the \SpecialChar LaTeX
7665 captionsetup{width=value}
7667 that is provided by the
7679 \begin_layout Subsubsection
7680 Different Captions for Table Pages
7681 \begin_inset Index idx
7684 \begin_layout Plain Layout
7685 Longtables ! Different Captions for Pages
7693 \begin_layout Standard
7694 When the table captions for the following pages should differ from the one
7695 of the first table page, mark a empty row as header which contains a caption.
7696 Then right-click on the caption and select in the context menu
7699 \begin_inset space ~
7706 \begin_inset space ~
7710 \begin_inset CommandInset ref
7712 reference "tab:DiffCaptions"
7716 is an example of a longtable with different heading where the second caption
7717 does not include the table number.
7718 \begin_inset Separator parbreak
7724 \begin_layout Standard
7726 \begin_inset Tabular
7727 <lyxtabular version="3" rows="59" columns="3">
7728 <features islongtable="true" longtabularalignment="center">
7729 <column alignment="left" valignment="top" width="0cm">
7730 <column alignment="left" valignment="top" width="0pt">
7731 <column alignment="center" valignment="top" width="0pt">
7732 <row endfirsthead="true" caption="true">
7733 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7736 \begin_layout Plain Layout
7737 \begin_inset Caption Standard
7739 \begin_layout Plain Layout
7741 \begin_inset CommandInset label
7743 name "tab:DiffCaptions"
7748 \begin_inset Argument 1
7751 \begin_layout Plain Layout
7767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Plain Layout
7786 <row endfirsthead="true">
7787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7793 Example Phone List (ignore the names)
7798 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7801 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7817 <row endfirsthead="true">
7818 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7832 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7841 \begin_layout Plain Layout
7850 <row endhead="true" caption="true">
7851 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7855 \begin_inset Caption LongTableNoNumber
7857 \begin_layout Plain Layout
7858 Continued Example Phone List
7868 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7880 \begin_layout Plain Layout
7887 <row endhead="true">
7888 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7902 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7911 \begin_layout Plain Layout
7918 <row endhead="true">
7919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7933 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7942 \begin_layout Plain Layout
7951 <row endfoot="true">
7952 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7955 \begin_layout Plain Layout
7956 continued on next page
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7964 \begin_layout Plain Layout
7970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8108 \begin_layout Plain Layout
8116 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8139 \begin_layout Plain Layout
8147 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8407 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8418 \begin_layout Plain Layout
8427 \begin_layout Plain Layout
8438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8647 \begin_layout Plain Layout
8655 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8954 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9045 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9076 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9107 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9138 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9169 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9200 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9231 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9262 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9265 \begin_layout Plain Layout
9273 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9293 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9296 \begin_layout Plain Layout
9304 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9324 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9327 \begin_layout Plain Layout
9335 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9355 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9358 \begin_layout Plain Layout
9366 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9386 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9389 \begin_layout Plain Layout
9397 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9417 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9420 \begin_layout Plain Layout
9428 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9448 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9451 \begin_layout Plain Layout
9459 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9479 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9482 \begin_layout Plain Layout
9490 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9510 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9513 \begin_layout Plain Layout
9521 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9541 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9544 \begin_layout Plain Layout
9552 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9575 \begin_layout Plain Layout
9583 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9592 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9595 \begin_layout Plain Layout
9609 \begin_layout Section
9610 Special Longtable Issues
9611 \begin_inset CommandInset label
9613 name "sec:Special-Longtable-Issues"
9620 \begin_layout Subsection
9621 Longtable Calculation
9622 \begin_inset Index idx
9625 \begin_layout Plain Layout
9626 Longtables ! Calculation
9634 \begin_layout Standard
9636 calculates the height of table pages and their page breaks using so called
9638 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9640 The default value was historically set to only 20 table rows.
9641 If you are using longtables with many pages this may slow down the creation
9643 You can safely increase the chunk size to values of 100-1000 by adding
9644 this command line to your document preamble:
9647 \begin_layout Standard
9652 setcounter{LTchunksize}{100}
9655 \begin_layout Subsection
9656 Floats and Longtables
9657 \begin_inset Index idx
9660 \begin_layout Plain Layout
9669 \begin_layout Standard
9670 There might be problems when a float appears on the same page where a longtable
9672 To avoid such a situation, insert a
9673 \begin_inset Quotes eld
9677 \begin_inset Quotes erd
9682 Insert\SpecialChar menuseparator
9683 Formatting\SpecialChar menuseparator
9685 \begin_inset space ~
9690 ) before your longtable.
9693 \begin_layout Subsection
9695 \begin_inset Index idx
9698 \begin_layout Plain Layout
9699 Longtables ! Forced Page Breaks
9707 \begin_layout Standard
9708 By default tables are only broken between rows.
9709 If you have a cell with multiples lines and want to have a page break within
9710 the cell, insert the new line command
9711 \begin_inset Quotes eld
9723 \begin_inset Quotes erd
9727 Code at the point of the cell where it can be broken.
9736 command you have to insert in \SpecialChar TeX
9738 \begin_inset Quotes eld
9746 \begin_inset Quotes erd
9749 characters as the number of the following table columns.
9754 is the character to separate table cells.
9755 Write in \SpecialChar TeX
9760 the content of the corresponding following cell and delete the content
9762 \begin_inset Newline newline
9773 command, insert as many
9777 characters as the number of table columns before the current column.
9779 \begin_inset space ~
9783 \begin_inset CommandInset ref
9785 reference "tab:ForcedPagebreak"
9789 the cell that should be broken is in the second column followed by another
9791 Therefore the following command was inserted in the cell as \SpecialChar TeX
9794 \begin_inset Quotes eld
9802 \begin_inset Quotes erd
9808 \begin_layout Standard
9818 \begin_inset Newline newline
9824 \begin_layout Standard
9826 \begin_inset Quotes eld
9830 \begin_inset Quotes erd
9833 in the third column of the row was deleted.
9840 is only needed when a page break should definitely occur at this position,
9841 otherwise it would be a conditional break.
9842 If your footer row of the longtable has for a certain reason no upper line
9843 but you would have a horizontal line where the cell is broken, use this
9847 \begin_layout Standard
9855 \begin_inset Newline newline
9863 \begin_layout Standard
9864 When the cell to be broken is in the last column, the command
9867 \begin_layout Standard
9877 \begin_layout Standard
9878 must be inserted as \SpecialChar TeX
9879 Code at the beginning of the cell.
9880 This ensures that the part of the cell that will be displayed on the new
9881 page appears with the full width.
9882 \begin_inset Separator parbreak
9888 \begin_layout Standard
9890 \begin_inset Tabular
9891 <lyxtabular version="3" rows="38" columns="3">
9892 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9893 <column alignment="left" valignment="top" width="0cm">
9894 <column alignment="left" valignment="top" width="3cm">
9895 <column alignment="center" valignment="top" width="0pt">
9896 <row endfirsthead="true" caption="true">
9897 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9900 \begin_layout Plain Layout
9901 \begin_inset Caption Standard
9903 \begin_layout Plain Layout
9904 Table with forced page break in table cell
9905 \begin_inset CommandInset label
9907 name "tab:ForcedPagebreak"
9912 \begin_inset Argument 1
9915 \begin_layout Plain Layout
9916 Table with forced page break in table cell
9931 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9950 <row endfirsthead="true">
9951 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9957 Example Phone List (ignore the names)
9962 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9974 \begin_layout Plain Layout
9981 <row endfirsthead="true">
9982 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9985 \begin_layout Plain Layout
9993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9996 \begin_layout Plain Layout
10002 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10005 \begin_layout Plain Layout
10014 <row endhead="true">
10015 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10018 \begin_layout Plain Layout
10022 \begin_layout Plain Layout
10026 caption*{Continued Example Phone List}
10040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10059 <row endhead="true">
10060 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10071 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10074 \begin_layout Plain Layout
10080 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10083 \begin_layout Plain Layout
10090 <row endhead="true">
10091 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10094 \begin_layout Plain Layout
10102 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10105 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Plain Layout
10123 <row endfoot="true">
10124 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10127 \begin_layout Plain Layout
10128 continued on next page
10133 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10136 \begin_layout Plain Layout
10142 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10156 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10173 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10539 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10548 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10570 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10601 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10632 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10663 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10694 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10725 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10756 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10787 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10818 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10827 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10849 \begin_layout Plain Layout
10851 Fürst von Montecompatri, 11.
10852 Fürst von Sulmona und Vivaro, 10.
10853 Fürst von Rossano, 5.
10854 Herzog von Canemorte, 11.
10855 Herzog von Palombara, 5.
10856 Herzog von Castelchiodato,
10860 \begin_layout Plain Layout
10871 \begin_layout Plain Layout
10879 Herzog von Poggionativo, 11.
10880 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10881 Graf von Valinfreda, 11.
10882 Baron von Cropalati, 11.
10883 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10902 \begin_layout Plain Layout
10910 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10913 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10922 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10944 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10953 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10975 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11006 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11015 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11037 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11046 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11068 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11099 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11108 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11130 \begin_layout Plain Layout
11136 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11139 \begin_layout Plain Layout
11153 \begin_layout Section
11154 Multiple Lines, Columns and Rows
11157 \begin_layout Subsection
11158 Multiple Lines in Table Cells
11159 \begin_inset CommandInset label
11161 name "subsec:Multiple-Lines-in"
11166 \begin_inset Index idx
11169 \begin_layout Plain Layout
11170 Multiple Lines in Table Cells
11176 \begin_inset Index idx
11179 \begin_layout Plain Layout
11188 \begin_layout Standard
11190 \begin_inset Float table
11196 \begin_layout Plain Layout
11197 \begin_inset Caption Standard
11199 \begin_layout Plain Layout
11200 \begin_inset CommandInset label
11202 name "tab:Table-with-multiple"
11206 Table with multiple lines in cells
11214 \begin_layout Plain Layout
11216 \begin_inset Tabular
11217 <lyxtabular version="3" rows="3" columns="3">
11218 <features tabularvalignment="middle">
11219 <column alignment="center" valignment="middle" width="2.5cm">
11220 <column alignment="center" valignment="middle">
11221 <column alignment="center" valignment="middle">
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11228 \begin_inset Newline linebreak
11236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11239 \begin_layout Plain Layout
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11248 \begin_layout Plain Layout
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11259 \begin_layout Plain Layout
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11268 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11277 \begin_layout Plain Layout
11285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11288 \begin_layout Plain Layout
11294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11297 \begin_layout Plain Layout
11303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11306 \begin_layout Plain Layout
11325 \begin_layout Standard
11326 Setting a fixed width for a column enables you to enter text as a paragraph
11327 with multiple lines and hyphenation.
11330 \begin_layout Standard
11332 \begin_inset space ~
11336 \begin_inset CommandInset ref
11338 reference "tab:Table-with-multiple"
11342 , create a 3×3 table, mark the first cell and right-click on it.
11343 In the appearing table dialog we set a cell width of 2.5
11344 \begin_inset space \thinspace{}
11347 cm and choose centered for the vertical and horizontal alignment.
11348 The vertical alignment is used for all cells of the row.
11349 As our text is smaller than 2.5
11350 \begin_inset space \thinspace{}
11353 cm, only one line will appear.
11354 To get two lines, a justified line break (shortcut
11357 arg "newline-insert linebreak"
11361 If the text is wider than the set cell width, it will automatically be
11362 broken to several lines.
11365 \begin_layout Standard
11366 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11367 by \SpecialChar LaTeX
11368 if it is the first entry.
11369 Therefore you need to insert something to prevent the word not being the
11371 So add a horizontal space of 0
11372 \begin_inset space \thinspace{}
11375 pt before the word.
11376 As the space is zero, it doesn't change the output.
11378 \begin_inset space ~
11382 \begin_inset CommandInset ref
11384 reference "tab:Table-with-and"
11391 \begin_layout Standard
11392 \begin_inset Float table
11398 \begin_layout Plain Layout
11399 \begin_inset Caption Standard
11401 \begin_layout Plain Layout
11402 \begin_inset CommandInset label
11404 name "tab:Table-with-and"
11408 Table with and without hyphenation
11416 \begin_layout Plain Layout
11417 \begin_inset space \hfill{}
11421 \begin_inset Tabular
11422 <lyxtabular version="3" rows="3" columns="3">
11423 <features tabularvalignment="middle">
11424 <column alignment="center" valignment="middle" width="2.5cm">
11425 <column alignment="center" valignment="middle">
11426 <column alignment="center" valignment="middle">
11428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11431 \begin_layout Plain Layout
11432 verylongtablecellword
11437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11440 \begin_layout Plain Layout
11446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11449 \begin_layout Plain Layout
11457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11460 \begin_layout Plain Layout
11466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11469 \begin_layout Plain Layout
11475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11478 \begin_layout Plain Layout
11486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11489 \begin_layout Plain Layout
11495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11498 \begin_layout Plain Layout
11504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11507 \begin_layout Plain Layout
11519 \begin_inset space \hfill{}
11523 \begin_inset Tabular
11524 <lyxtabular version="3" rows="3" columns="3">
11525 <features tabularvalignment="middle">
11526 <column alignment="center" valignment="middle" width="2.5cm">
11527 <column alignment="center" valignment="middle">
11528 <column alignment="center" valignment="middle">
11530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11533 \begin_layout Plain Layout
11534 \begin_inset space \hspace{}
11538 verylongtablecellword
11543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11546 \begin_layout Plain Layout
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11555 \begin_layout Plain Layout
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11566 \begin_layout Plain Layout
11572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11575 \begin_layout Plain Layout
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11584 \begin_layout Plain Layout
11592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11595 \begin_layout Plain Layout
11601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11604 \begin_layout Plain Layout
11610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11613 \begin_layout Plain Layout
11625 \begin_inset space \hfill{}
11636 \begin_layout Subsection
11638 \begin_inset CommandInset label
11640 name "subsec:Multicolumns"
11645 \begin_inset Index idx
11648 \begin_layout Plain Layout
11655 \begin_inset Index idx
11658 \begin_layout Plain Layout
11659 Table ! Multicolumns
11667 \begin_layout Subsubsection
11671 \begin_layout Standard
11672 To merge cells over multiple columns, select as many cells within a row
11673 as you want to merge and use either the table-toolbar button
11676 arg "inset-modify tabular multicolumn"
11681 Edit\SpecialChar menuseparator
11682 Table\SpecialChar menuseparator
11685 , or right click on the marked cells and choose
11689 in the context menu.
11692 \begin_layout Standard
11693 Multicolumns have there own cell settings.
11694 That means changing cell borders, cell alignment, and the width only affects
11696 Here is an example table with a multicolumn cell in the first row and one
11697 in the last row without the upper border:
11698 \begin_inset Separator parbreak
11704 \begin_layout Standard
11706 \begin_inset Tabular
11707 <lyxtabular version="3" rows="3" columns="4">
11708 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11709 <column alignment="center" valignment="top" width="0pt">
11710 <column alignment="center" valignment="middle">
11711 <column alignment="center" valignment="top" width="0in">
11712 <column alignment="center" valignment="top" width="0pt">
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11717 \begin_layout Plain Layout
11723 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11726 \begin_layout Plain Layout
11732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11735 \begin_layout Plain Layout
11741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11744 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11755 \begin_layout Plain Layout
11770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11773 \begin_layout Plain Layout
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11791 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11802 \begin_layout Plain Layout
11808 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11829 \begin_layout Plain Layout
11843 \begin_layout Subsubsection
11844 Multicolumn Calculations
11845 \begin_inset CommandInset label
11847 name "subsec:Multicolumn-Calculations"
11852 \begin_inset Index idx
11855 \begin_layout Plain Layout
11856 Multicolumns ! Calculations
11864 \begin_layout Standard
11866 supports multicolumns directly, but we have to take account of the cell
11867 width of the columns spanned by the multicolumn cell.
11870 \begin_layout Standard
11871 \begin_inset Float table
11877 \begin_layout Plain Layout
11878 \begin_inset Caption Standard
11880 \begin_layout Plain Layout
11881 \begin_inset CommandInset label
11883 name "tab:Table-with-centered"
11887 Table with centered multicolumn text above two columns that have exactly
11888 half the width of the multicolumn cell
11889 \begin_inset Argument 1
11892 \begin_layout Plain Layout
11893 Perfect multicolumn table
11906 \begin_layout Plain Layout
11908 \begin_inset Tabular
11909 <lyxtabular version="3" rows="3" columns="3">
11910 <features tabularvalignment="middle">
11911 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11912 <column alignment="center" valignment="middle">
11913 <column alignment="center" valignment="top">
11915 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11918 \begin_layout Plain Layout
11919 multiple lines multicolumn
11924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11927 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11936 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11947 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11965 \begin_layout Plain Layout
11973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11976 \begin_layout Plain Layout
11982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11985 \begin_layout Plain Layout
11991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11994 \begin_layout Plain Layout
12013 \begin_layout Standard
12014 To create for example Table
12015 \begin_inset space ~
12019 \begin_inset CommandInset ref
12021 reference "tab:Table-with-centered"
12025 , mark the first two cells in the first row of a 3×3 table and right-click
12027 Now choose for this cell
12036 \begin_inset space \thinspace{}
12039 cm in the table dialog.
12040 The merged columns should have exactly half the width of the multicolumn
12041 cell, so that you would set a width of 1.25
12042 \begin_inset space \thinspace{}
12045 cm for the first column.
12046 The second column has then automatically a width of 1.25
12047 \begin_inset space \thinspace{}
12050 cm (multicolumn width - width of first column).
12051 This was done for Table
12052 \begin_inset space ~
12056 \begin_inset CommandInset ref
12058 reference "tab:Table-without-half"
12065 \begin_layout Standard
12066 \begin_inset Float table
12071 \begin_layout Plain Layout
12072 \begin_inset Caption Standard
12074 \begin_layout Plain Layout
12075 \begin_inset CommandInset label
12077 name "tab:Table-without-half"
12081 Table where the spanned table columns are not exactly half the width of
12082 the multicolumn cell
12083 \begin_inset Argument 1
12086 \begin_layout Plain Layout
12087 Imperfect multicolumn table
12100 \begin_layout Plain Layout
12102 \begin_inset Tabular
12103 <lyxtabular version="3" rows="3" columns="3">
12104 <features tabularvalignment="middle">
12105 <column alignment="center" valignment="top" width="1.25cm">
12106 <column alignment="center" valignment="top">
12107 <column alignment="center" valignment="top">
12109 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12112 \begin_layout Plain Layout
12113 multiple lines multicolumn
12118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12121 \begin_layout Plain Layout
12127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12130 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12141 \begin_layout Plain Layout
12147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12150 \begin_layout Plain Layout
12156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12159 \begin_layout Plain Layout
12167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12170 \begin_layout Plain Layout
12176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12188 \begin_layout Plain Layout
12207 \begin_layout Standard
12208 You can see that the first column is not half the width of the multicolumn
12209 cell, it is a bit bigger.
12210 The reason is that the specified width of a cell
12211 \begin_inset Formula $W_{g}$
12214 is not its total width
12215 \begin_inset Formula $W_{\mathrm{tot}}$
12218 because a cell is always a bit larger than specified.
12220 \begin_inset space ~
12224 \begin_inset CommandInset ref
12226 reference "cha:Explanation-of-Equation"
12230 explains this in detail.
12233 \begin_layout Standard
12235 \begin_inset Formula $W_{g\,n}$
12238 which the user needs to set when
12242 columns are spanned can be calculated, so that each column has a total
12244 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12248 \begin_inset Formula
12250 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12258 \begin_layout Standard
12259 In our case we have
12260 \begin_inset Formula $n=2$
12264 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12267 cm and the default values for the lengths, so that equation
12268 \begin_inset CommandInset ref
12275 \begin_inset Formula
12277 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12285 \begin_layout Standard
12286 To enable calculations in \SpecialChar LaTeX
12287 , the \SpecialChar LaTeX
12292 must be loaded with the document preamble line
12293 \begin_inset Index idx
12296 \begin_layout Plain Layout
12306 \begin_layout Standard
12314 \begin_layout Standard
12316 does not allow you to calculate lengths in the
12320 field of the table dialog.
12321 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12324 Here is an overview about the arguments:
12327 \begin_layout Itemize
12332 creates cell with a fixed width, its text is vertically top-aligned
12335 \begin_layout Itemize
12340 creates cell with a fixed width, its text is vertically centered
12343 \begin_layout Itemize
12348 creates cell with a fixed width, its text is vertically bottom-aligned
12351 \begin_layout Standard
12352 By entering a \SpecialChar LaTeX
12353 -argument, all cell settings set in the table dialog are overwritt
12357 \begin_layout Standard
12358 \begin_inset Note Greyedout
12361 \begin_layout Plain Layout
12366 Due to a bug, \SpecialChar LyX
12367 shows the overwritten settings anyway.
12375 \begin_layout Standard
12376 As the text should be horizontally centered, the command
12383 You can now enter the following \SpecialChar LaTeX
12384 -argument for the first spanned column:
12387 \begin_layout Standard
12392 centering}m{1.25cm-6.2pt}
12395 \begin_layout Standard
12400 means, that the commands inside the braces are applied before the cell
12404 \begin_layout Standard
12405 Although we have chosen centered alignment for the text of the multicolumn
12406 cell, it is still left aligned.
12407 This is because \SpecialChar LyX
12408 only applies the alignment to single columns.
12409 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12413 \begin_layout Standard
12421 \begin_layout Subsection
12423 \begin_inset CommandInset label
12425 name "subsec:Multirows"
12430 \begin_inset Index idx
12433 \begin_layout Plain Layout
12440 \begin_inset Index idx
12443 \begin_layout Plain Layout
12452 \begin_layout Standard
12453 To merge cells over multiple rows, select as many cells within a column
12454 as you want to merge and use either the table-toolbar button
12457 arg "inset-modify tabular multirow"
12462 Edit\SpecialChar menuseparator
12463 Table\SpecialChar menuseparator
12466 , or right click on the marked cells and choose
12470 in the context menu.
12473 \begin_layout Standard
12474 Here is an example table with a multirow in the first column:
12475 \begin_inset Separator parbreak
12481 \begin_layout Standard
12483 \begin_inset Tabular
12484 <lyxtabular version="3" rows="3" columns="3">
12485 <features tabularvalignment="middle">
12486 <column alignment="center" valignment="top" width="0pt">
12487 <column alignment="center" valignment="top">
12488 <column alignment="center" valignment="top">
12490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12493 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12502 \begin_layout Plain Layout
12508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12511 \begin_layout Plain Layout
12519 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12522 \begin_layout Plain Layout
12528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12531 \begin_layout Plain Layout
12537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12540 \begin_layout Plain Layout
12548 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12551 \begin_layout Plain Layout
12557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12560 \begin_layout Plain Layout
12566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12569 \begin_layout Plain Layout
12583 \begin_layout Standard
12584 The width of multirow cells is set by setting the width and alignment for
12590 shifts the content of the multirow up/down if the offset is positive/negative.
12593 \begin_layout Standard
12594 If the column of a multirow cell has no explicit width, the multirow cell
12595 inherits the alignment of the column.
12596 Otherwise it is by default left-aligned.
12597 To override the default, renew the command
12606 \begin_layout Standard
12618 \begin_layout Standard
12619 in the document preamble.
12620 Then all entries of multirow cells in the document are centered.
12621 If centering is only needed for several tables, you can renew the command
12622 in a \SpecialChar TeX
12623 Code box just before the table instead of the preamble.
12624 If the text should be right-aligned, replace
12637 To return to left-alignment
12646 \begin_layout Standard
12647 This is an example table with a right-aligned multirow cell that has a vertical
12649 \begin_inset space \thinspace{}
12653 \begin_inset space \thinspace{}
12657 \begin_inset Separator parbreak
12663 \begin_layout Standard
12669 \begin_layout Plain Layout
12683 \begin_inset Tabular
12684 <lyxtabular version="3" rows="4" columns="3">
12685 <features tabularvalignment="middle">
12686 <column alignment="center" valignment="top" width="3cm">
12687 <column alignment="center" valignment="top">
12688 <column alignment="center" valignment="top">
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12693 \begin_layout Plain Layout
12699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12702 \begin_layout Plain Layout
12708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12711 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12722 \begin_layout Plain Layout
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12731 \begin_layout Plain Layout
12737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12740 \begin_layout Plain Layout
12748 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12751 \begin_layout Plain Layout
12757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12760 \begin_layout Plain Layout
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12769 \begin_layout Plain Layout
12777 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12780 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12798 \begin_layout Plain Layout
12813 \begin_layout Plain Layout
12829 \begin_layout Standard
12830 To start a new line in a multirow you can use a forced line break (shortcut
12834 arg "newline-insert newline"
12837 ) but this will not respect the cell lines as demonstrated in this table:
12838 \begin_inset Separator parbreak
12844 \begin_layout Standard
12847 \begin_inset Tabular
12848 <lyxtabular version="3" rows="3" columns="2">
12849 <features tabularvalignment="middle">
12850 <column alignment="left" valignment="middle" width="2cm">
12851 <column alignment="center" valignment="top">
12853 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12856 \begin_layout Plain Layout
12858 \begin_inset Newline newline
12862 \begin_inset Newline newline
12870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Plain Layout
12881 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12884 \begin_layout Plain Layout
12890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12893 \begin_layout Plain Layout
12901 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12904 \begin_layout Plain Layout
12910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12913 \begin_layout Plain Layout
12927 \begin_layout Standard
12928 Therefore be careful with forced line breaks.
12931 \begin_layout Subsection
12932 Cells with diagonal line(s)
12935 \begin_layout Standard
12936 To tell the reader what is meant by column and row headings in a table,
12937 it is helpful to split the first cell of the table by one or two diagonal
12939 This can be achieved by loading the \SpecialChar LaTeX
12945 \begin_inset Index idx
12948 \begin_layout Plain Layout
12950 -packages ! picinpar
12955 in the document preamble.
12956 The package provides the command
12962 that is inserted as \SpecialChar TeX
12963 Code and that can take 2 or 3
12964 \begin_inset space ~
12970 \begin_layout Standard
12975 diagbox[options]{lower left}{upper right}
12978 \begin_layout Standard
12983 diagbox[options]{lower left}{upper left}{upper right}
12986 \begin_layout Standard
12987 The first scheme divides the cell by a single diagonal line and the arguments
12988 are placed below and above this line.
12989 The second scheme divides the cell by 2
12990 \begin_inset space ~
12996 \begin_layout Standard
13000 \begin_layout Plain Layout
13010 \begin_inset Note Note
13013 \begin_layout Plain Layout
13014 The following section will only be displayed when the \SpecialChar LaTeX
13027 \begin_layout Standard
13028 Here is an example table where
13034 is used in the 2-argument scheme in the first cell:
13035 \begin_inset VSpace medskip
13041 \begin_layout Standard
13043 \begin_inset Tabular
13044 <lyxtabular version="3" rows="4" columns="4">
13045 <features tabularvalignment="middle">
13046 <column alignment="center" valignment="top">
13047 <column alignment="center" valignment="top">
13048 <column alignment="center" valignment="top">
13049 <column alignment="center" valignment="top">
13051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13054 \begin_layout Plain Layout
13058 \begin_layout Plain Layout
13071 \begin_layout Plain Layout
13082 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13115 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13153 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13191 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13202 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13229 \begin_layout Plain Layout
13241 \begin_inset VSpace medskip
13247 \begin_layout Standard
13248 The 3-argument scheme is for example useful for cross-tables of sports leagues
13250 \begin_inset Separator parbreak
13256 \begin_layout Standard
13259 \begin_inset Tabular
13260 <lyxtabular version="3" rows="4" columns="4">
13261 <features tabularvalignment="middle">
13262 <column alignment="center" valignment="top" width="0pt">
13263 <column alignment="center" valignment="top">
13264 <column alignment="center" valignment="top">
13265 <column alignment="center" valignment="top">
13267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13270 \begin_layout Plain Layout
13274 \begin_layout Plain Layout
13287 \begin_layout Plain Layout
13298 \begin_layout Plain Layout
13309 \begin_layout Plain Layout
13321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13324 \begin_layout Plain Layout
13330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13333 \begin_layout Plain Layout
13339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13342 \begin_layout Plain Layout
13350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13353 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13362 \begin_layout Plain Layout
13368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13371 \begin_layout Plain Layout
13377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13380 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13391 \begin_layout Plain Layout
13397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13400 \begin_layout Plain Layout
13406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13409 \begin_layout Plain Layout
13415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13418 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13438 \begin_layout Plain Layout
13444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13447 \begin_layout Plain Layout
13453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13456 \begin_layout Plain Layout
13470 \begin_layout Standard
13471 For larger cross-tables one might use split cells in 2 or every corner of
13472 the table like in this example:
13473 \begin_inset Separator parbreak
13479 \begin_layout Standard
13482 \begin_inset Tabular
13483 <lyxtabular version="3" rows="5" columns="5">
13484 <features tabularvalignment="middle">
13485 <column alignment="center" valignment="top" width="0pt">
13486 <column alignment="center" valignment="top">
13487 <column alignment="center" valignment="top">
13488 <column alignment="center" valignment="top">
13489 <column alignment="center" valignment="top">
13491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13494 \begin_layout Plain Layout
13498 \begin_layout Plain Layout
13511 \begin_layout Plain Layout
13522 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13548 \begin_layout Plain Layout
13554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13557 \begin_layout Plain Layout
13563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13566 \begin_layout Plain Layout
13572 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13575 \begin_layout Plain Layout
13579 \begin_layout Plain Layout
13592 \begin_layout Plain Layout
13603 \begin_layout Plain Layout
13614 \begin_layout Plain Layout
13628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13631 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13678 \begin_layout Plain Layout
13684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13687 \begin_layout Plain Layout
13693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13696 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13714 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13725 \begin_layout Plain Layout
13731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13734 \begin_layout Plain Layout
13740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13743 \begin_layout Plain Layout
13749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13761 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13772 \begin_layout Plain Layout
13776 \begin_layout Plain Layout
13789 \begin_layout Plain Layout
13800 \begin_layout Plain Layout
13811 \begin_layout Plain Layout
13823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13826 \begin_layout Plain Layout
13832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13835 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13853 \begin_layout Plain Layout
13857 \begin_layout Plain Layout
13870 \begin_layout Plain Layout
13881 \begin_layout Plain Layout
13892 \begin_layout Plain Layout
13912 \begin_layout Standard
13913 To rotate the diagonal lines, the command option
13938 and represent a point of a compass.
13943 is for example the south-west corner.
13944 Thus in the lower left cell of the above table the command
13947 \begin_layout Standard
13952 diagbox[dir=SW]{Team home}{Result}{Team away}
13955 \begin_layout Standard
13957 If no direction is given, it will be NW.
13960 \begin_layout Standard
13961 The necessary width of split cells is automatically calculated.
13962 Thus if you set a fixed column width smaller than the calculated one, the
13963 cell's content will protrude the cell borders:
13964 \begin_inset Separator parbreak
13970 \begin_layout Standard
13973 \begin_inset Tabular
13974 <lyxtabular version="3" rows="2" columns="2">
13975 <features tabularvalignment="middle">
13976 <column alignment="center" valignment="top" width="3cm">
13977 <column alignment="center" valignment="top">
13979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13982 \begin_layout Plain Layout
13986 \begin_layout Plain Layout
13999 \begin_layout Plain Layout
14010 \begin_layout Plain Layout
14022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14025 \begin_layout Plain Layout
14033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14036 \begin_layout Plain Layout
14042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14045 \begin_layout Plain Layout
14059 \begin_layout Standard
14060 If you need a certain width for columns with a split cell, use the command
14065 (replace '3cm' by the width you need).
14066 In the following table the width of the first column is set to 4
14067 \begin_inset space \thinspace{}
14078 \begin_inset space \thinspace{}
14082 \begin_inset space \thinspace{}
14087 tabcolsep is necessary because the overall width is the width for the text
14088 (in this case the 4
14089 \begin_inset space \thinspace{}
14092 cm) plus two times the separation of the text and the cell border.
14093 The calculation of the width cannot be done in the command option of
14099 so one needs to create a new length which can be used later.
14100 This is done with the \SpecialChar TeX
14104 \begin_layout Standard
14112 \begin_inset Newline newline
14124 \begin_layout Standard
14128 \begin_layout Plain Layout
14137 \begin_layout Plain Layout
14153 \begin_layout Standard
14154 To enable calculations in \SpecialChar LaTeX
14155 one needs to load the package
14160 \begin_inset Index idx
14163 \begin_layout Plain Layout
14170 in the document preamble.
14173 \begin_layout Standard
14174 In this table you can now use the command
14177 \begin_layout Standard
14187 \begin_layout Standard
14189 \begin_inset Separator parbreak
14195 \begin_layout Standard
14198 \begin_inset Tabular
14199 <lyxtabular version="3" rows="2" columns="2">
14200 <features tabularvalignment="middle">
14201 <column alignment="center" valignment="top" width="4cm">
14202 <column alignment="center" valignment="top">
14204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14207 \begin_layout Plain Layout
14211 \begin_layout Plain Layout
14226 \begin_layout Plain Layout
14237 \begin_layout Plain Layout
14249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14252 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14286 \begin_layout Standard
14287 Note that the split cell needs to be the widest one in the column.
14288 Otherwise the length of the diagonal line cannot be calculated correctly
14289 like in this table:
14290 \begin_inset Separator parbreak
14296 \begin_layout Standard
14299 \begin_inset Tabular
14300 <lyxtabular version="3" rows="2" columns="2">
14301 <features tabularvalignment="middle">
14302 <column alignment="center" valignment="top" width="0pt">
14303 <column alignment="center" valignment="top">
14305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14308 \begin_layout Plain Layout
14312 \begin_layout Plain Layout
14325 \begin_layout Plain Layout
14336 \begin_layout Plain Layout
14348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Plain Layout
14359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14362 \begin_layout Plain Layout
14368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14371 \begin_layout Plain Layout
14385 \begin_layout Standard
14386 In this case use the
14397 It is then not necessary to add 2
14399 tabcolsep because the cell width is now the width of the column.
14400 In this table a width of 3
14401 \begin_inset space \thinspace{}
14405 \begin_inset Separator parbreak
14411 \begin_layout Standard
14414 \begin_inset Tabular
14415 <lyxtabular version="3" rows="2" columns="2">
14416 <features tabularvalignment="middle">
14417 <column alignment="center" valignment="top" width="0pt">
14418 <column alignment="center" valignment="top">
14420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14423 \begin_layout Plain Layout
14427 \begin_layout Plain Layout
14431 diagbox[width=3cm]{
14440 \begin_layout Plain Layout
14451 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14466 \begin_layout Plain Layout
14474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14477 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14486 \begin_layout Plain Layout
14500 \begin_layout Standard
14501 For multiple text lines in split cells one needs some extra height to fit
14502 the text to the cell.
14503 This can be achieved with the
14513 (replace '3cm' by the height you need).
14514 In the following table the command
14517 \begin_layout Standard
14522 diagbox[width=3cm,height=1.4cm]{A
14533 \begin_layout Standard
14534 is used in the first cell.
14543 creates hereby the line break.
14547 \begin_layout Plain Layout
14548 Breaking lines with
14552 is only possible when the column has a fixed width.
14558 \begin_inset Separator parbreak
14564 \begin_layout Standard
14567 \begin_inset Tabular
14568 <lyxtabular version="3" rows="2" columns="2">
14569 <features tabularvalignment="middle">
14570 <column alignment="center" valignment="top">
14571 <column alignment="center" valignment="top">
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14576 \begin_layout Plain Layout
14580 \begin_layout Plain Layout
14584 diagbox[width=3cm,height=1.4cm]{
14593 \begin_layout Plain Layout
14608 \begin_layout Plain Layout
14619 \begin_layout Plain Layout
14634 \begin_layout Plain Layout
14646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14649 \begin_layout Plain Layout
14657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14660 \begin_layout Plain Layout
14666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14669 \begin_layout Plain Layout
14683 \begin_layout Standard
14687 \begin_layout Plain Layout
14697 \begin_inset Note Note
14700 \begin_layout Plain Layout
14701 The following will be displayed when the \SpecialChar LaTeX
14714 \begin_layout Standard
14715 You need to install the \SpecialChar LaTeX
14720 to see the following part of this section in the output.
14723 \begin_layout Standard
14727 \begin_layout Plain Layout
14739 \begin_layout Standard
14740 For more info about the \SpecialChar LaTeX
14745 , see its documentation,
14746 \begin_inset CommandInset citation
14755 \begin_layout Section
14757 \begin_inset CommandInset label
14759 name "sec:Formal-Tables"
14764 \begin_inset Index idx
14767 \begin_layout Plain Layout
14776 \begin_layout Standard
14777 Tables are often typeset in books similar to Table
14778 \begin_inset space ~
14782 \begin_inset CommandInset ref
14784 reference "tab:Example-booktabs-table"
14789 This kind of tables is called
14790 \begin_inset Quotes eld
14798 \begin_inset Quotes erd
14802 To make a table a formal table use the option
14810 tab of the table dialog.
14813 \begin_layout Standard
14814 \begin_inset Float table
14820 \begin_layout Plain Layout
14821 \begin_inset Caption Standard
14823 \begin_layout Plain Layout
14824 \begin_inset CommandInset label
14826 name "tab:Example-booktabs-table"
14830 Example booktabs-table
14838 \begin_layout Plain Layout
14840 \begin_inset Tabular
14841 <lyxtabular version="3" rows="8" columns="4">
14842 <features booktabs="true" tabularvalignment="middle">
14843 <column alignment="center" valignment="top">
14844 <column alignment="center" valignment="top">
14845 <column alignment="center" valignment="top">
14846 <column alignment="center" valignment="top">
14848 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14851 \begin_layout Plain Layout
14857 <cell alignment="center" valignment="top" topline="true" usebox="none">
14860 \begin_layout Plain Layout
14862 \begin_inset space \thinspace{}
14870 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14873 \begin_layout Plain Layout
14875 \begin_inset space \thinspace{}
14883 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14886 \begin_layout Plain Layout
14894 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14897 \begin_layout Plain Layout
14901 \begin_layout Plain Layout
14914 \begin_layout Plain Layout
14923 Detector thickness in µm
14928 <cell alignment="center" valignment="top" usebox="none">
14931 \begin_layout Plain Layout
14937 <cell alignment="center" valignment="top" usebox="none">
14940 \begin_layout Plain Layout
14946 <cell alignment="center" valignment="top" usebox="none">
14949 \begin_layout Plain Layout
14957 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14960 \begin_layout Plain Layout
14966 <cell alignment="center" valignment="top" topline="true" usebox="none">
14969 \begin_layout Plain Layout
14975 <cell alignment="center" valignment="top" topline="true" usebox="none">
14978 \begin_layout Plain Layout
14984 <cell alignment="center" valignment="top" topline="true" usebox="none">
14987 \begin_layout Plain Layout
14994 <row topspace="default">
14995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14998 \begin_layout Plain Layout
14999 Spatial resolution in µm
15004 <cell alignment="center" valignment="top" usebox="none">
15007 \begin_layout Plain Layout
15013 <cell alignment="center" valignment="top" usebox="none">
15016 \begin_layout Plain Layout
15022 <cell alignment="center" valignment="top" usebox="none">
15025 \begin_layout Plain Layout
15032 <row topspace="default">
15033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15036 \begin_layout Plain Layout
15038 \begin_inset Formula $f_{\mathrm{max}}$
15046 <cell alignment="center" valignment="top" usebox="none">
15049 \begin_layout Plain Layout
15055 <cell alignment="center" valignment="top" usebox="none">
15058 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" usebox="none">
15067 \begin_layout Plain Layout
15074 <row topspace="default">
15075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15078 \begin_layout Plain Layout
15082 \begin_layout Plain Layout
15086 cmidrule[2pt](l{10pt}){1-1}
15091 LSF-spatial resolution
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" usebox="none">
15108 \begin_layout Plain Layout
15114 <cell alignment="center" valignment="top" usebox="none">
15117 \begin_layout Plain Layout
15125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15128 \begin_layout Plain Layout
15134 <cell alignment="center" valignment="top" usebox="none">
15137 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15163 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15166 \begin_layout Plain Layout
15172 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15175 \begin_layout Plain Layout
15181 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15184 \begin_layout Plain Layout
15190 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15193 \begin_layout Plain Layout
15212 \begin_layout Standard
15213 Spaces to table rows can be added using the
15217 tab of the table dialog as described in section
15218 \begin_inset space ~
15222 \begin_inset CommandInset ref
15224 reference "subsec:Row-Spacing"
15231 \begin_layout Standard
15232 Unlike normal tables, formal tables have no vertical table lines.
15233 The horizontal table lines can be set as for normal tables but they appear
15234 with different widths in the output:
15235 \begin_inset Newline newline
15238 The first and the last table line have a default width of 0.08
15239 \begin_inset space \thinspace{}
15242 em while the other lines have a default width of 0.05
15243 \begin_inset space \thinspace{}
15249 \begin_layout Standard
15250 The default widths can be changed with the following preamble lines
15253 \begin_layout Standard
15263 \begin_inset Newline newline
15275 \begin_layout Standard
15276 This example is for the first line, the so called
15281 If you want to change the width for the last line, replace
15290 To change the width for the other lines replace
15299 You can use all units listed in appendix
15300 \begin_inset space ~
15304 \begin_inset CommandInset ref
15306 reference "cha:Units-available-in"
15313 \begin_layout Standard
15314 Lines that do not span all table columns can be created by setting a table
15315 line for multicolumn cells.
15317 will then internally use the command
15323 to create this line.
15327 \begin_layout Standard
15332 cmidrule[height](trim){startcol-endcol}
15335 \begin_layout Standard
15342 are currently not supported by \SpecialChar LyX
15343 so you have to use \SpecialChar TeX
15352 s can manually be created by inserting the command as \SpecialChar TeX
15354 cell entry of the first cell of a row.
15355 The line is then drawn in the output above the current row.
15358 \begin_layout Standard
15359 The default for the optional
15364 \begin_inset space \thinspace{}
15372 is the number of the column where the line starts and
15376 the column number where the line ends.
15381 always needs to be specified, also when the line should span only one column.
15382 The optional parameter
15399 Using for example the parameter
15403 means that the line is trimmed from its left end by 2
15404 \begin_inset space \thinspace{}
15408 If you don't specify the
15412 the line is trimmed by the default of 0.5
15413 \begin_inset space \thinspace{}
15419 \begin_layout Standard
15420 \begin_inset VSpace bigskip
15424 \begin_inset space ~
15428 \begin_inset CommandInset ref
15430 reference "tab:Example-booktabs-table"
15434 was created using the commands
15437 \begin_layout Standard
15447 \begin_layout Standard
15448 at the beginning of the second row and
15451 \begin_layout Standard
15456 cmidrule[2pt](l{10pt}){1-1}
15459 \begin_layout Standard
15463 \begin_layout Standard
15464 \begin_inset VSpace bigskip
15470 \begin_layout Standard
15471 You might want to have overlapping
15478 \begin_inset space ~
15482 \begin_inset CommandInset ref
15484 reference "tab:Special-booktabs-table"
15489 This can be achieved with the \SpecialChar TeX
15493 \begin_layout Standard
15501 \begin_layout Standard
15502 The command that was used for the second row of Table
15503 \begin_inset space ~
15507 \begin_inset CommandInset ref
15509 reference "tab:Special-booktabs-table"
15516 \begin_layout Standard
15530 \begin_layout Standard
15531 The command for the sixth row is
15534 \begin_layout Standard
15546 \begin_layout Standard
15547 \begin_inset VSpace bigskip
15553 \begin_layout Standard
15554 If you are in any way not satisfied with the border line spacing, you can
15555 use the following command to produce lines that span over all table columns
15560 \begin_layout Standard
15565 specialrule{width}{space above}{space below}
15568 \begin_layout Standard
15569 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15576 \begin_inset CommandInset citation
15583 \begin_inset Index idx
15586 \begin_layout Plain Layout
15588 -packages ! booktabs
15596 \begin_layout Standard
15597 \begin_inset Float table
15603 \begin_layout Plain Layout
15604 \begin_inset Caption Standard
15606 \begin_layout Plain Layout
15607 \begin_inset CommandInset label
15609 name "tab:Special-booktabs-table"
15613 Special booktabs-table
15621 \begin_layout Plain Layout
15623 \begin_inset Tabular
15624 <lyxtabular version="3" rows="8" columns="4">
15625 <features booktabs="true" tabularvalignment="middle">
15626 <column alignment="center" valignment="top">
15627 <column alignment="center" valignment="top">
15628 <column alignment="center" valignment="top">
15629 <column alignment="center" valignment="top">
15631 <cell alignment="center" valignment="top" topline="true" usebox="none">
15634 \begin_layout Plain Layout
15640 <cell alignment="center" valignment="top" topline="true" usebox="none">
15643 \begin_layout Plain Layout
15645 \begin_inset space \thinspace{}
15653 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15656 \begin_layout Plain Layout
15658 \begin_inset space \thinspace{}
15666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15669 \begin_layout Plain Layout
15677 <cell alignment="center" valignment="top" usebox="none">
15680 \begin_layout Plain Layout
15684 \begin_layout Plain Layout
15697 \begin_layout Plain Layout
15710 \begin_layout Plain Layout
15723 \begin_layout Plain Layout
15732 Detector thickness in µm
15737 <cell alignment="center" valignment="top" usebox="none">
15740 \begin_layout Plain Layout
15746 <cell alignment="center" valignment="top" usebox="none">
15749 \begin_layout Plain Layout
15755 <cell alignment="center" valignment="top" usebox="none">
15758 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" topline="true" usebox="none">
15769 \begin_layout Plain Layout
15775 <cell alignment="center" valignment="top" topline="true" usebox="none">
15778 \begin_layout Plain Layout
15784 <cell alignment="center" valignment="top" topline="true" usebox="none">
15787 \begin_layout Plain Layout
15793 <cell alignment="center" valignment="top" topline="true" usebox="none">
15796 \begin_layout Plain Layout
15803 <row topspace="default">
15804 <cell alignment="center" valignment="top" usebox="none">
15807 \begin_layout Plain Layout
15808 Spatial resolution in µm
15813 <cell alignment="center" valignment="top" usebox="none">
15816 \begin_layout Plain Layout
15822 <cell alignment="center" valignment="top" usebox="none">
15825 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" usebox="none">
15834 \begin_layout Plain Layout
15841 <row topspace="default">
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15847 \begin_inset Formula $f_{\mathrm{max}}$
15855 <cell alignment="center" valignment="top" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" usebox="none">
15867 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" usebox="none">
15876 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" topline="true" usebox="none">
15887 \begin_layout Plain Layout
15891 \begin_layout Plain Layout
15904 \begin_layout Plain Layout
15913 LSF-spatial resolution
15918 <cell alignment="center" valignment="top" topline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" topline="true" usebox="none">
15930 \begin_layout Plain Layout
15936 <cell alignment="center" valignment="top" topline="true" usebox="none">
15939 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" usebox="none">
15950 \begin_layout Plain Layout
15956 <cell alignment="center" valignment="top" usebox="none">
15959 \begin_layout Plain Layout
15965 <cell alignment="center" valignment="top" usebox="none">
15968 \begin_layout Plain Layout
15974 <cell alignment="center" valignment="top" usebox="none">
15977 \begin_layout Plain Layout
15985 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15988 \begin_layout Plain Layout
15994 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15997 \begin_layout Plain Layout
16003 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16006 \begin_layout Plain Layout
16012 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16015 \begin_layout Plain Layout
16034 \begin_layout Section
16035 Vertical Table Alignment
16036 \begin_inset Index idx
16039 \begin_layout Plain Layout
16048 \begin_layout Standard
16049 To align tables vertically in a text line, the table must be inside a box.
16050 The box can then be vertically aligned as described in section
16051 \begin_inset space ~
16055 \begin_inset CommandInset ref
16057 reference "sec:Box-Dialog"
16064 \begin_layout Standard
16065 In the following example the tables are inside a minipage
16069 \begin_layout Plain Layout
16070 Minipages are described in section
16071 \begin_inset space ~
16075 \begin_inset CommandInset ref
16077 reference "sec:Minipages"
16086 box that has a width of 15
16087 \begin_inset space \thinspace{}
16093 \begin_layout Itemize
16095 \begin_inset Box Frameless
16105 height_special "totalheight"
16110 backgroundcolor "none"
16113 \begin_layout Plain Layout
16114 \begin_inset Tabular
16115 <lyxtabular version="3" rows="3" columns="3">
16116 <features tabularvalignment="middle">
16117 <column alignment="center" valignment="top">
16118 <column alignment="center" valignment="top">
16119 <column alignment="center" valignment="top">
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16124 \begin_layout Plain Layout
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16133 \begin_layout Plain Layout
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16142 \begin_layout Plain Layout
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16153 \begin_layout Plain Layout
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16162 \begin_layout Plain Layout
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16171 \begin_layout Plain Layout
16179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16182 \begin_layout Plain Layout
16188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16191 \begin_layout Plain Layout
16197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16200 \begin_layout Plain Layout
16220 \begin_layout Plain Layout
16232 \begin_inset Box Frameless
16242 height_special "totalheight"
16247 backgroundcolor "none"
16250 \begin_layout Plain Layout
16251 \begin_inset Tabular
16252 <lyxtabular version="3" rows="3" columns="3">
16253 <features tabularvalignment="middle">
16254 <column alignment="center" valignment="top">
16255 <column alignment="center" valignment="top">
16256 <column alignment="center" valignment="top">
16258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16261 \begin_layout Plain Layout
16267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16270 \begin_layout Plain Layout
16276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16279 \begin_layout Plain Layout
16287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16290 \begin_layout Plain Layout
16296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16299 \begin_layout Plain Layout
16305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16308 \begin_layout Plain Layout
16316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16319 \begin_layout Plain Layout
16325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16328 \begin_layout Plain Layout
16334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16337 \begin_layout Plain Layout
16357 \begin_layout Plain Layout
16367 \begin_layout Itemize
16369 \begin_inset Box Frameless
16379 height_special "totalheight"
16384 backgroundcolor "none"
16387 \begin_layout Plain Layout
16388 \begin_inset Tabular
16389 <lyxtabular version="3" rows="3" columns="3">
16390 <features tabularvalignment="middle">
16391 <column alignment="center" valignment="top">
16392 <column alignment="center" valignment="top">
16393 <column alignment="center" valignment="top">
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16398 \begin_layout Plain Layout
16404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16407 \begin_layout Plain Layout
16413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16416 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16427 \begin_layout Plain Layout
16433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16436 \begin_layout Plain Layout
16442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16445 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16465 \begin_layout Plain Layout
16471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16474 \begin_layout Plain Layout
16493 \begin_layout Itemize
16495 \begin_inset Box Frameless
16505 height_special "totalheight"
16510 backgroundcolor "none"
16513 \begin_layout Plain Layout
16514 \begin_inset Tabular
16515 <lyxtabular version="3" rows="3" columns="3">
16516 <features tabularvalignment="middle">
16517 <column alignment="center" valignment="top">
16518 <column alignment="center" valignment="top">
16519 <column alignment="center" valignment="top">
16521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16524 \begin_layout Plain Layout
16530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16533 \begin_layout Plain Layout
16539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16542 \begin_layout Plain Layout
16550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16553 \begin_layout Plain Layout
16559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16562 \begin_layout Plain Layout
16568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16582 \begin_layout Plain Layout
16588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16591 \begin_layout Plain Layout
16597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16600 \begin_layout Plain Layout
16620 \begin_layout Plain Layout
16632 \begin_inset Box Frameless
16642 height_special "totalheight"
16647 backgroundcolor "none"
16650 \begin_layout Plain Layout
16651 \begin_inset Tabular
16652 <lyxtabular version="3" rows="3" columns="3">
16653 <features tabularvalignment="middle">
16654 <column alignment="center" valignment="top">
16655 <column alignment="center" valignment="top">
16656 <column alignment="center" valignment="top">
16658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16661 \begin_layout Plain Layout
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16670 \begin_layout Plain Layout
16676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16679 \begin_layout Plain Layout
16687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16690 \begin_layout Plain Layout
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16699 \begin_layout Plain Layout
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16708 \begin_layout Plain Layout
16716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16719 \begin_layout Plain Layout
16725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16728 \begin_layout Plain Layout
16734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16737 \begin_layout Plain Layout
16757 \begin_layout Plain Layout
16767 \begin_layout Standard
16768 As you will see, the content of the first and last table row is not correctly
16770 To get this alignment, the minipage box must be set into a raisebox.
16774 \begin_layout Plain Layout
16775 Raiseboxes are described in section
16776 \begin_inset space ~
16780 \begin_inset CommandInset ref
16782 reference "subsec:Vertical-Alignment"
16791 In the example above the second table in the first item is aligned using
16792 the \SpecialChar TeX
16796 \begin_layout Standard
16806 \begin_layout Standard
16808 After the box the closing brace
16812 is inserted as \SpecialChar TeX
16814 For the second table in the last item the command
16817 \begin_layout Standard
16827 \begin_layout Standard
16831 \begin_layout Standard
16832 \begin_inset Note Greyedout
16835 \begin_layout Plain Layout
16840 The alignment of the table row content to the surrounding text line is
16842 The required value for the
16848 command for this alignment depends on the document font, the font size,
16849 and the table line thickness.
16857 \begin_layout Section
16859 \begin_inset CommandInset label
16861 name "sec:Colored-Tables"
16866 \begin_inset Index idx
16869 \begin_layout Plain Layout
16878 \begin_layout Subsection
16880 \begin_inset Index idx
16883 \begin_layout Plain Layout
16884 Table Color ! for Cells
16890 \begin_inset Index idx
16893 \begin_layout Plain Layout
16894 Color ! for Table Cells
16902 \begin_layout Standard
16903 \begin_inset Float table
16909 \begin_layout Plain Layout
16910 \begin_inset Caption Standard
16912 \begin_layout Plain Layout
16913 \begin_inset CommandInset label
16915 name "tab:Table-colored-without"
16919 Table colored without using the package
16924 \begin_inset Argument 1
16927 \begin_layout Plain Layout
16928 Table without colortbl
16941 \begin_layout Plain Layout
16943 \begin_inset Tabular
16944 <lyxtabular version="3" rows="3" columns="3">
16945 <features tabularvalignment="middle">
16946 <column alignment="center" valignment="top">
16947 <column alignment="center" valignment="top">
16948 <column alignment="center" valignment="top">
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Plain Layout
16961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16964 \begin_layout Plain Layout
16972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16975 \begin_layout Plain Layout
16985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16988 \begin_layout Plain Layout
16996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16999 \begin_layout Plain Layout
17007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17010 \begin_layout Plain Layout
17020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17023 \begin_layout Plain Layout
17031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17034 \begin_layout Plain Layout
17042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17045 \begin_layout Plain Layout
17066 \begin_layout Standard
17067 If you only need colored text, mark the cells and choose a color in the
17071 \begin_inset space ~
17076 dialog (toolbar button
17079 arg "dialog-show character"
17083 This was used to create Table
17084 \begin_inset space ~
17088 \begin_inset CommandInset ref
17090 reference "tab:Table-colored-without"
17095 In any other case you have to use the \SpecialChar LaTeX
17101 \begin_inset Index idx
17104 \begin_layout Plain Layout
17106 -packages ! colortbl
17114 \begin_layout Standard
17118 \begin_layout Plain Layout
17128 \begin_inset Note Note
17131 \begin_layout Plain Layout
17132 The following section part will only be displayed when the \SpecialChar LaTeX
17145 \begin_layout Standard
17146 To create colored tables,
17150 must be loaded in the preamble with the line
17153 \begin_layout Standard
17158 usepackage{colortbl}
17161 \begin_layout Standard
17162 The color of a column is adjusted with the command
17165 \begin_layout Standard
17170 columncolor{name of color}
17173 \begin_layout Standard
17179 More about the command
17183 is contained in section
17184 \begin_inset space ~
17188 \begin_inset CommandInset ref
17190 reference "subsec:Multicolumn-Calculations"
17197 \begin_layout Standard
17198 The following color names are predefined:
17201 \begin_layout Standard
17235 \begin_layout Standard
17236 \begin_inset VSpace medskip
17242 \begin_layout Standard
17243 If you add the options
17246 \begin_layout Standard
17249 usenames,dvipsnames
17252 \begin_layout Standard
17253 to the document class options in the document settings, you can additionally
17255 \begin_inset space ~
17259 These colors are listed in appendix
17260 \begin_inset space ~
17264 \begin_inset CommandInset ref
17266 reference "chap:List-of-dvips-colornames"
17271 One of these colors,
17275 , is used as example in Table
17276 \begin_inset space ~
17280 \begin_inset CommandInset ref
17282 reference "tab:Table-colored-using"
17289 \begin_layout Standard
17290 \begin_inset VSpace medskip
17296 \begin_layout Standard
17297 You can also define your own color with the command
17300 \begin_layout Standard
17305 definecolor{color name}{color model}{color values}
17308 \begin_layout Standard
17309 The color model can be
17312 \begin_layout Labeling
17313 \labelwidthstring 00.00.0000
17314 cmyk: cyan, magenta, yellow, black
17317 \begin_layout Labeling
17318 \labelwidthstring 00.00.0000
17319 rgb: red, green blue
17322 \begin_layout Labeling
17323 \labelwidthstring 00.00.0000
17327 \begin_layout Standard
17328 and the color values are comma separated numbers between 0 and 1 describing
17329 the factor for the corresponding color of the color model.
17332 \begin_layout Standard
17334 \begin_inset space \thinspace{}
17338 \begin_inset space \space{}
17345 " in the preamble with
17348 \begin_layout Standard
17353 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17356 \begin_layout Standard
17364 \begin_layout Standard
17369 definecolor{lightgray}{gray}{0.8}
17372 \begin_layout Standard
17373 \begin_inset VSpace medskip
17379 \begin_layout Standard
17380 Lines are colored with the command
17383 \begin_layout Standard
17388 rowcolor{name of color}
17391 \begin_layout Standard
17392 and cells are colored with the command
17395 \begin_layout Standard
17400 cellcolor{name of color}
17403 \begin_layout Standard
17404 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17408 \begin_layout Standard
17409 To color characters in the table, mark the cells and use the
17412 \begin_inset space ~
17418 If a cell contains \SpecialChar TeX
17419 Code mark only the characters, otherwise the colored
17421 Code will cause \SpecialChar LaTeX
17425 \begin_layout Standard
17426 \begin_inset Note Greyedout
17429 \begin_layout Plain Layout
17434 Not all DVI-viewers are able to display self-defined colors.
17442 \begin_layout Standard
17443 \begin_inset VSpace bigskip
17449 \begin_layout Standard
17451 \begin_inset space ~
17455 \begin_inset CommandInset ref
17457 reference "tab:Table-colored-using"
17461 do the following: The color of the first column should be
17469 \begin_layout Standard
17474 columncolor{darkgreen}
17479 \begin_layout Standard
17480 as \SpecialChar LaTeX
17481 -argument for this column.
17482 The first row should be light blue, therefore the \SpecialChar TeX
17486 \begin_layout Standard
17494 \begin_layout Standard
17495 is inserted to the first cell of this row.
17496 Note that this overwrites the column color for the first cell.
17497 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17502 \begin_layout Standard
17510 \begin_layout Standard
17511 The characters could now be colored using the menu
17513 Edit\SpecialChar menuseparator
17515 \begin_inset space ~
17523 \begin_layout Standard
17524 \begin_inset Float table
17530 \begin_layout Plain Layout
17531 \begin_inset Caption Standard
17533 \begin_layout Plain Layout
17534 \begin_inset CommandInset label
17536 name "tab:Table-colored-using"
17540 Table colored using the package
17545 \begin_inset Argument 1
17548 \begin_layout Plain Layout
17549 Table with colortbl
17562 \begin_layout Plain Layout
17564 \begin_inset Tabular
17565 <lyxtabular version="3" rows="3" columns="3">
17566 <features tabularvalignment="middle">
17567 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17568 <column alignment="center" valignment="top">
17569 <column alignment="center" valignment="top">
17571 <cell alignment="center" valignment="top" usebox="none">
17574 \begin_layout Plain Layout
17578 \begin_layout Plain Layout
17594 <cell alignment="center" valignment="top" usebox="none">
17597 \begin_layout Plain Layout
17605 <cell alignment="center" valignment="top" usebox="none">
17608 \begin_layout Plain Layout
17618 <cell alignment="center" valignment="top" usebox="none">
17621 \begin_layout Plain Layout
17629 <cell alignment="center" valignment="top" usebox="none">
17632 \begin_layout Plain Layout
17640 <cell alignment="center" valignment="top" usebox="none">
17643 \begin_layout Plain Layout
17653 <cell alignment="center" valignment="top" usebox="none">
17656 \begin_layout Plain Layout
17664 <cell alignment="center" valignment="top" usebox="none">
17667 \begin_layout Plain Layout
17675 <cell alignment="center" valignment="top" usebox="none">
17678 \begin_layout Plain Layout
17682 \begin_layout Plain Layout
17711 \begin_layout Standard
17715 \begin_layout Plain Layout
17725 \begin_inset Note Note
17728 \begin_layout Plain Layout
17729 The following will be displayed when the \SpecialChar LaTeX
17742 \begin_layout Standard
17743 You need to install the package
17747 to see the content of this section in the output.
17750 \begin_layout Standard
17754 \begin_layout Plain Layout
17766 \begin_layout Subsection
17768 \begin_inset Index idx
17771 \begin_layout Plain Layout
17772 Table Color ! for Rows
17778 \begin_inset Index idx
17781 \begin_layout Plain Layout
17782 Color ! for Table Rows
17790 \begin_layout Standard
17791 In case every second table row needs to be colored there is an alternative
17792 to the method described in the previous section: One loads the package
17798 \begin_inset Index idx
17801 \begin_layout Plain Layout
17807 \begin_layout Plain Layout
17821 in the document preamble with the command
17824 \begin_layout Standard
17829 usepackage[table]{xcolor}
17832 \begin_layout Standard
17837 automatically loads also the package
17842 \begin_inset Index idx
17845 \begin_layout Plain Layout
17847 -packages ! colortbl
17856 must be installed in your \SpecialChar LaTeX
17857 -distribution, otherwise you get \SpecialChar LaTeX
17861 \begin_layout Standard
17865 \begin_layout Plain Layout
17875 \begin_inset Note Note
17878 \begin_layout Plain Layout
17879 The following section part will only be displayed when the \SpecialChar LaTeX
17892 \begin_layout Standard
17893 The table rows are colored with the command
17896 \begin_layout Standard
17901 rowcolors[commands]{row number}{odd row color}{even row color}
17904 \begin_layout Standard
17905 that is either inserted in the document preamble or as \SpecialChar TeX
17907 first table to be colored.
17909 \begin_inset space ~
17912 number is the number of the first row which should be colored according
17913 to the odd row color.
17914 commands can be additional commands that are executed before every table
17916 So for example the command
17919 \begin_layout Standard
17924 rowcolors{1}{white}{lightgray}
17927 \begin_layout Standard
17928 leads to the coloring scheme of Table
17929 \begin_inset space ~
17933 \begin_inset CommandInset ref
17935 reference "tab:Table-rowcolors"
17943 \begin_layout Standard
17950 hline]{1}{lightgray}{cyan}
17953 \begin_layout Standard
17954 leads to the coloring scheme of Table
17955 \begin_inset space ~
17959 \begin_inset CommandInset ref
17961 reference "tab:Table-rowcolors-2"
17967 \begin_inset space ~
17971 \begin_inset space ~
17975 \begin_inset space ~
17979 \begin_inset space ~
17982 color are left empty, no color will be used so that the command
17985 \begin_layout Standard
17993 \begin_layout Standard
17994 deletes all colors.
18001 affects all tables following that command.
18004 \begin_layout Standard
18008 \begin_layout Plain Layout
18012 rowcolors{1}{white}{lightgray}
18020 \begin_layout Standard
18021 \begin_inset Float table
18027 \begin_layout Plain Layout
18028 \begin_inset Caption Standard
18030 \begin_layout Plain Layout
18031 \begin_inset CommandInset label
18033 name "tab:Table-rowcolors"
18037 Table where every second row is colored light gray.
18045 \begin_layout Plain Layout
18047 \begin_inset Tabular
18048 <lyxtabular version="3" rows="4" columns="3">
18049 <features tabularvalignment="middle">
18050 <column alignment="center" valignment="top">
18051 <column alignment="center" valignment="top" width="0pt">
18052 <column alignment="center" valignment="top" width="0pt">
18054 <cell alignment="center" valignment="top" usebox="none">
18057 \begin_layout Plain Layout
18063 <cell alignment="center" valignment="top" usebox="none">
18066 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" usebox="none">
18075 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" usebox="none">
18095 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" usebox="none">
18104 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" usebox="none">
18133 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" usebox="none">
18162 \begin_layout Plain Layout
18181 \begin_layout Standard
18185 \begin_layout Plain Layout
18191 hline]{1}{lightgray}{cyan}
18199 \begin_layout Standard
18200 \begin_inset Float table
18206 \begin_layout Plain Layout
18207 \begin_inset Caption Standard
18209 \begin_layout Plain Layout
18210 \begin_inset CommandInset label
18212 name "tab:Table-rowcolors-2"
18216 Table where every second row is colored cyan and at which there is a line
18225 \begin_layout Plain Layout
18227 \begin_inset Tabular
18228 <lyxtabular version="3" rows="4" columns="3">
18229 <features tabularvalignment="middle">
18230 <column alignment="center" valignment="top">
18231 <column alignment="center" valignment="top">
18232 <column alignment="center" valignment="top" width="0pt">
18234 <cell alignment="center" valignment="top" usebox="none">
18237 \begin_layout Plain Layout
18243 <cell alignment="center" valignment="top" usebox="none">
18246 \begin_layout Plain Layout
18252 <cell alignment="center" valignment="top" usebox="none">
18255 \begin_layout Plain Layout
18263 <cell alignment="center" valignment="top" usebox="none">
18266 \begin_layout Plain Layout
18272 <cell alignment="center" valignment="top" usebox="none">
18275 \begin_layout Plain Layout
18281 <cell alignment="center" valignment="top" usebox="none">
18284 \begin_layout Plain Layout
18292 <cell alignment="center" valignment="top" usebox="none">
18295 \begin_layout Plain Layout
18301 <cell alignment="center" valignment="top" usebox="none">
18304 \begin_layout Plain Layout
18310 <cell alignment="center" valignment="top" usebox="none">
18313 \begin_layout Plain Layout
18321 <cell alignment="center" valignment="top" usebox="none">
18324 \begin_layout Plain Layout
18330 <cell alignment="center" valignment="top" usebox="none">
18333 \begin_layout Plain Layout
18339 <cell alignment="center" valignment="top" usebox="none">
18342 \begin_layout Plain Layout
18361 \begin_layout Standard
18365 \begin_layout Plain Layout
18375 \begin_inset Note Note
18378 \begin_layout Plain Layout
18379 turns off the row coloring
18387 \begin_layout Standard
18391 \begin_layout Plain Layout
18401 \begin_inset Note Note
18404 \begin_layout Plain Layout
18405 The following will be displayed when the \SpecialChar LaTeX
18418 \begin_layout Standard
18419 You need to install the package
18423 to see the content of this section in the output.
18426 \begin_layout Standard
18430 \begin_layout Plain Layout
18442 \begin_layout Subsection
18444 \begin_inset Index idx
18447 \begin_layout Plain Layout
18448 Table Color ! for Lines
18454 \begin_inset Index idx
18457 \begin_layout Plain Layout
18458 Color ! for Table Lines
18466 \begin_layout Standard
18467 As described in section
18468 \begin_inset space ~
18472 \begin_inset CommandInset ref
18474 reference "subsec:Line-Thickness"
18478 , the line thickness for all lines in a table can be adjusted with the length
18487 \begin_inset space \thinspace{}
18490 pt for all tables of this section.
18494 \begin_layout Plain Layout
18500 arrayrulewidth}{1.5pt}
18508 \begin_layout Standard
18509 To color vertical lines for example with green, create the following column
18510 format in the document preamble, according to the description in section
18511 \begin_inset space ~
18515 \begin_inset CommandInset ref
18517 reference "subsec:Customized-Format"
18524 \begin_layout Standard
18529 newcolumntype{W}{!{
18536 \begin_layout Standard
18538 \begin_inset space ~
18542 \begin_inset CommandInset ref
18544 reference "tab:Table-with-vertical-colored"
18548 the \SpecialChar LaTeX
18553 was used for the last column and
18557 for the other columns.
18560 \begin_layout Standard
18561 If you want to have several colors, define more column formats.
18564 \begin_layout Standard
18565 \begin_inset Float table
18571 \begin_layout Plain Layout
18572 \begin_inset Caption Standard
18574 \begin_layout Plain Layout
18575 \begin_inset CommandInset label
18577 name "tab:Table-with-vertical-colored"
18581 Table with colored vertical lines
18589 \begin_layout Plain Layout
18591 \begin_inset Tabular
18592 <lyxtabular version="3" rows="3" columns="3">
18593 <features tabularvalignment="middle">
18594 <column alignment="center" valignment="top" special="Wc">
18595 <column alignment="center" valignment="top" special="Wc">
18596 <column alignment="center" valignment="top" special="WcW">
18598 <cell alignment="center" valignment="top" topline="true" usebox="none">
18601 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" topline="true" usebox="none">
18610 \begin_layout Plain Layout
18616 <cell alignment="center" valignment="top" topline="true" usebox="none">
18619 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" usebox="none">
18639 \begin_layout Plain Layout
18645 <cell alignment="center" valignment="top" topline="true" usebox="none">
18648 \begin_layout Plain Layout
18656 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18659 \begin_layout Plain Layout
18665 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18668 \begin_layout Plain Layout
18674 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18677 \begin_layout Plain Layout
18696 \begin_layout Standard
18697 \begin_inset VSpace bigskip
18700 To color horizontal lines for example with red, as in Table
18701 \begin_inset space ~
18705 \begin_inset CommandInset ref
18707 reference "tab:Table-with-horizontal-colored"
18711 , insert these commands in \SpecialChar TeX
18712 Code before the table or table float:
18715 \begin_layout Standard
18725 \begin_inset Newline newline
18733 \begin_inset Newline newline
18737 \begin_inset Phantom HPhantom
18740 \begin_layout Plain Layout
18743 \begin_inset space ~
18753 arrayrulecolor{red}
18757 arrayrulecolor{black}}
18760 \begin_layout Standard
18764 \begin_layout Plain Layout
18775 \begin_layout Plain Layout
18784 \begin_layout Plain Layout
18788 arrayrulecolor{red}
18792 arrayrulecolor{black}}
18798 \begin_inset Float table
18804 \begin_layout Plain Layout
18805 \begin_inset Caption Standard
18807 \begin_layout Plain Layout
18808 \begin_inset CommandInset label
18810 name "tab:Table-with-horizontal-colored"
18814 Table with colored horizontal lines
18822 \begin_layout Plain Layout
18824 \begin_inset Tabular
18825 <lyxtabular version="3" rows="3" columns="3">
18826 <features tabularvalignment="middle">
18827 <column alignment="center" valignment="top">
18828 <column alignment="center" valignment="top">
18829 <column alignment="center" valignment="top">
18831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18834 \begin_layout Plain Layout
18840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18843 \begin_layout Plain Layout
18849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18852 \begin_layout Plain Layout
18860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18863 \begin_layout Plain Layout
18869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18872 \begin_layout Plain Layout
18878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18881 \begin_layout Plain Layout
18889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18892 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18910 \begin_layout Plain Layout
18929 \begin_layout Standard
18930 To return to the default line color black, insert this command in \SpecialChar TeX
18932 after the table or table float:
18935 \begin_layout Standard
18947 \begin_layout Standard
18949 \begin_inset space ~
18953 \begin_inset CommandInset ref
18955 reference "tab:Table-with-colored"
18959 is an example with colored vertical and horizontal lines.
18962 \begin_layout Standard
18963 \begin_inset Float table
18969 \begin_layout Plain Layout
18970 \begin_inset Caption Standard
18972 \begin_layout Plain Layout
18973 \begin_inset CommandInset label
18975 name "tab:Table-with-colored"
18979 Table with colored lines
18987 \begin_layout Plain Layout
18989 \begin_inset Tabular
18990 <lyxtabular version="3" rows="3" columns="3">
18991 <features tabularvalignment="middle">
18992 <column alignment="center" valignment="top" special="Wc">
18993 <column alignment="center" valignment="top" special="Wc">
18994 <column alignment="center" valignment="top" special="WcW">
18996 <cell alignment="center" valignment="top" topline="true" usebox="none">
18999 \begin_layout Plain Layout
19005 <cell alignment="center" valignment="top" topline="true" usebox="none">
19008 \begin_layout Plain Layout
19014 <cell alignment="center" valignment="top" topline="true" usebox="none">
19017 \begin_layout Plain Layout
19025 <cell alignment="center" valignment="top" topline="true" usebox="none">
19028 \begin_layout Plain Layout
19034 <cell alignment="center" valignment="top" topline="true" usebox="none">
19037 \begin_layout Plain Layout
19043 <cell alignment="center" valignment="top" topline="true" usebox="none">
19046 \begin_layout Plain Layout
19053 <row topspace="default">
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19057 \begin_layout Plain Layout
19063 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19066 \begin_layout Plain Layout
19072 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19075 \begin_layout Plain Layout
19094 \begin_layout Standard
19098 \begin_layout Plain Layout
19114 \begin_layout Standard
19118 \begin_layout Plain Layout
19124 arrayrulewidth}{0.4pt}
19132 \begin_layout Section
19133 Rotated Table Cells
19134 \begin_inset CommandInset label
19136 name "sec:Rotated-Table-Cells"
19141 \begin_inset Index idx
19144 \begin_layout Plain Layout
19145 Table ! Rotated Cells
19151 \begin_inset Index idx
19154 \begin_layout Plain Layout
19163 \begin_layout Standard
19164 \begin_inset Note Greyedout
19167 \begin_layout Plain Layout
19172 Not all DVI-viewers are able to display rotations.
19180 \begin_layout Standard
19182 \begin_inset space ~
19186 \begin_inset CommandInset ref
19188 reference "tab:Table-with-rotated-multi"
19192 is an example where 3
19193 \begin_inset space ~
19196 cells were rotated by 45
19197 \begin_inset space \thinspace{}
19203 \begin_layout Standard
19204 \begin_inset Float table
19210 \begin_layout Plain Layout
19211 \begin_inset Caption Standard
19213 \begin_layout Plain Layout
19214 \begin_inset CommandInset label
19216 name "tab:Table-with-rotated"
19220 Table with rotated cells in the first row.
19228 \begin_layout Plain Layout
19231 \begin_inset Tabular
19232 <lyxtabular version="3" rows="2" columns="3">
19233 <features tabularvalignment="middle">
19234 <column alignment="center" valignment="top" width="0pt">
19235 <column alignment="center" valignment="top" width="0pt">
19236 <column alignment="center" valignment="top" width="0pt">
19238 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19241 \begin_layout Plain Layout
19247 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19250 \begin_layout Plain Layout
19256 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19259 \begin_layout Plain Layout
19267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19270 \begin_layout Plain Layout
19276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19279 \begin_layout Plain Layout
19285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19288 \begin_layout Plain Layout
19307 \begin_layout Standard
19308 \begin_inset Note Greyedout
19311 \begin_layout Plain Layout
19316 Line breaks (shortcut
19319 arg "newline-insert newline"
19322 ) are not allowed in rotated cells.
19330 \begin_layout Standard
19331 If you want to rotate table cells containing line breaks, you have to put
19332 the cell content into a minipage or a parbox.
19336 \begin_layout Plain Layout
19337 For more about these boxes see sec.
19338 \begin_inset space \thinspace{}
19342 \begin_inset CommandInset ref
19344 reference "sec:Minipages"
19349 \begin_inset CommandInset ref
19351 reference "sec:Parboxes"
19360 If you rotate this cell by 90
19361 \begin_inset space \thinspace{}
19364 ° the width of the box is the height of the cell.
19366 \begin_inset space ~
19370 \begin_inset CommandInset ref
19372 reference "tab:Table-with-rotated-multi"
19376 is an example for a rotated multiline cell where the box width was set
19378 \begin_inset space \thinspace{}
19384 \begin_layout Standard
19385 \begin_inset Float table
19390 \begin_layout Plain Layout
19391 \begin_inset Caption Standard
19393 \begin_layout Plain Layout
19394 \begin_inset CommandInset label
19396 name "tab:Table-with-rotated-multi"
19400 Table with rotated multiline cell.
19408 \begin_layout Plain Layout
19411 \begin_inset Tabular
19412 <lyxtabular version="3" rows="2" columns="3">
19413 <features tabularvalignment="middle">
19414 <column alignment="center" valignment="top">
19415 <column alignment="center" valignment="top" width="0pt">
19416 <column alignment="center" valignment="top">
19418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19421 \begin_layout Plain Layout
19427 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19430 \begin_layout Plain Layout
19431 \begin_inset Box Frameless
19441 height_special "totalheight"
19446 backgroundcolor "none"
19449 \begin_layout Plain Layout
19451 \begin_inset Newline newline
19464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19467 \begin_layout Plain Layout
19475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19478 \begin_layout Plain Layout
19484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19487 \begin_layout Plain Layout
19493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19496 \begin_layout Plain Layout
19515 \begin_layout Section
19516 Table Width Calculation
19517 \begin_inset CommandInset label
19519 name "sec:Table-Width-Calculation"
19526 \begin_layout Standard
19527 For wide tables it is sometimes difficult to assure that the table does
19528 not protrude over the page margin.
19529 Setting a fixed width for every column of the table is the solution, but
19530 what amount of space is needed for each column?
19533 \begin_layout Standard
19535 \begin_inset Formula $W_{\mathrm{table}}$
19538 can be calculated: Every column has the width of the specified column width
19540 \begin_inset Formula $W_{\mathrm{column}}$
19543 (that the content of the column can consume) plus two times the separation
19544 between the column content and the column border (\SpecialChar LaTeX
19552 \begin_inset space \thinspace{}
19555 pt) plus the width of a border line (\SpecialChar LaTeX
19563 \begin_inset space \thinspace{}
19567 \begin_inset Formula $n$
19571 \begin_inset space ~
19574 columns have the same width, the table width is
19575 \begin_inset Formula
19577 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19585 \begin_layout Standard
19586 The available width for a table is the space between the page margins or
19587 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19595 If all table columns should have the same width and
19596 \begin_inset Formula $W_{\mathrm{table}}$
19600 \begin_inset space \thinspace{}
19606 \begin_inset Formula $W_{\mathrm{column}}$
19609 can easily be calculated.
19612 \begin_layout Standard
19613 To be able to perform calculations you need to load the \SpecialChar LaTeX
19619 \begin_inset Index idx
19622 \begin_layout Plain Layout
19629 in the document preamble.
19630 To set the width in the table dialog you have to use the field
19636 The command scheme for this field is the same that is explained in section
19637 \begin_inset space ~
19641 \begin_inset CommandInset ref
19643 reference "subsec:Multicolumn-Calculations"
19649 \begin_inset space \thinspace{}
19652 columns with an uniform width and centered text, enter there for each column
19656 \begin_layout Standard
19663 columnwidth-62.4pt)/5}
19666 \begin_layout Standard
19668 \begin_inset space \thinspace{}
19671 columns where 2 should have 0.75
19672 \begin_inset space ~
19675 times the width than the 3 others, the calculation is
19676 \begin_inset Formula
19678 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19679 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19680 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19681 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19689 \begin_layout Standard
19690 In the table therefore the command
19693 \begin_layout Standard
19700 columnwidth-62.4pt)/
19705 \begin_layout Standard
19706 is used for the wider columns and
19709 \begin_layout Standard
19716 columnwidth-62.4pt)/
19723 \begin_layout Standard
19724 for the smaller ones:
19727 \begin_layout Standard
19728 \begin_inset Tabular
19729 <lyxtabular version="3" rows="2" columns="5">
19730 <features tabularvalignment="middle">
19731 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19732 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19733 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19734 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19735 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19740 \begin_layout Plain Layout
19746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19749 \begin_layout Plain Layout
19755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19758 \begin_layout Plain Layout
19764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19767 \begin_layout Plain Layout
19773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19776 \begin_layout Plain Layout
19784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19787 \begin_layout Plain Layout
19788 111111 1111111 111111 111111111 11111 11111 1111
19793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19796 \begin_layout Plain Layout
19802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19805 \begin_layout Plain Layout
19806 2222 22222 222222 222222222 2222222 22 22222
19811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19814 \begin_layout Plain Layout
19820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19823 \begin_layout Plain Layout
19824 333333 333333 333333 33333 3333333 333
19837 \begin_layout Section
19838 Table Customization
19839 \begin_inset Index idx
19842 \begin_layout Plain Layout
19843 Table Customization
19849 \begin_inset Index idx
19852 \begin_layout Plain Layout
19853 Table ! Customization
19861 \begin_layout Subsection
19863 \begin_inset CommandInset label
19865 name "subsec:Row-Spacing"
19870 \begin_inset Index idx
19873 \begin_layout Plain Layout
19874 Table Customization ! Row Spacing
19882 \begin_layout Standard
19883 You can add vertical space to table rows in the
19887 tab of the table dialog.
19888 You find there three possibilities:
19891 \begin_layout Description
19893 \begin_inset space ~
19897 \begin_inset space ~
19900 row will add space above the characters of the table row.
19901 If the table is a formal table
19905 \begin_layout Plain Layout
19906 Formal tables are explained in section
19907 \begin_inset space ~
19911 \begin_inset CommandInset ref
19913 reference "sec:Formal-Tables"
19923 will insert as default 0.5
19924 \begin_inset space \thinspace{}
19928 For normal tables the inserted space will unfortunately destroy the vertical
19929 table lines as in the following table:
19930 \begin_inset VSpace medskip
19934 \begin_inset Newline newline
19938 \begin_inset space \hspace*{}
19943 \begin_inset space \hfill{}
19947 \begin_inset Tabular
19948 <lyxtabular version="3" rows="3" columns="1">
19949 <features tabularvalignment="middle">
19950 <column alignment="center" valignment="top">
19952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19955 \begin_layout Plain Layout
19962 <row topspace="3mm">
19963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19966 \begin_layout Plain Layout
19968 \begin_inset space \thinspace{}
19971 mm space top of row
19978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19981 \begin_layout Plain Layout
19993 \begin_inset space \hfill{}
19997 \begin_inset space \hspace*{}
20002 \begin_inset VSpace medskip
20006 \begin_inset Newline newline
20009 So inserting space in the top of row for normal tables is only useful when
20010 you don't have vertical lines.
20013 \begin_layout Description
20015 \begin_inset space ~
20019 \begin_inset space ~
20022 row will add space below the characters of the table row.
20023 If the table is a formal table \SpecialChar LyX
20024 will insert as default 0.5
20025 \begin_inset space \thinspace{}
20028 em space, for normal tables the default size is 2
20029 \begin_inset space \thinspace{}
20035 \begin_layout Description
20037 \begin_inset space ~
20040 rows adds space between the current and the following row.
20041 If the table is a formal table \SpecialChar LyX
20042 will insert as default 0.5
20043 \begin_inset space \thinspace{}
20047 For normal tables the inserted space will unfortunately destroy the vertical
20048 table lines as in the following table:
20049 \begin_inset VSpace medskip
20053 \begin_inset Newline newline
20057 \begin_inset space \hspace*{}
20062 \begin_inset space \hfill{}
20066 \begin_inset Tabular
20067 <lyxtabular version="3" rows="3" columns="1">
20068 <features tabularvalignment="middle">
20069 <column alignment="center" valignment="top">
20071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20074 \begin_layout Plain Layout
20081 <row interlinespace="3mm">
20082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20085 \begin_layout Plain Layout
20086 \begin_inset Formula $\downarrow$
20090 \begin_inset space \thinspace{}
20093 mm space between row
20094 \begin_inset Formula $\downarrow$
20104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20107 \begin_layout Plain Layout
20108 \begin_inset Formula $\uparrow$
20112 \begin_inset space \thinspace{}
20115 mm space between row
20116 \begin_inset Formula $\uparrow$
20130 \begin_inset space \hfill{}
20134 \begin_inset space \hspace*{}
20139 \begin_inset VSpace medskip
20143 \begin_inset Newline newline
20146 So inserting space between rows for normal tables is only useful when you
20147 don't have vertical lines.
20150 \begin_layout Standard
20151 \begin_inset VSpace bigskip
20154 When you want to add extra height to all cells of all tables, you can do
20155 this with the following preamble lines:
20158 \begin_layout Standard
20163 @ifundefined{extrarowheight}
20164 \begin_inset Newline newline
20168 \begin_inset Phantom HPhantom
20171 \begin_layout Plain Layout
20174 \begin_inset space ~
20184 usepackage{array}}{}
20185 \begin_inset Newline newline
20192 extrarowheight}{height}
20195 \begin_layout Standard
20196 But this has the disadvantage that the cell texts are no longer exactly
20197 vertically centered.
20202 will be loaded automatically by \SpecialChar LyX
20203 when you use self defined table formats.
20204 To avoid that it being loaded twice the command
20210 is used in the above command.)
20213 \begin_layout Standard
20214 If you are using font sizes larger than the normal size, the table borders
20215 are often too close to the letters.
20216 This can be corrected by inserting the command
20222 in \SpecialChar TeX
20223 Code at the beginning of a table row.
20225 \begin_inset space ~
20229 \begin_inset CommandInset ref
20231 reference "tab:Vertical-alignment-of"
20235 illustrates the effect.
20238 \begin_layout Standard
20240 \begin_inset Float table
20246 \begin_layout Plain Layout
20247 \begin_inset Caption Standard
20249 \begin_layout Plain Layout
20250 \begin_inset CommandInset label
20252 name "tab:Vertical-alignment-of"
20256 Vertical alignment of text with large font sizes.
20264 \begin_layout Plain Layout
20265 \begin_inset space \hfill{}
20269 \begin_inset Float table
20274 \begin_layout Plain Layout
20275 \begin_inset Caption Standard
20277 \begin_layout Plain Layout
20286 \begin_layout Plain Layout
20289 \begin_inset Tabular
20290 <lyxtabular version="3" rows="6" columns="1">
20291 <features tabularvalignment="middle">
20292 <column alignment="left" valignment="top">
20294 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20297 \begin_layout Plain Layout
20305 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20308 \begin_layout Plain Layout
20318 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20321 \begin_layout Plain Layout
20331 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20334 \begin_layout Plain Layout
20344 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20347 \begin_layout Plain Layout
20357 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20360 \begin_layout Plain Layout
20379 \begin_inset space \hfill{}
20383 \begin_inset Float table
20388 \begin_layout Plain Layout
20389 \begin_inset Caption Standard
20391 \begin_layout Plain Layout
20392 Table using the command
20406 \begin_layout Plain Layout
20409 \begin_inset Tabular
20410 <lyxtabular version="3" rows="6" columns="1">
20411 <features tabularvalignment="middle">
20412 <column alignment="left" valignment="top">
20414 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20417 \begin_layout Plain Layout
20425 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20428 \begin_layout Plain Layout
20434 \begin_layout Plain Layout
20450 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20453 \begin_layout Plain Layout
20459 \begin_layout Plain Layout
20475 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20478 \begin_layout Plain Layout
20484 \begin_layout Plain Layout
20500 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20503 \begin_layout Plain Layout
20509 \begin_layout Plain Layout
20525 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20528 \begin_layout Plain Layout
20534 \begin_layout Plain Layout
20561 \begin_inset space \hfill{}
20572 \begin_layout Subsection
20573 Special Cell Alignment
20574 \begin_inset CommandInset label
20576 name "subsec:Special-Cell-Alignment"
20581 \begin_inset Index idx
20584 \begin_layout Plain Layout
20585 Table Customization ! Special Cell Alignment
20593 \begin_layout Standard
20594 Sometimes it looks better when the cell entries of a column are aligned
20595 with a special character, e.
20596 \begin_inset space \thinspace{}
20600 \begin_inset space \space{}
20603 with the decimal separator as in Table
20604 \begin_inset space ~
20608 \begin_inset CommandInset ref
20610 reference "tab:Table-cells-align"
20615 This alignment is achieved by setting the cursor into the column and then
20616 either pressing the toolbar button
20619 arg "inset-modify tabular align-decimal"
20622 or setting the alignment in the table settings to
20625 \begin_inset space ~
20629 \begin_inset space ~
20635 The alignment character can be a character of your choice and is specified
20636 in the table settings.
20639 \begin_layout Standard
20640 \begin_inset Float table
20646 \begin_layout Plain Layout
20647 \begin_inset Caption Standard
20649 \begin_layout Plain Layout
20650 \begin_inset CommandInset label
20652 name "tab:Table-cells-align"
20656 Table cells of a column aligned with the decimal separator.
20664 \begin_layout Plain Layout
20666 \begin_inset Tabular
20667 <lyxtabular version="3" rows="4" columns="1">
20668 <features booktabs="true" tabularvalignment="middle">
20669 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20674 \begin_layout Plain Layout
20682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20685 \begin_layout Plain Layout
20693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20696 \begin_layout Plain Layout
20704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20707 \begin_layout Plain Layout
20726 \begin_layout Standard
20727 \begin_inset Float table
20733 \begin_layout Plain Layout
20734 \begin_inset Caption Standard
20736 \begin_layout Plain Layout
20737 \begin_inset CommandInset label
20739 name "tab:Table-align-operator"
20743 Table cells of a column aligned with the operators.
20751 \begin_layout Plain Layout
20753 \begin_inset Tabular
20754 <lyxtabular version="3" rows="4" columns="2">
20755 <features booktabs="true" tabularvalignment="middle">
20756 <column alignment="right" valignment="top" width="0pt">
20757 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20759 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20762 \begin_layout Plain Layout
20768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20771 \begin_layout Plain Layout
20779 <cell alignment="center" valignment="top" usebox="none">
20782 \begin_layout Plain Layout
20783 \begin_inset Formula $12\,+$
20791 <cell alignment="center" valignment="top" usebox="none">
20794 \begin_layout Plain Layout
20795 \begin_inset Formula $\,6$
20805 <cell alignment="center" valignment="top" usebox="none">
20808 \begin_layout Plain Layout
20809 \begin_inset Formula $0\,-$
20817 <cell alignment="center" valignment="top" usebox="none">
20820 \begin_layout Plain Layout
20821 \begin_inset Formula $\,68$
20831 <cell alignment="center" valignment="top" usebox="none">
20834 \begin_layout Plain Layout
20835 \begin_inset Formula $-123\,/$
20843 <cell alignment="center" valignment="top" usebox="none">
20846 \begin_layout Plain Layout
20847 \begin_inset Formula $\,0$
20868 \begin_layout Standard
20869 For alignments at characters in formulas this method does not work because
20870 the field to specify the alignment character does not allow formulas.
20871 In this case one need to use the method from Table
20872 \begin_inset space ~
20876 \begin_inset CommandInset ref
20878 reference "tab:Table-align-operator"
20883 This table was created with a 4×2 table.
20884 The heading is a centered multicolumn.
20885 The first column is right-aligned and contains the first part including
20887 The second column is left aligned and contains the rest.
20888 A small space was added at the beginning of each cell of the second column
20889 to get the space that is usually around operators.
20890 To omit the space that is normally between two table columns, the following
20892 -argument was used for the second column:
20895 \begin_layout Standard
20901 \begin_layout Standard
20903 \begin_inset space ~
20907 \begin_inset CommandInset ref
20909 reference "tab:Several-table-cell"
20913 shows some example alignments.
20914 For the alignment with the relation sign, a small space was added like
20915 for the second column of Table
20916 \begin_inset space ~
20920 \begin_inset CommandInset ref
20922 reference "tab:Table-align-operator"
20929 \begin_layout Standard
20930 \begin_inset Float table
20936 \begin_layout Plain Layout
20937 \begin_inset Caption Standard
20939 \begin_layout Plain Layout
20940 \begin_inset CommandInset label
20942 name "tab:Several-table-cell"
20946 Several table cell alignments.
20954 \begin_layout Plain Layout
20956 \begin_inset Tabular
20957 <lyxtabular version="3" rows="4" columns="6">
20958 <features tabularvalignment="middle">
20959 <column alignment="right" valignment="top">
20960 <column alignment="left" valignment="top" special="@{}l">
20961 <column alignment="right" valignment="top">
20962 <column alignment="left" valignment="top" special="@{}l">
20963 <column alignment="right" valignment="top">
20964 <column alignment="left" valignment="top" special="@{}l">
20966 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20969 \begin_layout Plain Layout
20975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20978 \begin_layout Plain Layout
20984 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20987 \begin_layout Plain Layout
20993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20996 \begin_layout Plain Layout
21002 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21005 \begin_layout Plain Layout
21011 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21014 \begin_layout Plain Layout
21022 <cell alignment="center" valignment="top" usebox="none">
21025 \begin_layout Plain Layout
21031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21034 \begin_layout Plain Layout
21036 \begin_inset space \thinspace{}
21044 <cell alignment="center" valignment="top" usebox="none">
21047 \begin_layout Plain Layout
21048 \begin_inset Formula $10\cdot$
21056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21059 \begin_layout Plain Layout
21060 \begin_inset Formula $10^{\mbox{-}17}$
21068 <cell alignment="center" valignment="top" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $\Gamma(t)\propto$
21080 <cell alignment="center" valignment="top" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $\:\Upsilon(t)$
21094 <cell alignment="center" valignment="top" usebox="none">
21097 \begin_layout Plain Layout
21103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21106 \begin_layout Plain Layout
21108 \begin_inset space \thinspace{}
21116 <cell alignment="center" valignment="top" usebox="none">
21119 \begin_layout Plain Layout
21120 \begin_inset Formula $5.78\cdot$
21128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21131 \begin_layout Plain Layout
21132 \begin_inset Formula $10^{7}$
21140 <cell alignment="center" valignment="top" usebox="none">
21143 \begin_layout Plain Layout
21144 \begin_inset Formula $A\ne$
21152 <cell alignment="center" valignment="top" usebox="none">
21155 \begin_layout Plain Layout
21156 \begin_inset Formula $\:B_{\mathrm{red}}$
21166 <cell alignment="center" valignment="top" usebox="none">
21169 \begin_layout Plain Layout
21175 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21178 \begin_layout Plain Layout
21180 \begin_inset space \thinspace{}
21188 <cell alignment="center" valignment="top" usebox="none">
21191 \begin_layout Plain Layout
21193 \begin_inset Formula $33.5\cdot$
21201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21204 \begin_layout Plain Layout
21205 \begin_inset Formula $10^{4}$
21213 <cell alignment="center" valignment="top" usebox="none">
21216 \begin_layout Plain Layout
21217 \begin_inset Formula $\sin(\alpha)\ge$
21225 <cell alignment="center" valignment="top" usebox="none">
21228 \begin_layout Plain Layout
21229 \begin_inset Formula $\:\sin(\beta)$
21250 \begin_layout Subsection
21251 Customized Cell/Column Format
21252 \begin_inset CommandInset label
21254 name "subsec:Customized-Format"
21259 \begin_inset Index idx
21262 \begin_layout Plain Layout
21263 Table Customization ! Cell/Column Format
21271 \begin_layout Standard
21272 Calculating the required width for normal columns as described in section
21273 \begin_inset space ~
21277 \begin_inset CommandInset ref
21279 reference "sec:Table-Width-Calculation"
21283 or for spanned columns as described in section
21284 \begin_inset space ~
21288 \begin_inset CommandInset ref
21290 reference "subsec:Multicolumn-Calculations"
21294 is very annoying if you have several tables where a calculation is necessary.
21295 To make life easier, you can define a cell/column format in the preamble,
21296 that can be used in all tables of the document.
21297 The format is defined with the command
21300 \begin_layout Standard
21305 newcolumntype{name of format}[number of arguments]{commands}
21308 \begin_layout Standard
21309 The format name may only consist of one letter.
21334 are predefined and cannot be used.
21335 But all letters are allowed as capitals.
21338 \begin_layout Standard
21339 \begin_inset VSpace medskip
21345 \begin_layout Standard
21346 For vertically and horizontally centered multicolumn cells with a fixed
21347 width you can define the cell format
21350 \begin_layout Standard
21355 newcolumntype{M}[1]{>{
21362 \begin_layout Standard
21369 avoids the problem of hyphenating the first word, as described in section
21370 \begin_inset space ~
21374 \begin_inset CommandInset ref
21376 reference "subsec:Multiple-Lines-in"
21381 Now you can simply enter
21384 \begin_layout Standard
21390 \begin_layout Standard
21396 in the table dialog to create a multicolumn.
21399 \begin_layout Standard
21400 \begin_inset VSpace bigskip
21406 \begin_layout Standard
21407 For cells spanned by a multicolumn cell, you can define the format
21410 \begin_layout Standard
21415 newcolumntype{S}[2]{>{
21420 \begin_inset Newline newline
21424 \begin_inset Phantom HPhantom
21427 \begin_layout Plain Layout
21441 arrayrulewidth)*(1-#2))/#2}}
21444 \begin_layout Standard
21445 This format uses equation
21446 \begin_inset CommandInset ref
21452 to calculate the required width so that each spanned cell has the same
21456 \begin_layout Standard
21460 \begin_layout Standard
21463 S{width of multicolumn cell}{number of spanned columns}
21466 \begin_layout Standard
21467 as \SpecialChar LaTeX
21468 -argument of the column.
21471 \begin_layout Standard
21472 \begin_inset VSpace bigskip
21478 \begin_layout Standard
21479 For colored columns, you can define
21482 \begin_layout Standard
21487 newcolumntype{K}[1]{>{
21494 \begin_layout Standard
21496 \begin_inset Quotes eld
21500 \begin_inset Quotes erd
21503 at the end creates a column with a flexible width whose text is horizontally
21508 \begin_layout Standard
21514 \begin_layout Standard
21515 as \SpecialChar LaTeX
21519 \begin_layout Standard
21520 \begin_inset VSpace bigskip
21526 \begin_layout Standard
21528 \begin_inset space ~
21532 \begin_inset CommandInset ref
21534 reference "tab:Table-using-user-defined"
21538 use the \SpecialChar LaTeX
21542 \begin_layout Standard
21548 \begin_layout Standard
21549 for the first column and the multicolumn,
21552 \begin_layout Standard
21558 \begin_layout Standard
21559 for the last column, and
21562 \begin_layout Standard
21568 \begin_layout Standard
21569 for the cells in the second column.
21572 \begin_layout Standard
21573 \begin_inset Float table
21579 \begin_layout Plain Layout
21580 \begin_inset Caption Standard
21582 \begin_layout Plain Layout
21583 \begin_inset CommandInset label
21585 name "tab:Table-using-user-defined"
21589 Table using user-defined table formats
21597 \begin_layout Plain Layout
21599 \begin_inset Tabular
21600 <lyxtabular version="3" rows="3" columns="4">
21601 <features tabularvalignment="middle">
21602 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21603 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21604 <column alignment="center" valignment="middle">
21605 <column alignment="center" valignment="middle" special="K{red}">
21607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21610 \begin_layout Plain Layout
21611 verylongtablecellword
21616 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21619 \begin_layout Plain Layout
21620 multiple lines multicolumn
21625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21628 \begin_layout Plain Layout
21634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21637 \begin_layout Plain Layout
21645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21648 \begin_layout Plain Layout
21654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21657 \begin_layout Plain Layout
21663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21666 \begin_layout Plain Layout
21672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21675 \begin_layout Plain Layout
21683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21686 \begin_layout Plain Layout
21692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21695 \begin_layout Plain Layout
21701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21704 \begin_layout Plain Layout
21710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21713 \begin_layout Plain Layout
21732 \begin_layout Subsection
21734 \begin_inset CommandInset label
21736 name "subsec:Line-Thickness"
21741 \begin_inset Index idx
21744 \begin_layout Plain Layout
21745 Table Customization ! Line Thickness
21753 \begin_layout Standard
21754 The line thickness for all lines in a table can be adjusted with the length
21762 To set for example a line thickness of 1.5
21763 \begin_inset space \thinspace{}
21767 \begin_inset space ~
21771 \begin_inset CommandInset ref
21773 reference "tab:Table-with-1.5"
21777 , insert the command
21780 \begin_layout Standard
21787 arrayrulewidth}{1.5pt}
21790 \begin_layout Standard
21791 in \SpecialChar TeX
21792 Code before the table or table float.
21793 The changed thickness is valid for all subsequent tables.
21794 To use the default value again, set
21801 \begin_inset space \thinspace{}
21804 pt in \SpecialChar TeX
21805 Code after the table or table float.
21808 \begin_layout Standard
21812 \begin_layout Plain Layout
21818 arrayrulewidth}{1.5pt}
21824 \begin_inset Float table
21829 \begin_layout Plain Layout
21830 \begin_inset Caption Standard
21832 \begin_layout Plain Layout
21833 \begin_inset CommandInset label
21835 name "tab:Table-with-1.5"
21840 \begin_inset space \thinspace{}
21851 \begin_layout Plain Layout
21853 \begin_inset Tabular
21854 <lyxtabular version="3" rows="3" columns="3">
21855 <features tabularvalignment="middle">
21856 <column alignment="center" valignment="top">
21857 <column alignment="center" valignment="top">
21858 <column alignment="center" valignment="top">
21860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21863 \begin_layout Plain Layout
21869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21881 \begin_layout Plain Layout
21889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21892 \begin_layout Plain Layout
21898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21901 \begin_layout Plain Layout
21907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21910 \begin_layout Plain Layout
21918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21921 \begin_layout Plain Layout
21927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21930 \begin_layout Plain Layout
21936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21939 \begin_layout Plain Layout
21959 \begin_layout Plain Layout
21965 arrayrulewidth}{0.4pt}
21973 \begin_layout Standard
21974 \begin_inset VSpace bigskip
21977 To set the line thickness to 1.5
21978 \begin_inset space \thinspace{}
21981 pt only for horizontal lines, as in Table
21982 \begin_inset space ~
21986 \begin_inset CommandInset ref
21988 reference "tab:Table-with-horizontal"
21992 , insert these commands in \SpecialChar TeX
21993 Code before the table or table float:
21996 \begin_layout Standard
22006 \begin_inset Newline newline
22014 \begin_inset Newline newline
22023 arrayrulewidth 1.5pt}
22024 \begin_inset Newline newline
22035 arrayrulewidth 0.4pt}}
22038 \begin_layout Standard
22039 To return to the default line thickness, insert this command in \SpecialChar TeX
22041 the table or table float:
22044 \begin_layout Standard
22056 \begin_layout Standard
22060 \begin_layout Plain Layout
22071 \begin_layout Plain Layout
22080 \begin_layout Plain Layout
22088 arrayrulewidth 1.5pt}
22091 \begin_layout Plain Layout
22101 arrayrulewidth 0.4pt}}
22107 \begin_inset Float table
22112 \begin_layout Plain Layout
22113 \begin_inset Caption Standard
22115 \begin_layout Plain Layout
22116 \begin_inset CommandInset label
22118 name "tab:Table-with-horizontal"
22123 \begin_inset space \thinspace{}
22126 pt thick horizontal lines
22134 \begin_layout Plain Layout
22136 \begin_inset Tabular
22137 <lyxtabular version="3" rows="3" columns="3">
22138 <features tabularvalignment="middle">
22139 <column alignment="center" valignment="top">
22140 <column alignment="center" valignment="top">
22141 <column alignment="center" valignment="top">
22143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22146 \begin_layout Plain Layout
22152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22155 \begin_layout Plain Layout
22161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22164 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22193 \begin_layout Plain Layout
22201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22213 \begin_layout Plain Layout
22219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22222 \begin_layout Plain Layout
22242 \begin_layout Plain Layout
22258 \begin_layout Standard
22259 \begin_inset VSpace bigskip
22262 To set the line thickness to 1.5
22263 \begin_inset space \thinspace{}
22266 pt only for vertical lines, create the following column format in the document
22267 preamble, according to the description in section
22268 \begin_inset space ~
22272 \begin_inset CommandInset ref
22274 reference "subsec:Customized-Format"
22281 \begin_layout Standard
22286 newcolumntype{V}{!{
22288 vrule width 1.5pt}}
22291 \begin_layout Standard
22293 \begin_inset space ~
22297 \begin_inset CommandInset ref
22299 reference "tab:Table-with-vertical"
22303 the \SpecialChar LaTeX
22307 \begin_layout Standard
22313 \begin_layout Standard
22314 was used for the last column and
22317 \begin_layout Standard
22323 \begin_layout Standard
22324 for the other columns.
22327 \begin_layout Standard
22328 \begin_inset Float table
22333 \begin_layout Plain Layout
22334 \begin_inset Caption Standard
22336 \begin_layout Plain Layout
22337 \begin_inset CommandInset label
22339 name "tab:Table-with-vertical"
22344 \begin_inset space \thinspace{}
22347 pt thick vertical lines
22355 \begin_layout Plain Layout
22357 \begin_inset Tabular
22358 <lyxtabular version="3" rows="3" columns="3">
22359 <features tabularvalignment="middle">
22360 <column alignment="center" valignment="top" special="Vc">
22361 <column alignment="center" valignment="top" special="Vc">
22362 <column alignment="center" valignment="top" special="VcV">
22364 <cell alignment="center" valignment="top" topline="true" usebox="none">
22367 \begin_layout Plain Layout
22373 <cell alignment="center" valignment="top" topline="true" usebox="none">
22376 \begin_layout Plain Layout
22382 <cell alignment="center" valignment="top" topline="true" usebox="none">
22385 \begin_layout Plain Layout
22393 <cell alignment="center" valignment="top" topline="true" usebox="none">
22396 \begin_layout Plain Layout
22402 <cell alignment="center" valignment="top" topline="true" usebox="none">
22405 \begin_layout Plain Layout
22411 <cell alignment="center" valignment="top" topline="true" usebox="none">
22414 \begin_layout Plain Layout
22422 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22425 \begin_layout Plain Layout
22431 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22434 \begin_layout Plain Layout
22440 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22443 \begin_layout Plain Layout
22462 \begin_layout Subsection
22464 \begin_inset Index idx
22467 \begin_layout Plain Layout
22468 Table Customization ! Dashed Lines
22476 \begin_layout Standard
22480 \begin_layout Plain Layout
22490 \begin_inset Note Note
22493 \begin_layout Plain Layout
22494 The following section will only be displayed when the \SpecialChar LaTeX
22507 \begin_layout Standard
22508 \begin_inset Float table
22514 \begin_layout Plain Layout
22515 \begin_inset Caption Standard
22517 \begin_layout Plain Layout
22518 \begin_inset CommandInset label
22520 name "tab:Table-with-dashed"
22524 Table with dashed lines
22532 \begin_layout Plain Layout
22534 \begin_inset Tabular
22535 <lyxtabular version="3" rows="5" columns="5">
22536 <features tabularvalignment="middle">
22537 <column alignment="center" valignment="top">
22538 <column alignment="center" valignment="top">
22539 <column alignment="center" valignment="top" special=":c">
22540 <column alignment="center" valignment="top">
22541 <column alignment="center" valignment="top">
22543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22546 \begin_layout Plain Layout
22552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22555 \begin_layout Plain Layout
22561 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22564 \begin_layout Plain Layout
22570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22573 \begin_layout Plain Layout
22579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22582 \begin_layout Plain Layout
22590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22593 \begin_layout Plain Layout
22599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22602 \begin_layout Plain Layout
22608 <cell alignment="center" valignment="top" topline="true" usebox="none">
22611 \begin_layout Plain Layout
22617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22620 \begin_layout Plain Layout
22626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22629 \begin_layout Plain Layout
22637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22640 \begin_layout Plain Layout
22644 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22661 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22679 \begin_layout Plain Layout
22685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22688 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22699 \begin_layout Plain Layout
22703 \begin_layout Plain Layout
22717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22720 \begin_layout Plain Layout
22726 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22729 \begin_layout Plain Layout
22735 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22738 \begin_layout Plain Layout
22744 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22747 \begin_layout Plain Layout
22755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22785 \begin_layout Plain Layout
22791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22794 \begin_layout Plain Layout
22813 \begin_layout Standard
22815 does not natively support dashed lines, so you have to use \SpecialChar TeX
22817 As a prerequisite the \SpecialChar LaTeX
22823 \begin_inset Index idx
22826 \begin_layout Plain Layout
22828 -packages ! arydshln
22833 must be loaded in the document preamble with the command
22836 \begin_layout Standard
22841 usepackage{arydshln}
22844 \begin_layout Standard
22845 To make a vertical line dashed, enter the colon
22846 \begin_inset Quotes eld
22850 \begin_inset Quotes erd
22853 together with the character for the horizontal alignment as \SpecialChar LaTeX
22855 the table cell dialog.
22858 \begin_layout Standard
22859 For a horizontal dashed line add the command
22862 \begin_layout Standard
22870 \begin_layout Standard
22871 in \SpecialChar TeX
22872 Code as first element of the first cell in the table row.
22875 \begin_layout Standard
22876 For dashed multicolumn lines use the command
22879 \begin_layout Standard
22884 cdashline{line number
22889 \begin_layout Standard
22890 in \SpecialChar TeX
22891 Code as the first element of the first cell in the table row.
22892 If you have for example a multicolumn spanning columns 2 to 4 and you want
22893 to have a dashed line above, add the command
22896 \begin_layout Standard
22904 \begin_layout Standard
22905 as the first element of the first cell in the row of the multicolumn.
22908 \begin_layout Standard
22909 \begin_inset VSpace bigskip
22915 \begin_layout Standard
22917 \begin_inset space ~
22921 \begin_inset CommandInset ref
22923 reference "tab:Table-with-dashed"
22928 \begin_inset Quotes eld
22936 \begin_inset Quotes erd
22939 as \SpecialChar LaTeX
22940 argument of the third column.
22941 The \SpecialChar TeX
22948 was inserted in the first cell of the third row and the \SpecialChar TeX
22950 \begin_inset Newline newline
22959 was inserted in the first cell of the fourth row.
22962 \begin_layout Standard
22963 \begin_inset VSpace bigskip
22969 \begin_layout Standard
22970 Tables with dashed lines can also be colored as shown by Table
22971 \begin_inset space ~
22975 \begin_inset CommandInset ref
22977 reference "tab:Colored-table-with"
22984 \begin_layout Standard
22988 \begin_layout Plain Layout
22994 arrayrulewidth}{1pt}
23000 \begin_inset Note Note
23003 \begin_layout Plain Layout
23004 thicker lines for better visualization of the line color
23012 \begin_layout Standard
23016 \begin_layout Plain Layout
23020 dashgapcolor{green}
23026 \begin_inset Note Note
23029 \begin_layout Plain Layout
23030 color gaps between dashes green
23038 \begin_layout Standard
23042 \begin_layout Plain Layout
23053 \begin_layout Plain Layout
23062 \begin_layout Plain Layout
23066 arrayrulecolor{red}
23070 arrayrulecolor{black}}
23076 \begin_inset Note Note
23079 \begin_layout Plain Layout
23080 color horizontal, dashed lines red
23088 \begin_layout Standard
23092 \begin_layout Plain Layout
23103 \begin_layout Plain Layout
23112 \begin_layout Plain Layout
23116 arrayrulecolor{yellow}
23120 arrayrulecolor{black}}
23126 \begin_inset Note Note
23129 \begin_layout Plain Layout
23130 color partial horizontal, dashed lines yellow
23138 \begin_layout Standard
23139 \begin_inset Float table
23145 \begin_layout Plain Layout
23146 \begin_inset Caption Standard
23148 \begin_layout Plain Layout
23149 \begin_inset CommandInset label
23151 name "tab:Colored-table-with"
23155 Colored table with dashed lines
23163 \begin_layout Plain Layout
23165 \begin_inset Tabular
23166 <lyxtabular version="3" rows="5" columns="5">
23167 <features tabularvalignment="middle">
23168 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23169 <column alignment="center" valignment="top" width="0pt">
23170 <column alignment="center" valignment="top" width="0pt" special=":c">
23171 <column alignment="center" valignment="top">
23172 <column alignment="center" valignment="top">
23174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23177 \begin_layout Plain Layout
23183 <cell alignment="center" valignment="top" topline="true" usebox="none">
23186 \begin_layout Plain Layout
23192 <cell alignment="center" valignment="top" topline="true" usebox="none">
23195 \begin_layout Plain Layout
23201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23204 \begin_layout Plain Layout
23210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23213 \begin_layout Plain Layout
23221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23224 \begin_layout Plain Layout
23230 <cell alignment="center" valignment="top" topline="true" usebox="none">
23233 \begin_layout Plain Layout
23239 <cell alignment="center" valignment="top" topline="true" usebox="none">
23242 \begin_layout Plain Layout
23248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23251 \begin_layout Plain Layout
23257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23260 \begin_layout Plain Layout
23268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23271 \begin_layout Plain Layout
23275 \begin_layout Plain Layout
23288 \begin_layout Plain Layout
23302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23305 \begin_layout Plain Layout
23311 <cell alignment="center" valignment="top" usebox="none">
23314 \begin_layout Plain Layout
23320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23323 \begin_layout Plain Layout
23329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23332 \begin_layout Plain Layout
23340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23343 \begin_layout Plain Layout
23347 \begin_layout Plain Layout
23361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23364 \begin_layout Plain Layout
23370 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23373 \begin_layout Plain Layout
23379 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23382 \begin_layout Plain Layout
23388 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23391 \begin_layout Plain Layout
23399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23402 \begin_layout Plain Layout
23408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23411 \begin_layout Plain Layout
23417 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23420 \begin_layout Plain Layout
23426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23429 \begin_layout Plain Layout
23435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23438 \begin_layout Plain Layout
23442 \begin_layout Plain Layout
23469 \begin_layout Standard
23473 \begin_layout Plain Layout
23487 \begin_inset Note Note
23490 \begin_layout Plain Layout
23499 \begin_layout Standard
23503 \begin_layout Plain Layout
23517 \begin_inset Note Note
23520 \begin_layout Plain Layout
23529 \begin_layout Standard
23533 \begin_layout Plain Layout
23543 \begin_inset Note Note
23546 \begin_layout Plain Layout
23555 \begin_layout Standard
23559 \begin_layout Plain Layout
23565 arrayrulewidth}{0.4pt}
23571 \begin_inset Note Note
23574 \begin_layout Plain Layout
23583 \begin_layout Standard
23584 The coloring of lines, columns and lines works as decribed in section
23585 \begin_inset space ~
23589 \begin_inset CommandInset ref
23591 reference "sec:Colored-Tables"
23596 Coloring horizontal lines works analogically as described there as well,
23597 one only needs to replace in the commands
23621 ; so one uses the command
23624 \begin_layout Standard
23634 \begin_inset Newline newline
23642 \begin_inset Newline newline
23646 \begin_inset Phantom HPhantom
23649 \begin_layout Plain Layout
23650 \begin_inset space ~
23660 arrayrulecolor{red}
23664 arrayrulecolor{black}}
23667 \begin_layout Standard
23677 \begin_layout Standard
23687 \begin_inset Newline newline
23695 \begin_inset Newline newline
23699 \begin_inset Phantom HPhantom
23702 \begin_layout Plain Layout
23703 \begin_inset space ~
23713 arrayrulecolor{red}
23717 arrayrulecolor{black}}
23720 \begin_layout Standard
23721 To get back the black line color, one needs to insert the following commands
23722 as \SpecialChar TeX
23723 Code behind the table:
23726 \begin_layout Standard
23734 \begin_layout Standard
23746 \begin_layout Standard
23754 \begin_layout Standard
23766 \begin_layout Standard
23767 To color the gaps between the dashes the command
23770 \begin_layout Standard
23775 dashgapcolor{color}
23778 \begin_layout Standard
23779 can be used in front of a table as \SpecialChar TeX
23781 color is hereby the name of a defined color.
23785 \begin_layout Standard
23793 \begin_layout Standard
23794 unsets the changes made by
23803 \begin_layout Standard
23804 \begin_inset Note Greyedout
23807 \begin_layout Plain Layout
23813 : If there are multiple commands in a cell, the command of
23817 needs to be the first one in the cell.
23823 \begin_inset space ~
23827 \begin_inset CommandInset ref
23829 reference "tab:Colored-table-with"
23853 \begin_layout Standard
23854 \begin_inset Note Greyedout
23857 \begin_layout Plain Layout
23863 The \SpecialChar LaTeX
23868 must be loaded in the document preamble before the \SpecialChar LaTeX
23874 \begin_inset Index idx
23877 \begin_layout Plain Layout
23879 -packages ! colortbl
23892 \begin_layout Standard
23896 \begin_layout Plain Layout
23906 \begin_inset Note Note
23909 \begin_layout Plain Layout
23910 The following will be displayed when the \SpecialChar LaTeX
23923 \begin_layout Standard
23924 You need to install the package
23928 to see the content of this section in the output.
23931 \begin_layout Standard
23935 \begin_layout Plain Layout
23947 \begin_layout Standard
23948 For more information about dashed lines see the documentation of
23953 \begin_inset CommandInset citation
23962 \begin_layout Chapter
23964 \begin_inset CommandInset label
23971 \begin_inset Index idx
23974 \begin_layout Plain Layout
23983 \begin_layout Section
23985 \begin_inset CommandInset label
23987 name "sec:FloatIntroduction"
23992 \begin_inset Index idx
23995 \begin_layout Plain Layout
23996 Floats ! Introduction
24004 \begin_layout Standard
24005 A float is a block of text associated with some sort of label, which doesn't
24006 have a fixed location.
24008 \begin_inset Quotes eld
24012 \begin_inset Quotes erd
24015 forward or backward a page or two, to wherever it fits best.
24023 \begin_inset space ~
24028 are also floats because they can float to the next page when there are
24029 too many notes on the page.
24032 \begin_layout Standard
24033 Floats allow a high quality layout.
24034 Images and tables can be spread evenly among the pages to avoid white space
24035 and pages without text.
24036 As the floating often destroys the context between the text and the image/table
24037 , every float can be referenced in the text.
24038 Floats are therefore numbered.
24039 Referencing is described in section
24040 \begin_inset space ~
24044 \begin_inset CommandInset ref
24046 reference "sec:Referencing-Floats"
24053 \begin_layout Standard
24054 To insert a float, use the menu
24056 Insert\SpecialChar menuseparator
24062 arg "float-insert figure"
24068 arg "float-insert table"
24076 inset, a box with a label.
24077 The label will automatically be translated to the document language in
24079 After the label you can insert the caption text.
24080 The image or table is inserted above or below the caption in a separate
24081 paragraph within the float.
24082 More about the caption placement is contained in section
24083 \begin_inset space ~
24087 \begin_inset CommandInset ref
24089 reference "sec:Caption-Placement"
24094 To keep your \SpecialChar LyX
24095 document readable, you can open and close the float box by
24096 left-clicking on the box label.
24097 A closed float box looks like this:
24098 \begin_inset Graphics
24099 filename clipart/floatQt4.png
24101 scaleBeforeRotation
24105 – a gray button with a red label.
24108 \begin_layout Standard
24109 It is recommended that you insert floats as separate standard paragraphs
24110 to avoid possible \SpecialChar LaTeX
24111 -errors that can occur when the surrounding text is specially
24115 \begin_layout Standard
24116 Existing figures or tables can be put into a float by highlighting them
24117 and then pressing the corresponding toolbar button for a new float.
24120 \begin_layout Section
24124 \begin_layout Standard
24125 Besides figure and table floats that are described in sections
24126 \begin_inset space ~
24130 \begin_inset CommandInset ref
24132 reference "sec:Figure-Floats"
24137 \begin_inset CommandInset ref
24139 reference "sec:Table-Floats"
24143 respectively, \SpecialChar LyX
24144 offers the float types
24153 The latter are explained in sec.
24154 \begin_inset space \thinspace{}
24158 \begin_inset CommandInset ref
24160 reference "sec:Wrap-Floats"
24167 \begin_layout Subsection
24169 \begin_inset Index idx
24172 \begin_layout Plain Layout
24173 Floats ! Algorithms
24181 \begin_layout Standard
24182 \begin_inset Float algorithm
24188 \begin_layout Plain Layout
24189 \begin_inset Caption Standard
24191 \begin_layout Plain Layout
24192 \begin_inset CommandInset label
24194 name "alg:Example-Algorithm-float"
24198 Example Algorithm float
24206 \begin_layout LyX-Code
24208 \begin_inset Newline newline
24211 Sum:= Sum + A(I); /*comment*/
24212 \begin_inset Newline newline
24216 \begin_inset VSpace -4mm
24227 \begin_layout Standard
24228 This float type is inserted with the menu
24230 Insert\SpecialChar menuseparator
24231 Float\SpecialChar menuseparator
24235 It is used for program codes and descriptions of algorithms and can be
24236 seen as an alternative to program code listings that are explained in chapter
24237 \begin_inset space ~
24241 \begin_inset CommandInset ref
24243 reference "cha:Program-Code-Listings"
24248 A possible environment for algorithms is the
24253 , described in \SpecialChar LyX
24260 \begin_inset space ~
24264 \begin_inset CommandInset ref
24266 reference "alg:Example-Algorithm-float"
24270 is an example of an algorithm float where -4
24271 \begin_inset space \thinspace{}
24274 mm vertical space was added at the end of the float to have the bottom rule
24275 exactly below the last text line.
24278 \begin_layout Standard
24279 The float label is not automatically translated into the document language.
24280 If your document is not in English, you have to do this manually by adding
24281 the following line to the document preamble
24286 \begin_layout Standard
24291 floatname{algorithm}{your
24292 \begin_inset space ~
24298 \begin_layout Standard
24302 \begin_inset space ~
24308 \begin_inset Quotes eld
24316 \begin_inset Quotes erd
24322 \begin_layout Standard
24323 To insert the list of algorithms you can use the menu
24325 Insert\SpecialChar menuseparator
24327 \begin_inset space \thinspace{}
24331 \begin_inset space \thinspace{}
24334 TOC\SpecialChar menuseparator
24337 when your document has the same language as \SpecialChar LyX
24339 In other cases use this command in \SpecialChar TeX
24343 \begin_layout Standard
24348 listof{algorithm}{your
24349 \begin_inset space ~
24355 \begin_layout Standard
24359 \begin_inset space ~
24365 \begin_inset Quotes eld
24373 \begin_inset Quotes erd
24379 \begin_layout Standard
24380 Algorithm floats are not by default numbered in the scheme
24381 \begin_inset Quotes eld
24385 \begin_inset Quotes erd
24388 as is the case for table and figure floats in many document-classes.
24389 To number algorithm floats in the same scheme, add this command to your
24393 \begin_layout Standard
24398 numberwithin{algorithm}{chapter}
24401 \begin_layout Standard
24402 To be able to use the command
24411 \begin_inset space ~
24416 in the document settings the option
24419 \begin_inset space ~
24423 \begin_inset space ~
24427 \begin_inset space ~
24435 \begin_layout Section
24437 \begin_inset Index idx
24440 \begin_layout Plain Layout
24449 \begin_layout Standard
24450 Floats are usually numbered either independently from the sections the floats
24451 are in, or in the scheme
24452 \begin_inset Quotes eld
24456 \begin_inset Quotes erd
24460 \begin_inset Quotes eld
24464 \begin_inset Quotes erd
24468 This depends on the document class used.
24471 \begin_layout Standard
24472 To change section-independent numbering, you can use this command in the
24476 \begin_layout Standard
24488 \begin_layout Standard
24495 is the command that prints the table number.
24496 For figure floats, the command would be
24509 in the command above prints the table number as a small roman number.
24512 \begin_layout Standard
24513 To change the numbering scheme for example to
24514 \begin_inset Quotes eld
24518 \begin_inset Quotes erd
24521 , use this command in the preamble:
24524 \begin_layout Standard
24529 numberwithin{table}{subsection}
24532 \begin_layout Standard
24533 To be able to use the command
24542 \begin_inset space ~
24547 in the document settings the option
24550 \begin_inset space ~
24554 \begin_inset space ~
24558 \begin_inset space ~
24566 \begin_layout Standard
24567 Please also have a look at section
24568 \begin_inset space ~
24572 \begin_inset CommandInset ref
24574 reference "subsec:Footnote-Numbering"
24578 for the details and important notes about the numbering commands.
24581 \begin_layout Section
24583 \begin_inset CommandInset label
24585 name "sec:Referencing-Floats"
24590 \begin_inset Index idx
24593 \begin_layout Plain Layout
24594 Floats ! References
24600 \begin_inset Index idx
24603 \begin_layout Plain Layout
24604 References ! to Floats
24612 \begin_layout Standard
24613 To reference a float, insert a label into its caption using the menu
24615 Insert\SpecialChar menuseparator
24618 or the toolbar button
24625 A grey label box like this one:
24626 \begin_inset Graphics
24627 filename clipart/labelQt4.png
24629 scaleBeforeRotation
24633 will be inserted and the label window pops up asking for the label text.
24635 offers as text the first words of the caption with a prefix.
24636 The prefix depends on the float type, e.
24637 \begin_inset space \thinspace{}
24641 \begin_inset space \space{}
24644 for figure floats the prefix will be "
24651 \begin_layout Standard
24652 The label is used as anchor and name for the reference.
24653 You can refer to the label using the menu
24655 Insert\SpecialChar menuseparator
24658 or the toolbar button
24661 arg "dialog-show-new-inset ref"
24665 The cross-reference window appears showing all labels of the document.
24666 If you have multiple \SpecialChar LyX
24667 documents opened, choose the one you are working
24668 on from the drop-list at the top of the dialog.
24669 You can now sort the labels alphabetically and then choose one.
24670 A grey cross-reference box like this one:
24671 \begin_inset Graphics
24672 filename clipart/referenceQt4.png
24674 scaleBeforeRotation
24679 At the position of the cross-reference box the float number will appear
24683 \begin_layout Standard
24684 It is recommended that you use a protected space between the cross-reference
24685 name and its number to avoid line breaks between them.
24686 If a cross-reference refers to a non-existing label, you will see two question
24687 marks in the output instead of the reference.
24690 \begin_layout Standard
24691 You can change labels at any time by clicking on the label box.
24692 References to the changed label will automatically update their links to
24693 the new label text.
24696 \begin_layout Standard
24700 \begin_inset space ~
24704 \begin_inset space ~
24709 in the cross-reference window sets the cursor before the referred label.
24710 The button text changes then to Go
24711 \begin_inset space ~
24714 Back and you can use it to set the cursor back to the cross-reference.
24717 \begin_layout Subsection
24718 Cross-Reference Formats
24719 \begin_inset CommandInset label
24721 name "subsec:Cross-Reference-Formats"
24726 \begin_inset Index idx
24729 \begin_layout Plain Layout
24730 References ! Formats
24738 \begin_layout Standard
24739 There are six varieties of cross-references:
24742 \begin_layout Description
24743 <reference>: prints the float number, this is the default:
24744 \begin_inset CommandInset ref
24746 reference "fig:Two-distorted-images"
24753 \begin_layout Description
24754 (<reference>): prints the float number within two parentheses, this is the
24755 style normally used to reference formulas, especially when the reference
24757 \begin_inset Quotes eld
24761 \begin_inset Quotes erd
24765 \begin_inset CommandInset ref
24774 \begin_layout Description
24775 <page>: prints the page number: Page
24776 \begin_inset space ~
24780 \begin_inset CommandInset ref
24781 LatexCommand pageref
24782 reference "fig:Two-distorted-images"
24789 \begin_layout Description
24791 \begin_inset space ~
24795 \begin_inset space ~
24798 <page>: prints the text "on page" and the page number:
24799 \begin_inset CommandInset ref
24800 LatexCommand vpageref
24801 reference "fig:Two-distorted-images"
24808 \begin_layout Description
24810 \begin_inset space ~
24814 \begin_inset space ~
24818 \begin_inset space ~
24821 <page>: prints the float number, the text "on page", and the page number:
24823 \begin_inset CommandInset ref
24825 reference "fig:Two-distorted-images"
24832 \begin_layout Description
24834 \begin_inset space ~
24837 reference: prints a self-defined cross-reference format.
24838 \begin_inset Newline newline
24842 \begin_inset Note Greyedout
24845 \begin_layout Plain Layout
24850 This feature is only available when you have the \SpecialChar LaTeX
24860 \begin_inset Index idx
24863 \begin_layout Plain Layout
24865 -packages ! prettyref
24871 \begin_inset Index idx
24874 \begin_layout Plain Layout
24876 -packages ! refstyle
24887 \begin_inset Newline newline
24890 You can select which \SpecialChar LaTeX
24891 -package should be used for this feature by setting
24894 Use refstyle (not prettyref) for cross-references
24898 Document\SpecialChar menuseparator
24899 Settings\SpecialChar menuseparator
24903 The format is specified by adding the command
24915 (refstyle) to the preamble of the document.
24916 For example redefining all references to figures (which have the label
24918 \begin_inset Quotes eld
24926 \begin_inset Quotes erd
24929 ) can be done with this command
24930 \begin_inset Newline newline
24937 newref{fig}{refcmd={Image on page
24942 \begin_inset Newline newline
24945 For more information about the format, have a look at the package documentations
24947 \begin_inset CommandInset citation
24949 key "prettyref,refstyle"
24956 \begin_layout Description
24958 \begin_inset space ~
24961 reference: prints the caption of the reference:
24962 \begin_inset CommandInset ref
24963 LatexCommand nameref
24964 reference "fig:Two-distorted-images"
24971 \begin_layout Standard
24976 will not print the page number if the label is on the previous, the same,
24979 \begin_inset space \thinspace{}
24983 \begin_inset space \space{}
24987 \begin_inset Quotes eld
24995 \begin_inset Quotes erd
25001 <reference> on page <page>
25003 will not print anything about the page if the label is on the same page.
25006 \begin_layout Standard
25007 The number and current page of the part of the document referred to in the
25008 output is automatically calculated by \SpecialChar LaTeX
25010 The varieties are adjusted in the field
25014 of the cross-reference window that appears when you click on the cross-referenc
25018 \begin_layout Standard
25019 \begin_inset Note Greyedout
25022 \begin_layout Plain Layout
25027 It is recommended to use the \SpecialChar LaTeX
25033 \begin_inset Index idx
25036 \begin_layout Plain Layout
25038 -packages ! refstyle
25048 \begin_inset Index idx
25051 \begin_layout Plain Layout
25053 -packages ! prettyref
25058 does not know all of \SpecialChar LyX
25059 's possible label shortcuts
25063 \begin_layout Plain Layout
25064 \begin_inset Quotes eld
25068 \begin_inset Quotes erd
25071 is for example \SpecialChar LyX
25072 's shortcut for labels in figure captions.
25077 and is not internationalized.
25085 \begin_layout Subsection
25086 Automatic Reference Naming
25087 \begin_inset Index idx
25090 \begin_layout Plain Layout
25091 References ! Automatic Reference Naming
25099 \begin_layout Standard
25100 The \SpecialChar LaTeX
25106 \begin_inset Index idx
25109 \begin_layout Plain Layout
25111 -packages ! hyperref
25116 , that is enabled in the
25124 dialog, provides a very useful feature that cross-references automatically
25125 include the name of the referenced floats (or text parts like
25130 So you will save having to write e.
25131 \begin_inset space \thinspace{}
25135 \begin_inset space \space{}
25139 \begin_inset Quotes eld
25143 \begin_inset Quotes erd
25146 before every reference to a figure.
25147 To use this feature, enable
25151 and insert this line to the \SpecialChar LaTeX
25155 \begin_layout Standard
25171 \begin_layout Standard
25172 When you prefer other reference names than the default ones, for example
25173 you want instead of
25174 \begin_inset Quotes eld
25178 \begin_inset Quotes erd
25182 \begin_inset Quotes eld
25186 \begin_inset space \thinspace{}
25190 \begin_inset Quotes eld
25193 , you can redefine the name by inserting this in the preamble:
25196 \begin_layout Standard
25207 sectionautorefname}
25208 \begin_inset Newline newline
25212 \begin_inset Phantom HPhantom
25215 \begin_layout Plain Layout
25218 \begin_inset space ~
25231 \begin_layout Standard
25232 When you are using another document language than English, replace
25233 \begin_inset Newline newline
25248 , where *** is the name of the language used.
25251 \begin_layout Standard
25252 To get automatic names, but not for certain reference types, for example
25253 not for equations, use this preamble code:
25256 \begin_layout Standard
25267 equationautorefname}[1]{}}
25270 \begin_layout Standard
25271 More about this topic can be found in
25276 \begin_inset CommandInset citation
25285 \begin_layout Standard
25286 \begin_inset Note Greyedout
25289 \begin_layout Plain Layout
25294 Automatic reference naming cannot be used when you use cross-references
25298 \begin_inset space ~
25303 style, as described in section
25304 \begin_inset space ~
25308 \begin_inset CommandInset ref
25310 reference "subsec:Cross-Reference-Formats"
25322 \begin_layout Standard
25327 manual is an example where automatic reference naming is used.
25330 \begin_layout Subsection
25332 \begin_inset CommandInset label
25334 name "subsec:Reference-Position"
25339 \begin_inset Index idx
25342 \begin_layout Plain Layout
25343 References ! Reference Position
25351 \begin_layout Standard
25357 \begin_inset Index idx
25360 \begin_layout Plain Layout
25362 -packages ! hyperref
25375 dialog to link cross-references in the output, you will see that clicking
25376 on an image float reference jumps to the image label.
25377 The caption will be the first text part on the screen, so that you cannot
25378 see the image without scrolling.
25379 This is because the reference link anchor is placed at the position of
25381 With the use of the package
25386 \begin_inset Index idx
25389 \begin_layout Plain Layout
25396 , which is part of the \SpecialChar LaTeX
25402 \begin_inset Index idx
25405 \begin_layout Plain Layout
25407 -packages ! oberdiek
25412 , the link anchor is placed at the beginning of a float.
25413 To use this feature for figure floats, load
25417 in the document preamble with the line
25420 \begin_layout Standard
25425 usepackage[figure]{hypcap}
25428 \begin_layout Standard
25433 for all float types but this is not recommended for stability reasons.
25434 For more information, have a look at
25439 \begin_inset CommandInset citation
25448 \begin_layout Standard
25449 \begin_inset Note Greyedout
25452 \begin_layout Plain Layout
25461 has no effect on references to subfigures.
25469 \begin_layout Section
25471 \begin_inset CommandInset label
25473 name "sec:Float-Placement"
25478 \begin_inset Index idx
25481 \begin_layout Plain Layout
25490 \begin_layout Standard
25491 Right-clicking on a float-box and clicking on
25495 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25497 positioning the float.
25498 \begin_inset Newline newline
25504 \begin_inset space ~
25509 is only useful for two-column documents: If you select it, the float will
25510 span both columns on the page instead of being confined to just one.
25511 \begin_inset Newline newline
25517 \begin_inset space ~
25522 is used to rotate floats, see section
25523 \begin_inset CommandInset ref
25525 reference "sec:Rotated-Floats"
25532 \begin_layout Standard
25533 You can use one or more of the following options in the float dialog to
25534 set the placement for a particular float when you uncheck the option
25537 \begin_inset space ~
25541 \begin_inset space ~
25549 \begin_layout Description
25551 \begin_inset space ~
25555 \begin_inset space ~
25558 possible try to place the float on the position where it has been inserted
25561 \begin_layout Description
25563 \begin_inset space ~
25567 \begin_inset space ~
25570 page try to place the float at the top of the current page
25573 \begin_layout Description
25575 \begin_inset space ~
25579 \begin_inset space ~
25582 page try to place the float at the bottom of the current page
25585 \begin_layout Description
25587 \begin_inset space ~
25591 \begin_inset space ~
25594 floats try to place the float on its own page
25597 \begin_layout Standard
25598 The order of the above option is
25602 used by \SpecialChar LaTeX
25604 That means, if you use the default placement, \SpecialChar LaTeX
25608 \begin_inset space ~
25612 \begin_inset space ~
25620 \begin_inset space ~
25624 \begin_inset space ~
25629 , and then the others.
25630 If you do not use the default, \SpecialChar LaTeX
25631 will try only the checked options but in
25634 \begin_inset space ~
25637 placements is possible the procedure is internally repeated trying to put
25638 the float on the following page.
25641 \begin_layout Standard
25642 By default, each option has its own rules:
25645 \begin_layout Labeling
25646 \labelwidthstring 00.00.0000
25650 \begin_inset space ~
25654 \begin_inset space ~
25659 only floats occupying less than 70
25660 \begin_inset space \thinspace{}
25663 % of the page can be placed at the top of a page (
25672 \begin_layout Labeling
25673 \labelwidthstring 00.00.0000
25677 \begin_inset space ~
25681 \begin_inset space ~
25686 : only floats occupying less than 30
25687 \begin_inset space \thinspace{}
25690 % of the page can be placed at the bottom of a page.
25700 \begin_layout Labeling
25701 \labelwidthstring 00.00.0000
25705 \begin_inset space ~
25709 \begin_inset space ~
25714 : only if more than 50
25715 \begin_inset space \thinspace{}
25718 % of the page is occupied by floats, several floats can be set together
25729 \begin_layout Standard
25730 If you don't like these rules, you can ignore them by using the additional
25734 \begin_inset space ~
25739 \begin_inset space ~
25745 \begin_inset Newline newline
25748 You can also redefine the rules with \SpecialChar LaTeX
25749 -commands that are given in parentheses
25750 after the rules description above.
25751 To increase for example the often too small default of the bottom-rule
25753 \begin_inset space \thinspace{}
25756 % of the page, add this line to your document preamble:
25759 \begin_layout Standard
25766 bottomfraction}{0.5}
25769 \begin_layout Standard
25770 Sometimes you might need, under all circumstances, a float to be placed
25771 exactly at the position where it is inserted.
25772 For this case you can use the option
25775 \begin_inset space ~
25781 Use this option very rarely and only if the document is almost ready to
25782 be printed, because the float is then no longer able to
25783 \begin_inset Quotes eld
25787 \begin_inset Quotes erd
25790 when you change your document and this will often destroy the page layout.
25793 \begin_layout Standard
25794 There are no placement options for text wrap floats, because they are always
25795 surrounded by the text of a certain paragraph.
25796 \begin_inset VSpace bigskip
25802 \begin_layout Standard
25803 Sometimes you have the problem that a float is placed at the top of a page
25804 while its corresponding section starts at the middle of the page, so that
25805 the reader could think the float is part of the previous section.
25806 To avoid this the \SpecialChar LaTeX
25814 It suppresses a given float placement for the page where it is inserted
25815 and can therefore be used to avoid floats being set before a section starts.
25816 To get this, add these commands to your document preamble:
25819 \begin_layout Standard
25829 \begin_inset Newline newline
25843 \begin_layout Standard
25844 You can define the same for all section headings, like chapters and subsections.
25845 This definition is not recommended to be used for small text parts like
25846 subsubsections because \SpecialChar LaTeX
25847 may then have problems finding a suitable placement.
25850 \begin_layout Standard
25851 \begin_inset VSpace bigskip
25854 In some cases it is required to have all figures/tables at the end of the
25856 For this purpose the \SpecialChar LaTeX
25862 \begin_inset Index idx
25865 \begin_layout Plain Layout
25867 -packages ! endfloat
25873 It puts all figure and table floats at the end of the document into their
25875 At the original float position a text hint like
25876 \begin_inset Quotes eld
25882 \begin_inset space ~
25888 \begin_inset Quotes erd
25892 The endfloat-package is loaded in the preamble with the line
25895 \begin_layout Standard
25900 usepackage[options]{endfloat}
25903 \begin_layout Standard
25904 There are various package options to format the created figure/table sections.
25905 For more information we refer you to the
25910 \begin_inset CommandInset citation
25917 \begin_inset Newline newline
25921 \begin_inset Note Greyedout
25924 \begin_layout Plain Layout
25929 doesn't provide an automatic translation for the text hint, you have to
25930 do this manually, see section
25931 \begin_inset space ~
25935 \begin_inset CommandInset citation
25947 \begin_inset Newline newline
25951 \begin_inset Note Greyedout
25954 \begin_layout Plain Layout
25959 There is currently a bug in
25963 when the caption contains a German
25964 \begin_inset Quotes eld
25968 \begin_inset Quotes erd
25972 Use in this case the command
25973 \begin_inset Quotes eld
25983 \begin_inset Quotes erd
25986 in \SpecialChar TeX
25988 \begin_inset Quotes eld
25992 \begin_inset Quotes erd
26003 \begin_layout Standard
26004 \begin_inset VSpace bigskip
26007 For more details about float placements, have a look at \SpecialChar LaTeX
26009 \begin_inset CommandInset citation
26011 key "latexcompanion,latexguide,latexbook"
26018 \begin_layout Section
26020 \begin_inset CommandInset label
26022 name "sec:Rotated-Floats"
26027 \begin_inset Index idx
26030 \begin_layout Plain Layout
26039 \begin_layout Standard
26040 Especially for wide tables you might have floats rotated.
26041 To rotate a whole float including the caption, right-click on the float-box
26045 \begin_inset space ~
26053 \begin_layout Standard
26054 Rotated floats are always placed on a page of their own (or column of their
26055 own; in case you have a multi-column document).
26056 You can let them span several columns using the float settings option
26059 \begin_inset space ~
26065 Floats are rotated so that you can read them from the outside margin.
26066 To force a certain rotation direction for all pages, you can add either
26075 to the document class options.
26078 \begin_layout Standard
26079 Referencing rotated floats is the same as for normal floats, the caption
26080 format is also the same: Table
26081 \begin_inset space ~
26085 \begin_inset CommandInset ref
26087 reference "tab:Rotated-table"
26091 is an example of a rotated table float.
26094 \begin_layout Standard
26095 \begin_inset Note Greyedout
26098 \begin_layout Plain Layout
26103 Not all DVI-viewers are able to display rotated floats.
26111 \begin_layout Standard
26112 \begin_inset Float table
26117 \begin_layout Plain Layout
26118 \begin_inset Caption Standard
26120 \begin_layout Plain Layout
26121 \begin_inset CommandInset label
26123 name "tab:Rotated-table"
26135 \begin_layout Plain Layout
26137 \begin_inset Tabular
26138 <lyxtabular version="3" rows="1" columns="5">
26139 <features tabularvalignment="middle">
26140 <column alignment="center" valignment="top">
26141 <column alignment="center" valignment="top">
26142 <column alignment="center" valignment="top">
26143 <column alignment="center" valignment="top">
26144 <column alignment="center" valignment="top">
26146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26149 \begin_layout Plain Layout
26155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26158 \begin_layout Plain Layout
26164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26167 \begin_layout Plain Layout
26173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26176 \begin_layout Plain Layout
26182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26185 \begin_layout Plain Layout
26204 \begin_layout Section
26206 \begin_inset Index idx
26209 \begin_layout Plain Layout
26218 \begin_layout Standard
26219 Subfloats are for example used when a figure consists of several images.
26220 They are created by inserting a float into an existing float.
26221 The placement of the subfloats can be controlled in the same way as for
26222 paragraphs as shown in table
26223 \begin_inset space ~
26227 \begin_inset CommandInset ref
26229 reference "tab:Two-subtables-side"
26234 \begin_inset CommandInset ref
26236 reference "tab:Two-subtables-upon"
26243 \begin_layout Standard
26244 Referencing subfloats works as for normal floats: Table
26245 \begin_inset space ~
26249 \begin_inset CommandInset ref
26251 reference "tab:This-is-subtable-a"
26256 \begin_inset CommandInset ref
26258 reference "tab:This-is-subtable-b"
26262 are subtables of table
26263 \begin_inset space ~
26267 \begin_inset CommandInset ref
26269 reference "tab:Two-subtables-side"
26276 \begin_layout Standard
26277 \begin_inset Float table
26282 \begin_layout Plain Layout
26283 \begin_inset Caption Standard
26285 \begin_layout Plain Layout
26286 \begin_inset CommandInset label
26288 name "tab:Two-subtables-side"
26292 Two subtables placed side by side.
26300 \begin_layout Plain Layout
26302 \begin_inset space \hfill{}
26306 \begin_inset Float table
26311 \begin_layout Plain Layout
26312 \begin_inset Caption Standard
26314 \begin_layout Plain Layout
26315 \begin_inset CommandInset label
26317 name "tab:This-is-subtable-a"
26321 This is subtable a.
26329 \begin_layout Plain Layout
26331 \begin_inset Tabular
26332 <lyxtabular version="3" rows="1" columns="5">
26333 <features tabularvalignment="middle">
26334 <column alignment="center" valignment="top">
26335 <column alignment="center" valignment="top">
26336 <column alignment="center" valignment="top">
26337 <column alignment="center" valignment="top">
26338 <column alignment="center" valignment="top">
26340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26343 \begin_layout Plain Layout
26349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26352 \begin_layout Plain Layout
26358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_layout Plain Layout
26367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26370 \begin_layout Plain Layout
26376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26379 \begin_layout Plain Layout
26396 \begin_inset space \hfill{}
26400 \begin_inset Float table
26405 \begin_layout Plain Layout
26406 \begin_inset Caption Standard
26408 \begin_layout Plain Layout
26409 \begin_inset CommandInset label
26411 name "tab:This-is-subtable-b"
26415 This is subtable b.
26423 \begin_layout Plain Layout
26425 \begin_inset Tabular
26426 <lyxtabular version="3" rows="1" columns="5">
26427 <features tabularvalignment="middle">
26428 <column alignment="center" valignment="top">
26429 <column alignment="center" valignment="top">
26430 <column alignment="center" valignment="top">
26431 <column alignment="center" valignment="top">
26432 <column alignment="center" valignment="top">
26434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26437 \begin_layout Plain Layout
26443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26446 \begin_layout Plain Layout
26452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26455 \begin_layout Plain Layout
26461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26464 \begin_layout Plain Layout
26470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26473 \begin_layout Plain Layout
26490 \begin_inset space \hfill{}
26501 \begin_layout Standard
26502 \begin_inset Float table
26507 \begin_layout Plain Layout
26508 \begin_inset Caption Standard
26510 \begin_layout Plain Layout
26511 \begin_inset CommandInset label
26513 name "tab:Two-subtables-upon"
26517 Two subtables placed one above the other.
26518 (a) table with 4 cells, (b) table with 5 cells.
26526 \begin_layout Plain Layout
26528 \begin_inset Float table
26533 \begin_layout Plain Layout
26534 \begin_inset Caption Standard
26536 \begin_layout Plain Layout
26545 \begin_layout Plain Layout
26547 \begin_inset Tabular
26548 <lyxtabular version="3" rows="1" columns="4">
26549 <features tabularvalignment="middle">
26550 <column alignment="center" valignment="top">
26551 <column alignment="center" valignment="top">
26552 <column alignment="center" valignment="top">
26553 <column alignment="center" valignment="top">
26555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26558 \begin_layout Plain Layout
26564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26567 \begin_layout Plain Layout
26573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26576 \begin_layout Plain Layout
26582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26585 \begin_layout Plain Layout
26604 \begin_layout Plain Layout
26606 \begin_inset Float table
26611 \begin_layout Plain Layout
26612 \begin_inset Caption Standard
26614 \begin_layout Plain Layout
26623 \begin_layout Plain Layout
26625 \begin_inset Tabular
26626 <lyxtabular version="3" rows="1" columns="5">
26627 <features tabularvalignment="middle">
26628 <column alignment="center" valignment="top">
26629 <column alignment="center" valignment="top">
26630 <column alignment="center" valignment="top">
26631 <column alignment="center" valignment="top">
26632 <column alignment="center" valignment="top">
26634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26637 \begin_layout Plain Layout
26643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26646 \begin_layout Plain Layout
26652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26655 \begin_layout Plain Layout
26661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26664 \begin_layout Plain Layout
26670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26673 \begin_layout Plain Layout
26697 \begin_layout Section
26698 Floats Side by Side
26699 \begin_inset Index idx
26702 \begin_layout Plain Layout
26703 Floats ! Side by side
26711 \begin_layout Standard
26712 To place floats side by side, as in Figures
26713 \begin_inset space ~
26717 \begin_inset CommandInset ref
26719 reference "fig:Float-left"
26724 \begin_inset CommandInset ref
26726 reference "fig:Float-right"
26735 In it two minipage boxes are inserted.
26739 \begin_layout Plain Layout
26740 Minipages are explained in section
26741 \begin_inset space ~
26745 \begin_inset CommandInset ref
26747 reference "sec:Minipages"
26756 The width is set to 45
26757 \begin_inset space \thinspace{}
26761 \begin_inset space \thinspace{}
26764 column% and the box alignment to
26769 The minipage boxes contain the image and the caption in the same way as
26770 they are in a float.
26771 The only difference is that the image unit
26774 \begin_inset space ~
26778 \begin_inset space ~
26783 is now calculated according to the width of the minipage boxes.
26786 \begin_layout Standard
26787 \begin_inset Float figure
26792 \begin_layout Plain Layout
26793 \begin_inset Box Frameless
26803 height_special "totalheight"
26808 backgroundcolor "none"
26811 \begin_layout Plain Layout
26813 \begin_inset Graphics
26814 filename clipart/mobius.eps
26817 scaleBeforeRotation
26824 \begin_layout Plain Layout
26825 \begin_inset Caption Standard
26827 \begin_layout Plain Layout
26828 \begin_inset CommandInset label
26830 name "fig:Float-left"
26834 Float on the left side.
26845 \begin_inset space \hfill{}
26849 \begin_inset Box Frameless
26859 height_special "totalheight"
26864 backgroundcolor "none"
26867 \begin_layout Plain Layout
26869 \begin_inset Graphics
26870 filename clipart/platypus.eps
26873 scaleBeforeRotation
26880 \begin_layout Plain Layout
26881 \begin_inset Caption Standard
26883 \begin_layout Plain Layout
26884 \begin_inset CommandInset label
26886 name "fig:Float-right"
26890 Float on the right side.
26908 \begin_layout Standard
26909 An alternative and simpler solution is to use the module
26911 Variable-width Minipages
26914 \begin_inset space \thinspace{}
26918 \begin_inset CommandInset ref
26920 reference "sec:Minipages"
26925 Variable-width minipages adapt automatically to the width of the figures
26927 They do not require an explicit width to be given, and they improve the
26928 horizontal alignment of the figures.
26929 The LyX example file
26931 varwidth-floats-side-by-side
26933 gives examples of how to do this.
26936 \begin_layout Section
26938 \begin_inset Index idx
26941 \begin_layout Plain Layout
26942 Caption ! Formatting
26948 \begin_inset Index idx
26951 \begin_layout Plain Layout
26952 Floats ! Caption Formatting
26958 \begin_inset CommandInset label
26960 name "sec:Caption-Formatting"
26967 \begin_layout Standard
26972 environment is the default paragraph environment for
26977 On the \SpecialChar LyX
26978 screen captions appear as a label, e.
26979 \begin_inset space \thinspace{}
26983 \begin_inset space \space{}
26987 \begin_inset Quotes eld
26995 \begin_inset Quotes erd
26998 followed by the caption text.
27000 \begin_inset Quotes eld
27004 \begin_inset Quotes erd
27007 is the actual reference number.
27008 By default the label and the number are in the same font as the caption
27009 text and a colon follows the number to divide the label from the text.
27010 This caption format is suitable for many but not all documents.
27014 \begin_layout Standard
27015 To change the default caption format, load the \SpecialChar LaTeX
27021 \begin_inset Index idx
27024 \begin_layout Plain Layout
27026 -packages ! caption
27031 in the document preamble with this line:
27034 \begin_layout Standard
27039 usepackage[format definition]{caption}
27042 \begin_layout Standard
27043 To have for example the label and the number in sans-serif, bold font and
27044 the table captions always above the table as in this document, use the
27048 \begin_layout Standard
27053 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27056 \begin_layout Standard
27057 You can also define different caption formats for the different float types.
27058 In this case load the
27062 package without format specific options and define the different formats
27063 with the help of the command
27066 \begin_layout Standard
27071 captionsetup[float type]{format definition}
27074 \begin_layout Standard
27075 in the document preamble.
27076 For example the caption formats of Figure
27077 \begin_inset space ~
27081 \begin_inset CommandInset ref
27083 reference "fig:This-is-an-fig"
27088 \begin_inset space ~
27092 \begin_inset CommandInset ref
27094 reference "tab:This-is-an-tab"
27098 can be created using these commands in the document preamble:
27101 \begin_layout Standard
27106 usepackage[tableposition=top]{caption}
27109 \begin_inset Newline newline
27116 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27117 \begin_inset Newline newline
27121 \begin_inset Phantom HPhantom
27124 \begin_layout Plain Layout
27129 captionsetup[figure]{
27135 \begin_inset Newline newline
27140 captionsetup[table]{labelfont={bf,sf}}
27143 \begin_layout Standard
27144 \begin_inset Note Greyedout
27147 \begin_layout Plain Layout
27156 has no effect when a
27161 \begin_inset Index idx
27164 \begin_layout Plain Layout
27166 -packages ! KOMA-Script
27171 document class is used.
27172 In this case the document class option
27174 captions=tableheading
27184 \begin_layout Standard
27185 For more information about the package
27189 we refer to its documentation
27190 \begin_inset CommandInset citation
27199 \begin_layout Standard
27200 To change the label name from e.
27201 \begin_inset space \thinspace{}
27205 \begin_inset space \space{}
27209 \begin_inset Quotes eld
27213 \begin_inset Quotes erd
27217 \begin_inset Quotes eld
27221 \begin_inset Quotes erd
27224 use this preamble command:
27227 \begin_layout Standard
27234 fnum@figure}{Image~
27239 \begin_layout Standard
27246 inserts the figure number and
27249 \begin_inset Quotes eld
27255 \begin_inset Quotes erd
27258 creates a protected space.
27261 \begin_layout Standard
27262 \begin_inset VSpace bigskip
27270 \begin_inset Index idx
27273 \begin_layout Plain Layout
27275 -packages ! KOMA-Script
27282 article (KOMA-Script)
27290 letter (KOMA-Script)
27294 report (KOMA-Script)
27297 \begin_inset space \thinspace{}
27300 ), you can alternatively to the
27308 's built-in command
27315 For example, to have the caption label in bold, add this command to your
27319 \begin_layout Standard
27324 setkomafont{captionlabel}{
27329 \begin_layout Standard
27330 For more information about
27341 \begin_inset CommandInset citation
27350 \begin_layout Standard
27354 \begin_layout Plain Layout
27358 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27365 \begin_inset Note Note
27368 \begin_layout Plain Layout
27369 The caption format is changed only for this example.
27377 \begin_layout Standard
27378 \begin_inset Float figure
27384 \begin_layout Plain Layout
27386 \begin_inset Graphics
27387 filename clipart/mobius.eps
27390 scaleBeforeRotation
27397 \begin_layout Plain Layout
27398 \begin_inset Caption Standard
27400 \begin_layout Plain Layout
27401 \begin_inset CommandInset label
27403 name "fig:This-is-an-fig"
27407 This is an example figure caption that is longer than one line to show the
27408 different caption format.
27409 Here a self-defined caption format is used.
27422 \begin_layout Standard
27426 \begin_layout Plain Layout
27430 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27439 \begin_layout Standard
27440 \begin_inset Float table
27446 \begin_layout Plain Layout
27447 \begin_inset Caption Standard
27449 \begin_layout Plain Layout
27450 \begin_inset CommandInset label
27452 name "tab:This-is-an-tab"
27456 This is an example table caption that is longer than one line to show the
27457 different caption format.
27458 Here the standard caption format for tables in this document is used.
27466 \begin_layout Plain Layout
27468 \begin_inset Tabular
27469 <lyxtabular version="3" rows="1" columns="5">
27470 <features tabularvalignment="middle">
27471 <column alignment="center" valignment="top">
27472 <column alignment="center" valignment="top">
27473 <column alignment="center" valignment="top">
27474 <column alignment="center" valignment="top">
27475 <column alignment="center" valignment="top">
27477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27480 \begin_layout Plain Layout
27486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27489 \begin_layout Plain Layout
27495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27498 \begin_layout Plain Layout
27504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27507 \begin_layout Plain Layout
27513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27516 \begin_layout Plain Layout
27535 \begin_layout Section
27537 \begin_inset Index idx
27540 \begin_layout Plain Layout
27541 Caption ! Placement
27547 \begin_inset Index idx
27550 \begin_layout Plain Layout
27551 Floats ! Caption Placement
27557 \begin_inset CommandInset label
27559 name "sec:Caption-Placement"
27566 \begin_layout Standard
27567 The common caption placement rule is:
27570 \begin_layout Description
27571 Figure: Caption is set below the figure
27574 \begin_layout Description
27575 Table: Caption is set above the table
27578 \begin_layout Standard
27579 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27582 That means if you are using the document classes
27598 there will be no space between the caption and the table.
27599 To insert the necessary space, load the \SpecialChar LaTeX
27605 \begin_inset Index idx
27608 \begin_layout Plain Layout
27610 -packages ! caption
27615 in your document preamble with the option
27619 \begin_layout Plain Layout
27621 \begin_inset space ~
27625 \begin_inset CommandInset ref
27627 reference "sec:Caption-Formatting"
27631 for more information of the package
27643 \begin_layout Standard
27649 \begin_layout Standard
27655 \begin_inset Index idx
27658 \begin_layout Plain Layout
27660 -packages ! KOMA-Script
27667 article (KOMA-Script)
27675 letter (KOMA-Script)
27679 report (KOMA-Script)
27682 \begin_inset space \thinspace{}
27685 ), you can alternatively to the
27689 package set the document class option
27693 \begin_layout Plain Layout
27694 That option is used in this document.
27702 \begin_layout Standard
27705 captions=tableheading
27708 \begin_layout Standard
27709 In documents with a KOMA-Script document class you can also right-click
27710 on a caption and mark in the context menu if this should be a caption above
27711 or below the table/figure.
27712 This way you can override the document-wide caption placement for certain
27715 \begin_inset space ~
27719 \begin_inset CommandInset ref
27721 reference "tab:A-caption-marked"
27725 is an example where the caption is marked a being below the table while
27727 For comparison the caption in Table
27728 \begin_inset space ~
27732 \begin_inset CommandInset ref
27734 reference "tab:A-standard-table"
27741 \begin_layout Standard
27742 \begin_inset Float table
27747 \begin_layout Plain Layout
27748 \begin_inset Caption Below
27750 \begin_layout Plain Layout
27751 \begin_inset CommandInset label
27753 name "tab:A-caption-marked"
27757 A caption marked as being below the table.
27765 \begin_layout Plain Layout
27767 \begin_inset Tabular
27768 <lyxtabular version="3" rows="3" columns="3">
27769 <features tabularvalignment="middle">
27770 <column alignment="center" valignment="top" width="0pt">
27771 <column alignment="center" valignment="top" width="0pt">
27772 <column alignment="center" valignment="top" width="0pt">
27774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27777 \begin_layout Plain Layout
27783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27786 \begin_layout Plain Layout
27792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27795 \begin_layout Plain Layout
27803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27806 \begin_layout Plain Layout
27812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27815 \begin_layout Plain Layout
27821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27824 \begin_layout Plain Layout
27832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27835 \begin_layout Plain Layout
27836 \begin_inset Formula $\int x^{2}dx$
27844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27847 \begin_layout Plain Layout
27848 \begin_inset Formula $\left[\begin{array}{cc}
27851 \end{array}\right]$
27859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27862 \begin_layout Plain Layout
27863 \begin_inset Formula $1+1=2$
27884 \begin_layout Standard
27885 \begin_inset Float table
27890 \begin_layout Plain Layout
27891 \begin_inset Caption Standard
27893 \begin_layout Plain Layout
27894 \begin_inset CommandInset label
27896 name "tab:A-standard-table"
27900 A standard table caption.
27908 \begin_layout Plain Layout
27910 \begin_inset Tabular
27911 <lyxtabular version="3" rows="3" columns="3">
27912 <features tabularvalignment="middle">
27913 <column alignment="center" valignment="top" width="0pt">
27914 <column alignment="center" valignment="top" width="0pt">
27915 <column alignment="center" valignment="top" width="0pt">
27917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27920 \begin_layout Plain Layout
27926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27929 \begin_layout Plain Layout
27935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27938 \begin_layout Plain Layout
27946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27949 \begin_layout Plain Layout
27955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27958 \begin_layout Plain Layout
27964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27967 \begin_layout Plain Layout
27975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27979 \begin_inset Formula $\int x^{2}dx$
27987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27990 \begin_layout Plain Layout
27991 \begin_inset Formula $\left[\begin{array}{cc}
27994 \end{array}\right]$
28002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28005 \begin_layout Plain Layout
28006 \begin_inset Formula $1+1=2$
28027 \begin_layout Standard
28028 \begin_inset VSpace bigskip
28031 It is also possible to set the caption beside a figure or table.
28032 To get this the \SpecialChar LaTeX
28038 \begin_inset Index idx
28041 \begin_layout Plain Layout
28043 -packages ! sidecap
28048 has to be loaded in the document preamble with the line
28051 \begin_layout Standard
28056 usepackage[option]{sidecap}
28059 \begin_layout Standard
28060 If you set no option, the caption is placed on the side of the outer page
28061 margin – to the right on odd pages, to the left on even pages.
28062 You can change the placement to inner margin with the option
28067 To force the placement always to the right or left, use the option
28078 \begin_layout Standard
28082 \begin_layout Plain Layout
28092 \begin_inset Note Note
28095 \begin_layout Plain Layout
28096 The following section will only be displayed when the \SpecialChar LaTeX
28109 \begin_layout Standard
28110 To place in \SpecialChar LyX
28111 the caption of a float on the side, it is necessary to add
28112 these commands to the document preamble:
28115 \begin_layout Standard
28117 \begin_inset CommandInset line
28128 \begin_layout Standard
28135 TabBesBeg}[1][1.0]{%
28136 \begin_inset Newline newline
28140 \begin_inset Phantom HPhantom
28143 \begin_layout Plain Layout
28144 \begin_inset space ~
28159 \begin_inset Newline newline
28163 \begin_inset Phantom HPhantom
28166 \begin_layout Plain Layout
28169 \begin_inset space ~
28184 \begin_inset Newline newline
28188 \begin_inset Phantom HPhantom
28191 \begin_layout Plain Layout
28194 \begin_inset space ~
28204 renewenvironment{table}[1]{
28206 begin{SCtable}[#1]##1}{
28211 \begin_layout Standard
28219 \begin_inset Newline newline
28223 \begin_inset Phantom HPhantom
28226 \begin_layout Plain Layout
28227 \begin_inset space ~
28242 \begin_inset Newline newline
28246 \begin_inset Phantom HPhantom
28249 \begin_layout Plain Layout
28250 \begin_inset space ~
28267 \begin_layout Standard
28274 FigBesBeg}[1][1.0]{%
28275 \begin_inset Newline newline
28279 \begin_inset Phantom HPhantom
28282 \begin_layout Plain Layout
28283 \begin_inset space ~
28298 \begin_inset Newline newline
28302 \begin_inset Phantom HPhantom
28305 \begin_layout Plain Layout
28306 \begin_inset space ~
28321 \begin_inset Newline newline
28325 \begin_inset Phantom HPhantom
28328 \begin_layout Plain Layout
28329 \begin_inset space ~
28339 renewenvironment{figure}[1]{
28341 begin{SCfigure}[#1]##1}{
28346 \begin_layout Standard
28354 \begin_inset Newline newline
28358 \begin_inset Phantom HPhantom
28361 \begin_layout Plain Layout
28362 \begin_inset space ~
28377 \begin_inset Newline newline
28381 \begin_inset Phantom HPhantom
28384 \begin_layout Plain Layout
28385 \begin_inset space ~
28402 \begin_layout Standard
28404 \begin_inset CommandInset line
28415 \begin_layout Standard
28416 The commands allow you to redefine the floats so that the caption is set
28418 For figure floats use the command
28421 \begin_layout Standard
28429 \begin_layout Standard
28430 in \SpecialChar TeX
28431 Code before the float.
28432 And insert the command
28435 \begin_layout Standard
28443 \begin_layout Standard
28444 in \SpecialChar TeX
28445 Code at the point where you want to get back to the original float definitio
28449 \begin_layout Standard
28450 For table floats use the corresponding commands
28453 \begin_layout Standard
28467 \begin_layout Standard
28469 \begin_inset space ~
28473 \begin_inset CommandInset ref
28475 reference "fig:cap-beside-fig"
28480 \begin_inset space ~
28484 \begin_inset CommandInset ref
28486 reference "tab:cap-beside-tab"
28490 are examples where the caption is set beside.
28493 \begin_layout Standard
28494 You can see in the examples that the caption text appears at the top of
28495 the floats for table floats and at the bottom for figure floats.
28496 To change this, you can use the command
28499 \begin_layout Standard
28504 sidecaptionvpos{float type}{placement}
28507 \begin_layout Standard
28508 in the document preamble or in \SpecialChar TeX
28509 Code before the float.
28510 The float type is either
28518 , the placement can be
28519 \begin_inset Quotes eld
28527 \begin_inset Quotes erd
28531 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28543 \begin_inset Quotes eld
28551 \begin_inset Quotes erd
28555 To have for example the caption of figure floats vertically centered, use
28559 \begin_layout Standard
28564 sidecaptionvpos{figure}{c}
28567 \begin_layout Standard
28568 This was used for Figure
28569 \begin_inset space ~
28573 \begin_inset CommandInset ref
28575 reference "fig:cap-beside-fig-2"
28582 \begin_layout Standard
28583 \begin_inset VSpace medskip
28589 \begin_layout Standard
28590 The default caption width is the width of the image/table.
28591 For thin image/tables, like in Table
28592 \begin_inset space ~
28596 \begin_inset CommandInset ref
28598 reference "tab:cap-beside-tab"
28602 , this leads to captions that are too thin.
28603 You can increase the width by specifying a factor that will be multiplied
28604 with the image/table width to get the caption width.
28605 The caption width will automatically be recalculated in case it would protrude
28606 over the page or column margin due to the specified width.
28611 can either be given as optional argument for
28620 \begin_layout Standard
28628 \begin_layout Standard
28629 or in the definition of
28639 with another value.
28640 If you do the latter, your factor will be the default if
28646 is used without an argument.
28648 \begin_inset space ~
28652 \begin_inset CommandInset ref
28654 reference "tab:cap-beside-tab-wider"
28658 the factor 5 was used.
28661 \begin_layout Standard
28662 \begin_inset Note Greyedout
28665 \begin_layout Plain Layout
28670 For floats with captions set beside, you cannot use the float placement
28674 \begin_inset space ~
28679 because it is not supported by
28691 \begin_layout Standard
28692 \begin_inset VSpace medskip
28695 For more information about the package
28699 we refer to its documentation
28700 \begin_inset CommandInset citation
28709 \begin_layout Standard
28710 \begin_inset Note Greyedout
28713 \begin_layout Plain Layout
28718 The \SpecialChar LaTeX
28724 \begin_inset Index idx
28727 \begin_layout Plain Layout
28734 , described in section
28735 \begin_inset space ~
28739 \begin_inset CommandInset ref
28741 reference "subsec:Reference-Position"
28745 , has no effect on floats with the caption set beside.
28753 \begin_layout Standard
28757 \begin_layout Plain Layout
28769 \begin_layout Standard
28770 \begin_inset Float figure
28775 \begin_layout Plain Layout
28776 \begin_inset Graphics
28777 filename clipart/escher-lsd.eps
28779 scaleBeforeRotation
28786 \begin_layout Plain Layout
28787 \begin_inset Caption Standard
28789 \begin_layout Plain Layout
28790 \begin_inset CommandInset label
28792 name "fig:cap-beside-fig"
28796 This is a caption beside a figure.
28809 \begin_layout Standard
28813 \begin_layout Plain Layout
28825 \begin_layout Standard
28829 \begin_layout Plain Layout
28841 \begin_layout Standard
28842 \begin_inset Float table
28847 \begin_layout Plain Layout
28848 \begin_inset Caption Standard
28850 \begin_layout Plain Layout
28851 \begin_inset CommandInset label
28853 name "tab:cap-beside-tab"
28857 This is a caption beside a table.
28865 \begin_layout Plain Layout
28866 \begin_inset Tabular
28867 <lyxtabular version="3" rows="4" columns="5">
28868 <features tabularvalignment="middle">
28869 <column alignment="center" valignment="top">
28870 <column alignment="center" valignment="top">
28871 <column alignment="center" valignment="top">
28872 <column alignment="center" valignment="top">
28873 <column alignment="center" valignment="top">
28875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28878 \begin_layout Plain Layout
28884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28887 \begin_layout Plain Layout
28893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28896 \begin_layout Plain Layout
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Plain Layout
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28914 \begin_layout Plain Layout
28922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28925 \begin_layout Plain Layout
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28934 \begin_layout Plain Layout
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28961 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28981 \begin_layout Plain Layout
28987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28990 \begin_layout Plain Layout
28996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28999 \begin_layout Plain Layout
29005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29008 \begin_layout Plain Layout
29016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29019 \begin_layout Plain Layout
29025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29028 \begin_layout Plain Layout
29034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29037 \begin_layout Plain Layout
29043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29046 \begin_layout Plain Layout
29052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29055 \begin_layout Plain Layout
29074 \begin_layout Standard
29078 \begin_layout Plain Layout
29090 \begin_layout Standard
29094 \begin_layout Plain Layout
29107 \begin_layout Plain Layout
29111 sidecaptionvpos{figure}{c}
29117 \begin_inset Float figure
29122 \begin_layout Plain Layout
29123 \begin_inset Graphics
29124 filename clipart/escher-lsd.eps
29126 scaleBeforeRotation
29133 \begin_layout Plain Layout
29134 \begin_inset Caption Standard
29136 \begin_layout Plain Layout
29137 \begin_inset CommandInset label
29139 name "fig:cap-beside-fig-2"
29143 This is a vertically centered caption beside a figure.
29156 \begin_layout Standard
29160 \begin_layout Plain Layout
29172 \begin_layout Standard
29176 \begin_layout Plain Layout
29188 \begin_layout Standard
29189 \begin_inset Float table
29194 \begin_layout Plain Layout
29195 \begin_inset Caption Standard
29197 \begin_layout Plain Layout
29198 \begin_inset CommandInset label
29200 name "tab:cap-beside-tab-wider"
29204 This caption is wider than the one in Table
29205 \begin_inset space ~
29209 \begin_inset CommandInset ref
29211 reference "tab:cap-beside-tab"
29223 \begin_layout Plain Layout
29224 \begin_inset Tabular
29225 <lyxtabular version="3" rows="4" columns="5">
29226 <features tabularvalignment="middle">
29227 <column alignment="center" valignment="top">
29228 <column alignment="center" valignment="top">
29229 <column alignment="center" valignment="top">
29230 <column alignment="center" valignment="top">
29231 <column alignment="center" valignment="top">
29233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29236 \begin_layout Plain Layout
29242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29245 \begin_layout Plain Layout
29251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29254 \begin_layout Plain Layout
29260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29263 \begin_layout Plain Layout
29269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29272 \begin_layout Plain Layout
29280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29283 \begin_layout Plain Layout
29289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29292 \begin_layout Plain Layout
29298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29301 \begin_layout Plain Layout
29307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29310 \begin_layout Plain Layout
29316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29319 \begin_layout Plain Layout
29327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29330 \begin_layout Plain Layout
29336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29339 \begin_layout Plain Layout
29345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29348 \begin_layout Plain Layout
29354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29357 \begin_layout Plain Layout
29363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29366 \begin_layout Plain Layout
29374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29377 \begin_layout Plain Layout
29383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29386 \begin_layout Plain Layout
29392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29395 \begin_layout Plain Layout
29401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29404 \begin_layout Plain Layout
29410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29413 \begin_layout Plain Layout
29432 \begin_layout Standard
29436 \begin_layout Plain Layout
29448 \begin_layout Standard
29452 \begin_layout Plain Layout
29462 \begin_inset Note Note
29465 \begin_layout Plain Layout
29466 The following will be displayed when the \SpecialChar LaTeX
29479 \begin_layout Standard
29480 You need to install the \SpecialChar LaTeX
29485 to see the following part of this section in the output.
29488 \begin_layout Standard
29492 \begin_layout Plain Layout
29504 \begin_layout Section
29506 \begin_inset Index idx
29509 \begin_layout Plain Layout
29510 Floats ! Float Lists
29518 \begin_layout Standard
29519 Similar to the table of contents where the sections of the document are
29520 listed, there are listings for all float types, like the figures of the
29522 You can insert them via the
29524 Insert\SpecialChar menuseparator
29526 \begin_inset space ~
29530 \begin_inset space ~
29538 \begin_layout Standard
29539 The list entries are the float captions or its short title, the float number,
29540 and the page number where they appear in the document.
29543 \begin_layout Standard
29544 You can find the list of figures and tables at the end of this document.
29547 \begin_layout Chapter
29551 \begin_layout Section
29554 \begin_inset Index idx
29557 \begin_layout Plain Layout
29558 Notes ! \SpecialChar LyX
29567 \begin_layout Standard
29568 Notes are inserted with the toolbar button
29576 Insert\SpecialChar menuseparator
29580 There are three types of notes:
29583 \begin_layout Description
29586 \begin_inset space ~
29589 Note This note type is for internal notes that won't appear in the output.
29590 Its note-box looks like this:
29591 \begin_inset Newline newline
29595 \begin_inset Newline newline
29599 \begin_inset Graphics
29600 filename clipart/LyXNoteImageQt4.png
29603 scaleBeforeRotation
29608 \begin_inset Note Note
29611 \begin_layout Plain Layout
29612 This is text in a note box that doesn't appear in the output.
29620 \begin_layout Description
29621 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29623 when you export the document to \SpecialChar LaTeX
29626 File\SpecialChar menuseparator
29627 Export\SpecialChar menuseparator
29629 (pdflatex) / (plain)
29632 Its note-box looks like this:
29633 \begin_inset Newline newline
29637 \begin_inset Newline newline
29641 \begin_inset Graphics
29642 filename clipart/CommentNoteImageQt4.png
29645 scaleBeforeRotation
29650 \begin_inset Note Comment
29653 \begin_layout Plain Layout
29654 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29663 \begin_layout Description
29665 \begin_inset space ~
29668 Out This note will appear in the output as grey text.
29669 Its note-box looks like this:
29670 \begin_inset Newline newline
29674 \begin_inset Newline newline
29678 \begin_inset Graphics
29679 filename clipart/GreyedOutNoteImageQt4.png
29682 scaleBeforeRotation
29687 \begin_inset Newline newline
29694 \begin_layout Plain Layout
29698 renewenvironment{lyxgreyedout}
29701 \begin_layout Plain Layout
29705 textcolor[gray]{0.8}
29715 \begin_inset Note Greyedout
29718 \begin_layout Plain Layout
29723 \begin_layout Plain Layout
29724 This is an example footnote within a greyed out note.
29729 of a comment that appears in the output as grey text.
29738 \begin_layout Plain Layout
29742 renewenvironment{lyxgreyedout}
29745 \begin_layout Plain Layout
29759 \begin_inset Note Note
29762 \begin_layout Plain Layout
29763 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29765 because greyed out notes are redefined in the preamble of this document,
29766 as described below, to have blue text.
29772 \begin_inset Newline newline
29776 \begin_inset Newline newline
29779 As you can see in the example, the first line of greyed out notes is a bit
29780 indented and greyed out notes can have footnotes.
29783 \begin_layout Standard
29784 \begin_inset VSpace bigskip
29787 When you use the toolbar button
29797 \begin_inset space ~
29803 You can switch between the three note types by right-clicking on the note-box.
29808 If you want to turn existing text into a note, mark it and click on the
29822 To change a note to text, press the backspace key when the cursor is in
29823 the first position of a note, or press the delete key when the cursor is
29824 in the very last position of the note, respectively.
29827 \begin_layout Standard
29828 \begin_inset VSpace bigskip
29831 You can change the text color of the greyed out notes in the menu
29833 Document\SpecialChar menuseparator
29834 Settings\SpecialChar menuseparator
29840 \begin_layout Section
29842 \begin_inset CommandInset label
29844 name "sec:Footnotes"
29849 \begin_inset Index idx
29852 \begin_layout Plain Layout
29859 \begin_inset Index idx
29862 \begin_layout Plain Layout
29871 \begin_layout Standard
29872 Footnotes can be inserted using the toolbar button
29875 arg "footnote-insert"
29880 Insert\SpecialChar menuseparator
29884 You will then see the following footnote-box:
29885 \begin_inset Graphics
29886 filename clipart/footnoteQt4.png
29888 scaleBeforeRotation
29896 where you can enter the footnote text.
29897 If you want to turn existing text into a footnote, mark it and click on
29923 key when the cursor is in the first position of a
29935 key when the cursor is in the very last position of the
29946 \begin_layout Standard
29947 Here is an example footnote:
29955 \begin_layout Plain Layout
29956 \begin_inset CommandInset label
29958 name "foot:This-is-an"
29962 This is an example footnote.
29975 \begin_layout Plain Layout
29979 newcounter{MyRepeatFoot}
29982 \begin_layout Plain Layout
29986 setcounter{MyRepeatFoot}{
29996 \begin_layout Standard
29997 The footnote will appear in the output as a superscript number at the text
29998 position where the footnote box is placed.
29999 The footnote text is placed at the bottom of the current page.
30000 The footnote number is calculated by \SpecialChar LaTeX
30001 ; the numbers are consecutive.
30002 Whether the footnote number is reset for every chapter depends on your
30006 \begin_layout Standard
30007 Footnotes can be referenced like floats: Insert a label into the footnote
30008 and cross-reference this label in the text as described in section
30009 \begin_inset space ~
30013 \begin_inset CommandInset ref
30015 reference "sec:Referencing-Floats"
30020 \begin_inset Newline newline
30023 This is a cross-reference of Footnote
30024 \begin_inset space ~
30028 \begin_inset CommandInset ref
30030 reference "foot:This-is-an"
30037 \begin_layout Standard
30038 \begin_inset VSpace defskip
30041 Footnotes in title environments are usually not numbered with symbols and
30042 they cannot contain several paragraphs.
30043 See for example the footnote in the titling of this document.
30046 \begin_layout Standard
30047 \begin_inset VSpace defskip
30050 Footnotes in tables are not printed by \SpecialChar LaTeX
30051 due to technical reasons.
30052 However there exists another method to print them: Instead of the footnote
30059 is inserted as \SpecialChar TeX
30061 The text of the footnote is entered as an argument of the \SpecialChar TeX
30070 \begin_inset Newline newline
30073 This was done for the following table with the command
30076 \begin_layout Standard
30083 Printed table footnote.
30088 \begin_layout Standard
30089 \begin_inset Tabular
30090 <lyxtabular version="3" rows="2" columns="1">
30091 <features tabularvalignment="middle">
30092 <column alignment="center" valignment="top">
30094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30097 \begin_layout Plain Layout
30098 This an example text.
30102 \begin_layout Plain Layout
30103 This footnote will not be printed!
30115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30118 \begin_layout Plain Layout
30119 This an example text.
30123 \begin_layout Plain Layout
30146 \begin_layout Plain Layout
30155 Printed table footnote.
30159 \begin_layout Plain Layout
30169 \begin_layout Standard
30170 Footnotes in longtables are described in section
30171 \begin_inset space ~
30175 \begin_inset CommandInset ref
30177 reference "subsec:Footnotes-in-Longtables"
30184 \begin_layout Standard
30185 Footnotes in minipage boxes are printed, but inside the box and with a different
30186 numbering because a minipage box is like a page inside a page.
30187 (For more about minipages, see section
30188 \begin_inset space ~
30192 \begin_inset CommandInset ref
30194 reference "sec:Minipages"
30198 .) To get a footnote in the minipage that is output at the bottom of the
30199 page like normal footnotes, also use the method of
30214 \begin_layout Standard
30215 \begin_inset Box Frameless
30225 height_special "totalheight"
30230 backgroundcolor "none"
30233 \begin_layout Plain Layout
30234 This an example text in a minipage.
30238 \begin_layout Plain Layout
30239 Footnote in the minipage.
30247 \begin_layout Plain Layout
30248 This an example text in a minipage.
30252 \begin_layout Plain Layout
30269 \begin_layout Standard
30273 \begin_layout Plain Layout
30282 Footnote outside the minipage.
30286 \begin_layout Plain Layout
30296 \begin_layout Standard
30297 \begin_inset VSpace defskip
30303 \begin_layout Standard
30304 To refer to the same footnote several times without printing the footnote
30305 text every time, use the command
30309 footnotemark[number]
30311 in \SpecialChar TeX
30313 \begin_inset Newline newline
30316 As you do not know the number of the repeating footnote while you are writing
30317 the text, you have to store its number.
30318 For the following footnote mark example, these commands were inserted in
30320 code after Footnote
30321 \begin_inset space ~
30325 \begin_inset CommandInset ref
30327 reference "foot:This-is-an"
30331 to store the footnote number:
30334 \begin_layout Standard
30339 newcounter{MyRepeatFoot}
30340 \begin_inset Newline newline
30345 setcounter{MyRepeatFoot}{
30350 \begin_layout Standard
30351 The footnote mark was then created with this command:
30354 \begin_layout Standard
30364 \begin_layout Standard
30365 Here is a repeated footnote:
30373 \begin_layout Plain Layout
30387 \begin_layout Standard
30388 If you want to repeat the previous footnote, you can omit the storage of
30389 the footnote number and just use this command instead:
30392 \begin_layout Standard
30402 \begin_layout Standard
30403 Here is another repeated footnote:
30411 \begin_layout Plain Layout
30425 \begin_layout Subsection
30427 \begin_inset CommandInset label
30429 name "subsec:Footnote-Numbering"
30434 \begin_inset Index idx
30437 \begin_layout Plain Layout
30438 Footnotes ! Numbering
30446 \begin_layout Standard
30447 To reset the footnote number back to 1 after each section
30449 , add this command to your document preamble:
30452 \begin_layout Standard
30457 @addtoreset{footnote}{section}
30460 \begin_layout Standard
30461 \begin_inset VSpace bigskip
30464 The following preamble command changes the footnote numbering style to small
30468 \begin_layout Standard
30480 \begin_layout Standard
30484 \begin_layout Plain Layout
30497 This is a footnote with roman numbering:
30501 \begin_layout Plain Layout
30502 This is an example footnote with roman numbering.
30510 \begin_layout Standard
30511 To change the numbering style to capital roman numerals replace in the command
30526 \begin_inset Quotes eld
30530 \begin_inset Quotes erd
30533 footnotes with capital or small Latin letters use
30547 \begin_inset Quotes eld
30551 \begin_inset Quotes erd
30554 footnotes with symbols use
30563 \begin_layout Standard
30564 \begin_inset Note Greyedout
30567 \begin_layout Plain Layout
30572 You can only number 26 footnotes with Latin letters, because this numbering
30573 is limited to single letters.
30579 \begin_inset Newline newline
30583 \begin_inset Note Greyedout
30586 \begin_layout Plain Layout
30591 You can only number 9 footnotes with symbols.
30599 \begin_layout Standard
30600 To return to the default numbering style after you have changed to another
30613 in the command above.
30617 \begin_layout Plain Layout
30633 \begin_layout Standard
30634 \begin_inset VSpace bigskip
30640 \begin_layout Standard
30641 If you want to have footnotes numbered in the scheme
30642 \begin_inset Quotes eld
30646 \begin_inset Quotes erd
30649 , add the following command to your document preamble:
30652 \begin_layout Standard
30657 numberwithin{footnote}{chapter}
30660 \begin_layout Standard
30661 To be able to use the command
30670 \begin_inset space ~
30675 in the document settings the option
30678 \begin_inset space ~
30682 \begin_inset space ~
30686 \begin_inset space ~
30694 \begin_layout Standard
30698 \begin_layout Plain Layout
30702 numberwithin{footnote}{chapter}
30707 This is another example footnote:
30713 \begin_layout Plain Layout
30714 This is a footnote numbered in the scheme
30715 \begin_inset Quotes eld
30719 \begin_inset Quotes erd
30733 \begin_layout Plain Layout
30749 \begin_layout Standard
30750 \begin_inset Note Greyedout
30753 \begin_layout Plain Layout
30764 always prints out the footnote number as arabic number; previous redefinitions
30765 to get non-arabic numbers are overwritten.
30773 \begin_layout Standard
30774 So to get for example the scheme
30775 \begin_inset Quotes eld
30781 \begin_inset Quotes erd
30784 , use this command instead of
30793 \begin_layout Standard
30807 \begin_layout Subsection
30809 \begin_inset Index idx
30812 \begin_layout Plain Layout
30813 Footnotes ! Placement
30821 \begin_layout Standard
30822 If you have several footnotes in one page, they appear without vertical
30823 space between them at the bottom of the page.
30824 To make them more readable you can e.
30825 \begin_inset space \thinspace{}
30829 \begin_inset space \space{}
30833 \begin_inset space \thinspace{}
30836 mm space with the following preamble command:
30839 \begin_layout Standard
30849 \begin_inset Newline newline
30863 \begin_layout Standard
30864 \begin_inset VSpace bigskip
30867 In a two-column document the footnotes appear at the bottom of every column,
30869 \begin_inset space ~
30873 \begin_inset CommandInset ref
30875 reference "fig:Standard-footnote-placement"
30880 If the footnotes should only appear at the bottom of the right column,
30882 \begin_inset space ~
30886 \begin_inset CommandInset ref
30888 reference "fig:Footnote-placement-in"
30892 , use the \SpecialChar LaTeX
30898 \begin_inset Index idx
30901 \begin_layout Plain Layout
30903 -packages ! ftnright
30908 with this command in the document preamble:
30911 \begin_layout Standard
30916 usepackage{ftnright}
30919 \begin_layout Standard
30920 \begin_inset Float figure
30926 \begin_layout Plain Layout
30930 \begin_layout Plain Layout
30940 \begin_inset Graphics
30941 filename clipart/without_fntright.pdf
30943 scaleBeforeRotation
30951 \begin_layout Plain Layout
30961 \begin_layout Plain Layout
30962 \begin_inset Caption Standard
30964 \begin_layout Plain Layout
30965 \begin_inset CommandInset label
30967 name "fig:Standard-footnote-placement"
30971 Standard footnote placement in two-column documents.
30984 \begin_layout Standard
30985 \begin_inset Float figure
30991 \begin_layout Plain Layout
30995 \begin_layout Plain Layout
31005 \begin_inset Graphics
31006 filename clipart/with_fntright.pdf
31008 scaleBeforeRotation
31016 \begin_layout Plain Layout
31026 \begin_layout Plain Layout
31027 \begin_inset Caption Standard
31029 \begin_layout Plain Layout
31030 \begin_inset CommandInset label
31032 name "fig:Footnote-placement-in"
31036 Footnote placement in two-column documents when the \SpecialChar LaTeX
31054 \begin_layout Standard
31055 \begin_inset VSpace bigskip
31058 In some scientific literature it is usual to collect the footnotes and print
31059 them in a separate paragraph at the end of a section, as in Figure
31060 \begin_inset space ~
31064 \begin_inset CommandInset ref
31066 reference "fig:Endnotes"
31071 They are then called
31072 \begin_inset Quotes eld
31076 \begin_inset Quotes erd
31080 \begin_inset Index idx
31083 \begin_layout Plain Layout
31089 To use endnotes instead of footnotes in your document, load in the menu
31092 Document\SpecialChar menuseparator
31093 Settings\SpecialChar menuseparator
31099 \begin_inset space ~
31103 \begin_inset space ~
31109 To insert the collected footnotes, insert the command
31112 \begin_layout Standard
31120 \begin_layout Standard
31121 in \SpecialChar TeX
31122 Code at the end of a section or chapter.
31125 \begin_layout Standard
31126 \begin_inset Float figure
31131 \begin_layout Plain Layout
31136 \begin_layout Plain Layout
31146 \begin_inset Graphics
31147 filename clipart/endnotes.pdf
31148 scaleBeforeRotation
31156 \begin_layout Plain Layout
31166 \begin_layout Plain Layout
31167 \begin_inset Caption Standard
31169 \begin_layout Plain Layout
31170 \begin_inset CommandInset label
31172 name "fig:Endnotes"
31176 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31190 \begin_layout Standard
31191 \begin_inset VSpace medskip
31194 The paragraph heading for the endnotes isn't automatically translated into
31195 the document language, this must be done manually.
31196 The following preamble command translates the default English
31197 \begin_inset Quotes eld
31201 \begin_inset Quotes erd
31205 \begin_inset Quotes eld
31209 \begin_inset Quotes erd
31215 \begin_layout Standard
31222 notesname}{Anmerkungen}
31225 \begin_layout Standard
31226 \begin_inset VSpace medskip
31229 The numbering of endnotes can be changed like the footnote numbering as
31230 described in section
31231 \begin_inset space ~
31235 \begin_inset CommandInset ref
31237 reference "subsec:Footnote-Numbering"
31241 ; just replace the command
31254 To reset the endnote number use the command
31260 as described in section
31261 \begin_inset space ~
31265 \begin_inset CommandInset ref
31267 reference "subsec:Footnote-Numbering"
31271 and replace the command parameter
31282 \begin_layout Standard
31283 For endnotes there is the command
31287 endnotemark[number]
31289 similar to the command
31295 , that is described in section
31296 \begin_inset space ~
31300 \begin_inset CommandInset ref
31302 reference "sec:Footnotes"
31309 \begin_layout Standard
31310 \begin_inset VSpace bigskip
31313 Footnotes can also be placed in the page margin and the footnote text alignment
31314 can be changed, see the \SpecialChar LaTeX
31320 \begin_inset Index idx
31323 \begin_layout Plain Layout
31325 -packages ! footmisc
31331 \begin_inset CommandInset citation
31337 for more information about this.
31340 \begin_layout Standard
31341 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31343 \begin_inset CommandInset citation
31345 key "latexcompanion,latexguide,latexbook"
31355 \begin_inset Index idx
31358 \begin_layout Plain Layout
31360 -packages ! KOMA-Script
31365 document class, you can adjust all footnote settings using class-specific
31367 \begin_inset CommandInset citation
31376 \begin_layout Section
31378 \begin_inset Index idx
31381 \begin_layout Plain Layout
31382 Notes ! Margin Notes
31390 \begin_layout Standard
31391 Margin notes look and behave in \SpecialChar LyX
31393 They are inserted via the menu
31395 Insert\SpecialChar menuseparator
31397 \begin_inset space ~
31402 or the toolbar button
31405 arg "marginalnote-insert"
31419 \begin_inset Quotes eld
31423 \begin_inset Quotes erd
31426 appears where you can enter the text of the margin note.
31429 \begin_layout Standard
31430 At the side is an example margin note.
31435 \begin_inset Marginal
31438 \begin_layout Plain Layout
31439 This is a margin note.
31447 \begin_layout Standard
31448 Margin notes appear at the right side in single-sided documents.
31449 In double-sided documents they appear in the outer margin – left on even
31450 pages, right on odd pages.
31451 The text of margin notes is aligned opposite to the outer margin – right-aligne
31452 d when the note appears in the left margin.
31453 The first line of the margin note is placed at the position of the text
31454 line where it is inserted in the document.
31457 \begin_layout Standard
31458 \begin_inset VSpace bigskip
31461 To place the margin note in the inner margin, add the command
31464 \begin_layout Standard
31472 \begin_layout Standard
31473 in \SpecialChar TeX
31474 Code before a margin note.
31475 The new placement is valid for all subsequent margin notes.
31480 \begin_layout Plain Layout
31490 \begin_inset Marginal
31493 \begin_layout Plain Layout
31494 This is a margin note in the inner margin.
31502 \begin_inset Newline newline
31508 \begin_inset Note Greyedout
31511 \begin_layout Plain Layout
31516 There is often not enough space in the inner margin so that the notes are
31517 not correctly displayed in the output.
31525 \begin_layout Standard
31526 To return to the default placement insert the command
31529 \begin_layout Standard
31537 \begin_layout Standard
31538 in \SpecialChar TeX
31543 \begin_layout Plain Layout
31553 \begin_inset Note Greyedout
31556 \begin_layout Plain Layout
31561 The command is ignored when it is within a paragraph where also the command
31576 \begin_layout Standard
31577 \begin_inset VSpace bigskip
31584 \begin_inset Marginal
31587 \begin_layout Plain Layout
31588 AVeryLongMarginParWord that isn't hyphenated.
31596 Similar to the case described in section
31597 \begin_inset space ~
31601 \begin_inset CommandInset ref
31603 reference "subsec:Multiple-Lines-in"
31607 , long words cannot be hyphenated when they are the first word in a margin
31609 To avoid this, insert 0
31610 \begin_inset space \thinspace{}
31613 pt horizontal space before the word
31618 \begin_inset Marginal
31621 \begin_layout Plain Layout
31622 \begin_inset space \hspace*{}
31626 AVeryLongMarginParWord that is hyphenated.
31634 \begin_layout Standard
31635 \begin_inset VSpace bigskip
31641 \begin_layout Standard
31642 \begin_inset Note Greyedout
31645 \begin_layout Plain Layout
31650 Margin notes can normally not be used inside tables, floats, and footnotes.
31658 \begin_layout Standard
31659 \begin_inset VSpace bigskip
31665 \begin_layout Standard
31669 \begin_layout Plain Layout
31679 \begin_inset Note Note
31682 \begin_layout Plain Layout
31683 The following section will only be displayed when the \SpecialChar LaTeX
31696 \begin_layout Standard
31697 This restriction can be evaded by using the \SpecialChar LaTeX
31703 \begin_inset Index idx
31706 \begin_layout Plain Layout
31708 -packages ! marginnote
31714 By adding these two lines to your document preamble, the command used by
31716 for margin notes is redefined to use the command provided by the
31723 \begin_layout Standard
31728 usepackage{marginnote}
31729 \begin_inset Newline newline
31741 \begin_layout Standard
31742 This is also used in this document because
31746 has another useful feature: You can set a vertical offset for the note.
31747 This is often needed when too many margin notes are too close together
31748 or for a better page layout.
31749 The offset is set in \SpecialChar LyX
31750 as \SpecialChar TeX
31751 Code directly after the margin note in the scheme
31754 \begin_layout Standard
31760 \begin_layout Standard
31761 where the offset is a length with one of the units listed in Table
31762 \begin_inset space ~
31766 \begin_inset CommandInset ref
31768 reference "tab:Units"
31773 A negative value shifts the note up, a positive value shifts it down.
31777 For example the margin note beside this text line is shifted up 1.5
31778 \begin_inset space \thinspace{}
31781 cm with the \SpecialChar TeX
31783 \begin_inset Quotes eld
31793 \begin_inset Quotes erd
31797 \begin_inset Marginal
31800 \begin_layout Plain Layout
31801 This margin note is shifted up 1.5
31802 \begin_inset space \thinspace{}
31805 cm from its original position.
31817 \begin_layout Plain Layout
31827 \begin_layout Standard
31828 \begin_inset VSpace medskip
31835 you can also change the alignment of the text in the margin note.
31836 For example the commands
31839 \begin_layout Standard
31846 raggedleftmarginnote}{
31849 \begin_inset Newline newline
31856 raggedrightmarginnote}{
31861 \begin_layout Standard
31862 set the alignment to centered.
31867 raggedleftmarginnote
31869 denotes margin notes that appear at the left side.
31876 \begin_layout Plain Layout
31882 raggedleftmarginnote}{
31887 \begin_layout Plain Layout
31893 raggedrightmarginnote}{
31901 \begin_inset Marginal
31904 \begin_layout Plain Layout
31905 The text of this margin note is centered.
31916 \begin_layout Standard
31923 raggedleftmarginnote}{
31926 \begin_inset Newline newline
31933 raggedrightmarginnote}{
31942 \begin_layout Plain Layout
31948 raggedleftmarginnote}{
31953 \begin_layout Plain Layout
31959 raggedrightmarginnote}{
31969 \begin_layout Standard
31970 \begin_inset VSpace medskip
31973 For the other features of
31977 refer to its documentation
31978 \begin_inset CommandInset citation
31987 \begin_layout Standard
31988 \begin_inset VSpace bigskip
31991 You can adjust the layout of margin notes by changing its definition.
31992 To create for example a header for all margin notes with the underlined,
31993 sans-serif, and bold header text
31994 \begin_inset Quotes eld
32006 \begin_inset Quotes erd
32009 , add this to your document preamble:
32012 \begin_layout Standard
32022 \begin_inset Newline newline
32032 \begin_inset Newline newline
32036 \begin_inset Phantom HPhantom
32039 \begin_layout Plain Layout
32042 \begin_inset space ~
32058 underbar{Attention!}}}%
32059 \begin_inset Newline newline
32063 \begin_inset Phantom HPhantom
32066 \begin_layout Plain Layout
32069 \begin_inset space ~
32086 \begin_layout Standard
32093 \begin_layout Plain Layout
32104 \begin_layout Plain Layout
32115 \begin_layout Plain Layout
32123 underbar{Attention!}}}%
32126 \begin_layout Plain Layout
32140 \begin_inset Marginal
32143 \begin_layout Plain Layout
32144 This is a margin note with a defined heading.
32156 \begin_layout Plain Layout
32170 \begin_layout Plain Layout
32187 \begin_inset Note Note
32190 \begin_layout Plain Layout
32191 The margin note format is changed only for this example.
32199 \begin_layout Standard
32203 \begin_layout Plain Layout
32213 \begin_inset Note Note
32216 \begin_layout Plain Layout
32217 The following will be displayed when the \SpecialChar LaTeX
32230 \begin_layout Standard
32231 You need to install the \SpecialChar LaTeX
32236 to see the following part of this section in the output.
32239 \begin_layout Standard
32243 \begin_layout Plain Layout
32255 \begin_layout Chapter
32259 \begin_layout Section
32261 \begin_inset Index idx
32264 \begin_layout Plain Layout
32265 Boxes ! Introduction
32273 \begin_layout Standard
32274 Boxes are used to format a block of text.
32275 Boxes can be used to write documents with multiple languages, see section
32276 \begin_inset space ~
32280 \begin_inset CommandInset ref
32282 reference "sec:Minipages"
32286 , to frame texts, see section
32287 \begin_inset space ~
32291 \begin_inset CommandInset ref
32293 reference "sec:Decoration"
32297 , to prevent words from being hyphenated, see section
32298 \begin_inset space ~
32302 \begin_inset CommandInset ref
32304 reference "sec:Prevent-Hyphenation"
32308 , to align text, see section
32309 \begin_inset space ~
32313 \begin_inset CommandInset ref
32315 reference "subsec:Vertical-Alignment"
32319 , or to set the background color of texts, see section
32320 \begin_inset space ~
32324 \begin_inset CommandInset ref
32326 reference "sec:Colored-Boxes"
32333 \begin_layout Standard
32334 Boxes can be inserted with the menu
32336 Insert\SpecialChar menuseparator
32339 or the toolbar button
32342 arg "box-insert Frameless"
32346 A grey box with the label
32351 \begin_inset Graphics
32352 filename clipart/BoxInsetDefaultQt4.png
32354 scaleBeforeRotation
32359 The box type can be specified by right-clicking on the box and selecting
32365 The box dialog offers the
32368 \begin_inset space ~
32390 is the default for new boxes and is explained in section
32391 \begin_inset space ~
32395 \begin_inset CommandInset ref
32397 reference "sec:Minipages"
32405 is described in section
32406 \begin_inset space ~
32410 \begin_inset CommandInset ref
32412 reference "sec:Parboxes"
32421 \begin_inset CommandInset ref
32423 reference "sec:Prevent-Hyphenation"
32430 \begin_layout Standard
32431 Boxes are not numbered and can therefore not be referenced like floats or
32435 \begin_layout Standard
32436 \begin_inset Note Greyedout
32439 \begin_layout Plain Layout
32444 Boxes must not be the item in an
32460 \begin_layout Standard
32461 \begin_inset Note Greyedout
32464 \begin_layout Plain Layout
32469 For an unknown reason you can only set the
32472 \begin_inset space ~
32481 when you use a framed box.
32485 \begin_inset space ~
32490 type and without frames are explained in section
32491 \begin_inset space ~
32495 \begin_inset CommandInset ref
32497 reference "sec:Prevent-Hyphenation"
32509 \begin_layout Section
32511 \begin_inset CommandInset label
32513 name "sec:Box-Dialog"
32518 \begin_inset Index idx
32521 \begin_layout Plain Layout
32530 \begin_layout Subsection
32532 \begin_inset Index idx
32535 \begin_layout Plain Layout
32544 \begin_layout Standard
32545 In the box dialog you can adjust the box geometry in the fields
32554 The available units for the geometry are explained in Table
32555 \begin_inset space ~
32559 \begin_inset CommandInset ref
32561 reference "tab:Units"
32570 offers the following additional sizes:
32573 \begin_layout Description
32574 Depth This is the plain text
32575 \begin_inset Quotes eld
32579 \begin_inset Quotes erd
32583 It ignores the total depth when there are multiple text lines in the box:
32584 \begin_inset Newline newline
32588 \begin_inset Newline newline
32592 \begin_inset Newline newline
32596 \begin_inset Box Boxed
32606 height_special "depth"
32611 backgroundcolor "none"
32614 \begin_layout Plain Layout
32616 Box height set to 1
32617 \begin_inset space \thinspace{}
32626 \begin_inset Newline newline
32630 \begin_inset Newline newline
32636 \begin_layout Description
32637 Height This is the height of the text that is inside the box.
32639 \begin_inset space \thinspace{}
32643 \begin_inset space \space{}
32646 2 for this size will set the box height to 2
32647 \begin_inset space ~
32650 times the text height:
32651 \begin_inset Box Boxed
32661 height_special "height"
32666 backgroundcolor "none"
32669 \begin_layout Plain Layout
32671 Box height set to 2
32672 \begin_inset space \thinspace{}
32683 \begin_layout Description
32685 \begin_inset space ~
32688 Height This is the Height
32689 \begin_inset space \thinspace{}
32693 \begin_inset space \thinspace{}
32697 \begin_inset Box Boxed
32707 height_special "totalheight"
32712 backgroundcolor "none"
32715 \begin_layout Plain Layout
32717 Box height set to 1
32718 \begin_inset space \thinspace{}
32722 \begin_inset space ~
32733 \begin_layout Description
32734 Width This sets the width of the box as height:
32735 \begin_inset Box Boxed
32745 height_special "width"
32750 backgroundcolor "none"
32753 \begin_layout Plain Layout
32755 Box height set to 1
32756 \begin_inset space \thinspace{}
32767 \begin_layout Subsection
32769 \begin_inset Index idx
32772 \begin_layout Plain Layout
32781 \begin_layout Standard
32782 When you have chosen an
32785 \begin_inset space ~
32790 , the vertical box alignment can be:
32793 \begin_layout Description
32794 Top This is an example text line.
32796 \begin_inset Box Boxed
32806 height_special "totalheight"
32811 backgroundcolor "none"
32814 \begin_layout Plain Layout
32816 This box is top-aligned.
32821 This is an example text line.
32824 \begin_layout Description
32825 Middle This is an example text line.
32827 \begin_inset Box Boxed
32837 height_special "totalheight"
32842 backgroundcolor "none"
32845 \begin_layout Plain Layout
32847 This box is middle-aligned.
32852 This is an example text line.
32855 \begin_layout Description
32856 Bottom This is an example text line.
32858 \begin_inset Box Boxed
32868 height_special "totalheight"
32873 backgroundcolor "none"
32876 \begin_layout Plain Layout
32878 This box is bottom-aligned.
32883 This is an example text line.
32886 \begin_layout Standard
32887 \begin_inset Note Greyedout
32890 \begin_layout Plain Layout
32895 The vertical box alignment can be lost in the output when you have two
32896 boxes in a line and one has e.
32897 \begin_inset space \thinspace{}
32901 \begin_inset space \space{}
32904 a shadow and the other one not.
32912 \begin_layout Standard
32913 The horizontal box alignment can be set via \SpecialChar LyX
32914 's paragraph dialog when you
32915 set the box into its own paragraph.
32918 \begin_layout Standard
32919 \begin_inset VSpace bigskip
32922 When you have chosen an
32925 \begin_inset space ~
32930 , the box content can be aligned vertically to:
32933 \begin_layout Description
32934 top This is an example text line.
32936 \begin_inset Box Boxed
32946 height_special "totalheight"
32951 backgroundcolor "none"
32954 \begin_layout Plain Layout
32956 This box text is top-aligned.
32961 This is an example text line.
32964 \begin_layout Description
32965 middle This is an example text line.
32967 \begin_inset Box Boxed
32977 height_special "totalheight"
32982 backgroundcolor "none"
32985 \begin_layout Plain Layout
32987 This box text is middle-aligned.
32992 This is an example text line.
32995 \begin_layout Description
32996 bottom This is an example text line.
32998 \begin_inset Box Boxed
33008 height_special "totalheight"
33013 backgroundcolor "none"
33016 \begin_layout Plain Layout
33018 This box text is bottom-aligned.
33023 This is an example text line.
33026 \begin_layout Description
33027 stretch This is an example text line.
33029 \begin_inset Box Boxed
33039 height_special "totalheight"
33044 backgroundcolor "none"
33047 \begin_layout Plain Layout
33052 \begin_layout Plain Layout
33057 \begin_layout Plain Layout
33064 This is an example text line.
33067 \begin_layout Standard
33068 To stretch the box content, it must consist of more than one paragraph.
33069 In the example above every text line is in an own paragraph.
33072 \begin_layout Standard
33073 \begin_inset VSpace bigskip
33076 To align the box content horizontally you can use \SpecialChar LyX
33077 's paragraph dialog when
33081 \begin_inset space ~
33089 \begin_layout Standard
33091 \begin_inset Box Boxed
33101 height_special "totalheight"
33106 backgroundcolor "none"
33109 \begin_layout Plain Layout
33114 \begin_layout Plain Layout
33119 \begin_layout Plain Layout
33129 \begin_layout Standard
33130 If you have not set an
33133 \begin_inset space ~
33138 , you can align the box content horizontally in the box dialog.
33139 \begin_inset Separator parbreak
33145 \begin_layout Standard
33147 \begin_inset Box Boxed
33157 height_special "totalheight"
33162 backgroundcolor "none"
33165 \begin_layout Plain Layout
33166 This box text is horizontally stretched.
33174 \begin_layout Subsection
33176 \begin_inset CommandInset label
33178 name "sec:Decoration"
33183 \begin_inset Index idx
33186 \begin_layout Plain Layout
33195 \begin_layout Standard
33196 The type of the box can be specified in the box dialog in the drop-down
33202 The following types are possible:
33205 \begin_layout Description
33207 \begin_inset space ~
33210 frame Nothing is drawn.
33213 \begin_layout Description
33215 \begin_inset space ~
33219 \begin_inset space ~
33222 frame This draws a rectangular frame around the box.
33223 The frame line thickness can be specified.
33225 \begin_inset Box Boxed
33235 height_special "totalheight"
33240 backgroundcolor "none"
33243 \begin_layout Plain Layout
33253 \begin_layout Description
33255 \begin_inset space ~
33259 \begin_inset space ~
33262 thin This draws an oval frame around the box.
33263 The frame line thickness has the size 0.4
33264 \begin_inset space \thinspace{}
33269 \begin_inset Box ovalbox
33279 height_special "totalheight"
33284 backgroundcolor "none"
33287 \begin_layout Plain Layout
33297 \begin_layout Description
33299 \begin_inset space ~
33303 \begin_inset space ~
33306 thick This draws an oval frame around the box.
33307 The frame line thickness has the size 0.8
33308 \begin_inset space \thinspace{}
33313 \begin_inset Box Ovalbox
33323 height_special "totalheight"
33328 backgroundcolor "none"
33331 \begin_layout Plain Layout
33341 \begin_layout Description
33343 \begin_inset space ~
33346 shadow This draws a rectangular frame with a shadow around the box.
33347 The frame line thickness and the shadow can be specified.
33349 \begin_inset Box Shadowbox
33359 height_special "totalheight"
33364 backgroundcolor "none"
33367 \begin_layout Plain Layout
33377 \begin_layout Description
33379 \begin_inset space ~
33382 background This draws a box with a red background.
33383 Unlike colored boxes
33387 \begin_layout Plain Layout
33389 \begin_inset space \thinspace{}
33393 \begin_inset CommandInset ref
33395 reference "sec:Colored-Boxes"
33404 , it always uses the whole column width and the box is set as its own paragraph.
33406 \begin_inset Box Shaded
33416 height_special "totalheight"
33421 backgroundcolor "none"
33424 \begin_layout Plain Layout
33425 Shaded background box
33433 \begin_layout Description
33435 \begin_inset space ~
33439 \begin_inset space ~
33442 frame This draws a double-line rectangular frame around the box.
33443 The line thickness of the inner frame is 0.75
33444 \begin_inset space \thinspace{}
33448 \begin_inset space ~
33451 thickness, the thickness of the outer frame is 1.5
33452 \begin_inset space \thinspace{}
33456 \begin_inset space ~
33460 The distance between the lines is 1.5
33461 \begin_inset space \thinspace{}
33465 \begin_inset space ~
33469 \begin_inset space \thinspace{}
33473 \begin_inset space \thinspace{}
33477 \begin_inset space \thinspace{}
33482 \begin_inset Box Doublebox
33492 height_special "totalheight"
33497 backgroundcolor "none"
33500 \begin_layout Plain Layout
33502 Double rectangular box
33510 \begin_layout Standard
33511 \begin_inset VSpace bigskip
33515 's box label will reflect the different frame types.
33516 To be able to use all types, the \SpecialChar LaTeX
33522 \begin_inset Index idx
33525 \begin_layout Plain Layout
33527 -packages ! fancybox
33535 \begin_layout Standard
33536 \begin_inset VSpace bigskip
33539 When you use the decoration
33541 simple rectangular frame
33543 and no inner box, you can allow page breaks within a box.
33544 Note that then, unlike other framed boxes, the frame always uses the whole
33545 column width and the box is set as its own paragraph:
33546 \begin_inset Box Framed
33556 height_special "totalheight"
33561 backgroundcolor "none"
33564 \begin_layout Plain Layout
33565 Allow page break box
33573 \begin_layout Section
33575 \begin_inset Index idx
33578 \begin_layout Plain Layout
33579 Boxes ! Customization
33587 \begin_layout Standard
33588 The diameter of the round corners of the oval boxes can be set with the
33599 \begin_layout Standard
33607 \begin_layout Standard
33608 sets the diameter to 1
33609 \begin_inset space \thinspace{}
33616 \begin_layout Standard
33624 \begin_layout Standard
33625 sets the diameter to
33628 \begin_inset space \thinspace{}
33632 \begin_inset space \thinspace{}
33635 minimum(width and height of box)
33647 \begin_layout Standard
33651 \begin_layout Plain Layout
33661 \begin_inset Box Ovalbox
33671 height_special "totalheight"
33676 backgroundcolor "none"
33679 \begin_layout Plain Layout
33688 \begin_inset space \thinspace{}
33692 \begin_inset space \thinspace{}
33696 \begin_inset space \thinspace{}
33708 \begin_layout Plain Layout
33720 \begin_layout Standard
33721 \begin_inset VSpace bigskip
33727 \begin_layout Standard
33728 The default background color red of
33732 boxes can either be changed locally with the command
33736 definecolor{shadecolor}
33738 or globally with the menu
33740 Tools\SpecialChar menuseparator
33741 Preferences\SpecialChar menuseparator
33742 Colors\SpecialChar menuseparator
33744 \begin_inset space ~
33756 command is explained in section
33757 \begin_inset space ~
33761 \begin_inset CommandInset ref
33763 reference "sec:Colored-Tables"
33771 \begin_layout Plain Layout
33778 requires the \SpecialChar LaTeX
33783 in the preamble, see section
33784 \begin_inset space ~
33788 \begin_inset CommandInset ref
33790 reference "sec:Colored-Boxes"
33799 For example the appearance of the following shaded background box is set
33800 with the \SpecialChar TeX
33804 \begin_layout Standard
33809 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33812 \begin_layout Standard
33816 \begin_layout Plain Layout
33820 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33826 \begin_inset Box Shaded
33836 height_special "totalheight"
33841 backgroundcolor "none"
33844 \begin_layout Plain Layout
33847 This is yellow text in a
33857 box with dark green background.
33866 \begin_layout Plain Layout
33870 definecolor{shadecolor}{rgb}{1,0,0}
33878 \begin_layout Standard
33879 \begin_inset VSpace bigskip
33882 Manually changed sizes and colors are valid for all boxes following the
33883 commands that change them.
33886 \begin_layout Section
33888 \begin_inset CommandInset label
33890 name "sec:Minipages"
33895 \begin_inset Index idx
33898 \begin_layout Plain Layout
33907 \begin_layout Standard
33908 Minipages are treated by \SpecialChar LaTeX
33909 as pages within pages and can therefore for example
33910 have their own footnotes.
33913 \begin_layout Standard
33914 Minipages are useful when you write documents with different languages.
33917 \begin_layout Standard
33918 Below are two example minipages side by side.
33919 Their width is set to 45
33920 \begin_inset space \thinspace{}
33923 col% and they are separated by a horizontal fill, that was inserted via
33926 Insert\SpecialChar menuseparator
33928 \begin_inset space ~
33931 Formatting\SpecialChar menuseparator
33933 \begin_inset space ~
33939 \begin_inset Newpage newpage
33945 \begin_layout Standard
33946 \begin_inset Box Frameless
33956 height_special "totalheight"
33961 backgroundcolor "none"
33964 \begin_layout Plain Layout
33967 Dies ist ein deutscher Text.
33968 Dies ist ein deutscher Text.
33969 Dies ist ein deutscher Text.
33970 Dies ist ein deutscher Text.
33971 Dies ist ein deutscher Text.
33972 Dies ist ein deutscher Text.
33973 Dies ist ein deutscher Text.
33974 Dies ist ein deutscher Text.
33975 Dies ist ein deutscher Text.
33976 Dies ist ein deutscher Text.
33977 Dies ist ein deutscher Text.
33978 Dies ist ein deutscher Text.
33979 Dies ist ein deutscher Text
33983 \begin_layout Plain Layout
33986 Dies ist eine deutsche Fußnote.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33999 \begin_inset space \hfill{}
34003 \begin_inset Box Frameless
34013 height_special "totalheight"
34018 backgroundcolor "none"
34021 \begin_layout Plain Layout
34022 This is an English Text.
34023 This is an English Text.
34024 This is an English Text.
34025 This is an English Text.
34026 This is an English Text.
34027 This is an English Text.
34028 This is an English Text.
34029 This is an English Text.
34030 This is an English Text.
34031 This is an English Text.
34032 This is an English Text.
34033 This is an English Text.
34034 This is an English Text.
34035 This is an English Text.
34036 This is an English Text.
34037 This is an English Text.
34041 \begin_layout Plain Layout
34042 This is an English footnote.
34047 This is an English Text.
34055 \begin_layout Standard
34056 \begin_inset VSpace bigskip
34059 The document-wide paragraph settings are ignored within minipages.
34060 That means that there will be no space between paragraphs in minipages
34061 although you set it to e.
34062 \begin_inset space \thinspace{}
34066 \begin_inset space \space{}
34073 in the document settings.
34076 \begin_layout Standard
34077 Minipages can also be used to set a background color for text parts, see
34079 \begin_inset space ~
34083 \begin_inset CommandInset ref
34085 reference "sec:Colored-Boxes"
34092 \begin_layout Standard
34093 \begin_inset Note Greyedout
34096 \begin_layout Plain Layout
34101 You cannot have floats or margin notes inside minipages but minipages can
34102 be used inside tables, floats, and other boxes.
34110 \begin_layout Standard
34111 \begin_inset VSpace bigskip
34117 \begin_layout Standard
34119 has also basic support for minipages whose size is automatically determined
34120 by the width of their contents, via the module
34122 Variable-width Minipages
34125 The \SpecialChar LyX
34128 varwidth-floats-side-by-side
34130 gives examples of variable-width minipages used for placing two floats
34134 \begin_layout Section
34136 \begin_inset CommandInset label
34138 name "sec:Parboxes"
34143 \begin_inset Index idx
34146 \begin_layout Plain Layout
34155 \begin_layout Standard
34156 Parboxes are very similar to minipages with the difference that they cannot
34158 \begin_inset Separator parbreak
34164 \begin_layout Standard
34166 \begin_inset Box Frameless
34176 height_special "totalheight"
34181 backgroundcolor "none"
34184 \begin_layout Plain Layout
34185 This a text within a parbox.
34186 This a text within a parbox.
34189 \begin_layout Plain Layout
34190 This footnote won't appear:
34194 \begin_layout Plain Layout
34195 This footnote is inside a parbox and will therefore not appear.
34208 \begin_layout Section
34209 Boxes for Words and Characters
34210 \begin_inset Index idx
34213 \begin_layout Plain Layout
34214 Boxes ! for Characters
34222 \begin_layout Subsection
34223 Prevent Hyphenation
34224 \begin_inset CommandInset label
34226 name "sec:Prevent-Hyphenation"
34231 \begin_inset Index idx
34234 \begin_layout Plain Layout
34235 Boxes ! to Prevent Hyphenation
34243 \begin_layout Standard
34244 You can use the box type
34248 to prevent words or text from being hyphenated.
34249 \begin_inset Newline newline
34252 Here is an example text:
34255 \begin_layout Standard
34256 This line is an example to show how you can prevent the hyphenation of
34257 \begin_inset Quotes eld
34261 \begin_inset Quotes erd
34267 \begin_layout Standard
34268 To prevent the hyphenation of the word
34269 \begin_inset Quotes eld
34273 \begin_inset Quotes erd
34276 , put the word into a box, set the
34279 \begin_inset space ~
34288 and use no explicit width.
34291 \begin_layout Standard
34292 This is the result:
34295 \begin_layout Standard
34296 This line is an example to show how you can prevent the hyphenation of
34297 \begin_inset Box Frameless
34307 height_special "totalheight"
34312 backgroundcolor "none"
34315 \begin_layout Plain Layout
34316 \begin_inset Quotes eld
34320 \begin_inset Quotes erd
34331 \begin_layout Standard
34332 You can alternatively set the command
34333 \begin_inset Quotes eld
34343 \begin_inset Quotes grd
34346 as \SpecialChar TeX
34347 Code directly before the word:
34350 \begin_layout Standard
34351 This line is an example to show how you can prevent the hyphenation of
34352 \begin_inset Quotes eld
34359 \begin_layout Plain Layout
34369 \begin_inset Quotes erd
34375 \begin_layout Standard
34376 Of course the word now protrudes over the side margin.
34377 To avoid this, add via the menu
34379 Insert\SpecialChar menuseparator
34380 Formatting\SpecialChar menuseparator
34382 \begin_inset space ~
34386 \begin_inset space ~
34394 arg "newline-insert newline"
34397 ) a line break before the word:
34400 \begin_layout Standard
34401 This line is an example to show how you can prevent the hyphenation of
34402 \begin_inset Newline newline
34406 \begin_inset Box Frameless
34416 height_special "totalheight"
34421 backgroundcolor "none"
34424 \begin_layout Plain Layout
34425 \begin_inset Quotes eld
34429 \begin_inset Quotes erd
34440 \begin_layout Subsection
34442 \begin_inset CommandInset label
34444 name "subsec:Vertical-Alignment"
34449 \begin_inset Index idx
34452 \begin_layout Plain Layout
34453 Boxes ! for Vertical Alignment
34459 \begin_inset Index idx
34462 \begin_layout Plain Layout
34471 \begin_layout Standard
34472 With the help of the command
34478 you can align words, characters or other boxes vertically relative to the
34486 is used with the following scheme:
34489 \begin_layout Standard
34494 raisebox{lift}[height][depth]{box content}
34497 \begin_layout Standard
34498 The lift can be a positive value to raise the box or a negative value to
34502 \begin_layout Standard
34503 To align for example the word
34504 \begin_inset Quotes eld
34508 \begin_inset Quotes erd
34511 so that the bottom of the
34512 \begin_inset Quotes eld
34516 \begin_inset Quotes erd
34520 \begin_inset Quotes eld
34524 \begin_inset Quotes erd
34527 is at the baseline, insert the command
34530 \begin_layout Standard
34540 \begin_layout Standard
34541 in \SpecialChar TeX
34542 Code before the word.
34543 After the word insert a closing brace
34544 \begin_inset Quotes eld
34552 \begin_inset Quotes erd
34555 in \SpecialChar TeX
34557 \begin_inset Newline newline
34560 This is the result:
34563 \begin_layout Standard
34564 This is a text line with the word
34568 \begin_layout Plain Layout
34580 \begin_inset Quotes eld
34584 \begin_inset Quotes erd
34591 \begin_layout Plain Layout
34601 \begin_layout Standard
34602 \begin_inset VSpace bigskip
34605 When you raise or lower characters in a line, the line distance will be
34609 \begin_layout Standard
34610 This is a text line with the word
34614 \begin_layout Plain Layout
34626 \begin_inset Quotes eld
34630 \begin_inset Quotes erd
34637 \begin_layout Plain Layout
34645 \begin_inset Newline newline
34648 This is a text line with the word
34652 \begin_layout Plain Layout
34662 \begin_inset Quotes eld
34666 \begin_inset Quotes erd
34673 \begin_layout Plain Layout
34683 \begin_layout Standard
34684 If you want to prevent this for a certain reason, set the box height to
34689 \begin_layout Standard
34699 \begin_layout Standard
34700 This is a text line with the word
34704 \begin_layout Plain Layout
34716 \begin_inset Quotes eld
34720 \begin_inset Quotes erd
34727 \begin_layout Plain Layout
34735 \begin_inset Newline newline
34739 \begin_inset Newline newline
34742 This is a text line with the word
34746 \begin_layout Plain Layout
34750 raisebox{0.5cm}[0pt]{
34756 \begin_inset Quotes eld
34760 \begin_inset Quotes erd
34767 \begin_layout Plain Layout
34777 \begin_layout Section
34779 \begin_inset CommandInset label
34781 name "sec:Colored-Boxes"
34786 \begin_inset Index idx
34789 \begin_layout Plain Layout
34798 \begin_layout Standard
34799 To color the background of a box just select the color you like in the box
34801 This is for example a box with orange background:
34802 \begin_inset Box Frameless
34812 height_special "totalheight"
34817 backgroundcolor "orange"
34820 \begin_layout Plain Layout
34821 Box with orange background
34829 \begin_layout Standard
34830 If you use the decoration
34833 \begin_inset space ~
34837 \begin_inset space ~
34842 you can set a frame color.
34843 In this case you must also specify a background color (LyX sets white as
34845 Here is an example:
34846 \begin_inset Box Boxed
34856 height_special "totalheight"
34861 backgroundcolor "yellow"
34864 \begin_layout Plain Layout
34865 Box with teal frame color and yellow background color
34873 \begin_layout Standard
34874 \begin_inset VSpace bigskip
34877 Of course you can also have colored text inside a colored box:
34878 \begin_inset Newline newline
34882 \begin_inset Box Boxed
34892 height_special "totalheight"
34897 backgroundcolor "magenta"
34900 \begin_layout Plain Layout
34903 This is colored text within a colored, framed box
34911 \begin_layout Standard
34912 \begin_inset VSpace bigskip
34918 \begin_layout Standard
34919 If you need another color than the predefined ones, you can define your
34920 own color as described in section
34921 \begin_inset space ~
34925 \begin_inset CommandInset ref
34927 reference "sec:Colored-Tables"
34932 To use your own color you must typeset the box by using TeX code:
34935 \begin_layout Standard
34936 Colored boxes without frame are created with the command
34943 It has the following scheme:
34946 \begin_layout Standard
34951 colorbox{color}{box content}
34954 \begin_layout Standard
34955 The box content can also be a box and colored boxes can also be within other
34958 \begin_inset space \thinspace{}
34962 \begin_inset space \space{}
34965 a darkgreen background for a word, insert the command
34968 \begin_layout Standard
34973 colorbox{darkgreen}{
34976 \begin_layout Standard
34977 before the word in \SpecialChar TeX
34979 After the word insert a closing brace
34980 \begin_inset Quotes eld
34988 \begin_inset Quotes erd
34991 in \SpecialChar TeX
34993 \begin_inset Newline newline
34996 This is the result:
34999 \begin_layout Standard
35000 This is a line where the word
35004 \begin_layout Plain Layout
35008 colorbox{darkgreen}{
35014 \begin_inset Quotes eld
35018 \begin_inset Quotes erd
35025 \begin_layout Plain Layout
35032 has a darkgreen background.
35035 \begin_layout Standard
35036 Framed, colored boxes are created with the command
35043 It has the following scheme:
35046 \begin_layout Standard
35051 fcolorbox{frame color}{box color}{box content}
35054 \begin_layout Section
35055 Rotated and Scaled Boxes
35058 \begin_layout Standard
35059 To use the boxes described in this section, the module
35063 must be loaded in the document settings.
35066 \begin_layout Standard
35067 \begin_inset Note Greyedout
35070 \begin_layout Plain Layout
35075 Not all DVI viewers are able to display rotated or scaled material.
35083 \begin_layout Standard
35084 \begin_inset Note Greyedout
35087 \begin_layout Plain Layout
35092 Floats are not allowed inside a rotated or scaled box.
35100 \begin_layout Subsection
35102 \begin_inset Index idx
35105 \begin_layout Plain Layout
35112 \begin_inset Index idx
35115 \begin_layout Plain Layout
35124 \begin_layout Standard
35125 To rotate material, you can put it into a
35130 Such a box is inserted via the menu
35132 Insert\SpecialChar menuseparator
35133 Custom Insets\SpecialChar menuseparator
35139 \begin_layout Standard
35140 The rotation origin can be specified via the inset
35146 Insert\SpecialChar menuseparator
35154 The following positions are possible:
35174 (top), along with meaningful combinations of the four base positions.
35179 means that the rotation origin is at the top left corner of the box.
35180 When no rotation origin is specified, the position
35185 The rotation angle is a number that can be negative that specifies the
35187 The rotation direction is counterclockwise.
35190 \begin_layout Standard
35191 In the following example
35195 was inserted to the
35203 was inserted to the
35210 \begin_layout Standard
35212 \begin_inset Flex Rotatebox
35215 \begin_layout Plain Layout
35216 \begin_inset Argument 1
35219 \begin_layout Plain Layout
35226 \begin_inset Argument 2
35229 \begin_layout Plain Layout
35243 \begin_layout Standard
35244 The box content can also be another box or an inline formula:
35247 \begin_layout Standard
35249 \begin_inset Flex Rotatebox
35252 \begin_layout Plain Layout
35253 \begin_inset Argument 1
35256 \begin_layout Plain Layout
35263 \begin_inset Argument 2
35266 \begin_layout Plain Layout
35273 \begin_inset Box Doublebox
35283 height_special "totalheight"
35288 backgroundcolor "none"
35291 \begin_layout Plain Layout
35303 \begin_inset Flex Rotatebox
35306 \begin_layout Plain Layout
35307 \begin_inset Argument 1
35310 \begin_layout Plain Layout
35317 \begin_inset Argument 2
35320 \begin_layout Plain Layout
35327 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35338 \begin_layout Standard
35339 or an image or table:
35342 \begin_layout Standard
35344 \begin_inset Flex Rotatebox
35347 \begin_layout Plain Layout
35348 \begin_inset Argument 1
35351 \begin_layout Plain Layout
35358 \begin_inset Argument 2
35361 \begin_layout Plain Layout
35368 \begin_inset Graphics
35369 filename clipart/platypus.eps
35380 with a rotated image
35381 \begin_inset Flex Rotatebox
35384 \begin_layout Plain Layout
35385 \begin_inset Argument 2
35388 \begin_layout Plain Layout
35395 \begin_inset Tabular
35396 <lyxtabular version="3" rows="2" columns="2">
35397 <features tabularvalignment="middle">
35398 <column alignment="center" valignment="top">
35399 <column alignment="center" valignment="top">
35401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35404 \begin_layout Plain Layout
35410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35413 \begin_layout Plain Layout
35421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35424 \begin_layout Plain Layout
35430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35433 \begin_layout Plain Layout
35450 \begin_inset Index idx
35453 \begin_layout Plain Layout
35460 \begin_inset Index idx
35463 \begin_layout Plain Layout
35464 Table Customization ! Rotating
35472 \begin_layout Standard
35473 \begin_inset Note Greyedout
35476 \begin_layout Plain Layout
35485 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35487 errors when viewing/exporting the document.
35495 \begin_layout Subsection
35497 \begin_inset Index idx
35500 \begin_layout Plain Layout
35507 \begin_inset Index idx
35510 \begin_layout Plain Layout
35519 \begin_layout Standard
35520 To scale material put it into a
35525 Such a box is inserted via the menu
35527 Insert\SpecialChar menuseparator
35528 Custom Insets\SpecialChar menuseparator
35534 \begin_layout Standard
35539 inset has the mandatory inset
35543 and the optional inset
35547 (inserted via the menu
35549 Insert\SpecialChar menuseparator
35553 Input there there horizontal and vertical scale factor, respectively.
35558 inset is used, the horizontal factor will also be used as the vertical
35562 \begin_layout Standard
35563 To get for example the double text size, compared to the document text size,
35574 \begin_inset Flex Scalebox
35577 \begin_layout Plain Layout
35578 \begin_inset Argument 1
35581 \begin_layout Plain Layout
35595 \begin_layout Standard
35613 \begin_inset Flex Scalebox
35616 \begin_layout Plain Layout
35617 \begin_inset Argument 1
35620 \begin_layout Plain Layout
35627 \begin_inset Argument 2
35630 \begin_layout Plain Layout
35644 \begin_layout Standard
35645 If the scaling factor is negative, the box content will be mirrored.
35662 can be used to create mirror writing:
35663 \begin_inset Flex Scalebox
35666 \begin_layout Plain Layout
35667 \begin_inset Argument 1
35670 \begin_layout Plain Layout
35677 \begin_inset Argument 2
35680 \begin_layout Plain Layout
35694 \begin_layout Standard
35712 \begin_inset Flex Scalebox
35715 \begin_layout Plain Layout
35716 \begin_inset Argument 1
35719 \begin_layout Plain Layout
35726 \begin_inset Argument 2
35729 \begin_layout Plain Layout
35743 \begin_layout Standard
35750 Insert\SpecialChar menuseparator
35751 Custom Insets\SpecialChar menuseparator
35777 \begin_layout Standard
35778 \begin_inset Note Greyedout
35781 \begin_layout Plain Layout
35790 inset is empty or contains other characters than numbers you will get LaTeX
35791 errors when viewing/exporting the document.
35799 \begin_layout Standard
35800 \begin_inset VSpace bigskip
35809 Insert\SpecialChar menuseparator
35810 Custom Insets\SpecialChar menuseparator
35813 ) is used to scale the content to a defined width and height.
35818 inset has the mandatory inset
35822 and the optional inset
35826 (inserted via the menu
35828 Insert\SpecialChar menuseparator
35832 Input there there width and height, respectively, as value with a unit.
35834 \begin_inset CommandInset ref
35836 reference "tab:Units"
35840 lists the possible units.
35841 If there is an exclamation mark
35845 in of of the two insets, the size is set so that the aspect ratio of the
35846 box content is kept.
35851 inset is used an exclamation mark will internally be used for the height.
35854 \begin_layout Standard
35872 \begin_inset Flex Resizebox
35875 \begin_layout Plain Layout
35876 \begin_inset Argument 1
35879 \begin_layout Plain Layout
35886 \begin_inset Argument 2
35889 \begin_layout Plain Layout
35901 \begin_inset Newline newline
35925 \begin_inset Flex Resizebox
35928 \begin_layout Plain Layout
35929 \begin_inset Argument 1
35932 \begin_layout Plain Layout
35939 \begin_inset Argument 2
35942 \begin_layout Plain Layout
35956 \begin_layout Standard
35957 \begin_inset Note Greyedout
35960 \begin_layout Plain Layout
35969 inset is empty or contains an invalid unit you will get LaTeX errors when
35970 viewing/exporting the document.
35978 \begin_layout Standard
35979 \begin_inset VSpace bigskip
35985 \begin_layout Standard
35986 The boxes can be combined in any order.
35995 which is in turn inside a
36002 \begin_layout Standard
36005 \begin_inset Flex Rotatebox
36008 \begin_layout Plain Layout
36009 \begin_inset Argument 1
36012 \begin_layout Plain Layout
36019 \begin_inset Argument 2
36022 \begin_layout Plain Layout
36029 \begin_inset Flex Resizebox
36032 \begin_layout Plain Layout
36033 \begin_inset Argument 1
36036 \begin_layout Plain Layout
36043 \begin_inset Flex Reflectbox
36046 \begin_layout Plain Layout
36065 \begin_layout Standard
36067 Images, tables, and inline formulas are allowed as box content:
36070 \begin_layout Standard
36073 \begin_inset Flex Resizebox
36076 \begin_layout Plain Layout
36077 \begin_inset Argument 1
36080 \begin_layout Plain Layout
36087 \begin_inset Flex Reflectbox
36090 \begin_layout Plain Layout
36091 \begin_inset Graphics
36092 filename clipart/platypus.eps
36109 \begin_inset Flex Resizebox
36112 \begin_layout Plain Layout
36113 \begin_inset Argument 1
36116 \begin_layout Plain Layout
36123 \begin_inset Flex Reflectbox
36126 \begin_layout Plain Layout
36127 \begin_inset Tabular
36128 <lyxtabular version="3" rows="2" columns="2">
36129 <features tabularvalignment="middle">
36130 <column alignment="center" valignment="top">
36131 <column alignment="center" valignment="top">
36133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36136 \begin_layout Plain Layout
36142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36145 \begin_layout Plain Layout
36153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36156 \begin_layout Plain Layout
36162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36165 \begin_layout Plain Layout
36187 \begin_inset Flex Resizebox
36190 \begin_layout Plain Layout
36191 \begin_inset Argument 1
36194 \begin_layout Plain Layout
36201 \begin_inset Flex Reflectbox
36204 \begin_layout Plain Layout
36205 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36219 \begin_inset Index idx
36222 \begin_layout Plain Layout
36229 \begin_inset Index idx
36232 \begin_layout Plain Layout
36233 Table Customization ! Scaling
36241 \begin_layout Standard
36242 When the global formula style
36246 is used in the document
36250 \begin_layout Plain Layout
36252 \begin_inset Quotes eld
36256 \begin_inset Quotes erd
36259 is added to the document class options.
36264 , display style formulas can also be scaled.
36267 \begin_layout Chapter
36268 Objects Surrounded by Text
36269 \begin_inset Index idx
36272 \begin_layout Plain Layout
36281 \begin_layout Section
36283 \begin_inset CommandInset label
36285 name "sec:Wrap-Floats"
36290 \begin_inset Index idx
36293 \begin_layout Plain Layout
36294 Floats ! Wrap Floats
36300 \begin_inset Index idx
36303 \begin_layout Plain Layout
36304 Surrounded by text ! Wrap Floats
36312 \begin_layout Standard
36313 \begin_inset Wrap figure
36320 \begin_layout Plain Layout
36321 \begin_inset Graphics
36322 filename clipart/mobius.eps
36324 scaleBeforeRotation
36325 rotateOrigin center
36332 \begin_layout Plain Layout
36333 \begin_inset Caption Standard
36335 \begin_layout Plain Layout
36336 \begin_inset CommandInset label
36338 name "fig:This-is-a"
36342 This is a figure wrap float.
36352 This float type is used if you want to wrap text around a figure or table
36353 so that it only occupies some fraction of the column width.
36354 It can be inserted using the menu
36356 Insert\SpecialChar menuseparator
36357 Floats\SpecialChar menuseparator
36359 \begin_inset space ~
36363 \begin_inset space ~
36371 \begin_inset space ~
36375 \begin_inset space ~
36380 if the \SpecialChar LaTeX
36386 \begin_inset Index idx
36389 \begin_layout Plain Layout
36391 -packages ! wrapfig
36400 \begin_layout Plain Layout
36401 Installing a \SpecialChar LaTeX
36402 -package is explained it in the
36406 \begin_inset space ~
36416 The settings of the float can be modified by right-clicking on the float
36418 The mandatory settings are the float
36431 that specifies how much the float is set into the paragraph
36432 \begin_inset space \thinspace{}
36436 \begin_inset space \thinspace{}
36439 page margin, and the
36442 \begin_inset space ~
36447 that specifies how many text lines the float will approximately need.
36448 The line span is often hard to approximate; so it is better only to use
36449 it when you encounter float placement problems.
36450 You can furthermore decide if \SpecialChar LaTeX
36451 is allowed to let the float float within
36452 the paragraph or to surrounding paragraphs.
36454 \begin_inset space ~
36458 \begin_inset CommandInset ref
36460 reference "fig:This-is-a"
36464 is an example text wrap float with a width of 40
36465 \begin_inset space \thinspace{}
36469 \begin_inset space \thinspace{}
36472 cm overhang, set to the left.
36475 \begin_layout Standard
36476 \begin_inset Note Greyedout
36479 \begin_layout Plain Layout
36485 \begin_inset space ~
36488 wrap float floats are fragile! E.
36489 \begin_inset space \thinspace{}
36493 \begin_inset space \space{}
36496 having a figure too close to the bottom of the page can mess things up in
36497 such a way that the float does not appear in the output or that it is placed
36498 over some other text.
36506 \begin_layout Standard
36507 In general, the following applies for wrap floats:
36510 \begin_layout Itemize
36511 They should not be placed in paragraphs that run over a page break.
36512 That means that wrap floats are better inserted in their exact place when
36513 the document is almost finished and you are able to estimate where page
36514 breaks will appear.
36517 \begin_layout Itemize
36518 They should either be placed in their own paragraph before the paragraph
36519 where they should wrap into or within a paragraph.
36522 \begin_layout Itemize
36523 In consecutive paragraphs they may cause troubles, so ensure that there
36524 is a text paragraph between them as separator.
36527 \begin_layout Itemize
36528 They are not allowed in section headings or tables.
36531 \begin_layout Itemize
36532 Their numbering and referencing works as described in chap.
36533 \begin_inset space \thinspace{}
36537 \begin_inset CommandInset ref
36539 reference "chap:Floats"
36546 \begin_layout Section
36547 Surrounded Fixed Objects
36548 \begin_inset Index idx
36551 \begin_layout Plain Layout
36552 Surrounded by text ! Fixed objects
36560 \begin_layout Standard
36561 The wrap floats described in sec.
36562 \begin_inset space \thinspace{}
36566 \begin_inset CommandInset ref
36568 reference "sec:Wrap-Floats"
36572 have these positions in the paragraph:
36573 \begin_inset Separator parbreak
36579 \begin_layout Standard
36582 \begin_inset Tabular
36583 <lyxtabular version="3" rows="2" columns="2">
36584 <features tabularvalignment="middle">
36585 <column alignment="center" valignment="top">
36586 <column alignment="center" valignment="top">
36588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36591 \begin_layout Plain Layout
36594 arg "dialog-show-new-inset graphics"
36602 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36605 \begin_layout Plain Layout
36613 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36616 \begin_layout Plain Layout
36622 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36625 \begin_layout Plain Layout
36637 \begin_inset Tabular
36638 <lyxtabular version="3" rows="2" columns="2">
36639 <features tabularvalignment="middle">
36640 <column alignment="center" valignment="top">
36641 <column alignment="center" valignment="top">
36643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36646 \begin_layout Plain Layout
36652 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36655 \begin_layout Plain Layout
36658 arg "dialog-show-new-inset graphics"
36668 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36671 \begin_layout Plain Layout
36677 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36680 \begin_layout Plain Layout
36694 \begin_layout Standard
36695 To get an object exactly at the position where it is inserted, for example
36696 to get one of these positions:
36697 \begin_inset VSpace defskip
36703 \begin_layout Standard
36706 \begin_inset Tabular
36707 <lyxtabular version="3" rows="2" columns="2">
36708 <features tabularvalignment="middle">
36709 <column alignment="center" valignment="top">
36710 <column alignment="center" valignment="top">
36712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36715 \begin_layout Plain Layout
36721 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36724 \begin_layout Plain Layout
36732 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36735 \begin_layout Plain Layout
36738 arg "dialog-show-new-inset graphics"
36746 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36749 \begin_layout Plain Layout
36761 \begin_inset Tabular
36762 <lyxtabular version="3" rows="2" columns="2">
36763 <features tabularvalignment="middle">
36764 <column alignment="center" valignment="top">
36765 <column alignment="center" valignment="top">
36767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36770 \begin_layout Plain Layout
36776 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36779 \begin_layout Plain Layout
36787 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36790 \begin_layout Plain Layout
36796 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36799 \begin_layout Plain Layout
36802 arg "dialog-show-new-inset graphics"
36816 \begin_inset Tabular
36817 <lyxtabular version="3" rows="2" columns="3">
36818 <features tabularvalignment="middle">
36819 <column alignment="center" valignment="top">
36820 <column alignment="center" valignment="top">
36821 <column alignment="center" valignment="top">
36823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36826 \begin_layout Plain Layout
36832 <cell alignment="center" valignment="top" topline="true" usebox="none">
36835 \begin_layout Plain Layout
36838 arg "dialog-show-new-inset graphics"
36846 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36849 \begin_layout Plain Layout
36857 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36860 \begin_layout Plain Layout
36866 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36869 \begin_layout Plain Layout
36875 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36878 \begin_layout Plain Layout
36890 \begin_inset Tabular
36891 <lyxtabular version="3" rows="2" columns="3">
36892 <features tabularvalignment="middle">
36893 <column alignment="center" valignment="top">
36894 <column alignment="center" valignment="top">
36895 <column alignment="center" valignment="top">
36897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36900 \begin_layout Plain Layout
36906 <cell alignment="center" valignment="top" topline="true" usebox="none">
36909 \begin_layout Plain Layout
36915 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36918 \begin_layout Plain Layout
36926 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36929 \begin_layout Plain Layout
36935 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36938 \begin_layout Plain Layout
36941 arg "dialog-show-new-inset graphics"
36949 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36952 \begin_layout Plain Layout
36966 \begin_layout Standard
36969 \begin_inset Tabular
36970 <lyxtabular version="3" rows="3" columns="2">
36971 <features tabularvalignment="middle">
36972 <column alignment="center" valignment="top">
36973 <column alignment="center" valignment="top">
36975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36978 \begin_layout Plain Layout
36984 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36987 \begin_layout Plain Layout
36995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36998 \begin_layout Plain Layout
37001 arg "dialog-show-new-inset graphics"
37009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37012 \begin_layout Plain Layout
37020 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37023 \begin_layout Plain Layout
37029 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37032 \begin_layout Plain Layout
37044 \begin_inset Tabular
37045 <lyxtabular version="3" rows="3" columns="3">
37046 <features tabularvalignment="middle">
37047 <column alignment="center" valignment="top">
37048 <column alignment="center" valignment="top">
37049 <column alignment="center" valignment="top">
37051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37054 \begin_layout Plain Layout
37060 <cell alignment="center" valignment="top" topline="true" usebox="none">
37063 \begin_layout Plain Layout
37069 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37072 \begin_layout Plain Layout
37080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37083 \begin_layout Plain Layout
37089 <cell alignment="center" valignment="top" usebox="none">
37092 \begin_layout Plain Layout
37095 arg "dialog-show-new-inset graphics"
37103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37106 \begin_layout Plain Layout
37114 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37117 \begin_layout Plain Layout
37123 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37126 \begin_layout Plain Layout
37132 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37135 \begin_layout Plain Layout
37147 \begin_inset Tabular
37148 <lyxtabular version="3" rows="3" columns="2">
37149 <features tabularvalignment="middle">
37150 <column alignment="center" valignment="top">
37151 <column alignment="center" valignment="top">
37153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37156 \begin_layout Plain Layout
37162 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37165 \begin_layout Plain Layout
37173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37176 \begin_layout Plain Layout
37182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37185 \begin_layout Plain Layout
37188 arg "dialog-show-new-inset graphics"
37198 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37201 \begin_layout Plain Layout
37207 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37210 \begin_layout Plain Layout
37224 \begin_layout Standard
37226 you can use the \SpecialChar LaTeX
37232 \begin_inset Index idx
37235 \begin_layout Plain Layout
37237 -packages ! picinpar
37243 Here is an example:
37246 \begin_layout Standard
37250 \begin_layout Plain Layout
37260 \begin_inset Note Note
37263 \begin_layout Plain Layout
37264 The following section will only be displayed when the \SpecialChar LaTeX
37277 \begin_layout Standard
37281 \begin_layout Plain Layout
37285 begin{window}[2,c,{
37291 \begin_inset Graphics
37292 filename clipart/mobius.eps
37295 scaleBeforeRotation
37296 rotateOrigin center
37304 \begin_layout Plain Layout
37309 \begin_layout Plain Layout
37318 It was in the spring of the year 1894 that all London was interested, and
37319 the fashionable world dismayed, by the murder of the Honourable Ronald
37320 Adair under most unusual and inexplicable circumstances.
37321 The public has already learned those particulars of the crime which
37327 \begin_layout Plain Layout
37338 came out in the police investigation, but a good deal was suppressed upon
37339 that occasion, since the case for the prosecution was so overwhelmingly
37340 strong that it was not necessary to bring forward all the facts.
37341 Only now, at the end of nearly ten years, am I allowed to supply those
37342 missing links which make up the whole of that remarkable chain.
37348 \begin_layout Plain Layout
37360 \begin_layout Standard
37364 \begin_layout Plain Layout
37373 Footnote of the paragraph with the fixed object.
37377 \begin_layout Plain Layout
37387 \begin_layout Standard
37388 Surrounded fixed objects are used to let text float around them, at which
37389 the object's position in the paragraph can be determined by the number
37391 In contrary to floats is it not possible to have a numbered caption.
37394 \begin_layout Standard
37395 A fixed object is inserted by adding the command
37398 \begin_layout Standard
37403 begin{window}[2,c,{
37406 \begin_layout Standard
37407 as \SpecialChar TeX
37408 Code at the beginning of the paragraph.
37409 The first parameter in the bracket, here '2', defines the number of lines
37410 above the object, the second, here 'c', the position of the object.
37411 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37412 Behind the command you insert the object.
37413 In this example an image with a width of 40
37414 \begin_inset space \thinspace{}
37417 % of the text column width was inserted.
37418 The object can also be a table, a box or an equation.
37419 Behind the object the command
37422 \begin_layout Standard
37425 },description text]
37426 \begin_inset Newline newline
37432 \begin_layout Standard
37435 \begin_inset Quotes eld
37443 \begin_inset Quotes erd
37446 is in the second line.
37447 The description text is optional.
37448 The text surrounding the object must be in the same paragraph as the object,
37449 so it must begin directly after the
37454 At the end of the paragraph insert the command:
37457 \begin_layout Standard
37465 \begin_layout Standard
37466 Within a paragraph with a fixed object, you cannot insert footnotes in the
37468 You have to use instead the command
37474 inside the paragraph and outside the command
37480 as described in sec.
37481 \begin_inset space \thinspace{}
37485 \begin_inset CommandInset ref
37487 reference "sec:Footnotes"
37494 \begin_layout Standard
37498 \begin_layout Plain Layout
37508 \begin_inset Note Note
37511 \begin_layout Plain Layout
37512 The following will be displayed when the \SpecialChar LaTeX
37525 \begin_layout Standard
37526 You need to install the \SpecialChar LaTeX
37531 to see the following part of this section in the output.
37534 \begin_layout Standard
37538 \begin_layout Plain Layout
37550 \begin_layout Section
37552 \begin_inset Index idx
37555 \begin_layout Plain Layout
37562 \begin_inset Index idx
37565 \begin_layout Plain Layout
37566 Surrounded by text ! Initials
37574 \begin_layout Standard
37575 To use initials, you must have the \SpecialChar LaTeX
37581 \begin_inset Index idx
37584 \begin_layout Plain Layout
37586 -packages ! lettrine
37591 installed and use the module
37595 in your document (menu
37597 Document\SpecialChar menuseparator
37598 Settings\SpecialChar menuseparator
37602 To insert an initial, use the style
37607 This style has a mandatory and two optional arguments.
37608 The arguments are inserted via the
37613 The mandatory argument
37617 contains the letter(s) that is the initial, the argument
37620 \begin_inset space ~
37624 \begin_inset space ~
37629 contains the rest of the word or text of the initial letter(s).
37634 contains parameters to modify the initial.
37635 For more information about the possible parameters see the documentation
37641 \begin_inset CommandInset citation
37648 The style itself contains the text that is surrounding the initial.
37649 The usual style is hereby that the word whose first letter is the initial,
37657 \begin_layout Standard
37658 Here are some examples:
37661 \begin_layout Standard
37665 \begin_layout Plain Layout
37675 \begin_inset Note Note
37678 \begin_layout Plain Layout
37679 The following section will only be displayed when the \SpecialChar LaTeX
37692 \begin_layout Enumerate
37693 No optional argument, the initial is the letter 'I' in the math font
37694 \begin_inset Formula $\mathfrak{Fraktur}$
37698 \begin_inset Separator parbreak
37705 \begin_layout Initial
37706 \begin_inset Argument 2
37709 \begin_layout Plain Layout
37710 \begin_inset Formula $\mathfrak{I}$
37719 \begin_inset Argument 3
37722 \begin_layout Plain Layout
37728 was in the spring of the year 1894 that all London was interested, and
37729 the fashionable world dismayed, by the murder of the Honourable Ronald
37730 Adair under most unusual and inexplicable circumstances.
37731 The public has already learned those particulars of the crime which came
37732 out in the police investigation, but a good deal was suppressed upon that
37733 occasion, since the case for the prosecution was so overwhelmingly strong
37734 that it was not necessary to bring forward all the facts.
37735 \begin_inset Newpage newpage
37742 \begin_layout Enumerate
37743 Only one line is surrounding the initial, which is formed by two letters
37744 in standard font and no text is printed in small caps:
37745 \begin_inset Separator parbreak
37752 \begin_layout Initial
37753 \begin_inset Argument 1
37756 \begin_layout Plain Layout
37763 \begin_inset Argument 2
37766 \begin_layout Plain Layout
37772 was in the spring of the year 1894 that all London was interested, and
37773 the fashionable world dismayed, by the murder of the Honourable Ronald
37774 Adair under most unusual and inexplicable circumstances.
37775 The public has already learned those particulars of the crime which came
37776 out in the police investigation, but a good deal was suppressed upon that
37777 occasion, since the case for the prosecution was so overwhelmingly strong
37778 that it was not necessary to bring forward all the facts.
37782 \begin_layout Enumerate
37783 Magenta, hanging initial over 3
37784 \begin_inset space ~
37787 lines in the math font
37788 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37792 \begin_inset Quotes eld
37795 t was in the spring
37796 \begin_inset Quotes erd
37803 ; to color the initial, you must insert this command before the initial:
37804 \begin_inset Newline newline
37818 \begin_inset Newline newline
37826 \begin_inset Quotes eld
37830 \begin_inset Quotes erd
37834 \begin_inset Quotes eld
37838 \begin_inset Quotes erd
37842 \begin_inset Quotes eld
37846 \begin_inset Quotes erd
37850 \begin_inset Quotes eld
37854 \begin_inset Quotes erd
37858 \begin_inset Quotes eld
37862 \begin_inset Quotes erd
37866 \begin_inset Quotes eld
37870 \begin_inset Quotes erd
37874 \begin_inset Quotes eld
37878 \begin_inset Quotes erd
37882 \begin_inset Quotes eld
37886 \begin_inset Quotes erd
37889 , and add this command to the document preamble:
37890 \begin_inset Newline newline
37897 @ifundefined{textcolor}
37898 \begin_inset Newline newline
37902 \begin_inset space ~
37907 usepackage{color}}{}
37910 \begin_inset Separator parbreak
37917 \begin_layout Standard
37921 \begin_layout Plain Layout
37935 \begin_inset Note Note
37938 \begin_layout Plain Layout
37939 makes the initial magenta
37947 \begin_layout Initial
37948 \begin_inset Argument 1
37951 \begin_layout Plain Layout
37952 lines=3, lhang=0.33, loversize=0.25
37958 \begin_inset Argument 2
37961 \begin_layout Plain Layout
37962 \begin_inset Formula $\mathcal{I}$
37971 \begin_inset Argument 3
37974 \begin_layout Plain Layout
37975 t was in the spring
37980 of the year 1894 that all London was interested, and the fashionable world
37981 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37982 and inexplicable circumstances.
37983 The public has already learned those particulars of the crime which came
37984 out in the police investigation, but a good deal was suppressed upon that
37985 occasion, since the case for the prosecution was so overwhelmingly strong
37986 that it was not necessary to bring forward all the facts.
37990 \begin_layout Standard
37994 \begin_layout Plain Layout
38004 \begin_inset Note Note
38007 \begin_layout Plain Layout
38008 The following will be displayed when the \SpecialChar LaTeX
38021 \begin_layout Standard
38022 You need to install the \SpecialChar LaTeX
38027 to see the following part of this section in the output.
38030 \begin_layout Standard
38034 \begin_layout Plain Layout
38046 \begin_layout Chapter
38047 External Document Parts
38048 \begin_inset Index idx
38051 \begin_layout Plain Layout
38052 External Document Parts
38060 \begin_layout Standard
38063 Insert\SpecialChar menuseparator
38066 you can insert external material into your document.
38070 \begin_layout Description
38072 \begin_inset space ~
38075 Document Another \SpecialChar LyX
38076 document; its content is directly inserted to your document.
38079 \begin_layout Description
38081 \begin_inset space ~
38084 Text A text document; each line is inserted in your document as a separate
38088 \begin_layout Description
38090 \begin_inset space ~
38094 \begin_inset space ~
38098 \begin_inset space ~
38101 Lines A text document; text lines are inserted in your document continuously
38102 but an empty text line creates a new paragraph.
38105 \begin_layout Description
38107 \begin_inset space ~
38110 Material Files in various formats.
38113 \begin_layout Description
38115 \begin_inset space ~
38118 Document \SpecialChar LyX
38119 or \SpecialChar LaTeX
38123 \begin_layout Section
38125 \begin_inset Index idx
38128 \begin_layout Plain Layout
38129 External Document Parts ! External Material
38137 \begin_layout Standard
38138 The external material feature allows you to insert files into your document
38139 without converting them to a format that can be read by the document output
38142 takes care of the necessary conversions.
38143 This is similar to images that can be inserted in various image formats
38144 in \SpecialChar LyX
38146 When you have enabled Instant Preview in \SpecialChar LyX
38147 's preferences under
38150 \begin_inset space ~
38154 \begin_inset space ~
38157 feel\SpecialChar menuseparator
38160 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38164 \begin_layout Standard
38165 External material can be inserted via the
38169 dialog that is accessible with the menu
38171 Insert\SpecialChar menuseparator
38172 File\SpecialChar menuseparator
38174 \begin_inset space ~
38180 Currently the following file types (
38187 \begin_layout Description
38188 ChessDiagram This template supports chess position diagrams made with the
38192 \begin_inset CommandInset href
38195 target "http://en.wikipedia.org/wiki/XBoard"
38204 \begin_layout Description
38205 Date This inserts the date in the form
38210 This is a date inserted as external material:
38211 \begin_inset External
38218 \begin_inset space ~
38222 \begin_inset Note Note
38225 \begin_layout Plain Layout
38226 Remove the protected space when bug 4398 is fixed!
38232 \begin_inset Newline newline
38235 The date is not shown within \SpecialChar LyX
38236 , only in the output.
38237 There are two other methods of inserting a date: Via menu
38239 Insert\SpecialChar menuseparator
38242 and with the \SpecialChar LaTeX
38249 as \SpecialChar TeX
38251 The different methods are compared in Table
38252 \begin_inset space ~
38256 \begin_inset CommandInset ref
38258 reference "tab:Comparison-of-the"
38265 \begin_layout Description
38266 Dia This template supports diagrams created with the program
38269 \begin_inset CommandInset href
38272 target "http://en.wikipedia.org/wiki/Dia_(software)"
38281 \begin_layout Description
38282 GnumericSpreadsheet With this template you can insert spreadsheets
38283 \begin_inset space \thinspace{}
38287 \begin_inset space \thinspace{}
38290 tables in the format of
38293 \begin_inset CommandInset href
38296 target "http://en.wikipedia.org/wiki/Gnumeric"
38303 \begin_inset CommandInset href
38305 name "OpenDocument"
38306 target "http://en.wikipedia.org/wiki/OpenDocument"
38311 \begin_inset CommandInset href
38313 name "Microsoft Office XML"
38314 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38319 \begin_inset CommandInset href
38321 name "Office Open XML"
38322 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38327 For this feature \SpecialChar LyX
38328 must have found the program
38332 during its configuration.
38333 This program is part of Gnumeric, so that you must have Gnumeric installed,
38334 also if you don't have tables in the Gnumeric format.
38335 For examples and possible limitations have a look at \SpecialChar LyX
38343 \begin_layout Description
38344 LilyPond This template is used for music notation typeset with the program
38345 \begin_inset Newline linebreak
38351 \begin_inset CommandInset href
38354 target "http://en.wikipedia.org/wiki/LilyPond"
38361 For \SpecialChar LyX
38362 's extended support for LilyPond have a look at \SpecialChar LyX
38370 \begin_layout Description
38371 PDFPages With this template you can insert PDF documents to your document.
38372 To specify the range of pages that should be included, use the option
38382 LaTeX and LyX options
38385 The argument of this option is a comma separated list, containing page
38386 numbers (insert as option
38390 ), ranges of page numbers (
38394 ) or any combination.
38395 To insert empty pages use {}.
38397 \begin_inset space \thinspace{}
38401 \begin_inset space ~
38406 pages={3,{},8-11,15}
38408 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38409 Page ranges are specified in the syntax
38418 This selects all pages from
38431 defaults to the first page; omitting
38435 defaults to the last page of the document.
38436 The last page can also be selected with the keyword
38441 (This is only permitted in a page range.) So
38445 will insert all pages of the document and
38449 will insert all pages in reverse order.
38450 If the pages option is not specified, only the first page of the PDF is
38452 \begin_inset Newline newline
38459 inserts the pages with their original size, if this option is not given,
38460 the pages will be resized to fith the width of the page of your document.
38465 you can specify the width and height of the input pages and their rotation.
38466 If another width than 100
38467 \begin_inset space \thinspace{}
38470 Scale% is used, the option
38474 will be overwritten.
38475 For more info and possible options, have a look into the documentation
38476 of the \SpecialChar LaTeX
38482 \begin_inset CommandInset citation
38489 \begin_inset Index idx
38492 \begin_layout Plain Layout
38494 -packages ! pdfpages
38500 \begin_inset Newline newline
38503 To use this template in a
38507 presentation you need to first insert an
38511 environment and in a subsequent paragraph a \SpecialChar TeX
38512 Code box containing the command
38517 setbeamertemplate{background canvas}{}
38520 Then you can insert as many paragraphs containing the PDFPages template
38522 Behind the included PDF pages you can resume the Beamer presentation by
38523 beginning a new frame or by starting a new section.
38524 To avoid stray blank pages prior to the PDF pages, make sure to use the
38529 alignment for the paragraph containing the template.
38530 \begin_inset Newline newline
38533 Here is an included PDF which is rotated by -5°:
38534 \begin_inset External
38536 filename clipart/Abstract.pdf
38537 extra LaTeX "noautoscale, pages=-"
38539 rotateOrigin bottomleft
38546 \begin_layout Description
38547 RasterImage This can be used for bitmap images.
38548 The image can be treated in the
38552 dialog like the images that are usually included via the
38556 dialog as described in section
38557 \begin_inset space ~
38561 \begin_inset CommandInset ref
38563 reference "sec:Graphics-Dialog"
38568 The difference to the normal image input is that only raster images are
38569 allowed; that means that PDF and EPS-images are not supported.
38570 Here is an inserted raster image:
38571 \begin_inset External
38572 template RasterImage
38573 filename clipart/ToolbarEnvBox.png
38580 \begin_layout Description
38581 XFig This template supports images created with the program
38584 \begin_inset CommandInset href
38587 target "http://en.wikipedia.org/wiki/Xfig"
38596 \begin_layout Standard
38597 \begin_inset Float table
38603 \begin_layout Plain Layout
38604 \begin_inset Caption Standard
38606 \begin_layout Plain Layout
38607 \begin_inset CommandInset label
38609 name "tab:Comparison-of-the"
38613 Comparison of the date input methods.
38621 \begin_layout Plain Layout
38623 \begin_inset Tabular
38624 <lyxtabular version="3" rows="4" columns="4">
38625 <features tabularvalignment="middle">
38626 <column alignment="center" valignment="top">
38627 <column alignment="center" valignment="top">
38628 <column alignment="center" valignment="top">
38629 <column alignment="center" valignment="top">
38631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38634 \begin_layout Plain Layout
38640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38643 \begin_layout Plain Layout
38646 External Material\SpecialChar menuseparator
38652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38655 \begin_layout Plain Layout
38658 Insert\SpecialChar menuseparator
38664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38667 \begin_layout Plain Layout
38679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38682 \begin_layout Plain Layout
38689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38692 \begin_layout Plain Layout
38698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38701 \begin_layout Plain Layout
38707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38710 \begin_layout Plain Layout
38711 as \SpecialChar TeX
38719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38722 \begin_layout Plain Layout
38729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38732 \begin_layout Plain Layout
38738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38741 \begin_layout Plain Layout
38747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38750 \begin_layout Plain Layout
38758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38761 \begin_layout Plain Layout
38767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38770 \begin_layout Plain Layout
38776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38779 \begin_layout Plain Layout
38785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38788 \begin_layout Plain Layout
38807 \begin_layout Standard
38808 When you use the option
38820 dialog, only the path to the inserted file is shown in the output.
38821 \begin_inset Newline newline
38824 External material is displayed in \SpecialChar LyX
38825 either as a box like this:
38826 \begin_inset Graphics
38827 filename clipart/ExternalMaterialQt4.png
38829 scaleBeforeRotation
38833 or as image, depending on the option
38839 LaTeX and LyX options
38844 \begin_layout Standard
38851 manual explains how you can define your own templates.
38854 \begin_layout Section
38856 \begin_inset CommandInset label
38858 name "sec:Child-Documents"
38863 \begin_inset Index idx
38866 \begin_layout Plain Layout
38867 External Document Parts ! Child Documents
38873 \begin_inset Index idx
38876 \begin_layout Plain Layout
38885 \begin_layout Standard
38886 Child documents are used if you have a long document consisting of several
38887 larger parts or sections.
38888 For maintenance it is often useful and sometimes even required to split
38889 the document into several files that can be revised separately.
38890 The different documents are then the so called
38891 \begin_inset Quotes eld
38895 \begin_inset Quotes erd
38898 , and a master document connects them to print the full document or parts
38900 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38902 the bibliography, and labels for cross-references.
38905 \begin_layout Standard
38906 To be able to work on child documents without the need to open their master,
38907 specify in the child document the master in the menu
38909 Document\SpecialChar menuseparator
38910 Settings\SpecialChar menuseparator
38912 \begin_inset space ~
38918 This master document will then be used in the background by \SpecialChar LyX
38920 the child document.
38923 \begin_layout Standard
38924 Included documents are displayed in \SpecialChar LyX
38925 as a box like this:
38926 \begin_inset Graphics
38927 filename clipart/ChildDocumentQt4.png
38929 scaleBeforeRotation
38933 To include child documents in a master document use the menu
38935 Insert\SpecialChar menuseparator
38936 File\SpecialChar menuseparator
38938 \begin_inset space ~
38944 A dialog pops up where you can choose between four include methods:
38947 \begin_layout Description
38948 Include You can include \SpecialChar LyX
38949 and \SpecialChar LaTeX
38959 dialog, the included document will be opened in \SpecialChar LyX
38960 in a new file tab so that
38962 \begin_inset Newline newline
38968 \begin_layout Standard
38969 Here is a child document inserted using
38974 \begin_inset CommandInset include
38975 LatexCommand include
38976 filename "DummyDocument1.lyx"
38983 \begin_layout Standard
38984 The section numbering includes the sections of the included files in the
38985 order they are inserted in the master document.
38986 The included example document has for example a subsection that is numbered
38987 as a subsection of this section.
38988 Labels of included documents can be referenced: Subsection
38989 \begin_inset space ~
38993 \begin_inset CommandInset ref
38995 reference "subsec:External-Subsection-1"
39002 \begin_layout Standard
39003 The preamble of the child document is ignored; only the preamble of the
39004 master document is used.
39005 Branches in child documents will be ignored by the master document when
39006 the master document does not have a branch with the same name.
39007 Included documents are inserted starting on a new page and ending with
39011 \begin_layout Standard
39012 \begin_inset Note Greyedout
39015 \begin_layout Plain Layout
39020 If you have included a \SpecialChar LyX
39021 or \SpecialChar LaTeX
39022 file, you are warned when you export/view the
39023 document in case the child document uses another document class than the
39024 master document as this will lead to unexpected outputs.
39032 \begin_layout Description
39033 Input This method is very similar to the Include method.
39034 The differences are:
39035 \begin_inset Separator parbreak
39042 \begin_layout Itemize
39043 Input files don't start with a new page and don't end with a page break.
39046 \begin_layout Itemize
39047 Input files can be previewed in \SpecialChar LyX
39051 \begin_inset space ~
39056 is enabled in \SpecialChar LyX
39057 's preferences under
39060 \begin_inset space ~
39064 \begin_inset space ~
39067 feel\SpecialChar menuseparator
39073 \begin_layout Itemize
39074 You cannot exclude Input files via the menu
39076 Document\SpecialChar menuseparator
39077 Settings\SpecialChar menuseparator
39084 \begin_layout Standard
39085 Here is a child document inserted using
39090 \begin_inset CommandInset include
39092 filename "DummyDocument2.lyx"
39099 \begin_layout Description
39100 Verbatim With this method any text file can be included.
39101 The file is shown in the output with its source code; no command used in
39102 the text is invoked.
39103 You can use the option
39105 Mark spaces in output
39107 that displays the character
39108 \begin_inset Quotes eld
39115 \begin_layout Plain Layout
39125 \begin_inset Quotes erd
39128 for every space character in the source code.
39129 The difference from the method via the menu
39131 Insert\SpecialChar menuseparator
39132 File\SpecialChar menuseparator
39134 \begin_inset space ~
39139 is that the document content is not shown in \SpecialChar LyX
39143 \begin_layout Standard
39144 Here is a child document inserted as Verbatim:
39145 \begin_inset CommandInset include
39146 LatexCommand verbatiminput
39147 filename "DummyTextDocument.txt"
39152 \begin_inset VSpace bigskip
39155 Here is a child document inserted as Verbatim using the
39157 Mark spaces in output
39160 \begin_inset CommandInset include
39161 LatexCommand verbatiminput*
39162 filename "DummyTextDocument.txt"
39169 \begin_layout Standard
39170 \begin_inset VSpace bigskip
39176 \begin_layout Standard
39177 \begin_inset Note Greyedout
39180 \begin_layout Plain Layout
39185 As you can see in the examples above, the text of the documents included
39190 is not broken at the end of the document lines.
39198 \begin_layout Description
39199 Listings This type is described in chapter
39200 \begin_inset space ~
39204 \begin_inset CommandInset ref
39206 reference "cha:Program-Code-Listings"
39213 \begin_layout Standard
39214 \begin_inset Note Greyedout
39217 \begin_layout Plain Layout
39222 Including the same document twice in a document using different methods
39223 could cause \SpecialChar LaTeX
39232 \begin_layout Standard
39233 If you want to view/export only selected children of your master document,
39234 either because you want to save compiling time or because you want to distribut
39235 e single chapters of the book you are just writing, you can exclude children
39237 This is done via the menu
39239 Document\SpecialChar menuseparator
39240 Settings\SpecialChar menuseparator
39244 You can exclude\SpecialChar breakableslash
39245 include children by double-clicking on the
39249 column of the respective child document in the list (note that this only
39250 works for documents embedded via
39251 \begin_inset Quotes eld
39255 \begin_inset Quotes erd
39259 \begin_inset Quotes eld
39263 \begin_inset Quotes erd
39269 Maintain counters and references
39271 is enabled, \SpecialChar LyX
39272 will assure that all page numbers, references etc.
39273 \begin_inset space ~
39276 are correct as if the whole document was processed.
39277 This is useful if you want the selected sub-documents to look exactly as
39278 in the context of the whole document.
39279 However, \SpecialChar LyX
39280 needs to process the whole document in the background for this
39282 So if you want to save compile time and if counters and references do not
39283 need to be correct, disable this checkbox.
39286 \begin_layout Standard
39287 Alternatively, you can put each included file into a branch.
39291 \begin_layout Plain Layout
39292 Branches are described in section
39296 of the \SpecialChar LyX
39306 By enabling\SpecialChar breakableslash
39307 disabling branches you can decide which included files will
39308 appear in the output.
39309 This has the advantage that it also works with Input'ed sub-documents.
39310 However, counters and references will not be maintained with this approach.
39313 \begin_layout Chapter
39314 Program Code Listings
39315 \begin_inset CommandInset label
39317 name "cha:Program-Code-Listings"
39322 \begin_inset Index idx
39325 \begin_layout Plain Layout
39332 \begin_inset Index idx
39335 \begin_layout Plain Layout
39342 \begin_inset Index idx
39345 \begin_layout Plain Layout
39354 \begin_layout Standard
39355 To include and typeset program code you can use the
39359 inset that can be inserted via the menu
39361 Insert\SpecialChar menuseparator
39365 The \SpecialChar LaTeX
39371 \begin_inset Index idx
39374 \begin_layout Plain Layout
39376 -packages ! listings
39381 provides a powerful and flexible way to insert program source code into
39385 \begin_layout Standard
39386 Right-clicking on a listings inset opens the context menu containing where
39387 you can set the listings format.
39390 \begin_layout Standard
39391 By default, a listing starts a new paragraph in the output.
39392 The placement option
39395 \begin_inset space ~
39400 prints the listing inline like this:
39401 \begin_inset listings
39402 lstparams "language={C++}"
39406 \begin_layout Plain Layout
39414 \begin_inset Newline newline
39421 creates a listings float where you can specify the placement options
39422 \begin_inset Quotes eld
39430 \begin_inset Quotes erd
39434 \begin_inset Quotes eld
39442 \begin_inset Quotes erd
39446 \begin_inset Quotes eld
39454 \begin_inset Quotes erd
39458 \begin_inset Quotes eld
39466 \begin_inset Quotes erd
39469 corresponding to the float placement options described in section
39470 \begin_inset space ~
39474 \begin_inset CommandInset ref
39476 reference "sec:Float-Placement"
39481 The placement options can be mixed and are inserted without any separation,
39483 \begin_inset space \thinspace{}
39487 \begin_inset space \space{}
39491 \begin_inset Quotes eld
39499 \begin_inset Quotes erd
39504 \begin_inset Quotes eld
39508 \begin_inset Quotes erd
39511 has sometimes no effect, but you don't need to use the
39515 option in this case as also non-float listings can have captions and be
39519 \begin_layout Standard
39520 You can add captions to listings with the menu
39522 Insert\SpecialChar menuseparator
39526 Listings can be referenced like floats: Listing
39527 \begin_inset space ~
39531 \begin_inset CommandInset ref
39533 reference "lst:Example-Listing"
39538 A list of listings which contains all listings with captions can be created
39541 Insert\SpecialChar menuseparator
39543 \begin_inset space ~
39547 \begin_inset space ~
39550 TOC\SpecialChar menuseparator
39554 The list entries are the listing caption and the listing number.
39557 \begin_layout Standard
39558 \begin_inset listings
39559 lstparams "language=Python"
39563 \begin_layout Plain Layout
39565 \begin_inset Caption Standard
39567 \begin_layout Plain Layout
39568 \begin_inset CommandInset label
39570 name "lst:Example-Listing"
39574 Example Listing float
39579 # Example listing float
39582 \begin_layout Plain Layout
39587 \begin_layout Plain Layout
39589 'this is a python function'
39592 \begin_layout Plain Layout
39602 \begin_layout Standard
39603 When you have set a programming language in the listings dialog, the keywords
39604 of this language will be recognized and specially typeset in the output.
39605 In the example listings the Python keyword
39606 \begin_inset Quotes eld
39610 \begin_inset Quotes erd
39613 is recognized and printed bold in the output.
39616 \begin_layout Standard
39617 \begin_inset Note Greyedout
39620 \begin_layout Plain Layout
39625 If you don't get bold keywords when using typewriter fonts, your
39629 font probably doesn't provide a bold shape.
39630 In this case select a different one in the menu
39632 Document\SpecialChar menuseparator
39633 Settings\SpecialChar menuseparator
39645 provide bold shapes.)
39653 \begin_layout Standard
39657 \begin_inset space ~
39662 of the listings dialog you can specify the line numbering style.
39663 You can insert a number to specify which lines are numbered in the field
39670 \begin_inset space \thinspace{}
39674 \begin_inset space \space{}
39678 \begin_inset Quotes eld
39682 \begin_inset Quotes erd
39685 , only every 3rd line will be numbered.
39688 \begin_layout Standard
39689 You can furthermore specify a range of lines; only these will then appear
39693 Extended character table
39695 should be used when you use national characters like the German umlauts
39697 \begin_inset Newline newline
39700 Here is an example listing with left line numbering, step
39701 \begin_inset Quotes eld
39705 \begin_inset Quotes erd
39709 \begin_inset Quotes eld
39713 \begin_inset Quotes erd
39717 \begin_inset Quotes eld
39720 Extended character table
39721 \begin_inset Quotes erd
39725 \begin_inset Quotes eld
39729 \begin_inset space ~
39733 \begin_inset space ~
39737 \begin_inset Quotes erd
39741 \begin_inset space \thinspace{}
39745 \begin_inset space \thinspace{}
39751 \begin_layout Standard
39752 \begin_inset listings
39753 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39757 \begin_layout Plain Layout
39762 \begin_layout Plain Layout
39764 'this is a python function'
39767 \begin_layout Plain Layout
39772 \begin_layout Plain Layout
39777 \begin_layout Plain Layout
39779 'This is a German word: Tschüß'
39782 \begin_layout Plain Layout
39787 \begin_layout Plain Layout
39792 \begin_layout Plain Layout
39794 'this is a python function'
39797 \begin_layout Plain Layout
39807 \begin_layout Standard
39808 When you have tabulators in your listing, you can specify the number of
39809 characters that are spanned by a tabulator in the field
39812 \begin_inset space ~
39820 \begin_layout Standard
39821 \begin_inset Note Greyedout
39824 \begin_layout Plain Layout
39829 Due to a bug in the
39833 package the line numbering is shifted by a line by every previous listing.
39834 That's the reason why the lines 2 and 5 are numbered in the above listing
39835 and not the lines 3 and 6.
39843 \begin_layout Standard
39844 \begin_inset VSpace bigskip
39850 \begin_layout Standard
39851 It is also possible to print lines from a file as listing.
39852 To do this, use the menu
39854 Insert\SpecialChar menuseparator
39855 File\SpecialChar menuseparator
39858 and choose the type
39866 \begin_layout Plain Layout
39867 The other child document types are described in section
39868 \begin_inset space ~
39872 \begin_inset CommandInset ref
39874 reference "sec:Child-Documents"
39883 In the child document dialog you can specify the listing parameters in
39885 To show a list of all available parameters, type in a question mark
39886 \begin_inset Quotes eld
39890 \begin_inset Quotes erd
39896 \begin_layout Standard
39897 To reference child document listings, write a label text into the corresponding
39898 field of the child document dialog.
39899 The label can then be referenced using the menu
39901 Insert\SpecialChar menuseparator
39907 \begin_layout Standard
39909 \begin_inset space ~
39913 \begin_inset CommandInset ref
39915 reference "lst:file-listing"
39919 is an example for a listing of a file; there the lines 10
39920 \begin_inset space \thinspace{}
39924 \begin_inset space \thinspace{}
39927 15 of this \SpecialChar LyX
39931 \begin_layout Standard
39932 \begin_inset CommandInset include
39933 LatexCommand lstinputlisting
39934 filename "EmbeddedObjects.lyx"
39935 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39942 \begin_layout Standard
39943 \begin_inset VSpace bigskip
39949 \begin_layout Standard
39950 Inserting a formula into a listing can be done the following way:
39953 \begin_layout Enumerate
39954 Open the listings dialog and add
39955 \begin_inset Newline newline
39963 \begin_inset Newline newline
39966 to the field of the
39973 \begin_layout Enumerate
39974 Create a formula outside the listing
39977 \begin_layout Enumerate
39978 Copy the content of the formula (not the formula inset) to the clipboard
39988 \begin_layout Enumerate
39989 In the listing write
39990 \begin_inset Quotes eld
39998 \begin_inset Quotes erd
40001 and copy from the clipboard between the dollar-signs (shortcut
40010 \begin_layout Standard
40011 \begin_inset listings
40012 lstparams "language=Python,mathescape=true"
40016 \begin_layout Plain Layout
40018 \begin_inset Caption Standard
40020 \begin_layout Plain Layout
40021 Example Listing float containing a formula
40026 # Example listing float
40029 \begin_layout Plain Layout
40034 \begin_layout Plain Layout
40047 \begin_layout Plain Layout
40057 \begin_layout Standard
40058 \begin_inset VSpace bigskip
40064 \begin_layout Standard
40065 Global listings settings can be set in the
40067 Document\SpecialChar menuseparator
40068 Settings\SpecialChar menuseparator
40072 To get there a list of available options, type in a question mark
40073 \begin_inset Quotes eld
40077 \begin_inset Quotes erd
40083 \begin_layout Standard
40084 For more information about the
40088 package, we refer to its documentation
40089 \begin_inset CommandInset citation
40098 \begin_layout Standard
40099 \begin_inset Newpage newpage
40105 \begin_layout Chapter
40107 Units available in \SpecialChar LyX
40109 \begin_inset Index idx
40112 \begin_layout Plain Layout
40119 \begin_inset CommandInset label
40121 name "cha:Units-available-in"
40128 \begin_layout Standard
40129 To understand the units described in this documentation, Table
40130 \begin_inset space ~
40134 \begin_inset CommandInset ref
40136 reference "tab:Units"
40140 explains all units available in \SpecialChar LyX
40144 \begin_layout Standard
40145 \begin_inset Float table
40151 \begin_layout Plain Layout
40152 \begin_inset Caption Standard
40154 \begin_layout Plain Layout
40155 \begin_inset CommandInset label
40169 \begin_layout Plain Layout
40170 \begin_inset VSpace medskip
40176 \begin_layout Plain Layout
40178 \begin_inset Tabular
40179 <lyxtabular version="3" rows="20" columns="3">
40180 <features tabularvalignment="middle">
40181 <column alignment="center" valignment="top">
40182 <column alignment="center" valignment="top">
40183 <column alignment="center" valignment="top">
40185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40188 \begin_layout Plain Layout
40194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40197 \begin_layout Plain Layout
40203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40206 \begin_layout Plain Layout
40215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40218 \begin_layout Plain Layout
40224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40227 \begin_layout Plain Layout
40233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40236 \begin_layout Plain Layout
40244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40247 \begin_layout Plain Layout
40253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40256 \begin_layout Plain Layout
40262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40265 \begin_layout Plain Layout
40273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40276 \begin_layout Plain Layout
40282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40285 \begin_layout Plain Layout
40291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40294 \begin_layout Plain Layout
40302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40305 \begin_layout Plain Layout
40311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40314 \begin_layout Plain Layout
40316 \begin_inset space \thinspace{}
40320 \begin_inset space \thinspace{}
40328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40331 \begin_layout Plain Layout
40339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40342 \begin_layout Plain Layout
40348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40351 \begin_layout Plain Layout
40353 \begin_inset space \thinspace{}
40357 \begin_inset space \thinspace{}
40365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40368 \begin_layout Plain Layout
40376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40379 \begin_layout Plain Layout
40385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40388 \begin_layout Plain Layout
40389 scaled point (65536
40390 \begin_inset space \thinspace{}
40394 \begin_inset space \thinspace{}
40402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40405 \begin_layout Plain Layout
40413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40416 \begin_layout Plain Layout
40422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40425 \begin_layout Plain Layout
40427 \begin_inset space \thinspace{}
40431 \begin_inset space \thinspace{}
40439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40442 \begin_layout Plain Layout
40450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40453 \begin_layout Plain Layout
40459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40462 \begin_layout Plain Layout
40464 \begin_inset space \thinspace{}
40468 \begin_inset Formula $\approx$
40472 \begin_inset space \thinspace{}
40480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40483 \begin_layout Plain Layout
40491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40494 \begin_layout Plain Layout
40500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40503 \begin_layout Plain Layout
40505 \begin_inset space \thinspace{}
40509 \begin_inset space \thinspace{}
40517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40520 \begin_layout Plain Layout
40528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40531 \begin_layout Plain Layout
40537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40540 \begin_layout Plain Layout
40541 % of original image width
40546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40549 \begin_layout Plain Layout
40557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40560 \begin_layout Plain Layout
40566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40569 \begin_layout Plain Layout
40575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40578 \begin_layout Plain Layout
40588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40591 \begin_layout Plain Layout
40597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40600 \begin_layout Plain Layout
40606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40609 \begin_layout Plain Layout
40619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40622 \begin_layout Plain Layout
40628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40631 \begin_layout Plain Layout
40637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40640 \begin_layout Plain Layout
40650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40653 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40662 \begin_layout Plain Layout
40668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40671 \begin_layout Plain Layout
40681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40684 \begin_layout Plain Layout
40690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40693 \begin_layout Plain Layout
40699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40702 \begin_layout Plain Layout
40712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40715 \begin_layout Plain Layout
40721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40724 \begin_layout Plain Layout
40730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40733 \begin_layout Plain Layout
40743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40746 \begin_layout Plain Layout
40752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40755 \begin_layout Plain Layout
40765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40768 \begin_layout Plain Layout
40776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40779 \begin_layout Plain Layout
40785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40788 \begin_layout Plain Layout
40798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40801 \begin_layout Plain Layout
40809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40812 \begin_layout Plain Layout
40818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40821 \begin_layout Plain Layout
40823 \begin_inset space \thinspace{}
40827 \begin_inset space \thinspace{}
40835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40838 \begin_layout Plain Layout
40857 \begin_layout Chapter
40858 Output File Formats with Graphics
40859 \begin_inset CommandInset label
40861 name "cha:Output-File-Formats"
40868 \begin_layout Section
40870 \begin_inset Index idx
40873 \begin_layout Plain Layout
40880 \begin_inset Index idx
40883 \begin_layout Plain Layout
40888 \begin_layout Plain Layout
40899 \begin_layout Plain Layout
40914 \begin_layout Standard
40915 This file type has the extension
40916 \begin_inset Quotes eld
40924 \begin_inset Quotes erd
40929 \begin_inset Quotes eld
40933 \begin_inset Quotes erd
40936 (DVI), because it is completely portable; you can move them from one machine
40937 to another without needing to do any sort of conversion.
40938 At the time when this file-format was developed, this was no matter of
40940 DVIs are used for quick previews and as pre-stage for other output formats,
40944 \begin_layout Standard
40945 \begin_inset Note Greyedout
40948 \begin_layout Plain Layout
40953 DVI-files do not contain images; they will only be a linked.
40958 So don't forget this, if you move your
40962 file to another computer.
40963 This property can also slow down your computer when you view the DVI, because
40964 the DVI-viewer has to convert the image in the background to make it visible
40965 when you scroll in the DVI.
40966 So it is recommended that you use PDF for files with many images.
40969 \begin_layout Standard
40970 You can export your document to DVI by using the menu
40972 File\SpecialChar menuseparator
40973 Export\SpecialChar menuseparator
40977 You can view your document as DVI via the
40984 \begin_layout Section
40986 \begin_inset Index idx
40989 \begin_layout Plain Layout
40990 File Formats ! PostScript
40996 \begin_inset Index idx
40999 \begin_layout Plain Layout
41004 \begin_layout Plain Layout
41015 \begin_layout Plain Layout
41030 \begin_layout Standard
41031 This file type has the extension
41032 \begin_inset Quotes eld
41040 \begin_inset Quotes erd
41044 PostScript was developed by the company
41048 as a printer language.
41049 The file therefore contains commands that the printer uses to print the
41051 PostScript can be seen as a
41052 \begin_inset Quotes eld
41055 programming language
41056 \begin_inset Quotes erd
41059 ; you can calculate with it and draw diagrams and images
41063 \begin_layout Plain Layout
41064 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41071 \begin_inset CommandInset citation
41083 Due to this ability, the files are often bigger than PDFs.
41086 \begin_layout Standard
41087 PostScript can only contain images in the format
41088 \begin_inset Quotes eld
41091 Encapsulated PostScript
41092 \begin_inset Quotes erd
41095 (EPS, file extension
41096 \begin_inset Quotes eld
41104 \begin_inset Quotes erd
41108 As \SpecialChar LyX
41109 allows you to use any known image format in your document, it has to
41110 convert images in the background to EPS.
41112 \begin_inset space ~
41116 \begin_inset space ~
41119 images in your document, \SpecialChar LyX
41121 \begin_inset space ~
41124 conversions whenever you view or export your document.
41125 This will slow down your work flow with \SpecialChar LyX
41127 So if you plan to use PostScript, you can insert your images directly as
41128 EPS to avoid this problem.
41131 \begin_layout Standard
41132 You can export your document to PostScript using the menu
41134 File\SpecialChar menuseparator
41135 Export\SpecialChar menuseparator
41139 You can view your document as PostScript via the
41146 \begin_layout Section
41148 \begin_inset Index idx
41151 \begin_layout Plain Layout
41158 \begin_inset Index idx
41161 \begin_layout Plain Layout
41170 \begin_layout Standard
41171 This file type has the extension
41172 \begin_inset Quotes eld
41180 \begin_inset Quotes erd
41185 \begin_inset Quotes eld
41188 Portable Document Format
41189 \begin_inset Quotes erd
41192 (PDF) was developed by
41196 as a derivative of PostScript.
41197 It is more compressed and it uses fewer commands than PostScript.
41199 \begin_inset Quotes eld
41203 \begin_inset Quotes erd
41206 implies, it can be processed at any computer system and the printed output
41207 looks exactly the same.
41210 \begin_layout Standard
41211 PDF can contain images in its own PDF format, in the format
41212 \begin_inset Quotes eld
41215 Joint Photographic Experts Group
41216 \begin_inset Quotes erd
41219 (JPG, file extension
41220 \begin_inset Quotes eld
41228 \begin_inset Quotes erd
41232 \begin_inset Quotes eld
41240 \begin_inset Quotes erd
41243 ), and in the format
41244 \begin_inset Quotes eld
41247 Portable Network Graphics
41248 \begin_inset Quotes erd
41251 (PNG, file extension
41252 \begin_inset Quotes eld
41260 \begin_inset Quotes erd
41264 Nevertheless you can use any other image format, because \SpecialChar LyX
41266 in the background to one of these formats.
41267 But as described in the section about PostScript, the image conversion
41268 will slow down your work flow.
41269 So it is recommended that you use images in one of the three mentioned
41273 \begin_layout Standard
41274 You can export your document to PDF via the menu
41276 File\SpecialChar menuseparator
41279 in three different ways:
41282 \begin_layout Description
41284 \begin_inset space ~
41287 (ps2pdf) This uses the program
41291 that creates a PDF from a PostScript-version of your file.
41292 The PostScript-version is produced by the program
41296 which uses a DVI-version as intermediate step.
41297 So this export variant consists of three conversions.
41300 \begin_layout Description
41302 \begin_inset space ~
41305 (dvipdfm) This uses the program
41309 that converts your file in the background to DVI and in a second step to
41313 \begin_layout Description
41315 \begin_inset space ~
41318 (pdflatex) This uses the program
41322 that converts your file directly to PDF.
41325 \begin_layout Standard
41326 It is recommended that you use
41329 \begin_inset space ~
41338 supports all features of actual PDF-versions, is quick and works stable.
41343 is not under development and therefore a bit outdated.
41346 \begin_layout Standard
41347 You can view your document as PDF via the
41351 menu or by using a toolbar button.
41354 \begin_layout Chapter
41355 List of dvips color names
41356 \begin_inset CommandInset label
41358 name "chap:List-of-dvips-colornames"
41365 \begin_layout Standard
41366 \begin_inset Tabular
41367 <lyxtabular version="3" rows="17" columns="4">
41368 <features tabularvalignment="middle">
41369 <column alignment="left" valignment="top" width="0pt">
41370 <column alignment="left" valignment="top" width="0pt">
41371 <column alignment="left" valignment="top" width="0pt">
41372 <column alignment="left" valignment="top" width="0pt">
41374 <cell alignment="left" valignment="top" usebox="none">
41377 \begin_layout Plain Layout
41381 \begin_layout Plain Layout
41394 \begin_layout Plain Layout
41405 \begin_layout Plain Layout
41417 <cell alignment="left" valignment="top" usebox="none">
41420 \begin_layout Plain Layout
41424 \begin_layout Plain Layout
41437 \begin_layout Plain Layout
41448 \begin_layout Plain Layout
41460 <cell alignment="left" valignment="top" usebox="none">
41463 \begin_layout Plain Layout
41467 \begin_layout Plain Layout
41480 \begin_layout Plain Layout
41491 \begin_layout Plain Layout
41503 <cell alignment="left" valignment="top" usebox="none">
41506 \begin_layout Plain Layout
41510 \begin_layout Plain Layout
41523 \begin_layout Plain Layout
41534 \begin_layout Plain Layout
41548 <cell alignment="center" valignment="top" usebox="none">
41551 \begin_layout Plain Layout
41555 \begin_layout Plain Layout
41568 \begin_layout Plain Layout
41576 \begin_inset Phantom Phantom
41579 \begin_layout Plain Layout
41589 \begin_layout Plain Layout
41601 <cell alignment="center" valignment="top" usebox="none">
41604 \begin_layout Plain Layout
41608 \begin_layout Plain Layout
41621 \begin_layout Plain Layout
41629 \begin_inset Phantom Phantom
41632 \begin_layout Plain Layout
41642 \begin_layout Plain Layout
41654 <cell alignment="center" valignment="top" usebox="none">
41657 \begin_layout Plain Layout
41661 \begin_layout Plain Layout
41674 \begin_layout Plain Layout
41682 \begin_inset Phantom Phantom
41685 \begin_layout Plain Layout
41695 \begin_layout Plain Layout
41707 <cell alignment="center" valignment="top" usebox="none">
41710 \begin_layout Plain Layout
41714 \begin_layout Plain Layout
41727 \begin_layout Plain Layout
41735 \begin_inset Phantom Phantom
41738 \begin_layout Plain Layout
41748 \begin_layout Plain Layout
41762 <cell alignment="left" valignment="top" usebox="none">
41765 \begin_layout Plain Layout
41769 \begin_layout Plain Layout
41782 \begin_layout Plain Layout
41790 \begin_inset Phantom Phantom
41793 \begin_layout Plain Layout
41803 \begin_layout Plain Layout
41815 <cell alignment="left" valignment="top" usebox="none">
41818 \begin_layout Plain Layout
41822 \begin_layout Plain Layout
41835 \begin_layout Plain Layout
41843 \begin_inset Phantom Phantom
41846 \begin_layout Plain Layout
41856 \begin_layout Plain Layout
41868 <cell alignment="left" valignment="top" usebox="none">
41871 \begin_layout Plain Layout
41875 \begin_layout Plain Layout
41888 \begin_layout Plain Layout
41896 \begin_inset Phantom Phantom
41899 \begin_layout Plain Layout
41909 \begin_layout Plain Layout
41921 <cell alignment="left" valignment="top" usebox="none">
41924 \begin_layout Plain Layout
41928 \begin_layout Plain Layout
41941 \begin_layout Plain Layout
41949 \begin_inset Phantom Phantom
41952 \begin_layout Plain Layout
41962 \begin_layout Plain Layout
41976 <cell alignment="left" valignment="top" usebox="none">
41979 \begin_layout Plain Layout
41983 \begin_layout Plain Layout
41996 \begin_layout Plain Layout
42004 \begin_inset Phantom Phantom
42007 \begin_layout Plain Layout
42017 \begin_layout Plain Layout
42029 <cell alignment="left" valignment="top" usebox="none">
42032 \begin_layout Plain Layout
42036 \begin_layout Plain Layout
42049 \begin_layout Plain Layout
42057 \begin_inset Phantom Phantom
42060 \begin_layout Plain Layout
42070 \begin_layout Plain Layout
42082 <cell alignment="left" valignment="top" usebox="none">
42085 \begin_layout Plain Layout
42089 \begin_layout Plain Layout
42102 \begin_layout Plain Layout
42110 \begin_inset Phantom Phantom
42113 \begin_layout Plain Layout
42123 \begin_layout Plain Layout
42135 <cell alignment="left" valignment="top" usebox="none">
42138 \begin_layout Plain Layout
42142 \begin_layout Plain Layout
42155 \begin_layout Plain Layout
42163 \begin_inset Phantom Phantom
42166 \begin_layout Plain Layout
42176 \begin_layout Plain Layout
42190 <cell alignment="left" valignment="top" usebox="none">
42193 \begin_layout Plain Layout
42197 \begin_layout Plain Layout
42210 \begin_layout Plain Layout
42218 \begin_inset Phantom Phantom
42221 \begin_layout Plain Layout
42231 \begin_layout Plain Layout
42243 <cell alignment="left" valignment="top" usebox="none">
42246 \begin_layout Plain Layout
42250 \begin_layout Plain Layout
42263 \begin_layout Plain Layout
42271 \begin_inset Phantom Phantom
42274 \begin_layout Plain Layout
42284 \begin_layout Plain Layout
42296 <cell alignment="left" valignment="top" usebox="none">
42299 \begin_layout Plain Layout
42303 \begin_layout Plain Layout
42316 \begin_layout Plain Layout
42324 \begin_inset Phantom Phantom
42327 \begin_layout Plain Layout
42337 \begin_layout Plain Layout
42349 <cell alignment="left" valignment="top" usebox="none">
42352 \begin_layout Plain Layout
42356 \begin_layout Plain Layout
42369 \begin_layout Plain Layout
42377 \begin_inset Phantom Phantom
42380 \begin_layout Plain Layout
42390 \begin_layout Plain Layout
42404 <cell alignment="left" valignment="top" usebox="none">
42407 \begin_layout Plain Layout
42411 \begin_layout Plain Layout
42424 \begin_layout Plain Layout
42432 \begin_inset Phantom Phantom
42435 \begin_layout Plain Layout
42445 \begin_layout Plain Layout
42457 <cell alignment="left" valignment="top" usebox="none">
42460 \begin_layout Plain Layout
42464 \begin_layout Plain Layout
42477 \begin_layout Plain Layout
42485 \begin_inset Phantom Phantom
42488 \begin_layout Plain Layout
42498 \begin_layout Plain Layout
42510 <cell alignment="left" valignment="top" usebox="none">
42513 \begin_layout Plain Layout
42517 \begin_layout Plain Layout
42530 \begin_layout Plain Layout
42538 \begin_inset Phantom Phantom
42541 \begin_layout Plain Layout
42551 \begin_layout Plain Layout
42563 <cell alignment="left" valignment="top" usebox="none">
42566 \begin_layout Plain Layout
42570 \begin_layout Plain Layout
42583 \begin_layout Plain Layout
42591 \begin_inset Phantom Phantom
42594 \begin_layout Plain Layout
42604 \begin_layout Plain Layout
42618 <cell alignment="center" valignment="top" usebox="none">
42621 \begin_layout Plain Layout
42625 \begin_layout Plain Layout
42638 \begin_layout Plain Layout
42646 \begin_inset Phantom Phantom
42649 \begin_layout Plain Layout
42659 \begin_layout Plain Layout
42671 <cell alignment="center" valignment="top" usebox="none">
42674 \begin_layout Plain Layout
42678 \begin_layout Plain Layout
42691 \begin_layout Plain Layout
42699 \begin_inset Phantom Phantom
42702 \begin_layout Plain Layout
42712 \begin_layout Plain Layout
42724 <cell alignment="center" valignment="top" usebox="none">
42727 \begin_layout Plain Layout
42731 \begin_layout Plain Layout
42744 \begin_layout Plain Layout
42752 \begin_inset Phantom Phantom
42755 \begin_layout Plain Layout
42765 \begin_layout Plain Layout
42777 <cell alignment="center" valignment="top" usebox="none">
42780 \begin_layout Plain Layout
42784 \begin_layout Plain Layout
42797 \begin_layout Plain Layout
42805 \begin_inset Phantom Phantom
42808 \begin_layout Plain Layout
42818 \begin_layout Plain Layout
42832 <cell alignment="left" valignment="top" usebox="none">
42835 \begin_layout Plain Layout
42839 \begin_layout Plain Layout
42852 \begin_layout Plain Layout
42860 \begin_inset Phantom Phantom
42863 \begin_layout Plain Layout
42873 \begin_layout Plain Layout
42885 <cell alignment="left" valignment="top" usebox="none">
42888 \begin_layout Plain Layout
42892 \begin_layout Plain Layout
42905 \begin_layout Plain Layout
42913 \begin_inset Phantom Phantom
42916 \begin_layout Plain Layout
42926 \begin_layout Plain Layout
42938 <cell alignment="left" valignment="top" usebox="none">
42941 \begin_layout Plain Layout
42945 \begin_layout Plain Layout
42958 \begin_layout Plain Layout
42966 \begin_inset Phantom Phantom
42969 \begin_layout Plain Layout
42979 \begin_layout Plain Layout
42991 <cell alignment="left" valignment="top" usebox="none">
42994 \begin_layout Plain Layout
42998 \begin_layout Plain Layout
43011 \begin_layout Plain Layout
43019 \begin_inset Phantom Phantom
43022 \begin_layout Plain Layout
43032 \begin_layout Plain Layout
43046 <cell alignment="left" valignment="top" usebox="none">
43049 \begin_layout Plain Layout
43053 \begin_layout Plain Layout
43066 \begin_layout Plain Layout
43074 \begin_inset Phantom Phantom
43077 \begin_layout Plain Layout
43087 \begin_layout Plain Layout
43099 <cell alignment="left" valignment="top" usebox="none">
43102 \begin_layout Plain Layout
43106 \begin_layout Plain Layout
43119 \begin_layout Plain Layout
43127 \begin_inset Phantom Phantom
43130 \begin_layout Plain Layout
43140 \begin_layout Plain Layout
43152 <cell alignment="left" valignment="top" usebox="none">
43155 \begin_layout Plain Layout
43159 \begin_layout Plain Layout
43172 \begin_layout Plain Layout
43180 \begin_inset Phantom Phantom
43183 \begin_layout Plain Layout
43193 \begin_layout Plain Layout
43205 <cell alignment="left" valignment="top" usebox="none">
43208 \begin_layout Plain Layout
43212 \begin_layout Plain Layout
43225 \begin_layout Plain Layout
43233 \begin_inset Phantom Phantom
43236 \begin_layout Plain Layout
43246 \begin_layout Plain Layout
43260 <cell alignment="left" valignment="top" usebox="none">
43263 \begin_layout Plain Layout
43267 \begin_layout Plain Layout
43280 \begin_layout Plain Layout
43288 \begin_inset Phantom Phantom
43291 \begin_layout Plain Layout
43301 \begin_layout Plain Layout
43313 <cell alignment="left" valignment="top" usebox="none">
43316 \begin_layout Plain Layout
43320 \begin_layout Plain Layout
43333 \begin_layout Plain Layout
43341 \begin_inset Phantom Phantom
43344 \begin_layout Plain Layout
43354 \begin_layout Plain Layout
43366 <cell alignment="left" valignment="top" usebox="none">
43369 \begin_layout Plain Layout
43373 \begin_layout Plain Layout
43386 \begin_layout Plain Layout
43394 \begin_inset Phantom Phantom
43397 \begin_layout Plain Layout
43407 \begin_layout Plain Layout
43419 <cell alignment="left" valignment="top" usebox="none">
43422 \begin_layout Plain Layout
43426 \begin_layout Plain Layout
43439 \begin_layout Plain Layout
43447 \begin_inset Phantom Phantom
43450 \begin_layout Plain Layout
43460 \begin_layout Plain Layout
43474 <cell alignment="left" valignment="top" usebox="none">
43477 \begin_layout Plain Layout
43481 \begin_layout Plain Layout
43494 \begin_layout Plain Layout
43502 \begin_inset Phantom Phantom
43505 \begin_layout Plain Layout
43515 \begin_layout Plain Layout
43527 <cell alignment="left" valignment="top" usebox="none">
43530 \begin_layout Plain Layout
43534 \begin_layout Plain Layout
43547 \begin_layout Plain Layout
43555 \begin_inset Phantom Phantom
43558 \begin_layout Plain Layout
43568 \begin_layout Plain Layout
43580 <cell alignment="left" valignment="top" usebox="none">
43583 \begin_layout Plain Layout
43587 \begin_layout Plain Layout
43600 \begin_layout Plain Layout
43608 \begin_inset Phantom Phantom
43611 \begin_layout Plain Layout
43621 \begin_layout Plain Layout
43633 <cell alignment="left" valignment="top" usebox="none">
43636 \begin_layout Plain Layout
43640 \begin_layout Plain Layout
43653 \begin_layout Plain Layout
43661 \begin_inset Phantom Phantom
43664 \begin_layout Plain Layout
43674 \begin_layout Plain Layout
43688 <cell alignment="left" valignment="top" usebox="none">
43691 \begin_layout Plain Layout
43695 \begin_layout Plain Layout
43708 \begin_layout Plain Layout
43716 \begin_inset Phantom Phantom
43719 \begin_layout Plain Layout
43729 \begin_layout Plain Layout
43741 <cell alignment="left" valignment="top" usebox="none">
43744 \begin_layout Plain Layout
43748 \begin_layout Plain Layout
43761 \begin_layout Plain Layout
43769 \begin_inset Phantom Phantom
43772 \begin_layout Plain Layout
43782 \begin_layout Plain Layout
43794 <cell alignment="left" valignment="top" usebox="none">
43797 \begin_layout Plain Layout
43801 \begin_layout Plain Layout
43814 \begin_layout Plain Layout
43822 \begin_inset Phantom Phantom
43825 \begin_layout Plain Layout
43835 \begin_layout Plain Layout
43847 <cell alignment="left" valignment="top" usebox="none">
43850 \begin_layout Plain Layout
43854 \begin_layout Plain Layout
43867 \begin_layout Plain Layout
43875 \begin_inset Phantom Phantom
43878 \begin_layout Plain Layout
43888 \begin_layout Plain Layout
43902 <cell alignment="left" valignment="top" usebox="none">
43905 \begin_layout Plain Layout
43909 \begin_layout Plain Layout
43922 \begin_layout Plain Layout
43930 \begin_inset Phantom Phantom
43933 \begin_layout Plain Layout
43943 \begin_layout Plain Layout
43955 <cell alignment="left" valignment="top" usebox="none">
43958 \begin_layout Plain Layout
43962 \begin_layout Plain Layout
43975 \begin_layout Plain Layout
43983 \begin_inset Phantom Phantom
43986 \begin_layout Plain Layout
43996 \begin_layout Plain Layout
44008 <cell alignment="left" valignment="top" usebox="none">
44011 \begin_layout Plain Layout
44015 \begin_layout Plain Layout
44028 \begin_layout Plain Layout
44036 \begin_inset Phantom Phantom
44039 \begin_layout Plain Layout
44049 \begin_layout Plain Layout
44061 <cell alignment="left" valignment="top" usebox="none">
44064 \begin_layout Plain Layout
44068 \begin_layout Plain Layout
44081 \begin_layout Plain Layout
44089 \begin_inset Phantom Phantom
44092 \begin_layout Plain Layout
44102 \begin_layout Plain Layout
44116 <cell alignment="left" valignment="top" usebox="none">
44119 \begin_layout Plain Layout
44123 \begin_layout Plain Layout
44136 \begin_layout Plain Layout
44144 \begin_inset Phantom Phantom
44147 \begin_layout Plain Layout
44157 \begin_layout Plain Layout
44169 <cell alignment="left" valignment="top" usebox="none">
44172 \begin_layout Plain Layout
44176 \begin_layout Plain Layout
44189 \begin_layout Plain Layout
44197 \begin_inset Phantom Phantom
44200 \begin_layout Plain Layout
44210 \begin_layout Plain Layout
44222 <cell alignment="left" valignment="top" usebox="none">
44225 \begin_layout Plain Layout
44229 \begin_layout Plain Layout
44242 \begin_layout Plain Layout
44250 \begin_inset Phantom Phantom
44253 \begin_layout Plain Layout
44263 \begin_layout Plain Layout
44275 <cell alignment="left" valignment="top" usebox="none">
44278 \begin_layout Plain Layout
44282 \begin_layout Plain Layout
44295 \begin_layout Plain Layout
44303 \begin_inset Phantom Phantom
44306 \begin_layout Plain Layout
44316 \begin_layout Plain Layout
44330 <cell alignment="left" valignment="top" usebox="none">
44333 \begin_layout Plain Layout
44337 \begin_layout Plain Layout
44350 \begin_layout Plain Layout
44358 \begin_inset Phantom Phantom
44361 \begin_layout Plain Layout
44371 \begin_layout Plain Layout
44383 <cell alignment="left" valignment="top" usebox="none">
44386 \begin_layout Plain Layout
44390 \begin_layout Plain Layout
44403 \begin_layout Plain Layout
44411 \begin_inset Phantom Phantom
44414 \begin_layout Plain Layout
44424 \begin_layout Plain Layout
44436 <cell alignment="left" valignment="top" usebox="none">
44439 \begin_layout Plain Layout
44443 \begin_layout Plain Layout
44456 \begin_layout Plain Layout
44464 \begin_inset Phantom Phantom
44467 \begin_layout Plain Layout
44477 \begin_layout Plain Layout
44489 <cell alignment="left" valignment="top" usebox="none">
44492 \begin_layout Plain Layout
44496 \begin_layout Plain Layout
44509 \begin_layout Plain Layout
44517 \begin_inset Phantom Phantom
44520 \begin_layout Plain Layout
44530 \begin_layout Plain Layout
44544 <cell alignment="left" valignment="top" usebox="none">
44547 \begin_layout Plain Layout
44551 \begin_layout Plain Layout
44564 \begin_layout Plain Layout
44572 \begin_inset Phantom Phantom
44575 \begin_layout Plain Layout
44585 \begin_layout Plain Layout
44597 <cell alignment="left" valignment="top" usebox="none">
44600 \begin_layout Plain Layout
44604 \begin_layout Plain Layout
44617 \begin_layout Plain Layout
44625 \begin_inset Phantom Phantom
44628 \begin_layout Plain Layout
44638 \begin_layout Plain Layout
44650 <cell alignment="left" valignment="top" usebox="none">
44653 \begin_layout Plain Layout
44657 \begin_layout Plain Layout
44670 \begin_layout Plain Layout
44678 \begin_inset Phantom Phantom
44681 \begin_layout Plain Layout
44691 \begin_layout Plain Layout
44703 <cell alignment="left" valignment="top" usebox="none">
44706 \begin_layout Plain Layout
44710 \begin_layout Plain Layout
44723 \begin_layout Plain Layout
44731 \begin_inset Phantom Phantom
44734 \begin_layout Plain Layout
44744 \begin_layout Plain Layout
44758 <cell alignment="left" valignment="top" usebox="none">
44761 \begin_layout Plain Layout
44765 \begin_layout Plain Layout
44778 \begin_layout Plain Layout
44786 \begin_inset Phantom Phantom
44789 \begin_layout Plain Layout
44799 \begin_layout Plain Layout
44811 <cell alignment="left" valignment="top" usebox="none">
44814 \begin_layout Plain Layout
44820 <cell alignment="left" valignment="top" usebox="none">
44823 \begin_layout Plain Layout
44829 <cell alignment="left" valignment="top" usebox="none">
44832 \begin_layout Plain Layout
44846 \begin_layout Chapter
44847 Explanation of Equation
44848 \begin_inset space ~
44852 \begin_inset CommandInset ref
44859 \begin_inset CommandInset label
44861 name "cha:Explanation-of-Equation"
44868 \begin_layout Standard
44869 We can calculate the total width of
44874 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44878 \begin_inset Formula
44880 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44886 \begin_inset Formula $W_{g\,n}$
44889 is the given width of all cells,
44895 is the \SpecialChar LaTeX
44896 -length between the cell text and the cell border (its default value
44898 \begin_inset space \thinspace{}
44908 is the thickness of the cell border line, the default is 0.4
44909 \begin_inset space \thinspace{}
44915 \begin_layout Standard
44917 \begin_inset space ~
44921 \begin_inset CommandInset ref
44923 reference "eq:Wtot_n"
44927 , the total width of a multicolumn
44928 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44932 \begin_inset Formula
44934 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44942 \begin_layout Standard
44943 By setting equation
44944 \begin_inset space ~
44948 \begin_inset CommandInset ref
44950 reference "eq:Wtot_n"
44955 \begin_inset CommandInset ref
44957 reference "eq:Wtot_mult"
44961 equal we can calculate the needed given width
44962 \begin_inset Formula $W_{g\,n}$
44969 columns are spanned, so that each column has a total width of
44970 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44974 \begin_inset Formula
44976 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44984 \begin_layout Bibliography
44985 \begin_inset CommandInset bibitem
44986 LatexCommand bibitem
44987 key "latexcompanion"
44991 Frank Mittelbach and Michel Goossens:
44993 The \SpecialChar LaTeX
44994 Companion Second Edition.
44997 Addison-Wesley, 2004
45000 \begin_layout Bibliography
45001 \begin_inset CommandInset bibitem
45002 LatexCommand bibitem
45007 Helmut Kopka and Patrick W.
45010 A Guide to \SpecialChar LaTeX
45014 Addison-Wesley, 2003
45017 \begin_layout Bibliography
45018 \begin_inset CommandInset bibitem
45019 LatexCommand bibitem
45027 : A Document Preparation System.
45030 Addison-Wesley, second edition, 1994
45033 \begin_layout Bibliography
45034 \begin_inset CommandInset bibitem
45035 LatexCommand bibitem
45040 Documentation of the \SpecialChar LaTeX
45044 \begin_inset CommandInset href
45047 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45054 \begin_inset Index idx
45057 \begin_layout Plain Layout
45059 -packages ! arydshln
45067 \begin_layout Bibliography
45068 \begin_inset CommandInset bibitem
45069 LatexCommand bibitem
45074 Documentation of the \SpecialChar LaTeX
45078 \begin_inset CommandInset href
45081 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45088 \begin_inset Index idx
45091 \begin_layout Plain Layout
45093 -packages ! booktabs
45101 \begin_layout Bibliography
45102 \begin_inset CommandInset bibitem
45103 LatexCommand bibitem
45108 Documentation of the \SpecialChar LaTeX
45112 \begin_inset CommandInset href
45115 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45122 \begin_inset Index idx
45125 \begin_layout Plain Layout
45127 -packages ! caption
45135 \begin_layout Bibliography
45136 \begin_inset CommandInset bibitem
45137 LatexCommand bibitem
45142 Documentation of the \SpecialChar LaTeX
45146 \begin_inset CommandInset href
45149 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45156 \begin_inset Index idx
45159 \begin_layout Plain Layout
45161 -packages ! diagbox
45169 \begin_layout Bibliography
45170 \begin_inset CommandInset bibitem
45171 LatexCommand bibitem
45176 Documentation of the \SpecialChar LaTeX
45180 \begin_inset CommandInset href
45183 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45190 \begin_inset Index idx
45193 \begin_layout Plain Layout
45195 -packages ! endfloat
45203 \begin_layout Bibliography
45204 \begin_inset CommandInset bibitem
45205 LatexCommand bibitem
45210 Documentation of the \SpecialChar LaTeX
45214 \begin_inset CommandInset href
45217 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45224 \begin_inset Index idx
45227 \begin_layout Plain Layout
45229 -packages ! footmisc
45237 \begin_layout Bibliography
45238 \begin_inset CommandInset bibitem
45239 LatexCommand bibitem
45244 Documentation of the \SpecialChar LaTeX
45248 \begin_inset CommandInset href
45251 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45258 \begin_inset Index idx
45261 \begin_layout Plain Layout
45263 -packages ! hyperref
45271 \begin_layout Bibliography
45272 \begin_inset CommandInset bibitem
45273 LatexCommand bibitem
45278 Documentation of the \SpecialChar LaTeX
45282 \begin_inset CommandInset href
45285 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45292 \begin_inset Index idx
45295 \begin_layout Plain Layout
45297 -packages ! hyperref
45305 \begin_layout Bibliography
45306 \begin_inset CommandInset bibitem
45307 LatexCommand bibitem
45312 Documentation of the \SpecialChar LaTeX
45316 \begin_inset CommandInset href
45319 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45326 \begin_inset Index idx
45329 \begin_layout Plain Layout
45331 -packages ! KOMA-Script
45339 \begin_layout Bibliography
45340 \begin_inset CommandInset bibitem
45341 LatexCommand bibitem
45346 Documentation of the \SpecialChar LaTeX
45350 \begin_inset CommandInset href
45353 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45360 \begin_inset CommandInset href
45363 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45368 \begin_inset Index idx
45371 \begin_layout Plain Layout
45373 -packages ! lettrine
45381 \begin_layout Bibliography
45382 \begin_inset CommandInset bibitem
45383 LatexCommand bibitem
45388 Documentation of the \SpecialChar LaTeX
45392 \begin_inset CommandInset href
45395 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45402 \begin_inset Index idx
45405 \begin_layout Plain Layout
45407 -packages ! listings
45415 \begin_layout Bibliography
45416 \begin_inset CommandInset bibitem
45417 LatexCommand bibitem
45422 Documentation of the \SpecialChar LaTeX
45426 \begin_inset CommandInset href
45429 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45436 \begin_inset Index idx
45439 \begin_layout Plain Layout
45441 -packages ! marginnote
45449 \begin_layout Bibliography
45450 \begin_inset CommandInset bibitem
45451 LatexCommand bibitem
45456 Documentation of the \SpecialChar LaTeX
45460 \begin_inset CommandInset href
45463 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45470 \begin_inset Index idx
45473 \begin_layout Plain Layout
45475 -packages ! pdfpages
45483 \begin_layout Bibliography
45484 \begin_inset CommandInset bibitem
45485 LatexCommand bibitem
45490 Documentation of the \SpecialChar LaTeX
45494 \begin_inset CommandInset href
45497 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45504 \begin_inset Index idx
45507 \begin_layout Plain Layout
45509 -packages ! prettyref
45517 \begin_layout Bibliography
45518 \begin_inset CommandInset bibitem
45519 LatexCommand bibitem
45524 Web page of the \SpecialChar LaTeX
45528 \begin_inset CommandInset href
45531 target "http://tug.org/PSTricks/"
45538 \begin_inset Index idx
45541 \begin_layout Plain Layout
45543 -packages ! PSTricks
45551 \begin_layout Bibliography
45552 \begin_inset CommandInset bibitem
45553 LatexCommand bibitem
45558 Documentation of the \SpecialChar LaTeX
45562 \begin_inset CommandInset href
45565 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45572 \begin_inset Index idx
45575 \begin_layout Plain Layout
45577 -packages ! refstyle
45585 \begin_layout Bibliography
45586 \begin_inset CommandInset bibitem
45587 LatexCommand bibitem
45592 Documentation of the \SpecialChar LaTeX
45596 \begin_inset CommandInset href
45599 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45606 \begin_inset Index idx
45609 \begin_layout Plain Layout
45611 -packages ! sidecap
45619 \begin_layout Bibliography
45620 \begin_inset CommandInset bibitem
45621 LatexCommand bibitem
45627 \begin_inset CommandInset href
45630 target "http://wiki.lyx.org/LyX/NewInLyX20"
45634 about new features in
45642 \begin_layout Standard
45643 \begin_inset CommandInset index_print
45644 LatexCommand printindex