1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \origin /systemlyxdir/doc/
8 % that links to image floats jumps
9 % to the beginning of the float and
11 \usepackage[figure]{hypcap}
13 % the pages of the TOC is numbered roman
14 % and a PDF-bookmark for the TOC is added
15 \let\myTOC\tableofcontents
16 \renewcommand\tableofcontents{%
18 \pdfbookmark[1]{\contentsname}{}
22 % provides caption formatting
23 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
25 % provides commands to set caption
26 % beside tables/images
27 \newcommand{\TabBesBeg}[1][1.0]{%
29 \let\MyEndtable\endtable
30 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
32 \newcommand{\TabBesEnd}{%
34 \let\endtable\MyEndtable}
36 \newcommand{\FigBesBeg}[1][1.0]{%
38 \let\MyEndfigure\endfigure
39 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
41 \newcommand{\FigBesEnd}{%
43 \let\endfigure\MyEndfigure}
45 % enables calculation of values,
48 % increase the bottom float placement fraction
49 \renewcommand{\bottomfraction}{0.5}
51 % avoids that floats are placed before their
52 % corresponding section starts
53 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
55 % speed up the longtable calculation
56 \setcounter{LTchunksize}{100}
58 % used for colored tables
59 \@ifundefined{textcolor}
60 {\usepackage{color}}{}
61 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
62 \definecolor{lightgrey}{gray}{0.8}
64 % check for package colortbl
65 % used for colored table cells
67 \IfFileExists{colortbl.sty}
68 {\usepackage{colortbl}
69 \setboolean{colortbl}{true}}
70 {\setboolean{colortbl}{false}}
72 % used to have extra space in table cells
73 \@ifundefined{extrarowheight}
74 {\usepackage{array}}{}
75 \setlength{\extrarowheight}{2pt}
77 % used for customized tables
80 {>{\centering\hspace{0pt}}m{#1}}
83 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
86 {>{\columncolor{#1}\hspace{0pt}}c}
88 \newcolumntype{V}{!{\vrule width 1.5pt}}
90 \newcolumntype{W}{!{\color{green}\vline}}
93 % insert additional vertical space of
94 % 1.5 mm between footnotes
96 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
98 % number algorithm floats within chapters
99 \numberwithin{algorithm}{chapter}
101 % ------------------------------------
102 % used to check for needed LaTeX packages
105 % check for package arydshln
106 % used for tables with dashed lines
107 \newboolean{arydshln}
108 \IfFileExists{arydshln.sty}
109 {\usepackage{arydshln}
110 \setboolean{arydshln}{true}}
111 {\setboolean{arydshln}{false}}
113 % check for package marginnote
114 % used for margin notes
115 \newboolean{marginnote}
116 \IfFileExists{marginnote.sty}
117 {\usepackage{marginnote}
118 \let\marginpar\marginnote
119 \setboolean{marginnote}{true}}
120 {\setboolean{marginnote}{false}}
122 % check for package sidecap
123 % used for captions on the side
125 \IfFileExists{sidecap.sty}
126 {\usepackage{sidecap}
127 \setboolean{sidecap}{true}}
128 {\setboolean{sidecap}{false}}
131 % used for surrounded fixed objects
132 \newboolean{picinpar}
133 \IfFileExists{picinpar.sty}
134 {\usepackage{picinpar}
135 \setboolean{picinpar}{true}}
136 {\setboolean{picinpar}{false}}
139 \newboolean{lettrine}
140 \IfFileExists{lettrine.sty}
141 {\usepackage{lettrine}
142 \setboolean{lettrine}{true}}
143 {\setboolean{lettrine}{false}}
147 \IfFileExists{diagbox.sty}
148 {\usepackage{diagbox}
149 \setboolean{diagbox}{true}}
150 {\setboolean{diagbox}{false}}
152 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames,table
153 \use_default_options false
158 \maintain_unincluded_children false
160 \language_package default
163 \font_roman "lmodern" "default"
164 \font_sans "lmss" "default"
165 \font_typewriter "lmtt" "default"
166 \font_math "auto" "auto"
167 \font_default_family default
168 \use_non_tex_fonts false
171 \font_sf_scale 100 100
172 \font_tt_scale 100 100
174 \default_output_format pdf2
176 \bibtex_command default
177 \index_command default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
197 \use_package amsmath 2
198 \use_package amssymb 2
199 \use_package cancel 0
201 \use_package mathdots 1
202 \use_package mathtools 0
203 \use_package mhchem 1
204 \use_package stackrel 0
205 \use_package stmaryrd 0
206 \use_package undertilde 0
208 \cite_engine_type default
212 \paperorientation portrait
216 \notefontcolor #0000ff
223 \paragraph_separation skip
225 \quotes_language english
228 \paperpagestyle default
229 \tracking_changes false
230 \output_changes false
233 \html_be_strict false
240 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
244 by the \SpecialChar LyX
249 \begin_layout Plain Layout
251 If you have comments or error corrections, please send them to the \SpecialChar LyX
254 \begin_inset CommandInset href
256 name "lyx-docs@lists.lyx.org"
257 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
268 \begin_inset Note Note
271 \begin_layout Plain Layout
278 \begin_inset Newline newline
282 \begin_inset Newline newline
290 \begin_layout Standard
291 \begin_inset CommandInset toc
292 LatexCommand tableofcontents
299 \begin_layout Standard
300 \begin_inset Note Note
303 \begin_layout Plain Layout
304 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
315 diagbox, lettrine, marginnote, picinpar
322 If they are not installed you can export the document anyway but the sections
323 where the packages are required won't appear in the output.
326 \begin_layout Plain Layout
327 The latest PDF-version of this document can be found here:
328 \begin_inset Newline newline
333 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
341 \begin_layout Chapter
343 \begin_inset Index idx
346 \begin_layout Plain Layout
353 \begin_inset Index idx
356 \begin_layout Plain Layout
361 \begin_layout Plain Layout
372 \begin_layout Plain Layout
387 \begin_layout Section
389 \begin_inset Index idx
392 \begin_layout Plain Layout
393 Figures ! Graphics Dialog
399 \begin_inset CommandInset label
401 name "sec:Graphics-Dialog"
408 \begin_layout Standard
409 To insert an image into your document, place the cursor at the text position
410 you want and click on the toolbar icon
413 arg "dialog-show-new-inset graphics"
418 Insert\SpecialChar menuseparator
422 Then a dialog will appear to choose the file to load.
423 The image will appear in the output exactly at the position where it is
427 \begin_layout Standard
428 The graphics dialog can be called at any time by clicking on an image.
429 This dialog has three tabs:
432 \begin_layout Description
437 Here you can choose an image file and adjust its appearance in the output.
438 The available units for the image size are explained in appendix
443 \begin_inset CommandInset ref
445 reference "cha:Units-available-in"
450 \begin_inset Newline newline
454 \begin_inset Index idx
457 \begin_layout Plain Layout
463 You can rotate images counter-clockwise by setting a rotation angle and
465 The image will also be rotated inside \SpecialChar LyX
467 \begin_inset Newline newline
471 \begin_inset Index idx
474 \begin_layout Plain Layout
480 Images can be scaled by using a percentage value or by setting the width
481 and height explicitly.
482 If you set only the width or only the height, the other size will be determined
484 If you set both, then the image will be transformed to the given size,
485 possibly distorting it.
486 To prevent the image from distortion, use the option
488 Maintain aspect ratio
491 The image will then be scaled so that its width and height don't exceed
492 the specified dimensions.
493 \begin_inset Newline newline
496 Images can be opened in a program of your choice by right-clicking on it
497 and choosing the entry
506 The program can be set for every image format in the file format settings
511 \begin_layout Description
516 Alternatively to the usage of scaling units it is possible to set image
517 coordinates to adjust the height and width of the image in the output.
518 The coordinates can also be calculated automatically by pressing the button
548 will only print the image region within the given coordinates.
549 Normally you don't need to worry about image coordinates and can ignore
553 \begin_layout Description
570 In this tab you can modify the appearance of the image within \SpecialChar LyX
571 and \SpecialChar LaTeX
573 can specify additional \SpecialChar LaTeX
575 \begin_inset Newline newline
586 makes the image appear in the output only as a frame with the size of the
588 \begin_inset Newline newline
599 you can define or join an image settings group.
600 \begin_inset Index idx
603 \begin_layout Plain Layout
604 Figures ! Settings grouping
609 Images within such a group share their settings, so adjusting one image
610 of the group automatically also adjusts all other images of the group in
612 So you can for example change the size for a bunch of images without the
613 need to manually change each of them.
614 Joining an existing group can also be done using the context menu of the
615 image by checking the name of the desired group.
618 \begin_layout Standard
619 \begin_inset VSpace bigskip
625 \begin_layout Standard
626 This is an example image in EPS format
630 \begin_layout Plain Layout
631 Image formats are explained in section
636 \begin_inset CommandInset ref
638 reference "sec:Image-Formats"
647 within a separate, horizontally centered paragraph:
648 \begin_inset Separator parbreak
654 \begin_layout Standard
656 \begin_inset Graphics
657 filename clipart/mobius.eps
667 \begin_layout Standard
668 This is the same image like the one above but in draft mode:
669 \begin_inset Separator parbreak
675 \begin_layout Standard
677 \begin_inset Graphics
678 filename clipart/mobius.eps
689 \begin_layout Standard
690 \begin_inset Newpage newpage
696 \begin_layout Section
698 \begin_inset CommandInset label
700 name "sec:Figure-Floats"
705 \begin_inset Index idx
708 \begin_layout Plain Layout
715 \begin_inset Index idx
718 \begin_layout Plain Layout
727 \begin_layout Standard
728 For general explanations about floats, have a look at section
733 \begin_inset CommandInset ref
735 reference "sec:FloatIntroduction"
742 \begin_layout Standard
746 arg "float-insert figure"
751 Insert\SpecialChar menuseparator
752 Float\SpecialChar menuseparator
755 inserts a float with a caption that has the label
756 \begin_inset Quotes eld
764 \begin_inset Quotes erd
767 (# is the actual number).
768 You can insert the image above the caption, like in Figure
773 \begin_inset CommandInset ref
775 reference "fig:kill-plat"
779 or below the caption, like in Figure
784 \begin_inset CommandInset ref
786 reference "fig:escher"
791 More about caption placement is described in section
796 \begin_inset CommandInset ref
798 reference "sec:Caption-Placement"
805 \begin_layout Standard
806 \begin_inset Float figure
811 \begin_layout Plain Layout
813 \begin_inset Graphics
814 filename clipart/platypus.eps
824 \begin_layout Plain Layout
825 \begin_inset Caption Standard
827 \begin_layout Plain Layout
828 \begin_inset CommandInset label
834 A severely distorted platypus in a float.
847 \begin_layout Standard
848 \begin_inset Float figure
853 \begin_layout Plain Layout
854 \begin_inset Caption Standard
856 \begin_layout Plain Layout
857 \begin_inset CommandInset label
872 \begin_layout Plain Layout
874 \begin_inset Graphics
875 filename clipart/escher-lsd.eps
890 \begin_layout Standard
891 \begin_inset Index idx
894 \begin_layout Plain Layout
895 References ! to Figures
905 \begin_inset CommandInset ref
907 reference "fig:kill-plat"
912 \begin_inset CommandInset ref
914 reference "fig:escher"
918 are examples of referenced figures.
919 Figures can be referenced in the text by referencing their label.
920 To do this insert a label in the caption using the menu
922 Insert\SpecialChar menuseparator
925 or the toolbar button
932 You can now refer to the label using the menu
934 Insert\SpecialChar menuseparator
941 or the toolbar button
944 arg "dialog-show-new-inset ref"
948 It is important to use references to floats, rather than using vague references
950 \begin_inset Quotes eld
954 \begin_inset Quotes erd
957 , because \SpecialChar LaTeX
958 will reposition the floats in the final document and it might
960 \begin_inset Quotes eld
964 \begin_inset Quotes erd
968 \begin_inset Newline newline
971 Referencing is explained in detail in section
976 \begin_inset CommandInset ref
978 reference "sec:Referencing-Floats"
985 \begin_layout Standard
986 Normally only one image is inserted to a figure float, but sometimes you
987 might want to use two images with separate subcaptions.
988 This can be done by inserting image floats into existing image floats.
989 Note that only the main caption of the float is added to the List of Figures.
995 \begin_inset CommandInset ref
997 reference "fig:Two-distorted-images"
1001 is an example of a figure float with two images set side by side.
1002 You can also set the images one below the other.
1004 \begin_inset space ~
1008 \begin_inset CommandInset ref
1010 reference "fig:Undefinable-structure"
1015 \begin_inset CommandInset ref
1017 reference "fig:A-Platypus"
1024 \begin_layout Standard
1025 \begin_inset Float figure
1030 \begin_layout Plain Layout
1031 \begin_inset space \hfill{}
1035 \begin_inset Float figure
1040 \begin_layout Plain Layout
1041 \begin_inset Caption Standard
1043 \begin_layout Plain Layout
1044 \begin_inset CommandInset label
1046 name "fig:Undefinable-structure"
1050 Undefinable structure.
1058 \begin_layout Plain Layout
1059 \begin_inset Graphics
1060 filename clipart/escher-lsd.eps
1073 \begin_inset space \hfill{}
1077 \begin_inset Float figure
1082 \begin_layout Plain Layout
1083 \begin_inset Caption Standard
1085 \begin_layout Plain Layout
1086 \begin_inset CommandInset label
1088 name "fig:A-Platypus"
1100 \begin_layout Plain Layout
1101 \begin_inset Graphics
1102 filename clipart/platypus.eps
1115 \begin_inset space \hfill{}
1121 \begin_layout Plain Layout
1122 \begin_inset Caption Standard
1124 \begin_layout Plain Layout
1125 \begin_inset CommandInset label
1127 name "fig:Two-distorted-images"
1131 Two distorted images.
1132 Both images are in the image settings group named
1133 \begin_inset Quotes eld
1137 \begin_inset Quotes erd
1153 \begin_layout Standard
1154 \begin_inset Newpage newpage
1160 \begin_layout Section
1162 \begin_inset CommandInset label
1164 name "sec:Image-Formats"
1169 \begin_inset Index idx
1172 \begin_layout Plain Layout
1179 \begin_inset Index idx
1182 \begin_layout Plain Layout
1183 Figures ! Image Formats
1191 \begin_layout Standard
1192 You can insert images in any known file format.
1193 But as explained in appendix
1194 \begin_inset space ~
1198 \begin_inset CommandInset ref
1200 reference "cha:Output-File-Formats"
1204 , each output document format allows only a few image formats.
1206 uses therefore the program
1210 in the background to convert the images to the right format.
1211 To increase your work flow by avoiding these conversions in the background,
1212 you could choose to use only the image formats that can directly be embedded
1213 in the output file format.
1214 The output file formats are explained in appendix
1215 \begin_inset space ~
1219 \begin_inset CommandInset ref
1221 reference "cha:Output-File-Formats"
1228 \begin_layout Standard
1229 Similar to fonts there are two types of image formats:
1232 \begin_layout Description
1234 \begin_inset space ~
1237 images consist of pixel values, often in a compressed form.
1238 They are therefore not fully scalable and look pixelated in large zooms.
1239 Well-known bitmap image formats are
1240 \begin_inset Quotes eld
1243 Graphics Interchange Format
1244 \begin_inset Quotes erd
1247 (GIF, file extension
1248 \begin_inset Quotes eld
1256 \begin_inset Quotes erd
1260 \begin_inset Index idx
1263 \begin_layout Plain Layout
1268 \begin_layout Plain Layout
1279 \begin_layout Plain Layout
1292 \begin_inset Quotes eld
1295 Portable Network Graphics
1296 \begin_inset Quotes erd
1299 (PNG, file extension
1300 \begin_inset Quotes eld
1308 \begin_inset Quotes erd
1312 \begin_inset Index idx
1315 \begin_layout Plain Layout
1320 \begin_layout Plain Layout
1331 \begin_layout Plain Layout
1344 \begin_inset Quotes eld
1347 Joint Photographic Experts Group
1348 \begin_inset Quotes erd
1351 (JPG, file extension
1352 \begin_inset Quotes eld
1360 \begin_inset Quotes erd
1364 \begin_inset Quotes eld
1372 \begin_inset Quotes erd
1376 \begin_inset Index idx
1379 \begin_layout Plain Layout
1384 \begin_layout Plain Layout
1395 \begin_layout Plain Layout
1410 \begin_layout Description
1412 \begin_inset space ~
1415 images consist of vectors and can therefore be scaled to any size without
1417 The scaling ability is necessary if you want to create presentations, because
1418 presentations are always scaled by the video projector.
1419 Scaling is also useful for online documents to let the user zoom into diagrams.
1420 \begin_inset Newline newline
1423 Well-known scalable image formats are
1424 \begin_inset Quotes eld
1427 Scalable Vector Graphics
1428 \begin_inset Quotes erd
1431 (SVG, file extension
1432 \begin_inset Quotes eld
1440 \begin_inset Quotes erd
1444 \begin_inset Index idx
1447 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1463 \begin_layout Plain Layout
1476 \begin_inset Quotes eld
1479 Encapsulated PostScript
1480 \begin_inset Quotes erd
1483 (EPS, file extension
1484 \begin_inset Quotes eld
1492 \begin_inset Quotes erd
1496 \begin_inset Index idx
1499 \begin_layout Plain Layout
1504 \begin_layout Plain Layout
1515 \begin_layout Plain Layout
1528 \begin_inset Quotes eld
1531 Portable Document Format
1532 \begin_inset Quotes erd
1535 (PDF, file extension
1536 \begin_inset Quotes eld
1544 \begin_inset Quotes erd
1548 \begin_inset Index idx
1551 \begin_layout Plain Layout
1558 \begin_inset Quotes eld
1562 \begin_inset Quotes erd
1565 (WMF, file extension
1566 \begin_inset Quotes eld
1574 \begin_inset Quotes erd
1578 \begin_inset Index idx
1581 \begin_layout Plain Layout
1586 \begin_layout Plain Layout
1597 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1618 , because you can convert any bitmap image to a PDF or EPS-image and the
1619 result will still be a bitmap image.
1620 In such cases only a header with the image properties is added to the original
1625 \begin_layout Plain Layout
1626 In the case of PDF, the original image is additionally compressed.
1632 The PDF-files generated by
1636 are for example bitmap images.
1639 \begin_layout Standard
1640 Normally it is not possible to convert a bitmap image into a scalable one,
1642 Only the image formats PDF and EPS can directly be embedded to PDF and
1643 PostScript output files, respectively.
1644 SVG and WMF-images are recalculated to bitmaps when the output file is
1645 generated because there is currently no adequate WMF/SVG
1646 \begin_inset Formula $\to$
1649 PDF/EPS converter available.
1652 \begin_layout Chapter
1654 \begin_inset Index idx
1657 \begin_layout Plain Layout
1666 \begin_layout Section
1668 \begin_inset Index idx
1671 \begin_layout Plain Layout
1672 Table ! Introduction
1680 \begin_layout Standard
1681 You can insert a table using either the toolbar button
1684 arg "tabular-insert"
1689 Insert\SpecialChar menuseparator
1693 The toolbar button offers you a graphical selection: move the mouse to
1694 set the column/row number of the table that should be created and then
1695 press a mouse button.
1696 When you use the menu to create a table, a dialog will appear, asking you
1697 for the number of rows and columns.
1698 \begin_inset Newline newline
1701 The default table has lines around any cell and the first row appears separated
1702 from the rest of the table.
1703 This separation occurs due to a double line: The cells of the first row
1704 have a line below them and the cells of the second row have a line above
1706 Here is an example table:
1707 \begin_inset Separator parbreak
1713 \begin_layout Standard
1715 \begin_inset Tabular
1716 <lyxtabular version="3" rows="4" columns="4">
1717 <features tabularvalignment="middle">
1718 <column alignment="center" valignment="top">
1719 <column alignment="center" valignment="top">
1720 <column alignment="center" valignment="top">
1721 <column alignment="center" valignment="top">
1723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1726 \begin_layout Plain Layout
1732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1735 \begin_layout Plain Layout
1750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1753 \begin_layout Plain Layout
1759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1762 \begin_layout Plain Layout
1770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1773 \begin_layout Plain Layout
1788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1791 \begin_layout Plain Layout
1797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1800 \begin_layout Plain Layout
1806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1809 \begin_layout Plain Layout
1817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1820 \begin_layout Plain Layout
1835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1838 \begin_layout Plain Layout
1844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1847 \begin_layout Plain Layout
1853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1856 \begin_layout Plain Layout
1864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1867 \begin_layout Plain Layout
1882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1885 \begin_layout Plain Layout
1891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1894 \begin_layout Plain Layout
1900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1903 \begin_layout Plain Layout
1917 \begin_layout Section
1919 \begin_inset Index idx
1922 \begin_layout Plain Layout
1931 \begin_layout Standard
1932 You can alter a table by clicking on it with the right mouse button, which
1933 brings up the context menu.
1934 Under the menu entry
1938 you can adjust the settings of that cell and row/column respectively where
1939 the cursor is currently placed.
1942 More\SpecialChar menuseparator
1945 opens the table dialog where you can adjust more things.
1946 Most of the dialog options also work on selections.
1947 This means if you select more cells, columns or rows, the action is done
1948 for the whole selection.
1949 Note that there is a difference between selecting the
1953 of the cell, and the cell itself.
1954 \begin_inset Newline newline
1957 With the dialog option
1960 \begin_inset space ~
1965 every change you make in the dialog is directly applied.
1966 If you move the cursor to another table cell the dialog will then also
1967 be updated with the parameters of the new cell.
1968 If you change length values in the dialog you must press
1972 to get the change applied.
1973 \begin_inset Newline newline
1976 You can alter tables with the following tabs of the table dialog:
1979 \begin_layout Description
1983 \begin_inset space ~
1988 Here you can set the table width
1989 \begin_inset Index idx
1992 \begin_layout Plain Layout
1998 , and the horizontal alignment and the width of the current column.
2002 \begin_inset space ~
2006 \begin_inset space ~
2011 is described in section
2012 \begin_inset space ~
2016 \begin_inset CommandInset ref
2018 reference "subsec:Special-Cell-Alignment"
2023 When you have set a width you can also adjust the vertical alignment of
2025 A given width will allow the cell to have line breaks and multiple paragraphs
2027 \begin_inset space \thinspace{}
2031 \begin_inset CommandInset ref
2033 reference "subsec:Multiple-Lines-in"
2038 If you set no width, the column is as wide as the content of its widest
2040 \begin_inset Newline newline
2043 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2045 \begin_inset space \thinspace{}
2049 \begin_inset CommandInset ref
2051 reference "subsec:Multicolumns"
2055 or the cells of one column as multirow cell, see sec.
2056 \begin_inset space \thinspace{}
2060 \begin_inset CommandInset ref
2062 reference "subsec:Multirows"
2067 \begin_inset Newline newline
2070 The rotate check boxes rotate the current cell, a selection, or the whole
2071 table counter-clockwise by 90
2072 \begin_inset space \thinspace{}
2076 The rotation is not shown within \SpecialChar LyX
2077 , only in the output.
2078 For more information see sec.
2079 \begin_inset space \thinspace{}
2083 \begin_inset CommandInset ref
2085 reference "sec:Rotated-Table-Cells"
2090 \begin_inset Newline newline
2094 \begin_inset Note Greyedout
2097 \begin_layout Plain Layout
2102 Not all DVI-viewers are able to display rotations.
2108 \begin_inset Newline newline
2111 The table-wide vertical alignment is used for tables within text lines:
2112 \begin_inset Newline newline
2115 A line with tables with different alignments:
2116 \begin_inset Tabular
2117 <lyxtabular version="3" rows="2" columns="2">
2118 <features tabularvalignment="top">
2119 <column alignment="center" valignment="top" width="0pt">
2120 <column alignment="center" valignment="top">
2122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2125 \begin_layout Plain Layout
2131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2134 \begin_layout Plain Layout
2151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2154 \begin_layout Plain Layout
2169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2172 \begin_layout Plain Layout
2184 \begin_inset Tabular
2185 <lyxtabular version="3" rows="2" columns="2">
2186 <features tabularvalignment="middle">
2187 <column alignment="center" valignment="top">
2188 <column alignment="center" valignment="top">
2190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2193 \begin_layout Plain Layout
2199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2202 \begin_layout Plain Layout
2219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2222 \begin_layout Plain Layout
2237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2240 \begin_layout Plain Layout
2252 \begin_inset Tabular
2253 <lyxtabular version="3" rows="2" columns="2">
2254 <features tabularvalignment="bottom">
2255 <column alignment="center" valignment="top" width="0pt">
2256 <column alignment="center" valignment="top">
2258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2261 \begin_layout Plain Layout
2267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2270 \begin_layout Plain Layout
2287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2290 \begin_layout Plain Layout
2305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2308 \begin_layout Plain Layout
2320 \begin_inset Newline newline
2323 It is also possible to enter a \SpecialChar LaTeX
2324 -argument which is needed for special table
2325 formattings, see sec.
2326 \begin_inset space \thinspace{}
2330 \begin_inset CommandInset ref
2332 reference "subsec:Multicolumn-Calculations"
2337 \begin_inset CommandInset ref
2339 reference "sec:Colored-Tables"
2346 \begin_layout Description
2351 In this tab you can add and delete border lines for the current row/column.
2352 \begin_inset Newline newline
2355 Using the style option
2359 will convert the table to a formal table as described in sec.
2360 \begin_inset space \thinspace{}
2364 \begin_inset CommandInset ref
2366 reference "sec:Formal-Tables"
2371 \begin_inset Newline newline
2374 You can also add space here to table rows as described in sec.
2375 \begin_inset space \thinspace{}
2379 \begin_inset CommandInset ref
2381 reference "subsec:Row-Spacing"
2388 \begin_layout Description
2393 This tab is to make a table a so called
2394 \begin_inset Quotes eld
2402 \begin_inset Quotes erd
2405 that can run over several pages.
2407 \begin_inset space ~
2411 \begin_inset CommandInset ref
2413 reference "sec:Longtables"
2418 \begin_inset CommandInset ref
2420 reference "sec:Special-Longtable-Issues"
2424 describe the longtable features in detail.
2427 \begin_layout Section
2429 \begin_inset Index idx
2432 \begin_layout Plain Layout
2441 \begin_layout Standard
2442 The table toolbar is an alternative to the table dialog to be able to alter
2444 It should normally appear at the bottom of \SpecialChar LyX
2445 's main window when the cursor
2447 You can alternatively switch it on to appear always, by right-clicking
2452 \begin_layout Standard
2453 The toolbar has the following icons:
2456 \begin_layout Labeling
2457 \labelwidthstring 00.00.0000
2460 arg "inset-modify tabular append-row"
2463 adds a row below the current cell or selection
2466 \begin_layout Labeling
2467 \labelwidthstring 00.00.0000
2470 arg "inset-modify tabular append-column"
2473 adds a column right beside the current cell or selection
2476 \begin_layout Labeling
2477 \labelwidthstring 00.00.0000
2480 arg "inset-modify tabular delete-row"
2483 deletes the current row or selection
2486 \begin_layout Labeling
2487 \labelwidthstring 00.00.0000
2490 arg "inset-modify tabular delete-column"
2493 deletes the current column or selection
2496 \begin_layout Labeling
2497 \labelwidthstring 00.00.0000
2500 arg "inset-modify tabular move-row-up"
2506 \begin_layout Labeling
2507 \labelwidthstring 00.00.0000
2510 arg "inset-modify tabular move-column-left"
2513 moves the column to the left
2516 \begin_layout Labeling
2517 \labelwidthstring 00.00.0000
2520 arg "inset-modify tabular move-row-down"
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2530 arg "inset-modify tabular move-column-right"
2533 moves the column to the right
2536 \begin_layout Labeling
2537 \labelwidthstring 00.00.0000
2540 arg "inset-modify tabular toggle-line-top"
2543 adds a line at the top of the current cell / row or of a selection
2546 \begin_layout Labeling
2547 \labelwidthstring 00.00.0000
2550 arg "inset-modify tabular toggle-line-bottom"
2553 adds a line at the bottom of the current cell / row or of a selection
2556 \begin_layout Labeling
2557 \labelwidthstring 00.00.0000
2560 arg "inset-modify tabular toggle-line-left"
2563 adds a line at the left side of the current cell / row or of a selection
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2570 arg "inset-modify tabular toggle-line-right"
2573 adds a line at the right side of the current cell / row or of a selection
2576 \begin_layout Labeling
2577 \labelwidthstring 00.00.0000
2580 arg "inset-modify tabular set-all-lines"
2583 adds lines around the current or selected cells - if the current cell no
2584 multicolumn cell this also affects the current row and column
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2591 arg "inset-modify tabular unset-all-lines"
2594 deletes all lines of the current or selected cells - if the current cell
2595 no multicolumn cell this also affects the current row and column
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2602 arg "inset-modify tabular m-align-left"
2605 left-aligns the content of the current cell / column
2608 \begin_layout Labeling
2609 \labelwidthstring 00.00.0000
2612 arg "inset-modify tabular m-align-center"
2615 centers the content of the current cell / column horizontally
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2622 arg "inset-modify tabular m-align-right"
2625 right-aligns the content of the current cell / column
2628 \begin_layout Labeling
2629 \labelwidthstring 00.00.0000
2632 arg "inset-modify tabular align-decimal"
2635 aligns the content of the current column at a character
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2642 arg "inset-modify tabular m-valign-top"
2645 aligns the content of the current cell vertically to the top
2648 \begin_layout Labeling
2649 \labelwidthstring 00.00.0000
2652 arg "inset-modify tabular m-valign-middle"
2655 centers the content of the current cell vertically
2658 \begin_layout Labeling
2659 \labelwidthstring 00.00.0000
2662 arg "inset-modify tabular m-valign-bottom"
2665 aligns the content of the current cell vertically to the bottom
2668 \begin_layout Labeling
2669 \labelwidthstring 00.00.0000
2672 arg "inset-modify tabular set-rotate-cell"
2675 rotates the current cell or selection counter-clockwise by 90°
2678 \begin_layout Labeling
2679 \labelwidthstring 00.00.0000
2682 arg "inset-modify tabular set-rotate-tabular"
2685 rotates the whole table counter-clockwise by 90°
2688 \begin_layout Labeling
2689 \labelwidthstring 00.00.0000
2692 arg "inset-modify tabular multicolumn"
2695 sets the current cell or selection as a multicolumn
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2702 arg "inset-modify tabular multirow"
2705 sets the current cell or selection as a multirow
2708 \begin_layout Standard
2709 \begin_inset Note Greyedout
2712 \begin_layout Plain Layout
2717 For the output the vertical alignment of the first cell in a row is used
2718 for all following cells in the row.
2726 \begin_layout Section
2728 \begin_inset Index idx
2731 \begin_layout Plain Layout
2740 \begin_layout Standard
2741 In addition to the table dialog and toolbar, the menu
2743 Edit\SpecialChar menuseparator
2746 allows you to add and delete border lines for the current row/column and
2747 to set the current selection as multicolumn.
2748 The menu is only available when the cursor is inside a table.
2751 \begin_layout Section
2753 \begin_inset CommandInset label
2755 name "sec:Table-Floats"
2760 \begin_inset Index idx
2763 \begin_layout Plain Layout
2770 \begin_inset Index idx
2773 \begin_layout Plain Layout
2782 \begin_layout Standard
2783 For general explanations about floats, have a look at section
2784 \begin_inset space ~
2788 \begin_inset CommandInset ref
2790 reference "sec:FloatIntroduction"
2797 \begin_layout Standard
2798 \begin_inset Float table
2804 \begin_layout Plain Layout
2805 \begin_inset Caption Standard
2807 \begin_layout Plain Layout
2808 \begin_inset CommandInset label
2810 name "tab:a table float"
2822 \begin_layout Plain Layout
2824 \begin_inset Tabular
2825 <lyxtabular version="3" rows="3" columns="3">
2826 <features tabularvalignment="middle">
2827 <column alignment="center" valignment="top" width="0pt">
2828 <column alignment="center" valignment="top" width="0pt">
2829 <column alignment="center" valignment="top" width="0pt">
2831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2834 \begin_layout Plain Layout
2849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2852 \begin_layout Plain Layout
2867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2870 \begin_layout Plain Layout
2887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2890 \begin_layout Plain Layout
2905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2908 \begin_layout Plain Layout
2923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2926 \begin_layout Plain Layout
2943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2946 \begin_layout Plain Layout
2956 \begin_inset Formula $\int x^{2}dx$
2964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2967 \begin_layout Plain Layout
2977 \begin_inset Formula $\left[\begin{array}{cc}
2988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2991 \begin_layout Plain Layout
3001 \begin_inset Formula $1+1=2$
3022 \begin_layout Standard
3023 Table floats can be inserted using the menu
3025 Insert\SpecialChar menuseparator
3026 Float\SpecialChar menuseparator
3029 or the toolbar button
3032 arg "float-insert table"
3038 \begin_layout Standard
3039 The float appears as a collapsible box with a caption that has the label
3041 \begin_inset Quotes eld
3045 \begin_inset space ~
3049 \begin_inset Quotes erd
3052 (# is the actual table number).
3053 You can insert tables in the float above or below the caption.
3056 \begin_layout Standard
3058 \begin_inset space ~
3062 \begin_inset CommandInset ref
3064 reference "tab:a table float"
3068 is an example table within a table float.
3071 \begin_layout Standard
3072 Having the caption above the table is the common rule that is unfortunately
3073 not supported in \SpecialChar LaTeX
3074 's standard classes.
3075 This means that, if you are using the document classes
3091 , there will be no space between the caption and the table.
3092 To insert the needed space, add the following option to the load command
3093 of the \SpecialChar LaTeX
3099 \begin_inset Index idx
3102 \begin_layout Plain Layout
3109 in your document preamble
3113 \begin_layout Plain Layout
3114 For more information have a look at section
3115 \begin_inset space ~
3119 \begin_inset CommandInset ref
3121 reference "sec:Caption-Placement"
3133 \begin_layout Standard
3139 \begin_layout Standard
3144 , which is described in section
3145 \begin_inset space ~
3149 \begin_inset CommandInset ref
3151 reference "sec:Caption-Formatting"
3155 , is used to adjust the caption format.
3158 \begin_layout Standard
3159 \begin_inset Index idx
3162 \begin_layout Plain Layout
3163 References ! to Tables
3168 Tables can be cross-referenced in the text by referencing their label.
3169 To do this insert a label in the caption using the menu
3171 Insert\SpecialChar menuseparator
3174 or the toolbar button
3181 You can now refer to the label using the menu
3183 Insert\SpecialChar menuseparator
3185 \begin_inset space ~
3190 or the toolbar button
3193 arg "dialog-show-new-inset ref"
3197 \begin_inset Newline newline
3200 Referencing is explained in detail in section
3201 \begin_inset space ~
3205 \begin_inset CommandInset ref
3207 reference "sec:Referencing-Floats"
3214 \begin_layout Section
3216 \begin_inset CommandInset label
3218 name "sec:Longtables"
3223 \begin_inset Index idx
3226 \begin_layout Plain Layout
3233 \begin_inset Index idx
3236 \begin_layout Plain Layout
3245 \begin_layout Standard
3246 If the table is too long to fit on one page, you can use the option
3249 \begin_inset space ~
3253 \begin_inset space ~
3262 of the table dialog to split the table automatically over more pages.
3263 Doing this enables the following options:
3266 \begin_layout Description
3267 Header: The current row is defined to be a header row that appears on all
3268 pages of the longtable; except for the first page, if
3271 \begin_inset space ~
3277 This is therefore called the main header.
3280 \begin_layout Description
3282 \begin_inset space ~
3285 header: The current row is defined to be a header row that appears on the
3286 first page of the longtable.
3289 \begin_layout Description
3290 Footer: The current row is defined to be a footer row that appears on all
3291 pages of the longtable; except for the last page, if
3294 \begin_inset space ~
3302 \begin_layout Description
3304 \begin_inset space ~
3307 footer: The current row is defined to be a footer row that appears on the
3308 last page of the longtable.
3311 \begin_layout Description
3312 Caption: The current row contains the table caption.
3313 The row is reset as single column and a caption is inserted.
3314 More about longtable captions is explained in sec.
3315 \begin_inset space \thinspace{}
3319 \begin_inset CommandInset ref
3321 reference "subsec:Longtable-Captions"
3328 \begin_layout Standard
3329 You can also specify a row where the table is split.
3330 See the following longtable to see how it works:
3331 \begin_inset Separator parbreak
3337 \begin_layout Standard
3339 \begin_inset Tabular
3340 <lyxtabular version="3" rows="69" columns="3">
3341 <features islongtable="true" longtabularalignment="center">
3342 <column alignment="left" valignment="top" width="0cm">
3343 <column alignment="left" valignment="top" width="0pt">
3344 <column alignment="center" valignment="top" width="0pt">
3345 <row endfirsthead="true">
3346 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3349 \begin_layout Plain Layout
3352 Example Phone List (ignore the names)
3357 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3360 \begin_layout Plain Layout
3366 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3369 \begin_layout Plain Layout
3376 <row endfirsthead="true">
3377 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3380 \begin_layout Plain Layout
3388 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3391 \begin_layout Plain Layout
3397 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3400 \begin_layout Plain Layout
3409 <row endhead="true">
3410 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3413 \begin_layout Plain Layout
3421 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3424 \begin_layout Plain Layout
3430 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3433 \begin_layout Plain Layout
3440 <row endhead="true">
3441 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3444 \begin_layout Plain Layout
3452 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3455 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3464 \begin_layout Plain Layout
3473 <row endfoot="true">
3474 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3477 \begin_layout Plain Layout
3478 continued on next page
3483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3486 \begin_layout Plain Layout
3492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3506 \begin_layout Plain Layout
3514 <cell alignment="center" valignment="top" usebox="none">
3517 \begin_layout Plain Layout
3523 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3537 \begin_layout Plain Layout
3545 <cell alignment="center" valignment="top" usebox="none">
3548 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3568 \begin_layout Plain Layout
3576 <cell alignment="center" valignment="top" usebox="none">
3579 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3599 \begin_layout Plain Layout
3607 <cell alignment="center" valignment="top" usebox="none">
3610 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3630 \begin_layout Plain Layout
3638 <cell alignment="center" valignment="top" usebox="none">
3641 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3661 \begin_layout Plain Layout
3669 <cell alignment="center" valignment="top" usebox="none">
3672 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3692 \begin_layout Plain Layout
3700 <cell alignment="center" valignment="top" usebox="none">
3703 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3723 \begin_layout Plain Layout
3731 <cell alignment="center" valignment="top" usebox="none">
3734 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3754 \begin_layout Plain Layout
3762 <cell alignment="center" valignment="top" usebox="none">
3765 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3785 \begin_layout Plain Layout
3793 <cell alignment="center" valignment="top" usebox="none">
3796 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3816 \begin_layout Plain Layout
3824 <cell alignment="center" valignment="top" usebox="none">
3827 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3847 \begin_layout Plain Layout
3855 <cell alignment="center" valignment="top" usebox="none">
3858 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3878 \begin_layout Plain Layout
3886 <cell alignment="center" valignment="top" usebox="none">
3889 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3909 \begin_layout Plain Layout
3917 <cell alignment="center" valignment="top" usebox="none">
3920 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3940 \begin_layout Plain Layout
3948 <cell alignment="center" valignment="top" usebox="none">
3951 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3971 \begin_layout Plain Layout
3979 <cell alignment="center" valignment="top" usebox="none">
3982 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4002 \begin_layout Plain Layout
4010 <cell alignment="center" valignment="top" usebox="none">
4013 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4033 \begin_layout Plain Layout
4041 <cell alignment="center" valignment="top" usebox="none">
4044 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4064 \begin_layout Plain Layout
4072 <cell alignment="center" valignment="top" usebox="none">
4075 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4095 \begin_layout Plain Layout
4103 <cell alignment="center" valignment="top" usebox="none">
4106 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4126 \begin_layout Plain Layout
4134 <cell alignment="center" valignment="top" usebox="none">
4137 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4157 \begin_layout Plain Layout
4165 <cell alignment="center" valignment="top" usebox="none">
4168 \begin_layout Plain Layout
4174 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4185 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4188 \begin_layout Plain Layout
4196 <cell alignment="center" valignment="top" usebox="none">
4199 \begin_layout Plain Layout
4205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4208 \begin_layout Plain Layout
4216 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4219 \begin_layout Plain Layout
4227 <cell alignment="center" valignment="top" usebox="none">
4230 \begin_layout Plain Layout
4236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4239 \begin_layout Plain Layout
4247 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4250 \begin_layout Plain Layout
4258 <cell alignment="center" valignment="top" usebox="none">
4261 \begin_layout Plain Layout
4267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4270 \begin_layout Plain Layout
4278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4281 \begin_layout Plain Layout
4289 <cell alignment="center" valignment="top" usebox="none">
4292 \begin_layout Plain Layout
4298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4301 \begin_layout Plain Layout
4309 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4312 \begin_layout Plain Layout
4320 <cell alignment="center" valignment="top" usebox="none">
4323 \begin_layout Plain Layout
4329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4332 \begin_layout Plain Layout
4340 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4343 \begin_layout Plain Layout
4351 <cell alignment="center" valignment="top" usebox="none">
4354 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4363 \begin_layout Plain Layout
4371 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4374 \begin_layout Plain Layout
4382 <cell alignment="center" valignment="top" usebox="none">
4385 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4394 \begin_layout Plain Layout
4402 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4405 \begin_layout Plain Layout
4413 <cell alignment="center" valignment="top" usebox="none">
4416 \begin_layout Plain Layout
4422 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4425 \begin_layout Plain Layout
4433 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4436 \begin_layout Plain Layout
4444 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4447 \begin_layout Plain Layout
4453 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Plain Layout
4464 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4467 \begin_layout Plain Layout
4473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4476 \begin_layout Plain Layout
4482 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4496 \begin_layout Plain Layout
4504 <cell alignment="center" valignment="top" usebox="none">
4507 \begin_layout Plain Layout
4513 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4527 \begin_layout Plain Layout
4535 <cell alignment="center" valignment="top" usebox="none">
4538 \begin_layout Plain Layout
4544 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4558 \begin_layout Plain Layout
4566 <cell alignment="center" valignment="top" usebox="none">
4569 \begin_layout Plain Layout
4575 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4589 \begin_layout Plain Layout
4597 <cell alignment="center" valignment="top" usebox="none">
4600 \begin_layout Plain Layout
4606 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4620 \begin_layout Plain Layout
4628 <cell alignment="center" valignment="top" usebox="none">
4631 \begin_layout Plain Layout
4637 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4651 \begin_layout Plain Layout
4659 <cell alignment="center" valignment="top" usebox="none">
4662 \begin_layout Plain Layout
4668 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4682 \begin_layout Plain Layout
4690 <cell alignment="center" valignment="top" usebox="none">
4693 \begin_layout Plain Layout
4699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4713 \begin_layout Plain Layout
4721 <cell alignment="center" valignment="top" usebox="none">
4724 \begin_layout Plain Layout
4730 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4744 \begin_layout Plain Layout
4752 <cell alignment="center" valignment="top" usebox="none">
4755 \begin_layout Plain Layout
4761 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4775 \begin_layout Plain Layout
4783 <cell alignment="center" valignment="top" usebox="none">
4786 \begin_layout Plain Layout
4792 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4806 \begin_layout Plain Layout
4814 <cell alignment="center" valignment="top" usebox="none">
4817 \begin_layout Plain Layout
4823 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4837 \begin_layout Plain Layout
4845 <cell alignment="center" valignment="top" usebox="none">
4848 \begin_layout Plain Layout
4854 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4868 \begin_layout Plain Layout
4876 <cell alignment="center" valignment="top" usebox="none">
4879 \begin_layout Plain Layout
4885 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4899 \begin_layout Plain Layout
4907 <cell alignment="center" valignment="top" usebox="none">
4910 \begin_layout Plain Layout
4916 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4930 \begin_layout Plain Layout
4938 <cell alignment="center" valignment="top" usebox="none">
4941 \begin_layout Plain Layout
4947 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4961 \begin_layout Plain Layout
4969 <cell alignment="center" valignment="top" usebox="none">
4972 \begin_layout Plain Layout
4978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4992 \begin_layout Plain Layout
5000 <cell alignment="center" valignment="top" usebox="none">
5003 \begin_layout Plain Layout
5009 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5023 \begin_layout Plain Layout
5031 <cell alignment="center" valignment="top" usebox="none">
5034 \begin_layout Plain Layout
5040 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5054 \begin_layout Plain Layout
5062 <cell alignment="center" valignment="top" usebox="none">
5065 \begin_layout Plain Layout
5071 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5085 \begin_layout Plain Layout
5093 <cell alignment="center" valignment="top" usebox="none">
5096 \begin_layout Plain Layout
5102 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5116 \begin_layout Plain Layout
5124 <cell alignment="center" valignment="top" usebox="none">
5127 \begin_layout Plain Layout
5133 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5147 \begin_layout Plain Layout
5155 <cell alignment="center" valignment="top" usebox="none">
5158 \begin_layout Plain Layout
5164 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5167 \begin_layout Plain Layout
5175 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5178 \begin_layout Plain Layout
5186 <cell alignment="center" valignment="top" usebox="none">
5189 \begin_layout Plain Layout
5195 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5198 \begin_layout Plain Layout
5206 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5209 \begin_layout Plain Layout
5217 <cell alignment="center" valignment="top" usebox="none">
5220 \begin_layout Plain Layout
5226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5229 \begin_layout Plain Layout
5237 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5240 \begin_layout Plain Layout
5248 <cell alignment="center" valignment="top" usebox="none">
5251 \begin_layout Plain Layout
5257 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5260 \begin_layout Plain Layout
5268 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5271 \begin_layout Plain Layout
5279 <cell alignment="center" valignment="top" usebox="none">
5282 \begin_layout Plain Layout
5288 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5291 \begin_layout Plain Layout
5299 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5302 \begin_layout Plain Layout
5310 <cell alignment="center" valignment="top" usebox="none">
5313 \begin_layout Plain Layout
5319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5322 \begin_layout Plain Layout
5330 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5333 \begin_layout Plain Layout
5341 <cell alignment="center" valignment="top" usebox="none">
5344 \begin_layout Plain Layout
5350 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5353 \begin_layout Plain Layout
5361 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5364 \begin_layout Plain Layout
5372 <cell alignment="center" valignment="top" usebox="none">
5375 \begin_layout Plain Layout
5381 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5384 \begin_layout Plain Layout
5392 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5395 \begin_layout Plain Layout
5403 <cell alignment="center" valignment="top" usebox="none">
5406 \begin_layout Plain Layout
5412 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5415 \begin_layout Plain Layout
5423 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5426 \begin_layout Plain Layout
5434 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5446 \begin_layout Plain Layout
5453 <row endlastfoot="true">
5454 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5457 \begin_layout Plain Layout
5463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5466 \begin_layout Plain Layout
5472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5475 \begin_layout Plain Layout
5490 \begin_layout Plain Layout
5494 addtocounter{table}{-1}
5500 \begin_inset Note Note
5503 \begin_layout Plain Layout
5504 See the first greyed-out note in section
5505 \begin_inset space ~
5509 \begin_inset CommandInset ref
5511 reference "subsec:Longtable-Captions"
5515 for an explanation of this command.
5523 \begin_layout Subsection
5524 Footnotes in Longtables
5525 \begin_inset CommandInset label
5527 name "subsec:Footnotes-in-Longtables"
5532 \begin_inset Index idx
5535 \begin_layout Plain Layout
5536 Longtables ! Footnotes
5544 \begin_layout Standard
5545 Footnotes can be inserted to every longtable cell.
5546 They appear at the bottom of the page where the table cell with the footnote
5549 \begin_inset space ~
5553 \begin_inset CommandInset ref
5555 reference "tab:DiffCaptions"
5559 has for example a footnote.
5562 \begin_layout Subsection
5564 \begin_inset Index idx
5567 \begin_layout Plain Layout
5568 Longtables ! Alignment
5576 \begin_layout Standard
5577 The horizontal alignment of longtables can be set in the table settings
5579 For left- and right-alignment the table will be directly at the page border.
5580 To add space between the table and the border one has to set the alignment
5581 to center and change the value of the \SpecialChar LaTeX
5594 by inserting this line as \SpecialChar TeX
5595 Code before the longtable:
5598 \begin_layout Standard
5608 \begin_layout Standard
5609 The value can have any of the units listed in Table
5610 \begin_inset space ~
5614 \begin_inset CommandInset ref
5616 reference "tab:Units"
5627 controls the horizontal distance from the left page border to the longtable,
5634 the distance from the right side.
5635 The default value for both lengths is
5641 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5645 \begin_layout Standard
5646 The following longtable was centered and
5662 \begin_layout Plain Layout
5678 \begin_layout Standard
5679 \begin_inset Tabular
5680 <lyxtabular version="3" rows="5" columns="5">
5681 <features islongtable="true" longtabularalignment="center">
5682 <column alignment="center" valignment="top">
5683 <column alignment="center" valignment="top" width="0pt">
5684 <column alignment="center" valignment="top">
5685 <column alignment="center" valignment="top">
5686 <column alignment="center" valignment="top">
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5691 \begin_layout Plain Layout
5697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5700 \begin_layout Plain Layout
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5709 \begin_layout Plain Layout
5715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5718 \begin_layout Plain Layout
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5727 \begin_layout Plain Layout
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5738 \begin_layout Plain Layout
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5747 \begin_layout Plain Layout
5753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5756 \begin_layout Plain Layout
5762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5765 \begin_layout Plain Layout
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5774 \begin_layout Plain Layout
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5785 \begin_layout Plain Layout
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5794 \begin_layout Plain Layout
5800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5803 \begin_layout Plain Layout
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Plain Layout
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5821 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Plain Layout
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Plain Layout
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Plain Layout
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Plain Layout
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5868 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5879 \begin_layout Plain Layout
5885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5888 \begin_layout Plain Layout
5894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5897 \begin_layout Plain Layout
5903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5906 \begin_layout Plain Layout
5912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5915 \begin_layout Plain Layout
5930 \begin_layout Plain Layout
5947 \begin_layout Plain Layout
5951 addtocounter{table}{-1}
5957 \begin_inset Note Note
5960 \begin_layout Plain Layout
5961 See the first greyed-out note in section
5962 \begin_inset space ~
5966 \begin_inset CommandInset ref
5968 reference "subsec:Longtable-Captions"
5972 for an explanation of this command.
5980 \begin_layout Subsection
5982 \begin_inset Index idx
5985 \begin_layout Plain Layout
5986 Longtables ! Captions
5992 \begin_inset CommandInset label
5994 name "subsec:Longtable-Captions"
6001 \begin_layout Standard
6002 A longtable cannot be put into a table float because floats can only be
6004 But the caption environment of floats can also be used for longtables when
6005 you use the longtable option
6009 as described in sec.
6010 \begin_inset space \thinspace{}
6014 \begin_inset CommandInset ref
6016 reference "sec:Longtables"
6021 Only one table row should contain a caption, either a header or a footer
6025 \begin_layout Standard
6026 Here is a short longtable to see how it works:
6029 \begin_layout Standard
6030 \begin_inset Tabular
6031 <lyxtabular version="3" rows="6" columns="5">
6032 <features islongtable="true" longtabularalignment="center">
6033 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
6039 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6042 \begin_layout Plain Layout
6043 \begin_inset Caption Standard
6045 \begin_layout Plain Layout
6046 Longtable with caption
6047 \begin_inset Argument 1
6050 \begin_layout Plain Layout
6066 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6069 \begin_layout Plain Layout
6075 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6078 \begin_layout Plain Layout
6084 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6087 \begin_layout Plain Layout
6093 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6096 \begin_layout Plain Layout
6104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6107 \begin_layout Plain Layout
6113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6116 \begin_layout Plain Layout
6122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6125 \begin_layout Plain Layout
6131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6134 \begin_layout Plain Layout
6140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6143 \begin_layout Plain Layout
6151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6154 \begin_layout Plain Layout
6160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6163 \begin_layout Plain Layout
6169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6172 \begin_layout Plain Layout
6178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6181 \begin_layout Plain Layout
6187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6190 \begin_layout Plain Layout
6198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6201 \begin_layout Plain Layout
6207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6210 \begin_layout Plain Layout
6216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6219 \begin_layout Plain Layout
6225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6228 \begin_layout Plain Layout
6234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6237 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6257 \begin_layout Plain Layout
6263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6266 \begin_layout Plain Layout
6272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6275 \begin_layout Plain Layout
6281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6284 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6304 \begin_layout Plain Layout
6310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6313 \begin_layout Plain Layout
6319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6322 \begin_layout Plain Layout
6328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6331 \begin_layout Plain Layout
6345 \begin_layout Standard
6346 \begin_inset VSpace medskip
6350 \begin_inset Note Greyedout
6353 \begin_layout Plain Layout
6357 \begin_inset space ~
6362 The table number is increased for every longtable, even if you did not
6363 set a caption for it.
6364 For this reason you could have the case that e.
6365 \begin_inset space \thinspace{}
6369 \begin_inset space \space{}
6373 \begin_inset space ~
6377 \begin_inset space ~
6380 2.1 in the list of tables if there are two longtables without captions.
6381 To avoid this you can add the following command in \SpecialChar TeX
6382 Code after every longtable
6386 \begin_layout Plain Layout
6391 addtocounter{table}{-1}
6394 \begin_layout Plain Layout
6395 This is not needed when none of your longtables has a caption and you add
6396 the following code to the document preamble:
6399 \begin_layout Plain Layout
6409 \begin_inset Newline newline
6420 addtocounter{table}{-1}}
6428 \begin_layout Standard
6429 \begin_inset Note Greyedout
6432 \begin_layout Plain Layout
6436 \begin_inset space ~
6446 \begin_inset Index idx
6449 \begin_layout Plain Layout
6451 -packages ! hyperref
6464 dialog to link cross-references, the link to a longtable caption will always
6465 point to the beginning of the document.
6473 \begin_layout Subsubsection
6474 References to Longtables
6475 \begin_inset Index idx
6478 \begin_layout Plain Layout
6479 Longtables ! References
6487 \begin_layout Standard
6488 \begin_inset Tabular
6489 <lyxtabular version="3" rows="6" columns="5">
6490 <features islongtable="true" longtabularalignment="center">
6491 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
6497 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6500 \begin_layout Plain Layout
6501 \begin_inset Caption Standard
6503 \begin_layout Plain Layout
6504 Referenced longtable
6505 \begin_inset CommandInset label
6507 name "tab:RefExample"
6521 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6524 \begin_layout Plain Layout
6530 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6533 \begin_layout Plain Layout
6539 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6542 \begin_layout Plain Layout
6548 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6551 \begin_layout Plain Layout
6559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6562 \begin_layout Plain Layout
6568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6571 \begin_layout Plain Layout
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6580 \begin_layout Plain Layout
6586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6589 \begin_layout Plain Layout
6595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6598 \begin_layout Plain Layout
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6609 \begin_layout Plain Layout
6615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6618 \begin_layout Plain Layout
6624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6645 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6656 \begin_layout Plain Layout
6662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6692 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6703 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6739 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6750 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6786 \begin_layout Plain Layout
6800 \begin_layout Standard
6801 To reference a longtable, insert a label into the caption.
6804 \begin_layout Standard
6805 This is a reference to Table
6806 \begin_inset space ~
6810 \begin_inset CommandInset ref
6812 reference "tab:RefExample"
6819 \begin_layout Standard
6820 The caption layout can be set together with all other captions of your document
6821 using the \SpecialChar LaTeX
6827 \begin_inset Index idx
6830 \begin_layout Plain Layout
6838 \begin_inset space ~
6842 \begin_inset CommandInset ref
6844 reference "sec:Caption-Formatting"
6851 \begin_layout Subsubsection
6853 \begin_inset Index idx
6856 \begin_layout Plain Layout
6857 Longtables ! Caption Width
6865 \begin_layout Standard
6866 The maximal width of caption lines is defined by the length
6873 Its default value is 4
6874 \begin_inset space \thinspace{}
6878 To change it add the following command to your document preamble or as
6880 Code into your document before the longtable that should be affected
6883 \begin_layout Standard
6893 \begin_layout Standard
6894 where the width could have one of the units listed in appendix
6895 \begin_inset space ~
6899 \begin_inset CommandInset ref
6901 reference "cha:Units-available-in"
6908 \begin_layout Standard
6909 The following tables show the difference:
6912 \begin_layout Standard
6913 \begin_inset Tabular
6914 <lyxtabular version="3" rows="6" columns="5">
6915 <features islongtable="true" longtabularalignment="center">
6916 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
6922 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6925 \begin_layout Plain Layout
6926 \begin_inset Caption Standard
6928 \begin_layout Plain Layout
6929 long full title with default width long full title with default width long
6930 full title with default width
6931 \begin_inset Argument 1
6934 \begin_layout Plain Layout
6935 caption with default width
6950 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6953 \begin_layout Plain Layout
6959 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6962 \begin_layout Plain Layout
6968 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6971 \begin_layout Plain Layout
6977 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6980 \begin_layout Plain Layout
6988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6991 \begin_layout Plain Layout
6997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7000 \begin_layout Plain Layout
7006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7009 \begin_layout Plain Layout
7015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7018 \begin_layout Plain Layout
7024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7027 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7047 \begin_layout Plain Layout
7053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7056 \begin_layout Plain Layout
7062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7065 \begin_layout Plain Layout
7071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7074 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7103 \begin_layout Plain Layout
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7112 \begin_layout Plain Layout
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7121 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7150 \begin_layout Plain Layout
7156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7159 \begin_layout Plain Layout
7165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7168 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7197 \begin_layout Plain Layout
7203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7206 \begin_layout Plain Layout
7212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7215 \begin_layout Plain Layout
7229 \begin_layout Standard
7233 \begin_layout Plain Layout
7245 \begin_inset Tabular
7246 <lyxtabular version="3" rows="6" columns="5">
7247 <features islongtable="true" longtabularalignment="center">
7248 <column alignment="center" valignment="top">
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 <row endfirsthead="true" caption="true">
7254 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7257 \begin_layout Plain Layout
7258 \begin_inset Caption Standard
7260 \begin_layout Plain Layout
7261 long full title with width set to 5
7262 \begin_inset space \thinspace{}
7265 cm long full title with width set to 5
7266 \begin_inset space \thinspace{}
7269 cm long full title with width set to 5
7270 \begin_inset space \thinspace{}
7274 \begin_inset Argument 1
7277 \begin_layout Plain Layout
7279 \begin_inset space \thinspace{}
7283 \begin_inset space \thinspace{}
7287 \begin_inset space \thinspace{}
7305 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7308 \begin_layout Plain Layout
7314 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7317 \begin_layout Plain Layout
7323 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7326 \begin_layout Plain Layout
7332 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7335 \begin_layout Plain Layout
7343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7346 \begin_layout Plain Layout
7352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7355 \begin_layout Plain Layout
7361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7364 \begin_layout Plain Layout
7370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7373 \begin_layout Plain Layout
7379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7382 \begin_layout Plain Layout
7390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7393 \begin_layout Plain Layout
7399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7402 \begin_layout Plain Layout
7408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7411 \begin_layout Plain Layout
7417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7420 \begin_layout Plain Layout
7426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7429 \begin_layout Plain Layout
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Plain Layout
7446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7449 \begin_layout Plain Layout
7455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7458 \begin_layout Plain Layout
7464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7467 \begin_layout Plain Layout
7473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7476 \begin_layout Plain Layout
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7487 \begin_layout Plain Layout
7493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7505 \begin_layout Plain Layout
7511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7514 \begin_layout Plain Layout
7520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7523 \begin_layout Plain Layout
7531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7534 \begin_layout Plain Layout
7540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7543 \begin_layout Plain Layout
7549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7552 \begin_layout Plain Layout
7558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7561 \begin_layout Plain Layout
7567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7570 \begin_layout Plain Layout
7584 \begin_layout Standard
7588 \begin_layout Plain Layout
7602 \begin_layout Standard
7603 \begin_inset Note Greyedout
7606 \begin_layout Plain Layout
7611 When the \SpecialChar LaTeX
7617 \begin_inset Index idx
7620 \begin_layout Plain Layout
7627 is used, as in this document, the full page width is used for the caption
7628 when you use the default value of 4
7629 \begin_inset space \thinspace{}
7639 To get in this case exactly a 4
7640 \begin_inset space \thinspace{}
7643 in wide caption, you can either use a value slightly different from 4.0
7644 \begin_inset space \thinspace{}
7648 \begin_inset space \thinspace{}
7652 \begin_inset space \space{}
7656 \begin_inset space \thinspace{}
7659 in, or the \SpecialChar LaTeX
7664 captionsetup{width=value}
7666 that is provided by the
7678 \begin_layout Subsubsection
7679 Different Captions for Table Pages
7680 \begin_inset Index idx
7683 \begin_layout Plain Layout
7684 Longtables ! Different Captions for Pages
7692 \begin_layout Standard
7693 When the table captions for the following pages should differ from the one
7694 of the first table page, mark a empty row as header which contains a caption.
7695 Then right-click on the caption and select in the context menu
7698 \begin_inset space ~
7705 \begin_inset space ~
7709 \begin_inset CommandInset ref
7711 reference "tab:DiffCaptions"
7715 is an example of a longtable with different heading where the second caption
7716 does not include the table number.
7717 \begin_inset Separator parbreak
7723 \begin_layout Standard
7725 \begin_inset Tabular
7726 <lyxtabular version="3" rows="59" columns="3">
7727 <features islongtable="true" longtabularalignment="center">
7728 <column alignment="left" valignment="top" width="0cm">
7729 <column alignment="left" valignment="top" width="0pt">
7730 <column alignment="center" valignment="top" width="0pt">
7731 <row endfirsthead="true" caption="true">
7732 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7735 \begin_layout Plain Layout
7736 \begin_inset Caption Standard
7738 \begin_layout Plain Layout
7740 \begin_inset CommandInset label
7742 name "tab:DiffCaptions"
7747 \begin_inset Argument 1
7750 \begin_layout Plain Layout
7766 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7769 \begin_layout Plain Layout
7775 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7778 \begin_layout Plain Layout
7785 <row endfirsthead="true">
7786 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7789 \begin_layout Plain Layout
7792 Example Phone List (ignore the names)
7797 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7800 \begin_layout Plain Layout
7806 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7809 \begin_layout Plain Layout
7816 <row endfirsthead="true">
7817 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7820 \begin_layout Plain Layout
7828 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7831 \begin_layout Plain Layout
7837 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7840 \begin_layout Plain Layout
7849 <row endhead="true" caption="true">
7850 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7853 \begin_layout Plain Layout
7854 \begin_inset Caption LongTableNoNumber
7856 \begin_layout Plain Layout
7857 Continued Example Phone List
7867 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7870 \begin_layout Plain Layout
7876 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7879 \begin_layout Plain Layout
7886 <row endhead="true">
7887 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7890 \begin_layout Plain Layout
7898 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7901 \begin_layout Plain Layout
7907 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7910 \begin_layout Plain Layout
7917 <row endhead="true">
7918 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7921 \begin_layout Plain Layout
7929 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7932 \begin_layout Plain Layout
7938 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7941 \begin_layout Plain Layout
7950 <row endfoot="true">
7951 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7954 \begin_layout Plain Layout
7955 continued on next page
7960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7963 \begin_layout Plain Layout
7969 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7972 \begin_layout Plain Layout
7980 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7983 \begin_layout Plain Layout
7991 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7994 \begin_layout Plain Layout
8000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8003 \begin_layout Plain Layout
8011 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8014 \begin_layout Plain Layout
8022 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8025 \begin_layout Plain Layout
8031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8034 \begin_layout Plain Layout
8042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8045 \begin_layout Plain Layout
8053 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8056 \begin_layout Plain Layout
8062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8065 \begin_layout Plain Layout
8073 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8076 \begin_layout Plain Layout
8084 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8087 \begin_layout Plain Layout
8093 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8096 \begin_layout Plain Layout
8104 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8107 \begin_layout Plain Layout
8115 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8118 \begin_layout Plain Layout
8124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8127 \begin_layout Plain Layout
8135 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8138 \begin_layout Plain Layout
8146 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8149 \begin_layout Plain Layout
8155 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8158 \begin_layout Plain Layout
8166 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8169 \begin_layout Plain Layout
8177 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8180 \begin_layout Plain Layout
8186 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8189 \begin_layout Plain Layout
8197 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8200 \begin_layout Plain Layout
8208 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8211 \begin_layout Plain Layout
8217 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8220 \begin_layout Plain Layout
8228 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8231 \begin_layout Plain Layout
8239 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8242 \begin_layout Plain Layout
8248 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8251 \begin_layout Plain Layout
8259 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8262 \begin_layout Plain Layout
8270 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8273 \begin_layout Plain Layout
8279 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8282 \begin_layout Plain Layout
8290 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8293 \begin_layout Plain Layout
8301 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8304 \begin_layout Plain Layout
8310 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8313 \begin_layout Plain Layout
8321 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8324 \begin_layout Plain Layout
8332 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8335 \begin_layout Plain Layout
8341 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8344 \begin_layout Plain Layout
8352 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8355 \begin_layout Plain Layout
8363 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8366 \begin_layout Plain Layout
8372 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8375 \begin_layout Plain Layout
8383 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8386 \begin_layout Plain Layout
8394 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8397 \begin_layout Plain Layout
8403 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8406 \begin_layout Plain Layout
8414 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8417 \begin_layout Plain Layout
8426 \begin_layout Plain Layout
8437 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8440 \begin_layout Plain Layout
8446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8449 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8471 \begin_layout Plain Layout
8477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8480 \begin_layout Plain Layout
8488 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8491 \begin_layout Plain Layout
8499 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8502 \begin_layout Plain Layout
8508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8511 \begin_layout Plain Layout
8519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8522 \begin_layout Plain Layout
8530 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8533 \begin_layout Plain Layout
8539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8542 \begin_layout Plain Layout
8550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8553 \begin_layout Plain Layout
8561 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8564 \begin_layout Plain Layout
8570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8573 \begin_layout Plain Layout
8581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8584 \begin_layout Plain Layout
8592 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8595 \begin_layout Plain Layout
8601 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8604 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8626 \begin_layout Plain Layout
8632 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8635 \begin_layout Plain Layout
8643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8657 \begin_layout Plain Layout
8663 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8666 \begin_layout Plain Layout
8674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8677 \begin_layout Plain Layout
8685 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8688 \begin_layout Plain Layout
8694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8697 \begin_layout Plain Layout
8705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8708 \begin_layout Plain Layout
8716 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8719 \begin_layout Plain Layout
8725 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8728 \begin_layout Plain Layout
8736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8739 \begin_layout Plain Layout
8747 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8750 \begin_layout Plain Layout
8756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8759 \begin_layout Plain Layout
8767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8770 \begin_layout Plain Layout
8778 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8781 \begin_layout Plain Layout
8787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8790 \begin_layout Plain Layout
8798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8801 \begin_layout Plain Layout
8809 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8812 \begin_layout Plain Layout
8818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8821 \begin_layout Plain Layout
8829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8832 \begin_layout Plain Layout
8840 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8843 \begin_layout Plain Layout
8849 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8852 \begin_layout Plain Layout
8860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8863 \begin_layout Plain Layout
8871 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8874 \begin_layout Plain Layout
8880 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8883 \begin_layout Plain Layout
8891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8894 \begin_layout Plain Layout
8902 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8905 \begin_layout Plain Layout
8911 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8914 \begin_layout Plain Layout
8922 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8925 \begin_layout Plain Layout
8933 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8936 \begin_layout Plain Layout
8942 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8945 \begin_layout Plain Layout
8953 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8956 \begin_layout Plain Layout
8962 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8965 \begin_layout Plain Layout
8971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8974 \begin_layout Plain Layout
8982 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8996 \begin_layout Plain Layout
9002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9005 \begin_layout Plain Layout
9013 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9027 \begin_layout Plain Layout
9033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9036 \begin_layout Plain Layout
9044 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9058 \begin_layout Plain Layout
9064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9067 \begin_layout Plain Layout
9075 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9078 \begin_layout Plain Layout
9086 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9089 \begin_layout Plain Layout
9095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9098 \begin_layout Plain Layout
9106 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9109 \begin_layout Plain Layout
9117 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9120 \begin_layout Plain Layout
9126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9129 \begin_layout Plain Layout
9137 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9140 \begin_layout Plain Layout
9148 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9151 \begin_layout Plain Layout
9157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9160 \begin_layout Plain Layout
9168 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9171 \begin_layout Plain Layout
9179 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9182 \begin_layout Plain Layout
9188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9191 \begin_layout Plain Layout
9199 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9202 \begin_layout Plain Layout
9210 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9213 \begin_layout Plain Layout
9219 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9222 \begin_layout Plain Layout
9230 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9233 \begin_layout Plain Layout
9241 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9244 \begin_layout Plain Layout
9250 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9253 \begin_layout Plain Layout
9261 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9264 \begin_layout Plain Layout
9272 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9275 \begin_layout Plain Layout
9281 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9284 \begin_layout Plain Layout
9292 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9295 \begin_layout Plain Layout
9303 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9306 \begin_layout Plain Layout
9312 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9315 \begin_layout Plain Layout
9323 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9326 \begin_layout Plain Layout
9334 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9337 \begin_layout Plain Layout
9343 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9346 \begin_layout Plain Layout
9354 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9357 \begin_layout Plain Layout
9365 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9368 \begin_layout Plain Layout
9374 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9377 \begin_layout Plain Layout
9385 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9388 \begin_layout Plain Layout
9396 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9399 \begin_layout Plain Layout
9405 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9408 \begin_layout Plain Layout
9416 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9419 \begin_layout Plain Layout
9427 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9430 \begin_layout Plain Layout
9436 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9439 \begin_layout Plain Layout
9447 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9450 \begin_layout Plain Layout
9458 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9461 \begin_layout Plain Layout
9467 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9470 \begin_layout Plain Layout
9478 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9481 \begin_layout Plain Layout
9489 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9492 \begin_layout Plain Layout
9498 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9501 \begin_layout Plain Layout
9509 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9512 \begin_layout Plain Layout
9520 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9523 \begin_layout Plain Layout
9529 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9532 \begin_layout Plain Layout
9540 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9543 \begin_layout Plain Layout
9551 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9554 \begin_layout Plain Layout
9560 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9563 \begin_layout Plain Layout
9571 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9574 \begin_layout Plain Layout
9582 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9585 \begin_layout Plain Layout
9591 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9594 \begin_layout Plain Layout
9608 \begin_layout Section
9609 Special Longtable Issues
9610 \begin_inset CommandInset label
9612 name "sec:Special-Longtable-Issues"
9619 \begin_layout Subsection
9620 Longtable Calculation
9621 \begin_inset Index idx
9624 \begin_layout Plain Layout
9625 Longtables ! Calculation
9633 \begin_layout Standard
9635 calculates the height of table pages and their page breaks using so called
9637 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9639 The default value was historically set to only 20 table rows.
9640 If you are using longtables with many pages this may slow down the creation
9642 You can safely increase the chunk size to values of 100-1000 by adding
9643 this command line to your document preamble:
9646 \begin_layout Standard
9651 setcounter{LTchunksize}{100}
9654 \begin_layout Subsection
9655 Floats and Longtables
9656 \begin_inset Index idx
9659 \begin_layout Plain Layout
9668 \begin_layout Standard
9669 There might be problems when a float appears on the same page where a longtable
9671 To avoid such a situation, insert a
9672 \begin_inset Quotes eld
9676 \begin_inset Quotes erd
9681 Insert\SpecialChar menuseparator
9682 Formatting\SpecialChar menuseparator
9684 \begin_inset space ~
9689 ) before your longtable.
9692 \begin_layout Subsection
9694 \begin_inset Index idx
9697 \begin_layout Plain Layout
9698 Longtables ! Forced Page Breaks
9706 \begin_layout Standard
9707 By default tables are only broken between rows.
9708 If you have a cell with multiples lines and want to have a page break within
9709 the cell, insert the new line command
9710 \begin_inset Quotes eld
9722 \begin_inset Quotes erd
9726 Code at the point of the cell where it can be broken.
9735 command you have to insert in \SpecialChar TeX
9737 \begin_inset Quotes eld
9745 \begin_inset Quotes erd
9748 characters as the number of the following table columns.
9753 is the character to separate table cells.
9754 Write in \SpecialChar TeX
9759 the content of the corresponding following cell and delete the content
9761 \begin_inset Newline newline
9772 command, insert as many
9776 characters as the number of table columns before the current column.
9778 \begin_inset space ~
9782 \begin_inset CommandInset ref
9784 reference "tab:ForcedPagebreak"
9788 the cell that should be broken is in the second column followed by another
9790 Therefore the following command was inserted in the cell as \SpecialChar TeX
9793 \begin_inset Quotes eld
9801 \begin_inset Quotes erd
9807 \begin_layout Standard
9817 \begin_inset Newline newline
9823 \begin_layout Standard
9825 \begin_inset Quotes eld
9829 \begin_inset Quotes erd
9832 in the third column of the row was deleted.
9839 is only needed when a page break should definitely occur at this position,
9840 otherwise it would be a conditional break.
9841 If your footer row of the longtable has for a certain reason no upper line
9842 but you would have a horizontal line where the cell is broken, use this
9846 \begin_layout Standard
9854 \begin_inset Newline newline
9862 \begin_layout Standard
9863 When the cell to be broken is in the last column, the command
9866 \begin_layout Standard
9876 \begin_layout Standard
9877 must be inserted as \SpecialChar TeX
9878 Code at the beginning of the cell.
9879 This ensures that the part of the cell that will be displayed on the new
9880 page appears with the full width.
9881 \begin_inset Separator parbreak
9887 \begin_layout Standard
9889 \begin_inset Tabular
9890 <lyxtabular version="3" rows="38" columns="3">
9891 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9892 <column alignment="left" valignment="top" width="0cm">
9893 <column alignment="left" valignment="top" width="3cm">
9894 <column alignment="center" valignment="top" width="0pt">
9895 <row endfirsthead="true" caption="true">
9896 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9899 \begin_layout Plain Layout
9900 \begin_inset Caption Standard
9902 \begin_layout Plain Layout
9903 Table with forced page break in table cell
9904 \begin_inset CommandInset label
9906 name "tab:ForcedPagebreak"
9911 \begin_inset Argument 1
9914 \begin_layout Plain Layout
9915 Table with forced page break in table cell
9930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9933 \begin_layout Plain Layout
9939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9942 \begin_layout Plain Layout
9949 <row endfirsthead="true">
9950 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9956 Example Phone List (ignore the names)
9961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9964 \begin_layout Plain Layout
9970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9973 \begin_layout Plain Layout
9980 <row endfirsthead="true">
9981 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9984 \begin_layout Plain Layout
9992 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9995 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10004 \begin_layout Plain Layout
10013 <row endhead="true">
10014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10017 \begin_layout Plain Layout
10021 \begin_layout Plain Layout
10025 caption*{Continued Example Phone List}
10039 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10042 \begin_layout Plain Layout
10048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10051 \begin_layout Plain Layout
10058 <row endhead="true">
10059 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10062 \begin_layout Plain Layout
10070 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10073 \begin_layout Plain Layout
10079 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10082 \begin_layout Plain Layout
10089 <row endhead="true">
10090 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10093 \begin_layout Plain Layout
10101 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10104 \begin_layout Plain Layout
10110 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10113 \begin_layout Plain Layout
10122 <row endfoot="true">
10123 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10126 \begin_layout Plain Layout
10127 continued on next page
10132 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10135 \begin_layout Plain Layout
10141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10144 \begin_layout Plain Layout
10152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10155 \begin_layout Plain Layout
10163 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10166 \begin_layout Plain Layout
10172 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10175 \begin_layout Plain Layout
10183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10186 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10197 \begin_layout Plain Layout
10203 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10206 \begin_layout Plain Layout
10214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10217 \begin_layout Plain Layout
10225 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10228 \begin_layout Plain Layout
10234 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10237 \begin_layout Plain Layout
10245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10248 \begin_layout Plain Layout
10256 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10259 \begin_layout Plain Layout
10265 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10268 \begin_layout Plain Layout
10276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10279 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10290 \begin_layout Plain Layout
10296 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10299 \begin_layout Plain Layout
10307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10310 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10321 \begin_layout Plain Layout
10327 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10330 \begin_layout Plain Layout
10338 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10341 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10352 \begin_layout Plain Layout
10358 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10361 \begin_layout Plain Layout
10369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10372 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10383 \begin_layout Plain Layout
10389 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10392 \begin_layout Plain Layout
10400 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10403 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10414 \begin_layout Plain Layout
10420 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10423 \begin_layout Plain Layout
10431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10434 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10445 \begin_layout Plain Layout
10451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10454 \begin_layout Plain Layout
10462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10465 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10476 \begin_layout Plain Layout
10482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10485 \begin_layout Plain Layout
10493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10496 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10507 \begin_layout Plain Layout
10513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10516 \begin_layout Plain Layout
10524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10527 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10538 \begin_layout Plain Layout
10544 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10547 \begin_layout Plain Layout
10555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10558 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10569 \begin_layout Plain Layout
10575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10578 \begin_layout Plain Layout
10586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10589 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10600 \begin_layout Plain Layout
10606 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10609 \begin_layout Plain Layout
10617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10620 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10631 \begin_layout Plain Layout
10637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10640 \begin_layout Plain Layout
10648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10651 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10662 \begin_layout Plain Layout
10668 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10671 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10682 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10693 \begin_layout Plain Layout
10699 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10702 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10713 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10724 \begin_layout Plain Layout
10730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10733 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10744 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10755 \begin_layout Plain Layout
10761 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10764 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10775 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10786 \begin_layout Plain Layout
10792 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10795 \begin_layout Plain Layout
10803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10806 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10817 \begin_layout Plain Layout
10823 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10826 \begin_layout Plain Layout
10834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10837 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10848 \begin_layout Plain Layout
10850 Fürst von Montecompatri, 11.
10851 Fürst von Sulmona und Vivaro, 10.
10852 Fürst von Rossano, 5.
10853 Herzog von Canemorte, 11.
10854 Herzog von Palombara, 5.
10855 Herzog von Castelchiodato,
10859 \begin_layout Plain Layout
10870 \begin_layout Plain Layout
10878 Herzog von Poggionativo, 11.
10879 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10880 Graf von Valinfreda, 11.
10881 Baron von Cropalati, 11.
10882 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10887 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10890 \begin_layout Plain Layout
10898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10901 \begin_layout Plain Layout
10909 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10912 \begin_layout Plain Layout
10918 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10921 \begin_layout Plain Layout
10929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10932 \begin_layout Plain Layout
10940 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10943 \begin_layout Plain Layout
10949 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10952 \begin_layout Plain Layout
10960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10963 \begin_layout Plain Layout
10971 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10974 \begin_layout Plain Layout
10980 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10983 \begin_layout Plain Layout
10991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10994 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11005 \begin_layout Plain Layout
11011 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11014 \begin_layout Plain Layout
11022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11025 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11036 \begin_layout Plain Layout
11042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11045 \begin_layout Plain Layout
11053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11056 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11067 \begin_layout Plain Layout
11073 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11076 \begin_layout Plain Layout
11084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11087 \begin_layout Plain Layout
11095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11098 \begin_layout Plain Layout
11104 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11107 \begin_layout Plain Layout
11115 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11118 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11129 \begin_layout Plain Layout
11135 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11138 \begin_layout Plain Layout
11152 \begin_layout Section
11153 Multiple Lines, Columns and Rows
11156 \begin_layout Subsection
11157 Multiple Lines in Table Cells
11158 \begin_inset CommandInset label
11160 name "subsec:Multiple-Lines-in"
11165 \begin_inset Index idx
11168 \begin_layout Plain Layout
11169 Multiple Lines in Table Cells
11175 \begin_inset Index idx
11178 \begin_layout Plain Layout
11187 \begin_layout Standard
11189 \begin_inset Float table
11195 \begin_layout Plain Layout
11196 \begin_inset Caption Standard
11198 \begin_layout Plain Layout
11199 \begin_inset CommandInset label
11201 name "tab:Table-with-multiple"
11205 Table with multiple lines in cells
11213 \begin_layout Plain Layout
11215 \begin_inset Tabular
11216 <lyxtabular version="3" rows="3" columns="3">
11217 <features tabularvalignment="middle">
11218 <column alignment="center" valignment="middle" width="2.5cm">
11219 <column alignment="center" valignment="middle">
11220 <column alignment="center" valignment="middle">
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Plain Layout
11227 \begin_inset Newline linebreak
11235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11238 \begin_layout Plain Layout
11244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11247 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11276 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11296 \begin_layout Plain Layout
11302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11305 \begin_layout Plain Layout
11324 \begin_layout Standard
11325 Setting a fixed width for a column enables you to enter text as a paragraph
11326 with multiple lines and hyphenation.
11329 \begin_layout Standard
11331 \begin_inset space ~
11335 \begin_inset CommandInset ref
11337 reference "tab:Table-with-multiple"
11341 , create a 3×3 table, mark the first cell and right-click on it.
11342 In the appearing table dialog we set a cell width of 2.5
11343 \begin_inset space \thinspace{}
11346 cm and choose centered for the vertical and horizontal alignment.
11347 The vertical alignment is used for all cells of the row.
11348 As our text is smaller than 2.5
11349 \begin_inset space \thinspace{}
11352 cm, only one line will appear.
11353 To get two lines, a justified line break (shortcut
11356 arg "newline-insert linebreak"
11360 If the text is wider than the set cell width, it will automatically be
11361 broken to several lines.
11364 \begin_layout Standard
11365 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11366 by \SpecialChar LaTeX
11367 if it is the first entry.
11368 Therefore you need to insert something to prevent the word not being the
11370 So add a horizontal space of 0
11371 \begin_inset space \thinspace{}
11374 pt before the word.
11375 As the space is zero, it doesn't change the output.
11377 \begin_inset space ~
11381 \begin_inset CommandInset ref
11383 reference "tab:Table-with-and"
11390 \begin_layout Standard
11391 \begin_inset Float table
11397 \begin_layout Plain Layout
11398 \begin_inset Caption Standard
11400 \begin_layout Plain Layout
11401 \begin_inset CommandInset label
11403 name "tab:Table-with-and"
11407 Table with and without hyphenation
11415 \begin_layout Plain Layout
11416 \begin_inset space \hfill{}
11420 \begin_inset Tabular
11421 <lyxtabular version="3" rows="3" columns="3">
11422 <features tabularvalignment="middle">
11423 <column alignment="center" valignment="middle" width="2.5cm">
11424 <column alignment="center" valignment="middle">
11425 <column alignment="center" valignment="middle">
11427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11430 \begin_layout Plain Layout
11431 verylongtablecellword
11436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11439 \begin_layout Plain Layout
11445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11448 \begin_layout Plain Layout
11456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11459 \begin_layout Plain Layout
11465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11468 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11477 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11488 \begin_layout Plain Layout
11494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11497 \begin_layout Plain Layout
11503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11506 \begin_layout Plain Layout
11518 \begin_inset space \hfill{}
11522 \begin_inset Tabular
11523 <lyxtabular version="3" rows="3" columns="3">
11524 <features tabularvalignment="middle">
11525 <column alignment="center" valignment="middle" width="2.5cm">
11526 <column alignment="center" valignment="middle">
11527 <column alignment="center" valignment="middle">
11529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11532 \begin_layout Plain Layout
11533 \begin_inset space \hspace{}
11537 verylongtablecellword
11542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11545 \begin_layout Plain Layout
11551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11554 \begin_layout Plain Layout
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Plain Layout
11571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11574 \begin_layout Plain Layout
11580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11583 \begin_layout Plain Layout
11591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11594 \begin_layout Plain Layout
11600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11603 \begin_layout Plain Layout
11609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11612 \begin_layout Plain Layout
11624 \begin_inset space \hfill{}
11635 \begin_layout Subsection
11637 \begin_inset CommandInset label
11639 name "subsec:Multicolumns"
11644 \begin_inset Index idx
11647 \begin_layout Plain Layout
11654 \begin_inset Index idx
11657 \begin_layout Plain Layout
11658 Table ! Multicolumns
11666 \begin_layout Subsubsection
11670 \begin_layout Standard
11671 To merge cells over multiple columns, select as many cells within a row
11672 as you want to merge and use either the table-toolbar button
11675 arg "inset-modify tabular multicolumn"
11680 Edit\SpecialChar menuseparator
11681 Table\SpecialChar menuseparator
11684 , or right click on the marked cells and choose
11688 in the context menu.
11691 \begin_layout Standard
11692 Multicolumns have there own cell settings.
11693 That means changing cell borders, cell alignment, and the width only affects
11695 Here is an example table with a multicolumn cell in the first row and one
11696 in the last row without the upper border:
11697 \begin_inset Separator parbreak
11703 \begin_layout Standard
11705 \begin_inset Tabular
11706 <lyxtabular version="3" rows="3" columns="4">
11707 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11708 <column alignment="center" valignment="top" width="0pt">
11709 <column alignment="center" valignment="middle">
11710 <column alignment="center" valignment="top" width="0in">
11711 <column alignment="center" valignment="top" width="0pt">
11713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11716 \begin_layout Plain Layout
11722 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11731 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11734 \begin_layout Plain Layout
11740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11743 \begin_layout Plain Layout
11751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11781 \begin_layout Plain Layout
11787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11790 \begin_layout Plain Layout
11798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11801 \begin_layout Plain Layout
11807 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11828 \begin_layout Plain Layout
11842 \begin_layout Subsubsection
11843 Multicolumn Calculations
11844 \begin_inset CommandInset label
11846 name "subsec:Multicolumn-Calculations"
11851 \begin_inset Index idx
11854 \begin_layout Plain Layout
11855 Multicolumns ! Calculations
11863 \begin_layout Standard
11865 supports multicolumns directly, but we have to take account of the cell
11866 width of the columns spanned by the multicolumn cell.
11869 \begin_layout Standard
11870 \begin_inset Float table
11876 \begin_layout Plain Layout
11877 \begin_inset Caption Standard
11879 \begin_layout Plain Layout
11880 \begin_inset CommandInset label
11882 name "tab:Table-with-centered"
11886 Table with centered multicolumn text above two columns that have exactly
11887 half the width of the multicolumn cell
11888 \begin_inset Argument 1
11891 \begin_layout Plain Layout
11892 Perfect multicolumn table
11905 \begin_layout Plain Layout
11907 \begin_inset Tabular
11908 <lyxtabular version="3" rows="3" columns="3">
11909 <features tabularvalignment="middle">
11910 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11911 <column alignment="center" valignment="middle">
11912 <column alignment="center" valignment="top">
11914 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11917 \begin_layout Plain Layout
11918 multiple lines multicolumn
11923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11926 \begin_layout Plain Layout
11932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11935 \begin_layout Plain Layout
11943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11946 \begin_layout Plain Layout
11952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11955 \begin_layout Plain Layout
11961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11964 \begin_layout Plain Layout
11972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11975 \begin_layout Plain Layout
11981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11984 \begin_layout Plain Layout
11990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11993 \begin_layout Plain Layout
12012 \begin_layout Standard
12013 To create for example Table
12014 \begin_inset space ~
12018 \begin_inset CommandInset ref
12020 reference "tab:Table-with-centered"
12024 , mark the first two cells in the first row of a 3×3 table and right-click
12026 Now choose for this cell
12035 \begin_inset space \thinspace{}
12038 cm in the table dialog.
12039 The merged columns should have exactly half the width of the multicolumn
12040 cell, so that you would set a width of 1.25
12041 \begin_inset space \thinspace{}
12044 cm for the first column.
12045 The second column has then automatically a width of 1.25
12046 \begin_inset space \thinspace{}
12049 cm (multicolumn width - width of first column).
12050 This was done for Table
12051 \begin_inset space ~
12055 \begin_inset CommandInset ref
12057 reference "tab:Table-without-half"
12064 \begin_layout Standard
12065 \begin_inset Float table
12070 \begin_layout Plain Layout
12071 \begin_inset Caption Standard
12073 \begin_layout Plain Layout
12074 \begin_inset CommandInset label
12076 name "tab:Table-without-half"
12080 Table where the spanned table columns are not exactly half the width of
12081 the multicolumn cell
12082 \begin_inset Argument 1
12085 \begin_layout Plain Layout
12086 Imperfect multicolumn table
12099 \begin_layout Plain Layout
12101 \begin_inset Tabular
12102 <lyxtabular version="3" rows="3" columns="3">
12103 <features tabularvalignment="middle">
12104 <column alignment="center" valignment="top" width="1.25cm">
12105 <column alignment="center" valignment="top">
12106 <column alignment="center" valignment="top">
12108 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12111 \begin_layout Plain Layout
12112 multiple lines multicolumn
12117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12120 \begin_layout Plain Layout
12126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12129 \begin_layout Plain Layout
12137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12140 \begin_layout Plain Layout
12146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12149 \begin_layout Plain Layout
12155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12158 \begin_layout Plain Layout
12166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12169 \begin_layout Plain Layout
12175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12178 \begin_layout Plain Layout
12184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12187 \begin_layout Plain Layout
12206 \begin_layout Standard
12207 You can see that the first column is not half the width of the multicolumn
12208 cell, it is a bit bigger.
12209 The reason is that the specified width of a cell
12210 \begin_inset Formula $W_{g}$
12213 is not its total width
12214 \begin_inset Formula $W_{\mathrm{tot}}$
12217 because a cell is always a bit larger than specified.
12219 \begin_inset space ~
12223 \begin_inset CommandInset ref
12225 reference "cha:Explanation-of-Equation"
12229 explains this in detail.
12232 \begin_layout Standard
12234 \begin_inset Formula $W_{g\,n}$
12237 which the user needs to set when
12241 columns are spanned can be calculated, so that each column has a total
12243 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12247 \begin_inset Formula
12249 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12257 \begin_layout Standard
12258 In our case we have
12259 \begin_inset Formula $n=2$
12263 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12266 cm and the default values for the lengths, so that equation
12267 \begin_inset CommandInset ref
12274 \begin_inset Formula
12276 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12284 \begin_layout Standard
12285 To enable calculations in \SpecialChar LaTeX
12286 , the \SpecialChar LaTeX
12291 must be loaded with the document preamble line
12292 \begin_inset Index idx
12295 \begin_layout Plain Layout
12305 \begin_layout Standard
12313 \begin_layout Standard
12315 does not allow you to calculate lengths in the
12319 field of the table dialog.
12320 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12323 Here is an overview about the arguments:
12326 \begin_layout Itemize
12331 creates cell with a fixed width, its text is vertically top-aligned
12334 \begin_layout Itemize
12339 creates cell with a fixed width, its text is vertically centered
12342 \begin_layout Itemize
12347 creates cell with a fixed width, its text is vertically bottom-aligned
12350 \begin_layout Standard
12351 By entering a \SpecialChar LaTeX
12352 -argument, all cell settings set in the table dialog are overwritt
12356 \begin_layout Standard
12357 \begin_inset Note Greyedout
12360 \begin_layout Plain Layout
12365 Due to a bug, \SpecialChar LyX
12366 shows the overwritten settings anyway.
12374 \begin_layout Standard
12375 As the text should be horizontally centered, the command
12382 You can now enter the following \SpecialChar LaTeX
12383 -argument for the first spanned column:
12386 \begin_layout Standard
12391 centering}m{1.25cm-6.2pt}
12394 \begin_layout Standard
12399 means, that the commands inside the braces are applied before the cell
12403 \begin_layout Standard
12404 Although we have chosen centered alignment for the text of the multicolumn
12405 cell, it is still left aligned.
12406 This is because \SpecialChar LyX
12407 only applies the alignment to single columns.
12408 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12412 \begin_layout Standard
12420 \begin_layout Subsection
12422 \begin_inset CommandInset label
12424 name "subsec:Multirows"
12429 \begin_inset Index idx
12432 \begin_layout Plain Layout
12439 \begin_inset Index idx
12442 \begin_layout Plain Layout
12451 \begin_layout Standard
12452 To merge cells over multiple rows, select as many cells within a column
12453 as you want to merge and use either the table-toolbar button
12456 arg "inset-modify tabular multirow"
12461 Edit\SpecialChar menuseparator
12462 Table\SpecialChar menuseparator
12465 , or right click on the marked cells and choose
12469 in the context menu.
12472 \begin_layout Standard
12473 Here is an example table with a multirow in the first column:
12474 \begin_inset Separator parbreak
12480 \begin_layout Standard
12482 \begin_inset Tabular
12483 <lyxtabular version="3" rows="3" columns="3">
12484 <features tabularvalignment="middle">
12485 <column alignment="center" valignment="top" width="0pt">
12486 <column alignment="center" valignment="top">
12487 <column alignment="center" valignment="top">
12489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12492 \begin_layout Plain Layout
12498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12501 \begin_layout Plain Layout
12507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12510 \begin_layout Plain Layout
12518 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12521 \begin_layout Plain Layout
12527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12530 \begin_layout Plain Layout
12536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12539 \begin_layout Plain Layout
12547 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12550 \begin_layout Plain Layout
12556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12559 \begin_layout Plain Layout
12565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12568 \begin_layout Plain Layout
12582 \begin_layout Standard
12583 The width of multirow cells is set by setting the width and alignment for
12589 shifts the content of the multirow up/down if the offset is positive/negative.
12592 \begin_layout Standard
12593 If the column of a multirow cell has no explicit width, the multirow cell
12594 inherits the alignment of the column.
12595 Otherwise it is by default left-aligned.
12596 To override the default, renew the command
12605 \begin_layout Standard
12617 \begin_layout Standard
12618 in the document preamble.
12619 Then all entries of multirow cells in the document are centered.
12620 If centering is only needed for several tables, you can renew the command
12621 in a \SpecialChar TeX
12622 Code box just before the table instead of the preamble.
12623 If the text should be right-aligned, replace
12636 To return to left-alignment
12645 \begin_layout Standard
12646 This is an example table with a right-aligned multirow cell that has a vertical
12648 \begin_inset space \thinspace{}
12652 \begin_inset space \thinspace{}
12656 \begin_inset Separator parbreak
12662 \begin_layout Standard
12668 \begin_layout Plain Layout
12682 \begin_inset Tabular
12683 <lyxtabular version="3" rows="4" columns="3">
12684 <features tabularvalignment="middle">
12685 <column alignment="center" valignment="top" width="3cm">
12686 <column alignment="center" valignment="top">
12687 <column alignment="center" valignment="top">
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12692 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12701 \begin_layout Plain Layout
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12710 \begin_layout Plain Layout
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Plain Layout
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12730 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12739 \begin_layout Plain Layout
12747 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12768 \begin_layout Plain Layout
12776 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12779 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12797 \begin_layout Plain Layout
12812 \begin_layout Plain Layout
12828 \begin_layout Standard
12829 To start a new line in a multirow you can use a forced line break (shortcut
12833 arg "newline-insert newline"
12836 ) but this will not respect the cell lines as demonstrated in this table:
12837 \begin_inset Separator parbreak
12843 \begin_layout Standard
12846 \begin_inset Tabular
12847 <lyxtabular version="3" rows="3" columns="2">
12848 <features tabularvalignment="middle">
12849 <column alignment="left" valignment="middle" width="2cm">
12850 <column alignment="center" valignment="top">
12852 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12855 \begin_layout Plain Layout
12857 \begin_inset Newline newline
12861 \begin_inset Newline newline
12869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12872 \begin_layout Plain Layout
12880 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12883 \begin_layout Plain Layout
12889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12892 \begin_layout Plain Layout
12900 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12903 \begin_layout Plain Layout
12909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12912 \begin_layout Plain Layout
12926 \begin_layout Standard
12927 Therefore be careful with forced line breaks.
12930 \begin_layout Subsection
12931 Cells with diagonal line(s)
12934 \begin_layout Standard
12935 To tell the reader what is meant by column and row headings in a table,
12936 it is helpful to split the first cell of the table by one or two diagonal
12938 This can be achieved by loading the \SpecialChar LaTeX
12944 \begin_inset Index idx
12947 \begin_layout Plain Layout
12949 -packages ! picinpar
12954 in the document preamble.
12955 The package provides the command
12961 that is inserted as \SpecialChar TeX
12962 Code and that can take 2 or 3
12963 \begin_inset space ~
12969 \begin_layout Standard
12974 diagbox[options]{lower left}{upper right}
12977 \begin_layout Standard
12982 diagbox[options]{lower left}{upper left}{upper right}
12985 \begin_layout Standard
12986 The first scheme divides the cell by a single diagonal line and the arguments
12987 are placed below and above this line.
12988 The second scheme divides the cell by 2
12989 \begin_inset space ~
12995 \begin_layout Standard
12999 \begin_layout Plain Layout
13009 \begin_inset Note Note
13012 \begin_layout Plain Layout
13013 The following section will only be displayed when the \SpecialChar LaTeX
13026 \begin_layout Standard
13027 Here is an example table where
13033 is used in the 2-argument scheme in the first cell:
13034 \begin_inset VSpace medskip
13040 \begin_layout Standard
13042 \begin_inset Tabular
13043 <lyxtabular version="3" rows="4" columns="4">
13044 <features tabularvalignment="middle">
13045 <column alignment="center" valignment="top">
13046 <column alignment="center" valignment="top">
13047 <column alignment="center" valignment="top">
13048 <column alignment="center" valignment="top">
13050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13053 \begin_layout Plain Layout
13057 \begin_layout Plain Layout
13070 \begin_layout Plain Layout
13081 \begin_layout Plain Layout
13093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13096 \begin_layout Plain Layout
13102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13105 \begin_layout Plain Layout
13111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13114 \begin_layout Plain Layout
13122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13125 \begin_layout Plain Layout
13131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13134 \begin_layout Plain Layout
13140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13143 \begin_layout Plain Layout
13149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13152 \begin_layout Plain Layout
13160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13163 \begin_layout Plain Layout
13169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13172 \begin_layout Plain Layout
13178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13181 \begin_layout Plain Layout
13187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13190 \begin_layout Plain Layout
13198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13201 \begin_layout Plain Layout
13207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13210 \begin_layout Plain Layout
13216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13219 \begin_layout Plain Layout
13225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13228 \begin_layout Plain Layout
13240 \begin_inset VSpace medskip
13246 \begin_layout Standard
13247 The 3-argument scheme is for example useful for cross-tables of sports leagues
13249 \begin_inset Separator parbreak
13255 \begin_layout Standard
13258 \begin_inset Tabular
13259 <lyxtabular version="3" rows="4" columns="4">
13260 <features tabularvalignment="middle">
13261 <column alignment="center" valignment="top" width="0pt">
13262 <column alignment="center" valignment="top">
13263 <column alignment="center" valignment="top">
13264 <column alignment="center" valignment="top">
13266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13269 \begin_layout Plain Layout
13273 \begin_layout Plain Layout
13286 \begin_layout Plain Layout
13297 \begin_layout Plain Layout
13308 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13332 \begin_layout Plain Layout
13338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13341 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13361 \begin_layout Plain Layout
13367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13370 \begin_layout Plain Layout
13376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13379 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13408 \begin_layout Plain Layout
13414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13417 \begin_layout Plain Layout
13425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13428 \begin_layout Plain Layout
13434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13437 \begin_layout Plain Layout
13443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13446 \begin_layout Plain Layout
13452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13455 \begin_layout Plain Layout
13469 \begin_layout Standard
13470 For larger cross-tables one might use split cells in 2 or every corner of
13471 the table like in this example:
13472 \begin_inset Separator parbreak
13478 \begin_layout Standard
13481 \begin_inset Tabular
13482 <lyxtabular version="3" rows="5" columns="5">
13483 <features tabularvalignment="middle">
13484 <column alignment="center" valignment="top" width="0pt">
13485 <column alignment="center" valignment="top">
13486 <column alignment="center" valignment="top">
13487 <column alignment="center" valignment="top">
13488 <column alignment="center" valignment="top">
13490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13493 \begin_layout Plain Layout
13497 \begin_layout Plain Layout
13510 \begin_layout Plain Layout
13521 \begin_layout Plain Layout
13532 \begin_layout Plain Layout
13544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13547 \begin_layout Plain Layout
13553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13556 \begin_layout Plain Layout
13562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13565 \begin_layout Plain Layout
13571 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13574 \begin_layout Plain Layout
13578 \begin_layout Plain Layout
13591 \begin_layout Plain Layout
13602 \begin_layout Plain Layout
13613 \begin_layout Plain Layout
13627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13630 \begin_layout Plain Layout
13636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13639 \begin_layout Plain Layout
13645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13648 \begin_layout Plain Layout
13654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13657 \begin_layout Plain Layout
13663 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13666 \begin_layout Plain Layout
13674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13677 \begin_layout Plain Layout
13683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13686 \begin_layout Plain Layout
13692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13695 \begin_layout Plain Layout
13701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13704 \begin_layout Plain Layout
13710 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13713 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13724 \begin_layout Plain Layout
13730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13733 \begin_layout Plain Layout
13739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13742 \begin_layout Plain Layout
13748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13751 \begin_layout Plain Layout
13757 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13760 \begin_layout Plain Layout
13768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13771 \begin_layout Plain Layout
13775 \begin_layout Plain Layout
13788 \begin_layout Plain Layout
13799 \begin_layout Plain Layout
13810 \begin_layout Plain Layout
13822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13825 \begin_layout Plain Layout
13831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13834 \begin_layout Plain Layout
13840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13843 \begin_layout Plain Layout
13849 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13852 \begin_layout Plain Layout
13856 \begin_layout Plain Layout
13869 \begin_layout Plain Layout
13880 \begin_layout Plain Layout
13891 \begin_layout Plain Layout
13911 \begin_layout Standard
13912 To rotate the diagonal lines, the command option
13937 and represent a point of a compass.
13942 is for example the south-west corner.
13943 Thus in the lower left cell of the above table the command
13946 \begin_layout Standard
13951 diagbox[dir=SW]{Team home}{Result}{Team away}
13954 \begin_layout Standard
13956 If no direction is given, it will be NW.
13959 \begin_layout Standard
13960 The necessary width of split cells is automatically calculated.
13961 Thus if you set a fixed column width smaller than the calculated one, the
13962 cell's content will protrude the cell borders:
13963 \begin_inset Separator parbreak
13969 \begin_layout Standard
13972 \begin_inset Tabular
13973 <lyxtabular version="3" rows="2" columns="2">
13974 <features tabularvalignment="middle">
13975 <column alignment="center" valignment="top" width="3cm">
13976 <column alignment="center" valignment="top">
13978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13981 \begin_layout Plain Layout
13985 \begin_layout Plain Layout
13998 \begin_layout Plain Layout
14009 \begin_layout Plain Layout
14021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14024 \begin_layout Plain Layout
14032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14035 \begin_layout Plain Layout
14041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14044 \begin_layout Plain Layout
14058 \begin_layout Standard
14059 If you need a certain width for columns with a split cell, use the command
14064 (replace '3cm' by the width you need).
14065 In the following table the width of the first column is set to 4
14066 \begin_inset space \thinspace{}
14077 \begin_inset space \thinspace{}
14081 \begin_inset space \thinspace{}
14086 tabcolsep is necessary because the overall width is the width for the text
14087 (in this case the 4
14088 \begin_inset space \thinspace{}
14091 cm) plus two times the separation of the text and the cell border.
14092 The calculation of the width cannot be done in the command option of
14098 so one needs to create a new length which can be used later.
14099 This is done with the \SpecialChar TeX
14103 \begin_layout Standard
14111 \begin_inset Newline newline
14123 \begin_layout Standard
14127 \begin_layout Plain Layout
14136 \begin_layout Plain Layout
14152 \begin_layout Standard
14153 To enable calculations in \SpecialChar LaTeX
14154 one needs to load the package
14159 \begin_inset Index idx
14162 \begin_layout Plain Layout
14169 in the document preamble.
14172 \begin_layout Standard
14173 In this table you can now use the command
14176 \begin_layout Standard
14186 \begin_layout Standard
14188 \begin_inset Separator parbreak
14194 \begin_layout Standard
14197 \begin_inset Tabular
14198 <lyxtabular version="3" rows="2" columns="2">
14199 <features tabularvalignment="middle">
14200 <column alignment="center" valignment="top" width="4cm">
14201 <column alignment="center" valignment="top">
14203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14206 \begin_layout Plain Layout
14210 \begin_layout Plain Layout
14225 \begin_layout Plain Layout
14236 \begin_layout Plain Layout
14248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14251 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14262 \begin_layout Plain Layout
14268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14271 \begin_layout Plain Layout
14285 \begin_layout Standard
14286 Note that the split cell needs to be the widest one in the column.
14287 Otherwise the length of the diagonal line cannot be calculated correctly
14288 like in this table:
14289 \begin_inset Separator parbreak
14295 \begin_layout Standard
14298 \begin_inset Tabular
14299 <lyxtabular version="3" rows="2" columns="2">
14300 <features tabularvalignment="middle">
14301 <column alignment="center" valignment="top" width="0pt">
14302 <column alignment="center" valignment="top">
14304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14307 \begin_layout Plain Layout
14311 \begin_layout Plain Layout
14324 \begin_layout Plain Layout
14335 \begin_layout Plain Layout
14347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14350 \begin_layout Plain Layout
14358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14361 \begin_layout Plain Layout
14367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14370 \begin_layout Plain Layout
14384 \begin_layout Standard
14385 In this case use the
14396 It is then not necessary to add 2
14398 tabcolsep because the cell width is now the width of the column.
14399 In this table a width of 3
14400 \begin_inset space \thinspace{}
14404 \begin_inset Separator parbreak
14410 \begin_layout Standard
14413 \begin_inset Tabular
14414 <lyxtabular version="3" rows="2" columns="2">
14415 <features tabularvalignment="middle">
14416 <column alignment="center" valignment="top" width="0pt">
14417 <column alignment="center" valignment="top">
14419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14422 \begin_layout Plain Layout
14426 \begin_layout Plain Layout
14430 diagbox[width=3cm]{
14439 \begin_layout Plain Layout
14450 \begin_layout Plain Layout
14462 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14465 \begin_layout Plain Layout
14473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14476 \begin_layout Plain Layout
14482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14485 \begin_layout Plain Layout
14499 \begin_layout Standard
14500 For multiple text lines in split cells one needs some extra height to fit
14501 the text to the cell.
14502 This can be achieved with the
14512 (replace '3cm' by the height you need).
14513 In the following table the command
14516 \begin_layout Standard
14521 diagbox[width=3cm,height=1.4cm]{A
14532 \begin_layout Standard
14533 is used in the first cell.
14542 creates hereby the line break.
14546 \begin_layout Plain Layout
14547 Breaking lines with
14551 is only possible when the column has a fixed width.
14557 \begin_inset Separator parbreak
14563 \begin_layout Standard
14566 \begin_inset Tabular
14567 <lyxtabular version="3" rows="2" columns="2">
14568 <features tabularvalignment="middle">
14569 <column alignment="center" valignment="top">
14570 <column alignment="center" valignment="top">
14572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14575 \begin_layout Plain Layout
14579 \begin_layout Plain Layout
14583 diagbox[width=3cm,height=1.4cm]{
14592 \begin_layout Plain Layout
14607 \begin_layout Plain Layout
14618 \begin_layout Plain Layout
14633 \begin_layout Plain Layout
14645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14648 \begin_layout Plain Layout
14656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14659 \begin_layout Plain Layout
14665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14668 \begin_layout Plain Layout
14682 \begin_layout Standard
14686 \begin_layout Plain Layout
14696 \begin_inset Note Note
14699 \begin_layout Plain Layout
14700 The following will be displayed when the \SpecialChar LaTeX
14713 \begin_layout Standard
14714 You need to install the \SpecialChar LaTeX
14719 to see the following part of this section in the output.
14722 \begin_layout Standard
14726 \begin_layout Plain Layout
14738 \begin_layout Standard
14739 For more info about the \SpecialChar LaTeX
14744 , see its documentation,
14745 \begin_inset CommandInset citation
14754 \begin_layout Section
14756 \begin_inset CommandInset label
14758 name "sec:Formal-Tables"
14763 \begin_inset Index idx
14766 \begin_layout Plain Layout
14775 \begin_layout Standard
14776 Tables are often typeset in books similar to Table
14777 \begin_inset space ~
14781 \begin_inset CommandInset ref
14783 reference "tab:Example-booktabs-table"
14788 This kind of tables is called
14789 \begin_inset Quotes eld
14797 \begin_inset Quotes erd
14801 To make a table a formal table use the option
14809 tab of the table dialog.
14812 \begin_layout Standard
14813 \begin_inset Float table
14819 \begin_layout Plain Layout
14820 \begin_inset Caption Standard
14822 \begin_layout Plain Layout
14823 \begin_inset CommandInset label
14825 name "tab:Example-booktabs-table"
14829 Example booktabs-table
14837 \begin_layout Plain Layout
14839 \begin_inset Tabular
14840 <lyxtabular version="3" rows="8" columns="4">
14841 <features booktabs="true" tabularvalignment="middle">
14842 <column alignment="center" valignment="top">
14843 <column alignment="center" valignment="top">
14844 <column alignment="center" valignment="top">
14845 <column alignment="center" valignment="top">
14847 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14850 \begin_layout Plain Layout
14856 <cell alignment="center" valignment="top" topline="true" usebox="none">
14859 \begin_layout Plain Layout
14861 \begin_inset space \thinspace{}
14869 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14872 \begin_layout Plain Layout
14874 \begin_inset space \thinspace{}
14882 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14885 \begin_layout Plain Layout
14893 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14896 \begin_layout Plain Layout
14900 \begin_layout Plain Layout
14913 \begin_layout Plain Layout
14922 Detector thickness in µm
14927 <cell alignment="center" valignment="top" usebox="none">
14930 \begin_layout Plain Layout
14936 <cell alignment="center" valignment="top" usebox="none">
14939 \begin_layout Plain Layout
14945 <cell alignment="center" valignment="top" usebox="none">
14948 \begin_layout Plain Layout
14956 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14959 \begin_layout Plain Layout
14965 <cell alignment="center" valignment="top" topline="true" usebox="none">
14968 \begin_layout Plain Layout
14974 <cell alignment="center" valignment="top" topline="true" usebox="none">
14977 \begin_layout Plain Layout
14983 <cell alignment="center" valignment="top" topline="true" usebox="none">
14986 \begin_layout Plain Layout
14993 <row topspace="default">
14994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14997 \begin_layout Plain Layout
14998 Spatial resolution in µm
15003 <cell alignment="center" valignment="top" usebox="none">
15006 \begin_layout Plain Layout
15012 <cell alignment="center" valignment="top" usebox="none">
15015 \begin_layout Plain Layout
15021 <cell alignment="center" valignment="top" usebox="none">
15024 \begin_layout Plain Layout
15031 <row topspace="default">
15032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15035 \begin_layout Plain Layout
15037 \begin_inset Formula $f_{\mathrm{max}}$
15045 <cell alignment="center" valignment="top" usebox="none">
15048 \begin_layout Plain Layout
15054 <cell alignment="center" valignment="top" usebox="none">
15057 \begin_layout Plain Layout
15063 <cell alignment="center" valignment="top" usebox="none">
15066 \begin_layout Plain Layout
15073 <row topspace="default">
15074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15077 \begin_layout Plain Layout
15081 \begin_layout Plain Layout
15085 cmidrule[2pt](l{10pt}){1-1}
15090 LSF-spatial resolution
15095 <cell alignment="center" valignment="top" usebox="none">
15098 \begin_layout Plain Layout
15104 <cell alignment="center" valignment="top" usebox="none">
15107 \begin_layout Plain Layout
15113 <cell alignment="center" valignment="top" usebox="none">
15116 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15127 \begin_layout Plain Layout
15133 <cell alignment="center" valignment="top" usebox="none">
15136 \begin_layout Plain Layout
15142 <cell alignment="center" valignment="top" usebox="none">
15145 \begin_layout Plain Layout
15151 <cell alignment="center" valignment="top" usebox="none">
15154 \begin_layout Plain Layout
15162 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15165 \begin_layout Plain Layout
15171 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15174 \begin_layout Plain Layout
15180 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15183 \begin_layout Plain Layout
15189 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15192 \begin_layout Plain Layout
15211 \begin_layout Standard
15212 Spaces to table rows can be added using the
15216 tab of the table dialog as described in section
15217 \begin_inset space ~
15221 \begin_inset CommandInset ref
15223 reference "subsec:Row-Spacing"
15230 \begin_layout Standard
15231 Unlike normal tables, formal tables have no vertical table lines.
15232 The horizontal table lines can be set as for normal tables but they appear
15233 with different widths in the output:
15234 \begin_inset Newline newline
15237 The first and the last table line have a default width of 0.08
15238 \begin_inset space \thinspace{}
15241 em while the other lines have a default width of 0.05
15242 \begin_inset space \thinspace{}
15248 \begin_layout Standard
15249 The default widths can be changed with the following preamble lines
15252 \begin_layout Standard
15262 \begin_inset Newline newline
15274 \begin_layout Standard
15275 This example is for the first line, the so called
15280 If you want to change the width for the last line, replace
15289 To change the width for the other lines replace
15298 You can use all units listed in appendix
15299 \begin_inset space ~
15303 \begin_inset CommandInset ref
15305 reference "cha:Units-available-in"
15312 \begin_layout Standard
15313 Lines that do not span all table columns can be created by setting a table
15314 line for multicolumn cells.
15316 will then internally use the command
15322 to create this line.
15326 \begin_layout Standard
15331 cmidrule[height](trim){startcol-endcol}
15334 \begin_layout Standard
15341 are currently not supported by \SpecialChar LyX
15342 so you have to use \SpecialChar TeX
15351 s can manually be created by inserting the command as \SpecialChar TeX
15353 cell entry of the first cell of a row.
15354 The line is then drawn in the output above the current row.
15357 \begin_layout Standard
15358 The default for the optional
15363 \begin_inset space \thinspace{}
15371 is the number of the column where the line starts and
15375 the column number where the line ends.
15380 always needs to be specified, also when the line should span only one column.
15381 The optional parameter
15398 Using for example the parameter
15402 means that the line is trimmed from its left end by 2
15403 \begin_inset space \thinspace{}
15407 If you don't specify the
15411 the line is trimmed by the default of 0.5
15412 \begin_inset space \thinspace{}
15418 \begin_layout Standard
15419 \begin_inset VSpace bigskip
15423 \begin_inset space ~
15427 \begin_inset CommandInset ref
15429 reference "tab:Example-booktabs-table"
15433 was created using the commands
15436 \begin_layout Standard
15446 \begin_layout Standard
15447 at the beginning of the second row and
15450 \begin_layout Standard
15455 cmidrule[2pt](l{10pt}){1-1}
15458 \begin_layout Standard
15462 \begin_layout Standard
15463 \begin_inset VSpace bigskip
15469 \begin_layout Standard
15470 You might want to have overlapping
15477 \begin_inset space ~
15481 \begin_inset CommandInset ref
15483 reference "tab:Special-booktabs-table"
15488 This can be achieved with the \SpecialChar TeX
15492 \begin_layout Standard
15500 \begin_layout Standard
15501 The command that was used for the second row of Table
15502 \begin_inset space ~
15506 \begin_inset CommandInset ref
15508 reference "tab:Special-booktabs-table"
15515 \begin_layout Standard
15529 \begin_layout Standard
15530 The command for the sixth row is
15533 \begin_layout Standard
15545 \begin_layout Standard
15546 \begin_inset VSpace bigskip
15552 \begin_layout Standard
15553 If you are in any way not satisfied with the border line spacing, you can
15554 use the following command to produce lines that span over all table columns
15559 \begin_layout Standard
15564 specialrule{width}{space above}{space below}
15567 \begin_layout Standard
15568 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15575 \begin_inset CommandInset citation
15582 \begin_inset Index idx
15585 \begin_layout Plain Layout
15587 -packages ! booktabs
15595 \begin_layout Standard
15596 \begin_inset Float table
15602 \begin_layout Plain Layout
15603 \begin_inset Caption Standard
15605 \begin_layout Plain Layout
15606 \begin_inset CommandInset label
15608 name "tab:Special-booktabs-table"
15612 Special booktabs-table
15620 \begin_layout Plain Layout
15622 \begin_inset Tabular
15623 <lyxtabular version="3" rows="8" columns="4">
15624 <features booktabs="true" tabularvalignment="middle">
15625 <column alignment="center" valignment="top">
15626 <column alignment="center" valignment="top">
15627 <column alignment="center" valignment="top">
15628 <column alignment="center" valignment="top">
15630 <cell alignment="center" valignment="top" topline="true" usebox="none">
15633 \begin_layout Plain Layout
15639 <cell alignment="center" valignment="top" topline="true" usebox="none">
15642 \begin_layout Plain Layout
15644 \begin_inset space \thinspace{}
15652 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15655 \begin_layout Plain Layout
15657 \begin_inset space \thinspace{}
15665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15668 \begin_layout Plain Layout
15676 <cell alignment="center" valignment="top" usebox="none">
15679 \begin_layout Plain Layout
15683 \begin_layout Plain Layout
15696 \begin_layout Plain Layout
15709 \begin_layout Plain Layout
15722 \begin_layout Plain Layout
15731 Detector thickness in µm
15736 <cell alignment="center" valignment="top" usebox="none">
15739 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" usebox="none">
15757 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" topline="true" usebox="none">
15768 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" topline="true" usebox="none">
15777 \begin_layout Plain Layout
15783 <cell alignment="center" valignment="top" topline="true" usebox="none">
15786 \begin_layout Plain Layout
15792 <cell alignment="center" valignment="top" topline="true" usebox="none">
15795 \begin_layout Plain Layout
15802 <row topspace="default">
15803 <cell alignment="center" valignment="top" usebox="none">
15806 \begin_layout Plain Layout
15807 Spatial resolution in µm
15812 <cell alignment="center" valignment="top" usebox="none">
15815 \begin_layout Plain Layout
15821 <cell alignment="center" valignment="top" usebox="none">
15824 \begin_layout Plain Layout
15830 <cell alignment="center" valignment="top" usebox="none">
15833 \begin_layout Plain Layout
15840 <row topspace="default">
15841 <cell alignment="center" valignment="top" usebox="none">
15844 \begin_layout Plain Layout
15846 \begin_inset Formula $f_{\mathrm{max}}$
15854 <cell alignment="center" valignment="top" usebox="none">
15857 \begin_layout Plain Layout
15863 <cell alignment="center" valignment="top" usebox="none">
15866 \begin_layout Plain Layout
15872 <cell alignment="center" valignment="top" usebox="none">
15875 \begin_layout Plain Layout
15883 <cell alignment="center" valignment="top" topline="true" usebox="none">
15886 \begin_layout Plain Layout
15890 \begin_layout Plain Layout
15903 \begin_layout Plain Layout
15912 LSF-spatial resolution
15917 <cell alignment="center" valignment="top" topline="true" usebox="none">
15920 \begin_layout Plain Layout
15926 <cell alignment="center" valignment="top" topline="true" usebox="none">
15929 \begin_layout Plain Layout
15935 <cell alignment="center" valignment="top" topline="true" usebox="none">
15938 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" usebox="none">
15949 \begin_layout Plain Layout
15955 <cell alignment="center" valignment="top" usebox="none">
15958 \begin_layout Plain Layout
15964 <cell alignment="center" valignment="top" usebox="none">
15967 \begin_layout Plain Layout
15973 <cell alignment="center" valignment="top" usebox="none">
15976 \begin_layout Plain Layout
15984 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15987 \begin_layout Plain Layout
15993 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15996 \begin_layout Plain Layout
16002 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16005 \begin_layout Plain Layout
16011 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16014 \begin_layout Plain Layout
16033 \begin_layout Section
16034 Vertical Table Alignment
16035 \begin_inset Index idx
16038 \begin_layout Plain Layout
16047 \begin_layout Standard
16048 To align tables vertically in a text line, the table must be inside a box.
16049 The box can then be vertically aligned as described in section
16050 \begin_inset space ~
16054 \begin_inset CommandInset ref
16056 reference "sec:Box-Dialog"
16063 \begin_layout Standard
16064 In the following example the tables are inside a minipage
16068 \begin_layout Plain Layout
16069 Minipages are described in section
16070 \begin_inset space ~
16074 \begin_inset CommandInset ref
16076 reference "sec:Minipages"
16085 box that has a width of 15
16086 \begin_inset space \thinspace{}
16092 \begin_layout Itemize
16094 \begin_inset Box Frameless
16104 height_special "totalheight"
16109 backgroundcolor "none"
16112 \begin_layout Plain Layout
16113 \begin_inset Tabular
16114 <lyxtabular version="3" rows="3" columns="3">
16115 <features tabularvalignment="middle">
16116 <column alignment="center" valignment="top">
16117 <column alignment="center" valignment="top">
16118 <column alignment="center" valignment="top">
16120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16123 \begin_layout Plain Layout
16129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16132 \begin_layout Plain Layout
16138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16141 \begin_layout Plain Layout
16149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16152 \begin_layout Plain Layout
16158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16161 \begin_layout Plain Layout
16167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16170 \begin_layout Plain Layout
16178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16181 \begin_layout Plain Layout
16187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16190 \begin_layout Plain Layout
16196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16199 \begin_layout Plain Layout
16219 \begin_layout Plain Layout
16231 \begin_inset Box Frameless
16241 height_special "totalheight"
16246 backgroundcolor "none"
16249 \begin_layout Plain Layout
16250 \begin_inset Tabular
16251 <lyxtabular version="3" rows="3" columns="3">
16252 <features tabularvalignment="middle">
16253 <column alignment="center" valignment="top">
16254 <column alignment="center" valignment="top">
16255 <column alignment="center" valignment="top">
16257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16260 \begin_layout Plain Layout
16266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16269 \begin_layout Plain Layout
16275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16278 \begin_layout Plain Layout
16286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16289 \begin_layout Plain Layout
16295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16298 \begin_layout Plain Layout
16304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16307 \begin_layout Plain Layout
16315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16318 \begin_layout Plain Layout
16324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16327 \begin_layout Plain Layout
16333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16336 \begin_layout Plain Layout
16356 \begin_layout Plain Layout
16366 \begin_layout Itemize
16368 \begin_inset Box Frameless
16378 height_special "totalheight"
16383 backgroundcolor "none"
16386 \begin_layout Plain Layout
16387 \begin_inset Tabular
16388 <lyxtabular version="3" rows="3" columns="3">
16389 <features tabularvalignment="middle">
16390 <column alignment="center" valignment="top">
16391 <column alignment="center" valignment="top">
16392 <column alignment="center" valignment="top">
16394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16397 \begin_layout Plain Layout
16403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16406 \begin_layout Plain Layout
16412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16415 \begin_layout Plain Layout
16423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16426 \begin_layout Plain Layout
16432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16435 \begin_layout Plain Layout
16441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16444 \begin_layout Plain Layout
16452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16455 \begin_layout Plain Layout
16461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16464 \begin_layout Plain Layout
16470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16473 \begin_layout Plain Layout
16492 \begin_layout Itemize
16494 \begin_inset Box Frameless
16504 height_special "totalheight"
16509 backgroundcolor "none"
16512 \begin_layout Plain Layout
16513 \begin_inset Tabular
16514 <lyxtabular version="3" rows="3" columns="3">
16515 <features tabularvalignment="middle">
16516 <column alignment="center" valignment="top">
16517 <column alignment="center" valignment="top">
16518 <column alignment="center" valignment="top">
16520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16523 \begin_layout Plain Layout
16529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16532 \begin_layout Plain Layout
16538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16541 \begin_layout Plain Layout
16549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16552 \begin_layout Plain Layout
16558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16561 \begin_layout Plain Layout
16567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16570 \begin_layout Plain Layout
16578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16581 \begin_layout Plain Layout
16587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16590 \begin_layout Plain Layout
16596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16599 \begin_layout Plain Layout
16619 \begin_layout Plain Layout
16631 \begin_inset Box Frameless
16641 height_special "totalheight"
16646 backgroundcolor "none"
16649 \begin_layout Plain Layout
16650 \begin_inset Tabular
16651 <lyxtabular version="3" rows="3" columns="3">
16652 <features tabularvalignment="middle">
16653 <column alignment="center" valignment="top">
16654 <column alignment="center" valignment="top">
16655 <column alignment="center" valignment="top">
16657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16660 \begin_layout Plain Layout
16666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16669 \begin_layout Plain Layout
16675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16678 \begin_layout Plain Layout
16686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16689 \begin_layout Plain Layout
16695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16698 \begin_layout Plain Layout
16704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16707 \begin_layout Plain Layout
16715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16718 \begin_layout Plain Layout
16724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16727 \begin_layout Plain Layout
16733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16736 \begin_layout Plain Layout
16756 \begin_layout Plain Layout
16766 \begin_layout Standard
16767 As you will see, the content of the first and last table row is not correctly
16769 To get this alignment, the minipage box must be set into a raisebox.
16773 \begin_layout Plain Layout
16774 Raiseboxes are described in section
16775 \begin_inset space ~
16779 \begin_inset CommandInset ref
16781 reference "subsec:Vertical-Alignment"
16790 In the example above the second table in the first item is aligned using
16791 the \SpecialChar TeX
16795 \begin_layout Standard
16805 \begin_layout Standard
16807 After the box the closing brace
16811 is inserted as \SpecialChar TeX
16813 For the second table in the last item the command
16816 \begin_layout Standard
16826 \begin_layout Standard
16830 \begin_layout Standard
16831 \begin_inset Note Greyedout
16834 \begin_layout Plain Layout
16839 The alignment of the table row content to the surrounding text line is
16841 The required value for the
16847 command for this alignment depends on the document font, the font size,
16848 and the table line thickness.
16856 \begin_layout Section
16858 \begin_inset CommandInset label
16860 name "sec:Colored-Tables"
16865 \begin_inset Index idx
16868 \begin_layout Plain Layout
16877 \begin_layout Subsection
16879 \begin_inset Index idx
16882 \begin_layout Plain Layout
16883 Table Color ! for Cells
16889 \begin_inset Index idx
16892 \begin_layout Plain Layout
16893 Color ! for Table Cells
16901 \begin_layout Standard
16902 \begin_inset Float table
16908 \begin_layout Plain Layout
16909 \begin_inset Caption Standard
16911 \begin_layout Plain Layout
16912 \begin_inset CommandInset label
16914 name "tab:Table-colored-without"
16918 Table colored without using the package
16923 \begin_inset Argument 1
16926 \begin_layout Plain Layout
16927 Table without colortbl
16940 \begin_layout Plain Layout
16942 \begin_inset Tabular
16943 <lyxtabular version="3" rows="3" columns="3">
16944 <features tabularvalignment="middle">
16945 <column alignment="center" valignment="top">
16946 <column alignment="center" valignment="top">
16947 <column alignment="center" valignment="top">
16949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16952 \begin_layout Plain Layout
16960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16963 \begin_layout Plain Layout
16971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16974 \begin_layout Plain Layout
16984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16987 \begin_layout Plain Layout
16995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16998 \begin_layout Plain Layout
17006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17009 \begin_layout Plain Layout
17019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17022 \begin_layout Plain Layout
17030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17033 \begin_layout Plain Layout
17041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17044 \begin_layout Plain Layout
17065 \begin_layout Standard
17066 If you only need colored text, mark the cells and choose a color in the
17070 \begin_inset space ~
17075 dialog (toolbar button
17078 arg "dialog-show character"
17082 This was used to create Table
17083 \begin_inset space ~
17087 \begin_inset CommandInset ref
17089 reference "tab:Table-colored-without"
17094 In any other case you have to use the \SpecialChar LaTeX
17100 \begin_inset Index idx
17103 \begin_layout Plain Layout
17105 -packages ! colortbl
17113 \begin_layout Standard
17117 \begin_layout Plain Layout
17127 \begin_inset Note Note
17130 \begin_layout Plain Layout
17131 The following section part will only be displayed when the \SpecialChar LaTeX
17144 \begin_layout Standard
17145 To create colored tables,
17149 must be loaded in the preamble with the line
17152 \begin_layout Standard
17157 usepackage{colortbl}
17160 \begin_layout Standard
17161 The color of a column is adjusted with the command
17164 \begin_layout Standard
17169 columncolor{name of color}
17172 \begin_layout Standard
17178 More about the command
17182 is contained in section
17183 \begin_inset space ~
17187 \begin_inset CommandInset ref
17189 reference "subsec:Multicolumn-Calculations"
17196 \begin_layout Standard
17197 The following color names are predefined:
17200 \begin_layout Standard
17234 \begin_layout Standard
17235 \begin_inset VSpace medskip
17241 \begin_layout Standard
17242 If you add the options
17245 \begin_layout Standard
17248 usenames,dvipsnames
17251 \begin_layout Standard
17252 to the document class options in the document settings, you can additionally
17254 \begin_inset space ~
17258 These colors are listed in appendix
17259 \begin_inset space ~
17263 \begin_inset CommandInset ref
17265 reference "chap:List-of-dvips-colornames"
17270 One of these colors,
17274 , is used as example in Table
17275 \begin_inset space ~
17279 \begin_inset CommandInset ref
17281 reference "tab:Table-colored-using"
17288 \begin_layout Standard
17289 \begin_inset VSpace medskip
17295 \begin_layout Standard
17296 You can also define your own color with the command
17299 \begin_layout Standard
17304 definecolor{color name}{color model}{color values}
17307 \begin_layout Standard
17308 The color model can be
17311 \begin_layout Labeling
17312 \labelwidthstring 00.00.0000
17313 cmyk: cyan, magenta, yellow, black
17316 \begin_layout Labeling
17317 \labelwidthstring 00.00.0000
17318 rgb: red, green blue
17321 \begin_layout Labeling
17322 \labelwidthstring 00.00.0000
17326 \begin_layout Standard
17327 and the color values are comma separated numbers between 0 and 1 describing
17328 the factor for the corresponding color of the color model.
17331 \begin_layout Standard
17333 \begin_inset space \thinspace{}
17337 \begin_inset space \space{}
17344 " in the preamble with
17347 \begin_layout Standard
17352 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17355 \begin_layout Standard
17363 \begin_layout Standard
17368 definecolor{lightgray}{gray}{0.8}
17371 \begin_layout Standard
17372 \begin_inset VSpace medskip
17378 \begin_layout Standard
17379 Lines are colored with the command
17382 \begin_layout Standard
17387 rowcolor{name of color}
17390 \begin_layout Standard
17391 and cells are colored with the command
17394 \begin_layout Standard
17399 cellcolor{name of color}
17402 \begin_layout Standard
17403 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17407 \begin_layout Standard
17408 To color characters in the table, mark the cells and use the
17411 \begin_inset space ~
17417 If a cell contains \SpecialChar TeX
17418 Code mark only the characters, otherwise the colored
17420 Code will cause \SpecialChar LaTeX
17424 \begin_layout Standard
17425 \begin_inset Note Greyedout
17428 \begin_layout Plain Layout
17433 Not all DVI-viewers are able to display self-defined colors.
17441 \begin_layout Standard
17442 \begin_inset VSpace bigskip
17448 \begin_layout Standard
17450 \begin_inset space ~
17454 \begin_inset CommandInset ref
17456 reference "tab:Table-colored-using"
17460 do the following: The color of the first column should be
17468 \begin_layout Standard
17473 columncolor{darkgreen}
17478 \begin_layout Standard
17479 as \SpecialChar LaTeX
17480 -argument for this column.
17481 The first row should be light blue, therefore the \SpecialChar TeX
17485 \begin_layout Standard
17493 \begin_layout Standard
17494 is inserted to the first cell of this row.
17495 Note that this overwrites the column color for the first cell.
17496 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17501 \begin_layout Standard
17509 \begin_layout Standard
17510 The characters could now be colored using the menu
17512 Edit\SpecialChar menuseparator
17514 \begin_inset space ~
17522 \begin_layout Standard
17523 \begin_inset Float table
17529 \begin_layout Plain Layout
17530 \begin_inset Caption Standard
17532 \begin_layout Plain Layout
17533 \begin_inset CommandInset label
17535 name "tab:Table-colored-using"
17539 Table colored using the package
17544 \begin_inset Argument 1
17547 \begin_layout Plain Layout
17548 Table with colortbl
17561 \begin_layout Plain Layout
17563 \begin_inset Tabular
17564 <lyxtabular version="3" rows="3" columns="3">
17565 <features tabularvalignment="middle">
17566 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17567 <column alignment="center" valignment="top">
17568 <column alignment="center" valignment="top">
17570 <cell alignment="center" valignment="top" usebox="none">
17573 \begin_layout Plain Layout
17577 \begin_layout Plain Layout
17593 <cell alignment="center" valignment="top" usebox="none">
17596 \begin_layout Plain Layout
17604 <cell alignment="center" valignment="top" usebox="none">
17607 \begin_layout Plain Layout
17617 <cell alignment="center" valignment="top" usebox="none">
17620 \begin_layout Plain Layout
17628 <cell alignment="center" valignment="top" usebox="none">
17631 \begin_layout Plain Layout
17639 <cell alignment="center" valignment="top" usebox="none">
17642 \begin_layout Plain Layout
17652 <cell alignment="center" valignment="top" usebox="none">
17655 \begin_layout Plain Layout
17663 <cell alignment="center" valignment="top" usebox="none">
17666 \begin_layout Plain Layout
17674 <cell alignment="center" valignment="top" usebox="none">
17677 \begin_layout Plain Layout
17681 \begin_layout Plain Layout
17710 \begin_layout Standard
17714 \begin_layout Plain Layout
17724 \begin_inset Note Note
17727 \begin_layout Plain Layout
17728 The following will be displayed when the \SpecialChar LaTeX
17741 \begin_layout Standard
17742 You need to install the package
17746 to see the content of this section in the output.
17749 \begin_layout Standard
17753 \begin_layout Plain Layout
17765 \begin_layout Subsection
17767 \begin_inset Index idx
17770 \begin_layout Plain Layout
17771 Table Color ! for Rows
17777 \begin_inset Index idx
17780 \begin_layout Plain Layout
17781 Color ! for Table Rows
17789 \begin_layout Standard
17790 In case every second table row needs to be colored there is an alternative
17791 to the method described in the previous section: One loads the package
17797 \begin_inset Index idx
17800 \begin_layout Plain Layout
17806 \begin_layout Plain Layout
17820 in the document preamble with the command
17823 \begin_layout Standard
17828 usepackage[table]{xcolor}
17831 \begin_layout Standard
17836 automatically loads also the package
17841 \begin_inset Index idx
17844 \begin_layout Plain Layout
17846 -packages ! colortbl
17855 must be installed in your \SpecialChar LaTeX
17856 -distribution, otherwise you get \SpecialChar LaTeX
17860 \begin_layout Standard
17864 \begin_layout Plain Layout
17874 \begin_inset Note Note
17877 \begin_layout Plain Layout
17878 The following section part will only be displayed when the \SpecialChar LaTeX
17891 \begin_layout Standard
17892 The table rows are colored with the command
17895 \begin_layout Standard
17900 rowcolors[commands]{row number}{odd row color}{even row color}
17903 \begin_layout Standard
17904 that is either inserted in the document preamble or as \SpecialChar TeX
17906 first table to be colored.
17908 \begin_inset space ~
17911 number is the number of the first row which should be colored according
17912 to the odd row color.
17913 commands can be additional commands that are executed before every table
17915 So for example the command
17918 \begin_layout Standard
17923 rowcolors{1}{white}{lightgray}
17926 \begin_layout Standard
17927 leads to the coloring scheme of Table
17928 \begin_inset space ~
17932 \begin_inset CommandInset ref
17934 reference "tab:Table-rowcolors"
17942 \begin_layout Standard
17949 hline]{1}{lightgray}{cyan}
17952 \begin_layout Standard
17953 leads to the coloring scheme of Table
17954 \begin_inset space ~
17958 \begin_inset CommandInset ref
17960 reference "tab:Table-rowcolors-2"
17966 \begin_inset space ~
17970 \begin_inset space ~
17974 \begin_inset space ~
17978 \begin_inset space ~
17981 color are left empty, no color will be used so that the command
17984 \begin_layout Standard
17992 \begin_layout Standard
17993 deletes all colors.
18000 affects all tables following that command.
18003 \begin_layout Standard
18007 \begin_layout Plain Layout
18011 rowcolors{1}{white}{lightgray}
18019 \begin_layout Standard
18020 \begin_inset Float table
18026 \begin_layout Plain Layout
18027 \begin_inset Caption Standard
18029 \begin_layout Plain Layout
18030 \begin_inset CommandInset label
18032 name "tab:Table-rowcolors"
18036 Table where every second row is colored light gray.
18044 \begin_layout Plain Layout
18046 \begin_inset Tabular
18047 <lyxtabular version="3" rows="4" columns="3">
18048 <features tabularvalignment="middle">
18049 <column alignment="center" valignment="top">
18050 <column alignment="center" valignment="top" width="0pt">
18051 <column alignment="center" valignment="top" width="0pt">
18053 <cell alignment="center" valignment="top" usebox="none">
18056 \begin_layout Plain Layout
18062 <cell alignment="center" valignment="top" usebox="none">
18065 \begin_layout Plain Layout
18071 <cell alignment="center" valignment="top" usebox="none">
18074 \begin_layout Plain Layout
18082 <cell alignment="center" valignment="top" usebox="none">
18085 \begin_layout Plain Layout
18091 <cell alignment="center" valignment="top" usebox="none">
18094 \begin_layout Plain Layout
18100 <cell alignment="center" valignment="top" usebox="none">
18103 \begin_layout Plain Layout
18111 <cell alignment="center" valignment="top" usebox="none">
18114 \begin_layout Plain Layout
18120 <cell alignment="center" valignment="top" usebox="none">
18123 \begin_layout Plain Layout
18129 <cell alignment="center" valignment="top" usebox="none">
18132 \begin_layout Plain Layout
18140 <cell alignment="center" valignment="top" usebox="none">
18143 \begin_layout Plain Layout
18149 <cell alignment="center" valignment="top" usebox="none">
18152 \begin_layout Plain Layout
18158 <cell alignment="center" valignment="top" usebox="none">
18161 \begin_layout Plain Layout
18180 \begin_layout Standard
18184 \begin_layout Plain Layout
18190 hline]{1}{lightgray}{cyan}
18198 \begin_layout Standard
18199 \begin_inset Float table
18205 \begin_layout Plain Layout
18206 \begin_inset Caption Standard
18208 \begin_layout Plain Layout
18209 \begin_inset CommandInset label
18211 name "tab:Table-rowcolors-2"
18215 Table where every second row is colored cyan and at which there is a line
18224 \begin_layout Plain Layout
18226 \begin_inset Tabular
18227 <lyxtabular version="3" rows="4" columns="3">
18228 <features tabularvalignment="middle">
18229 <column alignment="center" valignment="top">
18230 <column alignment="center" valignment="top">
18231 <column alignment="center" valignment="top" width="0pt">
18233 <cell alignment="center" valignment="top" usebox="none">
18236 \begin_layout Plain Layout
18242 <cell alignment="center" valignment="top" usebox="none">
18245 \begin_layout Plain Layout
18251 <cell alignment="center" valignment="top" usebox="none">
18254 \begin_layout Plain Layout
18262 <cell alignment="center" valignment="top" usebox="none">
18265 \begin_layout Plain Layout
18271 <cell alignment="center" valignment="top" usebox="none">
18274 \begin_layout Plain Layout
18280 <cell alignment="center" valignment="top" usebox="none">
18283 \begin_layout Plain Layout
18291 <cell alignment="center" valignment="top" usebox="none">
18294 \begin_layout Plain Layout
18300 <cell alignment="center" valignment="top" usebox="none">
18303 \begin_layout Plain Layout
18309 <cell alignment="center" valignment="top" usebox="none">
18312 \begin_layout Plain Layout
18320 <cell alignment="center" valignment="top" usebox="none">
18323 \begin_layout Plain Layout
18329 <cell alignment="center" valignment="top" usebox="none">
18332 \begin_layout Plain Layout
18338 <cell alignment="center" valignment="top" usebox="none">
18341 \begin_layout Plain Layout
18360 \begin_layout Standard
18364 \begin_layout Plain Layout
18374 \begin_inset Note Note
18377 \begin_layout Plain Layout
18378 turns off the row coloring
18386 \begin_layout Standard
18390 \begin_layout Plain Layout
18400 \begin_inset Note Note
18403 \begin_layout Plain Layout
18404 The following will be displayed when the \SpecialChar LaTeX
18417 \begin_layout Standard
18418 You need to install the package
18422 to see the content of this section in the output.
18425 \begin_layout Standard
18429 \begin_layout Plain Layout
18441 \begin_layout Subsection
18443 \begin_inset Index idx
18446 \begin_layout Plain Layout
18447 Table Color ! for Lines
18453 \begin_inset Index idx
18456 \begin_layout Plain Layout
18457 Color ! for Table Lines
18465 \begin_layout Standard
18466 As described in section
18467 \begin_inset space ~
18471 \begin_inset CommandInset ref
18473 reference "subsec:Line-Thickness"
18477 , the line thickness for all lines in a table can be adjusted with the length
18486 \begin_inset space \thinspace{}
18489 pt for all tables of this section.
18493 \begin_layout Plain Layout
18499 arrayrulewidth}{1.5pt}
18507 \begin_layout Standard
18508 To color vertical lines for example with green, create the following column
18509 format in the document preamble, according to the description in section
18510 \begin_inset space ~
18514 \begin_inset CommandInset ref
18516 reference "subsec:Customized-Format"
18523 \begin_layout Standard
18528 newcolumntype{W}{!{
18535 \begin_layout Standard
18537 \begin_inset space ~
18541 \begin_inset CommandInset ref
18543 reference "tab:Table-with-vertical-colored"
18547 the \SpecialChar LaTeX
18552 was used for the last column and
18556 for the other columns.
18559 \begin_layout Standard
18560 If you want to have several colors, define more column formats.
18563 \begin_layout Standard
18564 \begin_inset Float table
18570 \begin_layout Plain Layout
18571 \begin_inset Caption Standard
18573 \begin_layout Plain Layout
18574 \begin_inset CommandInset label
18576 name "tab:Table-with-vertical-colored"
18580 Table with colored vertical lines
18588 \begin_layout Plain Layout
18590 \begin_inset Tabular
18591 <lyxtabular version="3" rows="3" columns="3">
18592 <features tabularvalignment="middle">
18593 <column alignment="center" valignment="top" special="Wc">
18594 <column alignment="center" valignment="top" special="Wc">
18595 <column alignment="center" valignment="top" special="WcW">
18597 <cell alignment="center" valignment="top" topline="true" usebox="none">
18600 \begin_layout Plain Layout
18606 <cell alignment="center" valignment="top" topline="true" usebox="none">
18609 \begin_layout Plain Layout
18615 <cell alignment="center" valignment="top" topline="true" usebox="none">
18618 \begin_layout Plain Layout
18626 <cell alignment="center" valignment="top" topline="true" usebox="none">
18629 \begin_layout Plain Layout
18635 <cell alignment="center" valignment="top" topline="true" usebox="none">
18638 \begin_layout Plain Layout
18644 <cell alignment="center" valignment="top" topline="true" usebox="none">
18647 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18658 \begin_layout Plain Layout
18664 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18667 \begin_layout Plain Layout
18673 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18676 \begin_layout Plain Layout
18695 \begin_layout Standard
18696 \begin_inset VSpace bigskip
18699 To color horizontal lines for example with red, as in Table
18700 \begin_inset space ~
18704 \begin_inset CommandInset ref
18706 reference "tab:Table-with-horizontal-colored"
18710 , insert these commands in \SpecialChar TeX
18711 Code before the table or table float:
18714 \begin_layout Standard
18724 \begin_inset Newline newline
18732 \begin_inset Newline newline
18736 \begin_inset Phantom HPhantom
18739 \begin_layout Plain Layout
18742 \begin_inset space ~
18752 arrayrulecolor{red}
18756 arrayrulecolor{black}}
18759 \begin_layout Standard
18763 \begin_layout Plain Layout
18774 \begin_layout Plain Layout
18783 \begin_layout Plain Layout
18787 arrayrulecolor{red}
18791 arrayrulecolor{black}}
18797 \begin_inset Float table
18803 \begin_layout Plain Layout
18804 \begin_inset Caption Standard
18806 \begin_layout Plain Layout
18807 \begin_inset CommandInset label
18809 name "tab:Table-with-horizontal-colored"
18813 Table with colored horizontal lines
18821 \begin_layout Plain Layout
18823 \begin_inset Tabular
18824 <lyxtabular version="3" rows="3" columns="3">
18825 <features tabularvalignment="middle">
18826 <column alignment="center" valignment="top">
18827 <column alignment="center" valignment="top">
18828 <column alignment="center" valignment="top">
18830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18833 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18842 \begin_layout Plain Layout
18848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18851 \begin_layout Plain Layout
18859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18862 \begin_layout Plain Layout
18868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18871 \begin_layout Plain Layout
18877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18880 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18891 \begin_layout Plain Layout
18897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18900 \begin_layout Plain Layout
18906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18909 \begin_layout Plain Layout
18928 \begin_layout Standard
18929 To return to the default line color black, insert this command in \SpecialChar TeX
18931 after the table or table float:
18934 \begin_layout Standard
18946 \begin_layout Standard
18948 \begin_inset space ~
18952 \begin_inset CommandInset ref
18954 reference "tab:Table-with-colored"
18958 is an example with colored vertical and horizontal lines.
18961 \begin_layout Standard
18962 \begin_inset Float table
18968 \begin_layout Plain Layout
18969 \begin_inset Caption Standard
18971 \begin_layout Plain Layout
18972 \begin_inset CommandInset label
18974 name "tab:Table-with-colored"
18978 Table with colored lines
18986 \begin_layout Plain Layout
18988 \begin_inset Tabular
18989 <lyxtabular version="3" rows="3" columns="3">
18990 <features tabularvalignment="middle">
18991 <column alignment="center" valignment="top" special="Wc">
18992 <column alignment="center" valignment="top" special="Wc">
18993 <column alignment="center" valignment="top" special="WcW">
18995 <cell alignment="center" valignment="top" topline="true" usebox="none">
18998 \begin_layout Plain Layout
19004 <cell alignment="center" valignment="top" topline="true" usebox="none">
19007 \begin_layout Plain Layout
19013 <cell alignment="center" valignment="top" topline="true" usebox="none">
19016 \begin_layout Plain Layout
19024 <cell alignment="center" valignment="top" topline="true" usebox="none">
19027 \begin_layout Plain Layout
19033 <cell alignment="center" valignment="top" topline="true" usebox="none">
19036 \begin_layout Plain Layout
19042 <cell alignment="center" valignment="top" topline="true" usebox="none">
19045 \begin_layout Plain Layout
19052 <row topspace="default">
19053 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19056 \begin_layout Plain Layout
19062 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19065 \begin_layout Plain Layout
19071 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19074 \begin_layout Plain Layout
19093 \begin_layout Standard
19097 \begin_layout Plain Layout
19113 \begin_layout Standard
19117 \begin_layout Plain Layout
19123 arrayrulewidth}{0.4pt}
19131 \begin_layout Section
19132 Rotated Table Cells
19133 \begin_inset CommandInset label
19135 name "sec:Rotated-Table-Cells"
19140 \begin_inset Index idx
19143 \begin_layout Plain Layout
19144 Table ! Rotated Cells
19150 \begin_inset Index idx
19153 \begin_layout Plain Layout
19162 \begin_layout Standard
19163 \begin_inset Note Greyedout
19166 \begin_layout Plain Layout
19171 Not all DVI-viewers are able to display rotations.
19179 \begin_layout Standard
19181 \begin_inset space ~
19185 \begin_inset CommandInset ref
19187 reference "tab:Table-with-rotated-multi"
19191 is an example where 3
19192 \begin_inset space ~
19195 cells were rotated by 45
19196 \begin_inset space \thinspace{}
19202 \begin_layout Standard
19203 \begin_inset Float table
19209 \begin_layout Plain Layout
19210 \begin_inset Caption Standard
19212 \begin_layout Plain Layout
19213 \begin_inset CommandInset label
19215 name "tab:Table-with-rotated"
19219 Table with rotated cells in the first row.
19227 \begin_layout Plain Layout
19230 \begin_inset Tabular
19231 <lyxtabular version="3" rows="2" columns="3">
19232 <features tabularvalignment="middle">
19233 <column alignment="center" valignment="top" width="0pt">
19234 <column alignment="center" valignment="top" width="0pt">
19235 <column alignment="center" valignment="top" width="0pt">
19237 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19240 \begin_layout Plain Layout
19246 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19249 \begin_layout Plain Layout
19255 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19258 \begin_layout Plain Layout
19266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19269 \begin_layout Plain Layout
19275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19278 \begin_layout Plain Layout
19284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19287 \begin_layout Plain Layout
19306 \begin_layout Standard
19307 \begin_inset Note Greyedout
19310 \begin_layout Plain Layout
19315 Line breaks (shortcut
19318 arg "newline-insert newline"
19321 ) are not allowed in rotated cells.
19329 \begin_layout Standard
19330 If you want to rotate table cells containing line breaks, you have to put
19331 the cell content into a minipage or a parbox.
19335 \begin_layout Plain Layout
19336 For more about these boxes see sec.
19337 \begin_inset space \thinspace{}
19341 \begin_inset CommandInset ref
19343 reference "sec:Minipages"
19348 \begin_inset CommandInset ref
19350 reference "sec:Parboxes"
19359 If you rotate this cell by 90
19360 \begin_inset space \thinspace{}
19363 ° the width of the box is the height of the cell.
19365 \begin_inset space ~
19369 \begin_inset CommandInset ref
19371 reference "tab:Table-with-rotated-multi"
19375 is an example for a rotated multiline cell where the box width was set
19377 \begin_inset space \thinspace{}
19383 \begin_layout Standard
19384 \begin_inset Float table
19389 \begin_layout Plain Layout
19390 \begin_inset Caption Standard
19392 \begin_layout Plain Layout
19393 \begin_inset CommandInset label
19395 name "tab:Table-with-rotated-multi"
19399 Table with rotated multiline cell.
19407 \begin_layout Plain Layout
19410 \begin_inset Tabular
19411 <lyxtabular version="3" rows="2" columns="3">
19412 <features tabularvalignment="middle">
19413 <column alignment="center" valignment="top">
19414 <column alignment="center" valignment="top" width="0pt">
19415 <column alignment="center" valignment="top">
19417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19420 \begin_layout Plain Layout
19426 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19429 \begin_layout Plain Layout
19430 \begin_inset Box Frameless
19440 height_special "totalheight"
19445 backgroundcolor "none"
19448 \begin_layout Plain Layout
19450 \begin_inset Newline newline
19463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19466 \begin_layout Plain Layout
19474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19477 \begin_layout Plain Layout
19483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19486 \begin_layout Plain Layout
19492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19495 \begin_layout Plain Layout
19514 \begin_layout Section
19515 Table Width Calculation
19516 \begin_inset CommandInset label
19518 name "sec:Table-Width-Calculation"
19525 \begin_layout Standard
19526 For wide tables it is sometimes difficult to assure that the table does
19527 not protrude over the page margin.
19528 Setting a fixed width for every column of the table is the solution, but
19529 what amount of space is needed for each column?
19532 \begin_layout Standard
19534 \begin_inset Formula $W_{\mathrm{table}}$
19537 can be calculated: Every column has the width of the specified column width
19539 \begin_inset Formula $W_{\mathrm{column}}$
19542 (that the content of the column can consume) plus two times the separation
19543 between the column content and the column border (\SpecialChar LaTeX
19551 \begin_inset space \thinspace{}
19554 pt) plus the width of a border line (\SpecialChar LaTeX
19562 \begin_inset space \thinspace{}
19566 \begin_inset Formula $n$
19570 \begin_inset space ~
19573 columns have the same width, the table width is
19574 \begin_inset Formula
19576 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19584 \begin_layout Standard
19585 The available width for a table is the space between the page margins or
19586 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19594 If all table columns should have the same width and
19595 \begin_inset Formula $W_{\mathrm{table}}$
19599 \begin_inset space \thinspace{}
19605 \begin_inset Formula $W_{\mathrm{column}}$
19608 can easily be calculated.
19611 \begin_layout Standard
19612 To be able to perform calculations you need to load the \SpecialChar LaTeX
19618 \begin_inset Index idx
19621 \begin_layout Plain Layout
19628 in the document preamble.
19629 To set the width in the table dialog you have to use the field
19635 The command scheme for this field is the same that is explained in section
19636 \begin_inset space ~
19640 \begin_inset CommandInset ref
19642 reference "subsec:Multicolumn-Calculations"
19648 \begin_inset space \thinspace{}
19651 columns with an uniform width and centered text, enter there for each column
19655 \begin_layout Standard
19662 columnwidth-62.4pt)/5}
19665 \begin_layout Standard
19667 \begin_inset space \thinspace{}
19670 columns where 2 should have 0.75
19671 \begin_inset space ~
19674 times the width than the 3 others, the calculation is
19675 \begin_inset Formula
19677 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19678 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19679 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19680 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19688 \begin_layout Standard
19689 In the table therefore the command
19692 \begin_layout Standard
19699 columnwidth-62.4pt)/
19704 \begin_layout Standard
19705 is used for the wider columns and
19708 \begin_layout Standard
19715 columnwidth-62.4pt)/
19722 \begin_layout Standard
19723 for the smaller ones:
19726 \begin_layout Standard
19727 \begin_inset Tabular
19728 <lyxtabular version="3" rows="2" columns="5">
19729 <features tabularvalignment="middle">
19730 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19731 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19732 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19733 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19734 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19739 \begin_layout Plain Layout
19745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19748 \begin_layout Plain Layout
19754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19757 \begin_layout Plain Layout
19763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19766 \begin_layout Plain Layout
19772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19775 \begin_layout Plain Layout
19783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19786 \begin_layout Plain Layout
19787 111111 1111111 111111 111111111 11111 11111 1111
19792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19795 \begin_layout Plain Layout
19801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19804 \begin_layout Plain Layout
19805 2222 22222 222222 222222222 2222222 22 22222
19810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19813 \begin_layout Plain Layout
19819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19822 \begin_layout Plain Layout
19823 333333 333333 333333 33333 3333333 333
19836 \begin_layout Section
19837 Table Customization
19838 \begin_inset Index idx
19841 \begin_layout Plain Layout
19842 Table Customization
19848 \begin_inset Index idx
19851 \begin_layout Plain Layout
19852 Table ! Customization
19860 \begin_layout Subsection
19862 \begin_inset CommandInset label
19864 name "subsec:Row-Spacing"
19869 \begin_inset Index idx
19872 \begin_layout Plain Layout
19873 Table Customization ! Row Spacing
19881 \begin_layout Standard
19882 You can add vertical space to table rows in the
19886 tab of the table dialog.
19887 You find there three possibilities:
19890 \begin_layout Description
19892 \begin_inset space ~
19896 \begin_inset space ~
19899 row will add space above the characters of the table row.
19900 If the table is a formal table
19904 \begin_layout Plain Layout
19905 Formal tables are explained in section
19906 \begin_inset space ~
19910 \begin_inset CommandInset ref
19912 reference "sec:Formal-Tables"
19922 will insert as default 0.5
19923 \begin_inset space \thinspace{}
19927 For normal tables the inserted space will unfortunately destroy the vertical
19928 table lines as in the following table:
19929 \begin_inset VSpace medskip
19933 \begin_inset Newline newline
19937 \begin_inset space \hspace*{}
19942 \begin_inset space \hfill{}
19946 \begin_inset Tabular
19947 <lyxtabular version="3" rows="3" columns="1">
19948 <features tabularvalignment="middle">
19949 <column alignment="center" valignment="top">
19951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19954 \begin_layout Plain Layout
19961 <row topspace="3mm">
19962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19965 \begin_layout Plain Layout
19967 \begin_inset space \thinspace{}
19970 mm space top of row
19977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19980 \begin_layout Plain Layout
19992 \begin_inset space \hfill{}
19996 \begin_inset space \hspace*{}
20001 \begin_inset VSpace medskip
20005 \begin_inset Newline newline
20008 So inserting space in the top of row for normal tables is only useful when
20009 you don't have vertical lines.
20012 \begin_layout Description
20014 \begin_inset space ~
20018 \begin_inset space ~
20021 row will add space below the characters of the table row.
20022 If the table is a formal table \SpecialChar LyX
20023 will insert as default 0.5
20024 \begin_inset space \thinspace{}
20027 em space, for normal tables the default size is 2
20028 \begin_inset space \thinspace{}
20034 \begin_layout Description
20036 \begin_inset space ~
20039 rows adds space between the current and the following row.
20040 If the table is a formal table \SpecialChar LyX
20041 will insert as default 0.5
20042 \begin_inset space \thinspace{}
20046 For normal tables the inserted space will unfortunately destroy the vertical
20047 table lines as in the following table:
20048 \begin_inset VSpace medskip
20052 \begin_inset Newline newline
20056 \begin_inset space \hspace*{}
20061 \begin_inset space \hfill{}
20065 \begin_inset Tabular
20066 <lyxtabular version="3" rows="3" columns="1">
20067 <features tabularvalignment="middle">
20068 <column alignment="center" valignment="top">
20070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20073 \begin_layout Plain Layout
20080 <row interlinespace="3mm">
20081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20084 \begin_layout Plain Layout
20085 \begin_inset Formula $\downarrow$
20089 \begin_inset space \thinspace{}
20092 mm space between row
20093 \begin_inset Formula $\downarrow$
20103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20106 \begin_layout Plain Layout
20107 \begin_inset Formula $\uparrow$
20111 \begin_inset space \thinspace{}
20114 mm space between row
20115 \begin_inset Formula $\uparrow$
20129 \begin_inset space \hfill{}
20133 \begin_inset space \hspace*{}
20138 \begin_inset VSpace medskip
20142 \begin_inset Newline newline
20145 So inserting space between rows for normal tables is only useful when you
20146 don't have vertical lines.
20149 \begin_layout Standard
20150 \begin_inset VSpace bigskip
20153 When you want to add extra height to all cells of all tables, you can do
20154 this with the following preamble lines:
20157 \begin_layout Standard
20162 @ifundefined{extrarowheight}
20163 \begin_inset Newline newline
20167 \begin_inset Phantom HPhantom
20170 \begin_layout Plain Layout
20173 \begin_inset space ~
20183 usepackage{array}}{}
20184 \begin_inset Newline newline
20191 extrarowheight}{height}
20194 \begin_layout Standard
20195 But this has the disadvantage that the cell texts are no longer exactly
20196 vertically centered.
20201 will be loaded automatically by \SpecialChar LyX
20202 when you use self defined table formats.
20203 To avoid that it being loaded twice the command
20209 is used in the above command.)
20212 \begin_layout Standard
20213 If you are using font sizes larger than the normal size, the table borders
20214 are often too close to the letters.
20215 This can be corrected by inserting the command
20221 in \SpecialChar TeX
20222 Code at the beginning of a table row.
20224 \begin_inset space ~
20228 \begin_inset CommandInset ref
20230 reference "tab:Vertical-alignment-of"
20234 illustrates the effect.
20237 \begin_layout Standard
20239 \begin_inset Float table
20245 \begin_layout Plain Layout
20246 \begin_inset Caption Standard
20248 \begin_layout Plain Layout
20249 \begin_inset CommandInset label
20251 name "tab:Vertical-alignment-of"
20255 Vertical alignment of text with large font sizes.
20263 \begin_layout Plain Layout
20264 \begin_inset space \hfill{}
20268 \begin_inset Float table
20273 \begin_layout Plain Layout
20274 \begin_inset Caption Standard
20276 \begin_layout Plain Layout
20285 \begin_layout Plain Layout
20288 \begin_inset Tabular
20289 <lyxtabular version="3" rows="6" columns="1">
20290 <features tabularvalignment="middle">
20291 <column alignment="left" valignment="top">
20293 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20296 \begin_layout Plain Layout
20304 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20307 \begin_layout Plain Layout
20317 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20320 \begin_layout Plain Layout
20330 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20333 \begin_layout Plain Layout
20343 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20346 \begin_layout Plain Layout
20356 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20359 \begin_layout Plain Layout
20378 \begin_inset space \hfill{}
20382 \begin_inset Float table
20387 \begin_layout Plain Layout
20388 \begin_inset Caption Standard
20390 \begin_layout Plain Layout
20391 Table using the command
20405 \begin_layout Plain Layout
20408 \begin_inset Tabular
20409 <lyxtabular version="3" rows="6" columns="1">
20410 <features tabularvalignment="middle">
20411 <column alignment="left" valignment="top">
20413 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20416 \begin_layout Plain Layout
20424 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20427 \begin_layout Plain Layout
20433 \begin_layout Plain Layout
20449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20452 \begin_layout Plain Layout
20458 \begin_layout Plain Layout
20474 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20477 \begin_layout Plain Layout
20483 \begin_layout Plain Layout
20499 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20502 \begin_layout Plain Layout
20508 \begin_layout Plain Layout
20524 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20527 \begin_layout Plain Layout
20533 \begin_layout Plain Layout
20560 \begin_inset space \hfill{}
20571 \begin_layout Subsection
20572 Special Cell Alignment
20573 \begin_inset CommandInset label
20575 name "subsec:Special-Cell-Alignment"
20580 \begin_inset Index idx
20583 \begin_layout Plain Layout
20584 Table Customization ! Special Cell Alignment
20592 \begin_layout Standard
20593 Sometimes it looks better when the cell entries of a column are aligned
20594 with a special character, e.
20595 \begin_inset space \thinspace{}
20599 \begin_inset space \space{}
20602 with the decimal separator as in Table
20603 \begin_inset space ~
20607 \begin_inset CommandInset ref
20609 reference "tab:Table-cells-align"
20614 This alignment is achieved by setting the cursor into the column and then
20615 either pressing the toolbar button
20618 arg "inset-modify tabular align-decimal"
20621 or setting the alignment in the table settings to
20624 \begin_inset space ~
20628 \begin_inset space ~
20634 The alignment character can be a character of your choice and is specified
20635 in the table settings.
20638 \begin_layout Standard
20639 \begin_inset Float table
20645 \begin_layout Plain Layout
20646 \begin_inset Caption Standard
20648 \begin_layout Plain Layout
20649 \begin_inset CommandInset label
20651 name "tab:Table-cells-align"
20655 Table cells of a column aligned with the decimal separator.
20663 \begin_layout Plain Layout
20665 \begin_inset Tabular
20666 <lyxtabular version="3" rows="4" columns="1">
20667 <features booktabs="true" tabularvalignment="middle">
20668 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20673 \begin_layout Plain Layout
20681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20684 \begin_layout Plain Layout
20692 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20695 \begin_layout Plain Layout
20703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20706 \begin_layout Plain Layout
20725 \begin_layout Standard
20726 \begin_inset Float table
20732 \begin_layout Plain Layout
20733 \begin_inset Caption Standard
20735 \begin_layout Plain Layout
20736 \begin_inset CommandInset label
20738 name "tab:Table-align-operator"
20742 Table cells of a column aligned with the operators.
20750 \begin_layout Plain Layout
20752 \begin_inset Tabular
20753 <lyxtabular version="3" rows="4" columns="2">
20754 <features booktabs="true" tabularvalignment="middle">
20755 <column alignment="right" valignment="top" width="0pt">
20756 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20758 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20761 \begin_layout Plain Layout
20767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20770 \begin_layout Plain Layout
20778 <cell alignment="center" valignment="top" usebox="none">
20781 \begin_layout Plain Layout
20782 \begin_inset Formula $12\,+$
20790 <cell alignment="center" valignment="top" usebox="none">
20793 \begin_layout Plain Layout
20794 \begin_inset Formula $\,6$
20804 <cell alignment="center" valignment="top" usebox="none">
20807 \begin_layout Plain Layout
20808 \begin_inset Formula $0\,-$
20816 <cell alignment="center" valignment="top" usebox="none">
20819 \begin_layout Plain Layout
20820 \begin_inset Formula $\,68$
20830 <cell alignment="center" valignment="top" usebox="none">
20833 \begin_layout Plain Layout
20834 \begin_inset Formula $-123\,/$
20842 <cell alignment="center" valignment="top" usebox="none">
20845 \begin_layout Plain Layout
20846 \begin_inset Formula $\,0$
20867 \begin_layout Standard
20868 For alignments at characters in formulas this method does not work because
20869 the field to specify the alignment character does not allow formulas.
20870 In this case one need to use the method from Table
20871 \begin_inset space ~
20875 \begin_inset CommandInset ref
20877 reference "tab:Table-align-operator"
20882 This table was created with a 4×2 table.
20883 The heading is a centered multicolumn.
20884 The first column is right-aligned and contains the first part including
20886 The second column is left aligned and contains the rest.
20887 A small space was added at the beginning of each cell of the second column
20888 to get the space that is usually around operators.
20889 To omit the space that is normally between two table columns, the following
20891 -argument was used for the second column:
20894 \begin_layout Standard
20900 \begin_layout Standard
20902 \begin_inset space ~
20906 \begin_inset CommandInset ref
20908 reference "tab:Several-table-cell"
20912 shows some example alignments.
20913 For the alignment with the relation sign, a small space was added like
20914 for the second column of Table
20915 \begin_inset space ~
20919 \begin_inset CommandInset ref
20921 reference "tab:Table-align-operator"
20928 \begin_layout Standard
20929 \begin_inset Float table
20935 \begin_layout Plain Layout
20936 \begin_inset Caption Standard
20938 \begin_layout Plain Layout
20939 \begin_inset CommandInset label
20941 name "tab:Several-table-cell"
20945 Several table cell alignments.
20953 \begin_layout Plain Layout
20955 \begin_inset Tabular
20956 <lyxtabular version="3" rows="4" columns="6">
20957 <features tabularvalignment="middle">
20958 <column alignment="right" valignment="top">
20959 <column alignment="left" valignment="top" special="@{}l">
20960 <column alignment="right" valignment="top">
20961 <column alignment="left" valignment="top" special="@{}l">
20962 <column alignment="right" valignment="top">
20963 <column alignment="left" valignment="top" special="@{}l">
20965 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20968 \begin_layout Plain Layout
20974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20977 \begin_layout Plain Layout
20983 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20986 \begin_layout Plain Layout
20992 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20995 \begin_layout Plain Layout
21001 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21004 \begin_layout Plain Layout
21010 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21013 \begin_layout Plain Layout
21021 <cell alignment="center" valignment="top" usebox="none">
21024 \begin_layout Plain Layout
21030 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21033 \begin_layout Plain Layout
21035 \begin_inset space \thinspace{}
21043 <cell alignment="center" valignment="top" usebox="none">
21046 \begin_layout Plain Layout
21047 \begin_inset Formula $10\cdot$
21055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21058 \begin_layout Plain Layout
21059 \begin_inset Formula $10^{\mbox{-}17}$
21067 <cell alignment="center" valignment="top" usebox="none">
21070 \begin_layout Plain Layout
21071 \begin_inset Formula $\Gamma(t)\propto$
21079 <cell alignment="center" valignment="top" usebox="none">
21082 \begin_layout Plain Layout
21083 \begin_inset Formula $\:\Upsilon(t)$
21093 <cell alignment="center" valignment="top" usebox="none">
21096 \begin_layout Plain Layout
21102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21105 \begin_layout Plain Layout
21107 \begin_inset space \thinspace{}
21115 <cell alignment="center" valignment="top" usebox="none">
21118 \begin_layout Plain Layout
21119 \begin_inset Formula $5.78\cdot$
21127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21130 \begin_layout Plain Layout
21131 \begin_inset Formula $10^{7}$
21139 <cell alignment="center" valignment="top" usebox="none">
21142 \begin_layout Plain Layout
21143 \begin_inset Formula $A\ne$
21151 <cell alignment="center" valignment="top" usebox="none">
21154 \begin_layout Plain Layout
21155 \begin_inset Formula $\:B_{\mathrm{red}}$
21165 <cell alignment="center" valignment="top" usebox="none">
21168 \begin_layout Plain Layout
21174 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21177 \begin_layout Plain Layout
21179 \begin_inset space \thinspace{}
21187 <cell alignment="center" valignment="top" usebox="none">
21190 \begin_layout Plain Layout
21192 \begin_inset Formula $33.5\cdot$
21200 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21203 \begin_layout Plain Layout
21204 \begin_inset Formula $10^{4}$
21212 <cell alignment="center" valignment="top" usebox="none">
21215 \begin_layout Plain Layout
21216 \begin_inset Formula $\sin(\alpha)\ge$
21224 <cell alignment="center" valignment="top" usebox="none">
21227 \begin_layout Plain Layout
21228 \begin_inset Formula $\:\sin(\beta)$
21249 \begin_layout Subsection
21250 Customized Cell/Column Format
21251 \begin_inset CommandInset label
21253 name "subsec:Customized-Format"
21258 \begin_inset Index idx
21261 \begin_layout Plain Layout
21262 Table Customization ! Cell/Column Format
21270 \begin_layout Standard
21271 Calculating the required width for normal columns as described in section
21272 \begin_inset space ~
21276 \begin_inset CommandInset ref
21278 reference "sec:Table-Width-Calculation"
21282 or for spanned columns as described in section
21283 \begin_inset space ~
21287 \begin_inset CommandInset ref
21289 reference "subsec:Multicolumn-Calculations"
21293 is very annoying if you have several tables where a calculation is necessary.
21294 To make life easier, you can define a cell/column format in the preamble,
21295 that can be used in all tables of the document.
21296 The format is defined with the command
21299 \begin_layout Standard
21304 newcolumntype{name of format}[number of arguments]{commands}
21307 \begin_layout Standard
21308 The format name may only consist of one letter.
21333 are predefined and cannot be used.
21334 But all letters are allowed as capitals.
21337 \begin_layout Standard
21338 \begin_inset VSpace medskip
21344 \begin_layout Standard
21345 For vertically and horizontally centered multicolumn cells with a fixed
21346 width you can define the cell format
21349 \begin_layout Standard
21354 newcolumntype{M}[1]{>{
21361 \begin_layout Standard
21368 avoids the problem of hyphenating the first word, as described in section
21369 \begin_inset space ~
21373 \begin_inset CommandInset ref
21375 reference "subsec:Multiple-Lines-in"
21380 Now you can simply enter
21383 \begin_layout Standard
21389 \begin_layout Standard
21395 in the table dialog to create a multicolumn.
21398 \begin_layout Standard
21399 \begin_inset VSpace bigskip
21405 \begin_layout Standard
21406 For cells spanned by a multicolumn cell, you can define the format
21409 \begin_layout Standard
21414 newcolumntype{S}[2]{>{
21419 \begin_inset Newline newline
21423 \begin_inset Phantom HPhantom
21426 \begin_layout Plain Layout
21440 arrayrulewidth)*(1-#2))/#2}}
21443 \begin_layout Standard
21444 This format uses equation
21445 \begin_inset CommandInset ref
21451 to calculate the required width so that each spanned cell has the same
21455 \begin_layout Standard
21459 \begin_layout Standard
21462 S{width of multicolumn cell}{number of spanned columns}
21465 \begin_layout Standard
21466 as \SpecialChar LaTeX
21467 -argument of the column.
21470 \begin_layout Standard
21471 \begin_inset VSpace bigskip
21477 \begin_layout Standard
21478 For colored columns, you can define
21481 \begin_layout Standard
21486 newcolumntype{K}[1]{>{
21493 \begin_layout Standard
21495 \begin_inset Quotes eld
21499 \begin_inset Quotes erd
21502 at the end creates a column with a flexible width whose text is horizontally
21507 \begin_layout Standard
21513 \begin_layout Standard
21514 as \SpecialChar LaTeX
21518 \begin_layout Standard
21519 \begin_inset VSpace bigskip
21525 \begin_layout Standard
21527 \begin_inset space ~
21531 \begin_inset CommandInset ref
21533 reference "tab:Table-using-user-defined"
21537 use the \SpecialChar LaTeX
21541 \begin_layout Standard
21547 \begin_layout Standard
21548 for the first column and the multicolumn,
21551 \begin_layout Standard
21557 \begin_layout Standard
21558 for the last column, and
21561 \begin_layout Standard
21567 \begin_layout Standard
21568 for the cells in the second column.
21571 \begin_layout Standard
21572 \begin_inset Float table
21578 \begin_layout Plain Layout
21579 \begin_inset Caption Standard
21581 \begin_layout Plain Layout
21582 \begin_inset CommandInset label
21584 name "tab:Table-using-user-defined"
21588 Table using user-defined table formats
21596 \begin_layout Plain Layout
21598 \begin_inset Tabular
21599 <lyxtabular version="3" rows="3" columns="4">
21600 <features tabularvalignment="middle">
21601 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21602 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21603 <column alignment="center" valignment="middle">
21604 <column alignment="center" valignment="middle" special="K{red}">
21606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21609 \begin_layout Plain Layout
21610 verylongtablecellword
21615 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21618 \begin_layout Plain Layout
21619 multiple lines multicolumn
21624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21627 \begin_layout Plain Layout
21633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21636 \begin_layout Plain Layout
21644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21647 \begin_layout Plain Layout
21653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21656 \begin_layout Plain Layout
21662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21665 \begin_layout Plain Layout
21671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21674 \begin_layout Plain Layout
21682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21685 \begin_layout Plain Layout
21691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21694 \begin_layout Plain Layout
21700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21703 \begin_layout Plain Layout
21709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21712 \begin_layout Plain Layout
21731 \begin_layout Subsection
21733 \begin_inset CommandInset label
21735 name "subsec:Line-Thickness"
21740 \begin_inset Index idx
21743 \begin_layout Plain Layout
21744 Table Customization ! Line Thickness
21752 \begin_layout Standard
21753 The line thickness for all lines in a table can be adjusted with the length
21761 To set for example a line thickness of 1.5
21762 \begin_inset space \thinspace{}
21766 \begin_inset space ~
21770 \begin_inset CommandInset ref
21772 reference "tab:Table-with-1.5"
21776 , insert the command
21779 \begin_layout Standard
21786 arrayrulewidth}{1.5pt}
21789 \begin_layout Standard
21790 in \SpecialChar TeX
21791 Code before the table or table float.
21792 The changed thickness is valid for all subsequent tables.
21793 To use the default value again, set
21800 \begin_inset space \thinspace{}
21803 pt in \SpecialChar TeX
21804 Code after the table or table float.
21807 \begin_layout Standard
21811 \begin_layout Plain Layout
21817 arrayrulewidth}{1.5pt}
21823 \begin_inset Float table
21828 \begin_layout Plain Layout
21829 \begin_inset Caption Standard
21831 \begin_layout Plain Layout
21832 \begin_inset CommandInset label
21834 name "tab:Table-with-1.5"
21839 \begin_inset space \thinspace{}
21850 \begin_layout Plain Layout
21852 \begin_inset Tabular
21853 <lyxtabular version="3" rows="3" columns="3">
21854 <features tabularvalignment="middle">
21855 <column alignment="center" valignment="top">
21856 <column alignment="center" valignment="top">
21857 <column alignment="center" valignment="top">
21859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21862 \begin_layout Plain Layout
21868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21871 \begin_layout Plain Layout
21877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21880 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21900 \begin_layout Plain Layout
21906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21909 \begin_layout Plain Layout
21917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21920 \begin_layout Plain Layout
21926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21929 \begin_layout Plain Layout
21935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21938 \begin_layout Plain Layout
21958 \begin_layout Plain Layout
21964 arrayrulewidth}{0.4pt}
21972 \begin_layout Standard
21973 \begin_inset VSpace bigskip
21976 To set the line thickness to 1.5
21977 \begin_inset space \thinspace{}
21980 pt only for horizontal lines, as in Table
21981 \begin_inset space ~
21985 \begin_inset CommandInset ref
21987 reference "tab:Table-with-horizontal"
21991 , insert these commands in \SpecialChar TeX
21992 Code before the table or table float:
21995 \begin_layout Standard
22005 \begin_inset Newline newline
22013 \begin_inset Newline newline
22022 arrayrulewidth 1.5pt}
22023 \begin_inset Newline newline
22034 arrayrulewidth 0.4pt}}
22037 \begin_layout Standard
22038 To return to the default line thickness, insert this command in \SpecialChar TeX
22040 the table or table float:
22043 \begin_layout Standard
22055 \begin_layout Standard
22059 \begin_layout Plain Layout
22070 \begin_layout Plain Layout
22079 \begin_layout Plain Layout
22087 arrayrulewidth 1.5pt}
22090 \begin_layout Plain Layout
22100 arrayrulewidth 0.4pt}}
22106 \begin_inset Float table
22111 \begin_layout Plain Layout
22112 \begin_inset Caption Standard
22114 \begin_layout Plain Layout
22115 \begin_inset CommandInset label
22117 name "tab:Table-with-horizontal"
22122 \begin_inset space \thinspace{}
22125 pt thick horizontal lines
22133 \begin_layout Plain Layout
22135 \begin_inset Tabular
22136 <lyxtabular version="3" rows="3" columns="3">
22137 <features tabularvalignment="middle">
22138 <column alignment="center" valignment="top">
22139 <column alignment="center" valignment="top">
22140 <column alignment="center" valignment="top">
22142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22145 \begin_layout Plain Layout
22151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22154 \begin_layout Plain Layout
22160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22163 \begin_layout Plain Layout
22171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22174 \begin_layout Plain Layout
22180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22183 \begin_layout Plain Layout
22189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22192 \begin_layout Plain Layout
22200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22203 \begin_layout Plain Layout
22209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22212 \begin_layout Plain Layout
22218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22221 \begin_layout Plain Layout
22241 \begin_layout Plain Layout
22257 \begin_layout Standard
22258 \begin_inset VSpace bigskip
22261 To set the line thickness to 1.5
22262 \begin_inset space \thinspace{}
22265 pt only for vertical lines, create the following column format in the document
22266 preamble, according to the description in section
22267 \begin_inset space ~
22271 \begin_inset CommandInset ref
22273 reference "subsec:Customized-Format"
22280 \begin_layout Standard
22285 newcolumntype{V}{!{
22287 vrule width 1.5pt}}
22290 \begin_layout Standard
22292 \begin_inset space ~
22296 \begin_inset CommandInset ref
22298 reference "tab:Table-with-vertical"
22302 the \SpecialChar LaTeX
22306 \begin_layout Standard
22312 \begin_layout Standard
22313 was used for the last column and
22316 \begin_layout Standard
22322 \begin_layout Standard
22323 for the other columns.
22326 \begin_layout Standard
22327 \begin_inset Float table
22332 \begin_layout Plain Layout
22333 \begin_inset Caption Standard
22335 \begin_layout Plain Layout
22336 \begin_inset CommandInset label
22338 name "tab:Table-with-vertical"
22343 \begin_inset space \thinspace{}
22346 pt thick vertical lines
22354 \begin_layout Plain Layout
22356 \begin_inset Tabular
22357 <lyxtabular version="3" rows="3" columns="3">
22358 <features tabularvalignment="middle">
22359 <column alignment="center" valignment="top" special="Vc">
22360 <column alignment="center" valignment="top" special="Vc">
22361 <column alignment="center" valignment="top" special="VcV">
22363 <cell alignment="center" valignment="top" topline="true" usebox="none">
22366 \begin_layout Plain Layout
22372 <cell alignment="center" valignment="top" topline="true" usebox="none">
22375 \begin_layout Plain Layout
22381 <cell alignment="center" valignment="top" topline="true" usebox="none">
22384 \begin_layout Plain Layout
22392 <cell alignment="center" valignment="top" topline="true" usebox="none">
22395 \begin_layout Plain Layout
22401 <cell alignment="center" valignment="top" topline="true" usebox="none">
22404 \begin_layout Plain Layout
22410 <cell alignment="center" valignment="top" topline="true" usebox="none">
22413 \begin_layout Plain Layout
22421 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22424 \begin_layout Plain Layout
22430 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22433 \begin_layout Plain Layout
22439 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22442 \begin_layout Plain Layout
22461 \begin_layout Subsection
22463 \begin_inset Index idx
22466 \begin_layout Plain Layout
22467 Table Customization ! Dashed Lines
22475 \begin_layout Standard
22479 \begin_layout Plain Layout
22489 \begin_inset Note Note
22492 \begin_layout Plain Layout
22493 The following section will only be displayed when the \SpecialChar LaTeX
22506 \begin_layout Standard
22507 \begin_inset Float table
22513 \begin_layout Plain Layout
22514 \begin_inset Caption Standard
22516 \begin_layout Plain Layout
22517 \begin_inset CommandInset label
22519 name "tab:Table-with-dashed"
22523 Table with dashed lines
22531 \begin_layout Plain Layout
22533 \begin_inset Tabular
22534 <lyxtabular version="3" rows="5" columns="5">
22535 <features tabularvalignment="middle">
22536 <column alignment="center" valignment="top">
22537 <column alignment="center" valignment="top">
22538 <column alignment="center" valignment="top" special=":c">
22539 <column alignment="center" valignment="top">
22540 <column alignment="center" valignment="top">
22542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22545 \begin_layout Plain Layout
22551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22554 \begin_layout Plain Layout
22560 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22563 \begin_layout Plain Layout
22569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22572 \begin_layout Plain Layout
22578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22581 \begin_layout Plain Layout
22589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22592 \begin_layout Plain Layout
22598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22601 \begin_layout Plain Layout
22607 <cell alignment="center" valignment="top" topline="true" usebox="none">
22610 \begin_layout Plain Layout
22616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22619 \begin_layout Plain Layout
22625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22628 \begin_layout Plain Layout
22636 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22639 \begin_layout Plain Layout
22643 \begin_layout Plain Layout
22657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22660 \begin_layout Plain Layout
22666 <cell alignment="center" valignment="top" usebox="none">
22669 \begin_layout Plain Layout
22675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22678 \begin_layout Plain Layout
22684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22687 \begin_layout Plain Layout
22695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22698 \begin_layout Plain Layout
22702 \begin_layout Plain Layout
22716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22719 \begin_layout Plain Layout
22725 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22728 \begin_layout Plain Layout
22734 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22737 \begin_layout Plain Layout
22743 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22746 \begin_layout Plain Layout
22754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22757 \begin_layout Plain Layout
22763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22766 \begin_layout Plain Layout
22772 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22775 \begin_layout Plain Layout
22781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22784 \begin_layout Plain Layout
22790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22793 \begin_layout Plain Layout
22812 \begin_layout Standard
22814 does not natively support dashed lines, so you have to use \SpecialChar TeX
22816 As a prerequisite the \SpecialChar LaTeX
22822 \begin_inset Index idx
22825 \begin_layout Plain Layout
22827 -packages ! arydshln
22832 must be loaded in the document preamble with the command
22835 \begin_layout Standard
22840 usepackage{arydshln}
22843 \begin_layout Standard
22844 To make a vertical line dashed, enter the colon
22845 \begin_inset Quotes eld
22849 \begin_inset Quotes erd
22852 together with the character for the horizontal alignment as \SpecialChar LaTeX
22854 the table cell dialog.
22857 \begin_layout Standard
22858 For a horizontal dashed line add the command
22861 \begin_layout Standard
22869 \begin_layout Standard
22870 in \SpecialChar TeX
22871 Code as first element of the first cell in the table row.
22874 \begin_layout Standard
22875 For dashed multicolumn lines use the command
22878 \begin_layout Standard
22883 cdashline{line number
22888 \begin_layout Standard
22889 in \SpecialChar TeX
22890 Code as the first element of the first cell in the table row.
22891 If you have for example a multicolumn spanning columns 2 to 4 and you want
22892 to have a dashed line above, add the command
22895 \begin_layout Standard
22903 \begin_layout Standard
22904 as the first element of the first cell in the row of the multicolumn.
22907 \begin_layout Standard
22908 \begin_inset VSpace bigskip
22914 \begin_layout Standard
22916 \begin_inset space ~
22920 \begin_inset CommandInset ref
22922 reference "tab:Table-with-dashed"
22927 \begin_inset Quotes eld
22935 \begin_inset Quotes erd
22938 as \SpecialChar LaTeX
22939 argument of the third column.
22940 The \SpecialChar TeX
22947 was inserted in the first cell of the third row and the \SpecialChar TeX
22949 \begin_inset Newline newline
22958 was inserted in the first cell of the fourth row.
22961 \begin_layout Standard
22962 \begin_inset VSpace bigskip
22968 \begin_layout Standard
22969 Tables with dashed lines can also be colored as shown by Table
22970 \begin_inset space ~
22974 \begin_inset CommandInset ref
22976 reference "tab:Colored-table-with"
22983 \begin_layout Standard
22987 \begin_layout Plain Layout
22993 arrayrulewidth}{1pt}
22999 \begin_inset Note Note
23002 \begin_layout Plain Layout
23003 thicker lines for better visualization of the line color
23011 \begin_layout Standard
23015 \begin_layout Plain Layout
23019 dashgapcolor{green}
23025 \begin_inset Note Note
23028 \begin_layout Plain Layout
23029 color gaps between dashes green
23037 \begin_layout Standard
23041 \begin_layout Plain Layout
23052 \begin_layout Plain Layout
23061 \begin_layout Plain Layout
23065 arrayrulecolor{red}
23069 arrayrulecolor{black}}
23075 \begin_inset Note Note
23078 \begin_layout Plain Layout
23079 color horizontal, dashed lines red
23087 \begin_layout Standard
23091 \begin_layout Plain Layout
23102 \begin_layout Plain Layout
23111 \begin_layout Plain Layout
23115 arrayrulecolor{yellow}
23119 arrayrulecolor{black}}
23125 \begin_inset Note Note
23128 \begin_layout Plain Layout
23129 color partial horizontal, dashed lines yellow
23137 \begin_layout Standard
23138 \begin_inset Float table
23144 \begin_layout Plain Layout
23145 \begin_inset Caption Standard
23147 \begin_layout Plain Layout
23148 \begin_inset CommandInset label
23150 name "tab:Colored-table-with"
23154 Colored table with dashed lines
23162 \begin_layout Plain Layout
23164 \begin_inset Tabular
23165 <lyxtabular version="3" rows="5" columns="5">
23166 <features tabularvalignment="middle">
23167 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23168 <column alignment="center" valignment="top" width="0pt">
23169 <column alignment="center" valignment="top" width="0pt" special=":c">
23170 <column alignment="center" valignment="top">
23171 <column alignment="center" valignment="top">
23173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23176 \begin_layout Plain Layout
23182 <cell alignment="center" valignment="top" topline="true" usebox="none">
23185 \begin_layout Plain Layout
23191 <cell alignment="center" valignment="top" topline="true" usebox="none">
23194 \begin_layout Plain Layout
23200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23203 \begin_layout Plain Layout
23209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23212 \begin_layout Plain Layout
23220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23223 \begin_layout Plain Layout
23229 <cell alignment="center" valignment="top" topline="true" usebox="none">
23232 \begin_layout Plain Layout
23238 <cell alignment="center" valignment="top" topline="true" usebox="none">
23241 \begin_layout Plain Layout
23247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23250 \begin_layout Plain Layout
23256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23259 \begin_layout Plain Layout
23267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23270 \begin_layout Plain Layout
23274 \begin_layout Plain Layout
23287 \begin_layout Plain Layout
23301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23304 \begin_layout Plain Layout
23310 <cell alignment="center" valignment="top" usebox="none">
23313 \begin_layout Plain Layout
23319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23322 \begin_layout Plain Layout
23328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23331 \begin_layout Plain Layout
23339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23342 \begin_layout Plain Layout
23346 \begin_layout Plain Layout
23360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23363 \begin_layout Plain Layout
23369 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23372 \begin_layout Plain Layout
23378 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23381 \begin_layout Plain Layout
23387 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23390 \begin_layout Plain Layout
23398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23401 \begin_layout Plain Layout
23407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23410 \begin_layout Plain Layout
23416 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23419 \begin_layout Plain Layout
23425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23428 \begin_layout Plain Layout
23434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23437 \begin_layout Plain Layout
23441 \begin_layout Plain Layout
23468 \begin_layout Standard
23472 \begin_layout Plain Layout
23486 \begin_inset Note Note
23489 \begin_layout Plain Layout
23498 \begin_layout Standard
23502 \begin_layout Plain Layout
23516 \begin_inset Note Note
23519 \begin_layout Plain Layout
23528 \begin_layout Standard
23532 \begin_layout Plain Layout
23542 \begin_inset Note Note
23545 \begin_layout Plain Layout
23554 \begin_layout Standard
23558 \begin_layout Plain Layout
23564 arrayrulewidth}{0.4pt}
23570 \begin_inset Note Note
23573 \begin_layout Plain Layout
23582 \begin_layout Standard
23583 The coloring of lines, columns and lines works as decribed in section
23584 \begin_inset space ~
23588 \begin_inset CommandInset ref
23590 reference "sec:Colored-Tables"
23595 Coloring horizontal lines works analogically as described there as well,
23596 one only needs to replace in the commands
23620 ; so one uses the command
23623 \begin_layout Standard
23633 \begin_inset Newline newline
23641 \begin_inset Newline newline
23645 \begin_inset Phantom HPhantom
23648 \begin_layout Plain Layout
23649 \begin_inset space ~
23659 arrayrulecolor{red}
23663 arrayrulecolor{black}}
23666 \begin_layout Standard
23676 \begin_layout Standard
23686 \begin_inset Newline newline
23694 \begin_inset Newline newline
23698 \begin_inset Phantom HPhantom
23701 \begin_layout Plain Layout
23702 \begin_inset space ~
23712 arrayrulecolor{red}
23716 arrayrulecolor{black}}
23719 \begin_layout Standard
23720 To get back the black line color, one needs to insert the following commands
23721 as \SpecialChar TeX
23722 Code behind the table:
23725 \begin_layout Standard
23733 \begin_layout Standard
23745 \begin_layout Standard
23753 \begin_layout Standard
23765 \begin_layout Standard
23766 To color the gaps between the dashes the command
23769 \begin_layout Standard
23774 dashgapcolor{color}
23777 \begin_layout Standard
23778 can be used in front of a table as \SpecialChar TeX
23780 color is hereby the name of a defined color.
23784 \begin_layout Standard
23792 \begin_layout Standard
23793 unsets the changes made by
23802 \begin_layout Standard
23803 \begin_inset Note Greyedout
23806 \begin_layout Plain Layout
23812 : If there are multiple commands in a cell, the command of
23816 needs to be the first one in the cell.
23822 \begin_inset space ~
23826 \begin_inset CommandInset ref
23828 reference "tab:Colored-table-with"
23852 \begin_layout Standard
23853 \begin_inset Note Greyedout
23856 \begin_layout Plain Layout
23862 The \SpecialChar LaTeX
23867 must be loaded in the document preamble before the \SpecialChar LaTeX
23873 \begin_inset Index idx
23876 \begin_layout Plain Layout
23878 -packages ! colortbl
23891 \begin_layout Standard
23895 \begin_layout Plain Layout
23905 \begin_inset Note Note
23908 \begin_layout Plain Layout
23909 The following will be displayed when the \SpecialChar LaTeX
23922 \begin_layout Standard
23923 You need to install the package
23927 to see the content of this section in the output.
23930 \begin_layout Standard
23934 \begin_layout Plain Layout
23946 \begin_layout Standard
23947 For more information about dashed lines see the documentation of
23952 \begin_inset CommandInset citation
23961 \begin_layout Chapter
23963 \begin_inset CommandInset label
23970 \begin_inset Index idx
23973 \begin_layout Plain Layout
23982 \begin_layout Section
23984 \begin_inset CommandInset label
23986 name "sec:FloatIntroduction"
23991 \begin_inset Index idx
23994 \begin_layout Plain Layout
23995 Floats ! Introduction
24003 \begin_layout Standard
24004 A float is a block of text associated with some sort of label, which doesn't
24005 have a fixed location.
24007 \begin_inset Quotes eld
24011 \begin_inset Quotes erd
24014 forward or backward a page or two, to wherever it fits best.
24022 \begin_inset space ~
24027 are also floats because they can float to the next page when there are
24028 too many notes on the page.
24031 \begin_layout Standard
24032 Floats allow a high quality layout.
24033 Images and tables can be spread evenly among the pages to avoid white space
24034 and pages without text.
24035 As the floating often destroys the context between the text and the image/table
24036 , every float can be referenced in the text.
24037 Floats are therefore numbered.
24038 Referencing is described in section
24039 \begin_inset space ~
24043 \begin_inset CommandInset ref
24045 reference "sec:Referencing-Floats"
24052 \begin_layout Standard
24053 To insert a float, use the menu
24055 Insert\SpecialChar menuseparator
24061 arg "float-insert figure"
24067 arg "float-insert table"
24075 inset, a box with a label.
24076 The label will automatically be translated to the document language in
24078 After the label you can insert the caption text.
24079 The image or table is inserted above or below the caption in a separate
24080 paragraph within the float.
24081 More about the caption placement is contained in section
24082 \begin_inset space ~
24086 \begin_inset CommandInset ref
24088 reference "sec:Caption-Placement"
24093 To keep your \SpecialChar LyX
24094 document readable, you can open and close the float box by
24095 left-clicking on the box label.
24096 A closed float box looks like this:
24097 \begin_inset Graphics
24098 filename clipart/floatQt4.png
24100 scaleBeforeRotation
24104 – a gray button with a red label.
24107 \begin_layout Standard
24108 It is recommended that you insert floats as separate standard paragraphs
24109 to avoid possible \SpecialChar LaTeX
24110 -errors that can occur when the surrounding text is specially
24114 \begin_layout Standard
24115 Existing figures or tables can be put into a float by highlighting them
24116 and then pressing the corresponding toolbar button for a new float.
24119 \begin_layout Section
24123 \begin_layout Standard
24124 Besides figure and table floats that are described in sections
24125 \begin_inset space ~
24129 \begin_inset CommandInset ref
24131 reference "sec:Figure-Floats"
24136 \begin_inset CommandInset ref
24138 reference "sec:Table-Floats"
24142 respectively, \SpecialChar LyX
24143 offers the float types
24152 The latter are explained in sec.
24153 \begin_inset space \thinspace{}
24157 \begin_inset CommandInset ref
24159 reference "sec:Wrap-Floats"
24166 \begin_layout Subsection
24168 \begin_inset Index idx
24171 \begin_layout Plain Layout
24172 Floats ! Algorithms
24180 \begin_layout Standard
24181 \begin_inset Float algorithm
24187 \begin_layout Plain Layout
24188 \begin_inset Caption Standard
24190 \begin_layout Plain Layout
24191 \begin_inset CommandInset label
24193 name "alg:Example-Algorithm-float"
24197 Example Algorithm float
24205 \begin_layout LyX-Code
24207 \begin_inset Newline newline
24210 Sum:= Sum + A(I); /*comment*/
24211 \begin_inset Newline newline
24215 \begin_inset VSpace -4mm
24226 \begin_layout Standard
24227 This float type is inserted with the menu
24229 Insert\SpecialChar menuseparator
24230 Float\SpecialChar menuseparator
24234 It is used for program codes and descriptions of algorithms and can be
24235 seen as an alternative to program code listings that are explained in chapter
24236 \begin_inset space ~
24240 \begin_inset CommandInset ref
24242 reference "cha:Program-Code-Listings"
24247 A possible environment for algorithms is the
24252 , described in \SpecialChar LyX
24259 \begin_inset space ~
24263 \begin_inset CommandInset ref
24265 reference "alg:Example-Algorithm-float"
24269 is an example of an algorithm float where -4
24270 \begin_inset space \thinspace{}
24273 mm vertical space was added at the end of the float to have the bottom rule
24274 exactly below the last text line.
24277 \begin_layout Standard
24278 The float label is not automatically translated into the document language.
24279 If your document is not in English, you have to do this manually by adding
24280 the following line to the document preamble
24285 \begin_layout Standard
24290 floatname{algorithm}{your
24291 \begin_inset space ~
24297 \begin_layout Standard
24301 \begin_inset space ~
24307 \begin_inset Quotes eld
24315 \begin_inset Quotes erd
24321 \begin_layout Standard
24322 To insert the list of algorithms you can use the menu
24324 Insert\SpecialChar menuseparator
24326 \begin_inset space \thinspace{}
24330 \begin_inset space \thinspace{}
24333 TOC\SpecialChar menuseparator
24336 when your document has the same language as \SpecialChar LyX
24338 In other cases use this command in \SpecialChar TeX
24342 \begin_layout Standard
24347 listof{algorithm}{your
24348 \begin_inset space ~
24354 \begin_layout Standard
24358 \begin_inset space ~
24364 \begin_inset Quotes eld
24372 \begin_inset Quotes erd
24378 \begin_layout Standard
24379 Algorithm floats are not by default numbered in the scheme
24380 \begin_inset Quotes eld
24384 \begin_inset Quotes erd
24387 as is the case for table and figure floats in many document-classes.
24388 To number algorithm floats in the same scheme, add this command to your
24392 \begin_layout Standard
24397 numberwithin{algorithm}{chapter}
24400 \begin_layout Standard
24401 To be able to use the command
24410 \begin_inset space ~
24415 in the document settings the option
24418 \begin_inset space ~
24422 \begin_inset space ~
24426 \begin_inset space ~
24434 \begin_layout Section
24436 \begin_inset Index idx
24439 \begin_layout Plain Layout
24448 \begin_layout Standard
24449 Floats are usually numbered either independently from the sections the floats
24450 are in, or in the scheme
24451 \begin_inset Quotes eld
24455 \begin_inset Quotes erd
24459 \begin_inset Quotes eld
24463 \begin_inset Quotes erd
24467 This depends on the document class used.
24470 \begin_layout Standard
24471 To change section-independent numbering, you can use this command in the
24475 \begin_layout Standard
24487 \begin_layout Standard
24494 is the command that prints the table number.
24495 For figure floats, the command would be
24508 in the command above prints the table number as a small roman number.
24511 \begin_layout Standard
24512 To change the numbering scheme for example to
24513 \begin_inset Quotes eld
24517 \begin_inset Quotes erd
24520 , use this command in the preamble:
24523 \begin_layout Standard
24528 numberwithin{table}{subsection}
24531 \begin_layout Standard
24532 To be able to use the command
24541 \begin_inset space ~
24546 in the document settings the option
24549 \begin_inset space ~
24553 \begin_inset space ~
24557 \begin_inset space ~
24565 \begin_layout Standard
24566 Please also have a look at section
24567 \begin_inset space ~
24571 \begin_inset CommandInset ref
24573 reference "subsec:Footnote-Numbering"
24577 for the details and important notes about the numbering commands.
24580 \begin_layout Section
24582 \begin_inset CommandInset label
24584 name "sec:Referencing-Floats"
24589 \begin_inset Index idx
24592 \begin_layout Plain Layout
24593 Floats ! References
24599 \begin_inset Index idx
24602 \begin_layout Plain Layout
24603 References ! to Floats
24611 \begin_layout Standard
24612 To reference a float, insert a label into its caption using the menu
24614 Insert\SpecialChar menuseparator
24617 or the toolbar button
24624 A grey label box like this one:
24625 \begin_inset Graphics
24626 filename clipart/labelQt4.png
24628 scaleBeforeRotation
24632 will be inserted and the label window pops up asking for the label text.
24634 offers as text the first words of the caption with a prefix.
24635 The prefix depends on the float type, e.
24636 \begin_inset space \thinspace{}
24640 \begin_inset space \space{}
24643 for figure floats the prefix will be "
24650 \begin_layout Standard
24651 The label is used as anchor and name for the reference.
24652 You can refer to the label using the menu
24654 Insert\SpecialChar menuseparator
24657 or the toolbar button
24660 arg "dialog-show-new-inset ref"
24664 The cross-reference window appears showing all labels of the document.
24665 If you have multiple \SpecialChar LyX
24666 documents opened, choose the one you are working
24667 on from the drop-list at the top of the dialog.
24668 You can now sort the labels alphabetically and then choose one.
24669 A grey cross-reference box like this one:
24670 \begin_inset Graphics
24671 filename clipart/referenceQt4.png
24673 scaleBeforeRotation
24678 At the position of the cross-reference box the float number will appear
24682 \begin_layout Standard
24683 It is recommended that you use a protected space between the cross-reference
24684 name and its number to avoid line breaks between them.
24685 If a cross-reference refers to a non-existing label, you will see two question
24686 marks in the output instead of the reference.
24689 \begin_layout Standard
24690 You can change labels at any time by clicking on the label box.
24691 References to the changed label will automatically update their links to
24692 the new label text.
24695 \begin_layout Standard
24699 \begin_inset space ~
24703 \begin_inset space ~
24708 in the cross-reference window sets the cursor before the referred label.
24709 The button text changes then to Go
24710 \begin_inset space ~
24713 Back and you can use it to set the cursor back to the cross-reference.
24716 \begin_layout Subsection
24717 Cross-Reference Formats
24718 \begin_inset CommandInset label
24720 name "subsec:Cross-Reference-Formats"
24725 \begin_inset Index idx
24728 \begin_layout Plain Layout
24729 References ! Formats
24737 \begin_layout Standard
24738 There are six varieties of cross-references:
24741 \begin_layout Description
24742 <reference>: prints the float number, this is the default:
24743 \begin_inset CommandInset ref
24745 reference "fig:Two-distorted-images"
24752 \begin_layout Description
24753 (<reference>): prints the float number within two parentheses, this is the
24754 style normally used to reference formulas, especially when the reference
24756 \begin_inset Quotes eld
24760 \begin_inset Quotes erd
24764 \begin_inset CommandInset ref
24773 \begin_layout Description
24774 <page>: prints the page number: Page
24775 \begin_inset space ~
24779 \begin_inset CommandInset ref
24780 LatexCommand pageref
24781 reference "fig:Two-distorted-images"
24788 \begin_layout Description
24790 \begin_inset space ~
24794 \begin_inset space ~
24797 <page>: prints the text "on page" and the page number:
24798 \begin_inset CommandInset ref
24799 LatexCommand vpageref
24800 reference "fig:Two-distorted-images"
24807 \begin_layout Description
24809 \begin_inset space ~
24813 \begin_inset space ~
24817 \begin_inset space ~
24820 <page>: prints the float number, the text "on page", and the page number:
24822 \begin_inset CommandInset ref
24824 reference "fig:Two-distorted-images"
24831 \begin_layout Description
24833 \begin_inset space ~
24836 reference: prints a self-defined cross-reference format.
24837 \begin_inset Newline newline
24841 \begin_inset Note Greyedout
24844 \begin_layout Plain Layout
24849 This feature is only available when you have the \SpecialChar LaTeX
24859 \begin_inset Index idx
24862 \begin_layout Plain Layout
24864 -packages ! prettyref
24870 \begin_inset Index idx
24873 \begin_layout Plain Layout
24875 -packages ! refstyle
24886 \begin_inset Newline newline
24889 You can select which \SpecialChar LaTeX
24890 -package should be used for this feature by setting
24893 Use refstyle (not prettyref) for cross-references
24897 Document\SpecialChar menuseparator
24898 Settings\SpecialChar menuseparator
24902 The format is specified by adding the command
24914 (refstyle) to the preamble of the document.
24915 For example redefining all references to figures (which have the label
24917 \begin_inset Quotes eld
24925 \begin_inset Quotes erd
24928 ) can be done with this command
24929 \begin_inset Newline newline
24936 newref{fig}{refcmd={Image on page
24941 \begin_inset Newline newline
24944 For more information about the format, have a look at the package documentations
24946 \begin_inset CommandInset citation
24948 key "prettyref,refstyle"
24955 \begin_layout Description
24957 \begin_inset space ~
24960 reference: prints the caption of the reference:
24961 \begin_inset CommandInset ref
24962 LatexCommand nameref
24963 reference "fig:Two-distorted-images"
24970 \begin_layout Standard
24975 will not print the page number if the label is on the previous, the same,
24978 \begin_inset space \thinspace{}
24982 \begin_inset space \space{}
24986 \begin_inset Quotes eld
24994 \begin_inset Quotes erd
25000 <reference> on page <page>
25002 will not print anything about the page if the label is on the same page.
25005 \begin_layout Standard
25006 The number and current page of the part of the document referred to in the
25007 output is automatically calculated by \SpecialChar LaTeX
25009 The varieties are adjusted in the field
25013 of the cross-reference window that appears when you click on the cross-referenc
25017 \begin_layout Standard
25018 \begin_inset Note Greyedout
25021 \begin_layout Plain Layout
25026 It is recommended to use the \SpecialChar LaTeX
25032 \begin_inset Index idx
25035 \begin_layout Plain Layout
25037 -packages ! refstyle
25047 \begin_inset Index idx
25050 \begin_layout Plain Layout
25052 -packages ! prettyref
25057 does not know all of \SpecialChar LyX
25058 's possible label shortcuts
25062 \begin_layout Plain Layout
25063 \begin_inset Quotes eld
25067 \begin_inset Quotes erd
25070 is for example \SpecialChar LyX
25071 's shortcut for labels in figure captions.
25076 and is not internationalized.
25084 \begin_layout Subsection
25085 Automatic Reference Naming
25086 \begin_inset Index idx
25089 \begin_layout Plain Layout
25090 References ! Automatic Reference Naming
25098 \begin_layout Standard
25099 The \SpecialChar LaTeX
25105 \begin_inset Index idx
25108 \begin_layout Plain Layout
25110 -packages ! hyperref
25115 , that is enabled in the
25123 dialog, provides a very useful feature that cross-references automatically
25124 include the name of the referenced floats (or text parts like
25129 So you will save having to write e.
25130 \begin_inset space \thinspace{}
25134 \begin_inset space \space{}
25138 \begin_inset Quotes eld
25142 \begin_inset Quotes erd
25145 before every reference to a figure.
25146 To use this feature, enable
25150 and insert this line to the \SpecialChar LaTeX
25154 \begin_layout Standard
25170 \begin_layout Standard
25171 When you prefer other reference names than the default ones, for example
25172 you want instead of
25173 \begin_inset Quotes eld
25177 \begin_inset Quotes erd
25181 \begin_inset Quotes eld
25185 \begin_inset space \thinspace{}
25189 \begin_inset Quotes eld
25192 , you can redefine the name by inserting this in the preamble:
25195 \begin_layout Standard
25206 sectionautorefname}
25207 \begin_inset Newline newline
25211 \begin_inset Phantom HPhantom
25214 \begin_layout Plain Layout
25217 \begin_inset space ~
25230 \begin_layout Standard
25231 When you are using another document language than English, replace
25232 \begin_inset Newline newline
25247 , where *** is the name of the language used.
25250 \begin_layout Standard
25251 To get automatic names, but not for certain reference types, for example
25252 not for equations, use this preamble code:
25255 \begin_layout Standard
25266 equationautorefname}[1]{}}
25269 \begin_layout Standard
25270 More about this topic can be found in
25275 \begin_inset CommandInset citation
25284 \begin_layout Standard
25285 \begin_inset Note Greyedout
25288 \begin_layout Plain Layout
25293 Automatic reference naming cannot be used when you use cross-references
25297 \begin_inset space ~
25302 style, as described in section
25303 \begin_inset space ~
25307 \begin_inset CommandInset ref
25309 reference "subsec:Cross-Reference-Formats"
25321 \begin_layout Standard
25326 manual is an example where automatic reference naming is used.
25329 \begin_layout Subsection
25331 \begin_inset CommandInset label
25333 name "subsec:Reference-Position"
25338 \begin_inset Index idx
25341 \begin_layout Plain Layout
25342 References ! Reference Position
25350 \begin_layout Standard
25356 \begin_inset Index idx
25359 \begin_layout Plain Layout
25361 -packages ! hyperref
25374 dialog to link cross-references in the output, you will see that clicking
25375 on an image float reference jumps to the image label.
25376 The caption will be the first text part on the screen, so that you cannot
25377 see the image without scrolling.
25378 This is because the reference link anchor is placed at the position of
25380 With the use of the package
25385 \begin_inset Index idx
25388 \begin_layout Plain Layout
25395 , which is part of the \SpecialChar LaTeX
25401 \begin_inset Index idx
25404 \begin_layout Plain Layout
25406 -packages ! oberdiek
25411 , the link anchor is placed at the beginning of a float.
25412 To use this feature for figure floats, load
25416 in the document preamble with the line
25419 \begin_layout Standard
25424 usepackage[figure]{hypcap}
25427 \begin_layout Standard
25432 for all float types but this is not recommended for stability reasons.
25433 For more information, have a look at
25438 \begin_inset CommandInset citation
25447 \begin_layout Standard
25448 \begin_inset Note Greyedout
25451 \begin_layout Plain Layout
25460 has no effect on references to subfigures.
25468 \begin_layout Section
25470 \begin_inset CommandInset label
25472 name "sec:Float-Placement"
25477 \begin_inset Index idx
25480 \begin_layout Plain Layout
25489 \begin_layout Standard
25490 Right-clicking on a float-box and clicking on
25494 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25496 positioning the float.
25497 \begin_inset Newline newline
25503 \begin_inset space ~
25508 is only useful for two-column documents: If you select it, the float will
25509 span both columns on the page instead of being confined to just one.
25510 \begin_inset Newline newline
25516 \begin_inset space ~
25521 is used to rotate floats, see section
25522 \begin_inset CommandInset ref
25524 reference "sec:Rotated-Floats"
25531 \begin_layout Standard
25532 You can use one or more of the following options in the float dialog to
25533 set the placement for a particular float when you uncheck the option
25536 \begin_inset space ~
25540 \begin_inset space ~
25548 \begin_layout Description
25550 \begin_inset space ~
25554 \begin_inset space ~
25557 possible try to place the float on the position where it has been inserted
25560 \begin_layout Description
25562 \begin_inset space ~
25566 \begin_inset space ~
25569 page try to place the float at the top of the current page
25572 \begin_layout Description
25574 \begin_inset space ~
25578 \begin_inset space ~
25581 page try to place the float at the bottom of the current page
25584 \begin_layout Description
25586 \begin_inset space ~
25590 \begin_inset space ~
25593 floats try to place the float on its own page
25596 \begin_layout Standard
25597 The order of the above option is
25601 used by \SpecialChar LaTeX
25603 That means, if you use the default placement, \SpecialChar LaTeX
25607 \begin_inset space ~
25611 \begin_inset space ~
25619 \begin_inset space ~
25623 \begin_inset space ~
25628 , and then the others.
25629 If you do not use the default, \SpecialChar LaTeX
25630 will try only the checked options but in
25633 \begin_inset space ~
25636 placements is possible the procedure is internally repeated trying to put
25637 the float on the following page.
25640 \begin_layout Standard
25641 By default, each option has its own rules:
25644 \begin_layout Labeling
25645 \labelwidthstring 00.00.0000
25649 \begin_inset space ~
25653 \begin_inset space ~
25658 only floats occupying less than 70
25659 \begin_inset space \thinspace{}
25662 % of the page can be placed at the top of a page (
25671 \begin_layout Labeling
25672 \labelwidthstring 00.00.0000
25676 \begin_inset space ~
25680 \begin_inset space ~
25685 : only floats occupying less than 30
25686 \begin_inset space \thinspace{}
25689 % of the page can be placed at the bottom of a page.
25699 \begin_layout Labeling
25700 \labelwidthstring 00.00.0000
25704 \begin_inset space ~
25708 \begin_inset space ~
25713 : only if more than 50
25714 \begin_inset space \thinspace{}
25717 % of the page is occupied by floats, several floats can be set together
25728 \begin_layout Standard
25729 If you don't like these rules, you can ignore them by using the additional
25733 \begin_inset space ~
25738 \begin_inset space ~
25744 \begin_inset Newline newline
25747 You can also redefine the rules with \SpecialChar LaTeX
25748 -commands that are given in parentheses
25749 after the rules description above.
25750 To increase for example the often too small default of the bottom-rule
25752 \begin_inset space \thinspace{}
25755 % of the page, add this line to your document preamble:
25758 \begin_layout Standard
25765 bottomfraction}{0.5}
25768 \begin_layout Standard
25769 Sometimes you might need, under all circumstances, a float to be placed
25770 exactly at the position where it is inserted.
25771 For this case you can use the option
25774 \begin_inset space ~
25780 Use this option very rarely and only if the document is almost ready to
25781 be printed, because the float is then no longer able to
25782 \begin_inset Quotes eld
25786 \begin_inset Quotes erd
25789 when you change your document and this will often destroy the page layout.
25792 \begin_layout Standard
25793 There are no placement options for text wrap floats, because they are always
25794 surrounded by the text of a certain paragraph.
25795 \begin_inset VSpace bigskip
25801 \begin_layout Standard
25802 Sometimes you have the problem that a float is placed at the top of a page
25803 while its corresponding section starts at the middle of the page, so that
25804 the reader could think the float is part of the previous section.
25805 To avoid this the \SpecialChar LaTeX
25813 It suppresses a given float placement for the page where it is inserted
25814 and can therefore be used to avoid floats being set before a section starts.
25815 To get this, add these commands to your document preamble:
25818 \begin_layout Standard
25828 \begin_inset Newline newline
25842 \begin_layout Standard
25843 You can define the same for all section headings, like chapters and subsections.
25844 This definition is not recommended to be used for small text parts like
25845 subsubsections because \SpecialChar LaTeX
25846 may then have problems finding a suitable placement.
25849 \begin_layout Standard
25850 \begin_inset VSpace bigskip
25853 In some cases it is required to have all figures/tables at the end of the
25855 For this purpose the \SpecialChar LaTeX
25861 \begin_inset Index idx
25864 \begin_layout Plain Layout
25866 -packages ! endfloat
25872 It puts all figure and table floats at the end of the document into their
25874 At the original float position a text hint like
25875 \begin_inset Quotes eld
25881 \begin_inset space ~
25887 \begin_inset Quotes erd
25891 The endfloat-package is loaded in the preamble with the line
25894 \begin_layout Standard
25899 usepackage[options]{endfloat}
25902 \begin_layout Standard
25903 There are various package options to format the created figure/table sections.
25904 For more information we refer you to the
25909 \begin_inset CommandInset citation
25916 \begin_inset Newline newline
25920 \begin_inset Note Greyedout
25923 \begin_layout Plain Layout
25928 doesn't provide an automatic translation for the text hint, you have to
25929 do this manually, see section
25930 \begin_inset space ~
25934 \begin_inset CommandInset citation
25946 \begin_inset Newline newline
25950 \begin_inset Note Greyedout
25953 \begin_layout Plain Layout
25958 There is currently a bug in
25962 when the caption contains a German
25963 \begin_inset Quotes eld
25967 \begin_inset Quotes erd
25971 Use in this case the command
25972 \begin_inset Quotes eld
25982 \begin_inset Quotes erd
25985 in \SpecialChar TeX
25987 \begin_inset Quotes eld
25991 \begin_inset Quotes erd
26002 \begin_layout Standard
26003 \begin_inset VSpace bigskip
26006 For more details about float placements, have a look at \SpecialChar LaTeX
26008 \begin_inset CommandInset citation
26010 key "latexcompanion,latexguide,latexbook"
26017 \begin_layout Section
26019 \begin_inset CommandInset label
26021 name "sec:Rotated-Floats"
26026 \begin_inset Index idx
26029 \begin_layout Plain Layout
26038 \begin_layout Standard
26039 Especially for wide tables you might have floats rotated.
26040 To rotate a whole float including the caption, right-click on the float-box
26044 \begin_inset space ~
26052 \begin_layout Standard
26053 Rotated floats are always placed on a page of their own (or column of their
26054 own; in case you have a multi-column document).
26055 You can let them span several columns using the float settings option
26058 \begin_inset space ~
26064 Floats are rotated so that you can read them from the outside margin.
26065 To force a certain rotation direction for all pages, you can add either
26074 to the document class options.
26077 \begin_layout Standard
26078 Referencing rotated floats is the same as for normal floats, the caption
26079 format is also the same: Table
26080 \begin_inset space ~
26084 \begin_inset CommandInset ref
26086 reference "tab:Rotated-table"
26090 is an example of a rotated table float.
26093 \begin_layout Standard
26094 \begin_inset Note Greyedout
26097 \begin_layout Plain Layout
26102 Not all DVI-viewers are able to display rotated floats.
26110 \begin_layout Standard
26111 \begin_inset Float table
26116 \begin_layout Plain Layout
26117 \begin_inset Caption Standard
26119 \begin_layout Plain Layout
26120 \begin_inset CommandInset label
26122 name "tab:Rotated-table"
26134 \begin_layout Plain Layout
26136 \begin_inset Tabular
26137 <lyxtabular version="3" rows="1" columns="5">
26138 <features tabularvalignment="middle">
26139 <column alignment="center" valignment="top">
26140 <column alignment="center" valignment="top">
26141 <column alignment="center" valignment="top">
26142 <column alignment="center" valignment="top">
26143 <column alignment="center" valignment="top">
26145 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26148 \begin_layout Plain Layout
26154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26157 \begin_layout Plain Layout
26163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26166 \begin_layout Plain Layout
26172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26175 \begin_layout Plain Layout
26181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26184 \begin_layout Plain Layout
26203 \begin_layout Section
26205 \begin_inset Index idx
26208 \begin_layout Plain Layout
26217 \begin_layout Standard
26218 Subfloats are for example used when a figure consists of several images.
26219 They are created by inserting a float into an existing float.
26220 The placement of the subfloats can be controlled in the same way as for
26221 paragraphs as shown in table
26222 \begin_inset space ~
26226 \begin_inset CommandInset ref
26228 reference "tab:Two-subtables-side"
26233 \begin_inset CommandInset ref
26235 reference "tab:Two-subtables-upon"
26242 \begin_layout Standard
26243 Referencing subfloats works as for normal floats: Table
26244 \begin_inset space ~
26248 \begin_inset CommandInset ref
26250 reference "tab:This-is-subtable-a"
26255 \begin_inset CommandInset ref
26257 reference "tab:This-is-subtable-b"
26261 are subtables of table
26262 \begin_inset space ~
26266 \begin_inset CommandInset ref
26268 reference "tab:Two-subtables-side"
26275 \begin_layout Standard
26276 \begin_inset Float table
26281 \begin_layout Plain Layout
26282 \begin_inset Caption Standard
26284 \begin_layout Plain Layout
26285 \begin_inset CommandInset label
26287 name "tab:Two-subtables-side"
26291 Two subtables placed side by side.
26299 \begin_layout Plain Layout
26301 \begin_inset space \hfill{}
26305 \begin_inset Float table
26310 \begin_layout Plain Layout
26311 \begin_inset Caption Standard
26313 \begin_layout Plain Layout
26314 \begin_inset CommandInset label
26316 name "tab:This-is-subtable-a"
26320 This is subtable a.
26328 \begin_layout Plain Layout
26330 \begin_inset Tabular
26331 <lyxtabular version="3" rows="1" columns="5">
26332 <features tabularvalignment="middle">
26333 <column alignment="center" valignment="top">
26334 <column alignment="center" valignment="top">
26335 <column alignment="center" valignment="top">
26336 <column alignment="center" valignment="top">
26337 <column alignment="center" valignment="top">
26339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26342 \begin_layout Plain Layout
26348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26351 \begin_layout Plain Layout
26357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26360 \begin_layout Plain Layout
26366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26369 \begin_layout Plain Layout
26375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26378 \begin_layout Plain Layout
26395 \begin_inset space \hfill{}
26399 \begin_inset Float table
26404 \begin_layout Plain Layout
26405 \begin_inset Caption Standard
26407 \begin_layout Plain Layout
26408 \begin_inset CommandInset label
26410 name "tab:This-is-subtable-b"
26414 This is subtable b.
26422 \begin_layout Plain Layout
26424 \begin_inset Tabular
26425 <lyxtabular version="3" rows="1" columns="5">
26426 <features tabularvalignment="middle">
26427 <column alignment="center" valignment="top">
26428 <column alignment="center" valignment="top">
26429 <column alignment="center" valignment="top">
26430 <column alignment="center" valignment="top">
26431 <column alignment="center" valignment="top">
26433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26436 \begin_layout Plain Layout
26442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26445 \begin_layout Plain Layout
26451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26454 \begin_layout Plain Layout
26460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26463 \begin_layout Plain Layout
26469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26472 \begin_layout Plain Layout
26489 \begin_inset space \hfill{}
26500 \begin_layout Standard
26501 \begin_inset Float table
26506 \begin_layout Plain Layout
26507 \begin_inset Caption Standard
26509 \begin_layout Plain Layout
26510 \begin_inset CommandInset label
26512 name "tab:Two-subtables-upon"
26516 Two subtables placed one above the other.
26517 (a) table with 4 cells, (b) table with 5 cells.
26525 \begin_layout Plain Layout
26527 \begin_inset Float table
26532 \begin_layout Plain Layout
26533 \begin_inset Caption Standard
26535 \begin_layout Plain Layout
26544 \begin_layout Plain Layout
26546 \begin_inset Tabular
26547 <lyxtabular version="3" rows="1" columns="4">
26548 <features tabularvalignment="middle">
26549 <column alignment="center" valignment="top">
26550 <column alignment="center" valignment="top">
26551 <column alignment="center" valignment="top">
26552 <column alignment="center" valignment="top">
26554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26557 \begin_layout Plain Layout
26563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26566 \begin_layout Plain Layout
26572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26575 \begin_layout Plain Layout
26581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26584 \begin_layout Plain Layout
26603 \begin_layout Plain Layout
26605 \begin_inset Float table
26610 \begin_layout Plain Layout
26611 \begin_inset Caption Standard
26613 \begin_layout Plain Layout
26622 \begin_layout Plain Layout
26624 \begin_inset Tabular
26625 <lyxtabular version="3" rows="1" columns="5">
26626 <features tabularvalignment="middle">
26627 <column alignment="center" valignment="top">
26628 <column alignment="center" valignment="top">
26629 <column alignment="center" valignment="top">
26630 <column alignment="center" valignment="top">
26631 <column alignment="center" valignment="top">
26633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26636 \begin_layout Plain Layout
26642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26645 \begin_layout Plain Layout
26651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26654 \begin_layout Plain Layout
26660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26663 \begin_layout Plain Layout
26669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26672 \begin_layout Plain Layout
26696 \begin_layout Section
26697 Floats Side by Side
26698 \begin_inset Index idx
26701 \begin_layout Plain Layout
26702 Floats ! Side by side
26710 \begin_layout Standard
26711 To place floats side by side, as in Figures
26712 \begin_inset space ~
26716 \begin_inset CommandInset ref
26718 reference "fig:Float-left"
26723 \begin_inset CommandInset ref
26725 reference "fig:Float-right"
26734 In it two minipage boxes are inserted.
26738 \begin_layout Plain Layout
26739 Minipages are explained in section
26740 \begin_inset space ~
26744 \begin_inset CommandInset ref
26746 reference "sec:Minipages"
26755 The width is set to 45
26756 \begin_inset space \thinspace{}
26760 \begin_inset space \thinspace{}
26763 column% and the box alignment to
26768 The minipage boxes contain the image and the caption in the same way as
26769 they are in a float.
26770 The only difference is that the image unit
26773 \begin_inset space ~
26777 \begin_inset space ~
26782 is now calculated according to the width of the minipage boxes.
26785 \begin_layout Standard
26786 \begin_inset Float figure
26791 \begin_layout Plain Layout
26792 \begin_inset Box Frameless
26802 height_special "totalheight"
26807 backgroundcolor "none"
26810 \begin_layout Plain Layout
26812 \begin_inset Graphics
26813 filename clipart/mobius.eps
26816 scaleBeforeRotation
26823 \begin_layout Plain Layout
26824 \begin_inset Caption Standard
26826 \begin_layout Plain Layout
26827 \begin_inset CommandInset label
26829 name "fig:Float-left"
26833 Float on the left side.
26844 \begin_inset space \hfill{}
26848 \begin_inset Box Frameless
26858 height_special "totalheight"
26863 backgroundcolor "none"
26866 \begin_layout Plain Layout
26868 \begin_inset Graphics
26869 filename clipart/platypus.eps
26872 scaleBeforeRotation
26879 \begin_layout Plain Layout
26880 \begin_inset Caption Standard
26882 \begin_layout Plain Layout
26883 \begin_inset CommandInset label
26885 name "fig:Float-right"
26889 Float on the right side.
26907 \begin_layout Standard
26908 An alternative and simpler solution is to use the module
26910 Variable-width Minipages
26913 \begin_inset space \thinspace{}
26917 \begin_inset CommandInset ref
26919 reference "sec:Minipages"
26924 Variable-width minipages adapt automatically to the width of the figures
26926 They do not require an explicit width to be given, and they improve the
26927 horizontal alignment of the figures.
26928 The LyX example file
26930 varwidth-floats-side-by-side
26932 gives examples of how to do this.
26935 \begin_layout Section
26937 \begin_inset Index idx
26940 \begin_layout Plain Layout
26941 Caption ! Formatting
26947 \begin_inset Index idx
26950 \begin_layout Plain Layout
26951 Floats ! Caption Formatting
26957 \begin_inset CommandInset label
26959 name "sec:Caption-Formatting"
26966 \begin_layout Standard
26971 environment is the default paragraph environment for
26976 On the \SpecialChar LyX
26977 screen captions appear as a label, e.
26978 \begin_inset space \thinspace{}
26982 \begin_inset space \space{}
26986 \begin_inset Quotes eld
26994 \begin_inset Quotes erd
26997 followed by the caption text.
26999 \begin_inset Quotes eld
27003 \begin_inset Quotes erd
27006 is the actual reference number.
27007 By default the label and the number are in the same font as the caption
27008 text and a colon follows the number to divide the label from the text.
27009 This caption format is suitable for many but not all documents.
27013 \begin_layout Standard
27014 To change the default caption format, load the \SpecialChar LaTeX
27020 \begin_inset Index idx
27023 \begin_layout Plain Layout
27025 -packages ! caption
27030 in the document preamble with this line:
27033 \begin_layout Standard
27038 usepackage[format definition]{caption}
27041 \begin_layout Standard
27042 To have for example the label and the number in sans-serif, bold font and
27043 the table captions always above the table as in this document, use the
27047 \begin_layout Standard
27052 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27055 \begin_layout Standard
27056 You can also define different caption formats for the different float types.
27057 In this case load the
27061 package without format specific options and define the different formats
27062 with the help of the command
27065 \begin_layout Standard
27070 captionsetup[float type]{format definition}
27073 \begin_layout Standard
27074 in the document preamble.
27075 For example the caption formats of Figure
27076 \begin_inset space ~
27080 \begin_inset CommandInset ref
27082 reference "fig:This-is-an-fig"
27087 \begin_inset space ~
27091 \begin_inset CommandInset ref
27093 reference "tab:This-is-an-tab"
27097 can be created using these commands in the document preamble:
27100 \begin_layout Standard
27105 usepackage[tableposition=top]{caption}
27108 \begin_inset Newline newline
27115 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27116 \begin_inset Newline newline
27120 \begin_inset Phantom HPhantom
27123 \begin_layout Plain Layout
27128 captionsetup[figure]{
27134 \begin_inset Newline newline
27139 captionsetup[table]{labelfont={bf,sf}}
27142 \begin_layout Standard
27143 \begin_inset Note Greyedout
27146 \begin_layout Plain Layout
27155 has no effect when a
27160 \begin_inset Index idx
27163 \begin_layout Plain Layout
27165 -packages ! KOMA-Script
27170 document class is used.
27171 In this case the document class option
27173 captions=tableheading
27183 \begin_layout Standard
27184 For more information about the package
27188 we refer to its documentation
27189 \begin_inset CommandInset citation
27198 \begin_layout Standard
27199 To change the label name from e.
27200 \begin_inset space \thinspace{}
27204 \begin_inset space \space{}
27208 \begin_inset Quotes eld
27212 \begin_inset Quotes erd
27216 \begin_inset Quotes eld
27220 \begin_inset Quotes erd
27223 use this preamble command:
27226 \begin_layout Standard
27233 fnum@figure}{Image~
27238 \begin_layout Standard
27245 inserts the figure number and
27248 \begin_inset Quotes eld
27254 \begin_inset Quotes erd
27257 creates a protected space.
27260 \begin_layout Standard
27261 \begin_inset VSpace bigskip
27269 \begin_inset Index idx
27272 \begin_layout Plain Layout
27274 -packages ! KOMA-Script
27281 article (KOMA-Script)
27289 letter (KOMA-Script)
27293 report (KOMA-Script)
27296 \begin_inset space \thinspace{}
27299 ), you can alternatively to the
27307 's built-in command
27314 For example, to have the caption label in bold, add this command to your
27318 \begin_layout Standard
27323 setkomafont{captionlabel}{
27328 \begin_layout Standard
27329 For more information about
27340 \begin_inset CommandInset citation
27349 \begin_layout Standard
27353 \begin_layout Plain Layout
27357 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27364 \begin_inset Note Note
27367 \begin_layout Plain Layout
27368 The caption format is changed only for this example.
27376 \begin_layout Standard
27377 \begin_inset Float figure
27383 \begin_layout Plain Layout
27385 \begin_inset Graphics
27386 filename clipart/mobius.eps
27389 scaleBeforeRotation
27396 \begin_layout Plain Layout
27397 \begin_inset Caption Standard
27399 \begin_layout Plain Layout
27400 \begin_inset CommandInset label
27402 name "fig:This-is-an-fig"
27406 This is an example figure caption that is longer than one line to show the
27407 different caption format.
27408 Here a self-defined caption format is used.
27421 \begin_layout Standard
27425 \begin_layout Plain Layout
27429 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27438 \begin_layout Standard
27439 \begin_inset Float table
27445 \begin_layout Plain Layout
27446 \begin_inset Caption Standard
27448 \begin_layout Plain Layout
27449 \begin_inset CommandInset label
27451 name "tab:This-is-an-tab"
27455 This is an example table caption that is longer than one line to show the
27456 different caption format.
27457 Here the standard caption format for tables in this document is used.
27465 \begin_layout Plain Layout
27467 \begin_inset Tabular
27468 <lyxtabular version="3" rows="1" columns="5">
27469 <features tabularvalignment="middle">
27470 <column alignment="center" valignment="top">
27471 <column alignment="center" valignment="top">
27472 <column alignment="center" valignment="top">
27473 <column alignment="center" valignment="top">
27474 <column alignment="center" valignment="top">
27476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27479 \begin_layout Plain Layout
27485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27488 \begin_layout Plain Layout
27494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27497 \begin_layout Plain Layout
27503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27506 \begin_layout Plain Layout
27512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27515 \begin_layout Plain Layout
27534 \begin_layout Section
27536 \begin_inset Index idx
27539 \begin_layout Plain Layout
27540 Caption ! Placement
27546 \begin_inset Index idx
27549 \begin_layout Plain Layout
27550 Floats ! Caption Placement
27556 \begin_inset CommandInset label
27558 name "sec:Caption-Placement"
27565 \begin_layout Standard
27566 The common caption placement rule is:
27569 \begin_layout Description
27570 Figure: Caption is set below the figure
27573 \begin_layout Description
27574 Table: Caption is set above the table
27577 \begin_layout Standard
27578 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27581 That means if you are using the document classes
27597 there will be no space between the caption and the table.
27598 To insert the necessary space, load the \SpecialChar LaTeX
27604 \begin_inset Index idx
27607 \begin_layout Plain Layout
27609 -packages ! caption
27614 in your document preamble with the option
27618 \begin_layout Plain Layout
27620 \begin_inset space ~
27624 \begin_inset CommandInset ref
27626 reference "sec:Caption-Formatting"
27630 for more information of the package
27642 \begin_layout Standard
27648 \begin_layout Standard
27654 \begin_inset Index idx
27657 \begin_layout Plain Layout
27659 -packages ! KOMA-Script
27666 article (KOMA-Script)
27674 letter (KOMA-Script)
27678 report (KOMA-Script)
27681 \begin_inset space \thinspace{}
27684 ), you can alternatively to the
27688 package set the document class option
27692 \begin_layout Plain Layout
27693 That option is used in this document.
27701 \begin_layout Standard
27704 captions=tableheading
27707 \begin_layout Standard
27708 In documents with a KOMA-Script document class you can also right-click
27709 on a caption and mark in the context menu if this should be a caption above
27710 or below the table/figure.
27711 This way you can override the document-wide caption placement for certain
27714 \begin_inset space ~
27718 \begin_inset CommandInset ref
27720 reference "tab:A-caption-marked"
27724 is an example where the caption is marked a being below the table while
27726 For comparison the caption in Table
27727 \begin_inset space ~
27731 \begin_inset CommandInset ref
27733 reference "tab:A-standard-table"
27740 \begin_layout Standard
27741 \begin_inset Float table
27746 \begin_layout Plain Layout
27747 \begin_inset Caption Below
27749 \begin_layout Plain Layout
27750 \begin_inset CommandInset label
27752 name "tab:A-caption-marked"
27756 A caption marked as being below the table.
27764 \begin_layout Plain Layout
27766 \begin_inset Tabular
27767 <lyxtabular version="3" rows="3" columns="3">
27768 <features tabularvalignment="middle">
27769 <column alignment="center" valignment="top" width="0pt">
27770 <column alignment="center" valignment="top" width="0pt">
27771 <column alignment="center" valignment="top" width="0pt">
27773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27776 \begin_layout Plain Layout
27782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27785 \begin_layout Plain Layout
27791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27794 \begin_layout Plain Layout
27802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27805 \begin_layout Plain Layout
27811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27814 \begin_layout Plain Layout
27820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27823 \begin_layout Plain Layout
27831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27834 \begin_layout Plain Layout
27835 \begin_inset Formula $\int x^{2}dx$
27843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27846 \begin_layout Plain Layout
27847 \begin_inset Formula $\left[\begin{array}{cc}
27850 \end{array}\right]$
27858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27861 \begin_layout Plain Layout
27862 \begin_inset Formula $1+1=2$
27883 \begin_layout Standard
27884 \begin_inset Float table
27889 \begin_layout Plain Layout
27890 \begin_inset Caption Standard
27892 \begin_layout Plain Layout
27893 \begin_inset CommandInset label
27895 name "tab:A-standard-table"
27899 A standard table caption.
27907 \begin_layout Plain Layout
27909 \begin_inset Tabular
27910 <lyxtabular version="3" rows="3" columns="3">
27911 <features tabularvalignment="middle">
27912 <column alignment="center" valignment="top" width="0pt">
27913 <column alignment="center" valignment="top" width="0pt">
27914 <column alignment="center" valignment="top" width="0pt">
27916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27919 \begin_layout Plain Layout
27925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27928 \begin_layout Plain Layout
27934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27937 \begin_layout Plain Layout
27945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27948 \begin_layout Plain Layout
27954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27957 \begin_layout Plain Layout
27963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27966 \begin_layout Plain Layout
27974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27977 \begin_layout Plain Layout
27978 \begin_inset Formula $\int x^{2}dx$
27986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27989 \begin_layout Plain Layout
27990 \begin_inset Formula $\left[\begin{array}{cc}
27993 \end{array}\right]$
28001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28004 \begin_layout Plain Layout
28005 \begin_inset Formula $1+1=2$
28026 \begin_layout Standard
28027 \begin_inset VSpace bigskip
28030 It is also possible to set the caption beside a figure or table.
28031 To get this the \SpecialChar LaTeX
28037 \begin_inset Index idx
28040 \begin_layout Plain Layout
28042 -packages ! sidecap
28047 has to be loaded in the document preamble with the line
28050 \begin_layout Standard
28055 usepackage[option]{sidecap}
28058 \begin_layout Standard
28059 If you set no option, the caption is placed on the side of the outer page
28060 margin – to the right on odd pages, to the left on even pages.
28061 You can change the placement to inner margin with the option
28066 To force the placement always to the right or left, use the option
28077 \begin_layout Standard
28081 \begin_layout Plain Layout
28091 \begin_inset Note Note
28094 \begin_layout Plain Layout
28095 The following section will only be displayed when the \SpecialChar LaTeX
28108 \begin_layout Standard
28109 To place in \SpecialChar LyX
28110 the caption of a float on the side, it is necessary to add
28111 these commands to the document preamble:
28114 \begin_layout Standard
28116 \begin_inset CommandInset line
28127 \begin_layout Standard
28134 TabBesBeg}[1][1.0]{%
28135 \begin_inset Newline newline
28139 \begin_inset Phantom HPhantom
28142 \begin_layout Plain Layout
28143 \begin_inset space ~
28158 \begin_inset Newline newline
28162 \begin_inset Phantom HPhantom
28165 \begin_layout Plain Layout
28168 \begin_inset space ~
28183 \begin_inset Newline newline
28187 \begin_inset Phantom HPhantom
28190 \begin_layout Plain Layout
28193 \begin_inset space ~
28203 renewenvironment{table}[1]{
28205 begin{SCtable}[#1]##1}{
28210 \begin_layout Standard
28218 \begin_inset Newline newline
28222 \begin_inset Phantom HPhantom
28225 \begin_layout Plain Layout
28226 \begin_inset space ~
28241 \begin_inset Newline newline
28245 \begin_inset Phantom HPhantom
28248 \begin_layout Plain Layout
28249 \begin_inset space ~
28266 \begin_layout Standard
28273 FigBesBeg}[1][1.0]{%
28274 \begin_inset Newline newline
28278 \begin_inset Phantom HPhantom
28281 \begin_layout Plain Layout
28282 \begin_inset space ~
28297 \begin_inset Newline newline
28301 \begin_inset Phantom HPhantom
28304 \begin_layout Plain Layout
28305 \begin_inset space ~
28320 \begin_inset Newline newline
28324 \begin_inset Phantom HPhantom
28327 \begin_layout Plain Layout
28328 \begin_inset space ~
28338 renewenvironment{figure}[1]{
28340 begin{SCfigure}[#1]##1}{
28345 \begin_layout Standard
28353 \begin_inset Newline newline
28357 \begin_inset Phantom HPhantom
28360 \begin_layout Plain Layout
28361 \begin_inset space ~
28376 \begin_inset Newline newline
28380 \begin_inset Phantom HPhantom
28383 \begin_layout Plain Layout
28384 \begin_inset space ~
28401 \begin_layout Standard
28403 \begin_inset CommandInset line
28414 \begin_layout Standard
28415 The commands allow you to redefine the floats so that the caption is set
28417 For figure floats use the command
28420 \begin_layout Standard
28428 \begin_layout Standard
28429 in \SpecialChar TeX
28430 Code before the float.
28431 And insert the command
28434 \begin_layout Standard
28442 \begin_layout Standard
28443 in \SpecialChar TeX
28444 Code at the point where you want to get back to the original float definitio
28448 \begin_layout Standard
28449 For table floats use the corresponding commands
28452 \begin_layout Standard
28466 \begin_layout Standard
28468 \begin_inset space ~
28472 \begin_inset CommandInset ref
28474 reference "fig:cap-beside-fig"
28479 \begin_inset space ~
28483 \begin_inset CommandInset ref
28485 reference "tab:cap-beside-tab"
28489 are examples where the caption is set beside.
28492 \begin_layout Standard
28493 You can see in the examples that the caption text appears at the top of
28494 the floats for table floats and at the bottom for figure floats.
28495 To change this, you can use the command
28498 \begin_layout Standard
28503 sidecaptionvpos{float type}{placement}
28506 \begin_layout Standard
28507 in the document preamble or in \SpecialChar TeX
28508 Code before the float.
28509 The float type is either
28517 , the placement can be
28518 \begin_inset Quotes eld
28526 \begin_inset Quotes erd
28530 \begin_inset Quotes eld
28538 \begin_inset Quotes erd
28542 \begin_inset Quotes eld
28550 \begin_inset Quotes erd
28554 To have for example the caption of figure floats vertically centered, use
28558 \begin_layout Standard
28563 sidecaptionvpos{figure}{c}
28566 \begin_layout Standard
28567 This was used for Figure
28568 \begin_inset space ~
28572 \begin_inset CommandInset ref
28574 reference "fig:cap-beside-fig-2"
28581 \begin_layout Standard
28582 \begin_inset VSpace medskip
28588 \begin_layout Standard
28589 The default caption width is the width of the image/table.
28590 For thin image/tables, like in Table
28591 \begin_inset space ~
28595 \begin_inset CommandInset ref
28597 reference "tab:cap-beside-tab"
28601 , this leads to captions that are too thin.
28602 You can increase the width by specifying a factor that will be multiplied
28603 with the image/table width to get the caption width.
28604 The caption width will automatically be recalculated in case it would protrude
28605 over the page or column margin due to the specified width.
28610 can either be given as optional argument for
28619 \begin_layout Standard
28627 \begin_layout Standard
28628 or in the definition of
28638 with another value.
28639 If you do the latter, your factor will be the default if
28645 is used without an argument.
28647 \begin_inset space ~
28651 \begin_inset CommandInset ref
28653 reference "tab:cap-beside-tab-wider"
28657 the factor 5 was used.
28660 \begin_layout Standard
28661 \begin_inset Note Greyedout
28664 \begin_layout Plain Layout
28669 For floats with captions set beside, you cannot use the float placement
28673 \begin_inset space ~
28678 because it is not supported by
28690 \begin_layout Standard
28691 \begin_inset VSpace medskip
28694 For more information about the package
28698 we refer to its documentation
28699 \begin_inset CommandInset citation
28708 \begin_layout Standard
28709 \begin_inset Note Greyedout
28712 \begin_layout Plain Layout
28717 The \SpecialChar LaTeX
28723 \begin_inset Index idx
28726 \begin_layout Plain Layout
28733 , described in section
28734 \begin_inset space ~
28738 \begin_inset CommandInset ref
28740 reference "subsec:Reference-Position"
28744 , has no effect on floats with the caption set beside.
28752 \begin_layout Standard
28756 \begin_layout Plain Layout
28768 \begin_layout Standard
28769 \begin_inset Float figure
28774 \begin_layout Plain Layout
28775 \begin_inset Graphics
28776 filename clipart/escher-lsd.eps
28778 scaleBeforeRotation
28785 \begin_layout Plain Layout
28786 \begin_inset Caption Standard
28788 \begin_layout Plain Layout
28789 \begin_inset CommandInset label
28791 name "fig:cap-beside-fig"
28795 This is a caption beside a figure.
28808 \begin_layout Standard
28812 \begin_layout Plain Layout
28824 \begin_layout Standard
28828 \begin_layout Plain Layout
28840 \begin_layout Standard
28841 \begin_inset Float table
28846 \begin_layout Plain Layout
28847 \begin_inset Caption Standard
28849 \begin_layout Plain Layout
28850 \begin_inset CommandInset label
28852 name "tab:cap-beside-tab"
28856 This is a caption beside a table.
28864 \begin_layout Plain Layout
28865 \begin_inset Tabular
28866 <lyxtabular version="3" rows="4" columns="5">
28867 <features tabularvalignment="middle">
28868 <column alignment="center" valignment="top">
28869 <column alignment="center" valignment="top">
28870 <column alignment="center" valignment="top">
28871 <column alignment="center" valignment="top">
28872 <column alignment="center" valignment="top">
28874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28877 \begin_layout Plain Layout
28883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28886 \begin_layout Plain Layout
28892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28895 \begin_layout Plain Layout
28901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28904 \begin_layout Plain Layout
28910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28913 \begin_layout Plain Layout
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Plain Layout
28930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28933 \begin_layout Plain Layout
28939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28942 \begin_layout Plain Layout
28948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28951 \begin_layout Plain Layout
28957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28960 \begin_layout Plain Layout
28968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28971 \begin_layout Plain Layout
28977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28980 \begin_layout Plain Layout
28986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28989 \begin_layout Plain Layout
28995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28998 \begin_layout Plain Layout
29004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29007 \begin_layout Plain Layout
29015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29018 \begin_layout Plain Layout
29024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29027 \begin_layout Plain Layout
29033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29036 \begin_layout Plain Layout
29042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29045 \begin_layout Plain Layout
29051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29054 \begin_layout Plain Layout
29073 \begin_layout Standard
29077 \begin_layout Plain Layout
29089 \begin_layout Standard
29093 \begin_layout Plain Layout
29106 \begin_layout Plain Layout
29110 sidecaptionvpos{figure}{c}
29116 \begin_inset Float figure
29121 \begin_layout Plain Layout
29122 \begin_inset Graphics
29123 filename clipart/escher-lsd.eps
29125 scaleBeforeRotation
29132 \begin_layout Plain Layout
29133 \begin_inset Caption Standard
29135 \begin_layout Plain Layout
29136 \begin_inset CommandInset label
29138 name "fig:cap-beside-fig-2"
29142 This is a vertically centered caption beside a figure.
29155 \begin_layout Standard
29159 \begin_layout Plain Layout
29171 \begin_layout Standard
29175 \begin_layout Plain Layout
29187 \begin_layout Standard
29188 \begin_inset Float table
29193 \begin_layout Plain Layout
29194 \begin_inset Caption Standard
29196 \begin_layout Plain Layout
29197 \begin_inset CommandInset label
29199 name "tab:cap-beside-tab-wider"
29203 This caption is wider than the one in Table
29204 \begin_inset space ~
29208 \begin_inset CommandInset ref
29210 reference "tab:cap-beside-tab"
29222 \begin_layout Plain Layout
29223 \begin_inset Tabular
29224 <lyxtabular version="3" rows="4" columns="5">
29225 <features tabularvalignment="middle">
29226 <column alignment="center" valignment="top">
29227 <column alignment="center" valignment="top">
29228 <column alignment="center" valignment="top">
29229 <column alignment="center" valignment="top">
29230 <column alignment="center" valignment="top">
29232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29235 \begin_layout Plain Layout
29241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29244 \begin_layout Plain Layout
29250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29253 \begin_layout Plain Layout
29259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29262 \begin_layout Plain Layout
29268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29271 \begin_layout Plain Layout
29279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29282 \begin_layout Plain Layout
29288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29291 \begin_layout Plain Layout
29297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29300 \begin_layout Plain Layout
29306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29309 \begin_layout Plain Layout
29315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29318 \begin_layout Plain Layout
29326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29329 \begin_layout Plain Layout
29335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29338 \begin_layout Plain Layout
29344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29347 \begin_layout Plain Layout
29353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29356 \begin_layout Plain Layout
29362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29365 \begin_layout Plain Layout
29373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29376 \begin_layout Plain Layout
29382 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29385 \begin_layout Plain Layout
29391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29394 \begin_layout Plain Layout
29400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29403 \begin_layout Plain Layout
29409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29412 \begin_layout Plain Layout
29431 \begin_layout Standard
29435 \begin_layout Plain Layout
29447 \begin_layout Standard
29451 \begin_layout Plain Layout
29461 \begin_inset Note Note
29464 \begin_layout Plain Layout
29465 The following will be displayed when the \SpecialChar LaTeX
29478 \begin_layout Standard
29479 You need to install the \SpecialChar LaTeX
29484 to see the following part of this section in the output.
29487 \begin_layout Standard
29491 \begin_layout Plain Layout
29503 \begin_layout Section
29505 \begin_inset Index idx
29508 \begin_layout Plain Layout
29509 Floats ! Float Lists
29517 \begin_layout Standard
29518 Similar to the table of contents where the sections of the document are
29519 listed, there are listings for all float types, like the figures of the
29521 You can insert them via the
29523 Insert\SpecialChar menuseparator
29525 \begin_inset space ~
29529 \begin_inset space ~
29537 \begin_layout Standard
29538 The list entries are the float captions or its short title, the float number,
29539 and the page number where they appear in the document.
29542 \begin_layout Standard
29543 You can find the list of figures and tables at the end of this document.
29546 \begin_layout Chapter
29550 \begin_layout Section
29553 \begin_inset Index idx
29556 \begin_layout Plain Layout
29557 Notes ! \SpecialChar LyX
29566 \begin_layout Standard
29567 Notes are inserted with the toolbar button
29575 Insert\SpecialChar menuseparator
29579 There are three types of notes:
29582 \begin_layout Description
29585 \begin_inset space ~
29588 Note This note type is for internal notes that won't appear in the output.
29589 Its note-box looks like this:
29590 \begin_inset Newline newline
29594 \begin_inset Newline newline
29598 \begin_inset Graphics
29599 filename clipart/LyXNoteImageQt4.png
29602 scaleBeforeRotation
29607 \begin_inset Note Note
29610 \begin_layout Plain Layout
29611 This is text in a note box that doesn't appear in the output.
29619 \begin_layout Description
29620 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29622 when you export the document to \SpecialChar LaTeX
29625 File\SpecialChar menuseparator
29626 Export\SpecialChar menuseparator
29628 (pdflatex) / (plain)
29631 Its note-box looks like this:
29632 \begin_inset Newline newline
29636 \begin_inset Newline newline
29640 \begin_inset Graphics
29641 filename clipart/CommentNoteImageQt4.png
29644 scaleBeforeRotation
29649 \begin_inset Note Comment
29652 \begin_layout Plain Layout
29653 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29662 \begin_layout Description
29664 \begin_inset space ~
29667 Out This note will appear in the output as grey text.
29668 Its note-box looks like this:
29669 \begin_inset Newline newline
29673 \begin_inset Newline newline
29677 \begin_inset Graphics
29678 filename clipart/GreyedOutNoteImageQt4.png
29681 scaleBeforeRotation
29686 \begin_inset Newline newline
29693 \begin_layout Plain Layout
29697 renewenvironment{lyxgreyedout}
29700 \begin_layout Plain Layout
29704 textcolor[gray]{0.8}
29714 \begin_inset Note Greyedout
29717 \begin_layout Plain Layout
29722 \begin_layout Plain Layout
29723 This is an example footnote within a greyed out note.
29728 of a comment that appears in the output as grey text.
29737 \begin_layout Plain Layout
29741 renewenvironment{lyxgreyedout}
29744 \begin_layout Plain Layout
29758 \begin_inset Note Note
29761 \begin_layout Plain Layout
29762 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29764 because greyed out notes are redefined in the preamble of this document,
29765 as described below, to have blue text.
29771 \begin_inset Newline newline
29775 \begin_inset Newline newline
29778 As you can see in the example, the first line of greyed out notes is a bit
29779 indented and greyed out notes can have footnotes.
29782 \begin_layout Standard
29783 \begin_inset VSpace bigskip
29786 When you use the toolbar button
29796 \begin_inset space ~
29802 You can switch between the three note types by right-clicking on the note-box.
29807 If you want to turn existing text into a note, mark it and click on the
29821 To change a note to text, press the backspace key when the cursor is in
29822 the first position of a note, or press the delete key when the cursor is
29823 in the very last position of the note, respectively.
29826 \begin_layout Standard
29827 \begin_inset VSpace bigskip
29830 You can change the text color of the greyed out notes in the menu
29832 Document\SpecialChar menuseparator
29833 Settings\SpecialChar menuseparator
29839 \begin_layout Section
29841 \begin_inset CommandInset label
29843 name "sec:Footnotes"
29848 \begin_inset Index idx
29851 \begin_layout Plain Layout
29858 \begin_inset Index idx
29861 \begin_layout Plain Layout
29870 \begin_layout Standard
29871 Footnotes can be inserted using the toolbar button
29874 arg "footnote-insert"
29879 Insert\SpecialChar menuseparator
29883 You will then see the following footnote-box:
29884 \begin_inset Graphics
29885 filename clipart/footnoteQt4.png
29887 scaleBeforeRotation
29895 where you can enter the footnote text.
29896 If you want to turn existing text into a footnote, mark it and click on
29922 key when the cursor is in the first position of a
29934 key when the cursor is in the very last position of the
29945 \begin_layout Standard
29946 Here is an example footnote:
29954 \begin_layout Plain Layout
29955 \begin_inset CommandInset label
29957 name "foot:This-is-an"
29961 This is an example footnote.
29974 \begin_layout Plain Layout
29978 newcounter{MyRepeatFoot}
29981 \begin_layout Plain Layout
29985 setcounter{MyRepeatFoot}{
29995 \begin_layout Standard
29996 The footnote will appear in the output as a superscript number at the text
29997 position where the footnote box is placed.
29998 The footnote text is placed at the bottom of the current page.
29999 The footnote number is calculated by \SpecialChar LaTeX
30000 ; the numbers are consecutive.
30001 Whether the footnote number is reset for every chapter depends on your
30005 \begin_layout Standard
30006 Footnotes can be referenced like floats: Insert a label into the footnote
30007 and cross-reference this label in the text as described in section
30008 \begin_inset space ~
30012 \begin_inset CommandInset ref
30014 reference "sec:Referencing-Floats"
30019 \begin_inset Newline newline
30022 This is a cross-reference of Footnote
30023 \begin_inset space ~
30027 \begin_inset CommandInset ref
30029 reference "foot:This-is-an"
30036 \begin_layout Standard
30037 \begin_inset VSpace defskip
30040 Footnotes in title environments are usually not numbered with symbols and
30041 they cannot contain several paragraphs.
30042 See for example the footnote in the titling of this document.
30045 \begin_layout Standard
30046 \begin_inset VSpace defskip
30049 Footnotes in tables are not printed by \SpecialChar LaTeX
30050 due to technical reasons.
30051 However there exists another method to print them: Instead of the footnote
30058 is inserted as \SpecialChar TeX
30060 The text of the footnote is entered as an argument of the \SpecialChar TeX
30069 \begin_inset Newline newline
30072 This was done for the following table with the command
30075 \begin_layout Standard
30082 Printed table footnote.
30087 \begin_layout Standard
30088 \begin_inset Tabular
30089 <lyxtabular version="3" rows="2" columns="1">
30090 <features tabularvalignment="middle">
30091 <column alignment="center" valignment="top">
30093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30096 \begin_layout Plain Layout
30097 This an example text.
30101 \begin_layout Plain Layout
30102 This footnote will not be printed!
30114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30117 \begin_layout Plain Layout
30118 This an example text.
30122 \begin_layout Plain Layout
30145 \begin_layout Plain Layout
30154 Printed table footnote.
30158 \begin_layout Plain Layout
30168 \begin_layout Standard
30169 Footnotes in longtables are described in section
30170 \begin_inset space ~
30174 \begin_inset CommandInset ref
30176 reference "subsec:Footnotes-in-Longtables"
30183 \begin_layout Standard
30184 Footnotes in minipage boxes are printed, but inside the box and with a different
30185 numbering because a minipage box is like a page inside a page.
30186 (For more about minipages, see section
30187 \begin_inset space ~
30191 \begin_inset CommandInset ref
30193 reference "sec:Minipages"
30197 .) To get a footnote in the minipage that is output at the bottom of the
30198 page like normal footnotes, also use the method of
30213 \begin_layout Standard
30214 \begin_inset Box Frameless
30224 height_special "totalheight"
30229 backgroundcolor "none"
30232 \begin_layout Plain Layout
30233 This an example text in a minipage.
30237 \begin_layout Plain Layout
30238 Footnote in the minipage.
30246 \begin_layout Plain Layout
30247 This an example text in a minipage.
30251 \begin_layout Plain Layout
30268 \begin_layout Standard
30272 \begin_layout Plain Layout
30281 Footnote outside the minipage.
30285 \begin_layout Plain Layout
30295 \begin_layout Standard
30296 \begin_inset VSpace defskip
30302 \begin_layout Standard
30303 To refer to the same footnote several times without printing the footnote
30304 text every time, use the command
30308 footnotemark[number]
30310 in \SpecialChar TeX
30312 \begin_inset Newline newline
30315 As you do not know the number of the repeating footnote while you are writing
30316 the text, you have to store its number.
30317 For the following footnote mark example, these commands were inserted in
30319 code after Footnote
30320 \begin_inset space ~
30324 \begin_inset CommandInset ref
30326 reference "foot:This-is-an"
30330 to store the footnote number:
30333 \begin_layout Standard
30338 newcounter{MyRepeatFoot}
30339 \begin_inset Newline newline
30344 setcounter{MyRepeatFoot}{
30349 \begin_layout Standard
30350 The footnote mark was then created with this command:
30353 \begin_layout Standard
30363 \begin_layout Standard
30364 Here is a repeated footnote:
30372 \begin_layout Plain Layout
30386 \begin_layout Standard
30387 If you want to repeat the previous footnote, you can omit the storage of
30388 the footnote number and just use this command instead:
30391 \begin_layout Standard
30401 \begin_layout Standard
30402 Here is another repeated footnote:
30410 \begin_layout Plain Layout
30424 \begin_layout Subsection
30426 \begin_inset CommandInset label
30428 name "subsec:Footnote-Numbering"
30433 \begin_inset Index idx
30436 \begin_layout Plain Layout
30437 Footnotes ! Numbering
30445 \begin_layout Standard
30446 To reset the footnote number back to 1 after each section
30448 , add this command to your document preamble:
30451 \begin_layout Standard
30456 @addtoreset{footnote}{section}
30459 \begin_layout Standard
30460 \begin_inset VSpace bigskip
30463 The following preamble command changes the footnote numbering style to small
30467 \begin_layout Standard
30479 \begin_layout Standard
30483 \begin_layout Plain Layout
30496 This is a footnote with roman numbering:
30500 \begin_layout Plain Layout
30501 This is an example footnote with roman numbering.
30509 \begin_layout Standard
30510 To change the numbering style to capital roman numerals replace in the command
30525 \begin_inset Quotes eld
30529 \begin_inset Quotes erd
30532 footnotes with capital or small Latin letters use
30546 \begin_inset Quotes eld
30550 \begin_inset Quotes erd
30553 footnotes with symbols use
30562 \begin_layout Standard
30563 \begin_inset Note Greyedout
30566 \begin_layout Plain Layout
30571 You can only number 26 footnotes with Latin letters, because this numbering
30572 is limited to single letters.
30578 \begin_inset Newline newline
30582 \begin_inset Note Greyedout
30585 \begin_layout Plain Layout
30590 You can only number 9 footnotes with symbols.
30598 \begin_layout Standard
30599 To return to the default numbering style after you have changed to another
30612 in the command above.
30616 \begin_layout Plain Layout
30632 \begin_layout Standard
30633 \begin_inset VSpace bigskip
30639 \begin_layout Standard
30640 If you want to have footnotes numbered in the scheme
30641 \begin_inset Quotes eld
30645 \begin_inset Quotes erd
30648 , add the following command to your document preamble:
30651 \begin_layout Standard
30656 numberwithin{footnote}{chapter}
30659 \begin_layout Standard
30660 To be able to use the command
30669 \begin_inset space ~
30674 in the document settings the option
30677 \begin_inset space ~
30681 \begin_inset space ~
30685 \begin_inset space ~
30693 \begin_layout Standard
30697 \begin_layout Plain Layout
30701 numberwithin{footnote}{chapter}
30706 This is another example footnote:
30712 \begin_layout Plain Layout
30713 This is a footnote numbered in the scheme
30714 \begin_inset Quotes eld
30718 \begin_inset Quotes erd
30732 \begin_layout Plain Layout
30748 \begin_layout Standard
30749 \begin_inset Note Greyedout
30752 \begin_layout Plain Layout
30763 always prints out the footnote number as arabic number; previous redefinitions
30764 to get non-arabic numbers are overwritten.
30772 \begin_layout Standard
30773 So to get for example the scheme
30774 \begin_inset Quotes eld
30780 \begin_inset Quotes erd
30783 , use this command instead of
30792 \begin_layout Standard
30806 \begin_layout Subsection
30808 \begin_inset Index idx
30811 \begin_layout Plain Layout
30812 Footnotes ! Placement
30820 \begin_layout Standard
30821 If you have several footnotes in one page, they appear without vertical
30822 space between them at the bottom of the page.
30823 To make them more readable you can e.
30824 \begin_inset space \thinspace{}
30828 \begin_inset space \space{}
30832 \begin_inset space \thinspace{}
30835 mm space with the following preamble command:
30838 \begin_layout Standard
30848 \begin_inset Newline newline
30862 \begin_layout Standard
30863 \begin_inset VSpace bigskip
30866 In a two-column document the footnotes appear at the bottom of every column,
30868 \begin_inset space ~
30872 \begin_inset CommandInset ref
30874 reference "fig:Standard-footnote-placement"
30879 If the footnotes should only appear at the bottom of the right column,
30881 \begin_inset space ~
30885 \begin_inset CommandInset ref
30887 reference "fig:Footnote-placement-in"
30891 , use the \SpecialChar LaTeX
30897 \begin_inset Index idx
30900 \begin_layout Plain Layout
30902 -packages ! ftnright
30907 with this command in the document preamble:
30910 \begin_layout Standard
30915 usepackage{ftnright}
30918 \begin_layout Standard
30919 \begin_inset Float figure
30925 \begin_layout Plain Layout
30929 \begin_layout Plain Layout
30939 \begin_inset Graphics
30940 filename clipart/without_fntright.pdf
30942 scaleBeforeRotation
30950 \begin_layout Plain Layout
30960 \begin_layout Plain Layout
30961 \begin_inset Caption Standard
30963 \begin_layout Plain Layout
30964 \begin_inset CommandInset label
30966 name "fig:Standard-footnote-placement"
30970 Standard footnote placement in two-column documents.
30983 \begin_layout Standard
30984 \begin_inset Float figure
30990 \begin_layout Plain Layout
30994 \begin_layout Plain Layout
31004 \begin_inset Graphics
31005 filename clipart/with_fntright.pdf
31007 scaleBeforeRotation
31015 \begin_layout Plain Layout
31025 \begin_layout Plain Layout
31026 \begin_inset Caption Standard
31028 \begin_layout Plain Layout
31029 \begin_inset CommandInset label
31031 name "fig:Footnote-placement-in"
31035 Footnote placement in two-column documents when the \SpecialChar LaTeX
31053 \begin_layout Standard
31054 \begin_inset VSpace bigskip
31057 In some scientific literature it is usual to collect the footnotes and print
31058 them in a separate paragraph at the end of a section, as in Figure
31059 \begin_inset space ~
31063 \begin_inset CommandInset ref
31065 reference "fig:Endnotes"
31070 They are then called
31071 \begin_inset Quotes eld
31075 \begin_inset Quotes erd
31079 \begin_inset Index idx
31082 \begin_layout Plain Layout
31088 To use endnotes instead of footnotes in your document, load in the menu
31091 Document\SpecialChar menuseparator
31092 Settings\SpecialChar menuseparator
31098 \begin_inset space ~
31102 \begin_inset space ~
31108 To insert the collected footnotes, insert the command
31111 \begin_layout Standard
31119 \begin_layout Standard
31120 in \SpecialChar TeX
31121 Code at the end of a section or chapter.
31124 \begin_layout Standard
31125 \begin_inset Float figure
31130 \begin_layout Plain Layout
31135 \begin_layout Plain Layout
31145 \begin_inset Graphics
31146 filename clipart/endnotes.pdf
31147 scaleBeforeRotation
31155 \begin_layout Plain Layout
31165 \begin_layout Plain Layout
31166 \begin_inset Caption Standard
31168 \begin_layout Plain Layout
31169 \begin_inset CommandInset label
31171 name "fig:Endnotes"
31175 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31189 \begin_layout Standard
31190 \begin_inset VSpace medskip
31193 The paragraph heading for the endnotes isn't automatically translated into
31194 the document language, this must be done manually.
31195 The following preamble command translates the default English
31196 \begin_inset Quotes eld
31200 \begin_inset Quotes erd
31204 \begin_inset Quotes eld
31208 \begin_inset Quotes erd
31214 \begin_layout Standard
31221 notesname}{Anmerkungen}
31224 \begin_layout Standard
31225 \begin_inset VSpace medskip
31228 The numbering of endnotes can be changed like the footnote numbering as
31229 described in section
31230 \begin_inset space ~
31234 \begin_inset CommandInset ref
31236 reference "subsec:Footnote-Numbering"
31240 ; just replace the command
31253 To reset the endnote number use the command
31259 as described in section
31260 \begin_inset space ~
31264 \begin_inset CommandInset ref
31266 reference "subsec:Footnote-Numbering"
31270 and replace the command parameter
31281 \begin_layout Standard
31282 For endnotes there is the command
31286 endnotemark[number]
31288 similar to the command
31294 , that is described in section
31295 \begin_inset space ~
31299 \begin_inset CommandInset ref
31301 reference "sec:Footnotes"
31308 \begin_layout Standard
31309 \begin_inset VSpace bigskip
31312 Footnotes can also be placed in the page margin and the footnote text alignment
31313 can be changed, see the \SpecialChar LaTeX
31319 \begin_inset Index idx
31322 \begin_layout Plain Layout
31324 -packages ! footmisc
31330 \begin_inset CommandInset citation
31336 for more information about this.
31339 \begin_layout Standard
31340 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31342 \begin_inset CommandInset citation
31344 key "latexcompanion,latexguide,latexbook"
31354 \begin_inset Index idx
31357 \begin_layout Plain Layout
31359 -packages ! KOMA-Script
31364 document class, you can adjust all footnote settings using class-specific
31366 \begin_inset CommandInset citation
31375 \begin_layout Section
31377 \begin_inset Index idx
31380 \begin_layout Plain Layout
31381 Notes ! Margin Notes
31389 \begin_layout Standard
31390 Margin notes look and behave in \SpecialChar LyX
31392 They are inserted via the menu
31394 Insert\SpecialChar menuseparator
31396 \begin_inset space ~
31401 or the toolbar button
31404 arg "marginalnote-insert"
31418 \begin_inset Quotes eld
31422 \begin_inset Quotes erd
31425 appears where you can enter the text of the margin note.
31428 \begin_layout Standard
31429 At the side is an example margin note.
31434 \begin_inset Marginal
31437 \begin_layout Plain Layout
31438 This is a margin note.
31446 \begin_layout Standard
31447 Margin notes appear at the right side in single-sided documents.
31448 In double-sided documents they appear in the outer margin – left on even
31449 pages, right on odd pages.
31450 The text of margin notes is aligned opposite to the outer margin – right-aligne
31451 d when the note appears in the left margin.
31452 The first line of the margin note is placed at the position of the text
31453 line where it is inserted in the document.
31456 \begin_layout Standard
31457 \begin_inset VSpace bigskip
31460 To place the margin note in the inner margin, add the command
31463 \begin_layout Standard
31471 \begin_layout Standard
31472 in \SpecialChar TeX
31473 Code before a margin note.
31474 The new placement is valid for all subsequent margin notes.
31479 \begin_layout Plain Layout
31489 \begin_inset Marginal
31492 \begin_layout Plain Layout
31493 This is a margin note in the inner margin.
31501 \begin_inset Newline newline
31507 \begin_inset Note Greyedout
31510 \begin_layout Plain Layout
31515 There is often not enough space in the inner margin so that the notes are
31516 not correctly displayed in the output.
31524 \begin_layout Standard
31525 To return to the default placement insert the command
31528 \begin_layout Standard
31536 \begin_layout Standard
31537 in \SpecialChar TeX
31542 \begin_layout Plain Layout
31552 \begin_inset Note Greyedout
31555 \begin_layout Plain Layout
31560 The command is ignored when it is within a paragraph where also the command
31575 \begin_layout Standard
31576 \begin_inset VSpace bigskip
31583 \begin_inset Marginal
31586 \begin_layout Plain Layout
31587 AVeryLongMarginParWord that isn't hyphenated.
31595 Similar to the case described in section
31596 \begin_inset space ~
31600 \begin_inset CommandInset ref
31602 reference "subsec:Multiple-Lines-in"
31606 , long words cannot be hyphenated when they are the first word in a margin
31608 To avoid this, insert 0
31609 \begin_inset space \thinspace{}
31612 pt horizontal space before the word
31617 \begin_inset Marginal
31620 \begin_layout Plain Layout
31621 \begin_inset space \hspace*{}
31625 AVeryLongMarginParWord that is hyphenated.
31633 \begin_layout Standard
31634 \begin_inset VSpace bigskip
31640 \begin_layout Standard
31641 \begin_inset Note Greyedout
31644 \begin_layout Plain Layout
31649 Margin notes can normally not be used inside tables, floats, and footnotes.
31657 \begin_layout Standard
31658 \begin_inset VSpace bigskip
31664 \begin_layout Standard
31668 \begin_layout Plain Layout
31678 \begin_inset Note Note
31681 \begin_layout Plain Layout
31682 The following section will only be displayed when the \SpecialChar LaTeX
31695 \begin_layout Standard
31696 This restriction can be evaded by using the \SpecialChar LaTeX
31702 \begin_inset Index idx
31705 \begin_layout Plain Layout
31707 -packages ! marginnote
31713 By adding these two lines to your document preamble, the command used by
31715 for margin notes is redefined to use the command provided by the
31722 \begin_layout Standard
31727 usepackage{marginnote}
31728 \begin_inset Newline newline
31740 \begin_layout Standard
31741 This is also used in this document because
31745 has another useful feature: You can set a vertical offset for the note.
31746 This is often needed when too many margin notes are too close together
31747 or for a better page layout.
31748 The offset is set in \SpecialChar LyX
31749 as \SpecialChar TeX
31750 Code directly after the margin note in the scheme
31753 \begin_layout Standard
31759 \begin_layout Standard
31760 where the offset is a length with one of the units listed in Table
31761 \begin_inset space ~
31765 \begin_inset CommandInset ref
31767 reference "tab:Units"
31772 A negative value shifts the note up, a positive value shifts it down.
31776 For example the margin note beside this text line is shifted up 1.5
31777 \begin_inset space \thinspace{}
31780 cm with the \SpecialChar TeX
31782 \begin_inset Quotes eld
31792 \begin_inset Quotes erd
31796 \begin_inset Marginal
31799 \begin_layout Plain Layout
31800 This margin note is shifted up 1.5
31801 \begin_inset space \thinspace{}
31804 cm from its original position.
31816 \begin_layout Plain Layout
31826 \begin_layout Standard
31827 \begin_inset VSpace medskip
31834 you can also change the alignment of the text in the margin note.
31835 For example the commands
31838 \begin_layout Standard
31845 raggedleftmarginnote}{
31848 \begin_inset Newline newline
31855 raggedrightmarginnote}{
31860 \begin_layout Standard
31861 set the alignment to centered.
31866 raggedleftmarginnote
31868 denotes margin notes that appear at the left side.
31875 \begin_layout Plain Layout
31881 raggedleftmarginnote}{
31886 \begin_layout Plain Layout
31892 raggedrightmarginnote}{
31900 \begin_inset Marginal
31903 \begin_layout Plain Layout
31904 The text of this margin note is centered.
31915 \begin_layout Standard
31922 raggedleftmarginnote}{
31925 \begin_inset Newline newline
31932 raggedrightmarginnote}{
31941 \begin_layout Plain Layout
31947 raggedleftmarginnote}{
31952 \begin_layout Plain Layout
31958 raggedrightmarginnote}{
31968 \begin_layout Standard
31969 \begin_inset VSpace medskip
31972 For the other features of
31976 refer to its documentation
31977 \begin_inset CommandInset citation
31986 \begin_layout Standard
31987 \begin_inset VSpace bigskip
31990 You can adjust the layout of margin notes by changing its definition.
31991 To create for example a header for all margin notes with the underlined,
31992 sans-serif, and bold header text
31993 \begin_inset Quotes eld
32005 \begin_inset Quotes erd
32008 , add this to your document preamble:
32011 \begin_layout Standard
32021 \begin_inset Newline newline
32031 \begin_inset Newline newline
32035 \begin_inset Phantom HPhantom
32038 \begin_layout Plain Layout
32041 \begin_inset space ~
32057 underbar{Attention!}}}%
32058 \begin_inset Newline newline
32062 \begin_inset Phantom HPhantom
32065 \begin_layout Plain Layout
32068 \begin_inset space ~
32085 \begin_layout Standard
32092 \begin_layout Plain Layout
32103 \begin_layout Plain Layout
32114 \begin_layout Plain Layout
32122 underbar{Attention!}}}%
32125 \begin_layout Plain Layout
32139 \begin_inset Marginal
32142 \begin_layout Plain Layout
32143 This is a margin note with a defined heading.
32155 \begin_layout Plain Layout
32169 \begin_layout Plain Layout
32186 \begin_inset Note Note
32189 \begin_layout Plain Layout
32190 The margin note format is changed only for this example.
32198 \begin_layout Standard
32202 \begin_layout Plain Layout
32212 \begin_inset Note Note
32215 \begin_layout Plain Layout
32216 The following will be displayed when the \SpecialChar LaTeX
32229 \begin_layout Standard
32230 You need to install the \SpecialChar LaTeX
32235 to see the following part of this section in the output.
32238 \begin_layout Standard
32242 \begin_layout Plain Layout
32254 \begin_layout Chapter
32258 \begin_layout Section
32260 \begin_inset Index idx
32263 \begin_layout Plain Layout
32264 Boxes ! Introduction
32272 \begin_layout Standard
32273 Boxes are used to format a block of text.
32274 Boxes can be used to write documents with multiple languages, see section
32275 \begin_inset space ~
32279 \begin_inset CommandInset ref
32281 reference "sec:Minipages"
32285 , to frame texts, see section
32286 \begin_inset space ~
32290 \begin_inset CommandInset ref
32292 reference "sec:Decoration"
32296 , to prevent words from being hyphenated, see section
32297 \begin_inset space ~
32301 \begin_inset CommandInset ref
32303 reference "sec:Prevent-Hyphenation"
32307 , to align text, see section
32308 \begin_inset space ~
32312 \begin_inset CommandInset ref
32314 reference "subsec:Vertical-Alignment"
32318 , or to set the background color of texts, see section
32319 \begin_inset space ~
32323 \begin_inset CommandInset ref
32325 reference "sec:Colored-Boxes"
32332 \begin_layout Standard
32333 Boxes can be inserted with the menu
32335 Insert\SpecialChar menuseparator
32338 or the toolbar button
32341 arg "box-insert Frameless"
32345 A grey box with the label
32350 \begin_inset Graphics
32351 filename clipart/BoxInsetDefaultQt4.png
32353 scaleBeforeRotation
32358 The box type can be specified by right-clicking on the box and selecting
32364 The box dialog offers the
32367 \begin_inset space ~
32389 is the default for new boxes and is explained in section
32390 \begin_inset space ~
32394 \begin_inset CommandInset ref
32396 reference "sec:Minipages"
32404 is described in section
32405 \begin_inset space ~
32409 \begin_inset CommandInset ref
32411 reference "sec:Parboxes"
32420 \begin_inset CommandInset ref
32422 reference "sec:Prevent-Hyphenation"
32429 \begin_layout Standard
32430 Boxes are not numbered and can therefore not be referenced like floats or
32434 \begin_layout Standard
32435 \begin_inset Note Greyedout
32438 \begin_layout Plain Layout
32443 Boxes must not be the item in an
32459 \begin_layout Standard
32460 \begin_inset Note Greyedout
32463 \begin_layout Plain Layout
32468 For an unknown reason you can only set the
32471 \begin_inset space ~
32480 when you use a framed box.
32484 \begin_inset space ~
32489 type and without frames are explained in section
32490 \begin_inset space ~
32494 \begin_inset CommandInset ref
32496 reference "sec:Prevent-Hyphenation"
32508 \begin_layout Section
32510 \begin_inset CommandInset label
32512 name "sec:Box-Dialog"
32517 \begin_inset Index idx
32520 \begin_layout Plain Layout
32529 \begin_layout Subsection
32531 \begin_inset Index idx
32534 \begin_layout Plain Layout
32543 \begin_layout Standard
32544 In the box dialog you can adjust the box geometry in the fields
32553 The available units for the geometry are explained in Table
32554 \begin_inset space ~
32558 \begin_inset CommandInset ref
32560 reference "tab:Units"
32569 offers the following additional sizes:
32572 \begin_layout Description
32573 Depth This is the plain text
32574 \begin_inset Quotes eld
32578 \begin_inset Quotes erd
32582 It ignores the total depth when there are multiple text lines in the box:
32583 \begin_inset Newline newline
32587 \begin_inset Newline newline
32591 \begin_inset Newline newline
32595 \begin_inset Box Boxed
32605 height_special "depth"
32610 backgroundcolor "none"
32613 \begin_layout Plain Layout
32615 Box height set to 1
32616 \begin_inset space \thinspace{}
32625 \begin_inset Newline newline
32629 \begin_inset Newline newline
32635 \begin_layout Description
32636 Height This is the height of the text that is inside the box.
32638 \begin_inset space \thinspace{}
32642 \begin_inset space \space{}
32645 2 for this size will set the box height to 2
32646 \begin_inset space ~
32649 times the text height:
32650 \begin_inset Box Boxed
32660 height_special "height"
32665 backgroundcolor "none"
32668 \begin_layout Plain Layout
32670 Box height set to 2
32671 \begin_inset space \thinspace{}
32682 \begin_layout Description
32684 \begin_inset space ~
32687 Height This is the Height
32688 \begin_inset space \thinspace{}
32692 \begin_inset space \thinspace{}
32696 \begin_inset Box Boxed
32706 height_special "totalheight"
32711 backgroundcolor "none"
32714 \begin_layout Plain Layout
32716 Box height set to 1
32717 \begin_inset space \thinspace{}
32721 \begin_inset space ~
32732 \begin_layout Description
32733 Width This sets the width of the box as height:
32734 \begin_inset Box Boxed
32744 height_special "width"
32749 backgroundcolor "none"
32752 \begin_layout Plain Layout
32754 Box height set to 1
32755 \begin_inset space \thinspace{}
32766 \begin_layout Subsection
32768 \begin_inset Index idx
32771 \begin_layout Plain Layout
32780 \begin_layout Standard
32781 When you have chosen an
32784 \begin_inset space ~
32789 , the vertical box alignment can be:
32792 \begin_layout Description
32793 Top This is an example text line.
32795 \begin_inset Box Boxed
32805 height_special "totalheight"
32810 backgroundcolor "none"
32813 \begin_layout Plain Layout
32815 This box is top-aligned.
32820 This is an example text line.
32823 \begin_layout Description
32824 Middle This is an example text line.
32826 \begin_inset Box Boxed
32836 height_special "totalheight"
32841 backgroundcolor "none"
32844 \begin_layout Plain Layout
32846 This box is middle-aligned.
32851 This is an example text line.
32854 \begin_layout Description
32855 Bottom This is an example text line.
32857 \begin_inset Box Boxed
32867 height_special "totalheight"
32872 backgroundcolor "none"
32875 \begin_layout Plain Layout
32877 This box is bottom-aligned.
32882 This is an example text line.
32885 \begin_layout Standard
32886 \begin_inset Note Greyedout
32889 \begin_layout Plain Layout
32894 The vertical box alignment can be lost in the output when you have two
32895 boxes in a line and one has e.
32896 \begin_inset space \thinspace{}
32900 \begin_inset space \space{}
32903 a shadow and the other one not.
32911 \begin_layout Standard
32912 The horizontal box alignment can be set via \SpecialChar LyX
32913 's paragraph dialog when you
32914 set the box into its own paragraph.
32917 \begin_layout Standard
32918 \begin_inset VSpace bigskip
32921 When you have chosen an
32924 \begin_inset space ~
32929 , the box content can be aligned vertically to:
32932 \begin_layout Description
32933 top This is an example text line.
32935 \begin_inset Box Boxed
32945 height_special "totalheight"
32950 backgroundcolor "none"
32953 \begin_layout Plain Layout
32955 This box text is top-aligned.
32960 This is an example text line.
32963 \begin_layout Description
32964 middle This is an example text line.
32966 \begin_inset Box Boxed
32976 height_special "totalheight"
32981 backgroundcolor "none"
32984 \begin_layout Plain Layout
32986 This box text is middle-aligned.
32991 This is an example text line.
32994 \begin_layout Description
32995 bottom This is an example text line.
32997 \begin_inset Box Boxed
33007 height_special "totalheight"
33012 backgroundcolor "none"
33015 \begin_layout Plain Layout
33017 This box text is bottom-aligned.
33022 This is an example text line.
33025 \begin_layout Description
33026 stretch This is an example text line.
33028 \begin_inset Box Boxed
33038 height_special "totalheight"
33043 backgroundcolor "none"
33046 \begin_layout Plain Layout
33051 \begin_layout Plain Layout
33056 \begin_layout Plain Layout
33063 This is an example text line.
33066 \begin_layout Standard
33067 To stretch the box content, it must consist of more than one paragraph.
33068 In the example above every text line is in an own paragraph.
33071 \begin_layout Standard
33072 \begin_inset VSpace bigskip
33075 To align the box content horizontally you can use \SpecialChar LyX
33076 's paragraph dialog when
33080 \begin_inset space ~
33088 \begin_layout Standard
33090 \begin_inset Box Boxed
33100 height_special "totalheight"
33105 backgroundcolor "none"
33108 \begin_layout Plain Layout
33113 \begin_layout Plain Layout
33118 \begin_layout Plain Layout
33128 \begin_layout Standard
33129 If you have not set an
33132 \begin_inset space ~
33137 , you can align the box content horizontally in the box dialog.
33138 \begin_inset Separator parbreak
33144 \begin_layout Standard
33146 \begin_inset Box Boxed
33156 height_special "totalheight"
33161 backgroundcolor "none"
33164 \begin_layout Plain Layout
33165 This box text is horizontally stretched.
33173 \begin_layout Subsection
33175 \begin_inset CommandInset label
33177 name "sec:Decoration"
33182 \begin_inset Index idx
33185 \begin_layout Plain Layout
33194 \begin_layout Standard
33195 The type of the box can be specified in the box dialog in the drop-down
33201 The following types are possible:
33204 \begin_layout Description
33206 \begin_inset space ~
33209 frame Nothing is drawn.
33212 \begin_layout Description
33214 \begin_inset space ~
33218 \begin_inset space ~
33221 frame This draws a rectangular frame around the box.
33222 The frame line thickness can be specified.
33224 \begin_inset Box Boxed
33234 height_special "totalheight"
33239 backgroundcolor "none"
33242 \begin_layout Plain Layout
33252 \begin_layout Description
33254 \begin_inset space ~
33258 \begin_inset space ~
33261 thin This draws an oval frame around the box.
33262 The frame line thickness has the size 0.4
33263 \begin_inset space \thinspace{}
33268 \begin_inset Box ovalbox
33278 height_special "totalheight"
33283 backgroundcolor "none"
33286 \begin_layout Plain Layout
33296 \begin_layout Description
33298 \begin_inset space ~
33302 \begin_inset space ~
33305 thick This draws an oval frame around the box.
33306 The frame line thickness has the size 0.8
33307 \begin_inset space \thinspace{}
33312 \begin_inset Box Ovalbox
33322 height_special "totalheight"
33327 backgroundcolor "none"
33330 \begin_layout Plain Layout
33340 \begin_layout Description
33342 \begin_inset space ~
33345 shadow This draws a rectangular frame with a shadow around the box.
33346 The frame line thickness and the shadow can be specified.
33348 \begin_inset Box Shadowbox
33358 height_special "totalheight"
33363 backgroundcolor "none"
33366 \begin_layout Plain Layout
33376 \begin_layout Description
33378 \begin_inset space ~
33381 background This draws a box with a red background.
33382 Unlike colored boxes
33386 \begin_layout Plain Layout
33388 \begin_inset space \thinspace{}
33392 \begin_inset CommandInset ref
33394 reference "sec:Colored-Boxes"
33403 , it always uses the whole column width and the box is set as its own paragraph.
33405 \begin_inset Box Shaded
33415 height_special "totalheight"
33420 backgroundcolor "none"
33423 \begin_layout Plain Layout
33424 Shaded background box
33432 \begin_layout Description
33434 \begin_inset space ~
33438 \begin_inset space ~
33441 frame This draws a double-line rectangular frame around the box.
33442 The line thickness of the inner frame is 0.75
33443 \begin_inset space \thinspace{}
33447 \begin_inset space ~
33450 thickness, the thickness of the outer frame is 1.5
33451 \begin_inset space \thinspace{}
33455 \begin_inset space ~
33459 The distance between the lines is 1.5
33460 \begin_inset space \thinspace{}
33464 \begin_inset space ~
33468 \begin_inset space \thinspace{}
33472 \begin_inset space \thinspace{}
33476 \begin_inset space \thinspace{}
33481 \begin_inset Box Doublebox
33491 height_special "totalheight"
33496 backgroundcolor "none"
33499 \begin_layout Plain Layout
33501 Double rectangular box
33509 \begin_layout Standard
33510 \begin_inset VSpace bigskip
33514 's box label will reflect the different frame types.
33515 To be able to use all types, the \SpecialChar LaTeX
33521 \begin_inset Index idx
33524 \begin_layout Plain Layout
33526 -packages ! fancybox
33534 \begin_layout Standard
33535 \begin_inset VSpace bigskip
33538 When you use the decoration
33540 simple rectangular frame
33542 and no inner box, you can allow page breaks within a box.
33543 Note that then, unlike other framed boxes, the frame always uses the whole
33544 column width and the box is set as its own paragraph:
33545 \begin_inset Box Framed
33555 height_special "totalheight"
33560 backgroundcolor "none"
33563 \begin_layout Plain Layout
33564 Allow page break box
33572 \begin_layout Section
33574 \begin_inset Index idx
33577 \begin_layout Plain Layout
33578 Boxes ! Customization
33586 \begin_layout Standard
33587 The diameter of the round corners of the oval boxes can be set with the
33598 \begin_layout Standard
33606 \begin_layout Standard
33607 sets the diameter to 1
33608 \begin_inset space \thinspace{}
33615 \begin_layout Standard
33623 \begin_layout Standard
33624 sets the diameter to
33627 \begin_inset space \thinspace{}
33631 \begin_inset space \thinspace{}
33634 minimum(width and height of box)
33646 \begin_layout Standard
33650 \begin_layout Plain Layout
33660 \begin_inset Box Ovalbox
33670 height_special "totalheight"
33675 backgroundcolor "none"
33678 \begin_layout Plain Layout
33687 \begin_inset space \thinspace{}
33691 \begin_inset space \thinspace{}
33695 \begin_inset space \thinspace{}
33707 \begin_layout Plain Layout
33719 \begin_layout Standard
33720 \begin_inset VSpace bigskip
33726 \begin_layout Standard
33727 The default background color red of
33731 boxes can either be changed locally with the command
33735 definecolor{shadecolor}
33737 or globally with the menu
33739 Tools\SpecialChar menuseparator
33740 Preferences\SpecialChar menuseparator
33741 Colors\SpecialChar menuseparator
33743 \begin_inset space ~
33755 command is explained in section
33756 \begin_inset space ~
33760 \begin_inset CommandInset ref
33762 reference "sec:Colored-Tables"
33770 \begin_layout Plain Layout
33777 requires the \SpecialChar LaTeX
33782 in the preamble, see section
33783 \begin_inset space ~
33787 \begin_inset CommandInset ref
33789 reference "sec:Colored-Boxes"
33798 For example the appearance of the following shaded background box is set
33799 with the \SpecialChar TeX
33803 \begin_layout Standard
33808 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33811 \begin_layout Standard
33815 \begin_layout Plain Layout
33819 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33825 \begin_inset Box Shaded
33835 height_special "totalheight"
33840 backgroundcolor "none"
33843 \begin_layout Plain Layout
33846 This is yellow text in a
33856 box with dark green background.
33865 \begin_layout Plain Layout
33869 definecolor{shadecolor}{rgb}{1,0,0}
33877 \begin_layout Standard
33878 \begin_inset VSpace bigskip
33881 Manually changed sizes and colors are valid for all boxes following the
33882 commands that change them.
33885 \begin_layout Section
33887 \begin_inset CommandInset label
33889 name "sec:Minipages"
33894 \begin_inset Index idx
33897 \begin_layout Plain Layout
33906 \begin_layout Standard
33907 Minipages are treated by \SpecialChar LaTeX
33908 as pages within pages and can therefore for example
33909 have their own footnotes.
33912 \begin_layout Standard
33913 Minipages are useful when you write documents with different languages.
33916 \begin_layout Standard
33917 Below are two example minipages side by side.
33918 Their width is set to 45
33919 \begin_inset space \thinspace{}
33922 col% and they are separated by a horizontal fill, that was inserted via
33925 Insert\SpecialChar menuseparator
33927 \begin_inset space ~
33930 Formatting\SpecialChar menuseparator
33932 \begin_inset space ~
33938 \begin_inset Newpage newpage
33944 \begin_layout Standard
33945 \begin_inset Box Frameless
33955 height_special "totalheight"
33960 backgroundcolor "none"
33963 \begin_layout Plain Layout
33966 Dies ist ein deutscher Text.
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
33982 \begin_layout Plain Layout
33985 Dies ist eine deutsche Fußnote.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33998 \begin_inset space \hfill{}
34002 \begin_inset Box Frameless
34012 height_special "totalheight"
34017 backgroundcolor "none"
34020 \begin_layout Plain Layout
34021 This is an English Text.
34022 This is an English Text.
34023 This is an English Text.
34024 This is an English Text.
34025 This is an English Text.
34026 This is an English Text.
34027 This is an English Text.
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.
34040 \begin_layout Plain Layout
34041 This is an English footnote.
34046 This is an English Text.
34054 \begin_layout Standard
34055 \begin_inset VSpace bigskip
34058 The document-wide paragraph settings are ignored within minipages.
34059 That means that there will be no space between paragraphs in minipages
34060 although you set it to e.
34061 \begin_inset space \thinspace{}
34065 \begin_inset space \space{}
34072 in the document settings.
34075 \begin_layout Standard
34076 Minipages can also be used to set a background color for text parts, see
34078 \begin_inset space ~
34082 \begin_inset CommandInset ref
34084 reference "sec:Colored-Boxes"
34091 \begin_layout Standard
34092 \begin_inset Note Greyedout
34095 \begin_layout Plain Layout
34100 You cannot have floats or margin notes inside minipages but minipages can
34101 be used inside tables, floats, and other boxes.
34109 \begin_layout Standard
34110 \begin_inset VSpace bigskip
34116 \begin_layout Standard
34118 has also basic support for minipages whose size is automatically determined
34119 by the width of their contents, via the module
34121 Variable-width Minipages
34124 The \SpecialChar LyX
34127 varwidth-floats-side-by-side
34129 gives examples of variable-width minipages used for placing two floats
34133 \begin_layout Section
34135 \begin_inset CommandInset label
34137 name "sec:Parboxes"
34142 \begin_inset Index idx
34145 \begin_layout Plain Layout
34154 \begin_layout Standard
34155 Parboxes are very similar to minipages with the difference that they cannot
34157 \begin_inset Separator parbreak
34163 \begin_layout Standard
34165 \begin_inset Box Frameless
34175 height_special "totalheight"
34180 backgroundcolor "none"
34183 \begin_layout Plain Layout
34184 This a text within a parbox.
34185 This a text within a parbox.
34188 \begin_layout Plain Layout
34189 This footnote won't appear:
34193 \begin_layout Plain Layout
34194 This footnote is inside a parbox and will therefore not appear.
34207 \begin_layout Section
34208 Boxes for Words and Characters
34209 \begin_inset Index idx
34212 \begin_layout Plain Layout
34213 Boxes ! for Characters
34221 \begin_layout Subsection
34222 Prevent Hyphenation
34223 \begin_inset CommandInset label
34225 name "sec:Prevent-Hyphenation"
34230 \begin_inset Index idx
34233 \begin_layout Plain Layout
34234 Boxes ! to Prevent Hyphenation
34242 \begin_layout Standard
34243 You can use the box type
34247 to prevent words or text from being hyphenated.
34248 \begin_inset Newline newline
34251 Here is an example text:
34254 \begin_layout Standard
34255 This line is an example to show how you can prevent the hyphenation of
34256 \begin_inset Quotes eld
34260 \begin_inset Quotes erd
34266 \begin_layout Standard
34267 To prevent the hyphenation of the word
34268 \begin_inset Quotes eld
34272 \begin_inset Quotes erd
34275 , put the word into a box, set the
34278 \begin_inset space ~
34287 and use no explicit width.
34290 \begin_layout Standard
34291 This is the result:
34294 \begin_layout Standard
34295 This line is an example to show how you can prevent the hyphenation of
34296 \begin_inset Box Frameless
34306 height_special "totalheight"
34311 backgroundcolor "none"
34314 \begin_layout Plain Layout
34315 \begin_inset Quotes eld
34319 \begin_inset Quotes erd
34330 \begin_layout Standard
34331 You can alternatively set the command
34332 \begin_inset Quotes eld
34342 \begin_inset Quotes grd
34345 as \SpecialChar TeX
34346 Code directly before the word:
34349 \begin_layout Standard
34350 This line is an example to show how you can prevent the hyphenation of
34351 \begin_inset Quotes eld
34358 \begin_layout Plain Layout
34368 \begin_inset Quotes erd
34374 \begin_layout Standard
34375 Of course the word now protrudes over the side margin.
34376 To avoid this, add via the menu
34378 Insert\SpecialChar menuseparator
34379 Formatting\SpecialChar menuseparator
34381 \begin_inset space ~
34385 \begin_inset space ~
34393 arg "newline-insert newline"
34396 ) a line break before the word:
34399 \begin_layout Standard
34400 This line is an example to show how you can prevent the hyphenation of
34401 \begin_inset Newline newline
34405 \begin_inset Box Frameless
34415 height_special "totalheight"
34420 backgroundcolor "none"
34423 \begin_layout Plain Layout
34424 \begin_inset Quotes eld
34428 \begin_inset Quotes erd
34439 \begin_layout Subsection
34441 \begin_inset CommandInset label
34443 name "subsec:Vertical-Alignment"
34448 \begin_inset Index idx
34451 \begin_layout Plain Layout
34452 Boxes ! for Vertical Alignment
34458 \begin_inset Index idx
34461 \begin_layout Plain Layout
34470 \begin_layout Standard
34471 With the help of the command
34477 you can align words, characters or other boxes vertically relative to the
34485 is used with the following scheme:
34488 \begin_layout Standard
34493 raisebox{lift}[height][depth]{box content}
34496 \begin_layout Standard
34497 The lift can be a positive value to raise the box or a negative value to
34501 \begin_layout Standard
34502 To align for example the word
34503 \begin_inset Quotes eld
34507 \begin_inset Quotes erd
34510 so that the bottom of the
34511 \begin_inset Quotes eld
34515 \begin_inset Quotes erd
34519 \begin_inset Quotes eld
34523 \begin_inset Quotes erd
34526 is at the baseline, insert the command
34529 \begin_layout Standard
34539 \begin_layout Standard
34540 in \SpecialChar TeX
34541 Code before the word.
34542 After the word insert a closing brace
34543 \begin_inset Quotes eld
34551 \begin_inset Quotes erd
34554 in \SpecialChar TeX
34556 \begin_inset Newline newline
34559 This is the result:
34562 \begin_layout Standard
34563 This is a text line with the word
34567 \begin_layout Plain Layout
34579 \begin_inset Quotes eld
34583 \begin_inset Quotes erd
34590 \begin_layout Plain Layout
34600 \begin_layout Standard
34601 \begin_inset VSpace bigskip
34604 When you raise or lower characters in a line, the line distance will be
34608 \begin_layout Standard
34609 This is a text line with the word
34613 \begin_layout Plain Layout
34625 \begin_inset Quotes eld
34629 \begin_inset Quotes erd
34636 \begin_layout Plain Layout
34644 \begin_inset Newline newline
34647 This is a text line with the word
34651 \begin_layout Plain Layout
34661 \begin_inset Quotes eld
34665 \begin_inset Quotes erd
34672 \begin_layout Plain Layout
34682 \begin_layout Standard
34683 If you want to prevent this for a certain reason, set the box height to
34688 \begin_layout Standard
34698 \begin_layout Standard
34699 This is a text line with the word
34703 \begin_layout Plain Layout
34715 \begin_inset Quotes eld
34719 \begin_inset Quotes erd
34726 \begin_layout Plain Layout
34734 \begin_inset Newline newline
34738 \begin_inset Newline newline
34741 This is a text line with the word
34745 \begin_layout Plain Layout
34749 raisebox{0.5cm}[0pt]{
34755 \begin_inset Quotes eld
34759 \begin_inset Quotes erd
34766 \begin_layout Plain Layout
34776 \begin_layout Section
34778 \begin_inset CommandInset label
34780 name "sec:Colored-Boxes"
34785 \begin_inset Index idx
34788 \begin_layout Plain Layout
34797 \begin_layout Standard
34798 To color the background of a box just select the color you like in the box
34800 This is for example a box with orange background:
34801 \begin_inset Box Frameless
34811 height_special "totalheight"
34816 backgroundcolor "orange"
34819 \begin_layout Plain Layout
34820 Box with orange background
34828 \begin_layout Standard
34829 If you use the decoration
34832 \begin_inset space ~
34836 \begin_inset space ~
34841 you can set a frame color.
34842 In this case you must also specify a background color (LyX sets white as
34844 Here is an example:
34845 \begin_inset Box Boxed
34855 height_special "totalheight"
34860 backgroundcolor "yellow"
34863 \begin_layout Plain Layout
34864 Box with teal frame color and yellow background color
34872 \begin_layout Standard
34873 \begin_inset VSpace bigskip
34876 Of course you can also have colored text inside a colored box:
34877 \begin_inset Newline newline
34881 \begin_inset Box Boxed
34891 height_special "totalheight"
34896 backgroundcolor "magenta"
34899 \begin_layout Plain Layout
34902 This is colored text within a colored, framed box
34910 \begin_layout Standard
34911 \begin_inset VSpace bigskip
34917 \begin_layout Standard
34918 If you need another color than the predefined ones, you can define your
34919 own color as described in section
34920 \begin_inset space ~
34924 \begin_inset CommandInset ref
34926 reference "sec:Colored-Tables"
34931 To use your own color you must typeset the box by using TeX code:
34934 \begin_layout Standard
34935 Colored boxes without frame are created with the command
34942 It has the following scheme:
34945 \begin_layout Standard
34950 colorbox{color}{box content}
34953 \begin_layout Standard
34954 The box content can also be a box and colored boxes can also be within other
34957 \begin_inset space \thinspace{}
34961 \begin_inset space \space{}
34964 a darkgreen background for a word, insert the command
34967 \begin_layout Standard
34972 colorbox{darkgreen}{
34975 \begin_layout Standard
34976 before the word in \SpecialChar TeX
34978 After the word insert a closing brace
34979 \begin_inset Quotes eld
34987 \begin_inset Quotes erd
34990 in \SpecialChar TeX
34992 \begin_inset Newline newline
34995 This is the result:
34998 \begin_layout Standard
34999 This is a line where the word
35003 \begin_layout Plain Layout
35007 colorbox{darkgreen}{
35013 \begin_inset Quotes eld
35017 \begin_inset Quotes erd
35024 \begin_layout Plain Layout
35031 has a darkgreen background.
35034 \begin_layout Standard
35035 Framed, colored boxes are created with the command
35042 It has the following scheme:
35045 \begin_layout Standard
35050 fcolorbox{frame color}{box color}{box content}
35053 \begin_layout Section
35054 Rotated and Scaled Boxes
35057 \begin_layout Standard
35058 To use the boxes described in this section, the module
35062 must be loaded in the document settings.
35065 \begin_layout Standard
35066 \begin_inset Note Greyedout
35069 \begin_layout Plain Layout
35074 Not all DVI viewers are able to display rotated or scaled material.
35082 \begin_layout Standard
35083 \begin_inset Note Greyedout
35086 \begin_layout Plain Layout
35091 Floats are not allowed inside a rotated or scaled box.
35099 \begin_layout Subsection
35101 \begin_inset Index idx
35104 \begin_layout Plain Layout
35111 \begin_inset Index idx
35114 \begin_layout Plain Layout
35123 \begin_layout Standard
35124 To rotate material, you can put it into a
35129 Such a box is inserted via the menu
35131 Insert\SpecialChar menuseparator
35132 Custom Insets\SpecialChar menuseparator
35138 \begin_layout Standard
35139 The rotation origin can be specified via the inset
35145 Insert\SpecialChar menuseparator
35153 The following positions are possible:
35173 (top), along with meaningful combinations of the four base positions.
35178 means that the rotation origin is at the top left corner of the box.
35179 When no rotation origin is specified, the position
35184 The rotation angle is a number that can be negative that specifies the
35186 The rotation direction is counterclockwise.
35189 \begin_layout Standard
35190 In the following example
35194 was inserted to the
35202 was inserted to the
35209 \begin_layout Standard
35211 \begin_inset Flex Rotatebox
35214 \begin_layout Plain Layout
35215 \begin_inset Argument 1
35218 \begin_layout Plain Layout
35225 \begin_inset Argument 2
35228 \begin_layout Plain Layout
35242 \begin_layout Standard
35243 The box content can also be another box or an inline formula:
35246 \begin_layout Standard
35248 \begin_inset Flex Rotatebox
35251 \begin_layout Plain Layout
35252 \begin_inset Argument 1
35255 \begin_layout Plain Layout
35262 \begin_inset Argument 2
35265 \begin_layout Plain Layout
35272 \begin_inset Box Doublebox
35282 height_special "totalheight"
35287 backgroundcolor "none"
35290 \begin_layout Plain Layout
35302 \begin_inset Flex Rotatebox
35305 \begin_layout Plain Layout
35306 \begin_inset Argument 1
35309 \begin_layout Plain Layout
35316 \begin_inset Argument 2
35319 \begin_layout Plain Layout
35326 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35337 \begin_layout Standard
35338 or an image or table:
35341 \begin_layout Standard
35343 \begin_inset Flex Rotatebox
35346 \begin_layout Plain Layout
35347 \begin_inset Argument 1
35350 \begin_layout Plain Layout
35357 \begin_inset Argument 2
35360 \begin_layout Plain Layout
35367 \begin_inset Graphics
35368 filename clipart/platypus.eps
35379 with a rotated image
35380 \begin_inset Flex Rotatebox
35383 \begin_layout Plain Layout
35384 \begin_inset Argument 2
35387 \begin_layout Plain Layout
35394 \begin_inset Tabular
35395 <lyxtabular version="3" rows="2" columns="2">
35396 <features tabularvalignment="middle">
35397 <column alignment="center" valignment="top">
35398 <column alignment="center" valignment="top">
35400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35403 \begin_layout Plain Layout
35409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35412 \begin_layout Plain Layout
35420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35423 \begin_layout Plain Layout
35429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35432 \begin_layout Plain Layout
35449 \begin_inset Index idx
35452 \begin_layout Plain Layout
35459 \begin_inset Index idx
35462 \begin_layout Plain Layout
35463 Table Customization ! Rotating
35471 \begin_layout Standard
35472 \begin_inset Note Greyedout
35475 \begin_layout Plain Layout
35484 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35486 errors when viewing/exporting the document.
35494 \begin_layout Subsection
35496 \begin_inset Index idx
35499 \begin_layout Plain Layout
35506 \begin_inset Index idx
35509 \begin_layout Plain Layout
35518 \begin_layout Standard
35519 To scale material put it into a
35524 Such a box is inserted via the menu
35526 Insert\SpecialChar menuseparator
35527 Custom Insets\SpecialChar menuseparator
35533 \begin_layout Standard
35538 inset has the mandatory inset
35542 and the optional inset
35546 (inserted via the menu
35548 Insert\SpecialChar menuseparator
35552 Input there there horizontal and vertical scale factor, respectively.
35557 inset is used, the horizontal factor will also be used as the vertical
35561 \begin_layout Standard
35562 To get for example the double text size, compared to the document text size,
35573 \begin_inset Flex Scalebox
35576 \begin_layout Plain Layout
35577 \begin_inset Argument 1
35580 \begin_layout Plain Layout
35594 \begin_layout Standard
35612 \begin_inset Flex Scalebox
35615 \begin_layout Plain Layout
35616 \begin_inset Argument 1
35619 \begin_layout Plain Layout
35626 \begin_inset Argument 2
35629 \begin_layout Plain Layout
35643 \begin_layout Standard
35644 If the scaling factor is negative, the box content will be mirrored.
35661 can be used to create mirror writing:
35662 \begin_inset Flex Scalebox
35665 \begin_layout Plain Layout
35666 \begin_inset Argument 1
35669 \begin_layout Plain Layout
35676 \begin_inset Argument 2
35679 \begin_layout Plain Layout
35693 \begin_layout Standard
35711 \begin_inset Flex Scalebox
35714 \begin_layout Plain Layout
35715 \begin_inset Argument 1
35718 \begin_layout Plain Layout
35725 \begin_inset Argument 2
35728 \begin_layout Plain Layout
35742 \begin_layout Standard
35749 Insert\SpecialChar menuseparator
35750 Custom Insets\SpecialChar menuseparator
35776 \begin_layout Standard
35777 \begin_inset Note Greyedout
35780 \begin_layout Plain Layout
35789 inset is empty or contains other characters than numbers you will get LaTeX
35790 errors when viewing/exporting the document.
35798 \begin_layout Standard
35799 \begin_inset VSpace bigskip
35808 Insert\SpecialChar menuseparator
35809 Custom Insets\SpecialChar menuseparator
35812 ) is used to scale the content to a defined width and height.
35817 inset has the mandatory inset
35821 and the optional inset
35825 (inserted via the menu
35827 Insert\SpecialChar menuseparator
35831 Input there there width and height, respectively, as value with a unit.
35833 \begin_inset CommandInset ref
35835 reference "tab:Units"
35839 lists the possible units.
35840 If there is an exclamation mark
35844 in of of the two insets, the size is set so that the aspect ratio of the
35845 box content is kept.
35850 inset is used an exclamation mark will internally be used for the height.
35853 \begin_layout Standard
35871 \begin_inset Flex Resizebox
35874 \begin_layout Plain Layout
35875 \begin_inset Argument 1
35878 \begin_layout Plain Layout
35885 \begin_inset Argument 2
35888 \begin_layout Plain Layout
35900 \begin_inset Newline newline
35924 \begin_inset Flex Resizebox
35927 \begin_layout Plain Layout
35928 \begin_inset Argument 1
35931 \begin_layout Plain Layout
35938 \begin_inset Argument 2
35941 \begin_layout Plain Layout
35955 \begin_layout Standard
35956 \begin_inset Note Greyedout
35959 \begin_layout Plain Layout
35968 inset is empty or contains an invalid unit you will get LaTeX errors when
35969 viewing/exporting the document.
35977 \begin_layout Standard
35978 \begin_inset VSpace bigskip
35984 \begin_layout Standard
35985 The boxes can be combined in any order.
35994 which is in turn inside a
36001 \begin_layout Standard
36004 \begin_inset Flex Rotatebox
36007 \begin_layout Plain Layout
36008 \begin_inset Argument 1
36011 \begin_layout Plain Layout
36018 \begin_inset Argument 2
36021 \begin_layout Plain Layout
36028 \begin_inset Flex Resizebox
36031 \begin_layout Plain Layout
36032 \begin_inset Argument 1
36035 \begin_layout Plain Layout
36042 \begin_inset Flex Reflectbox
36045 \begin_layout Plain Layout
36064 \begin_layout Standard
36066 Images, tables, and inline formulas are allowed as box content:
36069 \begin_layout Standard
36072 \begin_inset Flex Resizebox
36075 \begin_layout Plain Layout
36076 \begin_inset Argument 1
36079 \begin_layout Plain Layout
36086 \begin_inset Flex Reflectbox
36089 \begin_layout Plain Layout
36090 \begin_inset Graphics
36091 filename clipart/platypus.eps
36108 \begin_inset Flex Resizebox
36111 \begin_layout Plain Layout
36112 \begin_inset Argument 1
36115 \begin_layout Plain Layout
36122 \begin_inset Flex Reflectbox
36125 \begin_layout Plain Layout
36126 \begin_inset Tabular
36127 <lyxtabular version="3" rows="2" columns="2">
36128 <features tabularvalignment="middle">
36129 <column alignment="center" valignment="top">
36130 <column alignment="center" valignment="top">
36132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36135 \begin_layout Plain Layout
36141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36144 \begin_layout Plain Layout
36152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36155 \begin_layout Plain Layout
36161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36164 \begin_layout Plain Layout
36186 \begin_inset Flex Resizebox
36189 \begin_layout Plain Layout
36190 \begin_inset Argument 1
36193 \begin_layout Plain Layout
36200 \begin_inset Flex Reflectbox
36203 \begin_layout Plain Layout
36204 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36218 \begin_inset Index idx
36221 \begin_layout Plain Layout
36228 \begin_inset Index idx
36231 \begin_layout Plain Layout
36232 Table Customization ! Scaling
36240 \begin_layout Standard
36241 When the global formula style
36245 is used in the document
36249 \begin_layout Plain Layout
36251 \begin_inset Quotes eld
36255 \begin_inset Quotes erd
36258 is added to the document class options.
36263 , display style formulas can also be scaled.
36266 \begin_layout Chapter
36267 Objects Surrounded by Text
36268 \begin_inset Index idx
36271 \begin_layout Plain Layout
36280 \begin_layout Section
36282 \begin_inset CommandInset label
36284 name "sec:Wrap-Floats"
36289 \begin_inset Index idx
36292 \begin_layout Plain Layout
36293 Floats ! Wrap Floats
36299 \begin_inset Index idx
36302 \begin_layout Plain Layout
36303 Surrounded by text ! Wrap Floats
36311 \begin_layout Standard
36312 \begin_inset Wrap figure
36319 \begin_layout Plain Layout
36320 \begin_inset Graphics
36321 filename clipart/mobius.eps
36323 scaleBeforeRotation
36324 rotateOrigin center
36331 \begin_layout Plain Layout
36332 \begin_inset Caption Standard
36334 \begin_layout Plain Layout
36335 \begin_inset CommandInset label
36337 name "fig:This-is-a"
36341 This is a figure wrap float.
36351 This float type is used if you want to wrap text around a figure or table
36352 so that it only occupies some fraction of the column width.
36353 It can be inserted using the menu
36355 Insert\SpecialChar menuseparator
36356 Floats\SpecialChar menuseparator
36358 \begin_inset space ~
36362 \begin_inset space ~
36370 \begin_inset space ~
36374 \begin_inset space ~
36379 if the \SpecialChar LaTeX
36385 \begin_inset Index idx
36388 \begin_layout Plain Layout
36390 -packages ! wrapfig
36399 \begin_layout Plain Layout
36400 Installing a \SpecialChar LaTeX
36401 -package is explained it in the
36405 \begin_inset space ~
36415 The settings of the float can be modified by right-clicking on the float
36417 The mandatory settings are the float
36430 that specifies how much the float is set into the paragraph
36431 \begin_inset space \thinspace{}
36435 \begin_inset space \thinspace{}
36438 page margin, and the
36441 \begin_inset space ~
36446 that specifies how many text lines the float will approximately need.
36447 The line span is often hard to approximate; so it is better only to use
36448 it when you encounter float placement problems.
36449 You can furthermore decide if \SpecialChar LaTeX
36450 is allowed to let the float float within
36451 the paragraph or to surrounding paragraphs.
36453 \begin_inset space ~
36457 \begin_inset CommandInset ref
36459 reference "fig:This-is-a"
36463 is an example text wrap float with a width of 40
36464 \begin_inset space \thinspace{}
36468 \begin_inset space \thinspace{}
36471 cm overhang, set to the left.
36474 \begin_layout Standard
36475 \begin_inset Note Greyedout
36478 \begin_layout Plain Layout
36484 \begin_inset space ~
36487 wrap float floats are fragile! E.
36488 \begin_inset space \thinspace{}
36492 \begin_inset space \space{}
36495 having a figure too close to the bottom of the page can mess things up in
36496 such a way that the float does not appear in the output or that it is placed
36497 over some other text.
36505 \begin_layout Standard
36506 In general, the following applies for wrap floats:
36509 \begin_layout Itemize
36510 They should not be placed in paragraphs that run over a page break.
36511 That means that wrap floats are better inserted in their exact place when
36512 the document is almost finished and you are able to estimate where page
36513 breaks will appear.
36516 \begin_layout Itemize
36517 They should either be placed in their own paragraph before the paragraph
36518 where they should wrap into or within a paragraph.
36521 \begin_layout Itemize
36522 In consecutive paragraphs they may cause troubles, so ensure that there
36523 is a text paragraph between them as separator.
36526 \begin_layout Itemize
36527 They are not allowed in section headings or tables.
36530 \begin_layout Itemize
36531 Their numbering and referencing works as described in chap.
36532 \begin_inset space \thinspace{}
36536 \begin_inset CommandInset ref
36538 reference "chap:Floats"
36545 \begin_layout Section
36546 Surrounded Fixed Objects
36547 \begin_inset Index idx
36550 \begin_layout Plain Layout
36551 Surrounded by text ! Fixed objects
36559 \begin_layout Standard
36560 The wrap floats described in sec.
36561 \begin_inset space \thinspace{}
36565 \begin_inset CommandInset ref
36567 reference "sec:Wrap-Floats"
36571 have these positions in the paragraph:
36572 \begin_inset Separator parbreak
36578 \begin_layout Standard
36581 \begin_inset Tabular
36582 <lyxtabular version="3" rows="2" columns="2">
36583 <features tabularvalignment="middle">
36584 <column alignment="center" valignment="top">
36585 <column alignment="center" valignment="top">
36587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36590 \begin_layout Plain Layout
36593 arg "dialog-show-new-inset graphics"
36601 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36604 \begin_layout Plain Layout
36612 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36615 \begin_layout Plain Layout
36621 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36624 \begin_layout Plain Layout
36636 \begin_inset Tabular
36637 <lyxtabular version="3" rows="2" columns="2">
36638 <features tabularvalignment="middle">
36639 <column alignment="center" valignment="top">
36640 <column alignment="center" valignment="top">
36642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36645 \begin_layout Plain Layout
36651 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36654 \begin_layout Plain Layout
36657 arg "dialog-show-new-inset graphics"
36667 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36670 \begin_layout Plain Layout
36676 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36679 \begin_layout Plain Layout
36693 \begin_layout Standard
36694 To get an object exactly at the position where it is inserted, for example
36695 to get one of these positions:
36696 \begin_inset VSpace defskip
36702 \begin_layout Standard
36705 \begin_inset Tabular
36706 <lyxtabular version="3" rows="2" columns="2">
36707 <features tabularvalignment="middle">
36708 <column alignment="center" valignment="top">
36709 <column alignment="center" valignment="top">
36711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36714 \begin_layout Plain Layout
36720 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36723 \begin_layout Plain Layout
36731 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36734 \begin_layout Plain Layout
36737 arg "dialog-show-new-inset graphics"
36745 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36748 \begin_layout Plain Layout
36760 \begin_inset Tabular
36761 <lyxtabular version="3" rows="2" columns="2">
36762 <features tabularvalignment="middle">
36763 <column alignment="center" valignment="top">
36764 <column alignment="center" valignment="top">
36766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36769 \begin_layout Plain Layout
36775 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36778 \begin_layout Plain Layout
36786 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36789 \begin_layout Plain Layout
36795 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36798 \begin_layout Plain Layout
36801 arg "dialog-show-new-inset graphics"
36815 \begin_inset Tabular
36816 <lyxtabular version="3" rows="2" columns="3">
36817 <features tabularvalignment="middle">
36818 <column alignment="center" valignment="top">
36819 <column alignment="center" valignment="top">
36820 <column alignment="center" valignment="top">
36822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36825 \begin_layout Plain Layout
36831 <cell alignment="center" valignment="top" topline="true" usebox="none">
36834 \begin_layout Plain Layout
36837 arg "dialog-show-new-inset graphics"
36845 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36848 \begin_layout Plain Layout
36856 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36859 \begin_layout Plain Layout
36865 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36868 \begin_layout Plain Layout
36874 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36877 \begin_layout Plain Layout
36889 \begin_inset Tabular
36890 <lyxtabular version="3" rows="2" columns="3">
36891 <features tabularvalignment="middle">
36892 <column alignment="center" valignment="top">
36893 <column alignment="center" valignment="top">
36894 <column alignment="center" valignment="top">
36896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36899 \begin_layout Plain Layout
36905 <cell alignment="center" valignment="top" topline="true" usebox="none">
36908 \begin_layout Plain Layout
36914 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36917 \begin_layout Plain Layout
36925 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36928 \begin_layout Plain Layout
36934 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36937 \begin_layout Plain Layout
36940 arg "dialog-show-new-inset graphics"
36948 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36951 \begin_layout Plain Layout
36965 \begin_layout Standard
36968 \begin_inset Tabular
36969 <lyxtabular version="3" rows="3" columns="2">
36970 <features tabularvalignment="middle">
36971 <column alignment="center" valignment="top">
36972 <column alignment="center" valignment="top">
36974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36977 \begin_layout Plain Layout
36983 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36986 \begin_layout Plain Layout
36994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36997 \begin_layout Plain Layout
37000 arg "dialog-show-new-inset graphics"
37008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37011 \begin_layout Plain Layout
37019 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37022 \begin_layout Plain Layout
37028 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37031 \begin_layout Plain Layout
37043 \begin_inset Tabular
37044 <lyxtabular version="3" rows="3" columns="3">
37045 <features tabularvalignment="middle">
37046 <column alignment="center" valignment="top">
37047 <column alignment="center" valignment="top">
37048 <column alignment="center" valignment="top">
37050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37053 \begin_layout Plain Layout
37059 <cell alignment="center" valignment="top" topline="true" usebox="none">
37062 \begin_layout Plain Layout
37068 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37071 \begin_layout Plain Layout
37079 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37082 \begin_layout Plain Layout
37088 <cell alignment="center" valignment="top" usebox="none">
37091 \begin_layout Plain Layout
37094 arg "dialog-show-new-inset graphics"
37102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37105 \begin_layout Plain Layout
37113 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37116 \begin_layout Plain Layout
37122 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37125 \begin_layout Plain Layout
37131 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37134 \begin_layout Plain Layout
37146 \begin_inset Tabular
37147 <lyxtabular version="3" rows="3" columns="2">
37148 <features tabularvalignment="middle">
37149 <column alignment="center" valignment="top">
37150 <column alignment="center" valignment="top">
37152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37155 \begin_layout Plain Layout
37161 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37164 \begin_layout Plain Layout
37172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37175 \begin_layout Plain Layout
37181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37184 \begin_layout Plain Layout
37187 arg "dialog-show-new-inset graphics"
37197 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37200 \begin_layout Plain Layout
37206 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37209 \begin_layout Plain Layout
37223 \begin_layout Standard
37225 you can use the \SpecialChar LaTeX
37231 \begin_inset Index idx
37234 \begin_layout Plain Layout
37236 -packages ! picinpar
37242 Here is an example:
37245 \begin_layout Standard
37249 \begin_layout Plain Layout
37259 \begin_inset Note Note
37262 \begin_layout Plain Layout
37263 The following section will only be displayed when the \SpecialChar LaTeX
37276 \begin_layout Standard
37280 \begin_layout Plain Layout
37284 begin{window}[2,c,{
37290 \begin_inset Graphics
37291 filename clipart/mobius.eps
37294 scaleBeforeRotation
37295 rotateOrigin center
37303 \begin_layout Plain Layout
37308 \begin_layout Plain Layout
37317 It was in the spring of the year 1894 that all London was interested, and
37318 the fashionable world dismayed, by the murder of the Honourable Ronald
37319 Adair under most unusual and inexplicable circumstances.
37320 The public has already learned those particulars of the crime which
37326 \begin_layout Plain Layout
37337 came out in the police investigation, but a good deal was suppressed upon
37338 that occasion, since the case for the prosecution was so overwhelmingly
37339 strong that it was not necessary to bring forward all the facts.
37340 Only now, at the end of nearly ten years, am I allowed to supply those
37341 missing links which make up the whole of that remarkable chain.
37347 \begin_layout Plain Layout
37359 \begin_layout Standard
37363 \begin_layout Plain Layout
37372 Footnote of the paragraph with the fixed object.
37376 \begin_layout Plain Layout
37386 \begin_layout Standard
37387 Surrounded fixed objects are used to let text float around them, at which
37388 the object's position in the paragraph can be determined by the number
37390 In contrary to floats is it not possible to have a numbered caption.
37393 \begin_layout Standard
37394 A fixed object is inserted by adding the command
37397 \begin_layout Standard
37402 begin{window}[2,c,{
37405 \begin_layout Standard
37406 as \SpecialChar TeX
37407 Code at the beginning of the paragraph.
37408 The first parameter in the bracket, here '2', defines the number of lines
37409 above the object, the second, here 'c', the position of the object.
37410 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37411 Behind the command you insert the object.
37412 In this example an image with a width of 40
37413 \begin_inset space \thinspace{}
37416 % of the text column width was inserted.
37417 The object can also be a table, a box or an equation.
37418 Behind the object the command
37421 \begin_layout Standard
37424 },description text]
37425 \begin_inset Newline newline
37431 \begin_layout Standard
37434 \begin_inset Quotes eld
37442 \begin_inset Quotes erd
37445 is in the second line.
37446 The description text is optional.
37447 The text surrounding the object must be in the same paragraph as the object,
37448 so it must begin directly after the
37453 At the end of the paragraph insert the command:
37456 \begin_layout Standard
37464 \begin_layout Standard
37465 Within a paragraph with a fixed object, you cannot insert footnotes in the
37467 You have to use instead the command
37473 inside the paragraph and outside the command
37479 as described in sec.
37480 \begin_inset space \thinspace{}
37484 \begin_inset CommandInset ref
37486 reference "sec:Footnotes"
37493 \begin_layout Standard
37497 \begin_layout Plain Layout
37507 \begin_inset Note Note
37510 \begin_layout Plain Layout
37511 The following will be displayed when the \SpecialChar LaTeX
37524 \begin_layout Standard
37525 You need to install the \SpecialChar LaTeX
37530 to see the following part of this section in the output.
37533 \begin_layout Standard
37537 \begin_layout Plain Layout
37549 \begin_layout Section
37551 \begin_inset Index idx
37554 \begin_layout Plain Layout
37561 \begin_inset Index idx
37564 \begin_layout Plain Layout
37565 Surrounded by text ! Initials
37573 \begin_layout Standard
37574 To use initials, you must have the \SpecialChar LaTeX
37580 \begin_inset Index idx
37583 \begin_layout Plain Layout
37585 -packages ! lettrine
37590 installed and use the module
37594 in your document (menu
37596 Document\SpecialChar menuseparator
37597 Settings\SpecialChar menuseparator
37601 To insert an initial, use the style
37606 This style has a mandatory and two optional arguments.
37607 The arguments are inserted via the
37612 The mandatory argument
37616 contains the letter(s) that is the initial, the argument
37619 \begin_inset space ~
37623 \begin_inset space ~
37628 contains the rest of the word or text of the initial letter(s).
37633 contains parameters to modify the initial.
37634 For more information about the possible parameters see the documentation
37640 \begin_inset CommandInset citation
37647 The style itself contains the text that is surrounding the initial.
37648 The usual style is hereby that the word whose first letter is the initial,
37656 \begin_layout Standard
37657 Here are some examples:
37660 \begin_layout Standard
37664 \begin_layout Plain Layout
37674 \begin_inset Note Note
37677 \begin_layout Plain Layout
37678 The following section will only be displayed when the \SpecialChar LaTeX
37691 \begin_layout Enumerate
37692 No optional argument, the initial is the letter 'I' in the math font
37693 \begin_inset Formula $\mathfrak{Fraktur}$
37697 \begin_inset Separator parbreak
37704 \begin_layout Initial
37705 \begin_inset Argument 2
37708 \begin_layout Plain Layout
37709 \begin_inset Formula $\mathfrak{I}$
37718 \begin_inset Argument 3
37721 \begin_layout Plain Layout
37727 was in the spring of the year 1894 that all London was interested, and
37728 the fashionable world dismayed, by the murder of the Honourable Ronald
37729 Adair under most unusual and inexplicable circumstances.
37730 The public has already learned those particulars of the crime which came
37731 out in the police investigation, but a good deal was suppressed upon that
37732 occasion, since the case for the prosecution was so overwhelmingly strong
37733 that it was not necessary to bring forward all the facts.
37734 \begin_inset Newpage newpage
37741 \begin_layout Enumerate
37742 Only one line is surrounding the initial, which is formed by two letters
37743 in standard font and no text is printed in small caps:
37744 \begin_inset Separator parbreak
37751 \begin_layout Initial
37752 \begin_inset Argument 1
37755 \begin_layout Plain Layout
37762 \begin_inset Argument 2
37765 \begin_layout Plain Layout
37771 was in the spring of the year 1894 that all London was interested, and
37772 the fashionable world dismayed, by the murder of the Honourable Ronald
37773 Adair under most unusual and inexplicable circumstances.
37774 The public has already learned those particulars of the crime which came
37775 out in the police investigation, but a good deal was suppressed upon that
37776 occasion, since the case for the prosecution was so overwhelmingly strong
37777 that it was not necessary to bring forward all the facts.
37781 \begin_layout Enumerate
37782 Magenta, hanging initial over 3
37783 \begin_inset space ~
37786 lines in the math font
37787 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37791 \begin_inset Quotes eld
37794 t was in the spring
37795 \begin_inset Quotes erd
37802 ; to color the initial, you must insert this command before the initial:
37803 \begin_inset Newline newline
37817 \begin_inset Newline newline
37825 \begin_inset Quotes eld
37829 \begin_inset Quotes erd
37833 \begin_inset Quotes eld
37837 \begin_inset Quotes erd
37841 \begin_inset Quotes eld
37845 \begin_inset Quotes erd
37849 \begin_inset Quotes eld
37853 \begin_inset Quotes erd
37857 \begin_inset Quotes eld
37861 \begin_inset Quotes erd
37865 \begin_inset Quotes eld
37869 \begin_inset Quotes erd
37873 \begin_inset Quotes eld
37877 \begin_inset Quotes erd
37881 \begin_inset Quotes eld
37885 \begin_inset Quotes erd
37888 , and add this command to the document preamble:
37889 \begin_inset Newline newline
37896 @ifundefined{textcolor}
37897 \begin_inset Newline newline
37901 \begin_inset space ~
37906 usepackage{color}}{}
37909 \begin_inset Separator parbreak
37916 \begin_layout Standard
37920 \begin_layout Plain Layout
37934 \begin_inset Note Note
37937 \begin_layout Plain Layout
37938 makes the initial magenta
37946 \begin_layout Initial
37947 \begin_inset Argument 1
37950 \begin_layout Plain Layout
37951 lines=3, lhang=0.33, loversize=0.25
37957 \begin_inset Argument 2
37960 \begin_layout Plain Layout
37961 \begin_inset Formula $\mathcal{I}$
37970 \begin_inset Argument 3
37973 \begin_layout Plain Layout
37974 t was in the spring
37979 of the year 1894 that all London was interested, and the fashionable world
37980 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37981 and inexplicable circumstances.
37982 The public has already learned those particulars of the crime which came
37983 out in the police investigation, but a good deal was suppressed upon that
37984 occasion, since the case for the prosecution was so overwhelmingly strong
37985 that it was not necessary to bring forward all the facts.
37989 \begin_layout Standard
37993 \begin_layout Plain Layout
38003 \begin_inset Note Note
38006 \begin_layout Plain Layout
38007 The following will be displayed when the \SpecialChar LaTeX
38020 \begin_layout Standard
38021 You need to install the \SpecialChar LaTeX
38026 to see the following part of this section in the output.
38029 \begin_layout Standard
38033 \begin_layout Plain Layout
38045 \begin_layout Chapter
38046 External Document Parts
38047 \begin_inset Index idx
38050 \begin_layout Plain Layout
38051 External Document Parts
38059 \begin_layout Standard
38062 Insert\SpecialChar menuseparator
38065 you can insert external material into your document.
38069 \begin_layout Description
38071 \begin_inset space ~
38074 Document Another \SpecialChar LyX
38075 document; its content is directly inserted to your document.
38078 \begin_layout Description
38080 \begin_inset space ~
38083 Text A text document; each line is inserted in your document as a separate
38087 \begin_layout Description
38089 \begin_inset space ~
38093 \begin_inset space ~
38097 \begin_inset space ~
38100 Lines A text document; text lines are inserted in your document continuously
38101 but an empty text line creates a new paragraph.
38104 \begin_layout Description
38106 \begin_inset space ~
38109 Material Files in various formats.
38112 \begin_layout Description
38114 \begin_inset space ~
38117 Document \SpecialChar LyX
38118 or \SpecialChar LaTeX
38122 \begin_layout Section
38124 \begin_inset Index idx
38127 \begin_layout Plain Layout
38128 External Document Parts ! External Material
38136 \begin_layout Standard
38137 The external material feature allows you to insert files into your document
38138 without converting them to a format that can be read by the document output
38141 takes care of the necessary conversions.
38142 This is similar to images that can be inserted in various image formats
38143 in \SpecialChar LyX
38145 When you have enabled Instant Preview in \SpecialChar LyX
38146 's preferences under
38149 \begin_inset space ~
38153 \begin_inset space ~
38156 feel\SpecialChar menuseparator
38159 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38163 \begin_layout Standard
38164 External material can be inserted via the
38168 dialog that is accessible with the menu
38170 Insert\SpecialChar menuseparator
38171 File\SpecialChar menuseparator
38173 \begin_inset space ~
38179 Currently the following file types (
38186 \begin_layout Description
38187 ChessDiagram This template supports chess position diagrams made with the
38191 \begin_inset CommandInset href
38194 target "http://en.wikipedia.org/wiki/XBoard"
38203 \begin_layout Description
38204 Date This inserts the date in the form
38209 This is a date inserted as external material:
38210 \begin_inset External
38217 \begin_inset space ~
38221 \begin_inset Note Note
38224 \begin_layout Plain Layout
38225 Remove the protected space when bug 4398 is fixed!
38231 \begin_inset Newline newline
38234 The date is not shown within \SpecialChar LyX
38235 , only in the output.
38236 There are two other methods of inserting a date: Via menu
38238 Insert\SpecialChar menuseparator
38241 and with the \SpecialChar LaTeX
38248 as \SpecialChar TeX
38250 The different methods are compared in Table
38251 \begin_inset space ~
38255 \begin_inset CommandInset ref
38257 reference "tab:Comparison-of-the"
38264 \begin_layout Description
38265 Dia This template supports diagrams created with the program
38268 \begin_inset CommandInset href
38271 target "http://en.wikipedia.org/wiki/Dia_(software)"
38280 \begin_layout Description
38281 GnumericSpreadsheet With this template you can insert spreadsheets
38282 \begin_inset space \thinspace{}
38286 \begin_inset space \thinspace{}
38289 tables in the format of
38292 \begin_inset CommandInset href
38295 target "http://en.wikipedia.org/wiki/Gnumeric"
38302 \begin_inset CommandInset href
38304 name "OpenDocument"
38305 target "http://en.wikipedia.org/wiki/OpenDocument"
38310 \begin_inset CommandInset href
38312 name "Microsoft Office XML"
38313 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38318 \begin_inset CommandInset href
38320 name "Office Open XML"
38321 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38326 For this feature \SpecialChar LyX
38327 must have found the program
38331 during its configuration.
38332 This program is part of Gnumeric, so that you must have Gnumeric installed,
38333 also if you don't have tables in the Gnumeric format.
38334 For examples and possible limitations have a look at \SpecialChar LyX
38342 \begin_layout Description
38343 LilyPond This template is used for music notation typeset with the program
38344 \begin_inset Newline linebreak
38350 \begin_inset CommandInset href
38353 target "http://en.wikipedia.org/wiki/LilyPond"
38360 For \SpecialChar LyX
38361 's extended support for LilyPond have a look at \SpecialChar LyX
38369 \begin_layout Description
38370 PDFPages With this template you can insert PDF documents to your document.
38371 To specify the range of pages that should be included, use the option
38381 LaTeX and LyX options
38384 The argument of this option is a comma separated list, containing page
38385 numbers (insert as option
38389 ), ranges of page numbers (
38393 ) or any combination.
38394 To insert empty pages use {}.
38396 \begin_inset space \thinspace{}
38400 \begin_inset space ~
38405 pages={3,{},8-11,15}
38407 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38408 Page ranges are specified in the syntax
38417 This selects all pages from
38430 defaults to the first page; omitting
38434 defaults to the last page of the document.
38435 The last page can also be selected with the keyword
38440 (This is only permitted in a page range.) So
38444 will insert all pages of the document and
38448 will insert all pages in reverse order.
38449 If the pages option is not specified, only the first page of the PDF is
38451 \begin_inset Newline newline
38458 inserts the pages with their original size, if this option is not given,
38459 the pages will be resized to fith the width of the page of your document.
38464 you can specify the width and height of the input pages and their rotation.
38465 If another width than 100
38466 \begin_inset space \thinspace{}
38469 Scale% is used, the option
38473 will be overwritten.
38474 For more info and possible options, have a look into the documentation
38475 of the \SpecialChar LaTeX
38481 \begin_inset CommandInset citation
38488 \begin_inset Index idx
38491 \begin_layout Plain Layout
38493 -packages ! pdfpages
38499 \begin_inset Newline newline
38502 To use this template in a
38506 presentation you need to first insert an
38510 environment and in a subsequent paragraph a \SpecialChar TeX
38511 Code box containing the command
38516 setbeamertemplate{background canvas}{}
38519 Then you can insert as many paragraphs containing the PDFPages template
38521 Behind the included PDF pages you can resume the Beamer presentation by
38522 beginning a new frame or by starting a new section.
38523 To avoid stray blank pages prior to the PDF pages, make sure to use the
38528 alignment for the paragraph containing the template.
38529 \begin_inset Newline newline
38532 Here is an included PDF which is rotated by -5°:
38533 \begin_inset External
38535 filename clipart/Abstract.pdf
38536 extra LaTeX "noautoscale, pages=-"
38538 rotateOrigin bottomleft
38545 \begin_layout Description
38546 RasterImage This can be used for bitmap images.
38547 The image can be treated in the
38551 dialog like the images that are usually included via the
38555 dialog as described in section
38556 \begin_inset space ~
38560 \begin_inset CommandInset ref
38562 reference "sec:Graphics-Dialog"
38567 The difference to the normal image input is that only raster images are
38568 allowed; that means that PDF and EPS-images are not supported.
38569 Here is an inserted raster image:
38570 \begin_inset External
38571 template RasterImage
38572 filename clipart/ToolbarEnvBox.png
38579 \begin_layout Description
38580 XFig This template supports images created with the program
38583 \begin_inset CommandInset href
38586 target "http://en.wikipedia.org/wiki/Xfig"
38595 \begin_layout Standard
38596 \begin_inset Float table
38602 \begin_layout Plain Layout
38603 \begin_inset Caption Standard
38605 \begin_layout Plain Layout
38606 \begin_inset CommandInset label
38608 name "tab:Comparison-of-the"
38612 Comparison of the date input methods.
38620 \begin_layout Plain Layout
38622 \begin_inset Tabular
38623 <lyxtabular version="3" rows="4" columns="4">
38624 <features tabularvalignment="middle">
38625 <column alignment="center" valignment="top">
38626 <column alignment="center" valignment="top">
38627 <column alignment="center" valignment="top">
38628 <column alignment="center" valignment="top">
38630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38633 \begin_layout Plain Layout
38639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38642 \begin_layout Plain Layout
38645 External Material\SpecialChar menuseparator
38651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38654 \begin_layout Plain Layout
38657 Insert\SpecialChar menuseparator
38663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38666 \begin_layout Plain Layout
38678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38681 \begin_layout Plain Layout
38688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38691 \begin_layout Plain Layout
38697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38700 \begin_layout Plain Layout
38706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38709 \begin_layout Plain Layout
38710 as \SpecialChar TeX
38718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38721 \begin_layout Plain Layout
38728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38731 \begin_layout Plain Layout
38737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38740 \begin_layout Plain Layout
38746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38749 \begin_layout Plain Layout
38757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38760 \begin_layout Plain Layout
38766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38769 \begin_layout Plain Layout
38775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38778 \begin_layout Plain Layout
38784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38787 \begin_layout Plain Layout
38806 \begin_layout Standard
38807 When you use the option
38819 dialog, only the path to the inserted file is shown in the output.
38820 \begin_inset Newline newline
38823 External material is displayed in \SpecialChar LyX
38824 either as a box like this:
38825 \begin_inset Graphics
38826 filename clipart/ExternalMaterialQt4.png
38828 scaleBeforeRotation
38832 or as image, depending on the option
38838 LaTeX and LyX options
38843 \begin_layout Standard
38850 manual explains how you can define your own templates.
38853 \begin_layout Section
38855 \begin_inset CommandInset label
38857 name "sec:Child-Documents"
38862 \begin_inset Index idx
38865 \begin_layout Plain Layout
38866 External Document Parts ! Child Documents
38872 \begin_inset Index idx
38875 \begin_layout Plain Layout
38884 \begin_layout Standard
38885 Child documents are used if you have a long document consisting of several
38886 larger parts or sections.
38887 For maintenance it is often useful and sometimes even required to split
38888 the document into several files that can be revised separately.
38889 The different documents are then the so called
38890 \begin_inset Quotes eld
38894 \begin_inset Quotes erd
38897 , and a master document connects them to print the full document or parts
38899 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38901 the bibliography, and labels for cross-references.
38904 \begin_layout Standard
38905 To be able to work on child documents without the need to open their master,
38906 specify in the child document the master in the menu
38908 Document\SpecialChar menuseparator
38909 Settings\SpecialChar menuseparator
38911 \begin_inset space ~
38917 This master document will then be used in the background by \SpecialChar LyX
38919 the child document.
38922 \begin_layout Standard
38923 Included documents are displayed in \SpecialChar LyX
38924 as a box like this:
38925 \begin_inset Graphics
38926 filename clipart/ChildDocumentQt4.png
38928 scaleBeforeRotation
38932 To include child documents in a master document use the menu
38934 Insert\SpecialChar menuseparator
38935 File\SpecialChar menuseparator
38937 \begin_inset space ~
38943 A dialog pops up where you can choose between four include methods:
38946 \begin_layout Description
38947 Include You can include \SpecialChar LyX
38948 and \SpecialChar LaTeX
38958 dialog, the included document will be opened in \SpecialChar LyX
38959 in a new file tab so that
38961 \begin_inset Newline newline
38967 \begin_layout Standard
38968 Here is a child document inserted using
38973 \begin_inset CommandInset include
38974 LatexCommand include
38975 filename "DummyDocument1.lyx"
38982 \begin_layout Standard
38983 The section numbering includes the sections of the included files in the
38984 order they are inserted in the master document.
38985 The included example document has for example a subsection that is numbered
38986 as a subsection of this section.
38987 Labels of included documents can be referenced: Subsection
38988 \begin_inset space ~
38992 \begin_inset CommandInset ref
38994 reference "subsec:External-Subsection-1"
39001 \begin_layout Standard
39002 The preamble of the child document is ignored; only the preamble of the
39003 master document is used.
39004 Branches in child documents will be ignored by the master document when
39005 the master document does not have a branch with the same name.
39006 Included documents are inserted starting on a new page and ending with
39010 \begin_layout Standard
39011 \begin_inset Note Greyedout
39014 \begin_layout Plain Layout
39019 If you have included a \SpecialChar LyX
39020 or \SpecialChar LaTeX
39021 file, you are warned when you export/view the
39022 document in case the child document uses another document class than the
39023 master document as this will lead to unexpected outputs.
39031 \begin_layout Description
39032 Input This method is very similar to the Include method.
39033 The differences are:
39034 \begin_inset Separator parbreak
39041 \begin_layout Itemize
39042 Input files don't start with a new page and don't end with a page break.
39045 \begin_layout Itemize
39046 Input files can be previewed in \SpecialChar LyX
39050 \begin_inset space ~
39055 is enabled in \SpecialChar LyX
39056 's preferences under
39059 \begin_inset space ~
39063 \begin_inset space ~
39066 feel\SpecialChar menuseparator
39072 \begin_layout Itemize
39073 You cannot exclude Input files via the menu
39075 Document\SpecialChar menuseparator
39076 Settings\SpecialChar menuseparator
39083 \begin_layout Standard
39084 Here is a child document inserted using
39089 \begin_inset CommandInset include
39091 filename "DummyDocument2.lyx"
39098 \begin_layout Description
39099 Verbatim With this method any text file can be included.
39100 The file is shown in the output with its source code; no command used in
39101 the text is invoked.
39102 You can use the option
39104 Mark spaces in output
39106 that displays the character
39107 \begin_inset Quotes eld
39114 \begin_layout Plain Layout
39124 \begin_inset Quotes erd
39127 for every space character in the source code.
39128 The difference from the method via the menu
39130 Insert\SpecialChar menuseparator
39131 File\SpecialChar menuseparator
39133 \begin_inset space ~
39138 is that the document content is not shown in \SpecialChar LyX
39142 \begin_layout Standard
39143 Here is a child document inserted as Verbatim:
39144 \begin_inset CommandInset include
39145 LatexCommand verbatiminput
39146 filename "DummyTextDocument.txt"
39151 \begin_inset VSpace bigskip
39154 Here is a child document inserted as Verbatim using the
39156 Mark spaces in output
39159 \begin_inset CommandInset include
39160 LatexCommand verbatiminput*
39161 filename "DummyTextDocument.txt"
39168 \begin_layout Standard
39169 \begin_inset VSpace bigskip
39175 \begin_layout Standard
39176 \begin_inset Note Greyedout
39179 \begin_layout Plain Layout
39184 As you can see in the examples above, the text of the documents included
39189 is not broken at the end of the document lines.
39197 \begin_layout Description
39198 Listings This type is described in chapter
39199 \begin_inset space ~
39203 \begin_inset CommandInset ref
39205 reference "cha:Program-Code-Listings"
39212 \begin_layout Standard
39213 \begin_inset Note Greyedout
39216 \begin_layout Plain Layout
39221 Including the same document twice in a document using different methods
39222 could cause \SpecialChar LaTeX
39231 \begin_layout Standard
39232 If you want to view/export only selected children of your master document,
39233 either because you want to save compiling time or because you want to distribut
39234 e single chapters of the book you are just writing, you can exclude children
39236 This is done via the menu
39238 Document\SpecialChar menuseparator
39239 Settings\SpecialChar menuseparator
39243 You can exclude\SpecialChar breakableslash
39244 include children by double-clicking on the
39248 column of the respective child document in the list (note that this only
39249 works for documents embedded via
39250 \begin_inset Quotes eld
39254 \begin_inset Quotes erd
39258 \begin_inset Quotes eld
39262 \begin_inset Quotes erd
39268 Maintain counters and references
39270 is enabled, \SpecialChar LyX
39271 will assure that all page numbers, references etc.
39272 \begin_inset space ~
39275 are correct as if the whole document was processed.
39276 This is useful if you want the selected sub-documents to look exactly as
39277 in the context of the whole document.
39278 However, \SpecialChar LyX
39279 needs to process the whole document in the background for this
39281 So if you want to save compile time and if counters and references do not
39282 need to be correct, disable this checkbox.
39285 \begin_layout Standard
39286 Alternatively, you can put each included file into a branch.
39290 \begin_layout Plain Layout
39291 Branches are described in section
39295 of the \SpecialChar LyX
39305 By enabling\SpecialChar breakableslash
39306 disabling branches you can decide which included files will
39307 appear in the output.
39308 This has the advantage that it also works with Input'ed sub-documents.
39309 However, counters and references will not be maintained with this approach.
39312 \begin_layout Chapter
39313 Program Code Listings
39314 \begin_inset CommandInset label
39316 name "cha:Program-Code-Listings"
39321 \begin_inset Index idx
39324 \begin_layout Plain Layout
39331 \begin_inset Index idx
39334 \begin_layout Plain Layout
39341 \begin_inset Index idx
39344 \begin_layout Plain Layout
39353 \begin_layout Standard
39354 To include and typeset program code you can use the
39358 inset that can be inserted via the menu
39360 Insert\SpecialChar menuseparator
39364 The \SpecialChar LaTeX
39370 \begin_inset Index idx
39373 \begin_layout Plain Layout
39375 -packages ! listings
39380 provides a powerful and flexible way to insert program source code into
39384 \begin_layout Standard
39385 Right-clicking on a listings inset opens the context menu containing where
39386 you can set the listings format.
39389 \begin_layout Standard
39390 By default, a listing starts a new paragraph in the output.
39391 The placement option
39394 \begin_inset space ~
39399 prints the listing inline like this:
39400 \begin_inset listings
39401 lstparams "language={C++}"
39405 \begin_layout Plain Layout
39413 \begin_inset Newline newline
39420 creates a listings float where you can specify the placement options
39421 \begin_inset Quotes eld
39429 \begin_inset Quotes erd
39433 \begin_inset Quotes eld
39441 \begin_inset Quotes erd
39445 \begin_inset Quotes eld
39453 \begin_inset Quotes erd
39457 \begin_inset Quotes eld
39465 \begin_inset Quotes erd
39468 corresponding to the float placement options described in section
39469 \begin_inset space ~
39473 \begin_inset CommandInset ref
39475 reference "sec:Float-Placement"
39480 The placement options can be mixed and are inserted without any separation,
39482 \begin_inset space \thinspace{}
39486 \begin_inset space \space{}
39490 \begin_inset Quotes eld
39498 \begin_inset Quotes erd
39503 \begin_inset Quotes eld
39507 \begin_inset Quotes erd
39510 has sometimes no effect, but you don't need to use the
39514 option in this case as also non-float listings can have captions and be
39518 \begin_layout Standard
39519 You can add captions to listings with the menu
39521 Insert\SpecialChar menuseparator
39525 Listings can be referenced like floats: Listing
39526 \begin_inset space ~
39530 \begin_inset CommandInset ref
39532 reference "lst:Example-Listing"
39537 A list of listings which contains all listings with captions can be created
39540 Insert\SpecialChar menuseparator
39542 \begin_inset space ~
39546 \begin_inset space ~
39549 TOC\SpecialChar menuseparator
39553 The list entries are the listing caption and the listing number.
39556 \begin_layout Standard
39557 \begin_inset listings
39558 lstparams "language=Python"
39562 \begin_layout Plain Layout
39564 \begin_inset Caption Standard
39566 \begin_layout Plain Layout
39567 \begin_inset CommandInset label
39569 name "lst:Example-Listing"
39573 Example Listing float
39578 # Example listing float
39581 \begin_layout Plain Layout
39586 \begin_layout Plain Layout
39588 'this is a python function'
39591 \begin_layout Plain Layout
39601 \begin_layout Standard
39602 When you have set a programming language in the listings dialog, the keywords
39603 of this language will be recognized and specially typeset in the output.
39604 In the example listings the Python keyword
39605 \begin_inset Quotes eld
39609 \begin_inset Quotes erd
39612 is recognized and printed bold in the output.
39615 \begin_layout Standard
39616 \begin_inset Note Greyedout
39619 \begin_layout Plain Layout
39624 If you don't get bold keywords when using typewriter fonts, your
39628 font probably doesn't provide a bold shape.
39629 In this case select a different one in the menu
39631 Document\SpecialChar menuseparator
39632 Settings\SpecialChar menuseparator
39644 provide bold shapes.)
39652 \begin_layout Standard
39656 \begin_inset space ~
39661 of the listings dialog you can specify the line numbering style.
39662 You can insert a number to specify which lines are numbered in the field
39669 \begin_inset space \thinspace{}
39673 \begin_inset space \space{}
39677 \begin_inset Quotes eld
39681 \begin_inset Quotes erd
39684 , only every 3rd line will be numbered.
39687 \begin_layout Standard
39688 You can furthermore specify a range of lines; only these will then appear
39692 Extended character table
39694 should be used when you use national characters like the German umlauts
39696 \begin_inset Newline newline
39699 Here is an example listing with left line numbering, step
39700 \begin_inset Quotes eld
39704 \begin_inset Quotes erd
39708 \begin_inset Quotes eld
39712 \begin_inset Quotes erd
39716 \begin_inset Quotes eld
39719 Extended character table
39720 \begin_inset Quotes erd
39724 \begin_inset Quotes eld
39728 \begin_inset space ~
39732 \begin_inset space ~
39736 \begin_inset Quotes erd
39740 \begin_inset space \thinspace{}
39744 \begin_inset space \thinspace{}
39750 \begin_layout Standard
39751 \begin_inset listings
39752 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39756 \begin_layout Plain Layout
39761 \begin_layout Plain Layout
39763 'this is a python function'
39766 \begin_layout Plain Layout
39771 \begin_layout Plain Layout
39776 \begin_layout Plain Layout
39778 'This is a German word: Tschüß'
39781 \begin_layout Plain Layout
39786 \begin_layout Plain Layout
39791 \begin_layout Plain Layout
39793 'this is a python function'
39796 \begin_layout Plain Layout
39806 \begin_layout Standard
39807 When you have tabulators in your listing, you can specify the number of
39808 characters that are spanned by a tabulator in the field
39811 \begin_inset space ~
39819 \begin_layout Standard
39820 \begin_inset Note Greyedout
39823 \begin_layout Plain Layout
39828 Due to a bug in the
39832 package the line numbering is shifted by a line by every previous listing.
39833 That's the reason why the lines 2 and 5 are numbered in the above listing
39834 and not the lines 3 and 6.
39842 \begin_layout Standard
39843 \begin_inset VSpace bigskip
39849 \begin_layout Standard
39850 It is also possible to print lines from a file as listing.
39851 To do this, use the menu
39853 Insert\SpecialChar menuseparator
39854 File\SpecialChar menuseparator
39857 and choose the type
39865 \begin_layout Plain Layout
39866 The other child document types are described in section
39867 \begin_inset space ~
39871 \begin_inset CommandInset ref
39873 reference "sec:Child-Documents"
39882 In the child document dialog you can specify the listing parameters in
39884 To show a list of all available parameters, type in a question mark
39885 \begin_inset Quotes eld
39889 \begin_inset Quotes erd
39895 \begin_layout Standard
39896 To reference child document listings, write a label text into the corresponding
39897 field of the child document dialog.
39898 The label can then be referenced using the menu
39900 Insert\SpecialChar menuseparator
39906 \begin_layout Standard
39908 \begin_inset space ~
39912 \begin_inset CommandInset ref
39914 reference "lst:file-listing"
39918 is an example for a listing of a file; there the lines 10
39919 \begin_inset space \thinspace{}
39923 \begin_inset space \thinspace{}
39926 15 of this \SpecialChar LyX
39930 \begin_layout Standard
39931 \begin_inset CommandInset include
39932 LatexCommand lstinputlisting
39933 filename "EmbeddedObjects.lyx"
39934 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39941 \begin_layout Standard
39942 \begin_inset VSpace bigskip
39948 \begin_layout Standard
39949 Inserting a formula into a listing can be done the following way:
39952 \begin_layout Enumerate
39953 Open the listings dialog and add
39954 \begin_inset Newline newline
39962 \begin_inset Newline newline
39965 to the field of the
39972 \begin_layout Enumerate
39973 Create a formula outside the listing
39976 \begin_layout Enumerate
39977 Copy the content of the formula (not the formula inset) to the clipboard
39987 \begin_layout Enumerate
39988 In the listing write
39989 \begin_inset Quotes eld
39997 \begin_inset Quotes erd
40000 and copy from the clipboard between the dollar-signs (shortcut
40009 \begin_layout Standard
40010 \begin_inset listings
40011 lstparams "language=Python,mathescape=true"
40015 \begin_layout Plain Layout
40017 \begin_inset Caption Standard
40019 \begin_layout Plain Layout
40020 Example Listing float containing a formula
40025 # Example listing float
40028 \begin_layout Plain Layout
40033 \begin_layout Plain Layout
40046 \begin_layout Plain Layout
40056 \begin_layout Standard
40057 \begin_inset VSpace bigskip
40063 \begin_layout Standard
40064 Global listings settings can be set in the
40066 Document\SpecialChar menuseparator
40067 Settings\SpecialChar menuseparator
40071 To get there a list of available options, type in a question mark
40072 \begin_inset Quotes eld
40076 \begin_inset Quotes erd
40082 \begin_layout Standard
40083 For more information about the
40087 package, we refer to its documentation
40088 \begin_inset CommandInset citation
40097 \begin_layout Standard
40098 \begin_inset Newpage newpage
40104 \begin_layout Chapter
40106 Units available in \SpecialChar LyX
40108 \begin_inset Index idx
40111 \begin_layout Plain Layout
40118 \begin_inset CommandInset label
40120 name "cha:Units-available-in"
40127 \begin_layout Standard
40128 To understand the units described in this documentation, Table
40129 \begin_inset space ~
40133 \begin_inset CommandInset ref
40135 reference "tab:Units"
40139 explains all units available in \SpecialChar LyX
40143 \begin_layout Standard
40144 \begin_inset Float table
40150 \begin_layout Plain Layout
40151 \begin_inset Caption Standard
40153 \begin_layout Plain Layout
40154 \begin_inset CommandInset label
40168 \begin_layout Plain Layout
40169 \begin_inset VSpace medskip
40175 \begin_layout Plain Layout
40177 \begin_inset Tabular
40178 <lyxtabular version="3" rows="20" columns="3">
40179 <features tabularvalignment="middle">
40180 <column alignment="center" valignment="top">
40181 <column alignment="center" valignment="top">
40182 <column alignment="center" valignment="top">
40184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40187 \begin_layout Plain Layout
40193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40196 \begin_layout Plain Layout
40202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40205 \begin_layout Plain Layout
40214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40217 \begin_layout Plain Layout
40223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40226 \begin_layout Plain Layout
40232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40235 \begin_layout Plain Layout
40243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40246 \begin_layout Plain Layout
40252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40255 \begin_layout Plain Layout
40261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40264 \begin_layout Plain Layout
40272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40275 \begin_layout Plain Layout
40281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40284 \begin_layout Plain Layout
40290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40293 \begin_layout Plain Layout
40301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40304 \begin_layout Plain Layout
40310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40313 \begin_layout Plain Layout
40315 \begin_inset space \thinspace{}
40319 \begin_inset space \thinspace{}
40327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40330 \begin_layout Plain Layout
40338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40341 \begin_layout Plain Layout
40347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40350 \begin_layout Plain Layout
40352 \begin_inset space \thinspace{}
40356 \begin_inset space \thinspace{}
40364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40367 \begin_layout Plain Layout
40375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40378 \begin_layout Plain Layout
40384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40387 \begin_layout Plain Layout
40388 scaled point (65536
40389 \begin_inset space \thinspace{}
40393 \begin_inset space \thinspace{}
40401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40404 \begin_layout Plain Layout
40412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40415 \begin_layout Plain Layout
40421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40424 \begin_layout Plain Layout
40426 \begin_inset space \thinspace{}
40430 \begin_inset space \thinspace{}
40438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40441 \begin_layout Plain Layout
40449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40452 \begin_layout Plain Layout
40458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40461 \begin_layout Plain Layout
40463 \begin_inset space \thinspace{}
40467 \begin_inset Formula $\approx$
40471 \begin_inset space \thinspace{}
40479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40482 \begin_layout Plain Layout
40490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40493 \begin_layout Plain Layout
40499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40502 \begin_layout Plain Layout
40504 \begin_inset space \thinspace{}
40508 \begin_inset space \thinspace{}
40516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40519 \begin_layout Plain Layout
40527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40530 \begin_layout Plain Layout
40536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40539 \begin_layout Plain Layout
40540 % of original image width
40545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40548 \begin_layout Plain Layout
40556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40559 \begin_layout Plain Layout
40565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40568 \begin_layout Plain Layout
40574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40577 \begin_layout Plain Layout
40587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40590 \begin_layout Plain Layout
40596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40599 \begin_layout Plain Layout
40605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40608 \begin_layout Plain Layout
40618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40621 \begin_layout Plain Layout
40627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40630 \begin_layout Plain Layout
40636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40639 \begin_layout Plain Layout
40649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40652 \begin_layout Plain Layout
40658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40661 \begin_layout Plain Layout
40667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40670 \begin_layout Plain Layout
40680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40683 \begin_layout Plain Layout
40689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40692 \begin_layout Plain Layout
40698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40701 \begin_layout Plain Layout
40711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40714 \begin_layout Plain Layout
40720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40723 \begin_layout Plain Layout
40729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40732 \begin_layout Plain Layout
40742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40745 \begin_layout Plain Layout
40751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40754 \begin_layout Plain Layout
40764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40767 \begin_layout Plain Layout
40775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40778 \begin_layout Plain Layout
40784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40787 \begin_layout Plain Layout
40797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40800 \begin_layout Plain Layout
40808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40811 \begin_layout Plain Layout
40817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40820 \begin_layout Plain Layout
40822 \begin_inset space \thinspace{}
40826 \begin_inset space \thinspace{}
40834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40837 \begin_layout Plain Layout
40856 \begin_layout Chapter
40857 Output File Formats with Graphics
40858 \begin_inset CommandInset label
40860 name "cha:Output-File-Formats"
40867 \begin_layout Section
40869 \begin_inset Index idx
40872 \begin_layout Plain Layout
40879 \begin_inset Index idx
40882 \begin_layout Plain Layout
40887 \begin_layout Plain Layout
40898 \begin_layout Plain Layout
40913 \begin_layout Standard
40914 This file type has the extension
40915 \begin_inset Quotes eld
40923 \begin_inset Quotes erd
40928 \begin_inset Quotes eld
40932 \begin_inset Quotes erd
40935 (DVI), because it is completely portable; you can move them from one machine
40936 to another without needing to do any sort of conversion.
40937 At the time when this file-format was developed, this was no matter of
40939 DVIs are used for quick previews and as pre-stage for other output formats,
40943 \begin_layout Standard
40944 \begin_inset Note Greyedout
40947 \begin_layout Plain Layout
40952 DVI-files do not contain images; they will only be a linked.
40957 So don't forget this, if you move your
40961 file to another computer.
40962 This property can also slow down your computer when you view the DVI, because
40963 the DVI-viewer has to convert the image in the background to make it visible
40964 when you scroll in the DVI.
40965 So it is recommended that you use PDF for files with many images.
40968 \begin_layout Standard
40969 You can export your document to DVI by using the menu
40971 File\SpecialChar menuseparator
40972 Export\SpecialChar menuseparator
40976 You can view your document as DVI via the
40983 \begin_layout Section
40985 \begin_inset Index idx
40988 \begin_layout Plain Layout
40989 File Formats ! PostScript
40995 \begin_inset Index idx
40998 \begin_layout Plain Layout
41003 \begin_layout Plain Layout
41014 \begin_layout Plain Layout
41029 \begin_layout Standard
41030 This file type has the extension
41031 \begin_inset Quotes eld
41039 \begin_inset Quotes erd
41043 PostScript was developed by the company
41047 as a printer language.
41048 The file therefore contains commands that the printer uses to print the
41050 PostScript can be seen as a
41051 \begin_inset Quotes eld
41054 programming language
41055 \begin_inset Quotes erd
41058 ; you can calculate with it and draw diagrams and images
41062 \begin_layout Plain Layout
41063 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41070 \begin_inset CommandInset citation
41082 Due to this ability, the files are often bigger than PDFs.
41085 \begin_layout Standard
41086 PostScript can only contain images in the format
41087 \begin_inset Quotes eld
41090 Encapsulated PostScript
41091 \begin_inset Quotes erd
41094 (EPS, file extension
41095 \begin_inset Quotes eld
41103 \begin_inset Quotes erd
41107 As \SpecialChar LyX
41108 allows you to use any known image format in your document, it has to
41109 convert images in the background to EPS.
41111 \begin_inset space ~
41115 \begin_inset space ~
41118 images in your document, \SpecialChar LyX
41120 \begin_inset space ~
41123 conversions whenever you view or export your document.
41124 This will slow down your work flow with \SpecialChar LyX
41126 So if you plan to use PostScript, you can insert your images directly as
41127 EPS to avoid this problem.
41130 \begin_layout Standard
41131 You can export your document to PostScript using the menu
41133 File\SpecialChar menuseparator
41134 Export\SpecialChar menuseparator
41138 You can view your document as PostScript via the
41145 \begin_layout Section
41147 \begin_inset Index idx
41150 \begin_layout Plain Layout
41157 \begin_inset Index idx
41160 \begin_layout Plain Layout
41169 \begin_layout Standard
41170 This file type has the extension
41171 \begin_inset Quotes eld
41179 \begin_inset Quotes erd
41184 \begin_inset Quotes eld
41187 Portable Document Format
41188 \begin_inset Quotes erd
41191 (PDF) was developed by
41195 as a derivative of PostScript.
41196 It is more compressed and it uses fewer commands than PostScript.
41198 \begin_inset Quotes eld
41202 \begin_inset Quotes erd
41205 implies, it can be processed at any computer system and the printed output
41206 looks exactly the same.
41209 \begin_layout Standard
41210 PDF can contain images in its own PDF format, in the format
41211 \begin_inset Quotes eld
41214 Joint Photographic Experts Group
41215 \begin_inset Quotes erd
41218 (JPG, file extension
41219 \begin_inset Quotes eld
41227 \begin_inset Quotes erd
41231 \begin_inset Quotes eld
41239 \begin_inset Quotes erd
41242 ), and in the format
41243 \begin_inset Quotes eld
41246 Portable Network Graphics
41247 \begin_inset Quotes erd
41250 (PNG, file extension
41251 \begin_inset Quotes eld
41259 \begin_inset Quotes erd
41263 Nevertheless you can use any other image format, because \SpecialChar LyX
41265 in the background to one of these formats.
41266 But as described in the section about PostScript, the image conversion
41267 will slow down your work flow.
41268 So it is recommended that you use images in one of the three mentioned
41272 \begin_layout Standard
41273 You can export your document to PDF via the menu
41275 File\SpecialChar menuseparator
41278 in three different ways:
41281 \begin_layout Description
41283 \begin_inset space ~
41286 (ps2pdf) This uses the program
41290 that creates a PDF from a PostScript-version of your file.
41291 The PostScript-version is produced by the program
41295 which uses a DVI-version as intermediate step.
41296 So this export variant consists of three conversions.
41299 \begin_layout Description
41301 \begin_inset space ~
41304 (dvipdfm) This uses the program
41308 that converts your file in the background to DVI and in a second step to
41312 \begin_layout Description
41314 \begin_inset space ~
41317 (pdflatex) This uses the program
41321 that converts your file directly to PDF.
41324 \begin_layout Standard
41325 It is recommended that you use
41328 \begin_inset space ~
41337 supports all features of actual PDF-versions, is quick and works stable.
41342 is not under development and therefore a bit outdated.
41345 \begin_layout Standard
41346 You can view your document as PDF via the
41350 menu or by using a toolbar button.
41353 \begin_layout Chapter
41354 List of dvips color names
41355 \begin_inset CommandInset label
41357 name "chap:List-of-dvips-colornames"
41364 \begin_layout Standard
41365 \begin_inset Tabular
41366 <lyxtabular version="3" rows="17" columns="4">
41367 <features tabularvalignment="middle">
41368 <column alignment="left" valignment="top" width="0pt">
41369 <column alignment="left" valignment="top" width="0pt">
41370 <column alignment="left" valignment="top" width="0pt">
41371 <column alignment="left" valignment="top" width="0pt">
41373 <cell alignment="left" valignment="top" usebox="none">
41376 \begin_layout Plain Layout
41380 \begin_layout Plain Layout
41393 \begin_layout Plain Layout
41404 \begin_layout Plain Layout
41416 <cell alignment="left" valignment="top" usebox="none">
41419 \begin_layout Plain Layout
41423 \begin_layout Plain Layout
41436 \begin_layout Plain Layout
41447 \begin_layout Plain Layout
41459 <cell alignment="left" valignment="top" usebox="none">
41462 \begin_layout Plain Layout
41466 \begin_layout Plain Layout
41479 \begin_layout Plain Layout
41490 \begin_layout Plain Layout
41502 <cell alignment="left" valignment="top" usebox="none">
41505 \begin_layout Plain Layout
41509 \begin_layout Plain Layout
41522 \begin_layout Plain Layout
41533 \begin_layout Plain Layout
41547 <cell alignment="center" valignment="top" usebox="none">
41550 \begin_layout Plain Layout
41554 \begin_layout Plain Layout
41567 \begin_layout Plain Layout
41575 \begin_inset Phantom Phantom
41578 \begin_layout Plain Layout
41588 \begin_layout Plain Layout
41600 <cell alignment="center" valignment="top" usebox="none">
41603 \begin_layout Plain Layout
41607 \begin_layout Plain Layout
41620 \begin_layout Plain Layout
41628 \begin_inset Phantom Phantom
41631 \begin_layout Plain Layout
41641 \begin_layout Plain Layout
41653 <cell alignment="center" valignment="top" usebox="none">
41656 \begin_layout Plain Layout
41660 \begin_layout Plain Layout
41673 \begin_layout Plain Layout
41681 \begin_inset Phantom Phantom
41684 \begin_layout Plain Layout
41694 \begin_layout Plain Layout
41706 <cell alignment="center" valignment="top" usebox="none">
41709 \begin_layout Plain Layout
41713 \begin_layout Plain Layout
41726 \begin_layout Plain Layout
41734 \begin_inset Phantom Phantom
41737 \begin_layout Plain Layout
41747 \begin_layout Plain Layout
41761 <cell alignment="left" valignment="top" usebox="none">
41764 \begin_layout Plain Layout
41768 \begin_layout Plain Layout
41781 \begin_layout Plain Layout
41789 \begin_inset Phantom Phantom
41792 \begin_layout Plain Layout
41802 \begin_layout Plain Layout
41814 <cell alignment="left" valignment="top" usebox="none">
41817 \begin_layout Plain Layout
41821 \begin_layout Plain Layout
41834 \begin_layout Plain Layout
41842 \begin_inset Phantom Phantom
41845 \begin_layout Plain Layout
41855 \begin_layout Plain Layout
41867 <cell alignment="left" valignment="top" usebox="none">
41870 \begin_layout Plain Layout
41874 \begin_layout Plain Layout
41887 \begin_layout Plain Layout
41895 \begin_inset Phantom Phantom
41898 \begin_layout Plain Layout
41908 \begin_layout Plain Layout
41920 <cell alignment="left" valignment="top" usebox="none">
41923 \begin_layout Plain Layout
41927 \begin_layout Plain Layout
41940 \begin_layout Plain Layout
41948 \begin_inset Phantom Phantom
41951 \begin_layout Plain Layout
41961 \begin_layout Plain Layout
41975 <cell alignment="left" valignment="top" usebox="none">
41978 \begin_layout Plain Layout
41982 \begin_layout Plain Layout
41995 \begin_layout Plain Layout
42003 \begin_inset Phantom Phantom
42006 \begin_layout Plain Layout
42016 \begin_layout Plain Layout
42028 <cell alignment="left" valignment="top" usebox="none">
42031 \begin_layout Plain Layout
42035 \begin_layout Plain Layout
42048 \begin_layout Plain Layout
42056 \begin_inset Phantom Phantom
42059 \begin_layout Plain Layout
42069 \begin_layout Plain Layout
42081 <cell alignment="left" valignment="top" usebox="none">
42084 \begin_layout Plain Layout
42088 \begin_layout Plain Layout
42101 \begin_layout Plain Layout
42109 \begin_inset Phantom Phantom
42112 \begin_layout Plain Layout
42122 \begin_layout Plain Layout
42134 <cell alignment="left" valignment="top" usebox="none">
42137 \begin_layout Plain Layout
42141 \begin_layout Plain Layout
42154 \begin_layout Plain Layout
42162 \begin_inset Phantom Phantom
42165 \begin_layout Plain Layout
42175 \begin_layout Plain Layout
42189 <cell alignment="left" valignment="top" usebox="none">
42192 \begin_layout Plain Layout
42196 \begin_layout Plain Layout
42209 \begin_layout Plain Layout
42217 \begin_inset Phantom Phantom
42220 \begin_layout Plain Layout
42230 \begin_layout Plain Layout
42242 <cell alignment="left" valignment="top" usebox="none">
42245 \begin_layout Plain Layout
42249 \begin_layout Plain Layout
42262 \begin_layout Plain Layout
42270 \begin_inset Phantom Phantom
42273 \begin_layout Plain Layout
42283 \begin_layout Plain Layout
42295 <cell alignment="left" valignment="top" usebox="none">
42298 \begin_layout Plain Layout
42302 \begin_layout Plain Layout
42315 \begin_layout Plain Layout
42323 \begin_inset Phantom Phantom
42326 \begin_layout Plain Layout
42336 \begin_layout Plain Layout
42348 <cell alignment="left" valignment="top" usebox="none">
42351 \begin_layout Plain Layout
42355 \begin_layout Plain Layout
42368 \begin_layout Plain Layout
42376 \begin_inset Phantom Phantom
42379 \begin_layout Plain Layout
42389 \begin_layout Plain Layout
42403 <cell alignment="left" valignment="top" usebox="none">
42406 \begin_layout Plain Layout
42410 \begin_layout Plain Layout
42423 \begin_layout Plain Layout
42431 \begin_inset Phantom Phantom
42434 \begin_layout Plain Layout
42444 \begin_layout Plain Layout
42456 <cell alignment="left" valignment="top" usebox="none">
42459 \begin_layout Plain Layout
42463 \begin_layout Plain Layout
42476 \begin_layout Plain Layout
42484 \begin_inset Phantom Phantom
42487 \begin_layout Plain Layout
42497 \begin_layout Plain Layout
42509 <cell alignment="left" valignment="top" usebox="none">
42512 \begin_layout Plain Layout
42516 \begin_layout Plain Layout
42529 \begin_layout Plain Layout
42537 \begin_inset Phantom Phantom
42540 \begin_layout Plain Layout
42550 \begin_layout Plain Layout
42562 <cell alignment="left" valignment="top" usebox="none">
42565 \begin_layout Plain Layout
42569 \begin_layout Plain Layout
42582 \begin_layout Plain Layout
42590 \begin_inset Phantom Phantom
42593 \begin_layout Plain Layout
42603 \begin_layout Plain Layout
42617 <cell alignment="center" valignment="top" usebox="none">
42620 \begin_layout Plain Layout
42624 \begin_layout Plain Layout
42637 \begin_layout Plain Layout
42645 \begin_inset Phantom Phantom
42648 \begin_layout Plain Layout
42658 \begin_layout Plain Layout
42670 <cell alignment="center" valignment="top" usebox="none">
42673 \begin_layout Plain Layout
42677 \begin_layout Plain Layout
42690 \begin_layout Plain Layout
42698 \begin_inset Phantom Phantom
42701 \begin_layout Plain Layout
42711 \begin_layout Plain Layout
42723 <cell alignment="center" valignment="top" usebox="none">
42726 \begin_layout Plain Layout
42730 \begin_layout Plain Layout
42743 \begin_layout Plain Layout
42751 \begin_inset Phantom Phantom
42754 \begin_layout Plain Layout
42764 \begin_layout Plain Layout
42776 <cell alignment="center" valignment="top" usebox="none">
42779 \begin_layout Plain Layout
42783 \begin_layout Plain Layout
42796 \begin_layout Plain Layout
42804 \begin_inset Phantom Phantom
42807 \begin_layout Plain Layout
42817 \begin_layout Plain Layout
42831 <cell alignment="left" valignment="top" usebox="none">
42834 \begin_layout Plain Layout
42838 \begin_layout Plain Layout
42851 \begin_layout Plain Layout
42859 \begin_inset Phantom Phantom
42862 \begin_layout Plain Layout
42872 \begin_layout Plain Layout
42884 <cell alignment="left" valignment="top" usebox="none">
42887 \begin_layout Plain Layout
42891 \begin_layout Plain Layout
42904 \begin_layout Plain Layout
42912 \begin_inset Phantom Phantom
42915 \begin_layout Plain Layout
42925 \begin_layout Plain Layout
42937 <cell alignment="left" valignment="top" usebox="none">
42940 \begin_layout Plain Layout
42944 \begin_layout Plain Layout
42957 \begin_layout Plain Layout
42965 \begin_inset Phantom Phantom
42968 \begin_layout Plain Layout
42978 \begin_layout Plain Layout
42990 <cell alignment="left" valignment="top" usebox="none">
42993 \begin_layout Plain Layout
42997 \begin_layout Plain Layout
43010 \begin_layout Plain Layout
43018 \begin_inset Phantom Phantom
43021 \begin_layout Plain Layout
43031 \begin_layout Plain Layout
43045 <cell alignment="left" valignment="top" usebox="none">
43048 \begin_layout Plain Layout
43052 \begin_layout Plain Layout
43065 \begin_layout Plain Layout
43073 \begin_inset Phantom Phantom
43076 \begin_layout Plain Layout
43086 \begin_layout Plain Layout
43098 <cell alignment="left" valignment="top" usebox="none">
43101 \begin_layout Plain Layout
43105 \begin_layout Plain Layout
43118 \begin_layout Plain Layout
43126 \begin_inset Phantom Phantom
43129 \begin_layout Plain Layout
43139 \begin_layout Plain Layout
43151 <cell alignment="left" valignment="top" usebox="none">
43154 \begin_layout Plain Layout
43158 \begin_layout Plain Layout
43171 \begin_layout Plain Layout
43179 \begin_inset Phantom Phantom
43182 \begin_layout Plain Layout
43192 \begin_layout Plain Layout
43204 <cell alignment="left" valignment="top" usebox="none">
43207 \begin_layout Plain Layout
43211 \begin_layout Plain Layout
43224 \begin_layout Plain Layout
43232 \begin_inset Phantom Phantom
43235 \begin_layout Plain Layout
43245 \begin_layout Plain Layout
43259 <cell alignment="left" valignment="top" usebox="none">
43262 \begin_layout Plain Layout
43266 \begin_layout Plain Layout
43279 \begin_layout Plain Layout
43287 \begin_inset Phantom Phantom
43290 \begin_layout Plain Layout
43300 \begin_layout Plain Layout
43312 <cell alignment="left" valignment="top" usebox="none">
43315 \begin_layout Plain Layout
43319 \begin_layout Plain Layout
43332 \begin_layout Plain Layout
43340 \begin_inset Phantom Phantom
43343 \begin_layout Plain Layout
43353 \begin_layout Plain Layout
43365 <cell alignment="left" valignment="top" usebox="none">
43368 \begin_layout Plain Layout
43372 \begin_layout Plain Layout
43385 \begin_layout Plain Layout
43393 \begin_inset Phantom Phantom
43396 \begin_layout Plain Layout
43406 \begin_layout Plain Layout
43418 <cell alignment="left" valignment="top" usebox="none">
43421 \begin_layout Plain Layout
43425 \begin_layout Plain Layout
43438 \begin_layout Plain Layout
43446 \begin_inset Phantom Phantom
43449 \begin_layout Plain Layout
43459 \begin_layout Plain Layout
43473 <cell alignment="left" valignment="top" usebox="none">
43476 \begin_layout Plain Layout
43480 \begin_layout Plain Layout
43493 \begin_layout Plain Layout
43501 \begin_inset Phantom Phantom
43504 \begin_layout Plain Layout
43514 \begin_layout Plain Layout
43526 <cell alignment="left" valignment="top" usebox="none">
43529 \begin_layout Plain Layout
43533 \begin_layout Plain Layout
43546 \begin_layout Plain Layout
43554 \begin_inset Phantom Phantom
43557 \begin_layout Plain Layout
43567 \begin_layout Plain Layout
43579 <cell alignment="left" valignment="top" usebox="none">
43582 \begin_layout Plain Layout
43586 \begin_layout Plain Layout
43599 \begin_layout Plain Layout
43607 \begin_inset Phantom Phantom
43610 \begin_layout Plain Layout
43620 \begin_layout Plain Layout
43632 <cell alignment="left" valignment="top" usebox="none">
43635 \begin_layout Plain Layout
43639 \begin_layout Plain Layout
43652 \begin_layout Plain Layout
43660 \begin_inset Phantom Phantom
43663 \begin_layout Plain Layout
43673 \begin_layout Plain Layout
43687 <cell alignment="left" valignment="top" usebox="none">
43690 \begin_layout Plain Layout
43694 \begin_layout Plain Layout
43707 \begin_layout Plain Layout
43715 \begin_inset Phantom Phantom
43718 \begin_layout Plain Layout
43728 \begin_layout Plain Layout
43740 <cell alignment="left" valignment="top" usebox="none">
43743 \begin_layout Plain Layout
43747 \begin_layout Plain Layout
43760 \begin_layout Plain Layout
43768 \begin_inset Phantom Phantom
43771 \begin_layout Plain Layout
43781 \begin_layout Plain Layout
43793 <cell alignment="left" valignment="top" usebox="none">
43796 \begin_layout Plain Layout
43800 \begin_layout Plain Layout
43813 \begin_layout Plain Layout
43821 \begin_inset Phantom Phantom
43824 \begin_layout Plain Layout
43834 \begin_layout Plain Layout
43846 <cell alignment="left" valignment="top" usebox="none">
43849 \begin_layout Plain Layout
43853 \begin_layout Plain Layout
43866 \begin_layout Plain Layout
43874 \begin_inset Phantom Phantom
43877 \begin_layout Plain Layout
43887 \begin_layout Plain Layout
43901 <cell alignment="left" valignment="top" usebox="none">
43904 \begin_layout Plain Layout
43908 \begin_layout Plain Layout
43921 \begin_layout Plain Layout
43929 \begin_inset Phantom Phantom
43932 \begin_layout Plain Layout
43942 \begin_layout Plain Layout
43954 <cell alignment="left" valignment="top" usebox="none">
43957 \begin_layout Plain Layout
43961 \begin_layout Plain Layout
43974 \begin_layout Plain Layout
43982 \begin_inset Phantom Phantom
43985 \begin_layout Plain Layout
43995 \begin_layout Plain Layout
44007 <cell alignment="left" valignment="top" usebox="none">
44010 \begin_layout Plain Layout
44014 \begin_layout Plain Layout
44027 \begin_layout Plain Layout
44035 \begin_inset Phantom Phantom
44038 \begin_layout Plain Layout
44048 \begin_layout Plain Layout
44060 <cell alignment="left" valignment="top" usebox="none">
44063 \begin_layout Plain Layout
44067 \begin_layout Plain Layout
44080 \begin_layout Plain Layout
44088 \begin_inset Phantom Phantom
44091 \begin_layout Plain Layout
44101 \begin_layout Plain Layout
44115 <cell alignment="left" valignment="top" usebox="none">
44118 \begin_layout Plain Layout
44122 \begin_layout Plain Layout
44135 \begin_layout Plain Layout
44143 \begin_inset Phantom Phantom
44146 \begin_layout Plain Layout
44156 \begin_layout Plain Layout
44168 <cell alignment="left" valignment="top" usebox="none">
44171 \begin_layout Plain Layout
44175 \begin_layout Plain Layout
44188 \begin_layout Plain Layout
44196 \begin_inset Phantom Phantom
44199 \begin_layout Plain Layout
44209 \begin_layout Plain Layout
44221 <cell alignment="left" valignment="top" usebox="none">
44224 \begin_layout Plain Layout
44228 \begin_layout Plain Layout
44241 \begin_layout Plain Layout
44249 \begin_inset Phantom Phantom
44252 \begin_layout Plain Layout
44262 \begin_layout Plain Layout
44274 <cell alignment="left" valignment="top" usebox="none">
44277 \begin_layout Plain Layout
44281 \begin_layout Plain Layout
44294 \begin_layout Plain Layout
44302 \begin_inset Phantom Phantom
44305 \begin_layout Plain Layout
44315 \begin_layout Plain Layout
44329 <cell alignment="left" valignment="top" usebox="none">
44332 \begin_layout Plain Layout
44336 \begin_layout Plain Layout
44349 \begin_layout Plain Layout
44357 \begin_inset Phantom Phantom
44360 \begin_layout Plain Layout
44370 \begin_layout Plain Layout
44382 <cell alignment="left" valignment="top" usebox="none">
44385 \begin_layout Plain Layout
44389 \begin_layout Plain Layout
44402 \begin_layout Plain Layout
44410 \begin_inset Phantom Phantom
44413 \begin_layout Plain Layout
44423 \begin_layout Plain Layout
44435 <cell alignment="left" valignment="top" usebox="none">
44438 \begin_layout Plain Layout
44442 \begin_layout Plain Layout
44455 \begin_layout Plain Layout
44463 \begin_inset Phantom Phantom
44466 \begin_layout Plain Layout
44476 \begin_layout Plain Layout
44488 <cell alignment="left" valignment="top" usebox="none">
44491 \begin_layout Plain Layout
44495 \begin_layout Plain Layout
44508 \begin_layout Plain Layout
44516 \begin_inset Phantom Phantom
44519 \begin_layout Plain Layout
44529 \begin_layout Plain Layout
44543 <cell alignment="left" valignment="top" usebox="none">
44546 \begin_layout Plain Layout
44550 \begin_layout Plain Layout
44563 \begin_layout Plain Layout
44571 \begin_inset Phantom Phantom
44574 \begin_layout Plain Layout
44584 \begin_layout Plain Layout
44596 <cell alignment="left" valignment="top" usebox="none">
44599 \begin_layout Plain Layout
44603 \begin_layout Plain Layout
44616 \begin_layout Plain Layout
44624 \begin_inset Phantom Phantom
44627 \begin_layout Plain Layout
44637 \begin_layout Plain Layout
44649 <cell alignment="left" valignment="top" usebox="none">
44652 \begin_layout Plain Layout
44656 \begin_layout Plain Layout
44669 \begin_layout Plain Layout
44677 \begin_inset Phantom Phantom
44680 \begin_layout Plain Layout
44690 \begin_layout Plain Layout
44702 <cell alignment="left" valignment="top" usebox="none">
44705 \begin_layout Plain Layout
44709 \begin_layout Plain Layout
44722 \begin_layout Plain Layout
44730 \begin_inset Phantom Phantom
44733 \begin_layout Plain Layout
44743 \begin_layout Plain Layout
44757 <cell alignment="left" valignment="top" usebox="none">
44760 \begin_layout Plain Layout
44764 \begin_layout Plain Layout
44777 \begin_layout Plain Layout
44785 \begin_inset Phantom Phantom
44788 \begin_layout Plain Layout
44798 \begin_layout Plain Layout
44810 <cell alignment="left" valignment="top" usebox="none">
44813 \begin_layout Plain Layout
44819 <cell alignment="left" valignment="top" usebox="none">
44822 \begin_layout Plain Layout
44828 <cell alignment="left" valignment="top" usebox="none">
44831 \begin_layout Plain Layout
44845 \begin_layout Chapter
44846 Explanation of Equation
44847 \begin_inset space ~
44851 \begin_inset CommandInset ref
44858 \begin_inset CommandInset label
44860 name "cha:Explanation-of-Equation"
44867 \begin_layout Standard
44868 We can calculate the total width of
44873 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44877 \begin_inset Formula
44879 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44885 \begin_inset Formula $W_{g\,n}$
44888 is the given width of all cells,
44894 is the \SpecialChar LaTeX
44895 -length between the cell text and the cell border (its default value
44897 \begin_inset space \thinspace{}
44907 is the thickness of the cell border line, the default is 0.4
44908 \begin_inset space \thinspace{}
44914 \begin_layout Standard
44916 \begin_inset space ~
44920 \begin_inset CommandInset ref
44922 reference "eq:Wtot_n"
44926 , the total width of a multicolumn
44927 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44931 \begin_inset Formula
44933 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44941 \begin_layout Standard
44942 By setting equation
44943 \begin_inset space ~
44947 \begin_inset CommandInset ref
44949 reference "eq:Wtot_n"
44954 \begin_inset CommandInset ref
44956 reference "eq:Wtot_mult"
44960 equal we can calculate the needed given width
44961 \begin_inset Formula $W_{g\,n}$
44968 columns are spanned, so that each column has a total width of
44969 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44973 \begin_inset Formula
44975 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44983 \begin_layout Bibliography
44984 \begin_inset CommandInset bibitem
44985 LatexCommand bibitem
44986 key "latexcompanion"
44990 Frank Mittelbach and Michel Goossens:
44992 The \SpecialChar LaTeX
44993 Companion Second Edition.
44996 Addison-Wesley, 2004
44999 \begin_layout Bibliography
45000 \begin_inset CommandInset bibitem
45001 LatexCommand bibitem
45006 Helmut Kopka and Patrick W.
45009 A Guide to \SpecialChar LaTeX
45013 Addison-Wesley, 2003
45016 \begin_layout Bibliography
45017 \begin_inset CommandInset bibitem
45018 LatexCommand bibitem
45026 : A Document Preparation System.
45029 Addison-Wesley, second edition, 1994
45032 \begin_layout Bibliography
45033 \begin_inset CommandInset bibitem
45034 LatexCommand bibitem
45039 Documentation of the \SpecialChar LaTeX
45043 \begin_inset CommandInset href
45046 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45053 \begin_inset Index idx
45056 \begin_layout Plain Layout
45058 -packages ! arydshln
45066 \begin_layout Bibliography
45067 \begin_inset CommandInset bibitem
45068 LatexCommand bibitem
45073 Documentation of the \SpecialChar LaTeX
45077 \begin_inset CommandInset href
45080 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45087 \begin_inset Index idx
45090 \begin_layout Plain Layout
45092 -packages ! booktabs
45100 \begin_layout Bibliography
45101 \begin_inset CommandInset bibitem
45102 LatexCommand bibitem
45107 Documentation of the \SpecialChar LaTeX
45111 \begin_inset CommandInset href
45114 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45121 \begin_inset Index idx
45124 \begin_layout Plain Layout
45126 -packages ! caption
45134 \begin_layout Bibliography
45135 \begin_inset CommandInset bibitem
45136 LatexCommand bibitem
45141 Documentation of the \SpecialChar LaTeX
45145 \begin_inset CommandInset href
45148 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45155 \begin_inset Index idx
45158 \begin_layout Plain Layout
45160 -packages ! diagbox
45168 \begin_layout Bibliography
45169 \begin_inset CommandInset bibitem
45170 LatexCommand bibitem
45175 Documentation of the \SpecialChar LaTeX
45179 \begin_inset CommandInset href
45182 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45189 \begin_inset Index idx
45192 \begin_layout Plain Layout
45194 -packages ! endfloat
45202 \begin_layout Bibliography
45203 \begin_inset CommandInset bibitem
45204 LatexCommand bibitem
45209 Documentation of the \SpecialChar LaTeX
45213 \begin_inset CommandInset href
45216 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45223 \begin_inset Index idx
45226 \begin_layout Plain Layout
45228 -packages ! footmisc
45236 \begin_layout Bibliography
45237 \begin_inset CommandInset bibitem
45238 LatexCommand bibitem
45243 Documentation of the \SpecialChar LaTeX
45247 \begin_inset CommandInset href
45250 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45257 \begin_inset Index idx
45260 \begin_layout Plain Layout
45262 -packages ! hyperref
45270 \begin_layout Bibliography
45271 \begin_inset CommandInset bibitem
45272 LatexCommand bibitem
45277 Documentation of the \SpecialChar LaTeX
45281 \begin_inset CommandInset href
45284 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45291 \begin_inset Index idx
45294 \begin_layout Plain Layout
45296 -packages ! hyperref
45304 \begin_layout Bibliography
45305 \begin_inset CommandInset bibitem
45306 LatexCommand bibitem
45311 Documentation of the \SpecialChar LaTeX
45315 \begin_inset CommandInset href
45318 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45325 \begin_inset Index idx
45328 \begin_layout Plain Layout
45330 -packages ! KOMA-Script
45338 \begin_layout Bibliography
45339 \begin_inset CommandInset bibitem
45340 LatexCommand bibitem
45345 Documentation of the \SpecialChar LaTeX
45349 \begin_inset CommandInset href
45352 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45359 \begin_inset CommandInset href
45362 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45367 \begin_inset Index idx
45370 \begin_layout Plain Layout
45372 -packages ! lettrine
45380 \begin_layout Bibliography
45381 \begin_inset CommandInset bibitem
45382 LatexCommand bibitem
45387 Documentation of the \SpecialChar LaTeX
45391 \begin_inset CommandInset href
45394 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45401 \begin_inset Index idx
45404 \begin_layout Plain Layout
45406 -packages ! listings
45414 \begin_layout Bibliography
45415 \begin_inset CommandInset bibitem
45416 LatexCommand bibitem
45421 Documentation of the \SpecialChar LaTeX
45425 \begin_inset CommandInset href
45428 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45435 \begin_inset Index idx
45438 \begin_layout Plain Layout
45440 -packages ! marginnote
45448 \begin_layout Bibliography
45449 \begin_inset CommandInset bibitem
45450 LatexCommand bibitem
45455 Documentation of the \SpecialChar LaTeX
45459 \begin_inset CommandInset href
45462 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45469 \begin_inset Index idx
45472 \begin_layout Plain Layout
45474 -packages ! pdfpages
45482 \begin_layout Bibliography
45483 \begin_inset CommandInset bibitem
45484 LatexCommand bibitem
45489 Documentation of the \SpecialChar LaTeX
45493 \begin_inset CommandInset href
45496 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45503 \begin_inset Index idx
45506 \begin_layout Plain Layout
45508 -packages ! prettyref
45516 \begin_layout Bibliography
45517 \begin_inset CommandInset bibitem
45518 LatexCommand bibitem
45523 Web page of the \SpecialChar LaTeX
45527 \begin_inset CommandInset href
45530 target "http://tug.org/PSTricks/"
45537 \begin_inset Index idx
45540 \begin_layout Plain Layout
45542 -packages ! PSTricks
45550 \begin_layout Bibliography
45551 \begin_inset CommandInset bibitem
45552 LatexCommand bibitem
45557 Documentation of the \SpecialChar LaTeX
45561 \begin_inset CommandInset href
45564 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45571 \begin_inset Index idx
45574 \begin_layout Plain Layout
45576 -packages ! refstyle
45584 \begin_layout Bibliography
45585 \begin_inset CommandInset bibitem
45586 LatexCommand bibitem
45591 Documentation of the \SpecialChar LaTeX
45595 \begin_inset CommandInset href
45598 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45605 \begin_inset Index idx
45608 \begin_layout Plain Layout
45610 -packages ! sidecap
45618 \begin_layout Bibliography
45619 \begin_inset CommandInset bibitem
45620 LatexCommand bibitem
45626 \begin_inset CommandInset href
45629 target "http://wiki.lyx.org/LyX/NewInLyX20"
45633 about new features in
45641 \begin_layout Standard
45642 \begin_inset CommandInset index_print
45643 LatexCommand printindex