1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
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 default
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 true
230 \output_changes false
233 \html_be_strict false
234 \author 2047637253 "Guillaume Munch"
241 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
245 by the \SpecialChar LyX
250 \begin_layout Plain Layout
252 If you have comments or error corrections, please send them to the \SpecialChar LyX
255 \begin_inset CommandInset href
257 name "lyx-docs@lists.lyx.org"
258 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
269 \begin_inset Note Note
272 \begin_layout Plain Layout
279 \begin_inset Newline newline
283 \begin_inset Newline newline
291 \begin_layout Standard
292 \begin_inset CommandInset toc
293 LatexCommand tableofcontents
300 \begin_layout Standard
301 \begin_inset Note Note
304 \begin_layout Plain Layout
305 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
316 diagbox, lettrine, marginnote, picinpar
323 If they are not installed you can export the document anyway but the sections
324 where the packages are required won't appear in the output.
327 \begin_layout Plain Layout
328 The latest PDF-version of this document can be found here:
329 \begin_inset Newline newline
334 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
342 \begin_layout Chapter
344 \begin_inset Index idx
347 \begin_layout Plain Layout
354 \begin_inset Index idx
357 \begin_layout Plain Layout
362 \begin_layout Plain Layout
373 \begin_layout Plain Layout
388 \begin_layout Section
390 \begin_inset Index idx
393 \begin_layout Plain Layout
394 Figures ! Graphics Dialog
400 \begin_inset CommandInset label
402 name "sec:Graphics-Dialog"
409 \begin_layout Standard
410 To insert an image into your document, place the cursor at the text position
411 you want and click on the toolbar icon
414 arg "dialog-show-new-inset graphics"
419 Insert\SpecialChar menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside \SpecialChar LyX
468 \begin_inset Newline newline
472 \begin_inset Index idx
475 \begin_layout Plain Layout
481 Images can be scaled by using a percentage value or by setting the width
482 and height explicitly.
483 If you set only the width or only the height, the other size will be determined
485 If you set both, then the image will be transformed to the given size,
486 possibly distorting it.
487 To prevent the image from distortion, use the option
489 Maintain aspect ratio
492 The image will then be scaled so that its width and height don't exceed
493 the specified dimensions.
494 \begin_inset Newline newline
497 Images can be opened in a program of your choice by right-clicking on it
498 and choosing the entry
507 The program can be set for every image format in the file format settings
512 \begin_layout Description
517 Alternatively to the usage of scaling units it is possible to set image
518 coordinates to adjust the height and width of the image in the output.
519 The coordinates can also be calculated automatically by pressing the button
549 will only print the image region within the given coordinates.
550 Normally you don't need to worry about image coordinates and can ignore
554 \begin_layout Description
571 In this tab you can modify the appearance of the image within \SpecialChar LyX
572 and \SpecialChar LaTeX
574 can specify additional \SpecialChar LaTeX
576 \begin_inset Newline newline
587 makes the image appear in the output only as a frame with the size of the
589 \begin_inset Newline newline
600 you can define or join an image settings group.
601 \begin_inset Index idx
604 \begin_layout Plain Layout
605 Figures ! Settings grouping
610 Images within such a group share their settings, so adjusting one image
611 of the group automatically also adjusts all other images of the group in
613 So you can for example change the size for a bunch of images without the
614 need to manually change each of them.
615 Joining an existing group can also be done using the context menu of the
616 image by checking the name of the desired group.
619 \begin_layout Standard
620 \begin_inset VSpace bigskip
626 \begin_layout Standard
627 This is an example image in EPS format
631 \begin_layout Plain Layout
632 Image formats are explained in section
637 \begin_inset CommandInset ref
639 reference "sec:Image-Formats"
648 within a separate, horizontally centered paragraph:
649 \begin_inset Separator parbreak
655 \begin_layout Standard
657 \begin_inset Graphics
658 filename clipart/mobius.eps
668 \begin_layout Standard
669 This is the same image like the one above but in draft mode:
670 \begin_inset Separator parbreak
676 \begin_layout Standard
678 \begin_inset Graphics
679 filename clipart/mobius.eps
690 \begin_layout Standard
691 \begin_inset Newpage newpage
697 \begin_layout Section
699 \begin_inset CommandInset label
701 name "sec:Figure-Floats"
706 \begin_inset Index idx
709 \begin_layout Plain Layout
716 \begin_inset Index idx
719 \begin_layout Plain Layout
728 \begin_layout Standard
729 For general explanations about floats, have a look at section
734 \begin_inset CommandInset ref
736 reference "sec:FloatIntroduction"
743 \begin_layout Standard
747 arg "float-insert figure"
752 Insert\SpecialChar menuseparator
753 Float\SpecialChar menuseparator
756 inserts a float with a caption that has the label
757 \begin_inset Quotes eld
765 \begin_inset Quotes erd
768 (# is the actual number).
769 You can insert the image above the caption, like in Figure
774 \begin_inset CommandInset ref
776 reference "fig:kill-plat"
780 or below the caption, like in Figure
785 \begin_inset CommandInset ref
787 reference "fig:escher"
792 More about caption placement is described in section
797 \begin_inset CommandInset ref
799 reference "sec:Caption-Placement"
806 \begin_layout Standard
807 \begin_inset Float figure
812 \begin_layout Plain Layout
814 \begin_inset Graphics
815 filename clipart/platypus.eps
825 \begin_layout Plain Layout
826 \begin_inset Caption Standard
828 \begin_layout Plain Layout
829 \begin_inset CommandInset label
835 A severely distorted platypus in a float.
848 \begin_layout Standard
849 \begin_inset Float figure
854 \begin_layout Plain Layout
855 \begin_inset Caption Standard
857 \begin_layout Plain Layout
858 \begin_inset CommandInset label
873 \begin_layout Plain Layout
875 \begin_inset Graphics
876 filename clipart/escher-lsd.eps
891 \begin_layout Standard
892 \begin_inset Index idx
895 \begin_layout Plain Layout
896 References ! to Figures
906 \begin_inset CommandInset ref
908 reference "fig:kill-plat"
913 \begin_inset CommandInset ref
915 reference "fig:escher"
919 are examples of referenced figures.
920 Figures can be referenced in the text by referencing their label.
921 To do this insert a label in the caption using the menu
923 Insert\SpecialChar menuseparator
926 or the toolbar button
933 You can now refer to the label using the menu
935 Insert\SpecialChar menuseparator
942 or the toolbar button
945 arg "dialog-show-new-inset ref"
949 It is important to use references to floats, rather than using vague references
951 \begin_inset Quotes eld
955 \begin_inset Quotes erd
958 , because \SpecialChar LaTeX
959 will reposition the floats in the final document and it might
961 \begin_inset Quotes eld
965 \begin_inset Quotes erd
969 \begin_inset Newline newline
972 Referencing is explained in detail in section
977 \begin_inset CommandInset ref
979 reference "sec:Referencing-Floats"
986 \begin_layout Standard
987 Normally only one image is inserted to a figure float, but sometimes you
988 might want to use two images with separate subcaptions.
989 This can be done by inserting image floats into existing image floats.
990 Note that only the main caption of the float is added to the List of Figures.
996 \begin_inset CommandInset ref
998 reference "fig:Two-distorted-images"
1002 is an example of a figure float with two images set side by side.
1003 You can also set the images one below the other.
1005 \begin_inset space ~
1009 \begin_inset CommandInset ref
1011 reference "fig:Undefinable-structure"
1016 \begin_inset CommandInset ref
1018 reference "fig:A-Platypus"
1025 \begin_layout Standard
1026 \begin_inset Float figure
1031 \begin_layout Plain Layout
1032 \begin_inset space \hfill{}
1036 \begin_inset Float figure
1041 \begin_layout Plain Layout
1042 \begin_inset Caption Standard
1044 \begin_layout Plain Layout
1045 \begin_inset CommandInset label
1047 name "fig:Undefinable-structure"
1051 Undefinable structure.
1059 \begin_layout Plain Layout
1060 \begin_inset Graphics
1061 filename clipart/escher-lsd.eps
1074 \begin_inset space \hfill{}
1078 \begin_inset Float figure
1083 \begin_layout Plain Layout
1084 \begin_inset Caption Standard
1086 \begin_layout Plain Layout
1087 \begin_inset CommandInset label
1089 name "fig:A-Platypus"
1101 \begin_layout Plain Layout
1102 \begin_inset Graphics
1103 filename clipart/platypus.eps
1116 \begin_inset space \hfill{}
1122 \begin_layout Plain Layout
1123 \begin_inset Caption Standard
1125 \begin_layout Plain Layout
1126 \begin_inset CommandInset label
1128 name "fig:Two-distorted-images"
1132 Two distorted images.
1133 Both images are in the image settings group named
1134 \begin_inset Quotes eld
1138 \begin_inset Quotes erd
1154 \begin_layout Standard
1155 \begin_inset Newpage newpage
1161 \begin_layout Section
1163 \begin_inset CommandInset label
1165 name "sec:Image-Formats"
1170 \begin_inset Index idx
1173 \begin_layout Plain Layout
1180 \begin_inset Index idx
1183 \begin_layout Plain Layout
1184 Figures ! Image Formats
1192 \begin_layout Standard
1193 You can insert images in any known file format.
1194 But as explained in appendix
1195 \begin_inset space ~
1199 \begin_inset CommandInset ref
1201 reference "cha:Output-File-Formats"
1205 , each output document format allows only a few image formats.
1207 uses therefore the program
1211 in the background to convert the images to the right format.
1212 To increase your work flow by avoiding these conversions in the background,
1213 you could choose to use only the image formats that can directly be embedded
1214 in the output file format.
1215 The output file formats are explained in appendix
1216 \begin_inset space ~
1220 \begin_inset CommandInset ref
1222 reference "cha:Output-File-Formats"
1229 \begin_layout Standard
1230 Similar to fonts there are two types of image formats:
1233 \begin_layout Description
1235 \begin_inset space ~
1238 images consist of pixel values, often in a compressed form.
1239 They are therefore not fully scalable and look pixelated in large zooms.
1240 Well-known bitmap image formats are
1241 \begin_inset Quotes eld
1244 Graphics Interchange Format
1245 \begin_inset Quotes erd
1248 (GIF, file extension
1249 \begin_inset Quotes eld
1257 \begin_inset Quotes erd
1261 \begin_inset Index idx
1264 \begin_layout Plain Layout
1269 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1293 \begin_inset Quotes eld
1296 Portable Network Graphics
1297 \begin_inset Quotes erd
1300 (PNG, file extension
1301 \begin_inset Quotes eld
1309 \begin_inset Quotes erd
1313 \begin_inset Index idx
1316 \begin_layout Plain Layout
1321 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1345 \begin_inset Quotes eld
1348 Joint Photographic Experts Group
1349 \begin_inset Quotes erd
1352 (JPG, file extension
1353 \begin_inset Quotes eld
1361 \begin_inset Quotes erd
1365 \begin_inset Quotes eld
1373 \begin_inset Quotes erd
1377 \begin_inset Index idx
1380 \begin_layout Plain Layout
1385 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1411 \begin_layout Description
1413 \begin_inset space ~
1416 images consist of vectors and can therefore be scaled to any size without
1418 The scaling ability is necessary if you want to create presentations, because
1419 presentations are always scaled by the video projector.
1420 Scaling is also useful for online documents to let the user zoom into diagrams.
1421 \begin_inset Newline newline
1424 Well-known scalable image formats are
1425 \begin_inset Quotes eld
1428 Scalable Vector Graphics
1429 \begin_inset Quotes erd
1432 (SVG, file extension
1433 \begin_inset Quotes eld
1441 \begin_inset Quotes erd
1445 \begin_inset Index idx
1448 \begin_layout Plain Layout
1453 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1477 \begin_inset Quotes eld
1480 Encapsulated PostScript
1481 \begin_inset Quotes erd
1484 (EPS, file extension
1485 \begin_inset Quotes eld
1493 \begin_inset Quotes erd
1497 \begin_inset Index idx
1500 \begin_layout Plain Layout
1505 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1529 \begin_inset Quotes eld
1532 Portable Document Format
1533 \begin_inset Quotes erd
1536 (PDF, file extension
1537 \begin_inset Quotes eld
1545 \begin_inset Quotes erd
1549 \begin_inset Index idx
1552 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1566 (WMF, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1619 , because you can convert any bitmap image to a PDF or EPS-image and the
1620 result will still be a bitmap image.
1621 In such cases only a header with the image properties is added to the original
1626 \begin_layout Plain Layout
1627 In the case of PDF, the original image is additionally compressed.
1633 The PDF-files generated by
1637 are for example bitmap images.
1640 \begin_layout Standard
1641 Normally it is not possible to convert a bitmap image into a scalable one,
1643 Only the image formats PDF and EPS can directly be embedded to PDF and
1644 PostScript output files, respectively.
1645 SVG and WMF-images are recalculated to bitmaps when the output file is
1646 generated because there is currently no adequate WMF/SVG
1647 \begin_inset Formula $\to$
1650 PDF/EPS converter available.
1653 \begin_layout Chapter
1655 \begin_inset Index idx
1658 \begin_layout Plain Layout
1667 \begin_layout Section
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1673 Table ! Introduction
1681 \begin_layout Standard
1682 You can insert a table using either the toolbar button
1685 arg "tabular-insert"
1690 Insert\SpecialChar menuseparator
1694 The toolbar button offers you a graphical selection: move the mouse to
1695 set the column/row number of the table that should be created and then
1696 press a mouse button.
1697 When you use the menu to create a table, a dialog will appear, asking you
1698 for the number of rows and columns.
1699 \begin_inset Newline newline
1702 The default table has lines around any cell and the first row appears separated
1703 from the rest of the table.
1704 This separation occurs due to a double line: The cells of the first row
1705 have a line below them and the cells of the second row have a line above
1707 Here is an example table:
1708 \begin_inset Separator parbreak
1714 \begin_layout Standard
1716 \begin_inset Tabular
1717 <lyxtabular version="3" rows="4" columns="4">
1718 <features tabularvalignment="middle">
1719 <column alignment="center" valignment="top">
1720 <column alignment="center" valignment="top">
1721 <column alignment="center" valignment="top">
1722 <column alignment="center" valignment="top">
1724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1727 \begin_layout Plain Layout
1733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1736 \begin_layout Plain Layout
1751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1754 \begin_layout Plain Layout
1760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1763 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1774 \begin_layout Plain Layout
1789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1792 \begin_layout Plain Layout
1798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1801 \begin_layout Plain Layout
1807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1810 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1839 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1848 \begin_layout Plain Layout
1854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1857 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1886 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1895 \begin_layout Plain Layout
1901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1904 \begin_layout Plain Layout
1918 \begin_layout Section
1920 \begin_inset Index idx
1923 \begin_layout Plain Layout
1932 \begin_layout Standard
1933 You can alter a table by clicking on it with the right mouse button, which
1934 brings up the context menu.
1935 Under the menu entry
1939 you can adjust the settings of that cell and row/column respectively where
1940 the cursor is currently placed.
1943 More\SpecialChar menuseparator
1946 opens the table dialog where you can adjust more things.
1947 Most of the dialog options also work on selections.
1948 This means if you select more cells, columns or rows, the action is done
1949 for the whole selection.
1950 Note that there is a difference between selecting the
1954 of the cell, and the cell itself.
1955 \begin_inset Newline newline
1958 With the dialog option
1961 \begin_inset space ~
1966 every change you make in the dialog is directly applied.
1967 If you move the cursor to another table cell the dialog will then also
1968 be updated with the parameters of the new cell.
1969 If you change length values in the dialog you must press
1973 to get the change applied.
1974 \begin_inset Newline newline
1977 You can alter tables with the following tabs of the table dialog:
1980 \begin_layout Description
1984 \begin_inset space ~
1989 Here you can set the table width
1990 \begin_inset Index idx
1993 \begin_layout Plain Layout
1999 , and the horizontal alignment and the width of the current column.
2003 \begin_inset space ~
2007 \begin_inset space ~
2012 is described in section
2013 \begin_inset space ~
2017 \begin_inset CommandInset ref
2019 reference "subsec:Special-Cell-Alignment"
2024 When you have set a width you can also adjust the vertical alignment of
2026 A given width will allow the cell to have line breaks and multiple paragraphs
2028 \begin_inset space \thinspace{}
2032 \begin_inset CommandInset ref
2034 reference "subsec:Multiple-Lines-in"
2039 If you set no width, the column is as wide as the content of its widest
2041 \begin_inset Newline newline
2044 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2046 \begin_inset space \thinspace{}
2050 \begin_inset CommandInset ref
2052 reference "subsec:Multicolumns"
2056 or the cells of one column as multirow cell, see sec.
2057 \begin_inset space \thinspace{}
2061 \begin_inset CommandInset ref
2063 reference "subsec:Multirows"
2068 \begin_inset Newline newline
2071 The rotate check boxes rotate the current cell, a selection, or the whole
2072 table counter-clockwise by 90
2073 \begin_inset space \thinspace{}
2077 The rotation is not shown within \SpecialChar LyX
2078 , only in the output.
2079 For more information see sec.
2080 \begin_inset space \thinspace{}
2084 \begin_inset CommandInset ref
2086 reference "sec:Rotated-Table-Cells"
2091 \begin_inset Newline newline
2095 \begin_inset Note Greyedout
2098 \begin_layout Plain Layout
2103 Not all DVI-viewers are able to display rotations.
2109 \begin_inset Newline newline
2112 The table-wide vertical alignment is used for tables within text lines:
2113 \begin_inset Newline newline
2116 A line with tables with different alignments:
2117 \begin_inset Tabular
2118 <lyxtabular version="3" rows="2" columns="2">
2119 <features tabularvalignment="top">
2120 <column alignment="center" valignment="top" width="0pt">
2121 <column alignment="center" valignment="top">
2123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2126 \begin_layout Plain Layout
2132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2135 \begin_layout Plain Layout
2152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2155 \begin_layout Plain Layout
2170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2173 \begin_layout Plain Layout
2185 \begin_inset Tabular
2186 <lyxtabular version="3" rows="2" columns="2">
2187 <features tabularvalignment="middle">
2188 <column alignment="center" valignment="top">
2189 <column alignment="center" valignment="top">
2191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2194 \begin_layout Plain Layout
2200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2203 \begin_layout Plain Layout
2220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2223 \begin_layout Plain Layout
2238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2241 \begin_layout Plain Layout
2253 \begin_inset Tabular
2254 <lyxtabular version="3" rows="2" columns="2">
2255 <features tabularvalignment="bottom">
2256 <column alignment="center" valignment="top" width="0pt">
2257 <column alignment="center" valignment="top">
2259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2262 \begin_layout Plain Layout
2268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2271 \begin_layout Plain Layout
2288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2291 \begin_layout Plain Layout
2306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2309 \begin_layout Plain Layout
2321 \begin_inset Newline newline
2324 It is also possible to enter a \SpecialChar LaTeX
2325 -argument which is needed for special table
2326 formattings, see sec.
2327 \begin_inset space \thinspace{}
2331 \begin_inset CommandInset ref
2333 reference "subsec:Multicolumn-Calculations"
2338 \begin_inset CommandInset ref
2340 reference "sec:Colored-Tables"
2347 \begin_layout Description
2352 In this tab you can add and delete border lines for the current row/column.
2353 \begin_inset Newline newline
2356 Using the style option
2360 will convert the table to a formal table as described in sec.
2361 \begin_inset space \thinspace{}
2365 \begin_inset CommandInset ref
2367 reference "sec:Formal-Tables"
2372 \begin_inset Newline newline
2375 You can also add space here to table rows as described in sec.
2376 \begin_inset space \thinspace{}
2380 \begin_inset CommandInset ref
2382 reference "subsec:Row-Spacing"
2389 \begin_layout Description
2394 This tab is to make a table a so called
2395 \begin_inset Quotes eld
2403 \begin_inset Quotes erd
2406 that can run over several pages.
2408 \begin_inset space ~
2412 \begin_inset CommandInset ref
2414 reference "sec:Longtables"
2419 \begin_inset CommandInset ref
2421 reference "sec:Special-Longtable-Issues"
2425 describe the longtable features in detail.
2428 \begin_layout Section
2430 \begin_inset Index idx
2433 \begin_layout Plain Layout
2442 \begin_layout Standard
2443 The table toolbar is an alternative to the table dialog to be able to alter
2445 It should normally appear at the bottom of \SpecialChar LyX
2446 's main window when the cursor
2448 You can alternatively switch it on to appear always, by right-clicking
2453 \begin_layout Standard
2454 The toolbar has the following icons:
2457 \begin_layout Labeling
2458 \labelwidthstring 00.00.0000
2461 arg "inset-modify tabular append-row"
2464 adds a row below the current cell or selection
2467 \begin_layout Labeling
2468 \labelwidthstring 00.00.0000
2471 arg "inset-modify tabular append-column"
2474 adds a column right beside the current cell or selection
2477 \begin_layout Labeling
2478 \labelwidthstring 00.00.0000
2481 arg "inset-modify tabular delete-row"
2484 deletes the current row or selection
2487 \begin_layout Labeling
2488 \labelwidthstring 00.00.0000
2491 arg "inset-modify tabular delete-column"
2494 deletes the current column or selection
2497 \begin_layout Labeling
2498 \labelwidthstring 00.00.0000
2501 arg "inset-modify tabular move-row-up"
2507 \begin_layout Labeling
2508 \labelwidthstring 00.00.0000
2511 arg "inset-modify tabular move-column-left"
2514 moves the column to the left
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2521 arg "inset-modify tabular move-row-down"
2527 \begin_layout Labeling
2528 \labelwidthstring 00.00.0000
2531 arg "inset-modify tabular move-column-right"
2534 moves the column to the right
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2541 arg "inset-modify tabular toggle-line-top"
2544 adds a line at the top of the current cell / row or of a selection
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2551 arg "inset-modify tabular toggle-line-bottom"
2554 adds a line at the bottom of the current cell / row or of a selection
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2561 arg "inset-modify tabular toggle-line-left"
2564 adds a line at the left side of the current cell / row or of a selection
2567 \begin_layout Labeling
2568 \labelwidthstring 00.00.0000
2571 arg "inset-modify tabular toggle-line-right"
2574 adds a line at the right side of the current cell / row or of a selection
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2581 arg "inset-modify tabular set-all-lines"
2584 adds lines around the current or selected cells - if the current cell no
2585 multicolumn cell this also affects the current row and column
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2592 arg "inset-modify tabular unset-all-lines"
2595 deletes all lines of the current or selected cells - if the current cell
2596 no multicolumn cell this also affects the current row and column
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2603 arg "inset-modify tabular m-align-left"
2606 left-aligns the content of the current cell / column
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2613 arg "inset-modify tabular m-align-center"
2616 centers the content of the current cell / column horizontally
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2623 arg "inset-modify tabular m-align-right"
2626 right-aligns the content of the current cell / column
2629 \begin_layout Labeling
2630 \labelwidthstring 00.00.0000
2633 arg "inset-modify tabular align-decimal"
2636 aligns the content of the current column at a character
2639 \begin_layout Labeling
2640 \labelwidthstring 00.00.0000
2643 arg "inset-modify tabular m-valign-top"
2646 aligns the content of the current cell vertically to the top
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2653 arg "inset-modify tabular m-valign-middle"
2656 centers the content of the current cell vertically
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2663 arg "inset-modify tabular m-valign-bottom"
2666 aligns the content of the current cell vertically to the bottom
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2673 arg "inset-modify tabular set-rotate-cell"
2676 rotates the current cell or selection counter-clockwise by 90°
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2683 arg "inset-modify tabular set-rotate-tabular"
2686 rotates the whole table counter-clockwise by 90°
2689 \begin_layout Labeling
2690 \labelwidthstring 00.00.0000
2693 arg "inset-modify tabular multicolumn"
2696 sets the current cell or selection as a multicolumn
2699 \begin_layout Labeling
2700 \labelwidthstring 00.00.0000
2703 arg "inset-modify tabular multirow"
2706 sets the current cell or selection as a multirow
2709 \begin_layout Standard
2710 \begin_inset Note Greyedout
2713 \begin_layout Plain Layout
2718 For the output the vertical alignment of the first cell in a row is used
2719 for all following cells in the row.
2727 \begin_layout Section
2729 \begin_inset Index idx
2732 \begin_layout Plain Layout
2741 \begin_layout Standard
2742 In addition to the table dialog and toolbar, the menu
2744 Edit\SpecialChar menuseparator
2747 allows you to add and delete border lines for the current row/column and
2748 to set the current selection as multicolumn.
2749 The menu is only available when the cursor is inside a table.
2752 \begin_layout Section
2754 \begin_inset CommandInset label
2756 name "sec:Table-Floats"
2761 \begin_inset Index idx
2764 \begin_layout Plain Layout
2771 \begin_inset Index idx
2774 \begin_layout Plain Layout
2783 \begin_layout Standard
2784 For general explanations about floats, have a look at section
2785 \begin_inset space ~
2789 \begin_inset CommandInset ref
2791 reference "sec:FloatIntroduction"
2798 \begin_layout Standard
2799 \begin_inset Float table
2805 \begin_layout Plain Layout
2806 \begin_inset Caption Standard
2808 \begin_layout Plain Layout
2809 \begin_inset CommandInset label
2811 name "tab:a table float"
2823 \begin_layout Plain Layout
2825 \begin_inset Tabular
2826 <lyxtabular version="3" rows="3" columns="3">
2827 <features tabularvalignment="middle">
2828 <column alignment="center" valignment="top" width="0pt">
2829 <column alignment="center" valignment="top" width="0pt">
2830 <column alignment="center" valignment="top" width="0pt">
2832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2835 \begin_layout Plain Layout
2850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2853 \begin_layout Plain Layout
2868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2871 \begin_layout Plain Layout
2888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2891 \begin_layout Plain Layout
2906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2909 \begin_layout Plain Layout
2924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2927 \begin_layout Plain Layout
2944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2947 \begin_layout Plain Layout
2957 \begin_inset Formula $\int x^{2}dx$
2965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2968 \begin_layout Plain Layout
2978 \begin_inset Formula $\left[\begin{array}{cc}
2989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2992 \begin_layout Plain Layout
3002 \begin_inset Formula $1+1=2$
3023 \begin_layout Standard
3024 Table floats can be inserted using the menu
3026 Insert\SpecialChar menuseparator
3027 Float\SpecialChar menuseparator
3030 or the toolbar button
3033 arg "float-insert table"
3039 \begin_layout Standard
3040 The float appears as a collapsible box with a caption that has the label
3042 \begin_inset Quotes eld
3046 \begin_inset space ~
3050 \begin_inset Quotes erd
3053 (# is the actual table number).
3054 You can insert tables in the float above or below the caption.
3057 \begin_layout Standard
3059 \begin_inset space ~
3063 \begin_inset CommandInset ref
3065 reference "tab:a table float"
3069 is an example table within a table float.
3072 \begin_layout Standard
3073 Having the caption above the table is the common rule that is unfortunately
3074 not supported in \SpecialChar LaTeX
3075 's standard classes.
3076 This means that, if you are using the document classes
3092 , there will be no space between the caption and the table.
3093 To insert the needed space, add the following option to the load command
3094 of the \SpecialChar LaTeX
3100 \begin_inset Index idx
3103 \begin_layout Plain Layout
3110 in your document preamble
3114 \begin_layout Plain Layout
3115 For more information have a look at section
3116 \begin_inset space ~
3120 \begin_inset CommandInset ref
3122 reference "sec:Caption-Placement"
3134 \begin_layout Standard
3140 \begin_layout Standard
3145 , which is described in section
3146 \begin_inset space ~
3150 \begin_inset CommandInset ref
3152 reference "sec:Caption-Formatting"
3156 , is used to adjust the caption format.
3159 \begin_layout Standard
3160 \begin_inset Index idx
3163 \begin_layout Plain Layout
3164 References ! to Tables
3169 Tables can be cross-referenced in the text by referencing their label.
3170 To do this insert a label in the caption using the menu
3172 Insert\SpecialChar menuseparator
3175 or the toolbar button
3182 You can now refer to the label using the menu
3184 Insert\SpecialChar menuseparator
3186 \begin_inset space ~
3191 or the toolbar button
3194 arg "dialog-show-new-inset ref"
3198 \begin_inset Newline newline
3201 Referencing is explained in detail in section
3202 \begin_inset space ~
3206 \begin_inset CommandInset ref
3208 reference "sec:Referencing-Floats"
3215 \begin_layout Section
3217 \begin_inset CommandInset label
3219 name "sec:Longtables"
3224 \begin_inset Index idx
3227 \begin_layout Plain Layout
3234 \begin_inset Index idx
3237 \begin_layout Plain Layout
3246 \begin_layout Standard
3247 If the table is too long to fit on one page, you can use the option
3250 \begin_inset space ~
3254 \begin_inset space ~
3263 of the table dialog to split the table automatically over more pages.
3264 Doing this enables the following options:
3267 \begin_layout Description
3268 Header: The current row is defined to be a header row that appears on all
3269 pages of the longtable; except for the first page, if
3272 \begin_inset space ~
3278 This is therefore called the main header.
3281 \begin_layout Description
3283 \begin_inset space ~
3286 header: The current row is defined to be a header row that appears on the
3287 first page of the longtable.
3290 \begin_layout Description
3291 Footer: The current row is defined to be a footer row that appears on all
3292 pages of the longtable; except for the last page, if
3295 \begin_inset space ~
3303 \begin_layout Description
3305 \begin_inset space ~
3308 footer: The current row is defined to be a footer row that appears on the
3309 last page of the longtable.
3312 \begin_layout Description
3313 Caption: The current row contains the table caption.
3314 The row is reset as single column and a caption is inserted.
3315 More about longtable captions is explained in sec.
3316 \begin_inset space \thinspace{}
3320 \begin_inset CommandInset ref
3322 reference "subsec:Longtable-Captions"
3329 \begin_layout Standard
3330 You can also specify a row where the table is split.
3331 See the following longtable to see how it works:
3332 \begin_inset Separator parbreak
3338 \begin_layout Standard
3340 \begin_inset Tabular
3341 <lyxtabular version="3" rows="69" columns="3">
3342 <features islongtable="true" longtabularalignment="center">
3343 <column alignment="left" valignment="top" width="0cm">
3344 <column alignment="left" valignment="top" width="0pt">
3345 <column alignment="center" valignment="top" width="0pt">
3346 <row endfirsthead="true">
3347 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3350 \begin_layout Plain Layout
3353 Example Phone List (ignore the names)
3358 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3361 \begin_layout Plain Layout
3367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3370 \begin_layout Plain Layout
3377 <row endfirsthead="true">
3378 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3381 \begin_layout Plain Layout
3389 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3392 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3401 \begin_layout Plain Layout
3410 <row endhead="true">
3411 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3414 \begin_layout Plain Layout
3422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3425 \begin_layout Plain Layout
3431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3434 \begin_layout Plain Layout
3441 <row endhead="true">
3442 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3445 \begin_layout Plain Layout
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3474 <row endfoot="true">
3475 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3478 \begin_layout Plain Layout
3479 continued on next page
3484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3507 \begin_layout Plain Layout
3515 <cell alignment="center" valignment="top" usebox="none">
3518 \begin_layout Plain Layout
3524 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3538 \begin_layout Plain Layout
3546 <cell alignment="center" valignment="top" usebox="none">
3549 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3569 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3600 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" usebox="none">
3611 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3631 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" usebox="none">
3642 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3662 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" usebox="none">
3673 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3693 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" usebox="none">
3704 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3724 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" usebox="none">
3735 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3755 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" usebox="none">
3766 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3786 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" usebox="none">
3797 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3817 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" usebox="none">
3828 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3848 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" usebox="none">
3859 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3879 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" usebox="none">
3890 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3910 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" usebox="none">
3921 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3941 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" usebox="none">
3952 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3972 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" usebox="none">
3983 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4003 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" usebox="none">
4014 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4034 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" usebox="none">
4045 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4065 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" usebox="none">
4076 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4096 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" usebox="none">
4107 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4127 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" usebox="none">
4138 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4158 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" usebox="none">
4169 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4186 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4189 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4220 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" usebox="none">
4231 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4240 \begin_layout Plain Layout
4248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4251 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" usebox="none">
4262 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4271 \begin_layout Plain Layout
4279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4282 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" usebox="none">
4293 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4302 \begin_layout Plain Layout
4310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4313 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" usebox="none">
4324 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4333 \begin_layout Plain Layout
4341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4344 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" usebox="none">
4355 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4364 \begin_layout Plain Layout
4372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4375 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" usebox="none">
4386 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4395 \begin_layout Plain Layout
4403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4406 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" usebox="none">
4417 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4426 \begin_layout Plain Layout
4434 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4437 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4448 \begin_layout Plain Layout
4454 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4457 \begin_layout Plain Layout
4465 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4468 \begin_layout Plain Layout
4474 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" usebox="none">
4508 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" usebox="none">
4539 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4590 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" usebox="none">
4601 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4621 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" usebox="none">
4632 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4652 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" usebox="none">
4663 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4683 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" usebox="none">
4694 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4714 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" usebox="none">
4725 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4745 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" usebox="none">
4756 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4776 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" usebox="none">
4787 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4807 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" usebox="none">
4818 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4838 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" usebox="none">
4849 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4869 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" usebox="none">
4880 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4900 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" usebox="none">
4911 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4931 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" usebox="none">
4942 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4962 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" usebox="none">
4973 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4993 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" usebox="none">
5004 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5024 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" usebox="none">
5035 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5055 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" usebox="none">
5066 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5086 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" usebox="none">
5097 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5117 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" usebox="none">
5128 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5148 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" usebox="none">
5159 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5168 \begin_layout Plain Layout
5176 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5179 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5207 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5210 \begin_layout Plain Layout
5218 <cell alignment="center" valignment="top" usebox="none">
5221 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5230 \begin_layout Plain Layout
5238 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5241 \begin_layout Plain Layout
5249 <cell alignment="center" valignment="top" usebox="none">
5252 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5261 \begin_layout Plain Layout
5269 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5272 \begin_layout Plain Layout
5280 <cell alignment="center" valignment="top" usebox="none">
5283 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5292 \begin_layout Plain Layout
5300 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5303 \begin_layout Plain Layout
5311 <cell alignment="center" valignment="top" usebox="none">
5314 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5323 \begin_layout Plain Layout
5331 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5334 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" usebox="none">
5345 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5354 \begin_layout Plain Layout
5362 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5365 \begin_layout Plain Layout
5373 <cell alignment="center" valignment="top" usebox="none">
5376 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5385 \begin_layout Plain Layout
5393 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5396 \begin_layout Plain Layout
5404 <cell alignment="center" valignment="top" usebox="none">
5407 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5416 \begin_layout Plain Layout
5424 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5427 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5438 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5447 \begin_layout Plain Layout
5454 <row endlastfoot="true">
5455 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5458 \begin_layout Plain Layout
5464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5476 \begin_layout Plain Layout
5491 \begin_layout Plain Layout
5495 addtocounter{table}{-1}
5501 \begin_inset Note Note
5504 \begin_layout Plain Layout
5505 See the first greyed-out note in section
5506 \begin_inset space ~
5510 \begin_inset CommandInset ref
5512 reference "subsec:Longtable-Captions"
5516 for an explanation of this command.
5524 \begin_layout Subsection
5525 Footnotes in Longtables
5526 \begin_inset CommandInset label
5528 name "subsec:Footnotes-in-Longtables"
5533 \begin_inset Index idx
5536 \begin_layout Plain Layout
5537 Longtables ! Footnotes
5545 \begin_layout Standard
5546 Footnotes can be inserted to every longtable cell.
5547 They appear at the bottom of the page where the table cell with the footnote
5550 \begin_inset space ~
5554 \begin_inset CommandInset ref
5556 reference "tab:DiffCaptions"
5560 has for example a footnote.
5563 \begin_layout Subsection
5565 \begin_inset Index idx
5568 \begin_layout Plain Layout
5569 Longtables ! Alignment
5577 \begin_layout Standard
5578 The horizontal alignment of longtables can be set in the table settings
5580 For left- and right-alignment the table will be directly at the page border.
5581 To add space between the table and the border one has to set the alignment
5582 to center and change the value of the \SpecialChar LaTeX
5595 by inserting this line as \SpecialChar TeX
5596 Code before the longtable:
5599 \begin_layout Standard
5609 \begin_layout Standard
5610 The value can have any of the units listed in Table
5611 \begin_inset space ~
5615 \begin_inset CommandInset ref
5617 reference "tab:Units"
5628 controls the horizontal distance from the left page border to the longtable,
5635 the distance from the right side.
5636 The default value for both lengths is
5642 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5646 \begin_layout Standard
5647 The following longtable was centered and
5663 \begin_layout Plain Layout
5679 \begin_layout Standard
5680 \begin_inset Tabular
5681 <lyxtabular version="3" rows="5" columns="5">
5682 <features islongtable="true" longtabularalignment="center">
5683 <column alignment="center" valignment="top">
5684 <column alignment="center" valignment="top" width="0pt">
5685 <column alignment="center" valignment="top">
5686 <column alignment="center" valignment="top">
5687 <column alignment="center" valignment="top">
5689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5692 \begin_layout Plain Layout
5698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_layout Plain Layout
5707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5710 \begin_layout Plain Layout
5716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5719 \begin_layout Plain Layout
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5728 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Plain Layout
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5748 \begin_layout Plain Layout
5754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5757 \begin_layout Plain Layout
5763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5766 \begin_layout Plain Layout
5772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5775 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5795 \begin_layout Plain Layout
5801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5804 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5822 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5842 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5869 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5889 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5916 \begin_layout Plain Layout
5931 \begin_layout Plain Layout
5948 \begin_layout Plain Layout
5952 addtocounter{table}{-1}
5958 \begin_inset Note Note
5961 \begin_layout Plain Layout
5962 See the first greyed-out note in section
5963 \begin_inset space ~
5967 \begin_inset CommandInset ref
5969 reference "subsec:Longtable-Captions"
5973 for an explanation of this command.
5981 \begin_layout Subsection
5983 \begin_inset Index idx
5986 \begin_layout Plain Layout
5987 Longtables ! Captions
5993 \begin_inset CommandInset label
5995 name "subsec:Longtable-Captions"
6002 \begin_layout Standard
6003 A longtable cannot be put into a table float because floats can only be
6005 But the caption environment of floats can also be used for longtables when
6006 you use the longtable option
6010 as described in sec.
6011 \begin_inset space \thinspace{}
6015 \begin_inset CommandInset ref
6017 reference "sec:Longtables"
6022 Only one table row should contain a caption, either a header or a footer
6026 \begin_layout Standard
6027 Here is a short longtable to see how it works:
6030 \begin_layout Standard
6031 \begin_inset Tabular
6032 <lyxtabular version="3" rows="6" columns="5">
6033 <features islongtable="true" longtabularalignment="center">
6034 <column alignment="center" valignment="top">
6035 <column alignment="center" valignment="top">
6036 <column alignment="center" valignment="top">
6037 <column alignment="center" valignment="top">
6038 <column alignment="center" valignment="top">
6039 <row endfirsthead="true" caption="true">
6040 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6043 \begin_layout Plain Layout
6044 \begin_inset Caption Standard
6046 \begin_layout Plain Layout
6047 Longtable with caption
6048 \begin_inset Argument 1
6051 \begin_layout Plain Layout
6067 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6070 \begin_layout Plain Layout
6076 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6079 \begin_layout Plain Layout
6085 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6088 \begin_layout Plain Layout
6094 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6097 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6108 \begin_layout Plain Layout
6114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6117 \begin_layout Plain Layout
6123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6126 \begin_layout Plain Layout
6132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6135 \begin_layout Plain Layout
6141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6144 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6155 \begin_layout Plain Layout
6161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6164 \begin_layout Plain Layout
6170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6173 \begin_layout Plain Layout
6179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6182 \begin_layout Plain Layout
6188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6191 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6202 \begin_layout Plain Layout
6208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6211 \begin_layout Plain Layout
6217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6220 \begin_layout Plain Layout
6226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6229 \begin_layout Plain Layout
6235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6238 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6267 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6285 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6314 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6332 \begin_layout Plain Layout
6346 \begin_layout Standard
6347 \begin_inset VSpace medskip
6351 \begin_inset Note Greyedout
6354 \begin_layout Plain Layout
6358 \begin_inset space ~
6363 The table number is increased for every longtable, even if you did not
6364 set a caption for it.
6365 For this reason you could have the case that e.
6366 \begin_inset space \thinspace{}
6370 \begin_inset space \space{}
6374 \begin_inset space ~
6378 \begin_inset space ~
6381 2.1 in the list of tables if there are two longtables without captions.
6382 To avoid this you can add the following command in \SpecialChar TeX
6383 Code after every longtable
6387 \begin_layout Plain Layout
6392 addtocounter{table}{-1}
6395 \begin_layout Plain Layout
6396 This is not needed when none of your longtables has a caption and you add
6397 the following code to the document preamble:
6400 \begin_layout Plain Layout
6410 \begin_inset Newline newline
6421 addtocounter{table}{-1}}
6429 \begin_layout Standard
6430 \begin_inset Note Greyedout
6433 \begin_layout Plain Layout
6437 \begin_inset space ~
6447 \begin_inset Index idx
6450 \begin_layout Plain Layout
6452 -packages ! hyperref
6465 dialog to link cross-references, the link to a longtable caption will always
6466 point to the beginning of the document.
6474 \begin_layout Subsubsection
6475 References to Longtables
6476 \begin_inset Index idx
6479 \begin_layout Plain Layout
6480 Longtables ! References
6488 \begin_layout Standard
6489 \begin_inset Tabular
6490 <lyxtabular version="3" rows="6" columns="5">
6491 <features islongtable="true" longtabularalignment="center">
6492 <column alignment="center" valignment="top">
6493 <column alignment="center" valignment="top">
6494 <column alignment="center" valignment="top">
6495 <column alignment="center" valignment="top">
6496 <column alignment="center" valignment="top">
6497 <row endfirsthead="true" caption="true">
6498 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6501 \begin_layout Plain Layout
6502 \begin_inset Caption Standard
6504 \begin_layout Plain Layout
6505 Referenced longtable
6506 \begin_inset CommandInset label
6508 name "tab:RefExample"
6522 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6525 \begin_layout Plain Layout
6531 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6534 \begin_layout Plain Layout
6540 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6543 \begin_layout Plain Layout
6549 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6552 \begin_layout Plain Layout
6560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6563 \begin_layout Plain Layout
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6572 \begin_layout Plain Layout
6578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6581 \begin_layout Plain Layout
6587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6590 \begin_layout Plain Layout
6596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6599 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6646 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6801 \begin_layout Standard
6802 To reference a longtable, insert a label into the caption.
6805 \begin_layout Standard
6806 This is a reference to Table
6807 \begin_inset space ~
6811 \begin_inset CommandInset ref
6813 reference "tab:RefExample"
6820 \begin_layout Standard
6821 The caption layout can be set together with all other captions of your document
6822 using the \SpecialChar LaTeX
6828 \begin_inset Index idx
6831 \begin_layout Plain Layout
6839 \begin_inset space ~
6843 \begin_inset CommandInset ref
6845 reference "sec:Caption-Formatting"
6852 \begin_layout Subsubsection
6854 \begin_inset Index idx
6857 \begin_layout Plain Layout
6858 Longtables ! Caption Width
6866 \begin_layout Standard
6867 The maximal width of caption lines is defined by the length
6874 Its default value is 4
6875 \begin_inset space \thinspace{}
6879 To change it add the following command to your document preamble or as
6881 Code into your document before the longtable that should be affected
6884 \begin_layout Standard
6894 \begin_layout Standard
6895 where the width could have one of the units listed in appendix
6896 \begin_inset space ~
6900 \begin_inset CommandInset ref
6902 reference "cha:Units-available-in"
6909 \begin_layout Standard
6910 The following tables show the difference:
6913 \begin_layout Standard
6914 \begin_inset Tabular
6915 <lyxtabular version="3" rows="6" columns="5">
6916 <features islongtable="true" longtabularalignment="center">
6917 <column alignment="center" valignment="top">
6918 <column alignment="center" valignment="top">
6919 <column alignment="center" valignment="top">
6920 <column alignment="center" valignment="top">
6921 <column alignment="center" valignment="top">
6922 <row endfirsthead="true" caption="true">
6923 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6926 \begin_layout Plain Layout
6927 \begin_inset Caption Standard
6929 \begin_layout Plain Layout
6930 long full title with default width long full title with default width long
6931 full title with default width
6932 \begin_inset Argument 1
6935 \begin_layout Plain Layout
6936 caption with default width
6951 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6954 \begin_layout Plain Layout
6960 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6963 \begin_layout Plain Layout
6969 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6972 \begin_layout Plain Layout
6978 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6981 \begin_layout Plain Layout
6989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7001 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7028 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7048 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7075 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7095 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7122 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7142 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7169 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7189 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7216 \begin_layout Plain Layout
7230 \begin_layout Standard
7234 \begin_layout Plain Layout
7246 \begin_inset Tabular
7247 <lyxtabular version="3" rows="6" columns="5">
7248 <features islongtable="true" longtabularalignment="center">
7249 <column alignment="center" valignment="top">
7250 <column alignment="center" valignment="top">
7251 <column alignment="center" valignment="top">
7252 <column alignment="center" valignment="top">
7253 <column alignment="center" valignment="top">
7254 <row endfirsthead="true" caption="true">
7255 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7258 \begin_layout Plain Layout
7259 \begin_inset Caption Standard
7261 \begin_layout Plain Layout
7262 long full title with width set to 5
7263 \begin_inset space \thinspace{}
7266 cm long full title with width set to 5
7267 \begin_inset space \thinspace{}
7270 cm long full title with width set to 5
7271 \begin_inset space \thinspace{}
7275 \begin_inset Argument 1
7278 \begin_layout Plain Layout
7280 \begin_inset space \thinspace{}
7284 \begin_inset space \thinspace{}
7288 \begin_inset space \thinspace{}
7306 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7309 \begin_layout Plain Layout
7315 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7318 \begin_layout Plain Layout
7324 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7327 \begin_layout Plain Layout
7333 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7336 \begin_layout Plain Layout
7344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7347 \begin_layout Plain Layout
7353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7356 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7365 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7383 \begin_layout Plain Layout
7391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7394 \begin_layout Plain Layout
7400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7403 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7412 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7430 \begin_layout Plain Layout
7438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7441 \begin_layout Plain Layout
7447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7450 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7459 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7477 \begin_layout Plain Layout
7485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7488 \begin_layout Plain Layout
7494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7506 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7524 \begin_layout Plain Layout
7532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7535 \begin_layout Plain Layout
7541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7544 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7553 \begin_layout Plain Layout
7559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7562 \begin_layout Plain Layout
7568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7571 \begin_layout Plain Layout
7585 \begin_layout Standard
7589 \begin_layout Plain Layout
7603 \begin_layout Standard
7604 \begin_inset Note Greyedout
7607 \begin_layout Plain Layout
7612 When the \SpecialChar LaTeX
7618 \begin_inset Index idx
7621 \begin_layout Plain Layout
7628 is used, as in this document, the full page width is used for the caption
7629 when you use the default value of 4
7630 \begin_inset space \thinspace{}
7640 To get in this case exactly a 4
7641 \begin_inset space \thinspace{}
7644 in wide caption, you can either use a value slightly different from 4.0
7645 \begin_inset space \thinspace{}
7649 \begin_inset space \thinspace{}
7653 \begin_inset space \space{}
7657 \begin_inset space \thinspace{}
7660 in, or the \SpecialChar LaTeX
7665 captionsetup{width=value}
7667 that is provided by the
7679 \begin_layout Subsubsection
7680 Different Captions for Table Pages
7681 \begin_inset Index idx
7684 \begin_layout Plain Layout
7685 Longtables ! Different Captions for Pages
7693 \begin_layout Standard
7694 When the table captions for the following pages should differ from the one
7695 of the first table page, mark a empty row as header which contains a caption.
7696 Then right-click on the caption and select in the context menu
7699 \begin_inset space ~
7706 \begin_inset space ~
7710 \begin_inset CommandInset ref
7712 reference "tab:DiffCaptions"
7716 is an example of a longtable with different heading where the second caption
7717 does not include the table number.
7718 \begin_inset Separator parbreak
7724 \begin_layout Standard
7726 \begin_inset Tabular
7727 <lyxtabular version="3" rows="59" columns="3">
7728 <features islongtable="true" longtabularalignment="center">
7729 <column alignment="left" valignment="top" width="0cm">
7730 <column alignment="left" valignment="top" width="0pt">
7731 <column alignment="center" valignment="top" width="0pt">
7732 <row endfirsthead="true" caption="true">
7733 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7736 \begin_layout Plain Layout
7737 \begin_inset Caption Standard
7739 \begin_layout Plain Layout
7741 \begin_inset CommandInset label
7743 name "tab:DiffCaptions"
7748 \begin_inset Argument 1
7751 \begin_layout Plain Layout
7767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7779 \begin_layout Plain Layout
7786 <row endfirsthead="true">
7787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7793 Example Phone List (ignore the names)
7798 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7801 \begin_layout Plain Layout
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7817 <row endfirsthead="true">
7818 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7832 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7841 \begin_layout Plain Layout
7850 <row endhead="true" caption="true">
7851 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7855 \begin_inset Caption LongTableNoNumber
7857 \begin_layout Plain Layout
7858 Continued Example Phone List
7868 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7877 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7880 \begin_layout Plain Layout
7887 <row endhead="true">
7888 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7902 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7911 \begin_layout Plain Layout
7918 <row endhead="true">
7919 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7933 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7942 \begin_layout Plain Layout
7951 <row endfoot="true">
7952 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7955 \begin_layout Plain Layout
7956 continued on next page
7961 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7964 \begin_layout Plain Layout
7970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8108 \begin_layout Plain Layout
8116 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8139 \begin_layout Plain Layout
8147 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8170 \begin_layout Plain Layout
8178 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8201 \begin_layout Plain Layout
8209 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8232 \begin_layout Plain Layout
8240 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8263 \begin_layout Plain Layout
8271 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8294 \begin_layout Plain Layout
8302 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8325 \begin_layout Plain Layout
8333 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8356 \begin_layout Plain Layout
8364 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8387 \begin_layout Plain Layout
8395 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8407 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8418 \begin_layout Plain Layout
8427 \begin_layout Plain Layout
8438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8647 \begin_layout Plain Layout
8655 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8954 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8963 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9045 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9076 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9107 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9138 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9169 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9200 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9231 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9262 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9265 \begin_layout Plain Layout
9273 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9293 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9296 \begin_layout Plain Layout
9304 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9324 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9327 \begin_layout Plain Layout
9335 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9355 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9358 \begin_layout Plain Layout
9366 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9386 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9389 \begin_layout Plain Layout
9397 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9417 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9420 \begin_layout Plain Layout
9428 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9448 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9451 \begin_layout Plain Layout
9459 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9479 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9482 \begin_layout Plain Layout
9490 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9510 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9513 \begin_layout Plain Layout
9521 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9541 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9544 \begin_layout Plain Layout
9552 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9572 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9575 \begin_layout Plain Layout
9583 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9592 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9595 \begin_layout Plain Layout
9609 \begin_layout Section
9610 Special Longtable Issues
9611 \begin_inset CommandInset label
9613 name "sec:Special-Longtable-Issues"
9620 \begin_layout Subsection
9621 Longtable Calculation
9622 \begin_inset Index idx
9625 \begin_layout Plain Layout
9626 Longtables ! Calculation
9634 \begin_layout Standard
9636 calculates the height of table pages and their page breaks using so called
9638 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9640 The default value was historically set to only 20 table rows.
9641 If you are using longtables with many pages this may slow down the creation
9643 You can safely increase the chunk size to values of 100-1000 by adding
9644 this command line to your document preamble:
9647 \begin_layout Standard
9652 setcounter{LTchunksize}{100}
9655 \begin_layout Subsection
9656 Floats and Longtables
9657 \begin_inset Index idx
9660 \begin_layout Plain Layout
9669 \begin_layout Standard
9670 There might be problems when a float appears on the same page where a longtable
9672 To avoid such a situation, insert a
9673 \begin_inset Quotes eld
9677 \begin_inset Quotes erd
9682 Insert\SpecialChar menuseparator
9683 Formatting\SpecialChar menuseparator
9685 \begin_inset space ~
9690 ) before your longtable.
9693 \begin_layout Subsection
9695 \begin_inset Index idx
9698 \begin_layout Plain Layout
9699 Longtables ! Forced Page Breaks
9707 \begin_layout Standard
9708 By default tables are only broken between rows.
9709 If you have a cell with multiples lines and want to have a page break within
9710 the cell, insert the new line command
9711 \begin_inset Quotes eld
9723 \begin_inset Quotes erd
9727 Code at the point of the cell where it can be broken.
9736 command you have to insert in \SpecialChar TeX
9738 \begin_inset Quotes eld
9746 \begin_inset Quotes erd
9749 characters as the number of the following table columns.
9754 is the character to separate table cells.
9755 Write in \SpecialChar TeX
9760 the content of the corresponding following cell and delete the content
9762 \begin_inset Newline newline
9773 command, insert as many
9777 characters as the number of table columns before the current column.
9779 \begin_inset space ~
9783 \begin_inset CommandInset ref
9785 reference "tab:ForcedPagebreak"
9789 the cell that should be broken is in the second column followed by another
9791 Therefore the following command was inserted in the cell as \SpecialChar TeX
9794 \begin_inset Quotes eld
9802 \begin_inset Quotes erd
9808 \begin_layout Standard
9818 \begin_inset Newline newline
9824 \begin_layout Standard
9826 \begin_inset Quotes eld
9830 \begin_inset Quotes erd
9833 in the third column of the row was deleted.
9840 is only needed when a page break should definitely occur at this position,
9841 otherwise it would be a conditional break.
9842 If your footer row of the longtable has for a certain reason no upper line
9843 but you would have a horizontal line where the cell is broken, use this
9847 \begin_layout Standard
9855 \begin_inset Newline newline
9863 \begin_layout Standard
9864 When the cell to be broken is in the last column, the command
9867 \begin_layout Standard
9877 \begin_layout Standard
9878 must be inserted as \SpecialChar TeX
9879 Code at the beginning of the cell.
9880 This ensures that the part of the cell that will be displayed on the new
9881 page appears with the full width.
9882 \begin_inset Separator parbreak
9888 \begin_layout Standard
9890 \begin_inset Tabular
9891 <lyxtabular version="3" rows="38" columns="3">
9892 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9893 <column alignment="left" valignment="top" width="0cm">
9894 <column alignment="left" valignment="top" width="3cm">
9895 <column alignment="center" valignment="top" width="0pt">
9896 <row endfirsthead="true" caption="true">
9897 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9900 \begin_layout Plain Layout
9901 \begin_inset Caption Standard
9903 \begin_layout Plain Layout
9904 Table with forced page break in table cell
9905 \begin_inset CommandInset label
9907 name "tab:ForcedPagebreak"
9912 \begin_inset Argument 1
9915 \begin_layout Plain Layout
9916 Table with forced page break in table cell
9931 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9950 <row endfirsthead="true">
9951 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9957 Example Phone List (ignore the names)
9962 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9974 \begin_layout Plain Layout
9981 <row endfirsthead="true">
9982 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9985 \begin_layout Plain Layout
9993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9996 \begin_layout Plain Layout
10002 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10005 \begin_layout Plain Layout
10014 <row endhead="true">
10015 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10018 \begin_layout Plain Layout
10022 \begin_layout Plain Layout
10026 caption*{Continued Example Phone List}
10040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10059 <row endhead="true">
10060 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10071 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10074 \begin_layout Plain Layout
10080 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10083 \begin_layout Plain Layout
10090 <row endhead="true">
10091 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10094 \begin_layout Plain Layout
10102 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10105 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10114 \begin_layout Plain Layout
10123 <row endfoot="true">
10124 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10127 \begin_layout Plain Layout
10128 continued on next page
10133 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10136 \begin_layout Plain Layout
10142 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_layout Plain Layout
10153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10156 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10173 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10176 \begin_layout Plain Layout
10184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10207 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10238 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10269 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10300 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10331 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10362 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10393 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10424 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10455 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10486 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10517 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10539 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10548 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10570 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10579 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10601 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10610 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10632 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10641 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10663 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10672 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10694 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10703 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10725 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10734 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10756 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10765 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10787 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10796 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10818 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10827 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10849 \begin_layout Plain Layout
10851 Fürst von Montecompatri, 11.
10852 Fürst von Sulmona und Vivaro, 10.
10853 Fürst von Rossano, 5.
10854 Herzog von Canemorte, 11.
10855 Herzog von Palombara, 5.
10856 Herzog von Castelchiodato,
10860 \begin_layout Plain Layout
10871 \begin_layout Plain Layout
10879 Herzog von Poggionativo, 11.
10880 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10881 Graf von Valinfreda, 11.
10882 Baron von Cropalati, 11.
10883 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10902 \begin_layout Plain Layout
10910 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10913 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10922 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10944 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10953 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10975 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11006 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11015 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11037 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11046 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11068 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11099 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11108 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11130 \begin_layout Plain Layout
11136 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11139 \begin_layout Plain Layout
11153 \begin_layout Section
11154 Multiple Lines, Columns and Rows
11157 \begin_layout Subsection
11158 Multiple Lines in Table Cells
11159 \begin_inset CommandInset label
11161 name "subsec:Multiple-Lines-in"
11166 \begin_inset Index idx
11169 \begin_layout Plain Layout
11170 Multiple Lines in Table Cells
11176 \begin_inset Index idx
11179 \begin_layout Plain Layout
11188 \begin_layout Standard
11190 \begin_inset Float table
11196 \begin_layout Plain Layout
11197 \begin_inset Caption Standard
11199 \begin_layout Plain Layout
11200 \begin_inset CommandInset label
11202 name "tab:Table-with-multiple"
11206 Table with multiple lines in cells
11214 \begin_layout Plain Layout
11216 \begin_inset Tabular
11217 <lyxtabular version="3" rows="3" columns="3">
11218 <features tabularvalignment="middle">
11219 <column alignment="center" valignment="middle" width="2.5cm">
11220 <column alignment="center" valignment="middle">
11221 <column alignment="center" valignment="middle">
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11228 \begin_inset Newline linebreak
11236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11239 \begin_layout Plain Layout
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11248 \begin_layout Plain Layout
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11259 \begin_layout Plain Layout
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11268 \begin_layout Plain Layout
11274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11277 \begin_layout Plain Layout
11285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11288 \begin_layout Plain Layout
11294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11297 \begin_layout Plain Layout
11303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11306 \begin_layout Plain Layout
11325 \begin_layout Standard
11326 Setting a fixed width for a column enables you to enter text as a paragraph
11327 with multiple lines and hyphenation.
11330 \begin_layout Standard
11332 \begin_inset space ~
11336 \begin_inset CommandInset ref
11338 reference "tab:Table-with-multiple"
11342 , create a 3×3 table, mark the first cell and right-click on it.
11343 In the appearing table dialog we set a cell width of 2.5
11344 \begin_inset space \thinspace{}
11347 cm and choose centered for the vertical and horizontal alignment.
11348 The vertical alignment is used for all cells of the row.
11349 As our text is smaller than 2.5
11350 \begin_inset space \thinspace{}
11353 cm, only one line will appear.
11354 To get two lines, a justified line break (shortcut
11357 arg "newline-insert linebreak"
11361 If the text is wider than the set cell width, it will automatically be
11362 broken to several lines.
11365 \begin_layout Standard
11366 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11367 by \SpecialChar LaTeX
11368 if it is the first entry.
11369 Therefore you need to insert something to prevent the word not being the
11371 So add a horizontal space of 0
11372 \begin_inset space \thinspace{}
11375 pt before the word.
11376 As the space is zero, it doesn't change the output.
11378 \begin_inset space ~
11382 \begin_inset CommandInset ref
11384 reference "tab:Table-with-and"
11391 \begin_layout Standard
11392 \begin_inset Float table
11398 \begin_layout Plain Layout
11399 \begin_inset Caption Standard
11401 \begin_layout Plain Layout
11402 \begin_inset CommandInset label
11404 name "tab:Table-with-and"
11408 Table with and without hyphenation
11416 \begin_layout Plain Layout
11417 \begin_inset space \hfill{}
11421 \begin_inset Tabular
11422 <lyxtabular version="3" rows="3" columns="3">
11423 <features tabularvalignment="middle">
11424 <column alignment="center" valignment="middle" width="2.5cm">
11425 <column alignment="center" valignment="middle">
11426 <column alignment="center" valignment="middle">
11428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11431 \begin_layout Plain Layout
11432 verylongtablecellword
11437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11440 \begin_layout Plain Layout
11446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11449 \begin_layout Plain Layout
11457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11460 \begin_layout Plain Layout
11466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11469 \begin_layout Plain Layout
11475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11478 \begin_layout Plain Layout
11486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11489 \begin_layout Plain Layout
11495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11498 \begin_layout Plain Layout
11504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11507 \begin_layout Plain Layout
11519 \begin_inset space \hfill{}
11523 \begin_inset Tabular
11524 <lyxtabular version="3" rows="3" columns="3">
11525 <features tabularvalignment="middle">
11526 <column alignment="center" valignment="middle" width="2.5cm">
11527 <column alignment="center" valignment="middle">
11528 <column alignment="center" valignment="middle">
11530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11533 \begin_layout Plain Layout
11534 \begin_inset space \hspace{}
11538 verylongtablecellword
11543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11546 \begin_layout Plain Layout
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11555 \begin_layout Plain Layout
11563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11566 \begin_layout Plain Layout
11572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11575 \begin_layout Plain Layout
11581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11584 \begin_layout Plain Layout
11592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11595 \begin_layout Plain Layout
11601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11604 \begin_layout Plain Layout
11610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11613 \begin_layout Plain Layout
11625 \begin_inset space \hfill{}
11636 \begin_layout Subsection
11638 \begin_inset CommandInset label
11640 name "subsec:Multicolumns"
11645 \begin_inset Index idx
11648 \begin_layout Plain Layout
11655 \begin_inset Index idx
11658 \begin_layout Plain Layout
11659 Table ! Multicolumns
11667 \begin_layout Subsubsection
11671 \begin_layout Standard
11672 To merge cells over multiple columns, select as many cells within a row
11673 as you want to merge and use either the table-toolbar button
11676 arg "inset-modify tabular multicolumn"
11681 Edit\SpecialChar menuseparator
11682 Table\SpecialChar menuseparator
11685 , or right click on the marked cells and choose
11689 in the context menu.
11692 \begin_layout Standard
11693 Multicolumns have there own cell settings.
11694 That means changing cell borders, cell alignment, and the width only affects
11696 Here is an example table with a multicolumn cell in the first row and one
11697 in the last row without the upper border:
11698 \begin_inset Separator parbreak
11704 \begin_layout Standard
11706 \begin_inset Tabular
11707 <lyxtabular version="3" rows="3" columns="4">
11708 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11709 <column alignment="center" valignment="top" width="0pt">
11710 <column alignment="center" valignment="middle">
11711 <column alignment="center" valignment="top" width="0in">
11712 <column alignment="center" valignment="top" width="0pt">
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11717 \begin_layout Plain Layout
11723 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11726 \begin_layout Plain Layout
11732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11735 \begin_layout Plain Layout
11741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11744 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11755 \begin_layout Plain Layout
11770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11773 \begin_layout Plain Layout
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11791 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11802 \begin_layout Plain Layout
11808 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11829 \begin_layout Plain Layout
11843 \begin_layout Subsubsection
11844 Multicolumn Calculations
11845 \begin_inset CommandInset label
11847 name "subsec:Multicolumn-Calculations"
11852 \begin_inset Index idx
11855 \begin_layout Plain Layout
11856 Multicolumns ! Calculations
11864 \begin_layout Standard
11866 supports multicolumns directly, but we have to take account of the cell
11867 width of the columns spanned by the multicolumn cell.
11870 \begin_layout Standard
11871 \begin_inset Float table
11877 \begin_layout Plain Layout
11878 \begin_inset Caption Standard
11880 \begin_layout Plain Layout
11881 \begin_inset CommandInset label
11883 name "tab:Table-with-centered"
11887 Table with centered multicolumn text above two columns that have exactly
11888 half the width of the multicolumn cell
11889 \begin_inset Argument 1
11892 \begin_layout Plain Layout
11893 Perfect multicolumn table
11906 \begin_layout Plain Layout
11908 \begin_inset Tabular
11909 <lyxtabular version="3" rows="3" columns="3">
11910 <features tabularvalignment="middle">
11911 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11912 <column alignment="center" valignment="middle">
11913 <column alignment="center" valignment="top">
11915 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11918 \begin_layout Plain Layout
11919 multiple lines multicolumn
11924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11927 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11936 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11947 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11965 \begin_layout Plain Layout
11973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11976 \begin_layout Plain Layout
11982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11985 \begin_layout Plain Layout
11991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11994 \begin_layout Plain Layout
12013 \begin_layout Standard
12014 To create for example Table
12015 \begin_inset space ~
12019 \begin_inset CommandInset ref
12021 reference "tab:Table-with-centered"
12025 , mark the first two cells in the first row of a 3×3 table and right-click
12027 Now choose for this cell
12036 \begin_inset space \thinspace{}
12039 cm in the table dialog.
12040 The merged columns should have exactly half the width of the multicolumn
12041 cell, so that you would set a width of 1.25
12042 \begin_inset space \thinspace{}
12045 cm for the first column.
12046 The second column has then automatically a width of 1.25
12047 \begin_inset space \thinspace{}
12050 cm (multicolumn width - width of first column).
12051 This was done for Table
12052 \begin_inset space ~
12056 \begin_inset CommandInset ref
12058 reference "tab:Table-without-half"
12065 \begin_layout Standard
12066 \begin_inset Float table
12071 \begin_layout Plain Layout
12072 \begin_inset Caption Standard
12074 \begin_layout Plain Layout
12075 \begin_inset CommandInset label
12077 name "tab:Table-without-half"
12081 Table where the spanned table columns are not exactly half the width of
12082 the multicolumn cell
12083 \begin_inset Argument 1
12086 \begin_layout Plain Layout
12087 Imperfect multicolumn table
12100 \begin_layout Plain Layout
12102 \begin_inset Tabular
12103 <lyxtabular version="3" rows="3" columns="3">
12104 <features tabularvalignment="middle">
12105 <column alignment="center" valignment="top" width="1.25cm">
12106 <column alignment="center" valignment="top">
12107 <column alignment="center" valignment="top">
12109 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12112 \begin_layout Plain Layout
12113 multiple lines multicolumn
12118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12121 \begin_layout Plain Layout
12127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12130 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12141 \begin_layout Plain Layout
12147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12150 \begin_layout Plain Layout
12156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12159 \begin_layout Plain Layout
12167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12170 \begin_layout Plain Layout
12176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12188 \begin_layout Plain Layout
12207 \begin_layout Standard
12208 You can see that the first column is not half the width of the multicolumn
12209 cell, it is a bit bigger.
12210 The reason is that the specified width of a cell
12211 \begin_inset Formula $W_{g}$
12214 is not its total width
12215 \begin_inset Formula $W_{\mathrm{tot}}$
12218 because a cell is always a bit larger than specified.
12220 \begin_inset space ~
12224 \begin_inset CommandInset ref
12226 reference "cha:Explanation-of-Equation"
12230 explains this in detail.
12233 \begin_layout Standard
12235 \begin_inset Formula $W_{g\,n}$
12238 which the user needs to set when
12242 columns are spanned can be calculated, so that each column has a total
12244 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12248 \begin_inset Formula
12250 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12258 \begin_layout Standard
12259 In our case we have
12260 \begin_inset Formula $n=2$
12264 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12267 cm and the default values for the lengths, so that equation
12268 \begin_inset CommandInset ref
12275 \begin_inset Formula
12277 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12285 \begin_layout Standard
12286 To enable calculations in \SpecialChar LaTeX
12287 , the \SpecialChar LaTeX
12292 must be loaded with the document preamble line
12293 \begin_inset Index idx
12296 \begin_layout Plain Layout
12306 \begin_layout Standard
12314 \begin_layout Standard
12316 does not allow you to calculate lengths in the
12320 field of the table dialog.
12321 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12324 Here is an overview about the arguments:
12327 \begin_layout Itemize
12332 creates cell with a fixed width, its text is vertically top-aligned
12335 \begin_layout Itemize
12340 creates cell with a fixed width, its text is vertically centered
12343 \begin_layout Itemize
12348 creates cell with a fixed width, its text is vertically bottom-aligned
12351 \begin_layout Standard
12352 By entering a \SpecialChar LaTeX
12353 -argument, all cell settings set in the table dialog are overwritt
12357 \begin_layout Standard
12358 \begin_inset Note Greyedout
12361 \begin_layout Plain Layout
12366 Due to a bug, \SpecialChar LyX
12367 shows the overwritten settings anyway.
12375 \begin_layout Standard
12376 As the text should be horizontally centered, the command
12383 You can now enter the following \SpecialChar LaTeX
12384 -argument for the first spanned column:
12387 \begin_layout Standard
12392 centering}m{1.25cm-6.2pt}
12395 \begin_layout Standard
12400 means, that the commands inside the braces are applied before the cell
12404 \begin_layout Standard
12405 Although we have chosen centered alignment for the text of the multicolumn
12406 cell, it is still left aligned.
12407 This is because \SpecialChar LyX
12408 only applies the alignment to single columns.
12409 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12413 \begin_layout Standard
12421 \begin_layout Subsection
12423 \begin_inset CommandInset label
12425 name "subsec:Multirows"
12430 \begin_inset Index idx
12433 \begin_layout Plain Layout
12440 \begin_inset Index idx
12443 \begin_layout Plain Layout
12452 \begin_layout Standard
12453 To merge cells over multiple rows, select as many cells within a column
12454 as you want to merge and use either the table-toolbar button
12457 arg "inset-modify tabular multirow"
12462 Edit\SpecialChar menuseparator
12463 Table\SpecialChar menuseparator
12466 , or right click on the marked cells and choose
12470 in the context menu.
12473 \begin_layout Standard
12474 Here is an example table with a multirow in the first column:
12475 \begin_inset Separator parbreak
12481 \begin_layout Standard
12483 \begin_inset Tabular
12484 <lyxtabular version="3" rows="3" columns="3">
12485 <features tabularvalignment="middle">
12486 <column alignment="center" valignment="top" width="0pt">
12487 <column alignment="center" valignment="top">
12488 <column alignment="center" valignment="top">
12490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12493 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12502 \begin_layout Plain Layout
12508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12511 \begin_layout Plain Layout
12519 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12522 \begin_layout Plain Layout
12528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12531 \begin_layout Plain Layout
12537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12540 \begin_layout Plain Layout
12548 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12551 \begin_layout Plain Layout
12557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12560 \begin_layout Plain Layout
12566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12569 \begin_layout Plain Layout
12583 \begin_layout Standard
12584 The width of multirow cells is set by setting the width and alignment for
12590 shifts the content of the multirow up/down if the offset is positive/negative.
12593 \begin_layout Standard
12594 If the column of a multirow cell has no explicit width, the multirow cell
12595 inherits the alignment of the column.
12596 Otherwise it is by default left-aligned.
12597 To override the default, renew the command
12606 \begin_layout Standard
12618 \begin_layout Standard
12619 in the document preamble.
12620 Then all entries of multirow cells in the document are centered.
12621 If centering is only needed for several tables, you can renew the command
12622 in a \SpecialChar TeX
12623 Code box just before the table instead of the preamble.
12624 If the text should be right-aligned, replace
12637 To return to left-alignment
12646 \begin_layout Standard
12647 This is an example table with a right-aligned multirow cell that has a vertical
12649 \begin_inset space \thinspace{}
12653 \begin_inset space \thinspace{}
12657 \begin_inset Separator parbreak
12663 \begin_layout Standard
12669 \begin_layout Plain Layout
12683 \begin_inset Tabular
12684 <lyxtabular version="3" rows="4" columns="3">
12685 <features tabularvalignment="middle">
12686 <column alignment="center" valignment="top" width="3cm">
12687 <column alignment="center" valignment="top">
12688 <column alignment="center" valignment="top">
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12693 \begin_layout Plain Layout
12699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12702 \begin_layout Plain Layout
12708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12711 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12722 \begin_layout Plain Layout
12728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12731 \begin_layout Plain Layout
12737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12740 \begin_layout Plain Layout
12748 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12751 \begin_layout Plain Layout
12757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12760 \begin_layout Plain Layout
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12769 \begin_layout Plain Layout
12777 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12780 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12798 \begin_layout Plain Layout
12813 \begin_layout Plain Layout
12829 \begin_layout Standard
12830 To start a new line in a multirow you can use a forced line break (shortcut
12834 arg "newline-insert newline"
12837 ) but this will not respect the cell lines as demonstrated in this table:
12838 \begin_inset Separator parbreak
12844 \begin_layout Standard
12847 \begin_inset Tabular
12848 <lyxtabular version="3" rows="3" columns="2">
12849 <features tabularvalignment="middle">
12850 <column alignment="left" valignment="middle" width="2cm">
12851 <column alignment="center" valignment="top">
12853 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12856 \begin_layout Plain Layout
12858 \begin_inset Newline newline
12862 \begin_inset Newline newline
12870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12873 \begin_layout Plain Layout
12881 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12884 \begin_layout Plain Layout
12890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12893 \begin_layout Plain Layout
12901 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12904 \begin_layout Plain Layout
12910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12913 \begin_layout Plain Layout
12927 \begin_layout Standard
12928 Therefore be careful with forced line breaks.
12931 \begin_layout Subsection
12932 Cells with diagonal line(s)
12935 \begin_layout Standard
12936 To tell the reader what is meant by column and row headings in a table,
12937 it is helpful to split the first cell of the table by one or two diagonal
12939 This can be achieved by loading the \SpecialChar LaTeX
12945 \begin_inset Index idx
12948 \begin_layout Plain Layout
12950 -packages ! picinpar
12955 in the document preamble.
12956 The package provides the command
12962 that is inserted as \SpecialChar TeX
12963 Code and that can take 2 or 3
12964 \begin_inset space ~
12970 \begin_layout Standard
12975 diagbox[options]{lower left}{upper right}
12978 \begin_layout Standard
12983 diagbox[options]{lower left}{upper left}{upper right}
12986 \begin_layout Standard
12987 The first scheme divides the cell by a single diagonal line and the arguments
12988 are placed below and above this line.
12989 The second scheme divides the cell by 2
12990 \begin_inset space ~
12996 \begin_layout Standard
13000 \begin_layout Plain Layout
13010 \begin_inset Note Note
13013 \begin_layout Plain Layout
13014 The following section will only be displayed when the \SpecialChar LaTeX
13027 \begin_layout Standard
13028 Here is an example table where
13034 is used in the 2-argument scheme in the first cell:
13035 \begin_inset VSpace medskip
13041 \begin_layout Standard
13043 \begin_inset Tabular
13044 <lyxtabular version="3" rows="4" columns="4">
13045 <features tabularvalignment="middle">
13046 <column alignment="center" valignment="top">
13047 <column alignment="center" valignment="top">
13048 <column alignment="center" valignment="top">
13049 <column alignment="center" valignment="top">
13051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13054 \begin_layout Plain Layout
13058 \begin_layout Plain Layout
13071 \begin_layout Plain Layout
13082 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13115 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13153 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13191 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13202 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13229 \begin_layout Plain Layout
13241 \begin_inset VSpace medskip
13247 \begin_layout Standard
13248 The 3-argument scheme is for example useful for cross-tables of sports leagues
13250 \begin_inset Separator parbreak
13256 \begin_layout Standard
13259 \begin_inset Tabular
13260 <lyxtabular version="3" rows="4" columns="4">
13261 <features tabularvalignment="middle">
13262 <column alignment="center" valignment="top" width="0pt">
13263 <column alignment="center" valignment="top">
13264 <column alignment="center" valignment="top">
13265 <column alignment="center" valignment="top">
13267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13270 \begin_layout Plain Layout
13274 \begin_layout Plain Layout
13287 \begin_layout Plain Layout
13298 \begin_layout Plain Layout
13309 \begin_layout Plain Layout
13321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13324 \begin_layout Plain Layout
13330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13333 \begin_layout Plain Layout
13339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13342 \begin_layout Plain Layout
13350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13353 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13362 \begin_layout Plain Layout
13368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13371 \begin_layout Plain Layout
13377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13380 \begin_layout Plain Layout
13388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13391 \begin_layout Plain Layout
13397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13400 \begin_layout Plain Layout
13406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13409 \begin_layout Plain Layout
13415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13418 \begin_layout Plain Layout
13426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13429 \begin_layout Plain Layout
13435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13438 \begin_layout Plain Layout
13444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13447 \begin_layout Plain Layout
13453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13456 \begin_layout Plain Layout
13470 \begin_layout Standard
13471 For larger cross-tables one might use split cells in 2 or every corner of
13472 the table like in this example:
13473 \begin_inset Separator parbreak
13479 \begin_layout Standard
13482 \begin_inset Tabular
13483 <lyxtabular version="3" rows="5" columns="5">
13484 <features tabularvalignment="middle">
13485 <column alignment="center" valignment="top" width="0pt">
13486 <column alignment="center" valignment="top">
13487 <column alignment="center" valignment="top">
13488 <column alignment="center" valignment="top">
13489 <column alignment="center" valignment="top">
13491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13494 \begin_layout Plain Layout
13498 \begin_layout Plain Layout
13511 \begin_layout Plain Layout
13522 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13548 \begin_layout Plain Layout
13554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13557 \begin_layout Plain Layout
13563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13566 \begin_layout Plain Layout
13572 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13575 \begin_layout Plain Layout
13579 \begin_layout Plain Layout
13592 \begin_layout Plain Layout
13603 \begin_layout Plain Layout
13614 \begin_layout Plain Layout
13628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13631 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13678 \begin_layout Plain Layout
13684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13687 \begin_layout Plain Layout
13693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13696 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13714 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13725 \begin_layout Plain Layout
13731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13734 \begin_layout Plain Layout
13740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13743 \begin_layout Plain Layout
13749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13761 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13772 \begin_layout Plain Layout
13776 \begin_layout Plain Layout
13789 \begin_layout Plain Layout
13800 \begin_layout Plain Layout
13811 \begin_layout Plain Layout
13823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13826 \begin_layout Plain Layout
13832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13835 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13853 \begin_layout Plain Layout
13857 \begin_layout Plain Layout
13870 \begin_layout Plain Layout
13881 \begin_layout Plain Layout
13892 \begin_layout Plain Layout
13912 \begin_layout Standard
13913 To rotate the diagonal lines, the command option
13938 and represent a point of a compass.
13943 is for example the south-west corner.
13944 Thus in the lower left cell of the above table the command
13947 \begin_layout Standard
13952 diagbox[dir=SW]{Team home}{Result}{Team away}
13955 \begin_layout Standard
13957 If no direction is given, it will be NW.
13960 \begin_layout Standard
13961 The necessary width of split cells is automatically calculated.
13962 Thus if you set a fixed column width smaller than the calculated one, the
13963 cell's content will protrude the cell borders:
13964 \begin_inset Separator parbreak
13970 \begin_layout Standard
13973 \begin_inset Tabular
13974 <lyxtabular version="3" rows="2" columns="2">
13975 <features tabularvalignment="middle">
13976 <column alignment="center" valignment="top" width="3cm">
13977 <column alignment="center" valignment="top">
13979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13982 \begin_layout Plain Layout
13986 \begin_layout Plain Layout
13999 \begin_layout Plain Layout
14010 \begin_layout Plain Layout
14022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14025 \begin_layout Plain Layout
14033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14036 \begin_layout Plain Layout
14042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14045 \begin_layout Plain Layout
14059 \begin_layout Standard
14060 If you need a certain width for columns with a split cell, use the command
14065 (replace '3cm' by the width you need).
14066 In the following table the width of the first column is set to 4
14067 \begin_inset space \thinspace{}
14078 \begin_inset space \thinspace{}
14082 \begin_inset space \thinspace{}
14087 tabcolsep is necessary because the overall width is the width for the text
14088 (in this case the 4
14089 \begin_inset space \thinspace{}
14092 cm) plus two times the separation of the text and the cell border.
14093 The calculation of the width cannot be done in the command option of
14099 so one needs to create a new length which can be used later.
14100 This is done with the \SpecialChar TeX
14104 \begin_layout Standard
14112 \begin_inset Newline newline
14124 \begin_layout Standard
14128 \begin_layout Plain Layout
14137 \begin_layout Plain Layout
14153 \begin_layout Standard
14154 To enable calculations in \SpecialChar LaTeX
14155 one needs to load the package
14160 \begin_inset Index idx
14163 \begin_layout Plain Layout
14170 in the document preamble.
14173 \begin_layout Standard
14174 In this table you can now use the command
14177 \begin_layout Standard
14187 \begin_layout Standard
14189 \begin_inset Separator parbreak
14195 \begin_layout Standard
14198 \begin_inset Tabular
14199 <lyxtabular version="3" rows="2" columns="2">
14200 <features tabularvalignment="middle">
14201 <column alignment="center" valignment="top" width="4cm">
14202 <column alignment="center" valignment="top">
14204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14207 \begin_layout Plain Layout
14211 \begin_layout Plain Layout
14226 \begin_layout Plain Layout
14237 \begin_layout Plain Layout
14249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14252 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14286 \begin_layout Standard
14287 Note that the split cell needs to be the widest one in the column.
14288 Otherwise the length of the diagonal line cannot be calculated correctly
14289 like in this table:
14290 \begin_inset Separator parbreak
14296 \begin_layout Standard
14299 \begin_inset Tabular
14300 <lyxtabular version="3" rows="2" columns="2">
14301 <features tabularvalignment="middle">
14302 <column alignment="center" valignment="top" width="0pt">
14303 <column alignment="center" valignment="top">
14305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14308 \begin_layout Plain Layout
14312 \begin_layout Plain Layout
14325 \begin_layout Plain Layout
14336 \begin_layout Plain Layout
14348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Plain Layout
14359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14362 \begin_layout Plain Layout
14368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14371 \begin_layout Plain Layout
14385 \begin_layout Standard
14386 In this case use the
14397 It is then not necessary to add 2
14399 tabcolsep because the cell width is now the width of the column.
14400 In this table a width of 3
14401 \begin_inset space \thinspace{}
14405 \begin_inset Separator parbreak
14411 \begin_layout Standard
14414 \begin_inset Tabular
14415 <lyxtabular version="3" rows="2" columns="2">
14416 <features tabularvalignment="middle">
14417 <column alignment="center" valignment="top" width="0pt">
14418 <column alignment="center" valignment="top">
14420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14423 \begin_layout Plain Layout
14427 \begin_layout Plain Layout
14431 diagbox[width=3cm]{
14440 \begin_layout Plain Layout
14451 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14466 \begin_layout Plain Layout
14474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14477 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14486 \begin_layout Plain Layout
14500 \begin_layout Standard
14501 For multiple text lines in split cells one needs some extra height to fit
14502 the text to the cell.
14503 This can be achieved with the
14513 (replace '3cm' by the height you need).
14514 In the following table the command
14517 \begin_layout Standard
14522 diagbox[width=3cm,height=1.4cm]{A
14533 \begin_layout Standard
14534 is used in the first cell.
14543 creates hereby the line break.
14547 \begin_layout Plain Layout
14548 Breaking lines with
14552 is only possible when the column has a fixed width.
14558 \begin_inset Separator parbreak
14564 \begin_layout Standard
14567 \begin_inset Tabular
14568 <lyxtabular version="3" rows="2" columns="2">
14569 <features tabularvalignment="middle">
14570 <column alignment="center" valignment="top">
14571 <column alignment="center" valignment="top">
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14576 \begin_layout Plain Layout
14580 \begin_layout Plain Layout
14584 diagbox[width=3cm,height=1.4cm]{
14593 \begin_layout Plain Layout
14608 \begin_layout Plain Layout
14619 \begin_layout Plain Layout
14634 \begin_layout Plain Layout
14646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14649 \begin_layout Plain Layout
14657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14660 \begin_layout Plain Layout
14666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14669 \begin_layout Plain Layout
14683 \begin_layout Standard
14687 \begin_layout Plain Layout
14697 \begin_inset Note Note
14700 \begin_layout Plain Layout
14701 The following will be displayed when the \SpecialChar LaTeX
14714 \begin_layout Standard
14715 You need to install the \SpecialChar LaTeX
14720 to see the following part of this section in the output.
14723 \begin_layout Standard
14727 \begin_layout Plain Layout
14739 \begin_layout Standard
14740 For more info about the \SpecialChar LaTeX
14745 , see its documentation,
14746 \begin_inset CommandInset citation
14755 \begin_layout Section
14757 \begin_inset CommandInset label
14759 name "sec:Formal-Tables"
14764 \begin_inset Index idx
14767 \begin_layout Plain Layout
14776 \begin_layout Standard
14777 Tables are often typeset in books similar to Table
14778 \begin_inset space ~
14782 \begin_inset CommandInset ref
14784 reference "tab:Example-booktabs-table"
14789 This kind of tables is called
14790 \begin_inset Quotes eld
14798 \begin_inset Quotes erd
14802 To make a table a formal table use the option
14810 tab of the table dialog.
14813 \begin_layout Standard
14814 \begin_inset Float table
14820 \begin_layout Plain Layout
14821 \begin_inset Caption Standard
14823 \begin_layout Plain Layout
14824 \begin_inset CommandInset label
14826 name "tab:Example-booktabs-table"
14830 Example booktabs-table
14838 \begin_layout Plain Layout
14840 \begin_inset Tabular
14841 <lyxtabular version="3" rows="8" columns="4">
14842 <features booktabs="true" tabularvalignment="middle">
14843 <column alignment="center" valignment="top">
14844 <column alignment="center" valignment="top">
14845 <column alignment="center" valignment="top">
14846 <column alignment="center" valignment="top">
14848 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14851 \begin_layout Plain Layout
14857 <cell alignment="center" valignment="top" topline="true" usebox="none">
14860 \begin_layout Plain Layout
14862 \begin_inset space \thinspace{}
14870 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14873 \begin_layout Plain Layout
14875 \begin_inset space \thinspace{}
14883 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14886 \begin_layout Plain Layout
14894 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14897 \begin_layout Plain Layout
14901 \begin_layout Plain Layout
14914 \begin_layout Plain Layout
14923 Detector thickness in µm
14928 <cell alignment="center" valignment="top" usebox="none">
14931 \begin_layout Plain Layout
14937 <cell alignment="center" valignment="top" usebox="none">
14940 \begin_layout Plain Layout
14946 <cell alignment="center" valignment="top" usebox="none">
14949 \begin_layout Plain Layout
14957 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14960 \begin_layout Plain Layout
14966 <cell alignment="center" valignment="top" topline="true" usebox="none">
14969 \begin_layout Plain Layout
14975 <cell alignment="center" valignment="top" topline="true" usebox="none">
14978 \begin_layout Plain Layout
14984 <cell alignment="center" valignment="top" topline="true" usebox="none">
14987 \begin_layout Plain Layout
14994 <row topspace="default">
14995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14998 \begin_layout Plain Layout
14999 Spatial resolution in µm
15004 <cell alignment="center" valignment="top" usebox="none">
15007 \begin_layout Plain Layout
15013 <cell alignment="center" valignment="top" usebox="none">
15016 \begin_layout Plain Layout
15022 <cell alignment="center" valignment="top" usebox="none">
15025 \begin_layout Plain Layout
15032 <row topspace="default">
15033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15036 \begin_layout Plain Layout
15038 \begin_inset Formula $f_{\mathrm{max}}$
15046 <cell alignment="center" valignment="top" usebox="none">
15049 \begin_layout Plain Layout
15055 <cell alignment="center" valignment="top" usebox="none">
15058 \begin_layout Plain Layout
15064 <cell alignment="center" valignment="top" usebox="none">
15067 \begin_layout Plain Layout
15074 <row topspace="default">
15075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15078 \begin_layout Plain Layout
15082 \begin_layout Plain Layout
15086 cmidrule[2pt](l{10pt}){1-1}
15091 LSF-spatial resolution
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" usebox="none">
15108 \begin_layout Plain Layout
15114 <cell alignment="center" valignment="top" usebox="none">
15117 \begin_layout Plain Layout
15125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15128 \begin_layout Plain Layout
15134 <cell alignment="center" valignment="top" usebox="none">
15137 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15163 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15166 \begin_layout Plain Layout
15172 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15175 \begin_layout Plain Layout
15181 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15184 \begin_layout Plain Layout
15190 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15193 \begin_layout Plain Layout
15212 \begin_layout Standard
15213 Spaces to table rows can be added using the
15217 tab of the table dialog as described in section
15218 \begin_inset space ~
15222 \begin_inset CommandInset ref
15224 reference "subsec:Row-Spacing"
15231 \begin_layout Standard
15232 Unlike normal tables, formal tables have no vertical table lines.
15233 The horizontal table lines can be set as for normal tables but they appear
15234 with different widths in the output:
15235 \begin_inset Newline newline
15238 The first and the last table line have a default width of 0.08
15239 \begin_inset space \thinspace{}
15242 em while the other lines have a default width of 0.05
15243 \begin_inset space \thinspace{}
15249 \begin_layout Standard
15250 The default widths can be changed with the following preamble lines
15253 \begin_layout Standard
15263 \begin_inset Newline newline
15275 \begin_layout Standard
15276 This example is for the first line, the so called
15281 If you want to change the width for the last line, replace
15290 To change the width for the other lines replace
15299 You can use all units listed in appendix
15300 \begin_inset space ~
15304 \begin_inset CommandInset ref
15306 reference "cha:Units-available-in"
15313 \begin_layout Standard
15314 Lines that do not span all table columns can be created by setting a table
15315 line for multicolumn cells.
15317 will then internally use the command
15323 to create this line.
15327 \begin_layout Standard
15332 cmidrule[height](trim){startcol-endcol}
15335 \begin_layout Standard
15342 are currently not supported by \SpecialChar LyX
15343 so you have to use \SpecialChar TeX
15352 s can manually be created by inserting the command as \SpecialChar TeX
15354 cell entry of the first cell of a row.
15355 The line is then drawn in the output above the current row.
15358 \begin_layout Standard
15359 The default for the optional
15364 \begin_inset space \thinspace{}
15372 is the number of the column where the line starts and
15376 the column number where the line ends.
15381 always needs to be specified, also when the line should span only one column.
15382 The optional parameter
15399 Using for example the parameter
15403 means that the line is trimmed from its left end by 2
15404 \begin_inset space \thinspace{}
15408 If you don't specify the
15412 the line is trimmed by the default of 0.5
15413 \begin_inset space \thinspace{}
15419 \begin_layout Standard
15420 \begin_inset VSpace bigskip
15424 \begin_inset space ~
15428 \begin_inset CommandInset ref
15430 reference "tab:Example-booktabs-table"
15434 was created using the commands
15437 \begin_layout Standard
15447 \begin_layout Standard
15448 at the beginning of the second row and
15451 \begin_layout Standard
15456 cmidrule[2pt](l{10pt}){1-1}
15459 \begin_layout Standard
15463 \begin_layout Standard
15464 \begin_inset VSpace bigskip
15470 \begin_layout Standard
15471 You might want to have overlapping
15478 \begin_inset space ~
15482 \begin_inset CommandInset ref
15484 reference "tab:Special-booktabs-table"
15489 This can be achieved with the \SpecialChar TeX
15493 \begin_layout Standard
15501 \begin_layout Standard
15502 The command that was used for the second row of Table
15503 \begin_inset space ~
15507 \begin_inset CommandInset ref
15509 reference "tab:Special-booktabs-table"
15516 \begin_layout Standard
15530 \begin_layout Standard
15531 The command for the sixth row is
15534 \begin_layout Standard
15546 \begin_layout Standard
15547 \begin_inset VSpace bigskip
15553 \begin_layout Standard
15554 If you are in any way not satisfied with the border line spacing, you can
15555 use the following command to produce lines that span over all table columns
15560 \begin_layout Standard
15565 specialrule{width}{space above}{space below}
15568 \begin_layout Standard
15569 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15576 \begin_inset CommandInset citation
15583 \begin_inset Index idx
15586 \begin_layout Plain Layout
15588 -packages ! booktabs
15596 \begin_layout Standard
15597 \begin_inset Float table
15603 \begin_layout Plain Layout
15604 \begin_inset Caption Standard
15606 \begin_layout Plain Layout
15607 \begin_inset CommandInset label
15609 name "tab:Special-booktabs-table"
15613 Special booktabs-table
15621 \begin_layout Plain Layout
15623 \begin_inset Tabular
15624 <lyxtabular version="3" rows="8" columns="4">
15625 <features booktabs="true" tabularvalignment="middle">
15626 <column alignment="center" valignment="top">
15627 <column alignment="center" valignment="top">
15628 <column alignment="center" valignment="top">
15629 <column alignment="center" valignment="top">
15631 <cell alignment="center" valignment="top" topline="true" usebox="none">
15634 \begin_layout Plain Layout
15640 <cell alignment="center" valignment="top" topline="true" usebox="none">
15643 \begin_layout Plain Layout
15645 \begin_inset space \thinspace{}
15653 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15656 \begin_layout Plain Layout
15658 \begin_inset space \thinspace{}
15666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15669 \begin_layout Plain Layout
15677 <cell alignment="center" valignment="top" usebox="none">
15680 \begin_layout Plain Layout
15684 \begin_layout Plain Layout
15697 \begin_layout Plain Layout
15710 \begin_layout Plain Layout
15723 \begin_layout Plain Layout
15732 Detector thickness in µm
15737 <cell alignment="center" valignment="top" usebox="none">
15740 \begin_layout Plain Layout
15746 <cell alignment="center" valignment="top" usebox="none">
15749 \begin_layout Plain Layout
15755 <cell alignment="center" valignment="top" usebox="none">
15758 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" topline="true" usebox="none">
15769 \begin_layout Plain Layout
15775 <cell alignment="center" valignment="top" topline="true" usebox="none">
15778 \begin_layout Plain Layout
15784 <cell alignment="center" valignment="top" topline="true" usebox="none">
15787 \begin_layout Plain Layout
15793 <cell alignment="center" valignment="top" topline="true" usebox="none">
15796 \begin_layout Plain Layout
15803 <row topspace="default">
15804 <cell alignment="center" valignment="top" usebox="none">
15807 \begin_layout Plain Layout
15808 Spatial resolution in µm
15813 <cell alignment="center" valignment="top" usebox="none">
15816 \begin_layout Plain Layout
15822 <cell alignment="center" valignment="top" usebox="none">
15825 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" usebox="none">
15834 \begin_layout Plain Layout
15841 <row topspace="default">
15842 <cell alignment="center" valignment="top" usebox="none">
15845 \begin_layout Plain Layout
15847 \begin_inset Formula $f_{\mathrm{max}}$
15855 <cell alignment="center" valignment="top" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" usebox="none">
15867 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" usebox="none">
15876 \begin_layout Plain Layout
15884 <cell alignment="center" valignment="top" topline="true" usebox="none">
15887 \begin_layout Plain Layout
15891 \begin_layout Plain Layout
15904 \begin_layout Plain Layout
15913 LSF-spatial resolution
15918 <cell alignment="center" valignment="top" topline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" topline="true" usebox="none">
15930 \begin_layout Plain Layout
15936 <cell alignment="center" valignment="top" topline="true" usebox="none">
15939 \begin_layout Plain Layout
15947 <cell alignment="center" valignment="top" usebox="none">
15950 \begin_layout Plain Layout
15956 <cell alignment="center" valignment="top" usebox="none">
15959 \begin_layout Plain Layout
15965 <cell alignment="center" valignment="top" usebox="none">
15968 \begin_layout Plain Layout
15974 <cell alignment="center" valignment="top" usebox="none">
15977 \begin_layout Plain Layout
15985 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15988 \begin_layout Plain Layout
15994 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15997 \begin_layout Plain Layout
16003 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16006 \begin_layout Plain Layout
16012 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16015 \begin_layout Plain Layout
16034 \begin_layout Section
16035 Vertical Table Alignment
16036 \begin_inset Index idx
16039 \begin_layout Plain Layout
16048 \begin_layout Standard
16049 To align tables vertically in a text line, the table must be inside a box.
16050 The box can then be vertically aligned as described in section
16051 \begin_inset space ~
16055 \begin_inset CommandInset ref
16057 reference "sec:Box-Dialog"
16064 \begin_layout Standard
16065 In the following example the tables are inside a minipage
16069 \begin_layout Plain Layout
16070 Minipages are described in section
16071 \begin_inset space ~
16075 \begin_inset CommandInset ref
16077 reference "sec:Minipages"
16086 box that has a width of 15
16087 \begin_inset space \thinspace{}
16093 \begin_layout Itemize
16095 \begin_inset Box Frameless
16105 height_special "totalheight"
16110 backgroundcolor "none"
16113 \begin_layout Plain Layout
16114 \begin_inset Tabular
16115 <lyxtabular version="3" rows="3" columns="3">
16116 <features tabularvalignment="middle">
16117 <column alignment="center" valignment="top">
16118 <column alignment="center" valignment="top">
16119 <column alignment="center" valignment="top">
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16124 \begin_layout Plain Layout
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16133 \begin_layout Plain Layout
16139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16142 \begin_layout Plain Layout
16150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16153 \begin_layout Plain Layout
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16162 \begin_layout Plain Layout
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16171 \begin_layout Plain Layout
16179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16182 \begin_layout Plain Layout
16188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16191 \begin_layout Plain Layout
16197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16200 \begin_layout Plain Layout
16220 \begin_layout Plain Layout
16232 \begin_inset Box Frameless
16242 height_special "totalheight"
16247 backgroundcolor "none"
16250 \begin_layout Plain Layout
16251 \begin_inset Tabular
16252 <lyxtabular version="3" rows="3" columns="3">
16253 <features tabularvalignment="middle">
16254 <column alignment="center" valignment="top">
16255 <column alignment="center" valignment="top">
16256 <column alignment="center" valignment="top">
16258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16261 \begin_layout Plain Layout
16267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16270 \begin_layout Plain Layout
16276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16279 \begin_layout Plain Layout
16287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16290 \begin_layout Plain Layout
16296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16299 \begin_layout Plain Layout
16305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16308 \begin_layout Plain Layout
16316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16319 \begin_layout Plain Layout
16325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16328 \begin_layout Plain Layout
16334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16337 \begin_layout Plain Layout
16357 \begin_layout Plain Layout
16367 \begin_layout Itemize
16369 \begin_inset Box Frameless
16379 height_special "totalheight"
16384 backgroundcolor "none"
16387 \begin_layout Plain Layout
16388 \begin_inset Tabular
16389 <lyxtabular version="3" rows="3" columns="3">
16390 <features tabularvalignment="middle">
16391 <column alignment="center" valignment="top">
16392 <column alignment="center" valignment="top">
16393 <column alignment="center" valignment="top">
16395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16398 \begin_layout Plain Layout
16404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16407 \begin_layout Plain Layout
16413 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16416 \begin_layout Plain Layout
16424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16427 \begin_layout Plain Layout
16433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16436 \begin_layout Plain Layout
16442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16445 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16456 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16465 \begin_layout Plain Layout
16471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16474 \begin_layout Plain Layout
16493 \begin_layout Itemize
16495 \begin_inset Box Frameless
16505 height_special "totalheight"
16510 backgroundcolor "none"
16513 \begin_layout Plain Layout
16514 \begin_inset Tabular
16515 <lyxtabular version="3" rows="3" columns="3">
16516 <features tabularvalignment="middle">
16517 <column alignment="center" valignment="top">
16518 <column alignment="center" valignment="top">
16519 <column alignment="center" valignment="top">
16521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16524 \begin_layout Plain Layout
16530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16533 \begin_layout Plain Layout
16539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16542 \begin_layout Plain Layout
16550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16553 \begin_layout Plain Layout
16559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16562 \begin_layout Plain Layout
16568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16582 \begin_layout Plain Layout
16588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16591 \begin_layout Plain Layout
16597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16600 \begin_layout Plain Layout
16620 \begin_layout Plain Layout
16632 \begin_inset Box Frameless
16642 height_special "totalheight"
16647 backgroundcolor "none"
16650 \begin_layout Plain Layout
16651 \begin_inset Tabular
16652 <lyxtabular version="3" rows="3" columns="3">
16653 <features tabularvalignment="middle">
16654 <column alignment="center" valignment="top">
16655 <column alignment="center" valignment="top">
16656 <column alignment="center" valignment="top">
16658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16661 \begin_layout Plain Layout
16667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16670 \begin_layout Plain Layout
16676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16679 \begin_layout Plain Layout
16687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16690 \begin_layout Plain Layout
16696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16699 \begin_layout Plain Layout
16705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16708 \begin_layout Plain Layout
16716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16719 \begin_layout Plain Layout
16725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16728 \begin_layout Plain Layout
16734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16737 \begin_layout Plain Layout
16757 \begin_layout Plain Layout
16767 \begin_layout Standard
16768 As you will see, the content of the first and last table row is not correctly
16770 To get this alignment, the minipage box must be set into a raisebox.
16774 \begin_layout Plain Layout
16775 Raiseboxes are described in section
16776 \begin_inset space ~
16780 \begin_inset CommandInset ref
16782 reference "subsec:Vertical-Alignment"
16791 In the example above the second table in the first item is aligned using
16792 the \SpecialChar TeX
16796 \begin_layout Standard
16806 \begin_layout Standard
16808 After the box the closing brace
16812 is inserted as \SpecialChar TeX
16814 For the second table in the last item the command
16817 \begin_layout Standard
16827 \begin_layout Standard
16831 \begin_layout Standard
16832 \begin_inset Note Greyedout
16835 \begin_layout Plain Layout
16840 The alignment of the table row content to the surrounding text line is
16842 The required value for the
16848 command for this alignment depends on the document font, the font size,
16849 and the table line thickness.
16857 \begin_layout Section
16859 \begin_inset CommandInset label
16861 name "sec:Colored-Tables"
16866 \begin_inset Index idx
16869 \begin_layout Plain Layout
16878 \begin_layout Subsection
16880 \begin_inset Index idx
16883 \begin_layout Plain Layout
16884 Table Color ! for Cells
16890 \begin_inset Index idx
16893 \begin_layout Plain Layout
16894 Color ! for Table Cells
16902 \begin_layout Standard
16903 \begin_inset Float table
16909 \begin_layout Plain Layout
16910 \begin_inset Caption Standard
16912 \begin_layout Plain Layout
16913 \begin_inset CommandInset label
16915 name "tab:Table-colored-without"
16919 Table colored without using the package
16924 \begin_inset Argument 1
16927 \begin_layout Plain Layout
16928 Table without colortbl
16941 \begin_layout Plain Layout
16943 \begin_inset Tabular
16944 <lyxtabular version="3" rows="3" columns="3">
16945 <features tabularvalignment="middle">
16946 <column alignment="center" valignment="top">
16947 <column alignment="center" valignment="top">
16948 <column alignment="center" valignment="top">
16950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16953 \begin_layout Plain Layout
16961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16964 \begin_layout Plain Layout
16972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16975 \begin_layout Plain Layout
16985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16988 \begin_layout Plain Layout
16996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16999 \begin_layout Plain Layout
17007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17010 \begin_layout Plain Layout
17020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17023 \begin_layout Plain Layout
17031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17034 \begin_layout Plain Layout
17042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17045 \begin_layout Plain Layout
17066 \begin_layout Standard
17067 If you only need colored text, mark the cells and choose a color in the
17071 \begin_inset space ~
17076 dialog (toolbar button
17079 arg "dialog-show character"
17083 This was used to create Table
17084 \begin_inset space ~
17088 \begin_inset CommandInset ref
17090 reference "tab:Table-colored-without"
17095 In any other case you have to use the \SpecialChar LaTeX
17101 \begin_inset Index idx
17104 \begin_layout Plain Layout
17106 -packages ! colortbl
17114 \begin_layout Standard
17118 \begin_layout Plain Layout
17128 \begin_inset Note Note
17131 \begin_layout Plain Layout
17132 The following section part will only be displayed when the \SpecialChar LaTeX
17145 \begin_layout Standard
17146 To create colored tables,
17150 must be loaded in the preamble with the line
17153 \begin_layout Standard
17158 usepackage{colortbl}
17161 \begin_layout Standard
17162 The color of a column is adjusted with the command
17165 \begin_layout Standard
17170 columncolor{name of color}
17173 \begin_layout Standard
17179 More about the command
17183 is contained in section
17184 \begin_inset space ~
17188 \begin_inset CommandInset ref
17190 reference "subsec:Multicolumn-Calculations"
17197 \begin_layout Standard
17198 The following color names are predefined:
17201 \begin_layout Standard
17235 \begin_layout Standard
17236 \begin_inset VSpace medskip
17242 \begin_layout Standard
17243 If you add the options
17246 \begin_layout Standard
17249 usenames,dvipsnames
17252 \begin_layout Standard
17253 to the document class options in the document settings, you can additionally
17255 \begin_inset space ~
17259 These colors are listed in appendix
17260 \begin_inset space ~
17264 \begin_inset CommandInset ref
17266 reference "chap:List-of-dvips-colornames"
17271 One of these colors,
17275 , is used as example in Table
17276 \begin_inset space ~
17280 \begin_inset CommandInset ref
17282 reference "tab:Table-colored-using"
17289 \begin_layout Standard
17290 \begin_inset VSpace medskip
17296 \begin_layout Standard
17297 You can also define your own color with the command
17300 \begin_layout Standard
17305 definecolor{color name}{color model}{color values}
17308 \begin_layout Standard
17309 The color model can be
17312 \begin_layout Labeling
17313 \labelwidthstring 00.00.0000
17314 cmyk: cyan, magenta, yellow, black
17317 \begin_layout Labeling
17318 \labelwidthstring 00.00.0000
17319 rgb: red, green blue
17322 \begin_layout Labeling
17323 \labelwidthstring 00.00.0000
17327 \begin_layout Standard
17328 and the color values are comma separated numbers between 0 and 1 describing
17329 the factor for the corresponding color of the color model.
17332 \begin_layout Standard
17334 \begin_inset space \thinspace{}
17338 \begin_inset space \space{}
17345 " in the preamble with
17348 \begin_layout Standard
17353 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17356 \begin_layout Standard
17364 \begin_layout Standard
17369 definecolor{lightgray}{gray}{0.8}
17372 \begin_layout Standard
17373 \begin_inset VSpace medskip
17379 \begin_layout Standard
17380 Lines are colored with the command
17383 \begin_layout Standard
17388 rowcolor{name of color}
17391 \begin_layout Standard
17392 and cells are colored with the command
17395 \begin_layout Standard
17400 cellcolor{name of color}
17403 \begin_layout Standard
17404 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17408 \begin_layout Standard
17409 To color characters in the table, mark the cells and use the
17412 \begin_inset space ~
17418 If a cell contains \SpecialChar TeX
17419 Code mark only the characters, otherwise the colored
17421 Code will cause \SpecialChar LaTeX
17425 \begin_layout Standard
17426 \begin_inset Note Greyedout
17429 \begin_layout Plain Layout
17434 Not all DVI-viewers are able to display self-defined colors.
17442 \begin_layout Standard
17443 \begin_inset VSpace bigskip
17449 \begin_layout Standard
17451 \begin_inset space ~
17455 \begin_inset CommandInset ref
17457 reference "tab:Table-colored-using"
17461 do the following: The color of the first column should be
17469 \begin_layout Standard
17474 columncolor{darkgreen}
17479 \begin_layout Standard
17480 as \SpecialChar LaTeX
17481 -argument for this column.
17482 The first row should be light blue, therefore the \SpecialChar TeX
17486 \begin_layout Standard
17494 \begin_layout Standard
17495 is inserted to the first cell of this row.
17496 Note that this overwrites the column color for the first cell.
17497 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17502 \begin_layout Standard
17510 \begin_layout Standard
17511 The characters could now be colored using the menu
17513 Edit\SpecialChar menuseparator
17515 \begin_inset space ~
17523 \begin_layout Standard
17524 \begin_inset Float table
17530 \begin_layout Plain Layout
17531 \begin_inset Caption Standard
17533 \begin_layout Plain Layout
17534 \begin_inset CommandInset label
17536 name "tab:Table-colored-using"
17540 Table colored using the package
17545 \begin_inset Argument 1
17548 \begin_layout Plain Layout
17549 Table with colortbl
17562 \begin_layout Plain Layout
17564 \begin_inset Tabular
17565 <lyxtabular version="3" rows="3" columns="3">
17566 <features tabularvalignment="middle">
17567 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17568 <column alignment="center" valignment="top">
17569 <column alignment="center" valignment="top">
17571 <cell alignment="center" valignment="top" usebox="none">
17574 \begin_layout Plain Layout
17578 \begin_layout Plain Layout
17594 <cell alignment="center" valignment="top" usebox="none">
17597 \begin_layout Plain Layout
17605 <cell alignment="center" valignment="top" usebox="none">
17608 \begin_layout Plain Layout
17618 <cell alignment="center" valignment="top" usebox="none">
17621 \begin_layout Plain Layout
17629 <cell alignment="center" valignment="top" usebox="none">
17632 \begin_layout Plain Layout
17640 <cell alignment="center" valignment="top" usebox="none">
17643 \begin_layout Plain Layout
17653 <cell alignment="center" valignment="top" usebox="none">
17656 \begin_layout Plain Layout
17664 <cell alignment="center" valignment="top" usebox="none">
17667 \begin_layout Plain Layout
17675 <cell alignment="center" valignment="top" usebox="none">
17678 \begin_layout Plain Layout
17682 \begin_layout Plain Layout
17711 \begin_layout Standard
17715 \begin_layout Plain Layout
17725 \begin_inset Note Note
17728 \begin_layout Plain Layout
17729 The following will be displayed when the \SpecialChar LaTeX
17742 \begin_layout Standard
17743 You need to install the package
17747 to see the content of this section in the output.
17750 \begin_layout Standard
17754 \begin_layout Plain Layout
17766 \begin_layout Subsection
17768 \begin_inset Index idx
17771 \begin_layout Plain Layout
17772 Table Color ! for Rows
17778 \begin_inset Index idx
17781 \begin_layout Plain Layout
17782 Color ! for Table Rows
17790 \begin_layout Standard
17791 In case every second table row needs to be colored there is an alternative
17792 to the method described in the previous section: One loads the package
17798 \begin_inset Index idx
17801 \begin_layout Plain Layout
17807 \begin_layout Plain Layout
17821 in the document preamble with the command
17824 \begin_layout Standard
17829 usepackage[table]{xcolor}
17832 \begin_layout Standard
17837 automatically loads also the package
17842 \begin_inset Index idx
17845 \begin_layout Plain Layout
17847 -packages ! colortbl
17856 must be installed in your \SpecialChar LaTeX
17857 -distribution, otherwise you get \SpecialChar LaTeX
17861 \begin_layout Standard
17865 \begin_layout Plain Layout
17875 \begin_inset Note Note
17878 \begin_layout Plain Layout
17879 The following section part will only be displayed when the \SpecialChar LaTeX
17892 \begin_layout Standard
17893 The table rows are colored with the command
17896 \begin_layout Standard
17901 rowcolors[commands]{row number}{odd row color}{even row color}
17904 \begin_layout Standard
17905 that is either inserted in the document preamble or as \SpecialChar TeX
17907 first table to be colored.
17909 \begin_inset space ~
17912 number is the number of the first row which should be colored according
17913 to the odd row color.
17914 commands can be additional commands that are executed before every table
17916 So for example the command
17919 \begin_layout Standard
17924 rowcolors{1}{white}{lightgray}
17927 \begin_layout Standard
17928 leads to the coloring scheme of Table
17929 \begin_inset space ~
17933 \begin_inset CommandInset ref
17935 reference "tab:Table-rowcolors"
17943 \begin_layout Standard
17950 hline]{1}{lightgray}{cyan}
17953 \begin_layout Standard
17954 leads to the coloring scheme of Table
17955 \begin_inset space ~
17959 \begin_inset CommandInset ref
17961 reference "tab:Table-rowcolors-2"
17967 \begin_inset space ~
17971 \begin_inset space ~
17975 \begin_inset space ~
17979 \begin_inset space ~
17982 color are left empty, no color will be used so that the command
17985 \begin_layout Standard
17993 \begin_layout Standard
17994 deletes all colors.
18001 affects all tables following that command.
18004 \begin_layout Standard
18008 \begin_layout Plain Layout
18012 rowcolors{1}{white}{lightgray}
18020 \begin_layout Standard
18021 \begin_inset Float table
18027 \begin_layout Plain Layout
18028 \begin_inset Caption Standard
18030 \begin_layout Plain Layout
18031 \begin_inset CommandInset label
18033 name "tab:Table-rowcolors"
18037 Table where every second row is colored light gray.
18045 \begin_layout Plain Layout
18047 \begin_inset Tabular
18048 <lyxtabular version="3" rows="4" columns="3">
18049 <features tabularvalignment="middle">
18050 <column alignment="center" valignment="top">
18051 <column alignment="center" valignment="top" width="0pt">
18052 <column alignment="center" valignment="top" width="0pt">
18054 <cell alignment="center" valignment="top" usebox="none">
18057 \begin_layout Plain Layout
18063 <cell alignment="center" valignment="top" usebox="none">
18066 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" usebox="none">
18075 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" usebox="none">
18086 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" usebox="none">
18095 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" usebox="none">
18104 \begin_layout Plain Layout
18112 <cell alignment="center" valignment="top" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" usebox="none">
18133 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" usebox="none">
18162 \begin_layout Plain Layout
18181 \begin_layout Standard
18185 \begin_layout Plain Layout
18191 hline]{1}{lightgray}{cyan}
18199 \begin_layout Standard
18200 \begin_inset Float table
18206 \begin_layout Plain Layout
18207 \begin_inset Caption Standard
18209 \begin_layout Plain Layout
18210 \begin_inset CommandInset label
18212 name "tab:Table-rowcolors-2"
18216 Table where every second row is colored cyan and at which there is a line
18225 \begin_layout Plain Layout
18227 \begin_inset Tabular
18228 <lyxtabular version="3" rows="4" columns="3">
18229 <features tabularvalignment="middle">
18230 <column alignment="center" valignment="top">
18231 <column alignment="center" valignment="top">
18232 <column alignment="center" valignment="top" width="0pt">
18234 <cell alignment="center" valignment="top" usebox="none">
18237 \begin_layout Plain Layout
18243 <cell alignment="center" valignment="top" usebox="none">
18246 \begin_layout Plain Layout
18252 <cell alignment="center" valignment="top" usebox="none">
18255 \begin_layout Plain Layout
18263 <cell alignment="center" valignment="top" usebox="none">
18266 \begin_layout Plain Layout
18272 <cell alignment="center" valignment="top" usebox="none">
18275 \begin_layout Plain Layout
18281 <cell alignment="center" valignment="top" usebox="none">
18284 \begin_layout Plain Layout
18292 <cell alignment="center" valignment="top" usebox="none">
18295 \begin_layout Plain Layout
18301 <cell alignment="center" valignment="top" usebox="none">
18304 \begin_layout Plain Layout
18310 <cell alignment="center" valignment="top" usebox="none">
18313 \begin_layout Plain Layout
18321 <cell alignment="center" valignment="top" usebox="none">
18324 \begin_layout Plain Layout
18330 <cell alignment="center" valignment="top" usebox="none">
18333 \begin_layout Plain Layout
18339 <cell alignment="center" valignment="top" usebox="none">
18342 \begin_layout Plain Layout
18361 \begin_layout Standard
18365 \begin_layout Plain Layout
18375 \begin_inset Note Note
18378 \begin_layout Plain Layout
18379 turns off the row coloring
18387 \begin_layout Standard
18391 \begin_layout Plain Layout
18401 \begin_inset Note Note
18404 \begin_layout Plain Layout
18405 The following will be displayed when the \SpecialChar LaTeX
18418 \begin_layout Standard
18419 You need to install the package
18423 to see the content of this section in the output.
18426 \begin_layout Standard
18430 \begin_layout Plain Layout
18442 \begin_layout Subsection
18444 \begin_inset Index idx
18447 \begin_layout Plain Layout
18448 Table Color ! for Lines
18454 \begin_inset Index idx
18457 \begin_layout Plain Layout
18458 Color ! for Table Lines
18466 \begin_layout Standard
18467 As described in section
18468 \begin_inset space ~
18472 \begin_inset CommandInset ref
18474 reference "subsec:Line-Thickness"
18478 , the line thickness for all lines in a table can be adjusted with the length
18487 \begin_inset space \thinspace{}
18490 pt for all tables of this section.
18494 \begin_layout Plain Layout
18500 arrayrulewidth}{1.5pt}
18508 \begin_layout Standard
18509 To color vertical lines for example with green, create the following column
18510 format in the document preamble, according to the description in section
18511 \begin_inset space ~
18515 \begin_inset CommandInset ref
18517 reference "subsec:Customized-Format"
18524 \begin_layout Standard
18529 newcolumntype{W}{!{
18536 \begin_layout Standard
18538 \begin_inset space ~
18542 \begin_inset CommandInset ref
18544 reference "tab:Table-with-vertical-colored"
18548 the \SpecialChar LaTeX
18553 was used for the last column and
18557 for the other columns.
18560 \begin_layout Standard
18561 If you want to have several colors, define more column formats.
18564 \begin_layout Standard
18565 \begin_inset Float table
18571 \begin_layout Plain Layout
18572 \begin_inset Caption Standard
18574 \begin_layout Plain Layout
18575 \begin_inset CommandInset label
18577 name "tab:Table-with-vertical-colored"
18581 Table with colored vertical lines
18589 \begin_layout Plain Layout
18591 \begin_inset Tabular
18592 <lyxtabular version="3" rows="3" columns="3">
18593 <features tabularvalignment="middle">
18594 <column alignment="center" valignment="top" special="Wc">
18595 <column alignment="center" valignment="top" special="Wc">
18596 <column alignment="center" valignment="top" special="WcW">
18598 <cell alignment="center" valignment="top" topline="true" usebox="none">
18601 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" topline="true" usebox="none">
18610 \begin_layout Plain Layout
18616 <cell alignment="center" valignment="top" topline="true" usebox="none">
18619 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" usebox="none">
18639 \begin_layout Plain Layout
18645 <cell alignment="center" valignment="top" topline="true" usebox="none">
18648 \begin_layout Plain Layout
18656 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18659 \begin_layout Plain Layout
18665 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18668 \begin_layout Plain Layout
18674 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18677 \begin_layout Plain Layout
18696 \begin_layout Standard
18697 \begin_inset VSpace bigskip
18700 To color horizontal lines for example with red, as in Table
18701 \begin_inset space ~
18705 \begin_inset CommandInset ref
18707 reference "tab:Table-with-horizontal-colored"
18711 , insert these commands in \SpecialChar TeX
18712 Code before the table or table float:
18715 \begin_layout Standard
18725 \begin_inset Newline newline
18733 \begin_inset Newline newline
18737 \begin_inset Phantom HPhantom
18740 \begin_layout Plain Layout
18743 \begin_inset space ~
18753 arrayrulecolor{red}
18757 arrayrulecolor{black}}
18760 \begin_layout Standard
18764 \begin_layout Plain Layout
18775 \begin_layout Plain Layout
18784 \begin_layout Plain Layout
18788 arrayrulecolor{red}
18792 arrayrulecolor{black}}
18798 \begin_inset Float table
18804 \begin_layout Plain Layout
18805 \begin_inset Caption Standard
18807 \begin_layout Plain Layout
18808 \begin_inset CommandInset label
18810 name "tab:Table-with-horizontal-colored"
18814 Table with colored horizontal lines
18822 \begin_layout Plain Layout
18824 \begin_inset Tabular
18825 <lyxtabular version="3" rows="3" columns="3">
18826 <features tabularvalignment="middle">
18827 <column alignment="center" valignment="top">
18828 <column alignment="center" valignment="top">
18829 <column alignment="center" valignment="top">
18831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18834 \begin_layout Plain Layout
18840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18843 \begin_layout Plain Layout
18849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18852 \begin_layout Plain Layout
18860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18863 \begin_layout Plain Layout
18869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18872 \begin_layout Plain Layout
18878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18881 \begin_layout Plain Layout
18889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18892 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18910 \begin_layout Plain Layout
18929 \begin_layout Standard
18930 To return to the default line color black, insert this command in \SpecialChar TeX
18932 after the table or table float:
18935 \begin_layout Standard
18947 \begin_layout Standard
18949 \begin_inset space ~
18953 \begin_inset CommandInset ref
18955 reference "tab:Table-with-colored"
18959 is an example with colored vertical and horizontal lines.
18962 \begin_layout Standard
18963 \begin_inset Float table
18969 \begin_layout Plain Layout
18970 \begin_inset Caption Standard
18972 \begin_layout Plain Layout
18973 \begin_inset CommandInset label
18975 name "tab:Table-with-colored"
18979 Table with colored lines
18987 \begin_layout Plain Layout
18989 \begin_inset Tabular
18990 <lyxtabular version="3" rows="3" columns="3">
18991 <features tabularvalignment="middle">
18992 <column alignment="center" valignment="top" special="Wc">
18993 <column alignment="center" valignment="top" special="Wc">
18994 <column alignment="center" valignment="top" special="WcW">
18996 <cell alignment="center" valignment="top" topline="true" usebox="none">
18999 \begin_layout Plain Layout
19005 <cell alignment="center" valignment="top" topline="true" usebox="none">
19008 \begin_layout Plain Layout
19014 <cell alignment="center" valignment="top" topline="true" usebox="none">
19017 \begin_layout Plain Layout
19025 <cell alignment="center" valignment="top" topline="true" usebox="none">
19028 \begin_layout Plain Layout
19034 <cell alignment="center" valignment="top" topline="true" usebox="none">
19037 \begin_layout Plain Layout
19043 <cell alignment="center" valignment="top" topline="true" usebox="none">
19046 \begin_layout Plain Layout
19053 <row topspace="default">
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19057 \begin_layout Plain Layout
19063 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19066 \begin_layout Plain Layout
19072 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19075 \begin_layout Plain Layout
19094 \begin_layout Standard
19098 \begin_layout Plain Layout
19114 \begin_layout Standard
19118 \begin_layout Plain Layout
19124 arrayrulewidth}{0.4pt}
19132 \begin_layout Section
19133 Rotated Table Cells
19134 \begin_inset CommandInset label
19136 name "sec:Rotated-Table-Cells"
19141 \begin_inset Index idx
19144 \begin_layout Plain Layout
19145 Table ! Rotated Cells
19151 \begin_inset Index idx
19154 \begin_layout Plain Layout
19163 \begin_layout Standard
19164 \begin_inset Note Greyedout
19167 \begin_layout Plain Layout
19172 Not all DVI-viewers are able to display rotations.
19180 \begin_layout Standard
19182 \begin_inset space ~
19186 \begin_inset CommandInset ref
19188 reference "tab:Table-with-rotated-multi"
19192 is an example where 3
19193 \begin_inset space ~
19196 cells were rotated by 45
19197 \begin_inset space \thinspace{}
19203 \begin_layout Standard
19204 \begin_inset Float table
19210 \begin_layout Plain Layout
19211 \begin_inset Caption Standard
19213 \begin_layout Plain Layout
19214 \begin_inset CommandInset label
19216 name "tab:Table-with-rotated"
19220 Table with rotated cells in the first row.
19228 \begin_layout Plain Layout
19231 \begin_inset Tabular
19232 <lyxtabular version="3" rows="2" columns="3">
19233 <features tabularvalignment="middle">
19234 <column alignment="center" valignment="top" width="0pt">
19235 <column alignment="center" valignment="top" width="0pt">
19236 <column alignment="center" valignment="top" width="0pt">
19238 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19241 \begin_layout Plain Layout
19247 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19250 \begin_layout Plain Layout
19256 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19259 \begin_layout Plain Layout
19267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19270 \begin_layout Plain Layout
19276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19279 \begin_layout Plain Layout
19285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19288 \begin_layout Plain Layout
19307 \begin_layout Standard
19308 \begin_inset Note Greyedout
19311 \begin_layout Plain Layout
19316 Line breaks (shortcut
19319 arg "newline-insert newline"
19322 ) are not allowed in rotated cells.
19330 \begin_layout Standard
19331 If you want to rotate table cells containing line breaks, you have to put
19332 the cell content into a minipage or a parbox.
19336 \begin_layout Plain Layout
19337 For more about these boxes see sec.
19338 \begin_inset space \thinspace{}
19342 \begin_inset CommandInset ref
19344 reference "sec:Minipages"
19349 \begin_inset CommandInset ref
19351 reference "sec:Parboxes"
19360 If you rotate this cell by 90
19361 \begin_inset space \thinspace{}
19364 ° the width of the box is the height of the cell.
19366 \begin_inset space ~
19370 \begin_inset CommandInset ref
19372 reference "tab:Table-with-rotated-multi"
19376 is an example for a rotated multiline cell where the box width was set
19378 \begin_inset space \thinspace{}
19384 \begin_layout Standard
19385 \begin_inset Float table
19390 \begin_layout Plain Layout
19391 \begin_inset Caption Standard
19393 \begin_layout Plain Layout
19394 \begin_inset CommandInset label
19396 name "tab:Table-with-rotated-multi"
19400 Table with rotated multiline cell.
19408 \begin_layout Plain Layout
19411 \begin_inset Tabular
19412 <lyxtabular version="3" rows="2" columns="3">
19413 <features tabularvalignment="middle">
19414 <column alignment="center" valignment="top">
19415 <column alignment="center" valignment="top" width="0pt">
19416 <column alignment="center" valignment="top">
19418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19421 \begin_layout Plain Layout
19427 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19430 \begin_layout Plain Layout
19431 \begin_inset Box Frameless
19441 height_special "totalheight"
19446 backgroundcolor "none"
19449 \begin_layout Plain Layout
19451 \begin_inset Newline newline
19464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19467 \begin_layout Plain Layout
19475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19478 \begin_layout Plain Layout
19484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19487 \begin_layout Plain Layout
19493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19496 \begin_layout Plain Layout
19515 \begin_layout Section
19516 Table Width Calculation
19517 \begin_inset CommandInset label
19519 name "sec:Table-Width-Calculation"
19526 \begin_layout Standard
19527 For wide tables it is sometimes difficult to assure that the table does
19528 not protrude over the page margin.
19529 Setting a fixed width for every column of the table is the solution, but
19530 what amount of space is needed for each column?
19533 \begin_layout Standard
19535 \begin_inset Formula $W_{\mathrm{table}}$
19538 can be calculated: Every column has the width of the specified column width
19540 \begin_inset Formula $W_{\mathrm{column}}$
19543 (that the content of the column can consume) plus two times the separation
19544 between the column content and the column border (\SpecialChar LaTeX
19552 \begin_inset space \thinspace{}
19555 pt) plus the width of a border line (\SpecialChar LaTeX
19563 \begin_inset space \thinspace{}
19567 \begin_inset Formula $n$
19571 \begin_inset space ~
19574 columns have the same width, the table width is
19575 \begin_inset Formula
19577 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19585 \begin_layout Standard
19586 The available width for a table is the space between the page margins or
19587 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19595 If all table columns should have the same width and
19596 \begin_inset Formula $W_{\mathrm{table}}$
19600 \begin_inset space \thinspace{}
19606 \begin_inset Formula $W_{\mathrm{column}}$
19609 can easily be calculated.
19612 \begin_layout Standard
19613 To be able to perform calculations you need to load the \SpecialChar LaTeX
19619 \begin_inset Index idx
19622 \begin_layout Plain Layout
19629 in the document preamble.
19630 To set the width in the table dialog you have to use the field
19636 The command scheme for this field is the same that is explained in section
19637 \begin_inset space ~
19641 \begin_inset CommandInset ref
19643 reference "subsec:Multicolumn-Calculations"
19649 \begin_inset space \thinspace{}
19652 columns with an uniform width and centered text, enter there for each column
19656 \begin_layout Standard
19663 columnwidth-62.4pt)/5}
19666 \begin_layout Standard
19668 \begin_inset space \thinspace{}
19671 columns where 2 should have 0.75
19672 \begin_inset space ~
19675 times the width than the 3 others, the calculation is
19676 \begin_inset Formula
19678 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19679 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19680 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19681 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19689 \begin_layout Standard
19690 In the table therefore the command
19693 \begin_layout Standard
19700 columnwidth-62.4pt)/
19705 \begin_layout Standard
19706 is used for the wider columns and
19709 \begin_layout Standard
19716 columnwidth-62.4pt)/
19723 \begin_layout Standard
19724 for the smaller ones:
19727 \begin_layout Standard
19728 \begin_inset Tabular
19729 <lyxtabular version="3" rows="2" columns="5">
19730 <features tabularvalignment="middle">
19731 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19732 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19733 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19734 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19735 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19740 \begin_layout Plain Layout
19746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19749 \begin_layout Plain Layout
19755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19758 \begin_layout Plain Layout
19764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19767 \begin_layout Plain Layout
19773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19776 \begin_layout Plain Layout
19784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19787 \begin_layout Plain Layout
19788 111111 1111111 111111 111111111 11111 11111 1111
19793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19796 \begin_layout Plain Layout
19802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19805 \begin_layout Plain Layout
19806 2222 22222 222222 222222222 2222222 22 22222
19811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19814 \begin_layout Plain Layout
19820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19823 \begin_layout Plain Layout
19824 333333 333333 333333 33333 3333333 333
19837 \begin_layout Section
19838 Table Customization
19839 \begin_inset Index idx
19842 \begin_layout Plain Layout
19843 Table Customization
19849 \begin_inset Index idx
19852 \begin_layout Plain Layout
19853 Table ! Customization
19861 \begin_layout Subsection
19863 \begin_inset CommandInset label
19865 name "subsec:Row-Spacing"
19870 \begin_inset Index idx
19873 \begin_layout Plain Layout
19874 Table Customization ! Row Spacing
19882 \begin_layout Standard
19883 You can add vertical space to table rows in the
19887 tab of the table dialog.
19888 You find there three possibilities:
19891 \begin_layout Description
19893 \begin_inset space ~
19897 \begin_inset space ~
19900 row will add space above the characters of the table row.
19901 If the table is a formal table
19905 \begin_layout Plain Layout
19906 Formal tables are explained in section
19907 \begin_inset space ~
19911 \begin_inset CommandInset ref
19913 reference "sec:Formal-Tables"
19923 will insert as default 0.5
19924 \begin_inset space \thinspace{}
19928 For normal tables the inserted space will unfortunately destroy the vertical
19929 table lines as in the following table:
19930 \begin_inset VSpace medskip
19934 \begin_inset Newline newline
19938 \begin_inset space \hspace*{}
19943 \begin_inset space \hfill{}
19947 \begin_inset Tabular
19948 <lyxtabular version="3" rows="3" columns="1">
19949 <features tabularvalignment="middle">
19950 <column alignment="center" valignment="top">
19952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19955 \begin_layout Plain Layout
19962 <row topspace="3mm">
19963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19966 \begin_layout Plain Layout
19968 \begin_inset space \thinspace{}
19971 mm space top of row
19978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19981 \begin_layout Plain Layout
19993 \begin_inset space \hfill{}
19997 \begin_inset space \hspace*{}
20002 \begin_inset VSpace medskip
20006 \begin_inset Newline newline
20009 So inserting space in the top of row for normal tables is only useful when
20010 you don't have vertical lines.
20013 \begin_layout Description
20015 \begin_inset space ~
20019 \begin_inset space ~
20022 row will add space below the characters of the table row.
20023 If the table is a formal table \SpecialChar LyX
20024 will insert as default 0.5
20025 \begin_inset space \thinspace{}
20028 em space, for normal tables the default size is 2
20029 \begin_inset space \thinspace{}
20035 \begin_layout Description
20037 \begin_inset space ~
20040 rows adds space between the current and the following row.
20041 If the table is a formal table \SpecialChar LyX
20042 will insert as default 0.5
20043 \begin_inset space \thinspace{}
20047 For normal tables the inserted space will unfortunately destroy the vertical
20048 table lines as in the following table:
20049 \begin_inset VSpace medskip
20053 \begin_inset Newline newline
20057 \begin_inset space \hspace*{}
20062 \begin_inset space \hfill{}
20066 \begin_inset Tabular
20067 <lyxtabular version="3" rows="3" columns="1">
20068 <features tabularvalignment="middle">
20069 <column alignment="center" valignment="top">
20071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20074 \begin_layout Plain Layout
20081 <row interlinespace="3mm">
20082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20085 \begin_layout Plain Layout
20086 \begin_inset Formula $\downarrow$
20090 \begin_inset space \thinspace{}
20093 mm space between row
20094 \begin_inset Formula $\downarrow$
20104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20107 \begin_layout Plain Layout
20108 \begin_inset Formula $\uparrow$
20112 \begin_inset space \thinspace{}
20115 mm space between row
20116 \begin_inset Formula $\uparrow$
20130 \begin_inset space \hfill{}
20134 \begin_inset space \hspace*{}
20139 \begin_inset VSpace medskip
20143 \begin_inset Newline newline
20146 So inserting space between rows for normal tables is only useful when you
20147 don't have vertical lines.
20150 \begin_layout Standard
20151 \begin_inset VSpace bigskip
20154 When you want to add extra height to all cells of all tables, you can do
20155 this with the following preamble lines:
20158 \begin_layout Standard
20163 @ifundefined{extrarowheight}
20164 \begin_inset Newline newline
20168 \begin_inset Phantom HPhantom
20171 \begin_layout Plain Layout
20174 \begin_inset space ~
20184 usepackage{array}}{}
20185 \begin_inset Newline newline
20192 extrarowheight}{height}
20195 \begin_layout Standard
20196 But this has the disadvantage that the cell texts are no longer exactly
20197 vertically centered.
20202 will be loaded automatically by \SpecialChar LyX
20203 when you use self defined table formats.
20204 To avoid that it being loaded twice the command
20210 is used in the above command.)
20213 \begin_layout Standard
20214 If you are using font sizes larger than the normal size, the table borders
20215 are often too close to the letters.
20216 This can be corrected by inserting the command
20222 in \SpecialChar TeX
20223 Code at the beginning of a table row.
20225 \begin_inset space ~
20229 \begin_inset CommandInset ref
20231 reference "tab:Vertical-alignment-of"
20235 illustrates the effect.
20238 \begin_layout Standard
20240 \begin_inset Float table
20246 \begin_layout Plain Layout
20247 \begin_inset Caption Standard
20249 \begin_layout Plain Layout
20250 \begin_inset CommandInset label
20252 name "tab:Vertical-alignment-of"
20256 Vertical alignment of text with large font sizes.
20264 \begin_layout Plain Layout
20265 \begin_inset space \hfill{}
20269 \begin_inset Float table
20274 \begin_layout Plain Layout
20275 \begin_inset Caption Standard
20277 \begin_layout Plain Layout
20286 \begin_layout Plain Layout
20289 \begin_inset Tabular
20290 <lyxtabular version="3" rows="6" columns="1">
20291 <features tabularvalignment="middle">
20292 <column alignment="left" valignment="top">
20294 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20297 \begin_layout Plain Layout
20305 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20308 \begin_layout Plain Layout
20318 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20321 \begin_layout Plain Layout
20331 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20334 \begin_layout Plain Layout
20344 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20347 \begin_layout Plain Layout
20357 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20360 \begin_layout Plain Layout
20379 \begin_inset space \hfill{}
20383 \begin_inset Float table
20388 \begin_layout Plain Layout
20389 \begin_inset Caption Standard
20391 \begin_layout Plain Layout
20392 Table using the command
20406 \begin_layout Plain Layout
20409 \begin_inset Tabular
20410 <lyxtabular version="3" rows="6" columns="1">
20411 <features tabularvalignment="middle">
20412 <column alignment="left" valignment="top">
20414 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20417 \begin_layout Plain Layout
20425 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20428 \begin_layout Plain Layout
20434 \begin_layout Plain Layout
20450 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20453 \begin_layout Plain Layout
20459 \begin_layout Plain Layout
20475 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20478 \begin_layout Plain Layout
20484 \begin_layout Plain Layout
20500 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20503 \begin_layout Plain Layout
20509 \begin_layout Plain Layout
20525 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20528 \begin_layout Plain Layout
20534 \begin_layout Plain Layout
20561 \begin_inset space \hfill{}
20572 \begin_layout Subsection
20573 Special Cell Alignment
20574 \begin_inset CommandInset label
20576 name "subsec:Special-Cell-Alignment"
20581 \begin_inset Index idx
20584 \begin_layout Plain Layout
20585 Table Customization ! Special Cell Alignment
20593 \begin_layout Standard
20594 Sometimes it looks better when the cell entries of a column are aligned
20595 with a special character, e.
20596 \begin_inset space \thinspace{}
20600 \begin_inset space \space{}
20603 with the decimal separator as in Table
20604 \begin_inset space ~
20608 \begin_inset CommandInset ref
20610 reference "tab:Table-cells-align"
20615 This alignment is achieved by setting the cursor into the column and then
20616 either pressing the toolbar button
20619 arg "inset-modify tabular align-decimal"
20622 or setting the alignment in the table settings to
20625 \begin_inset space ~
20629 \begin_inset space ~
20635 The alignment character can be a character of your choice and is specified
20636 in the table settings.
20639 \begin_layout Standard
20640 \begin_inset Float table
20646 \begin_layout Plain Layout
20647 \begin_inset Caption Standard
20649 \begin_layout Plain Layout
20650 \begin_inset CommandInset label
20652 name "tab:Table-cells-align"
20656 Table cells of a column aligned with the decimal separator.
20664 \begin_layout Plain Layout
20666 \begin_inset Tabular
20667 <lyxtabular version="3" rows="4" columns="1">
20668 <features booktabs="true" tabularvalignment="middle">
20669 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20674 \begin_layout Plain Layout
20682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20685 \begin_layout Plain Layout
20693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20696 \begin_layout Plain Layout
20704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20707 \begin_layout Plain Layout
20726 \begin_layout Standard
20727 \begin_inset Float table
20733 \begin_layout Plain Layout
20734 \begin_inset Caption Standard
20736 \begin_layout Plain Layout
20737 \begin_inset CommandInset label
20739 name "tab:Table-align-operator"
20743 Table cells of a column aligned with the operators.
20751 \begin_layout Plain Layout
20753 \begin_inset Tabular
20754 <lyxtabular version="3" rows="4" columns="2">
20755 <features booktabs="true" tabularvalignment="middle">
20756 <column alignment="right" valignment="top" width="0pt">
20757 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20759 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20762 \begin_layout Plain Layout
20768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20771 \begin_layout Plain Layout
20779 <cell alignment="center" valignment="top" usebox="none">
20782 \begin_layout Plain Layout
20783 \begin_inset Formula $12\,+$
20791 <cell alignment="center" valignment="top" usebox="none">
20794 \begin_layout Plain Layout
20795 \begin_inset Formula $\,6$
20805 <cell alignment="center" valignment="top" usebox="none">
20808 \begin_layout Plain Layout
20809 \begin_inset Formula $0\,-$
20817 <cell alignment="center" valignment="top" usebox="none">
20820 \begin_layout Plain Layout
20821 \begin_inset Formula $\,68$
20831 <cell alignment="center" valignment="top" usebox="none">
20834 \begin_layout Plain Layout
20835 \begin_inset Formula $-123\,/$
20843 <cell alignment="center" valignment="top" usebox="none">
20846 \begin_layout Plain Layout
20847 \begin_inset Formula $\,0$
20868 \begin_layout Standard
20869 For alignments at characters in formulas this method does not work because
20870 the field to specify the alignment character does not allow formulas.
20871 In this case one need to use the method from Table
20872 \begin_inset space ~
20876 \begin_inset CommandInset ref
20878 reference "tab:Table-align-operator"
20883 This table was created with a 4×2 table.
20884 The heading is a centered multicolumn.
20885 The first column is right-aligned and contains the first part including
20887 The second column is left aligned and contains the rest.
20888 A small space was added at the beginning of each cell of the second column
20889 to get the space that is usually around operators.
20890 To omit the space that is normally between two table columns, the following
20892 -argument was used for the second column:
20895 \begin_layout Standard
20901 \begin_layout Standard
20903 \begin_inset space ~
20907 \begin_inset CommandInset ref
20909 reference "tab:Several-table-cell"
20913 shows some example alignments.
20914 For the alignment with the relation sign, a small space was added like
20915 for the second column of Table
20916 \begin_inset space ~
20920 \begin_inset CommandInset ref
20922 reference "tab:Table-align-operator"
20929 \begin_layout Standard
20930 \begin_inset Float table
20936 \begin_layout Plain Layout
20937 \begin_inset Caption Standard
20939 \begin_layout Plain Layout
20940 \begin_inset CommandInset label
20942 name "tab:Several-table-cell"
20946 Several table cell alignments.
20954 \begin_layout Plain Layout
20956 \begin_inset Tabular
20957 <lyxtabular version="3" rows="4" columns="6">
20958 <features tabularvalignment="middle">
20959 <column alignment="right" valignment="top">
20960 <column alignment="left" valignment="top" special="@{}l">
20961 <column alignment="right" valignment="top">
20962 <column alignment="left" valignment="top" special="@{}l">
20963 <column alignment="right" valignment="top">
20964 <column alignment="left" valignment="top" special="@{}l">
20966 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20969 \begin_layout Plain Layout
20975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20978 \begin_layout Plain Layout
20984 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20987 \begin_layout Plain Layout
20993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20996 \begin_layout Plain Layout
21002 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21005 \begin_layout Plain Layout
21011 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21014 \begin_layout Plain Layout
21022 <cell alignment="center" valignment="top" usebox="none">
21025 \begin_layout Plain Layout
21031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21034 \begin_layout Plain Layout
21036 \begin_inset space \thinspace{}
21044 <cell alignment="center" valignment="top" usebox="none">
21047 \begin_layout Plain Layout
21048 \begin_inset Formula $10\cdot$
21056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21059 \begin_layout Plain Layout
21060 \begin_inset Formula $10^{\mbox{-}17}$
21068 <cell alignment="center" valignment="top" usebox="none">
21071 \begin_layout Plain Layout
21072 \begin_inset Formula $\Gamma(t)\propto$
21080 <cell alignment="center" valignment="top" usebox="none">
21083 \begin_layout Plain Layout
21084 \begin_inset Formula $\:\Upsilon(t)$
21094 <cell alignment="center" valignment="top" usebox="none">
21097 \begin_layout Plain Layout
21103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21106 \begin_layout Plain Layout
21108 \begin_inset space \thinspace{}
21116 <cell alignment="center" valignment="top" usebox="none">
21119 \begin_layout Plain Layout
21120 \begin_inset Formula $5.78\cdot$
21128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21131 \begin_layout Plain Layout
21132 \begin_inset Formula $10^{7}$
21140 <cell alignment="center" valignment="top" usebox="none">
21143 \begin_layout Plain Layout
21144 \begin_inset Formula $A\ne$
21152 <cell alignment="center" valignment="top" usebox="none">
21155 \begin_layout Plain Layout
21156 \begin_inset Formula $\:B_{\mathrm{red}}$
21166 <cell alignment="center" valignment="top" usebox="none">
21169 \begin_layout Plain Layout
21175 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21178 \begin_layout Plain Layout
21180 \begin_inset space \thinspace{}
21188 <cell alignment="center" valignment="top" usebox="none">
21191 \begin_layout Plain Layout
21193 \begin_inset Formula $33.5\cdot$
21201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21204 \begin_layout Plain Layout
21205 \begin_inset Formula $10^{4}$
21213 <cell alignment="center" valignment="top" usebox="none">
21216 \begin_layout Plain Layout
21217 \begin_inset Formula $\sin(\alpha)\ge$
21225 <cell alignment="center" valignment="top" usebox="none">
21228 \begin_layout Plain Layout
21229 \begin_inset Formula $\:\sin(\beta)$
21250 \begin_layout Subsection
21251 Customized Cell/Column Format
21252 \begin_inset CommandInset label
21254 name "subsec:Customized-Format"
21259 \begin_inset Index idx
21262 \begin_layout Plain Layout
21263 Table Customization ! Cell/Column Format
21271 \begin_layout Standard
21272 Calculating the required width for normal columns as described in section
21273 \begin_inset space ~
21277 \begin_inset CommandInset ref
21279 reference "sec:Table-Width-Calculation"
21283 or for spanned columns as described in section
21284 \begin_inset space ~
21288 \begin_inset CommandInset ref
21290 reference "subsec:Multicolumn-Calculations"
21294 is very annoying if you have several tables where a calculation is necessary.
21295 To make life easier, you can define a cell/column format in the preamble,
21296 that can be used in all tables of the document.
21297 The format is defined with the command
21300 \begin_layout Standard
21305 newcolumntype{name of format}[number of arguments]{commands}
21308 \begin_layout Standard
21309 The format name may only consist of one letter.
21334 are predefined and cannot be used.
21335 But all letters are allowed as capitals.
21338 \begin_layout Standard
21339 \begin_inset VSpace medskip
21345 \begin_layout Standard
21346 For vertically and horizontally centered multicolumn cells with a fixed
21347 width you can define the cell format
21350 \begin_layout Standard
21355 newcolumntype{M}[1]{>{
21362 \begin_layout Standard
21369 avoids the problem of hyphenating the first word, as described in section
21370 \begin_inset space ~
21374 \begin_inset CommandInset ref
21376 reference "subsec:Multiple-Lines-in"
21381 Now you can simply enter
21384 \begin_layout Standard
21390 \begin_layout Standard
21396 in the table dialog to create a multicolumn.
21399 \begin_layout Standard
21400 \begin_inset VSpace bigskip
21406 \begin_layout Standard
21407 For cells spanned by a multicolumn cell, you can define the format
21410 \begin_layout Standard
21415 newcolumntype{S}[2]{>{
21420 \begin_inset Newline newline
21424 \begin_inset Phantom HPhantom
21427 \begin_layout Plain Layout
21441 arrayrulewidth)*(1-#2))/#2}}
21444 \begin_layout Standard
21445 This format uses equation
21446 \begin_inset CommandInset ref
21452 to calculate the required width so that each spanned cell has the same
21456 \begin_layout Standard
21460 \begin_layout Standard
21463 S{width of multicolumn cell}{number of spanned columns}
21466 \begin_layout Standard
21467 as \SpecialChar LaTeX
21468 -argument of the column.
21471 \begin_layout Standard
21472 \begin_inset VSpace bigskip
21478 \begin_layout Standard
21479 For colored columns, you can define
21482 \begin_layout Standard
21487 newcolumntype{K}[1]{>{
21494 \begin_layout Standard
21496 \begin_inset Quotes eld
21500 \begin_inset Quotes erd
21503 at the end creates a column with a flexible width whose text is horizontally
21508 \begin_layout Standard
21514 \begin_layout Standard
21515 as \SpecialChar LaTeX
21519 \begin_layout Standard
21520 \begin_inset VSpace bigskip
21526 \begin_layout Standard
21528 \begin_inset space ~
21532 \begin_inset CommandInset ref
21534 reference "tab:Table-using-user-defined"
21538 use the \SpecialChar LaTeX
21542 \begin_layout Standard
21548 \begin_layout Standard
21549 for the first column and the multicolumn,
21552 \begin_layout Standard
21558 \begin_layout Standard
21559 for the last column, and
21562 \begin_layout Standard
21568 \begin_layout Standard
21569 for the cells in the second column.
21572 \begin_layout Standard
21573 \begin_inset Float table
21579 \begin_layout Plain Layout
21580 \begin_inset Caption Standard
21582 \begin_layout Plain Layout
21583 \begin_inset CommandInset label
21585 name "tab:Table-using-user-defined"
21589 Table using user-defined table formats
21597 \begin_layout Plain Layout
21599 \begin_inset Tabular
21600 <lyxtabular version="3" rows="3" columns="4">
21601 <features tabularvalignment="middle">
21602 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21603 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21604 <column alignment="center" valignment="middle">
21605 <column alignment="center" valignment="middle" special="K{red}">
21607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21610 \begin_layout Plain Layout
21611 verylongtablecellword
21616 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21619 \begin_layout Plain Layout
21620 multiple lines multicolumn
21625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21628 \begin_layout Plain Layout
21634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21637 \begin_layout Plain Layout
21645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21648 \begin_layout Plain Layout
21654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21657 \begin_layout Plain Layout
21663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21666 \begin_layout Plain Layout
21672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21675 \begin_layout Plain Layout
21683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21686 \begin_layout Plain Layout
21692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21695 \begin_layout Plain Layout
21701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21704 \begin_layout Plain Layout
21710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21713 \begin_layout Plain Layout
21732 \begin_layout Subsection
21734 \begin_inset CommandInset label
21736 name "subsec:Line-Thickness"
21741 \begin_inset Index idx
21744 \begin_layout Plain Layout
21745 Table Customization ! Line Thickness
21753 \begin_layout Standard
21754 The line thickness for all lines in a table can be adjusted with the length
21762 To set for example a line thickness of 1.5
21763 \begin_inset space \thinspace{}
21767 \begin_inset space ~
21771 \begin_inset CommandInset ref
21773 reference "tab:Table-with-1.5"
21777 , insert the command
21780 \begin_layout Standard
21787 arrayrulewidth}{1.5pt}
21790 \begin_layout Standard
21791 in \SpecialChar TeX
21792 Code before the table or table float.
21793 The changed thickness is valid for all subsequent tables.
21794 To use the default value again, set
21801 \begin_inset space \thinspace{}
21804 pt in \SpecialChar TeX
21805 Code after the table or table float.
21808 \begin_layout Standard
21812 \begin_layout Plain Layout
21818 arrayrulewidth}{1.5pt}
21824 \begin_inset Float table
21829 \begin_layout Plain Layout
21830 \begin_inset Caption Standard
21832 \begin_layout Plain Layout
21833 \begin_inset CommandInset label
21835 name "tab:Table-with-1.5"
21840 \begin_inset space \thinspace{}
21851 \begin_layout Plain Layout
21853 \begin_inset Tabular
21854 <lyxtabular version="3" rows="3" columns="3">
21855 <features tabularvalignment="middle">
21856 <column alignment="center" valignment="top">
21857 <column alignment="center" valignment="top">
21858 <column alignment="center" valignment="top">
21860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21863 \begin_layout Plain Layout
21869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21881 \begin_layout Plain Layout
21889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21892 \begin_layout Plain Layout
21898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21901 \begin_layout Plain Layout
21907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21910 \begin_layout Plain Layout
21918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21921 \begin_layout Plain Layout
21927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21930 \begin_layout Plain Layout
21936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21939 \begin_layout Plain Layout
21959 \begin_layout Plain Layout
21965 arrayrulewidth}{0.4pt}
21973 \begin_layout Standard
21974 \begin_inset VSpace bigskip
21977 To set the line thickness to 1.5
21978 \begin_inset space \thinspace{}
21981 pt only for horizontal lines, as in Table
21982 \begin_inset space ~
21986 \begin_inset CommandInset ref
21988 reference "tab:Table-with-horizontal"
21992 , insert these commands in \SpecialChar TeX
21993 Code before the table or table float:
21996 \begin_layout Standard
22006 \begin_inset Newline newline
22014 \begin_inset Newline newline
22023 arrayrulewidth 1.5pt}
22024 \begin_inset Newline newline
22035 arrayrulewidth 0.4pt}}
22038 \begin_layout Standard
22039 To return to the default line thickness, insert this command in \SpecialChar TeX
22041 the table or table float:
22044 \begin_layout Standard
22056 \begin_layout Standard
22060 \begin_layout Plain Layout
22071 \begin_layout Plain Layout
22080 \begin_layout Plain Layout
22088 arrayrulewidth 1.5pt}
22091 \begin_layout Plain Layout
22101 arrayrulewidth 0.4pt}}
22107 \begin_inset Float table
22112 \begin_layout Plain Layout
22113 \begin_inset Caption Standard
22115 \begin_layout Plain Layout
22116 \begin_inset CommandInset label
22118 name "tab:Table-with-horizontal"
22123 \begin_inset space \thinspace{}
22126 pt thick horizontal lines
22134 \begin_layout Plain Layout
22136 \begin_inset Tabular
22137 <lyxtabular version="3" rows="3" columns="3">
22138 <features tabularvalignment="middle">
22139 <column alignment="center" valignment="top">
22140 <column alignment="center" valignment="top">
22141 <column alignment="center" valignment="top">
22143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22146 \begin_layout Plain Layout
22152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22155 \begin_layout Plain Layout
22161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22164 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22193 \begin_layout Plain Layout
22201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22204 \begin_layout Plain Layout
22210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22213 \begin_layout Plain Layout
22219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22222 \begin_layout Plain Layout
22242 \begin_layout Plain Layout
22258 \begin_layout Standard
22259 \begin_inset VSpace bigskip
22262 To set the line thickness to 1.5
22263 \begin_inset space \thinspace{}
22266 pt only for vertical lines, create the following column format in the document
22267 preamble, according to the description in section
22268 \begin_inset space ~
22272 \begin_inset CommandInset ref
22274 reference "subsec:Customized-Format"
22281 \begin_layout Standard
22286 newcolumntype{V}{!{
22288 vrule width 1.5pt}}
22291 \begin_layout Standard
22293 \begin_inset space ~
22297 \begin_inset CommandInset ref
22299 reference "tab:Table-with-vertical"
22303 the \SpecialChar LaTeX
22307 \begin_layout Standard
22313 \begin_layout Standard
22314 was used for the last column and
22317 \begin_layout Standard
22323 \begin_layout Standard
22324 for the other columns.
22327 \begin_layout Standard
22328 \begin_inset Float table
22333 \begin_layout Plain Layout
22334 \begin_inset Caption Standard
22336 \begin_layout Plain Layout
22337 \begin_inset CommandInset label
22339 name "tab:Table-with-vertical"
22344 \begin_inset space \thinspace{}
22347 pt thick vertical lines
22355 \begin_layout Plain Layout
22357 \begin_inset Tabular
22358 <lyxtabular version="3" rows="3" columns="3">
22359 <features tabularvalignment="middle">
22360 <column alignment="center" valignment="top" special="Vc">
22361 <column alignment="center" valignment="top" special="Vc">
22362 <column alignment="center" valignment="top" special="VcV">
22364 <cell alignment="center" valignment="top" topline="true" usebox="none">
22367 \begin_layout Plain Layout
22373 <cell alignment="center" valignment="top" topline="true" usebox="none">
22376 \begin_layout Plain Layout
22382 <cell alignment="center" valignment="top" topline="true" usebox="none">
22385 \begin_layout Plain Layout
22393 <cell alignment="center" valignment="top" topline="true" usebox="none">
22396 \begin_layout Plain Layout
22402 <cell alignment="center" valignment="top" topline="true" usebox="none">
22405 \begin_layout Plain Layout
22411 <cell alignment="center" valignment="top" topline="true" usebox="none">
22414 \begin_layout Plain Layout
22422 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22425 \begin_layout Plain Layout
22431 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22434 \begin_layout Plain Layout
22440 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22443 \begin_layout Plain Layout
22462 \begin_layout Subsection
22464 \begin_inset Index idx
22467 \begin_layout Plain Layout
22468 Table Customization ! Dashed Lines
22476 \begin_layout Standard
22480 \begin_layout Plain Layout
22490 \begin_inset Note Note
22493 \begin_layout Plain Layout
22494 The following section will only be displayed when the \SpecialChar LaTeX
22507 \begin_layout Standard
22508 \begin_inset Float table
22514 \begin_layout Plain Layout
22515 \begin_inset Caption Standard
22517 \begin_layout Plain Layout
22518 \begin_inset CommandInset label
22520 name "tab:Table-with-dashed"
22524 Table with dashed lines
22532 \begin_layout Plain Layout
22534 \begin_inset Tabular
22535 <lyxtabular version="3" rows="5" columns="5">
22536 <features tabularvalignment="middle">
22537 <column alignment="center" valignment="top">
22538 <column alignment="center" valignment="top">
22539 <column alignment="center" valignment="top" special=":c">
22540 <column alignment="center" valignment="top">
22541 <column alignment="center" valignment="top">
22543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22546 \begin_layout Plain Layout
22552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22555 \begin_layout Plain Layout
22561 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22564 \begin_layout Plain Layout
22570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22573 \begin_layout Plain Layout
22579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22582 \begin_layout Plain Layout
22590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22593 \begin_layout Plain Layout
22599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22602 \begin_layout Plain Layout
22608 <cell alignment="center" valignment="top" topline="true" usebox="none">
22611 \begin_layout Plain Layout
22617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22620 \begin_layout Plain Layout
22626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22629 \begin_layout Plain Layout
22637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22640 \begin_layout Plain Layout
22644 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22661 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22679 \begin_layout Plain Layout
22685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22688 \begin_layout Plain Layout
22696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22699 \begin_layout Plain Layout
22703 \begin_layout Plain Layout
22717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22720 \begin_layout Plain Layout
22726 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22729 \begin_layout Plain Layout
22735 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22738 \begin_layout Plain Layout
22744 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22747 \begin_layout Plain Layout
22755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22785 \begin_layout Plain Layout
22791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22794 \begin_layout Plain Layout
22813 \begin_layout Standard
22815 does not natively support dashed lines, so you have to use \SpecialChar TeX
22817 As a prerequisite the \SpecialChar LaTeX
22823 \begin_inset Index idx
22826 \begin_layout Plain Layout
22828 -packages ! arydshln
22833 must be loaded in the document preamble with the command
22836 \begin_layout Standard
22841 usepackage{arydshln}
22844 \begin_layout Standard
22845 To make a vertical line dashed, enter the colon
22846 \begin_inset Quotes eld
22850 \begin_inset Quotes erd
22853 together with the character for the horizontal alignment as \SpecialChar LaTeX
22855 the table cell dialog.
22858 \begin_layout Standard
22859 For a horizontal dashed line add the command
22862 \begin_layout Standard
22870 \begin_layout Standard
22871 in \SpecialChar TeX
22872 Code as first element of the first cell in the table row.
22875 \begin_layout Standard
22876 For dashed multicolumn lines use the command
22879 \begin_layout Standard
22884 cdashline{line number
22889 \begin_layout Standard
22890 in \SpecialChar TeX
22891 Code as the first element of the first cell in the table row.
22892 If you have for example a multicolumn spanning columns 2 to 4 and you want
22893 to have a dashed line above, add the command
22896 \begin_layout Standard
22904 \begin_layout Standard
22905 as the first element of the first cell in the row of the multicolumn.
22908 \begin_layout Standard
22909 \begin_inset VSpace bigskip
22915 \begin_layout Standard
22917 \begin_inset space ~
22921 \begin_inset CommandInset ref
22923 reference "tab:Table-with-dashed"
22928 \begin_inset Quotes eld
22936 \begin_inset Quotes erd
22939 as \SpecialChar LaTeX
22940 argument of the third column.
22941 The \SpecialChar TeX
22948 was inserted in the first cell of the third row and the \SpecialChar TeX
22950 \begin_inset Newline newline
22959 was inserted in the first cell of the fourth row.
22962 \begin_layout Standard
22963 \begin_inset VSpace bigskip
22969 \begin_layout Standard
22970 Tables with dashed lines can also be colored as shown by Table
22971 \begin_inset space ~
22975 \begin_inset CommandInset ref
22977 reference "tab:Colored-table-with"
22984 \begin_layout Standard
22988 \begin_layout Plain Layout
22994 arrayrulewidth}{1pt}
23000 \begin_inset Note Note
23003 \begin_layout Plain Layout
23004 thicker lines for better visualization of the line color
23012 \begin_layout Standard
23016 \begin_layout Plain Layout
23020 dashgapcolor{green}
23026 \begin_inset Note Note
23029 \begin_layout Plain Layout
23030 color gaps between dashes green
23038 \begin_layout Standard
23042 \begin_layout Plain Layout
23053 \begin_layout Plain Layout
23062 \begin_layout Plain Layout
23066 arrayrulecolor{red}
23070 arrayrulecolor{black}}
23076 \begin_inset Note Note
23079 \begin_layout Plain Layout
23080 color horizontal, dashed lines red
23088 \begin_layout Standard
23092 \begin_layout Plain Layout
23103 \begin_layout Plain Layout
23112 \begin_layout Plain Layout
23116 arrayrulecolor{yellow}
23120 arrayrulecolor{black}}
23126 \begin_inset Note Note
23129 \begin_layout Plain Layout
23130 color partial horizontal, dashed lines yellow
23138 \begin_layout Standard
23139 \begin_inset Float table
23145 \begin_layout Plain Layout
23146 \begin_inset Caption Standard
23148 \begin_layout Plain Layout
23149 \begin_inset CommandInset label
23151 name "tab:Colored-table-with"
23155 Colored table with dashed lines
23163 \begin_layout Plain Layout
23165 \begin_inset Tabular
23166 <lyxtabular version="3" rows="5" columns="5">
23167 <features tabularvalignment="middle">
23168 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23169 <column alignment="center" valignment="top" width="0pt">
23170 <column alignment="center" valignment="top" width="0pt" special=":c">
23171 <column alignment="center" valignment="top">
23172 <column alignment="center" valignment="top">
23174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23177 \begin_layout Plain Layout
23183 <cell alignment="center" valignment="top" topline="true" usebox="none">
23186 \begin_layout Plain Layout
23192 <cell alignment="center" valignment="top" topline="true" usebox="none">
23195 \begin_layout Plain Layout
23201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23204 \begin_layout Plain Layout
23210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23213 \begin_layout Plain Layout
23221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23224 \begin_layout Plain Layout
23230 <cell alignment="center" valignment="top" topline="true" usebox="none">
23233 \begin_layout Plain Layout
23239 <cell alignment="center" valignment="top" topline="true" usebox="none">
23242 \begin_layout Plain Layout
23248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23251 \begin_layout Plain Layout
23257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23260 \begin_layout Plain Layout
23268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23271 \begin_layout Plain Layout
23275 \begin_layout Plain Layout
23288 \begin_layout Plain Layout
23302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23305 \begin_layout Plain Layout
23311 <cell alignment="center" valignment="top" usebox="none">
23314 \begin_layout Plain Layout
23320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23323 \begin_layout Plain Layout
23329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23332 \begin_layout Plain Layout
23340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23343 \begin_layout Plain Layout
23347 \begin_layout Plain Layout
23361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23364 \begin_layout Plain Layout
23370 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23373 \begin_layout Plain Layout
23379 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23382 \begin_layout Plain Layout
23388 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23391 \begin_layout Plain Layout
23399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23402 \begin_layout Plain Layout
23408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23411 \begin_layout Plain Layout
23417 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23420 \begin_layout Plain Layout
23426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23429 \begin_layout Plain Layout
23435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23438 \begin_layout Plain Layout
23442 \begin_layout Plain Layout
23469 \begin_layout Standard
23473 \begin_layout Plain Layout
23487 \begin_inset Note Note
23490 \begin_layout Plain Layout
23499 \begin_layout Standard
23503 \begin_layout Plain Layout
23517 \begin_inset Note Note
23520 \begin_layout Plain Layout
23529 \begin_layout Standard
23533 \begin_layout Plain Layout
23543 \begin_inset Note Note
23546 \begin_layout Plain Layout
23555 \begin_layout Standard
23559 \begin_layout Plain Layout
23565 arrayrulewidth}{0.4pt}
23571 \begin_inset Note Note
23574 \begin_layout Plain Layout
23583 \begin_layout Standard
23584 The coloring of lines, columns and lines works as decribed in section
23585 \begin_inset space ~
23589 \begin_inset CommandInset ref
23591 reference "sec:Colored-Tables"
23596 Coloring horizontal lines works analogically as described there as well,
23597 one only needs to replace in the commands
23621 ; so one uses the command
23624 \begin_layout Standard
23634 \begin_inset Newline newline
23642 \begin_inset Newline newline
23646 \begin_inset Phantom HPhantom
23649 \begin_layout Plain Layout
23650 \begin_inset space ~
23660 arrayrulecolor{red}
23664 arrayrulecolor{black}}
23667 \begin_layout Standard
23677 \begin_layout Standard
23687 \begin_inset Newline newline
23695 \begin_inset Newline newline
23699 \begin_inset Phantom HPhantom
23702 \begin_layout Plain Layout
23703 \begin_inset space ~
23713 arrayrulecolor{red}
23717 arrayrulecolor{black}}
23720 \begin_layout Standard
23721 To get back the black line color, one needs to insert the following commands
23722 as \SpecialChar TeX
23723 Code behind the table:
23726 \begin_layout Standard
23734 \begin_layout Standard
23746 \begin_layout Standard
23754 \begin_layout Standard
23766 \begin_layout Standard
23767 To color the gaps between the dashes the command
23770 \begin_layout Standard
23775 dashgapcolor{color}
23778 \begin_layout Standard
23779 can be used in front of a table as \SpecialChar TeX
23781 color is hereby the name of a defined color.
23785 \begin_layout Standard
23793 \begin_layout Standard
23794 unsets the changes made by
23803 \begin_layout Standard
23804 \begin_inset Note Greyedout
23807 \begin_layout Plain Layout
23813 : If there are multiple commands in a cell, the command of
23817 needs to be the first one in the cell.
23823 \begin_inset space ~
23827 \begin_inset CommandInset ref
23829 reference "tab:Colored-table-with"
23853 \begin_layout Standard
23854 \begin_inset Note Greyedout
23857 \begin_layout Plain Layout
23863 The \SpecialChar LaTeX
23868 must be loaded in the document preamble before the \SpecialChar LaTeX
23874 \begin_inset Index idx
23877 \begin_layout Plain Layout
23879 -packages ! colortbl
23892 \begin_layout Standard
23896 \begin_layout Plain Layout
23906 \begin_inset Note Note
23909 \begin_layout Plain Layout
23910 The following will be displayed when the \SpecialChar LaTeX
23923 \begin_layout Standard
23924 You need to install the package
23928 to see the content of this section in the output.
23931 \begin_layout Standard
23935 \begin_layout Plain Layout
23947 \begin_layout Standard
23948 For more information about dashed lines see the documentation of
23953 \begin_inset CommandInset citation
23962 \begin_layout Chapter
23964 \begin_inset CommandInset label
23971 \begin_inset Index idx
23974 \begin_layout Plain Layout
23983 \begin_layout Section
23985 \begin_inset CommandInset label
23987 name "sec:FloatIntroduction"
23992 \begin_inset Index idx
23995 \begin_layout Plain Layout
23996 Floats ! Introduction
24004 \begin_layout Standard
24005 A float is a block of text associated with some sort of label, which doesn't
24006 have a fixed location.
24008 \begin_inset Quotes eld
24012 \begin_inset Quotes erd
24015 forward or backward a page or two, to wherever it fits best.
24023 \begin_inset space ~
24028 are also floats because they can float to the next page when there are
24029 too many notes on the page.
24032 \begin_layout Standard
24033 Floats allow a high quality layout.
24034 Images and tables can be spread evenly among the pages to avoid white space
24035 and pages without text.
24036 As the floating often destroys the context between the text and the image/table
24037 , every float can be referenced in the text.
24038 Floats are therefore numbered.
24039 Referencing is described in section
24040 \begin_inset space ~
24044 \begin_inset CommandInset ref
24046 reference "sec:Referencing-Floats"
24053 \begin_layout Standard
24054 To insert a float, use the menu
24056 Insert\SpecialChar menuseparator
24062 arg "float-insert figure"
24068 arg "float-insert table"
24076 inset, a box with a label.
24077 The label will automatically be translated to the document language in
24079 After the label you can insert the caption text.
24080 The image or table is inserted above or below the caption in a separate
24081 paragraph within the float.
24082 More about the caption placement is contained in section
24083 \begin_inset space ~
24087 \begin_inset CommandInset ref
24089 reference "sec:Caption-Placement"
24094 To keep your \SpecialChar LyX
24095 document readable, you can open and close the float box by
24096 left-clicking on the box label.
24097 A closed float box looks like this:
24098 \begin_inset Graphics
24099 filename clipart/floatQt4.png
24101 scaleBeforeRotation
24105 – a gray button with a red label.
24108 \begin_layout Standard
24109 It is recommended that you insert floats as separate standard paragraphs
24110 to avoid possible \SpecialChar LaTeX
24111 -errors that can occur when the surrounding text is specially
24115 \begin_layout Standard
24116 Existing figures or tables can be put into a float by highlighting them
24117 and then pressing the corresponding toolbar button for a new float.
24120 \begin_layout Section
24124 \begin_layout Standard
24125 Besides figure and table floats that are described in sections
24126 \begin_inset space ~
24130 \begin_inset CommandInset ref
24132 reference "sec:Figure-Floats"
24137 \begin_inset CommandInset ref
24139 reference "sec:Table-Floats"
24143 respectively, \SpecialChar LyX
24144 offers the float types
24153 The latter are explained in sec.
24154 \begin_inset space \thinspace{}
24158 \begin_inset CommandInset ref
24160 reference "sec:Wrap-Floats"
24167 \begin_layout Subsection
24169 \begin_inset Index idx
24172 \begin_layout Plain Layout
24173 Floats ! Algorithms
24181 \begin_layout Standard
24182 \begin_inset Float algorithm
24188 \begin_layout Plain Layout
24189 \begin_inset Caption Standard
24191 \begin_layout Plain Layout
24192 \begin_inset CommandInset label
24194 name "alg:Example-Algorithm-float"
24198 Example Algorithm float
24206 \begin_layout LyX-Code
24208 \begin_inset Newline newline
24211 Sum:= Sum + A(I); /*comment*/
24212 \begin_inset Newline newline
24216 \begin_inset VSpace -4mm
24227 \begin_layout Standard
24228 This float type is inserted with the menu
24230 Insert\SpecialChar menuseparator
24231 Float\SpecialChar menuseparator
24235 It is used for program codes and descriptions of algorithms and can be
24236 seen as an alternative to program code listings that are explained in chapter
24237 \begin_inset space ~
24241 \begin_inset CommandInset ref
24243 reference "cha:Program-Code-Listings"
24248 A possible environment for algorithms is the
24253 , described in \SpecialChar LyX
24260 \begin_inset space ~
24264 \begin_inset CommandInset ref
24266 reference "alg:Example-Algorithm-float"
24270 is an example of an algorithm float where -4
24271 \begin_inset space \thinspace{}
24274 mm vertical space was added at the end of the float to have the bottom rule
24275 exactly below the last text line.
24278 \begin_layout Standard
24279 The float label is not automatically translated into the document language.
24280 If your document is not in English, you have to do this manually by adding
24281 the following line to the document preamble
24286 \begin_layout Standard
24291 floatname{algorithm}{your
24292 \begin_inset space ~
24298 \begin_layout Standard
24302 \begin_inset space ~
24308 \begin_inset Quotes eld
24316 \begin_inset Quotes erd
24322 \begin_layout Standard
24323 To insert the list of algorithms you can use the menu
24325 Insert\SpecialChar menuseparator
24327 \begin_inset space \thinspace{}
24331 \begin_inset space \thinspace{}
24334 TOC\SpecialChar menuseparator
24337 when your document has the same language as \SpecialChar LyX
24339 In other cases use this command in \SpecialChar TeX
24343 \begin_layout Standard
24348 listof{algorithm}{your
24349 \begin_inset space ~
24355 \begin_layout Standard
24359 \begin_inset space ~
24365 \begin_inset Quotes eld
24373 \begin_inset Quotes erd
24379 \begin_layout Standard
24380 Algorithm floats are not by default numbered in the scheme
24381 \begin_inset Quotes eld
24385 \begin_inset Quotes erd
24388 as is the case for table and figure floats in many document-classes.
24389 To number algorithm floats in the same scheme, add this command to your
24393 \begin_layout Standard
24398 numberwithin{algorithm}{chapter}
24401 \begin_layout Standard
24402 To be able to use the command
24411 \begin_inset space ~
24416 in the document settings the option
24419 \begin_inset space ~
24423 \begin_inset space ~
24427 \begin_inset space ~
24435 \begin_layout Section
24437 \begin_inset Index idx
24440 \begin_layout Plain Layout
24449 \begin_layout Standard
24450 Floats are usually numbered either independently from the sections the floats
24451 are in, or in the scheme
24452 \begin_inset Quotes eld
24456 \begin_inset Quotes erd
24460 \begin_inset Quotes eld
24464 \begin_inset Quotes erd
24468 This depends on the document class used.
24471 \begin_layout Standard
24472 To change section-independent numbering, you can use this command in the
24476 \begin_layout Standard
24488 \begin_layout Standard
24495 is the command that prints the table number.
24496 For figure floats, the command would be
24509 in the command above prints the table number as a small roman number.
24512 \begin_layout Standard
24513 To change the numbering scheme for example to
24514 \begin_inset Quotes eld
24518 \begin_inset Quotes erd
24521 , use this command in the preamble:
24524 \begin_layout Standard
24529 numberwithin{table}{subsection}
24532 \begin_layout Standard
24533 To be able to use the command
24542 \begin_inset space ~
24547 in the document settings the option
24550 \begin_inset space ~
24554 \begin_inset space ~
24558 \begin_inset space ~
24566 \begin_layout Standard
24567 Please also have a look at section
24568 \begin_inset space ~
24572 \begin_inset CommandInset ref
24574 reference "subsec:Footnote-Numbering"
24578 for the details and important notes about the numbering commands.
24581 \begin_layout Section
24583 \begin_inset CommandInset label
24585 name "sec:Referencing-Floats"
24590 \begin_inset Index idx
24593 \begin_layout Plain Layout
24594 Floats ! References
24600 \begin_inset Index idx
24603 \begin_layout Plain Layout
24604 References ! to Floats
24612 \begin_layout Standard
24613 To reference a float, insert a label into its caption using the menu
24615 Insert\SpecialChar menuseparator
24618 or the toolbar button
24625 A grey label box like this one:
24626 \begin_inset Graphics
24627 filename clipart/labelQt4.png
24629 scaleBeforeRotation
24633 will be inserted and the label window pops up asking for the label text.
24635 offers as text the first words of the caption with a prefix.
24636 The prefix depends on the float type, e.
24637 \begin_inset space \thinspace{}
24641 \begin_inset space \space{}
24644 for figure floats the prefix will be "
24651 \begin_layout Standard
24652 The label is used as anchor and name for the reference.
24653 You can refer to the label using the menu
24655 Insert\SpecialChar menuseparator
24658 or the toolbar button
24661 arg "dialog-show-new-inset ref"
24665 The cross-reference window appears showing all labels of the document.
24666 If you have multiple \SpecialChar LyX
24667 documents opened, choose the one you are working
24668 on from the drop-list at the top of the dialog.
24669 You can now sort the labels alphabetically and then choose one.
24670 A grey cross-reference box like this one:
24671 \begin_inset Graphics
24672 filename clipart/referenceQt4.png
24674 scaleBeforeRotation
24679 At the position of the cross-reference box the float number will appear
24683 \begin_layout Standard
24684 It is recommended that you use a protected space between the cross-reference
24685 name and its number to avoid line breaks between them.
24686 If a cross-reference refers to a non-existing label, you will see two question
24687 marks in the output instead of the reference.
24690 \begin_layout Standard
24691 You can change labels at any time by clicking on the label box.
24692 References to the changed label will automatically update their links to
24693 the new label text.
24696 \begin_layout Standard
24700 \begin_inset space ~
24704 \begin_inset space ~
24709 in the cross-reference window sets the cursor before the referred label.
24710 The button text changes then to Go
24711 \begin_inset space ~
24714 Back and you can use it to set the cursor back to the cross-reference.
24717 \begin_layout Subsection
24718 Cross-Reference Formats
24719 \begin_inset CommandInset label
24721 name "subsec:Cross-Reference-Formats"
24726 \begin_inset Index idx
24729 \begin_layout Plain Layout
24730 References ! Formats
24738 \begin_layout Standard
24739 There are six varieties of cross-references:
24742 \begin_layout Description
24743 <reference>: prints the float number, this is the default:
24744 \begin_inset CommandInset ref
24746 reference "fig:Two-distorted-images"
24753 \begin_layout Description
24754 (<reference>): prints the float number within two parentheses, this is the
24755 style normally used to reference formulas, especially when the reference
24757 \begin_inset Quotes eld
24761 \begin_inset Quotes erd
24765 \begin_inset CommandInset ref
24774 \begin_layout Description
24775 <page>: prints the page number: Page
24776 \begin_inset space ~
24780 \begin_inset CommandInset ref
24781 LatexCommand pageref
24782 reference "fig:Two-distorted-images"
24789 \begin_layout Description
24791 \begin_inset space ~
24795 \begin_inset space ~
24798 <page>: prints the text "on page" and the page number:
24799 \begin_inset CommandInset ref
24800 LatexCommand vpageref
24801 reference "fig:Two-distorted-images"
24808 \begin_layout Description
24810 \begin_inset space ~
24814 \begin_inset space ~
24818 \begin_inset space ~
24821 <page>: prints the float number, the text "on page", and the page number:
24823 \begin_inset CommandInset ref
24825 reference "fig:Two-distorted-images"
24832 \begin_layout Description
24834 \begin_inset space ~
24837 reference: prints a self-defined cross-reference format.
24838 \begin_inset Newline newline
24842 \begin_inset Note Greyedout
24845 \begin_layout Plain Layout
24850 This feature is only available when you have the \SpecialChar LaTeX
24860 \begin_inset Index idx
24863 \begin_layout Plain Layout
24865 -packages ! prettyref
24871 \begin_inset Index idx
24874 \begin_layout Plain Layout
24876 -packages ! refstyle
24887 \begin_inset Newline newline
24890 You can select which \SpecialChar LaTeX
24891 -package should be used for this feature by setting
24894 Use refstyle (not prettyref) for cross-references
24898 Document\SpecialChar menuseparator
24899 Settings\SpecialChar menuseparator
24903 The format is specified by adding the command
24915 (refstyle) to the preamble of the document.
24916 For example redefining all references to figures (which have the label
24918 \begin_inset Quotes eld
24926 \begin_inset Quotes erd
24929 ) can be done with this command
24930 \begin_inset Newline newline
24937 newref{fig}{refcmd={Image on page
24942 \begin_inset Newline newline
24945 For more information about the format, have a look at the package documentations
24947 \begin_inset CommandInset citation
24949 key "prettyref,refstyle"
24956 \begin_layout Description
24958 \begin_inset space ~
24961 reference: prints the caption of the reference:
24962 \begin_inset CommandInset ref
24963 LatexCommand nameref
24964 reference "fig:Two-distorted-images"
24971 \begin_layout Standard
24976 will not print the page number if the label is on the previous, the same,
24979 \begin_inset space \thinspace{}
24983 \begin_inset space \space{}
24987 \begin_inset Quotes eld
24995 \begin_inset Quotes erd
25001 <reference> on page <page>
25003 will not print anything about the page if the label is on the same page.
25006 \begin_layout Standard
25007 The number and current page of the part of the document referred to in the
25008 output is automatically calculated by \SpecialChar LaTeX
25010 The varieties are adjusted in the field
25014 of the cross-reference window that appears when you click on the cross-referenc
25018 \begin_layout Standard
25019 \begin_inset Note Greyedout
25022 \begin_layout Plain Layout
25027 It is recommended to use the \SpecialChar LaTeX
25033 \begin_inset Index idx
25036 \begin_layout Plain Layout
25038 -packages ! refstyle
25048 \begin_inset Index idx
25051 \begin_layout Plain Layout
25053 -packages ! prettyref
25058 does not know all of \SpecialChar LyX
25059 's possible label shortcuts
25063 \begin_layout Plain Layout
25064 \begin_inset Quotes eld
25068 \begin_inset Quotes erd
25071 is for example \SpecialChar LyX
25072 's shortcut for labels in figure captions.
25077 and is not internationalized.
25085 \begin_layout Subsection
25086 Automatic Reference Naming
25087 \begin_inset Index idx
25090 \begin_layout Plain Layout
25091 References ! Automatic Reference Naming
25099 \begin_layout Standard
25100 The \SpecialChar LaTeX
25106 \begin_inset Index idx
25109 \begin_layout Plain Layout
25111 -packages ! hyperref
25116 , that is enabled in the
25124 dialog, provides a very useful feature that cross-references automatically
25125 include the name of the referenced floats (or text parts like
25130 So you will save having to write e.
25131 \begin_inset space \thinspace{}
25135 \begin_inset space \space{}
25139 \begin_inset Quotes eld
25143 \begin_inset Quotes erd
25146 before every reference to a figure.
25147 To use this feature, enable
25151 and insert this line to the \SpecialChar LaTeX
25155 \begin_layout Standard
25171 \begin_layout Standard
25172 When you prefer other reference names than the default ones, for example
25173 you want instead of
25174 \begin_inset Quotes eld
25178 \begin_inset Quotes erd
25182 \begin_inset Quotes eld
25186 \begin_inset space \thinspace{}
25190 \begin_inset Quotes eld
25193 , you can redefine the name by inserting this in the preamble:
25196 \begin_layout Standard
25207 sectionautorefname}
25208 \begin_inset Newline newline
25212 \begin_inset Phantom HPhantom
25215 \begin_layout Plain Layout
25218 \begin_inset space ~
25231 \begin_layout Standard
25232 When you are using another document language than English, replace
25233 \begin_inset Newline newline
25248 , where *** is the name of the language used.
25251 \begin_layout Standard
25252 To get automatic names, but not for certain reference types, for example
25253 not for equations, use this preamble code:
25256 \begin_layout Standard
25267 equationautorefname}[1]{}}
25270 \begin_layout Standard
25271 More about this topic can be found in
25276 \begin_inset CommandInset citation
25285 \begin_layout Standard
25286 \begin_inset Note Greyedout
25289 \begin_layout Plain Layout
25294 Automatic reference naming cannot be used when you use cross-references
25298 \begin_inset space ~
25303 style, as described in section
25304 \begin_inset space ~
25308 \begin_inset CommandInset ref
25310 reference "subsec:Cross-Reference-Formats"
25322 \begin_layout Standard
25327 manual is an example where automatic reference naming is used.
25330 \begin_layout Subsection
25332 \begin_inset CommandInset label
25334 name "subsec:Reference-Position"
25339 \begin_inset Index idx
25342 \begin_layout Plain Layout
25343 References ! Reference Position
25351 \begin_layout Standard
25357 \begin_inset Index idx
25360 \begin_layout Plain Layout
25362 -packages ! hyperref
25375 dialog to link cross-references in the output, you will see that clicking
25376 on an image float reference jumps to the image label.
25377 The caption will be the first text part on the screen, so that you cannot
25378 see the image without scrolling.
25379 This is because the reference link anchor is placed at the position of
25381 With the use of the package
25386 \begin_inset Index idx
25389 \begin_layout Plain Layout
25396 , which is part of the \SpecialChar LaTeX
25402 \begin_inset Index idx
25405 \begin_layout Plain Layout
25407 -packages ! oberdiek
25412 , the link anchor is placed at the beginning of a float.
25413 To use this feature for figure floats, load
25417 in the document preamble with the line
25420 \begin_layout Standard
25425 usepackage[figure]{hypcap}
25428 \begin_layout Standard
25433 for all float types but this is not recommended for stability reasons.
25434 For more information, have a look at
25439 \begin_inset CommandInset citation
25448 \begin_layout Standard
25449 \begin_inset Note Greyedout
25452 \begin_layout Plain Layout
25461 has no effect on references to subfigures.
25469 \begin_layout Section
25471 \begin_inset CommandInset label
25473 name "sec:Float-Placement"
25478 \begin_inset Index idx
25481 \begin_layout Plain Layout
25490 \begin_layout Standard
25491 Right-clicking on a float-box and clicking on
25495 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25497 positioning the float.
25498 \begin_inset Newline newline
25504 \begin_inset space ~
25509 is only useful for two-column documents: If you select it, the float will
25510 span both columns on the page instead of being confined to just one.
25511 \begin_inset Newline newline
25517 \begin_inset space ~
25522 is used to rotate floats, see section
25523 \begin_inset CommandInset ref
25525 reference "sec:Rotated-Floats"
25532 \begin_layout Standard
25533 You can use one or more of the following options in the float dialog to
25534 set the placement for a particular float when you uncheck the option
25537 \begin_inset space ~
25541 \begin_inset space ~
25549 \begin_layout Description
25551 \begin_inset space ~
25555 \begin_inset space ~
25558 possible try to place the float on the position where it has been inserted
25561 \begin_layout Description
25563 \begin_inset space ~
25567 \begin_inset space ~
25570 page try to place the float at the top of the current page
25573 \begin_layout Description
25575 \begin_inset space ~
25579 \begin_inset space ~
25582 page try to place the float at the bottom of the current page
25585 \begin_layout Description
25587 \begin_inset space ~
25591 \begin_inset space ~
25594 floats try to place the float on its own page
25597 \begin_layout Standard
25598 The order of the above option is
25602 used by \SpecialChar LaTeX
25604 That means, if you use the default placement, \SpecialChar LaTeX
25608 \begin_inset space ~
25612 \begin_inset space ~
25620 \begin_inset space ~
25624 \begin_inset space ~
25629 , and then the others.
25630 If you do not use the default, \SpecialChar LaTeX
25631 will try only the checked options but in
25634 \begin_inset space ~
25637 placements is possible the procedure is internally repeated trying to put
25638 the float on the following page.
25641 \begin_layout Standard
25642 By default, each option has its own rules:
25645 \begin_layout Labeling
25646 \labelwidthstring 00.00.0000
25650 \begin_inset space ~
25654 \begin_inset space ~
25659 only floats occupying less than 70
25660 \begin_inset space \thinspace{}
25663 % of the page can be placed at the top of a page (
25672 \begin_layout Labeling
25673 \labelwidthstring 00.00.0000
25677 \begin_inset space ~
25681 \begin_inset space ~
25686 : only floats occupying less than 30
25687 \begin_inset space \thinspace{}
25690 % of the page can be placed at the bottom of a page.
25700 \begin_layout Labeling
25701 \labelwidthstring 00.00.0000
25705 \begin_inset space ~
25709 \begin_inset space ~
25714 : only if more than 50
25715 \begin_inset space \thinspace{}
25718 % of the page is occupied by floats, several floats can be set together
25729 \begin_layout Standard
25730 If you don't like these rules, you can ignore them by using the additional
25734 \begin_inset space ~
25739 \begin_inset space ~
25745 \begin_inset Newline newline
25748 You can also redefine the rules with \SpecialChar LaTeX
25749 -commands that are given in parentheses
25750 after the rules description above.
25751 To increase for example the often too small default of the bottom-rule
25753 \begin_inset space \thinspace{}
25756 % of the page, add this line to your document preamble:
25759 \begin_layout Standard
25766 bottomfraction}{0.5}
25769 \begin_layout Standard
25770 Sometimes you might need, under all circumstances, a float to be placed
25771 exactly at the position where it is inserted.
25772 For this case you can use the option
25775 \begin_inset space ~
25781 Use this option very rarely and only if the document is almost ready to
25782 be printed, because the float is then no longer able to
25783 \begin_inset Quotes eld
25787 \begin_inset Quotes erd
25790 when you change your document and this will often destroy the page layout.
25793 \begin_layout Standard
25794 There are no placement options for text wrap floats, because they are always
25795 surrounded by the text of a certain paragraph.
25796 \begin_inset VSpace bigskip
25802 \begin_layout Standard
25803 Sometimes you have the problem that a float is placed at the top of a page
25804 while its corresponding section starts at the middle of the page, so that
25805 the reader could think the float is part of the previous section.
25806 To avoid this the \SpecialChar LaTeX
25814 It suppresses a given float placement for the page where it is inserted
25815 and can therefore be used to avoid floats being set before a section starts.
25816 To get this, add these commands to your document preamble:
25819 \begin_layout Standard
25829 \begin_inset Newline newline
25843 \begin_layout Standard
25844 You can define the same for all section headings, like chapters and subsections.
25845 This definition is not recommended to be used for small text parts like
25846 subsubsections because \SpecialChar LaTeX
25847 may then have problems finding a suitable placement.
25850 \begin_layout Standard
25851 \begin_inset VSpace bigskip
25854 In some cases it is required to have all figures/tables at the end of the
25856 For this purpose the \SpecialChar LaTeX
25862 \begin_inset Index idx
25865 \begin_layout Plain Layout
25867 -packages ! endfloat
25873 It puts all figure and table floats at the end of the document into their
25875 At the original float position a text hint like
25876 \begin_inset Quotes eld
25882 \begin_inset space ~
25888 \begin_inset Quotes erd
25892 The endfloat-package is loaded in the preamble with the line
25895 \begin_layout Standard
25900 usepackage[options]{endfloat}
25903 \begin_layout Standard
25904 There are various package options to format the created figure/table sections.
25905 For more information we refer you to the
25910 \begin_inset CommandInset citation
25917 \begin_inset Newline newline
25921 \begin_inset Note Greyedout
25924 \begin_layout Plain Layout
25929 doesn't provide an automatic translation for the text hint, you have to
25930 do this manually, see section
25931 \begin_inset space ~
25935 \begin_inset CommandInset citation
25947 \begin_inset Newline newline
25951 \begin_inset Note Greyedout
25954 \begin_layout Plain Layout
25959 There is currently a bug in
25963 when the caption contains a German
25964 \begin_inset Quotes eld
25968 \begin_inset Quotes erd
25972 Use in this case the command
25973 \begin_inset Quotes eld
25983 \begin_inset Quotes erd
25986 in \SpecialChar TeX
25988 \begin_inset Quotes eld
25992 \begin_inset Quotes erd
26003 \begin_layout Standard
26004 \begin_inset VSpace bigskip
26007 For more details about float placements, have a look at \SpecialChar LaTeX
26009 \begin_inset CommandInset citation
26011 key "latexcompanion,latexguide,latexbook"
26018 \begin_layout Section
26020 \begin_inset CommandInset label
26022 name "sec:Rotated-Floats"
26027 \begin_inset Index idx
26030 \begin_layout Plain Layout
26039 \begin_layout Standard
26040 Especially for wide tables you might have floats rotated.
26041 To rotate a whole float including the caption, right-click on the float-box
26045 \begin_inset space ~
26053 \begin_layout Standard
26054 Rotated floats are always placed on a page of their own (or column of their
26055 own; in case you have a multi-column document).
26056 You can let them span several columns using the float settings option
26059 \begin_inset space ~
26065 Floats are rotated so that you can read them from the outside margin.
26066 To force a certain rotation direction for all pages, you can add either
26075 to the document class options.
26078 \begin_layout Standard
26079 Referencing rotated floats is the same as for normal floats, the caption
26080 format is also the same: Table
26081 \begin_inset space ~
26085 \begin_inset CommandInset ref
26087 reference "tab:Rotated-table"
26091 is an example of a rotated table float.
26094 \begin_layout Standard
26095 \begin_inset Note Greyedout
26098 \begin_layout Plain Layout
26103 Not all DVI-viewers are able to display rotated floats.
26111 \begin_layout Standard
26112 \begin_inset Float table
26117 \begin_layout Plain Layout
26118 \begin_inset Caption Standard
26120 \begin_layout Plain Layout
26121 \begin_inset CommandInset label
26123 name "tab:Rotated-table"
26135 \begin_layout Plain Layout
26137 \begin_inset Tabular
26138 <lyxtabular version="3" rows="1" columns="5">
26139 <features tabularvalignment="middle">
26140 <column alignment="center" valignment="top">
26141 <column alignment="center" valignment="top">
26142 <column alignment="center" valignment="top">
26143 <column alignment="center" valignment="top">
26144 <column alignment="center" valignment="top">
26146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26149 \begin_layout Plain Layout
26155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26158 \begin_layout Plain Layout
26164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26167 \begin_layout Plain Layout
26173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26176 \begin_layout Plain Layout
26182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26185 \begin_layout Plain Layout
26204 \begin_layout Section
26206 \begin_inset Index idx
26209 \begin_layout Plain Layout
26218 \begin_layout Standard
26219 Subfloats are for example used when a figure consists of several images.
26220 They are created by inserting a float into an existing float.
26221 The placement of the subfloats can be controlled in the same way as for
26222 paragraphs as shown in table
26223 \begin_inset space ~
26227 \begin_inset CommandInset ref
26229 reference "tab:Two-subtables-side"
26234 \begin_inset CommandInset ref
26236 reference "tab:Two-subtables-upon"
26243 \begin_layout Standard
26244 Referencing subfloats works as for normal floats: Table
26245 \begin_inset space ~
26249 \begin_inset CommandInset ref
26251 reference "tab:This-is-subtable-a"
26256 \begin_inset CommandInset ref
26258 reference "tab:This-is-subtable-b"
26262 are subtables of table
26263 \begin_inset space ~
26267 \begin_inset CommandInset ref
26269 reference "tab:Two-subtables-side"
26276 \begin_layout Standard
26277 \begin_inset Float table
26282 \begin_layout Plain Layout
26283 \begin_inset Caption Standard
26285 \begin_layout Plain Layout
26286 \begin_inset CommandInset label
26288 name "tab:Two-subtables-side"
26292 Two subtables placed side by side.
26300 \begin_layout Plain Layout
26302 \begin_inset space \hfill{}
26306 \begin_inset Float table
26311 \begin_layout Plain Layout
26312 \begin_inset Caption Standard
26314 \begin_layout Plain Layout
26315 \begin_inset CommandInset label
26317 name "tab:This-is-subtable-a"
26321 This is subtable a.
26329 \begin_layout Plain Layout
26331 \begin_inset Tabular
26332 <lyxtabular version="3" rows="1" columns="5">
26333 <features tabularvalignment="middle">
26334 <column alignment="center" valignment="top">
26335 <column alignment="center" valignment="top">
26336 <column alignment="center" valignment="top">
26337 <column alignment="center" valignment="top">
26338 <column alignment="center" valignment="top">
26340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26343 \begin_layout Plain Layout
26349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26352 \begin_layout Plain Layout
26358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_layout Plain Layout
26367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26370 \begin_layout Plain Layout
26376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26379 \begin_layout Plain Layout
26396 \begin_inset space \hfill{}
26400 \begin_inset Float table
26405 \begin_layout Plain Layout
26406 \begin_inset Caption Standard
26408 \begin_layout Plain Layout
26409 \begin_inset CommandInset label
26411 name "tab:This-is-subtable-b"
26415 This is subtable b.
26423 \begin_layout Plain Layout
26425 \begin_inset Tabular
26426 <lyxtabular version="3" rows="1" columns="5">
26427 <features tabularvalignment="middle">
26428 <column alignment="center" valignment="top">
26429 <column alignment="center" valignment="top">
26430 <column alignment="center" valignment="top">
26431 <column alignment="center" valignment="top">
26432 <column alignment="center" valignment="top">
26434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26437 \begin_layout Plain Layout
26443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26446 \begin_layout Plain Layout
26452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26455 \begin_layout Plain Layout
26461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26464 \begin_layout Plain Layout
26470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26473 \begin_layout Plain Layout
26490 \begin_inset space \hfill{}
26501 \begin_layout Standard
26502 \begin_inset Float table
26507 \begin_layout Plain Layout
26508 \begin_inset Caption Standard
26510 \begin_layout Plain Layout
26511 \begin_inset CommandInset label
26513 name "tab:Two-subtables-upon"
26517 Two subtables placed one above the other.
26518 (a) table with 4 cells, (b) table with 5 cells.
26526 \begin_layout Plain Layout
26528 \begin_inset Float table
26533 \begin_layout Plain Layout
26534 \begin_inset Caption Standard
26536 \begin_layout Plain Layout
26545 \begin_layout Plain Layout
26547 \begin_inset Tabular
26548 <lyxtabular version="3" rows="1" columns="4">
26549 <features tabularvalignment="middle">
26550 <column alignment="center" valignment="top">
26551 <column alignment="center" valignment="top">
26552 <column alignment="center" valignment="top">
26553 <column alignment="center" valignment="top">
26555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26558 \begin_layout Plain Layout
26564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26567 \begin_layout Plain Layout
26573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26576 \begin_layout Plain Layout
26582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26585 \begin_layout Plain Layout
26604 \begin_layout Plain Layout
26606 \begin_inset Float table
26611 \begin_layout Plain Layout
26612 \begin_inset Caption Standard
26614 \begin_layout Plain Layout
26623 \begin_layout Plain Layout
26625 \begin_inset Tabular
26626 <lyxtabular version="3" rows="1" columns="5">
26627 <features tabularvalignment="middle">
26628 <column alignment="center" valignment="top">
26629 <column alignment="center" valignment="top">
26630 <column alignment="center" valignment="top">
26631 <column alignment="center" valignment="top">
26632 <column alignment="center" valignment="top">
26634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26637 \begin_layout Plain Layout
26643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26646 \begin_layout Plain Layout
26652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26655 \begin_layout Plain Layout
26661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26664 \begin_layout Plain Layout
26670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26673 \begin_layout Plain Layout
26697 \begin_layout Section
26698 Floats Side by Side
26699 \begin_inset Index idx
26702 \begin_layout Plain Layout
26703 Floats ! Side by side
26711 \begin_layout Standard
26712 To place floats side by side, as in Figures
26713 \begin_inset space ~
26717 \begin_inset CommandInset ref
26719 reference "fig:Float-left"
26724 \begin_inset CommandInset ref
26726 reference "fig:Float-right"
26735 In it two minipage boxes are inserted.
26739 \begin_layout Plain Layout
26740 Minipages are explained in section
26741 \begin_inset space ~
26745 \begin_inset CommandInset ref
26747 reference "sec:Minipages"
26756 The width is set to 45
26757 \begin_inset space \thinspace{}
26761 \begin_inset space \thinspace{}
26764 column% and the box alignment to
26769 The minipage boxes contain the image and the caption in the same way as
26770 they are in a float.
26771 The only difference is that the image unit
26774 \begin_inset space ~
26778 \begin_inset space ~
26783 is now calculated according to the width of the minipage boxes.
26786 \begin_layout Standard
26787 \begin_inset Float figure
26792 \begin_layout Plain Layout
26793 \begin_inset Box Frameless
26803 height_special "totalheight"
26808 backgroundcolor "none"
26811 \begin_layout Plain Layout
26813 \begin_inset Graphics
26814 filename clipart/mobius.eps
26817 scaleBeforeRotation
26824 \begin_layout Plain Layout
26825 \begin_inset Caption Standard
26827 \begin_layout Plain Layout
26828 \begin_inset CommandInset label
26830 name "fig:Float-left"
26834 Float on the left side.
26845 \begin_inset space \hfill{}
26849 \begin_inset Box Frameless
26859 height_special "totalheight"
26864 backgroundcolor "none"
26867 \begin_layout Plain Layout
26869 \begin_inset Graphics
26870 filename clipart/platypus.eps
26873 scaleBeforeRotation
26880 \begin_layout Plain Layout
26881 \begin_inset Caption Standard
26883 \begin_layout Plain Layout
26884 \begin_inset CommandInset label
26886 name "fig:Float-right"
26890 Float on the right side.
26903 \begin_layout Plain Layout
26910 \change_inserted 2047637253 1447344411
26914 \begin_layout Standard
26916 \change_inserted 2047637253 1447344943
26917 Putting two floats side-by-side is made simpler using variable-width minipages
26919 \begin_inset space ~
26923 \begin_inset CommandInset ref
26925 reference "sec:Varwidth"
26930 Variable-width minipages adapt automatically to the width of the figures.
26931 They do not require an explicit width to be given, and they improve the
26932 horizontal alignment of the figures.
26935 examples/varwidth-floats-side-by-side.lyx
26937 gives examples of how to do this.
26942 \begin_layout Section
26944 \begin_inset Index idx
26947 \begin_layout Plain Layout
26948 Caption ! Formatting
26954 \begin_inset Index idx
26957 \begin_layout Plain Layout
26958 Floats ! Caption Formatting
26964 \begin_inset CommandInset label
26966 name "sec:Caption-Formatting"
26973 \begin_layout Standard
26978 environment is the default paragraph environment for
26983 On the \SpecialChar LyX
26984 screen captions appear as a label, e.
26985 \begin_inset space \thinspace{}
26989 \begin_inset space \space{}
26993 \begin_inset Quotes eld
27001 \begin_inset Quotes erd
27004 followed by the caption text.
27006 \begin_inset Quotes eld
27010 \begin_inset Quotes erd
27013 is the actual reference number.
27014 By default the label and the number are in the same font as the caption
27015 text and a colon follows the number to divide the label from the text.
27016 This caption format is suitable for many but not all documents.
27020 \begin_layout Standard
27021 To change the default caption format, load the \SpecialChar LaTeX
27027 \begin_inset Index idx
27030 \begin_layout Plain Layout
27032 -packages ! caption
27037 in the document preamble with this line:
27040 \begin_layout Standard
27045 usepackage[format definition]{caption}
27048 \begin_layout Standard
27049 To have for example the label and the number in sans-serif, bold font and
27050 the table captions always above the table as in this document, use the
27054 \begin_layout Standard
27059 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27062 \begin_layout Standard
27063 You can also define different caption formats for the different float types.
27064 In this case load the
27068 package without format specific options and define the different formats
27069 with the help of the command
27072 \begin_layout Standard
27077 captionsetup[float type]{format definition}
27080 \begin_layout Standard
27081 in the document preamble.
27082 For example the caption formats of Figure
27083 \begin_inset space ~
27087 \begin_inset CommandInset ref
27089 reference "fig:This-is-an-fig"
27094 \begin_inset space ~
27098 \begin_inset CommandInset ref
27100 reference "tab:This-is-an-tab"
27104 can be created using these commands in the document preamble:
27107 \begin_layout Standard
27112 usepackage[tableposition=top]{caption}
27115 \begin_inset Newline newline
27122 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27123 \begin_inset Newline newline
27127 \begin_inset Phantom HPhantom
27130 \begin_layout Plain Layout
27135 captionsetup[figure]{
27141 \begin_inset Newline newline
27146 captionsetup[table]{labelfont={bf,sf}}
27149 \begin_layout Standard
27150 \begin_inset Note Greyedout
27153 \begin_layout Plain Layout
27162 has no effect when a
27167 \begin_inset Index idx
27170 \begin_layout Plain Layout
27172 -packages ! KOMA-Script
27177 document class is used.
27178 In this case the document class option
27180 captions=tableheading
27190 \begin_layout Standard
27191 For more information about the package
27195 we refer to its documentation
27196 \begin_inset CommandInset citation
27205 \begin_layout Standard
27206 To change the label name from e.
27207 \begin_inset space \thinspace{}
27211 \begin_inset space \space{}
27215 \begin_inset Quotes eld
27219 \begin_inset Quotes erd
27223 \begin_inset Quotes eld
27227 \begin_inset Quotes erd
27230 use this preamble command:
27233 \begin_layout Standard
27240 fnum@figure}{Image~
27245 \begin_layout Standard
27252 inserts the figure number and
27255 \begin_inset Quotes eld
27261 \begin_inset Quotes erd
27264 creates a protected space.
27267 \begin_layout Standard
27268 \begin_inset VSpace bigskip
27276 \begin_inset Index idx
27279 \begin_layout Plain Layout
27281 -packages ! KOMA-Script
27288 article (KOMA-Script)
27296 letter (KOMA-Script)
27300 report (KOMA-Script)
27303 \begin_inset space \thinspace{}
27306 ), you can alternatively to the
27314 's built-in command
27321 For example, to have the caption label in bold, add this command to your
27325 \begin_layout Standard
27330 setkomafont{captionlabel}{
27335 \begin_layout Standard
27336 For more information about
27347 \begin_inset CommandInset citation
27356 \begin_layout Standard
27360 \begin_layout Plain Layout
27364 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27371 \begin_inset Note Note
27374 \begin_layout Plain Layout
27375 The caption format is changed only for this example.
27383 \begin_layout Standard
27384 \begin_inset Float figure
27390 \begin_layout Plain Layout
27392 \begin_inset Graphics
27393 filename clipart/mobius.eps
27396 scaleBeforeRotation
27403 \begin_layout Plain Layout
27404 \begin_inset Caption Standard
27406 \begin_layout Plain Layout
27407 \begin_inset CommandInset label
27409 name "fig:This-is-an-fig"
27413 This is an example figure caption that is longer than one line to show the
27414 different caption format.
27415 Here a self-defined caption format is used.
27428 \begin_layout Standard
27432 \begin_layout Plain Layout
27436 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27445 \begin_layout Standard
27446 \begin_inset Float table
27452 \begin_layout Plain Layout
27453 \begin_inset Caption Standard
27455 \begin_layout Plain Layout
27456 \begin_inset CommandInset label
27458 name "tab:This-is-an-tab"
27462 This is an example table caption that is longer than one line to show the
27463 different caption format.
27464 Here the standard caption format for tables in this document is used.
27472 \begin_layout Plain Layout
27474 \begin_inset Tabular
27475 <lyxtabular version="3" rows="1" columns="5">
27476 <features tabularvalignment="middle">
27477 <column alignment="center" valignment="top">
27478 <column alignment="center" valignment="top">
27479 <column alignment="center" valignment="top">
27480 <column alignment="center" valignment="top">
27481 <column alignment="center" valignment="top">
27483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27486 \begin_layout Plain Layout
27492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27495 \begin_layout Plain Layout
27501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27504 \begin_layout Plain Layout
27510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27513 \begin_layout Plain Layout
27519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27522 \begin_layout Plain Layout
27541 \begin_layout Section
27543 \begin_inset Index idx
27546 \begin_layout Plain Layout
27547 Caption ! Placement
27553 \begin_inset Index idx
27556 \begin_layout Plain Layout
27557 Floats ! Caption Placement
27563 \begin_inset CommandInset label
27565 name "sec:Caption-Placement"
27572 \begin_layout Standard
27573 The common caption placement rule is:
27576 \begin_layout Description
27577 Figure: Caption is set below the figure
27580 \begin_layout Description
27581 Table: Caption is set above the table
27584 \begin_layout Standard
27585 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27588 That means if you are using the document classes
27604 there will be no space between the caption and the table.
27605 To insert the necessary space, load the \SpecialChar LaTeX
27611 \begin_inset Index idx
27614 \begin_layout Plain Layout
27616 -packages ! caption
27621 in your document preamble with the option
27625 \begin_layout Plain Layout
27627 \begin_inset space ~
27631 \begin_inset CommandInset ref
27633 reference "sec:Caption-Formatting"
27637 for more information of the package
27649 \begin_layout Standard
27655 \begin_layout Standard
27661 \begin_inset Index idx
27664 \begin_layout Plain Layout
27666 -packages ! KOMA-Script
27673 article (KOMA-Script)
27681 letter (KOMA-Script)
27685 report (KOMA-Script)
27688 \begin_inset space \thinspace{}
27691 ), you can alternatively to the
27695 package set the document class option
27699 \begin_layout Plain Layout
27700 That option is used in this document.
27708 \begin_layout Standard
27711 captions=tableheading
27714 \begin_layout Standard
27715 In documents with a KOMA-Script document class you can also right-click
27716 on a caption and mark in the context menu if this should be a caption above
27717 or below the table/figure.
27718 This way you can override the document-wide caption placement for certain
27721 \begin_inset space ~
27725 \begin_inset CommandInset ref
27727 reference "tab:A-caption-marked"
27731 is an example where the caption is marked a being below the table while
27733 For comparison the caption in Table
27734 \begin_inset space ~
27738 \begin_inset CommandInset ref
27740 reference "tab:A-standard-table"
27747 \begin_layout Standard
27748 \begin_inset Float table
27753 \begin_layout Plain Layout
27754 \begin_inset Caption Below
27756 \begin_layout Plain Layout
27757 \begin_inset CommandInset label
27759 name "tab:A-caption-marked"
27763 A caption marked as being below the table.
27771 \begin_layout Plain Layout
27773 \begin_inset Tabular
27774 <lyxtabular version="3" rows="3" columns="3">
27775 <features tabularvalignment="middle">
27776 <column alignment="center" valignment="top" width="0pt">
27777 <column alignment="center" valignment="top" width="0pt">
27778 <column alignment="center" valignment="top" width="0pt">
27780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27783 \begin_layout Plain Layout
27789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27792 \begin_layout Plain Layout
27798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27801 \begin_layout Plain Layout
27809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27812 \begin_layout Plain Layout
27818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27821 \begin_layout Plain Layout
27827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27830 \begin_layout Plain Layout
27838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27841 \begin_layout Plain Layout
27842 \begin_inset Formula $\int x^{2}dx$
27850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27853 \begin_layout Plain Layout
27854 \begin_inset Formula $\left[\begin{array}{cc}
27857 \end{array}\right]$
27865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27868 \begin_layout Plain Layout
27869 \begin_inset Formula $1+1=2$
27890 \begin_layout Standard
27891 \begin_inset Float table
27896 \begin_layout Plain Layout
27897 \begin_inset Caption Standard
27899 \begin_layout Plain Layout
27900 \begin_inset CommandInset label
27902 name "tab:A-standard-table"
27906 A standard table caption.
27914 \begin_layout Plain Layout
27916 \begin_inset Tabular
27917 <lyxtabular version="3" rows="3" columns="3">
27918 <features tabularvalignment="middle">
27919 <column alignment="center" valignment="top" width="0pt">
27920 <column alignment="center" valignment="top" width="0pt">
27921 <column alignment="center" valignment="top" width="0pt">
27923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27926 \begin_layout Plain Layout
27932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27935 \begin_layout Plain Layout
27941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27944 \begin_layout Plain Layout
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27955 \begin_layout Plain Layout
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27964 \begin_layout Plain Layout
27970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27973 \begin_layout Plain Layout
27981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27984 \begin_layout Plain Layout
27985 \begin_inset Formula $\int x^{2}dx$
27993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27996 \begin_layout Plain Layout
27997 \begin_inset Formula $\left[\begin{array}{cc}
28000 \end{array}\right]$
28008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28011 \begin_layout Plain Layout
28012 \begin_inset Formula $1+1=2$
28033 \begin_layout Standard
28034 \begin_inset VSpace bigskip
28037 It is also possible to set the caption beside a figure or table.
28038 To get this the \SpecialChar LaTeX
28044 \begin_inset Index idx
28047 \begin_layout Plain Layout
28049 -packages ! sidecap
28054 has to be loaded in the document preamble with the line
28057 \begin_layout Standard
28062 usepackage[option]{sidecap}
28065 \begin_layout Standard
28066 If you set no option, the caption is placed on the side of the outer page
28067 margin – to the right on odd pages, to the left on even pages.
28068 You can change the placement to inner margin with the option
28073 To force the placement always to the right or left, use the option
28084 \begin_layout Standard
28088 \begin_layout Plain Layout
28098 \begin_inset Note Note
28101 \begin_layout Plain Layout
28102 The following section will only be displayed when the \SpecialChar LaTeX
28115 \begin_layout Standard
28116 To place in \SpecialChar LyX
28117 the caption of a float on the side, it is necessary to add
28118 these commands to the document preamble:
28121 \begin_layout Standard
28123 \begin_inset CommandInset line
28134 \begin_layout Standard
28141 TabBesBeg}[1][1.0]{%
28142 \begin_inset Newline newline
28146 \begin_inset Phantom HPhantom
28149 \begin_layout Plain Layout
28150 \begin_inset space ~
28165 \begin_inset Newline newline
28169 \begin_inset Phantom HPhantom
28172 \begin_layout Plain Layout
28175 \begin_inset space ~
28190 \begin_inset Newline newline
28194 \begin_inset Phantom HPhantom
28197 \begin_layout Plain Layout
28200 \begin_inset space ~
28210 renewenvironment{table}[1]{
28212 begin{SCtable}[#1]##1}{
28217 \begin_layout Standard
28225 \begin_inset Newline newline
28229 \begin_inset Phantom HPhantom
28232 \begin_layout Plain Layout
28233 \begin_inset space ~
28248 \begin_inset Newline newline
28252 \begin_inset Phantom HPhantom
28255 \begin_layout Plain Layout
28256 \begin_inset space ~
28273 \begin_layout Standard
28280 FigBesBeg}[1][1.0]{%
28281 \begin_inset Newline newline
28285 \begin_inset Phantom HPhantom
28288 \begin_layout Plain Layout
28289 \begin_inset space ~
28304 \begin_inset Newline newline
28308 \begin_inset Phantom HPhantom
28311 \begin_layout Plain Layout
28312 \begin_inset space ~
28327 \begin_inset Newline newline
28331 \begin_inset Phantom HPhantom
28334 \begin_layout Plain Layout
28335 \begin_inset space ~
28345 renewenvironment{figure}[1]{
28347 begin{SCfigure}[#1]##1}{
28352 \begin_layout Standard
28360 \begin_inset Newline newline
28364 \begin_inset Phantom HPhantom
28367 \begin_layout Plain Layout
28368 \begin_inset space ~
28383 \begin_inset Newline newline
28387 \begin_inset Phantom HPhantom
28390 \begin_layout Plain Layout
28391 \begin_inset space ~
28408 \begin_layout Standard
28410 \begin_inset CommandInset line
28421 \begin_layout Standard
28422 The commands allow you to redefine the floats so that the caption is set
28424 For figure floats use the command
28427 \begin_layout Standard
28435 \begin_layout Standard
28436 in \SpecialChar TeX
28437 Code before the float.
28438 And insert the command
28441 \begin_layout Standard
28449 \begin_layout Standard
28450 in \SpecialChar TeX
28451 Code at the point where you want to get back to the original float definitio
28455 \begin_layout Standard
28456 For table floats use the corresponding commands
28459 \begin_layout Standard
28473 \begin_layout Standard
28475 \begin_inset space ~
28479 \begin_inset CommandInset ref
28481 reference "fig:cap-beside-fig"
28486 \begin_inset space ~
28490 \begin_inset CommandInset ref
28492 reference "tab:cap-beside-tab"
28496 are examples where the caption is set beside.
28499 \begin_layout Standard
28500 You can see in the examples that the caption text appears at the top of
28501 the floats for table floats and at the bottom for figure floats.
28502 To change this, you can use the command
28505 \begin_layout Standard
28510 sidecaptionvpos{float type}{placement}
28513 \begin_layout Standard
28514 in the document preamble or in \SpecialChar TeX
28515 Code before the float.
28516 The float type is either
28524 , the placement can be
28525 \begin_inset Quotes eld
28533 \begin_inset Quotes erd
28537 \begin_inset Quotes eld
28545 \begin_inset Quotes erd
28549 \begin_inset Quotes eld
28557 \begin_inset Quotes erd
28561 To have for example the caption of figure floats vertically centered, use
28565 \begin_layout Standard
28570 sidecaptionvpos{figure}{c}
28573 \begin_layout Standard
28574 This was used for Figure
28575 \begin_inset space ~
28579 \begin_inset CommandInset ref
28581 reference "fig:cap-beside-fig-2"
28588 \begin_layout Standard
28589 \begin_inset VSpace medskip
28595 \begin_layout Standard
28596 The default caption width is the width of the image/table.
28597 For thin image/tables, like in Table
28598 \begin_inset space ~
28602 \begin_inset CommandInset ref
28604 reference "tab:cap-beside-tab"
28608 , this leads to captions that are too thin.
28609 You can increase the width by specifying a factor that will be multiplied
28610 with the image/table width to get the caption width.
28611 The caption width will automatically be recalculated in case it would protrude
28612 over the page or column margin due to the specified width.
28617 can either be given as optional argument for
28626 \begin_layout Standard
28634 \begin_layout Standard
28635 or in the definition of
28645 with another value.
28646 If you do the latter, your factor will be the default if
28652 is used without an argument.
28654 \begin_inset space ~
28658 \begin_inset CommandInset ref
28660 reference "tab:cap-beside-tab-wider"
28664 the factor 5 was used.
28667 \begin_layout Standard
28668 \begin_inset Note Greyedout
28671 \begin_layout Plain Layout
28676 For floats with captions set beside, you cannot use the float placement
28680 \begin_inset space ~
28685 because it is not supported by
28697 \begin_layout Standard
28698 \begin_inset VSpace medskip
28701 For more information about the package
28705 we refer to its documentation
28706 \begin_inset CommandInset citation
28715 \begin_layout Standard
28716 \begin_inset Note Greyedout
28719 \begin_layout Plain Layout
28724 The \SpecialChar LaTeX
28730 \begin_inset Index idx
28733 \begin_layout Plain Layout
28740 , described in section
28741 \begin_inset space ~
28745 \begin_inset CommandInset ref
28747 reference "subsec:Reference-Position"
28751 , has no effect on floats with the caption set beside.
28759 \begin_layout Standard
28763 \begin_layout Plain Layout
28775 \begin_layout Standard
28776 \begin_inset Float figure
28781 \begin_layout Plain Layout
28782 \begin_inset Graphics
28783 filename clipart/escher-lsd.eps
28785 scaleBeforeRotation
28792 \begin_layout Plain Layout
28793 \begin_inset Caption Standard
28795 \begin_layout Plain Layout
28796 \begin_inset CommandInset label
28798 name "fig:cap-beside-fig"
28802 This is a caption beside a figure.
28815 \begin_layout Standard
28819 \begin_layout Plain Layout
28831 \begin_layout Standard
28835 \begin_layout Plain Layout
28847 \begin_layout Standard
28848 \begin_inset Float table
28853 \begin_layout Plain Layout
28854 \begin_inset Caption Standard
28856 \begin_layout Plain Layout
28857 \begin_inset CommandInset label
28859 name "tab:cap-beside-tab"
28863 This is a caption beside a table.
28871 \begin_layout Plain Layout
28872 \begin_inset Tabular
28873 <lyxtabular version="3" rows="4" columns="5">
28874 <features tabularvalignment="middle">
28875 <column alignment="center" valignment="top">
28876 <column alignment="center" valignment="top">
28877 <column alignment="center" valignment="top">
28878 <column alignment="center" valignment="top">
28879 <column alignment="center" valignment="top">
28881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28884 \begin_layout Plain Layout
28890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28893 \begin_layout Plain Layout
28899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28902 \begin_layout Plain Layout
28908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28911 \begin_layout Plain Layout
28917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28920 \begin_layout Plain Layout
28928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28931 \begin_layout Plain Layout
28937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28940 \begin_layout Plain Layout
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28949 \begin_layout Plain Layout
28955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28958 \begin_layout Plain Layout
28964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28967 \begin_layout Plain Layout
28975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28978 \begin_layout Plain Layout
28984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28987 \begin_layout Plain Layout
28993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28996 \begin_layout Plain Layout
29002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29005 \begin_layout Plain Layout
29011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29014 \begin_layout Plain Layout
29022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29025 \begin_layout Plain Layout
29031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29034 \begin_layout Plain Layout
29040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29043 \begin_layout Plain Layout
29049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29052 \begin_layout Plain Layout
29058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29061 \begin_layout Plain Layout
29080 \begin_layout Standard
29084 \begin_layout Plain Layout
29096 \begin_layout Standard
29100 \begin_layout Plain Layout
29113 \begin_layout Plain Layout
29117 sidecaptionvpos{figure}{c}
29123 \begin_inset Float figure
29128 \begin_layout Plain Layout
29129 \begin_inset Graphics
29130 filename clipart/escher-lsd.eps
29132 scaleBeforeRotation
29139 \begin_layout Plain Layout
29140 \begin_inset Caption Standard
29142 \begin_layout Plain Layout
29143 \begin_inset CommandInset label
29145 name "fig:cap-beside-fig-2"
29149 This is a vertically centered caption beside a figure.
29162 \begin_layout Standard
29166 \begin_layout Plain Layout
29178 \begin_layout Standard
29182 \begin_layout Plain Layout
29194 \begin_layout Standard
29195 \begin_inset Float table
29200 \begin_layout Plain Layout
29201 \begin_inset Caption Standard
29203 \begin_layout Plain Layout
29204 \begin_inset CommandInset label
29206 name "tab:cap-beside-tab-wider"
29210 This caption is wider than the one in Table
29211 \begin_inset space ~
29215 \begin_inset CommandInset ref
29217 reference "tab:cap-beside-tab"
29229 \begin_layout Plain Layout
29230 \begin_inset Tabular
29231 <lyxtabular version="3" rows="4" columns="5">
29232 <features tabularvalignment="middle">
29233 <column alignment="center" valignment="top">
29234 <column alignment="center" valignment="top">
29235 <column alignment="center" valignment="top">
29236 <column alignment="center" valignment="top">
29237 <column alignment="center" valignment="top">
29239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29242 \begin_layout Plain Layout
29248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29251 \begin_layout Plain Layout
29257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29260 \begin_layout Plain Layout
29266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29269 \begin_layout Plain Layout
29275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29278 \begin_layout Plain Layout
29286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29289 \begin_layout Plain Layout
29295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29298 \begin_layout Plain Layout
29304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29307 \begin_layout Plain Layout
29313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29316 \begin_layout Plain Layout
29322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29325 \begin_layout Plain Layout
29333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29336 \begin_layout Plain Layout
29342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29345 \begin_layout Plain Layout
29351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29354 \begin_layout Plain Layout
29360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29363 \begin_layout Plain Layout
29369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29372 \begin_layout Plain Layout
29380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29383 \begin_layout Plain Layout
29389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29392 \begin_layout Plain Layout
29398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29401 \begin_layout Plain Layout
29407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29410 \begin_layout Plain Layout
29416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29419 \begin_layout Plain Layout
29438 \begin_layout Standard
29442 \begin_layout Plain Layout
29454 \begin_layout Standard
29458 \begin_layout Plain Layout
29468 \begin_inset Note Note
29471 \begin_layout Plain Layout
29472 The following will be displayed when the \SpecialChar LaTeX
29485 \begin_layout Standard
29486 You need to install the \SpecialChar LaTeX
29491 to see the following part of this section in the output.
29494 \begin_layout Standard
29498 \begin_layout Plain Layout
29510 \begin_layout Section
29512 \begin_inset Index idx
29515 \begin_layout Plain Layout
29516 Floats ! Float Lists
29524 \begin_layout Standard
29525 Similar to the table of contents where the sections of the document are
29526 listed, there are listings for all float types, like the figures of the
29528 You can insert them via the
29530 Insert\SpecialChar menuseparator
29532 \begin_inset space ~
29536 \begin_inset space ~
29544 \begin_layout Standard
29545 The list entries are the float captions or its short title, the float number,
29546 and the page number where they appear in the document.
29549 \begin_layout Standard
29550 You can find the list of figures and tables at the end of this document.
29553 \begin_layout Chapter
29557 \begin_layout Section
29560 \begin_inset Index idx
29563 \begin_layout Plain Layout
29564 Notes ! \SpecialChar LyX
29573 \begin_layout Standard
29574 Notes are inserted with the toolbar button
29582 Insert\SpecialChar menuseparator
29586 There are three types of notes:
29589 \begin_layout Description
29592 \begin_inset space ~
29595 Note This note type is for internal notes that won't appear in the output.
29596 Its note-box looks like this:
29597 \begin_inset Newline newline
29601 \begin_inset Newline newline
29605 \begin_inset Graphics
29606 filename clipart/LyXNoteImageQt4.png
29609 scaleBeforeRotation
29614 \begin_inset Note Note
29617 \begin_layout Plain Layout
29618 This is text in a note box that doesn't appear in the output.
29626 \begin_layout Description
29627 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29629 when you export the document to \SpecialChar LaTeX
29632 File\SpecialChar menuseparator
29633 Export\SpecialChar menuseparator
29635 (pdflatex) / (plain)
29638 Its note-box looks like this:
29639 \begin_inset Newline newline
29643 \begin_inset Newline newline
29647 \begin_inset Graphics
29648 filename clipart/CommentNoteImageQt4.png
29651 scaleBeforeRotation
29656 \begin_inset Note Comment
29659 \begin_layout Plain Layout
29660 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29669 \begin_layout Description
29671 \begin_inset space ~
29674 Out This note will appear in the output as grey text.
29675 Its note-box looks like this:
29676 \begin_inset Newline newline
29680 \begin_inset Newline newline
29684 \begin_inset Graphics
29685 filename clipart/GreyedOutNoteImageQt4.png
29688 scaleBeforeRotation
29693 \begin_inset Newline newline
29700 \begin_layout Plain Layout
29704 renewenvironment{lyxgreyedout}
29707 \begin_layout Plain Layout
29711 textcolor[gray]{0.8}
29721 \begin_inset Note Greyedout
29724 \begin_layout Plain Layout
29729 \begin_layout Plain Layout
29730 This is an example footnote within a greyed out note.
29735 of a comment that appears in the output as grey text.
29744 \begin_layout Plain Layout
29748 renewenvironment{lyxgreyedout}
29751 \begin_layout Plain Layout
29765 \begin_inset Note Note
29768 \begin_layout Plain Layout
29769 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29771 because greyed out notes are redefined in the preamble of this document,
29772 as described below, to have blue text.
29778 \begin_inset Newline newline
29782 \begin_inset Newline newline
29785 As you can see in the example, the first line of greyed out notes is a bit
29786 indented and greyed out notes can have footnotes.
29789 \begin_layout Standard
29790 \begin_inset VSpace bigskip
29793 When you use the toolbar button
29803 \begin_inset space ~
29809 You can switch between the three note types by right-clicking on the note-box.
29814 If you want to turn existing text into a note, mark it and click on the
29828 To change a note to text, press the backspace key when the cursor is in
29829 the first position of a note, or press the delete key when the cursor is
29830 in the very last position of the note, respectively.
29833 \begin_layout Standard
29834 \begin_inset VSpace bigskip
29837 You can change the text color of the greyed out notes in the menu
29839 Document\SpecialChar menuseparator
29840 Settings\SpecialChar menuseparator
29846 \begin_layout Section
29848 \begin_inset CommandInset label
29850 name "sec:Footnotes"
29855 \begin_inset Index idx
29858 \begin_layout Plain Layout
29865 \begin_inset Index idx
29868 \begin_layout Plain Layout
29877 \begin_layout Standard
29878 Footnotes can be inserted using the toolbar button
29881 arg "footnote-insert"
29886 Insert\SpecialChar menuseparator
29890 You will then see the following footnote-box:
29891 \begin_inset Graphics
29892 filename clipart/footnoteQt4.png
29894 scaleBeforeRotation
29902 where you can enter the footnote text.
29903 If you want to turn existing text into a footnote, mark it and click on
29929 key when the cursor is in the first position of a
29941 key when the cursor is in the very last position of the
29952 \begin_layout Standard
29953 Here is an example footnote:
29961 \begin_layout Plain Layout
29962 \begin_inset CommandInset label
29964 name "foot:This-is-an"
29968 This is an example footnote.
29981 \begin_layout Plain Layout
29985 newcounter{MyRepeatFoot}
29988 \begin_layout Plain Layout
29992 setcounter{MyRepeatFoot}{
30002 \begin_layout Standard
30003 The footnote will appear in the output as a superscript number at the text
30004 position where the footnote box is placed.
30005 The footnote text is placed at the bottom of the current page.
30006 The footnote number is calculated by \SpecialChar LaTeX
30007 ; the numbers are consecutive.
30008 Whether the footnote number is reset for every chapter depends on your
30012 \begin_layout Standard
30013 Footnotes can be referenced like floats: Insert a label into the footnote
30014 and cross-reference this label in the text as described in section
30015 \begin_inset space ~
30019 \begin_inset CommandInset ref
30021 reference "sec:Referencing-Floats"
30026 \begin_inset Newline newline
30029 This is a cross-reference of Footnote
30030 \begin_inset space ~
30034 \begin_inset CommandInset ref
30036 reference "foot:This-is-an"
30043 \begin_layout Standard
30044 \begin_inset VSpace defskip
30047 Footnotes in title environments are usually not numbered with symbols and
30048 they cannot contain several paragraphs.
30049 See for example the footnote in the titling of this document.
30052 \begin_layout Standard
30053 \begin_inset VSpace defskip
30056 Footnotes in tables are not printed by \SpecialChar LaTeX
30057 due to technical reasons.
30058 However there exists another method to print them: Instead of the footnote
30065 is inserted as \SpecialChar TeX
30067 The text of the footnote is entered as an argument of the \SpecialChar TeX
30076 \begin_inset Newline newline
30079 This was done for the following table with the command
30082 \begin_layout Standard
30089 Printed table footnote.
30094 \begin_layout Standard
30095 \begin_inset Tabular
30096 <lyxtabular version="3" rows="2" columns="1">
30097 <features tabularvalignment="middle">
30098 <column alignment="center" valignment="top">
30100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30103 \begin_layout Plain Layout
30104 This an example text.
30108 \begin_layout Plain Layout
30109 This footnote will not be printed!
30121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30124 \begin_layout Plain Layout
30125 This an example text.
30129 \begin_layout Plain Layout
30152 \begin_layout Plain Layout
30161 Printed table footnote.
30165 \begin_layout Plain Layout
30175 \begin_layout Standard
30176 Footnotes in longtables are described in section
30177 \begin_inset space ~
30181 \begin_inset CommandInset ref
30183 reference "subsec:Footnotes-in-Longtables"
30190 \begin_layout Standard
30191 Footnotes in minipage boxes are printed, but inside the box and with a different
30192 numbering because a minipage box is like a page inside a page.
30193 (For more about minipages, see section
30194 \begin_inset space ~
30198 \begin_inset CommandInset ref
30200 reference "sec:Minipages"
30204 .) To get a footnote in the minipage that is output at the bottom of the
30205 page like normal footnotes, also use the method of
30220 \begin_layout Standard
30221 \begin_inset Box Frameless
30231 height_special "totalheight"
30236 backgroundcolor "none"
30239 \begin_layout Plain Layout
30240 This an example text in a minipage.
30244 \begin_layout Plain Layout
30245 Footnote in the minipage.
30253 \begin_layout Plain Layout
30254 This an example text in a minipage.
30258 \begin_layout Plain Layout
30275 \begin_layout Standard
30279 \begin_layout Plain Layout
30288 Footnote outside the minipage.
30292 \begin_layout Plain Layout
30302 \begin_layout Standard
30303 \begin_inset VSpace defskip
30309 \begin_layout Standard
30310 To refer to the same footnote several times without printing the footnote
30311 text every time, use the command
30315 footnotemark[number]
30317 in \SpecialChar TeX
30319 \begin_inset Newline newline
30322 As you do not know the number of the repeating footnote while you are writing
30323 the text, you have to store its number.
30324 For the following footnote mark example, these commands were inserted in
30326 code after Footnote
30327 \begin_inset space ~
30331 \begin_inset CommandInset ref
30333 reference "foot:This-is-an"
30337 to store the footnote number:
30340 \begin_layout Standard
30345 newcounter{MyRepeatFoot}
30346 \begin_inset Newline newline
30351 setcounter{MyRepeatFoot}{
30356 \begin_layout Standard
30357 The footnote mark was then created with this command:
30360 \begin_layout Standard
30370 \begin_layout Standard
30371 Here is a repeated footnote:
30379 \begin_layout Plain Layout
30393 \begin_layout Standard
30394 If you want to repeat the previous footnote, you can omit the storage of
30395 the footnote number and just use this command instead:
30398 \begin_layout Standard
30408 \begin_layout Standard
30409 Here is another repeated footnote:
30417 \begin_layout Plain Layout
30431 \begin_layout Subsection
30433 \begin_inset CommandInset label
30435 name "subsec:Footnote-Numbering"
30440 \begin_inset Index idx
30443 \begin_layout Plain Layout
30444 Footnotes ! Numbering
30452 \begin_layout Standard
30453 To reset the footnote number back to 1 after each section
30455 , add this command to your document preamble:
30458 \begin_layout Standard
30463 @addtoreset{footnote}{section}
30466 \begin_layout Standard
30467 \begin_inset VSpace bigskip
30470 The following preamble command changes the footnote numbering style to small
30474 \begin_layout Standard
30486 \begin_layout Standard
30490 \begin_layout Plain Layout
30503 This is a footnote with roman numbering:
30507 \begin_layout Plain Layout
30508 This is an example footnote with roman numbering.
30516 \begin_layout Standard
30517 To change the numbering style to capital roman numerals replace in the command
30532 \begin_inset Quotes eld
30536 \begin_inset Quotes erd
30539 footnotes with capital or small Latin letters use
30553 \begin_inset Quotes eld
30557 \begin_inset Quotes erd
30560 footnotes with symbols use
30569 \begin_layout Standard
30570 \begin_inset Note Greyedout
30573 \begin_layout Plain Layout
30578 You can only number 26 footnotes with Latin letters, because this numbering
30579 is limited to single letters.
30585 \begin_inset Newline newline
30589 \begin_inset Note Greyedout
30592 \begin_layout Plain Layout
30597 You can only number 9 footnotes with symbols.
30605 \begin_layout Standard
30606 To return to the default numbering style after you have changed to another
30619 in the command above.
30623 \begin_layout Plain Layout
30639 \begin_layout Standard
30640 \begin_inset VSpace bigskip
30646 \begin_layout Standard
30647 If you want to have footnotes numbered in the scheme
30648 \begin_inset Quotes eld
30652 \begin_inset Quotes erd
30655 , add the following command to your document preamble:
30658 \begin_layout Standard
30663 numberwithin{footnote}{chapter}
30666 \begin_layout Standard
30667 To be able to use the command
30676 \begin_inset space ~
30681 in the document settings the option
30684 \begin_inset space ~
30688 \begin_inset space ~
30692 \begin_inset space ~
30700 \begin_layout Standard
30704 \begin_layout Plain Layout
30708 numberwithin{footnote}{chapter}
30713 This is another example footnote:
30719 \begin_layout Plain Layout
30720 This is a footnote numbered in the scheme
30721 \begin_inset Quotes eld
30725 \begin_inset Quotes erd
30739 \begin_layout Plain Layout
30755 \begin_layout Standard
30756 \begin_inset Note Greyedout
30759 \begin_layout Plain Layout
30770 always prints out the footnote number as arabic number; previous redefinitions
30771 to get non-arabic numbers are overwritten.
30779 \begin_layout Standard
30780 So to get for example the scheme
30781 \begin_inset Quotes eld
30787 \begin_inset Quotes erd
30790 , use this command instead of
30799 \begin_layout Standard
30813 \begin_layout Subsection
30815 \begin_inset Index idx
30818 \begin_layout Plain Layout
30819 Footnotes ! Placement
30827 \begin_layout Standard
30828 If you have several footnotes in one page, they appear without vertical
30829 space between them at the bottom of the page.
30830 To make them more readable you can e.
30831 \begin_inset space \thinspace{}
30835 \begin_inset space \space{}
30839 \begin_inset space \thinspace{}
30842 mm space with the following preamble command:
30845 \begin_layout Standard
30855 \begin_inset Newline newline
30869 \begin_layout Standard
30870 \begin_inset VSpace bigskip
30873 In a two-column document the footnotes appear at the bottom of every column,
30875 \begin_inset space ~
30879 \begin_inset CommandInset ref
30881 reference "fig:Standard-footnote-placement"
30886 If the footnotes should only appear at the bottom of the right column,
30888 \begin_inset space ~
30892 \begin_inset CommandInset ref
30894 reference "fig:Footnote-placement-in"
30898 , use the \SpecialChar LaTeX
30904 \begin_inset Index idx
30907 \begin_layout Plain Layout
30909 -packages ! ftnright
30914 with this command in the document preamble:
30917 \begin_layout Standard
30922 usepackage{ftnright}
30925 \begin_layout Standard
30926 \begin_inset Float figure
30932 \begin_layout Plain Layout
30936 \begin_layout Plain Layout
30946 \begin_inset Graphics
30947 filename clipart/without_fntright.pdf
30949 scaleBeforeRotation
30957 \begin_layout Plain Layout
30967 \begin_layout Plain Layout
30968 \begin_inset Caption Standard
30970 \begin_layout Plain Layout
30971 \begin_inset CommandInset label
30973 name "fig:Standard-footnote-placement"
30977 Standard footnote placement in two-column documents.
30990 \begin_layout Standard
30991 \begin_inset Float figure
30997 \begin_layout Plain Layout
31001 \begin_layout Plain Layout
31011 \begin_inset Graphics
31012 filename clipart/with_fntright.pdf
31014 scaleBeforeRotation
31022 \begin_layout Plain Layout
31032 \begin_layout Plain Layout
31033 \begin_inset Caption Standard
31035 \begin_layout Plain Layout
31036 \begin_inset CommandInset label
31038 name "fig:Footnote-placement-in"
31042 Footnote placement in two-column documents when the \SpecialChar LaTeX
31060 \begin_layout Standard
31061 \begin_inset VSpace bigskip
31064 In some scientific literature it is usual to collect the footnotes and print
31065 them in a separate paragraph at the end of a section, as in Figure
31066 \begin_inset space ~
31070 \begin_inset CommandInset ref
31072 reference "fig:Endnotes"
31077 They are then called
31078 \begin_inset Quotes eld
31082 \begin_inset Quotes erd
31086 \begin_inset Index idx
31089 \begin_layout Plain Layout
31095 To use endnotes instead of footnotes in your document, load in the menu
31098 Document\SpecialChar menuseparator
31099 Settings\SpecialChar menuseparator
31105 \begin_inset space ~
31109 \begin_inset space ~
31115 To insert the collected footnotes, insert the command
31118 \begin_layout Standard
31126 \begin_layout Standard
31127 in \SpecialChar TeX
31128 Code at the end of a section or chapter.
31131 \begin_layout Standard
31132 \begin_inset Float figure
31137 \begin_layout Plain Layout
31142 \begin_layout Plain Layout
31152 \begin_inset Graphics
31153 filename clipart/endnotes.pdf
31154 scaleBeforeRotation
31162 \begin_layout Plain Layout
31172 \begin_layout Plain Layout
31173 \begin_inset Caption Standard
31175 \begin_layout Plain Layout
31176 \begin_inset CommandInset label
31178 name "fig:Endnotes"
31182 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31196 \begin_layout Standard
31197 \begin_inset VSpace medskip
31200 The paragraph heading for the endnotes isn't automatically translated into
31201 the document language, this must be done manually.
31202 The following preamble command translates the default English
31203 \begin_inset Quotes eld
31207 \begin_inset Quotes erd
31211 \begin_inset Quotes eld
31215 \begin_inset Quotes erd
31221 \begin_layout Standard
31228 notesname}{Anmerkungen}
31231 \begin_layout Standard
31232 \begin_inset VSpace medskip
31235 The numbering of endnotes can be changed like the footnote numbering as
31236 described in section
31237 \begin_inset space ~
31241 \begin_inset CommandInset ref
31243 reference "subsec:Footnote-Numbering"
31247 ; just replace the command
31260 To reset the endnote number use the command
31266 as described in section
31267 \begin_inset space ~
31271 \begin_inset CommandInset ref
31273 reference "subsec:Footnote-Numbering"
31277 and replace the command parameter
31288 \begin_layout Standard
31289 For endnotes there is the command
31293 endnotemark[number]
31295 similar to the command
31301 , that is described in section
31302 \begin_inset space ~
31306 \begin_inset CommandInset ref
31308 reference "sec:Footnotes"
31315 \begin_layout Standard
31316 \begin_inset VSpace bigskip
31319 Footnotes can also be placed in the page margin and the footnote text alignment
31320 can be changed, see the \SpecialChar LaTeX
31326 \begin_inset Index idx
31329 \begin_layout Plain Layout
31331 -packages ! footmisc
31337 \begin_inset CommandInset citation
31343 for more information about this.
31346 \begin_layout Standard
31347 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31349 \begin_inset CommandInset citation
31351 key "latexcompanion,latexguide,latexbook"
31361 \begin_inset Index idx
31364 \begin_layout Plain Layout
31366 -packages ! KOMA-Script
31371 document class, you can adjust all footnote settings using class-specific
31373 \begin_inset CommandInset citation
31382 \begin_layout Section
31384 \begin_inset Index idx
31387 \begin_layout Plain Layout
31388 Notes ! Margin Notes
31396 \begin_layout Standard
31397 Margin notes look and behave in \SpecialChar LyX
31399 They are inserted via the menu
31401 Insert\SpecialChar menuseparator
31403 \begin_inset space ~
31408 or the toolbar button
31411 arg "marginalnote-insert"
31425 \begin_inset Quotes eld
31429 \begin_inset Quotes erd
31432 appears where you can enter the text of the margin note.
31435 \begin_layout Standard
31436 At the side is an example margin note.
31441 \begin_inset Marginal
31444 \begin_layout Plain Layout
31445 This is a margin note.
31453 \begin_layout Standard
31454 Margin notes appear at the right side in single-sided documents.
31455 In double-sided documents they appear in the outer margin – left on even
31456 pages, right on odd pages.
31457 The text of margin notes is aligned opposite to the outer margin – right-aligne
31458 d when the note appears in the left margin.
31459 The first line of the margin note is placed at the position of the text
31460 line where it is inserted in the document.
31463 \begin_layout Standard
31464 \begin_inset VSpace bigskip
31467 To place the margin note in the inner margin, add the command
31470 \begin_layout Standard
31478 \begin_layout Standard
31479 in \SpecialChar TeX
31480 Code before a margin note.
31481 The new placement is valid for all subsequent margin notes.
31486 \begin_layout Plain Layout
31496 \begin_inset Marginal
31499 \begin_layout Plain Layout
31500 This is a margin note in the inner margin.
31508 \begin_inset Newline newline
31514 \begin_inset Note Greyedout
31517 \begin_layout Plain Layout
31522 There is often not enough space in the inner margin so that the notes are
31523 not correctly displayed in the output.
31531 \begin_layout Standard
31532 To return to the default placement insert the command
31535 \begin_layout Standard
31543 \begin_layout Standard
31544 in \SpecialChar TeX
31549 \begin_layout Plain Layout
31559 \begin_inset Note Greyedout
31562 \begin_layout Plain Layout
31567 The command is ignored when it is within a paragraph where also the command
31582 \begin_layout Standard
31583 \begin_inset VSpace bigskip
31590 \begin_inset Marginal
31593 \begin_layout Plain Layout
31594 AVeryLongMarginParWord that isn't hyphenated.
31602 Similar to the case described in section
31603 \begin_inset space ~
31607 \begin_inset CommandInset ref
31609 reference "subsec:Multiple-Lines-in"
31613 , long words cannot be hyphenated when they are the first word in a margin
31615 To avoid this, insert 0
31616 \begin_inset space \thinspace{}
31619 pt horizontal space before the word
31624 \begin_inset Marginal
31627 \begin_layout Plain Layout
31628 \begin_inset space \hspace*{}
31632 AVeryLongMarginParWord that is hyphenated.
31640 \begin_layout Standard
31641 \begin_inset VSpace bigskip
31647 \begin_layout Standard
31648 \begin_inset Note Greyedout
31651 \begin_layout Plain Layout
31656 Margin notes can normally not be used inside tables, floats, and footnotes.
31664 \begin_layout Standard
31665 \begin_inset VSpace bigskip
31671 \begin_layout Standard
31675 \begin_layout Plain Layout
31685 \begin_inset Note Note
31688 \begin_layout Plain Layout
31689 The following section will only be displayed when the \SpecialChar LaTeX
31702 \begin_layout Standard
31703 This restriction can be evaded by using the \SpecialChar LaTeX
31709 \begin_inset Index idx
31712 \begin_layout Plain Layout
31714 -packages ! marginnote
31720 By adding these two lines to your document preamble, the command used by
31722 for margin notes is redefined to use the command provided by the
31729 \begin_layout Standard
31734 usepackage{marginnote}
31735 \begin_inset Newline newline
31747 \begin_layout Standard
31748 This is also used in this document because
31752 has another useful feature: You can set a vertical offset for the note.
31753 This is often needed when too many margin notes are too close together
31754 or for a better page layout.
31755 The offset is set in \SpecialChar LyX
31756 as \SpecialChar TeX
31757 Code directly after the margin note in the scheme
31760 \begin_layout Standard
31766 \begin_layout Standard
31767 where the offset is a length with one of the units listed in Table
31768 \begin_inset space ~
31772 \begin_inset CommandInset ref
31774 reference "tab:Units"
31779 A negative value shifts the note up, a positive value shifts it down.
31783 For example the margin note beside this text line is shifted up 1.5
31784 \begin_inset space \thinspace{}
31787 cm with the \SpecialChar TeX
31789 \begin_inset Quotes eld
31799 \begin_inset Quotes erd
31803 \begin_inset Marginal
31806 \begin_layout Plain Layout
31807 This margin note is shifted up 1.5
31808 \begin_inset space \thinspace{}
31811 cm from its original position.
31823 \begin_layout Plain Layout
31833 \begin_layout Standard
31834 \begin_inset VSpace medskip
31841 you can also change the alignment of the text in the margin note.
31842 For example the commands
31845 \begin_layout Standard
31852 raggedleftmarginnote}{
31855 \begin_inset Newline newline
31862 raggedrightmarginnote}{
31867 \begin_layout Standard
31868 set the alignment to centered.
31873 raggedleftmarginnote
31875 denotes margin notes that appear at the left side.
31882 \begin_layout Plain Layout
31888 raggedleftmarginnote}{
31893 \begin_layout Plain Layout
31899 raggedrightmarginnote}{
31907 \begin_inset Marginal
31910 \begin_layout Plain Layout
31911 The text of this margin note is centered.
31922 \begin_layout Standard
31929 raggedleftmarginnote}{
31932 \begin_inset Newline newline
31939 raggedrightmarginnote}{
31948 \begin_layout Plain Layout
31954 raggedleftmarginnote}{
31959 \begin_layout Plain Layout
31965 raggedrightmarginnote}{
31975 \begin_layout Standard
31976 \begin_inset VSpace medskip
31979 For the other features of
31983 refer to its documentation
31984 \begin_inset CommandInset citation
31993 \begin_layout Standard
31994 \begin_inset VSpace bigskip
31997 You can adjust the layout of margin notes by changing its definition.
31998 To create for example a header for all margin notes with the underlined,
31999 sans-serif, and bold header text
32000 \begin_inset Quotes eld
32012 \begin_inset Quotes erd
32015 , add this to your document preamble:
32018 \begin_layout Standard
32028 \begin_inset Newline newline
32038 \begin_inset Newline newline
32042 \begin_inset Phantom HPhantom
32045 \begin_layout Plain Layout
32048 \begin_inset space ~
32064 underbar{Attention!}}}%
32065 \begin_inset Newline newline
32069 \begin_inset Phantom HPhantom
32072 \begin_layout Plain Layout
32075 \begin_inset space ~
32092 \begin_layout Standard
32099 \begin_layout Plain Layout
32110 \begin_layout Plain Layout
32121 \begin_layout Plain Layout
32129 underbar{Attention!}}}%
32132 \begin_layout Plain Layout
32146 \begin_inset Marginal
32149 \begin_layout Plain Layout
32150 This is a margin note with a defined heading.
32162 \begin_layout Plain Layout
32176 \begin_layout Plain Layout
32193 \begin_inset Note Note
32196 \begin_layout Plain Layout
32197 The margin note format is changed only for this example.
32205 \begin_layout Standard
32209 \begin_layout Plain Layout
32219 \begin_inset Note Note
32222 \begin_layout Plain Layout
32223 The following will be displayed when the \SpecialChar LaTeX
32236 \begin_layout Standard
32237 You need to install the \SpecialChar LaTeX
32242 to see the following part of this section in the output.
32245 \begin_layout Standard
32249 \begin_layout Plain Layout
32261 \begin_layout Chapter
32265 \begin_layout Section
32267 \begin_inset Index idx
32270 \begin_layout Plain Layout
32271 Boxes ! Introduction
32279 \begin_layout Standard
32280 Boxes are used to format a block of text.
32281 Boxes can be used to write documents with multiple languages, see section
32282 \begin_inset space ~
32286 \begin_inset CommandInset ref
32288 reference "sec:Minipages"
32292 , to frame texts, see section
32293 \begin_inset space ~
32297 \begin_inset CommandInset ref
32299 reference "sec:Decoration"
32303 , to prevent words from being hyphenated, see section
32304 \begin_inset space ~
32308 \begin_inset CommandInset ref
32310 reference "sec:Prevent-Hyphenation"
32314 , to align text, see section
32315 \begin_inset space ~
32319 \begin_inset CommandInset ref
32321 reference "subsec:Vertical-Alignment"
32325 , or to set the background color of texts, see section
32326 \begin_inset space ~
32330 \begin_inset CommandInset ref
32332 reference "sec:Colored-Boxes"
32339 \begin_layout Standard
32340 Boxes can be inserted with the menu
32342 Insert\SpecialChar menuseparator
32345 or the toolbar button
32348 arg "box-insert Frameless"
32352 A grey box with the label
32357 \begin_inset Graphics
32358 filename clipart/BoxInsetDefaultQt4.png
32360 scaleBeforeRotation
32365 The box type can be specified by right-clicking on the box and selecting
32371 The box dialog offers the
32374 \begin_inset space ~
32396 is the default for new boxes and is explained in section
32397 \begin_inset space ~
32401 \begin_inset CommandInset ref
32403 reference "sec:Minipages"
32411 is described in section
32412 \begin_inset space ~
32416 \begin_inset CommandInset ref
32418 reference "sec:Parboxes"
32427 \begin_inset CommandInset ref
32429 reference "sec:Prevent-Hyphenation"
32436 \begin_layout Standard
32437 Boxes are not numbered and can therefore not be referenced like floats or
32441 \begin_layout Standard
32442 \begin_inset Note Greyedout
32445 \begin_layout Plain Layout
32450 Boxes must not be the item in an
32466 \begin_layout Standard
32467 \begin_inset Note Greyedout
32470 \begin_layout Plain Layout
32475 For an unknown reason you can only set the
32478 \begin_inset space ~
32487 when you use a framed box.
32491 \begin_inset space ~
32496 type and without frames are explained in section
32497 \begin_inset space ~
32501 \begin_inset CommandInset ref
32503 reference "sec:Prevent-Hyphenation"
32515 \begin_layout Section
32517 \begin_inset CommandInset label
32519 name "sec:Box-Dialog"
32524 \begin_inset Index idx
32527 \begin_layout Plain Layout
32536 \begin_layout Subsection
32538 \begin_inset Index idx
32541 \begin_layout Plain Layout
32550 \begin_layout Standard
32551 In the box dialog you can adjust the box geometry in the fields
32560 The available units for the geometry are explained in Table
32561 \begin_inset space ~
32565 \begin_inset CommandInset ref
32567 reference "tab:Units"
32576 offers the following additional sizes:
32579 \begin_layout Description
32580 Depth This is the plain text
32581 \begin_inset Quotes eld
32585 \begin_inset Quotes erd
32589 It ignores the total depth when there are multiple text lines in the box:
32590 \begin_inset Newline newline
32594 \begin_inset Newline newline
32598 \begin_inset Newline newline
32602 \begin_inset Box Boxed
32612 height_special "depth"
32617 backgroundcolor "none"
32620 \begin_layout Plain Layout
32622 Box height set to 1
32623 \begin_inset space \thinspace{}
32632 \begin_inset Newline newline
32636 \begin_inset Newline newline
32642 \begin_layout Description
32643 Height This is the height of the text that is inside the box.
32645 \begin_inset space \thinspace{}
32649 \begin_inset space \space{}
32652 2 for this size will set the box height to 2
32653 \begin_inset space ~
32656 times the text height:
32657 \begin_inset Box Boxed
32667 height_special "height"
32672 backgroundcolor "none"
32675 \begin_layout Plain Layout
32677 Box height set to 2
32678 \begin_inset space \thinspace{}
32689 \begin_layout Description
32691 \begin_inset space ~
32694 Height This is the Height
32695 \begin_inset space \thinspace{}
32699 \begin_inset space \thinspace{}
32703 \begin_inset Box Boxed
32713 height_special "totalheight"
32718 backgroundcolor "none"
32721 \begin_layout Plain Layout
32723 Box height set to 1
32724 \begin_inset space \thinspace{}
32728 \begin_inset space ~
32739 \begin_layout Description
32740 Width This sets the width of the box as height:
32741 \begin_inset Box Boxed
32751 height_special "width"
32756 backgroundcolor "none"
32759 \begin_layout Plain Layout
32761 Box height set to 1
32762 \begin_inset space \thinspace{}
32773 \begin_layout Subsection
32775 \begin_inset Index idx
32778 \begin_layout Plain Layout
32787 \begin_layout Standard
32788 When you have chosen an
32791 \begin_inset space ~
32796 , the vertical box alignment can be:
32799 \begin_layout Description
32800 Top This is an example text line.
32802 \begin_inset Box Boxed
32812 height_special "totalheight"
32817 backgroundcolor "none"
32820 \begin_layout Plain Layout
32822 This box is top-aligned.
32827 This is an example text line.
32830 \begin_layout Description
32831 Middle This is an example text line.
32833 \begin_inset Box Boxed
32843 height_special "totalheight"
32848 backgroundcolor "none"
32851 \begin_layout Plain Layout
32853 This box is middle-aligned.
32858 This is an example text line.
32861 \begin_layout Description
32862 Bottom This is an example text line.
32864 \begin_inset Box Boxed
32874 height_special "totalheight"
32879 backgroundcolor "none"
32882 \begin_layout Plain Layout
32884 This box is bottom-aligned.
32889 This is an example text line.
32892 \begin_layout Standard
32893 \begin_inset Note Greyedout
32896 \begin_layout Plain Layout
32901 The vertical box alignment can be lost in the output when you have two
32902 boxes in a line and one has e.
32903 \begin_inset space \thinspace{}
32907 \begin_inset space \space{}
32910 a shadow and the other one not.
32918 \begin_layout Standard
32919 The horizontal box alignment can be set via \SpecialChar LyX
32920 's paragraph dialog when you
32921 set the box into its own paragraph.
32924 \begin_layout Standard
32925 \begin_inset VSpace bigskip
32928 When you have chosen an
32931 \begin_inset space ~
32936 , the box content can be aligned vertically to:
32939 \begin_layout Description
32940 top This is an example text line.
32942 \begin_inset Box Boxed
32952 height_special "totalheight"
32957 backgroundcolor "none"
32960 \begin_layout Plain Layout
32962 This box text is top-aligned.
32967 This is an example text line.
32970 \begin_layout Description
32971 middle This is an example text line.
32973 \begin_inset Box Boxed
32983 height_special "totalheight"
32988 backgroundcolor "none"
32991 \begin_layout Plain Layout
32993 This box text is middle-aligned.
32998 This is an example text line.
33001 \begin_layout Description
33002 bottom This is an example text line.
33004 \begin_inset Box Boxed
33014 height_special "totalheight"
33019 backgroundcolor "none"
33022 \begin_layout Plain Layout
33024 This box text is bottom-aligned.
33029 This is an example text line.
33032 \begin_layout Description
33033 stretch This is an example text line.
33035 \begin_inset Box Boxed
33045 height_special "totalheight"
33050 backgroundcolor "none"
33053 \begin_layout Plain Layout
33058 \begin_layout Plain Layout
33063 \begin_layout Plain Layout
33070 This is an example text line.
33073 \begin_layout Standard
33074 To stretch the box content, it must consist of more than one paragraph.
33075 In the example above every text line is in an own paragraph.
33078 \begin_layout Standard
33079 \begin_inset VSpace bigskip
33082 To align the box content horizontally you can use \SpecialChar LyX
33083 's paragraph dialog when
33087 \begin_inset space ~
33095 \begin_layout Standard
33097 \begin_inset Box Boxed
33107 height_special "totalheight"
33112 backgroundcolor "none"
33115 \begin_layout Plain Layout
33120 \begin_layout Plain Layout
33125 \begin_layout Plain Layout
33135 \begin_layout Standard
33136 If you have not set an
33139 \begin_inset space ~
33144 , you can align the box content horizontally in the box dialog.
33145 \begin_inset Separator parbreak
33151 \begin_layout Standard
33153 \begin_inset Box Boxed
33163 height_special "totalheight"
33168 backgroundcolor "none"
33171 \begin_layout Plain Layout
33172 This box text is horizontally stretched.
33180 \begin_layout Subsection
33182 \begin_inset CommandInset label
33184 name "sec:Decoration"
33189 \begin_inset Index idx
33192 \begin_layout Plain Layout
33201 \begin_layout Standard
33202 The type of the box can be specified in the box dialog in the drop-down
33208 The following types are possible:
33211 \begin_layout Description
33213 \begin_inset space ~
33216 frame Nothing is drawn.
33219 \begin_layout Description
33221 \begin_inset space ~
33225 \begin_inset space ~
33228 frame This draws a rectangular frame around the box.
33229 The frame line thickness can be specified.
33231 \begin_inset Box Boxed
33241 height_special "totalheight"
33246 backgroundcolor "none"
33249 \begin_layout Plain Layout
33259 \begin_layout Description
33261 \begin_inset space ~
33265 \begin_inset space ~
33268 thin This draws an oval frame around the box.
33269 The frame line thickness has the size 0.4
33270 \begin_inset space \thinspace{}
33275 \begin_inset Box ovalbox
33285 height_special "totalheight"
33290 backgroundcolor "none"
33293 \begin_layout Plain Layout
33303 \begin_layout Description
33305 \begin_inset space ~
33309 \begin_inset space ~
33312 thick This draws an oval frame around the box.
33313 The frame line thickness has the size 0.8
33314 \begin_inset space \thinspace{}
33319 \begin_inset Box Ovalbox
33329 height_special "totalheight"
33334 backgroundcolor "none"
33337 \begin_layout Plain Layout
33347 \begin_layout Description
33349 \begin_inset space ~
33352 shadow This draws a rectangular frame with a shadow around the box.
33353 The frame line thickness and the shadow can be specified.
33355 \begin_inset Box Shadowbox
33365 height_special "totalheight"
33370 backgroundcolor "none"
33373 \begin_layout Plain Layout
33383 \begin_layout Description
33385 \begin_inset space ~
33388 background This draws a box with a red background.
33389 Unlike colored boxes
33393 \begin_layout Plain Layout
33395 \begin_inset space \thinspace{}
33399 \begin_inset CommandInset ref
33401 reference "sec:Colored-Boxes"
33410 , it always uses the whole column width and the box is set as its own paragraph.
33412 \begin_inset Box Shaded
33422 height_special "totalheight"
33427 backgroundcolor "none"
33430 \begin_layout Plain Layout
33431 Shaded background box
33439 \begin_layout Description
33441 \begin_inset space ~
33445 \begin_inset space ~
33448 frame This draws a double-line rectangular frame around the box.
33449 The line thickness of the inner frame is 0.75
33450 \begin_inset space \thinspace{}
33454 \begin_inset space ~
33457 thickness, the thickness of the outer frame is 1.5
33458 \begin_inset space \thinspace{}
33462 \begin_inset space ~
33466 The distance between the lines is 1.5
33467 \begin_inset space \thinspace{}
33471 \begin_inset space ~
33475 \begin_inset space \thinspace{}
33479 \begin_inset space \thinspace{}
33483 \begin_inset space \thinspace{}
33488 \begin_inset Box Doublebox
33498 height_special "totalheight"
33503 backgroundcolor "none"
33506 \begin_layout Plain Layout
33508 Double rectangular box
33516 \begin_layout Standard
33517 \begin_inset VSpace bigskip
33521 's box label will reflect the different frame types.
33522 To be able to use all types, the \SpecialChar LaTeX
33528 \begin_inset Index idx
33531 \begin_layout Plain Layout
33533 -packages ! fancybox
33541 \begin_layout Standard
33542 \begin_inset VSpace bigskip
33545 When you use the decoration
33547 simple rectangular frame
33549 and no inner box, you can allow page breaks within a box.
33550 Note that then, unlike other framed boxes, the frame always uses the whole
33551 column width and the box is set as its own paragraph:
33552 \begin_inset Box Framed
33562 height_special "totalheight"
33567 backgroundcolor "none"
33570 \begin_layout Plain Layout
33571 Allow page break box
33579 \begin_layout Section
33581 \begin_inset Index idx
33584 \begin_layout Plain Layout
33585 Boxes ! Customization
33593 \begin_layout Standard
33594 The diameter of the round corners of the oval boxes can be set with the
33605 \begin_layout Standard
33613 \begin_layout Standard
33614 sets the diameter to 1
33615 \begin_inset space \thinspace{}
33622 \begin_layout Standard
33630 \begin_layout Standard
33631 sets the diameter to
33634 \begin_inset space \thinspace{}
33638 \begin_inset space \thinspace{}
33641 minimum(width and height of box)
33653 \begin_layout Standard
33657 \begin_layout Plain Layout
33667 \begin_inset Box Ovalbox
33677 height_special "totalheight"
33682 backgroundcolor "none"
33685 \begin_layout Plain Layout
33694 \begin_inset space \thinspace{}
33698 \begin_inset space \thinspace{}
33702 \begin_inset space \thinspace{}
33714 \begin_layout Plain Layout
33726 \begin_layout Standard
33727 \begin_inset VSpace bigskip
33733 \begin_layout Standard
33734 The default background color red of
33738 boxes can either be changed locally with the command
33742 definecolor{shadecolor}
33744 or globally with the menu
33746 Tools\SpecialChar menuseparator
33747 Preferences\SpecialChar menuseparator
33748 Colors\SpecialChar menuseparator
33750 \begin_inset space ~
33762 command is explained in section
33763 \begin_inset space ~
33767 \begin_inset CommandInset ref
33769 reference "sec:Colored-Tables"
33777 \begin_layout Plain Layout
33784 requires the \SpecialChar LaTeX
33789 in the preamble, see section
33790 \begin_inset space ~
33794 \begin_inset CommandInset ref
33796 reference "sec:Colored-Boxes"
33805 For example the appearance of the following shaded background box is set
33806 with the \SpecialChar TeX
33810 \begin_layout Standard
33815 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33818 \begin_layout Standard
33822 \begin_layout Plain Layout
33826 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33832 \begin_inset Box Shaded
33842 height_special "totalheight"
33847 backgroundcolor "none"
33850 \begin_layout Plain Layout
33853 This is yellow text in a
33863 box with dark green background.
33872 \begin_layout Plain Layout
33876 definecolor{shadecolor}{rgb}{1,0,0}
33884 \begin_layout Standard
33885 \begin_inset VSpace bigskip
33888 Manually changed sizes and colors are valid for all boxes following the
33889 commands that change them.
33892 \begin_layout Section
33894 \begin_inset CommandInset label
33896 name "sec:Minipages"
33901 \begin_inset Index idx
33904 \begin_layout Plain Layout
33913 \begin_layout Standard
33914 Minipages are treated by \SpecialChar LaTeX
33915 as pages within pages and can therefore for example
33916 have their own footnotes.
33919 \begin_layout Standard
33920 Minipages are useful when you write documents with different languages.
33923 \begin_layout Standard
33924 Below are two example minipages side by side.
33925 Their width is set to 45
33926 \begin_inset space \thinspace{}
33929 col% and they are separated by a horizontal fill, that was inserted via
33932 Insert\SpecialChar menuseparator
33934 \begin_inset space ~
33937 Formatting\SpecialChar menuseparator
33939 \begin_inset space ~
33945 \begin_inset Newpage newpage
33951 \begin_layout Standard
33952 \begin_inset Box Frameless
33962 height_special "totalheight"
33967 backgroundcolor "none"
33970 \begin_layout Plain Layout
33973 Dies ist ein deutscher Text.
33974 Dies ist ein deutscher Text.
33975 Dies ist ein deutscher Text.
33976 Dies ist ein deutscher Text.
33977 Dies ist ein deutscher Text.
33978 Dies ist ein deutscher Text.
33979 Dies ist ein deutscher Text.
33980 Dies ist ein deutscher Text.
33981 Dies ist ein deutscher Text.
33982 Dies ist ein deutscher Text.
33983 Dies ist ein deutscher Text.
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text
33989 \begin_layout Plain Layout
33992 Dies ist eine deutsche Fußnote.
33998 Dies ist ein deutscher Text.
33999 Dies ist ein deutscher Text.
34005 \begin_inset space \hfill{}
34009 \begin_inset Box Frameless
34019 height_special "totalheight"
34024 backgroundcolor "none"
34027 \begin_layout Plain Layout
34028 This is an English Text.
34029 This is an English Text.
34030 This is an English Text.
34031 This is an English Text.
34032 This is an English Text.
34033 This is an English Text.
34034 This is an English Text.
34035 This is an English Text.
34036 This is an English Text.
34037 This is an English Text.
34038 This is an English Text.
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34047 \begin_layout Plain Layout
34048 This is an English footnote.
34053 This is an English Text.
34061 \begin_layout Standard
34062 \begin_inset VSpace bigskip
34065 The document-wide paragraph settings are ignored within minipages.
34066 That means that there will be no space between paragraphs in minipages
34067 although you set it to e.
34068 \begin_inset space \thinspace{}
34072 \begin_inset space \space{}
34079 in the document settings.
34082 \begin_layout Standard
34083 Minipages can also be used to set a background color for text parts, see
34085 \begin_inset space ~
34089 \begin_inset CommandInset ref
34091 reference "sec:Colored-Boxes"
34098 \begin_layout Standard
34099 \begin_inset Note Greyedout
34102 \begin_layout Plain Layout
34107 You cannot have floats or margin notes inside minipages but minipages can
34108 be used inside tables, floats, and other boxes.
34114 \change_inserted 2047637253 1447344098
34118 \begin_layout Section
34120 \change_inserted 2047637253 1447344355
34121 Variable-width Minipages
34122 \begin_inset CommandInset label
34124 name "sec:Varwidth"
34129 \begin_inset Index idx
34132 \begin_layout Plain Layout
34134 \change_inserted 2047637253 1447344099
34135 Boxes ! Minipages (variable width)
34143 \begin_layout Standard
34145 \change_inserted 2047637253 1447344362
34147 has a limited support for minipages whose size is automatically determined
34148 by the width of their contents, via the module
34150 Variable-width Minipages
34155 examples/varwidth-floats-side-by-side.lyx
34157 gives examples of variable-width minipages used for placing two floats
34159 This requires the \SpecialChar LaTeX
34169 \begin_layout Section
34171 \begin_inset CommandInset label
34173 name "sec:Parboxes"
34178 \begin_inset Index idx
34181 \begin_layout Plain Layout
34190 \begin_layout Standard
34191 Parboxes are very similar to minipages with the difference that they cannot
34193 \begin_inset Separator parbreak
34199 \begin_layout Standard
34201 \begin_inset Box Frameless
34211 height_special "totalheight"
34216 backgroundcolor "none"
34219 \begin_layout Plain Layout
34220 This a text within a parbox.
34221 This a text within a parbox.
34224 \begin_layout Plain Layout
34225 This footnote won't appear:
34229 \begin_layout Plain Layout
34230 This footnote is inside a parbox and will therefore not appear.
34243 \begin_layout Section
34244 Boxes for Words and Characters
34245 \begin_inset Index idx
34248 \begin_layout Plain Layout
34249 Boxes ! for Characters
34257 \begin_layout Subsection
34258 Prevent Hyphenation
34259 \begin_inset CommandInset label
34261 name "sec:Prevent-Hyphenation"
34266 \begin_inset Index idx
34269 \begin_layout Plain Layout
34270 Boxes ! to Prevent Hyphenation
34278 \begin_layout Standard
34279 You can use the box type
34283 to prevent words or text from being hyphenated.
34284 \begin_inset Newline newline
34287 Here is an example text:
34290 \begin_layout Standard
34291 This line is an example to show how you can prevent the hyphenation of
34292 \begin_inset Quotes eld
34296 \begin_inset Quotes erd
34302 \begin_layout Standard
34303 To prevent the hyphenation of the word
34304 \begin_inset Quotes eld
34308 \begin_inset Quotes erd
34311 , put the word into a box, set the
34314 \begin_inset space ~
34323 and use no explicit width.
34326 \begin_layout Standard
34327 This is the result:
34330 \begin_layout Standard
34331 This line is an example to show how you can prevent the hyphenation of
34332 \begin_inset Box Frameless
34342 height_special "totalheight"
34347 backgroundcolor "none"
34350 \begin_layout Plain Layout
34351 \begin_inset Quotes eld
34355 \begin_inset Quotes erd
34366 \begin_layout Standard
34367 You can alternatively set the command
34368 \begin_inset Quotes eld
34378 \begin_inset Quotes grd
34381 as \SpecialChar TeX
34382 Code directly before the word:
34385 \begin_layout Standard
34386 This line is an example to show how you can prevent the hyphenation of
34387 \begin_inset Quotes eld
34394 \begin_layout Plain Layout
34404 \begin_inset Quotes erd
34410 \begin_layout Standard
34411 Of course the word now protrudes over the side margin.
34412 To avoid this, add via the menu
34414 Insert\SpecialChar menuseparator
34415 Formatting\SpecialChar menuseparator
34417 \begin_inset space ~
34421 \begin_inset space ~
34429 arg "newline-insert newline"
34432 ) a line break before the word:
34435 \begin_layout Standard
34436 This line is an example to show how you can prevent the hyphenation of
34437 \begin_inset Newline newline
34441 \begin_inset Box Frameless
34451 height_special "totalheight"
34456 backgroundcolor "none"
34459 \begin_layout Plain Layout
34460 \begin_inset Quotes eld
34464 \begin_inset Quotes erd
34475 \begin_layout Subsection
34477 \begin_inset CommandInset label
34479 name "subsec:Vertical-Alignment"
34484 \begin_inset Index idx
34487 \begin_layout Plain Layout
34488 Boxes ! for Vertical Alignment
34494 \begin_inset Index idx
34497 \begin_layout Plain Layout
34506 \begin_layout Standard
34507 With the help of the command
34513 you can align words, characters or other boxes vertically relative to the
34521 is used with the following scheme:
34524 \begin_layout Standard
34529 raisebox{lift}[height][depth]{box content}
34532 \begin_layout Standard
34533 The lift can be a positive value to raise the box or a negative value to
34537 \begin_layout Standard
34538 To align for example the word
34539 \begin_inset Quotes eld
34543 \begin_inset Quotes erd
34546 so that the bottom of the
34547 \begin_inset Quotes eld
34551 \begin_inset Quotes erd
34555 \begin_inset Quotes eld
34559 \begin_inset Quotes erd
34562 is at the baseline, insert the command
34565 \begin_layout Standard
34575 \begin_layout Standard
34576 in \SpecialChar TeX
34577 Code before the word.
34578 After the word insert a closing brace
34579 \begin_inset Quotes eld
34587 \begin_inset Quotes erd
34590 in \SpecialChar TeX
34592 \begin_inset Newline newline
34595 This is the result:
34598 \begin_layout Standard
34599 This is a text line with the word
34603 \begin_layout Plain Layout
34615 \begin_inset Quotes eld
34619 \begin_inset Quotes erd
34626 \begin_layout Plain Layout
34636 \begin_layout Standard
34637 \begin_inset VSpace bigskip
34640 When you raise or lower characters in a line, the line distance will be
34644 \begin_layout Standard
34645 This is a text line with the word
34649 \begin_layout Plain Layout
34661 \begin_inset Quotes eld
34665 \begin_inset Quotes erd
34672 \begin_layout Plain Layout
34680 \begin_inset Newline newline
34683 This is a text line with the word
34687 \begin_layout Plain Layout
34697 \begin_inset Quotes eld
34701 \begin_inset Quotes erd
34708 \begin_layout Plain Layout
34718 \begin_layout Standard
34719 If you want to prevent this for a certain reason, set the box height to
34724 \begin_layout Standard
34734 \begin_layout Standard
34735 This is a text line with the word
34739 \begin_layout Plain Layout
34751 \begin_inset Quotes eld
34755 \begin_inset Quotes erd
34762 \begin_layout Plain Layout
34770 \begin_inset Newline newline
34774 \begin_inset Newline newline
34777 This is a text line with the word
34781 \begin_layout Plain Layout
34785 raisebox{0.5cm}[0pt]{
34791 \begin_inset Quotes eld
34795 \begin_inset Quotes erd
34802 \begin_layout Plain Layout
34812 \begin_layout Section
34814 \begin_inset CommandInset label
34816 name "sec:Colored-Boxes"
34821 \begin_inset Index idx
34824 \begin_layout Plain Layout
34833 \begin_layout Standard
34834 To color the background of a box just select the color you like in the box
34836 This is for example a box with orange background:
34837 \begin_inset Box Frameless
34847 height_special "totalheight"
34852 backgroundcolor "orange"
34855 \begin_layout Plain Layout
34856 Box with orange background
34864 \begin_layout Standard
34865 If you use the decoration
34868 \begin_inset space ~
34872 \begin_inset space ~
34877 you can set a frame color.
34878 In this case you must also specify a background color (LyX sets white as
34880 Here is an example:
34881 \begin_inset Box Boxed
34891 height_special "totalheight"
34896 backgroundcolor "yellow"
34899 \begin_layout Plain Layout
34900 Box with teal frame color and yellow background color
34908 \begin_layout Standard
34909 \begin_inset VSpace bigskip
34912 Of course you can also have colored text inside a colored box:
34913 \begin_inset Newline newline
34917 \begin_inset Box Boxed
34927 height_special "totalheight"
34932 backgroundcolor "magenta"
34935 \begin_layout Plain Layout
34938 This is colored text within a colored, framed box
34946 \begin_layout Standard
34947 \begin_inset VSpace bigskip
34953 \begin_layout Standard
34954 If you need another color than the predefined ones, you can define your
34955 own color as described in section
34956 \begin_inset space ~
34960 \begin_inset CommandInset ref
34962 reference "sec:Colored-Tables"
34967 To use your own color you must typeset the box by using TeX code:
34970 \begin_layout Standard
34971 Colored boxes without frame are created with the command
34978 It has the following scheme:
34981 \begin_layout Standard
34986 colorbox{color}{box content}
34989 \begin_layout Standard
34990 The box content can also be a box and colored boxes can also be within other
34993 \begin_inset space \thinspace{}
34997 \begin_inset space \space{}
35000 a darkgreen background for a word, insert the command
35003 \begin_layout Standard
35008 colorbox{darkgreen}{
35011 \begin_layout Standard
35012 before the word in \SpecialChar TeX
35014 After the word insert a closing brace
35015 \begin_inset Quotes eld
35023 \begin_inset Quotes erd
35026 in \SpecialChar TeX
35028 \begin_inset Newline newline
35031 This is the result:
35034 \begin_layout Standard
35035 This is a line where the word
35039 \begin_layout Plain Layout
35043 colorbox{darkgreen}{
35049 \begin_inset Quotes eld
35053 \begin_inset Quotes erd
35060 \begin_layout Plain Layout
35067 has a darkgreen background.
35070 \begin_layout Standard
35071 Framed, colored boxes are created with the command
35078 It has the following scheme:
35081 \begin_layout Standard
35086 fcolorbox{frame color}{box color}{box content}
35089 \begin_layout Section
35090 Rotated and Scaled Boxes
35093 \begin_layout Standard
35094 To use the boxes described in this section, the module
35098 must be loaded in the document settings.
35101 \begin_layout Standard
35102 \begin_inset Note Greyedout
35105 \begin_layout Plain Layout
35110 Not all DVI viewers are able to display rotated or scaled material.
35118 \begin_layout Standard
35119 \begin_inset Note Greyedout
35122 \begin_layout Plain Layout
35127 Floats are not allowed inside a rotated or scaled box.
35135 \begin_layout Subsection
35137 \begin_inset Index idx
35140 \begin_layout Plain Layout
35147 \begin_inset Index idx
35150 \begin_layout Plain Layout
35159 \begin_layout Standard
35160 To rotate material, you can put it into a
35165 Such a box is inserted via the menu
35167 Insert\SpecialChar menuseparator
35168 Custom Insets\SpecialChar menuseparator
35174 \begin_layout Standard
35175 The rotation origin can be specified via the inset
35181 Insert\SpecialChar menuseparator
35189 The following positions are possible:
35209 (top), along with meaningful combinations of the four base positions.
35214 means that the rotation origin is at the top left corner of the box.
35215 When no rotation origin is specified, the position
35220 The rotation angle is a number that can be negative that specifies the
35222 The rotation direction is counterclockwise.
35225 \begin_layout Standard
35226 In the following example
35230 was inserted to the
35238 was inserted to the
35245 \begin_layout Standard
35247 \begin_inset Flex Rotatebox
35250 \begin_layout Plain Layout
35251 \begin_inset Argument 1
35254 \begin_layout Plain Layout
35261 \begin_inset Argument 2
35264 \begin_layout Plain Layout
35278 \begin_layout Standard
35279 The box content can also be another box or an inline formula:
35282 \begin_layout Standard
35284 \begin_inset Flex Rotatebox
35287 \begin_layout Plain Layout
35288 \begin_inset Argument 1
35291 \begin_layout Plain Layout
35298 \begin_inset Argument 2
35301 \begin_layout Plain Layout
35308 \begin_inset Box Doublebox
35318 height_special "totalheight"
35323 backgroundcolor "none"
35326 \begin_layout Plain Layout
35338 \begin_inset Flex Rotatebox
35341 \begin_layout Plain Layout
35342 \begin_inset Argument 1
35345 \begin_layout Plain Layout
35352 \begin_inset Argument 2
35355 \begin_layout Plain Layout
35362 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35373 \begin_layout Standard
35374 or an image or table:
35377 \begin_layout Standard
35379 \begin_inset Flex Rotatebox
35382 \begin_layout Plain Layout
35383 \begin_inset Argument 1
35386 \begin_layout Plain Layout
35393 \begin_inset Argument 2
35396 \begin_layout Plain Layout
35403 \begin_inset Graphics
35404 filename clipart/platypus.eps
35415 with a rotated image
35416 \begin_inset Flex Rotatebox
35419 \begin_layout Plain Layout
35420 \begin_inset Argument 2
35423 \begin_layout Plain Layout
35430 \begin_inset Tabular
35431 <lyxtabular version="3" rows="2" columns="2">
35432 <features tabularvalignment="middle">
35433 <column alignment="center" valignment="top">
35434 <column alignment="center" valignment="top">
35436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35439 \begin_layout Plain Layout
35445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35448 \begin_layout Plain Layout
35456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35459 \begin_layout Plain Layout
35465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35468 \begin_layout Plain Layout
35485 \begin_inset Index idx
35488 \begin_layout Plain Layout
35495 \begin_inset Index idx
35498 \begin_layout Plain Layout
35499 Table Customization ! Rotating
35507 \begin_layout Standard
35508 \begin_inset Note Greyedout
35511 \begin_layout Plain Layout
35520 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35522 errors when viewing/exporting the document.
35530 \begin_layout Subsection
35532 \begin_inset Index idx
35535 \begin_layout Plain Layout
35542 \begin_inset Index idx
35545 \begin_layout Plain Layout
35554 \begin_layout Standard
35555 To scale material put it into a
35560 Such a box is inserted via the menu
35562 Insert\SpecialChar menuseparator
35563 Custom Insets\SpecialChar menuseparator
35569 \begin_layout Standard
35574 inset has the mandatory inset
35578 and the optional inset
35582 (inserted via the menu
35584 Insert\SpecialChar menuseparator
35588 Input there there horizontal and vertical scale factor, respectively.
35593 inset is used, the horizontal factor will also be used as the vertical
35597 \begin_layout Standard
35598 To get for example the double text size, compared to the document text size,
35609 \begin_inset Flex Scalebox
35612 \begin_layout Plain Layout
35613 \begin_inset Argument 1
35616 \begin_layout Plain Layout
35630 \begin_layout Standard
35648 \begin_inset Flex Scalebox
35651 \begin_layout Plain Layout
35652 \begin_inset Argument 1
35655 \begin_layout Plain Layout
35662 \begin_inset Argument 2
35665 \begin_layout Plain Layout
35679 \begin_layout Standard
35680 If the scaling factor is negative, the box content will be mirrored.
35697 can be used to create mirror writing:
35698 \begin_inset Flex Scalebox
35701 \begin_layout Plain Layout
35702 \begin_inset Argument 1
35705 \begin_layout Plain Layout
35712 \begin_inset Argument 2
35715 \begin_layout Plain Layout
35729 \begin_layout Standard
35747 \begin_inset Flex Scalebox
35750 \begin_layout Plain Layout
35751 \begin_inset Argument 1
35754 \begin_layout Plain Layout
35761 \begin_inset Argument 2
35764 \begin_layout Plain Layout
35778 \begin_layout Standard
35785 Insert\SpecialChar menuseparator
35786 Custom Insets\SpecialChar menuseparator
35812 \begin_layout Standard
35813 \begin_inset Note Greyedout
35816 \begin_layout Plain Layout
35825 inset is empty or contains other characters than numbers you will get LaTeX
35826 errors when viewing/exporting the document.
35834 \begin_layout Standard
35835 \begin_inset VSpace bigskip
35844 Insert\SpecialChar menuseparator
35845 Custom Insets\SpecialChar menuseparator
35848 ) is used to scale the content to a defined width and height.
35853 inset has the mandatory inset
35857 and the optional inset
35861 (inserted via the menu
35863 Insert\SpecialChar menuseparator
35867 Input there there width and height, respectively, as value with a unit.
35869 \begin_inset CommandInset ref
35871 reference "tab:Units"
35875 lists the possible units.
35876 If there is an exclamation mark
35880 in of of the two insets, the size is set so that the aspect ratio of the
35881 box content is kept.
35886 inset is used an exclamation mark will internally be used for the height.
35889 \begin_layout Standard
35907 \begin_inset Flex Resizebox
35910 \begin_layout Plain Layout
35911 \begin_inset Argument 1
35914 \begin_layout Plain Layout
35921 \begin_inset Argument 2
35924 \begin_layout Plain Layout
35936 \begin_inset Newline newline
35960 \begin_inset Flex Resizebox
35963 \begin_layout Plain Layout
35964 \begin_inset Argument 1
35967 \begin_layout Plain Layout
35974 \begin_inset Argument 2
35977 \begin_layout Plain Layout
35991 \begin_layout Standard
35992 \begin_inset Note Greyedout
35995 \begin_layout Plain Layout
36004 inset is empty or contains an invalid unit you will get LaTeX errors when
36005 viewing/exporting the document.
36013 \begin_layout Standard
36014 \begin_inset VSpace bigskip
36020 \begin_layout Standard
36021 The boxes can be combined in any order.
36030 which is in turn inside a
36037 \begin_layout Standard
36040 \begin_inset Flex Rotatebox
36043 \begin_layout Plain Layout
36044 \begin_inset Argument 1
36047 \begin_layout Plain Layout
36054 \begin_inset Argument 2
36057 \begin_layout Plain Layout
36064 \begin_inset Flex Resizebox
36067 \begin_layout Plain Layout
36068 \begin_inset Argument 1
36071 \begin_layout Plain Layout
36078 \begin_inset Flex Reflectbox
36081 \begin_layout Plain Layout
36100 \begin_layout Standard
36102 Images, tables, and inline formulas are allowed as box content:
36105 \begin_layout Standard
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 Graphics
36127 filename clipart/platypus.eps
36144 \begin_inset Flex Resizebox
36147 \begin_layout Plain Layout
36148 \begin_inset Argument 1
36151 \begin_layout Plain Layout
36158 \begin_inset Flex Reflectbox
36161 \begin_layout Plain Layout
36162 \begin_inset Tabular
36163 <lyxtabular version="3" rows="2" columns="2">
36164 <features tabularvalignment="middle">
36165 <column alignment="center" valignment="top">
36166 <column alignment="center" valignment="top">
36168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36171 \begin_layout Plain Layout
36177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36180 \begin_layout Plain Layout
36188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36191 \begin_layout Plain Layout
36197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36200 \begin_layout Plain Layout
36222 \begin_inset Flex Resizebox
36225 \begin_layout Plain Layout
36226 \begin_inset Argument 1
36229 \begin_layout Plain Layout
36236 \begin_inset Flex Reflectbox
36239 \begin_layout Plain Layout
36240 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36254 \begin_inset Index idx
36257 \begin_layout Plain Layout
36264 \begin_inset Index idx
36267 \begin_layout Plain Layout
36268 Table Customization ! Scaling
36276 \begin_layout Standard
36277 When the global formula style
36281 is used in the document
36285 \begin_layout Plain Layout
36287 \begin_inset Quotes eld
36291 \begin_inset Quotes erd
36294 is added to the document class options.
36299 , display style formulas can also be scaled.
36302 \begin_layout Chapter
36303 Objects Surrounded by Text
36304 \begin_inset Index idx
36307 \begin_layout Plain Layout
36316 \begin_layout Section
36318 \begin_inset CommandInset label
36320 name "sec:Wrap-Floats"
36325 \begin_inset Index idx
36328 \begin_layout Plain Layout
36329 Floats ! Wrap Floats
36335 \begin_inset Index idx
36338 \begin_layout Plain Layout
36339 Surrounded by text ! Wrap Floats
36347 \begin_layout Standard
36348 \begin_inset Wrap figure
36355 \begin_layout Plain Layout
36356 \begin_inset Graphics
36357 filename clipart/mobius.eps
36359 scaleBeforeRotation
36360 rotateOrigin center
36367 \begin_layout Plain Layout
36368 \begin_inset Caption Standard
36370 \begin_layout Plain Layout
36371 \begin_inset CommandInset label
36373 name "fig:This-is-a"
36377 This is a figure wrap float.
36387 This float type is used if you want to wrap text around a figure or table
36388 so that it only occupies some fraction of the column width.
36389 It can be inserted using the menu
36391 Insert\SpecialChar menuseparator
36392 Floats\SpecialChar menuseparator
36394 \begin_inset space ~
36398 \begin_inset space ~
36406 \begin_inset space ~
36410 \begin_inset space ~
36415 if the \SpecialChar LaTeX
36421 \begin_inset Index idx
36424 \begin_layout Plain Layout
36426 -packages ! wrapfig
36435 \begin_layout Plain Layout
36436 Installing a \SpecialChar LaTeX
36437 -package is explained it in the
36441 \begin_inset space ~
36451 The settings of the float can be modified by right-clicking on the float
36453 The mandatory settings are the float
36466 that specifies how much the float is set into the paragraph
36467 \begin_inset space \thinspace{}
36471 \begin_inset space \thinspace{}
36474 page margin, and the
36477 \begin_inset space ~
36482 that specifies how many text lines the float will approximately need.
36483 The line span is often hard to approximate; so it is better only to use
36484 it when you encounter float placement problems.
36485 You can furthermore decide if \SpecialChar LaTeX
36486 is allowed to let the float float within
36487 the paragraph or to surrounding paragraphs.
36489 \begin_inset space ~
36493 \begin_inset CommandInset ref
36495 reference "fig:This-is-a"
36499 is an example text wrap float with a width of 40
36500 \begin_inset space \thinspace{}
36504 \begin_inset space \thinspace{}
36507 cm overhang, set to the left.
36510 \begin_layout Standard
36511 \begin_inset Note Greyedout
36514 \begin_layout Plain Layout
36520 \begin_inset space ~
36523 wrap float floats are fragile! E.
36524 \begin_inset space \thinspace{}
36528 \begin_inset space \space{}
36531 having a figure too close to the bottom of the page can mess things up in
36532 such a way that the float does not appear in the output or that it is placed
36533 over some other text.
36541 \begin_layout Standard
36542 In general, the following applies for wrap floats:
36545 \begin_layout Itemize
36546 They should not be placed in paragraphs that run over a page break.
36547 That means that wrap floats are better inserted in their exact place when
36548 the document is almost finished and you are able to estimate where page
36549 breaks will appear.
36552 \begin_layout Itemize
36553 They should either be placed in their own paragraph before the paragraph
36554 where they should wrap into or within a paragraph.
36557 \begin_layout Itemize
36558 In consecutive paragraphs they may cause troubles, so ensure that there
36559 is a text paragraph between them as separator.
36562 \begin_layout Itemize
36563 They are not allowed in section headings or tables.
36566 \begin_layout Itemize
36567 Their numbering and referencing works as described in chap.
36568 \begin_inset space \thinspace{}
36572 \begin_inset CommandInset ref
36574 reference "chap:Floats"
36581 \begin_layout Section
36582 Surrounded Fixed Objects
36583 \begin_inset Index idx
36586 \begin_layout Plain Layout
36587 Surrounded by text ! Fixed objects
36595 \begin_layout Standard
36596 The wrap floats described in sec.
36597 \begin_inset space \thinspace{}
36601 \begin_inset CommandInset ref
36603 reference "sec:Wrap-Floats"
36607 have these positions in the paragraph:
36608 \begin_inset Separator parbreak
36614 \begin_layout Standard
36617 \begin_inset Tabular
36618 <lyxtabular version="3" rows="2" columns="2">
36619 <features tabularvalignment="middle">
36620 <column alignment="center" valignment="top">
36621 <column alignment="center" valignment="top">
36623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36626 \begin_layout Plain Layout
36627 \begin_inset Graphics
36628 filename ../images/dialog-show-new-inset_graphics.png
36630 scaleBeforeRotation
36639 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36642 \begin_layout Plain Layout
36650 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36653 \begin_layout Plain Layout
36659 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36662 \begin_layout Plain Layout
36674 \begin_inset Tabular
36675 <lyxtabular version="3" rows="2" columns="2">
36676 <features tabularvalignment="middle">
36677 <column alignment="center" valignment="top">
36678 <column alignment="center" valignment="top">
36680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36683 \begin_layout Plain Layout
36689 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36692 \begin_layout Plain Layout
36693 \begin_inset Graphics
36694 filename ../images/dialog-show-new-inset_graphics.png
36696 scaleBeforeRotation
36707 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36710 \begin_layout Plain Layout
36716 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36719 \begin_layout Plain Layout
36733 \begin_layout Standard
36734 To get an object exactly at the position where it is inserted, for example
36735 to get one of these positions:
36736 \begin_inset VSpace defskip
36742 \begin_layout Standard
36745 \begin_inset Tabular
36746 <lyxtabular version="3" rows="2" columns="2">
36747 <features tabularvalignment="middle">
36748 <column alignment="center" valignment="top">
36749 <column alignment="center" valignment="top">
36751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36754 \begin_layout Plain Layout
36760 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36763 \begin_layout Plain Layout
36771 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36774 \begin_layout Plain Layout
36775 \begin_inset Graphics
36776 filename ../images/dialog-show-new-inset_graphics.png
36778 scaleBeforeRotation
36787 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36790 \begin_layout Plain Layout
36802 \begin_inset Tabular
36803 <lyxtabular version="3" rows="2" columns="2">
36804 <features tabularvalignment="middle">
36805 <column alignment="center" valignment="top">
36806 <column alignment="center" valignment="top">
36808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36811 \begin_layout Plain Layout
36817 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36820 \begin_layout Plain Layout
36828 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36831 \begin_layout Plain Layout
36837 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36840 \begin_layout Plain Layout
36841 \begin_inset Graphics
36842 filename ../images/dialog-show-new-inset_graphics.png
36844 scaleBeforeRotation
36859 \begin_inset Tabular
36860 <lyxtabular version="3" rows="2" columns="3">
36861 <features tabularvalignment="middle">
36862 <column alignment="center" valignment="top">
36863 <column alignment="center" valignment="top">
36864 <column alignment="center" valignment="top">
36866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36869 \begin_layout Plain Layout
36875 <cell alignment="center" valignment="top" topline="true" usebox="none">
36878 \begin_layout Plain Layout
36879 \begin_inset Graphics
36880 filename ../images/dialog-show-new-inset_graphics.png
36882 scaleBeforeRotation
36891 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36894 \begin_layout Plain Layout
36902 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36905 \begin_layout Plain Layout
36911 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36914 \begin_layout Plain Layout
36920 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36923 \begin_layout Plain Layout
36935 \begin_inset Tabular
36936 <lyxtabular version="3" rows="2" columns="3">
36937 <features tabularvalignment="middle">
36938 <column alignment="center" valignment="top">
36939 <column alignment="center" valignment="top">
36940 <column alignment="center" valignment="top">
36942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36945 \begin_layout Plain Layout
36951 <cell alignment="center" valignment="top" topline="true" usebox="none">
36954 \begin_layout Plain Layout
36960 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36963 \begin_layout Plain Layout
36971 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36974 \begin_layout Plain Layout
36980 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36983 \begin_layout Plain Layout
36984 \begin_inset Graphics
36985 filename ../images/dialog-show-new-inset_graphics.png
36987 scaleBeforeRotation
36996 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36999 \begin_layout Plain Layout
37013 \begin_layout Standard
37016 \begin_inset Tabular
37017 <lyxtabular version="3" rows="3" columns="2">
37018 <features tabularvalignment="middle">
37019 <column alignment="center" valignment="top">
37020 <column alignment="center" valignment="top">
37022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37025 \begin_layout Plain Layout
37031 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37034 \begin_layout Plain Layout
37042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37045 \begin_layout Plain Layout
37046 \begin_inset Graphics
37047 filename ../images/dialog-show-new-inset_graphics.png
37049 scaleBeforeRotation
37058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37061 \begin_layout Plain Layout
37069 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37072 \begin_layout Plain Layout
37078 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37081 \begin_layout Plain Layout
37093 \begin_inset Tabular
37094 <lyxtabular version="3" rows="3" columns="3">
37095 <features tabularvalignment="middle">
37096 <column alignment="center" valignment="top">
37097 <column alignment="center" valignment="top">
37098 <column alignment="center" valignment="top">
37100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37103 \begin_layout Plain Layout
37109 <cell alignment="center" valignment="top" topline="true" usebox="none">
37112 \begin_layout Plain Layout
37118 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37121 \begin_layout Plain Layout
37129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37132 \begin_layout Plain Layout
37138 <cell alignment="center" valignment="top" usebox="none">
37141 \begin_layout Plain Layout
37142 \begin_inset Graphics
37143 filename ../images/dialog-show-new-inset_graphics.png
37145 scaleBeforeRotation
37154 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37157 \begin_layout Plain Layout
37165 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37168 \begin_layout Plain Layout
37174 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37177 \begin_layout Plain Layout
37183 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37186 \begin_layout Plain Layout
37198 \begin_inset Tabular
37199 <lyxtabular version="3" rows="3" columns="2">
37200 <features tabularvalignment="middle">
37201 <column alignment="center" valignment="top">
37202 <column alignment="center" valignment="top">
37204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37207 \begin_layout Plain Layout
37213 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37216 \begin_layout Plain Layout
37224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37227 \begin_layout Plain Layout
37233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37236 \begin_layout Plain Layout
37237 \begin_inset Graphics
37238 filename ../images/dialog-show-new-inset_graphics.png
37240 scaleBeforeRotation
37251 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37254 \begin_layout Plain Layout
37260 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37263 \begin_layout Plain Layout
37277 \begin_layout Standard
37279 you can use the \SpecialChar LaTeX
37285 \begin_inset Index idx
37288 \begin_layout Plain Layout
37290 -packages ! picinpar
37296 Here is an example:
37299 \begin_layout Standard
37303 \begin_layout Plain Layout
37313 \begin_inset Note Note
37316 \begin_layout Plain Layout
37317 The following section will only be displayed when the \SpecialChar LaTeX
37330 \begin_layout Standard
37334 \begin_layout Plain Layout
37338 begin{window}[2,c,{
37344 \begin_inset Graphics
37345 filename clipart/mobius.eps
37348 scaleBeforeRotation
37349 rotateOrigin center
37357 \begin_layout Plain Layout
37362 \begin_layout Plain Layout
37371 It was in the spring of the year 1894 that all London was interested, and
37372 the fashionable world dismayed, by the murder of the Honourable Ronald
37373 Adair under most unusual and inexplicable circumstances.
37374 The public has already learned those particulars of the crime which
37380 \begin_layout Plain Layout
37391 came out in the police investigation, but a good deal was suppressed upon
37392 that occasion, since the case for the prosecution was so overwhelmingly
37393 strong that it was not necessary to bring forward all the facts.
37394 Only now, at the end of nearly ten years, am I allowed to supply those
37395 missing links which make up the whole of that remarkable chain.
37401 \begin_layout Plain Layout
37413 \begin_layout Standard
37417 \begin_layout Plain Layout
37426 Footnote of the paragraph with the fixed object.
37430 \begin_layout Plain Layout
37440 \begin_layout Standard
37441 Surrounded fixed objects are used to let text float around them, at which
37442 the object's position in the paragraph can be determined by the number
37444 In contrary to floats is it not possible to have a numbered caption.
37447 \begin_layout Standard
37448 A fixed object is inserted by adding the command
37451 \begin_layout Standard
37456 begin{window}[2,c,{
37459 \begin_layout Standard
37460 as \SpecialChar TeX
37461 Code at the beginning of the paragraph.
37462 The first parameter in the bracket, here '2', defines the number of lines
37463 above the object, the second, here 'c', the position of the object.
37464 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37465 Behind the command you insert the object.
37466 In this example an image with a width of 40
37467 \begin_inset space \thinspace{}
37470 % of the text column width was inserted.
37471 The object can also be a table, a box or an equation.
37472 Behind the object the command
37475 \begin_layout Standard
37478 },description text]
37479 \begin_inset Newline newline
37485 \begin_layout Standard
37488 \begin_inset Quotes eld
37496 \begin_inset Quotes erd
37499 is in the second line.
37500 The description text is optional.
37501 The text surrounding the object must be in the same paragraph as the object,
37502 so it must begin directly after the
37507 At the end of the paragraph insert the command:
37510 \begin_layout Standard
37518 \begin_layout Standard
37519 Within a paragraph with a fixed object, you cannot insert footnotes in the
37521 You have to use instead the command
37527 inside the paragraph and outside the command
37533 as described in sec.
37534 \begin_inset space \thinspace{}
37538 \begin_inset CommandInset ref
37540 reference "sec:Footnotes"
37547 \begin_layout Standard
37551 \begin_layout Plain Layout
37561 \begin_inset Note Note
37564 \begin_layout Plain Layout
37565 The following will be displayed when the \SpecialChar LaTeX
37578 \begin_layout Standard
37579 You need to install the \SpecialChar LaTeX
37584 to see the following part of this section in the output.
37587 \begin_layout Standard
37591 \begin_layout Plain Layout
37603 \begin_layout Section
37605 \begin_inset Index idx
37608 \begin_layout Plain Layout
37615 \begin_inset Index idx
37618 \begin_layout Plain Layout
37619 Surrounded by text ! Initials
37627 \begin_layout Standard
37628 To use initials, you must have the \SpecialChar LaTeX
37634 \begin_inset Index idx
37637 \begin_layout Plain Layout
37639 -packages ! lettrine
37644 installed and use the module
37648 in your document (menu
37650 Document\SpecialChar menuseparator
37651 Settings\SpecialChar menuseparator
37655 To insert an initial, use the style
37660 This style has a mandatory and two optional arguments.
37661 The arguments are inserted via the
37666 The mandatory argument
37670 contains the letter(s) that is the initial, the argument
37673 \begin_inset space ~
37677 \begin_inset space ~
37682 contains the rest of the word or text of the initial letter(s).
37687 contains parameters to modify the initial.
37688 For more information about the possible parameters see the documentation
37694 \begin_inset CommandInset citation
37701 The style itself contains the text that is surrounding the initial.
37702 The usual style is hereby that the word whose first letter is the initial,
37710 \begin_layout Standard
37711 Here are some examples:
37714 \begin_layout Standard
37718 \begin_layout Plain Layout
37728 \begin_inset Note Note
37731 \begin_layout Plain Layout
37732 The following section will only be displayed when the \SpecialChar LaTeX
37745 \begin_layout Enumerate
37746 No optional argument, the initial is the letter 'I' in the math font
37747 \begin_inset Formula $\mathfrak{Fraktur}$
37751 \begin_inset Separator parbreak
37758 \begin_layout Initial
37759 \begin_inset Argument 2
37762 \begin_layout Plain Layout
37763 \begin_inset Formula $\mathfrak{I}$
37772 \begin_inset Argument 3
37775 \begin_layout Plain Layout
37781 was in the spring of the year 1894 that all London was interested, and
37782 the fashionable world dismayed, by the murder of the Honourable Ronald
37783 Adair under most unusual and inexplicable circumstances.
37784 The public has already learned those particulars of the crime which came
37785 out in the police investigation, but a good deal was suppressed upon that
37786 occasion, since the case for the prosecution was so overwhelmingly strong
37787 that it was not necessary to bring forward all the facts.
37788 \begin_inset Newpage newpage
37795 \begin_layout Enumerate
37796 Only one line is surrounding the initial, which is formed by two letters
37797 in standard font and no text is printed in small caps:
37798 \begin_inset Separator parbreak
37805 \begin_layout Initial
37806 \begin_inset Argument 1
37809 \begin_layout Plain Layout
37816 \begin_inset Argument 2
37819 \begin_layout Plain Layout
37825 was in the spring of the year 1894 that all London was interested, and
37826 the fashionable world dismayed, by the murder of the Honourable Ronald
37827 Adair under most unusual and inexplicable circumstances.
37828 The public has already learned those particulars of the crime which came
37829 out in the police investigation, but a good deal was suppressed upon that
37830 occasion, since the case for the prosecution was so overwhelmingly strong
37831 that it was not necessary to bring forward all the facts.
37835 \begin_layout Enumerate
37836 Magenta, hanging initial over 3
37837 \begin_inset space ~
37840 lines in the math font
37841 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37845 \begin_inset Quotes eld
37848 t was in the spring
37849 \begin_inset Quotes erd
37856 ; to color the initial, you must insert this command before the initial:
37857 \begin_inset Newline newline
37871 \begin_inset Newline newline
37879 \begin_inset Quotes eld
37883 \begin_inset Quotes erd
37887 \begin_inset Quotes eld
37891 \begin_inset Quotes erd
37895 \begin_inset Quotes eld
37899 \begin_inset Quotes erd
37903 \begin_inset Quotes eld
37907 \begin_inset Quotes erd
37911 \begin_inset Quotes eld
37915 \begin_inset Quotes erd
37919 \begin_inset Quotes eld
37923 \begin_inset Quotes erd
37927 \begin_inset Quotes eld
37931 \begin_inset Quotes erd
37935 \begin_inset Quotes eld
37939 \begin_inset Quotes erd
37942 , and add this command to the document preamble:
37943 \begin_inset Newline newline
37950 @ifundefined{textcolor}
37951 \begin_inset Newline newline
37955 \begin_inset space ~
37960 usepackage{color}}{}
37963 \begin_inset Separator parbreak
37970 \begin_layout Standard
37974 \begin_layout Plain Layout
37988 \begin_inset Note Note
37991 \begin_layout Plain Layout
37992 makes the initial magenta
38000 \begin_layout Initial
38001 \begin_inset Argument 1
38004 \begin_layout Plain Layout
38005 lines=3, lhang=0.33, loversize=0.25
38011 \begin_inset Argument 2
38014 \begin_layout Plain Layout
38015 \begin_inset Formula $\mathcal{I}$
38024 \begin_inset Argument 3
38027 \begin_layout Plain Layout
38028 t was in the spring
38033 of the year 1894 that all London was interested, and the fashionable world
38034 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38035 and inexplicable circumstances.
38036 The public has already learned those particulars of the crime which came
38037 out in the police investigation, but a good deal was suppressed upon that
38038 occasion, since the case for the prosecution was so overwhelmingly strong
38039 that it was not necessary to bring forward all the facts.
38043 \begin_layout Standard
38047 \begin_layout Plain Layout
38057 \begin_inset Note Note
38060 \begin_layout Plain Layout
38061 The following will be displayed when the \SpecialChar LaTeX
38074 \begin_layout Standard
38075 You need to install the \SpecialChar LaTeX
38080 to see the following part of this section in the output.
38083 \begin_layout Standard
38087 \begin_layout Plain Layout
38099 \begin_layout Chapter
38100 External Document Parts
38101 \begin_inset Index idx
38104 \begin_layout Plain Layout
38105 External Document Parts
38113 \begin_layout Standard
38116 Insert\SpecialChar menuseparator
38119 you can insert external material into your document.
38123 \begin_layout Description
38125 \begin_inset space ~
38128 Document Another \SpecialChar LyX
38129 document; its content is directly inserted to your document.
38132 \begin_layout Description
38134 \begin_inset space ~
38137 Text A text document; each line is inserted in your document as a separate
38141 \begin_layout Description
38143 \begin_inset space ~
38147 \begin_inset space ~
38151 \begin_inset space ~
38154 Lines A text document; text lines are inserted in your document continuously
38155 but an empty text line creates a new paragraph.
38158 \begin_layout Description
38160 \begin_inset space ~
38163 Material Files in various formats.
38166 \begin_layout Description
38168 \begin_inset space ~
38171 Document \SpecialChar LyX
38172 or \SpecialChar LaTeX
38176 \begin_layout Section
38178 \begin_inset Index idx
38181 \begin_layout Plain Layout
38182 External Document Parts ! External Material
38190 \begin_layout Standard
38191 The external material feature allows you to insert files into your document
38192 without converting them to a format that can be read by the document output
38195 takes care of the necessary conversions.
38196 This is similar to images that can be inserted in various image formats
38197 in \SpecialChar LyX
38199 When you have enabled Instant Preview in \SpecialChar LyX
38200 's preferences under
38203 \begin_inset space ~
38207 \begin_inset space ~
38210 feel\SpecialChar menuseparator
38213 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38217 \begin_layout Standard
38218 External material can be inserted via the
38222 dialog that is accessible with the menu
38224 Insert\SpecialChar menuseparator
38225 File\SpecialChar menuseparator
38227 \begin_inset space ~
38233 Currently the following file types (
38240 \begin_layout Description
38241 ChessDiagram This template supports chess position diagrams made with the
38245 \begin_inset CommandInset href
38248 target "http://en.wikipedia.org/wiki/XBoard"
38257 \begin_layout Description
38258 Date This inserts the date in the form
38263 This is a date inserted as external material:
38264 \begin_inset External
38271 \begin_inset space ~
38275 \begin_inset Note Note
38278 \begin_layout Plain Layout
38279 Remove the protected space when bug 4398 is fixed!
38285 \begin_inset Newline newline
38288 The date is not shown within \SpecialChar LyX
38289 , only in the output.
38290 There are two other methods of inserting a date: Via menu
38292 Insert\SpecialChar menuseparator
38295 and with the \SpecialChar LaTeX
38302 as \SpecialChar TeX
38304 The different methods are compared in Table
38305 \begin_inset space ~
38309 \begin_inset CommandInset ref
38311 reference "tab:Comparison-of-the"
38318 \begin_layout Description
38319 Dia This template supports diagrams created with the program
38322 \begin_inset CommandInset href
38325 target "http://en.wikipedia.org/wiki/Dia_(software)"
38334 \begin_layout Description
38335 GnumericSpreadsheet With this template you can insert spreadsheets
38336 \begin_inset space \thinspace{}
38340 \begin_inset space \thinspace{}
38343 tables in the format of
38346 \begin_inset CommandInset href
38349 target "http://en.wikipedia.org/wiki/Gnumeric"
38356 \begin_inset CommandInset href
38358 name "OpenDocument"
38359 target "http://en.wikipedia.org/wiki/OpenDocument"
38364 \begin_inset CommandInset href
38366 name "Microsoft Office XML"
38367 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38372 \begin_inset CommandInset href
38374 name "Office Open XML"
38375 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38380 For this feature \SpecialChar LyX
38381 must have found the program
38385 during its configuration.
38386 This program is part of Gnumeric, so that you must have Gnumeric installed,
38387 also if you don't have tables in the Gnumeric format.
38388 For examples and possible limitations have a look at \SpecialChar LyX
38396 \begin_layout Description
38397 LilyPond This template is used for music notation typeset with the program
38398 \begin_inset Newline linebreak
38404 \begin_inset CommandInset href
38407 target "http://en.wikipedia.org/wiki/LilyPond"
38414 For \SpecialChar LyX
38415 's extended support for LilyPond have a look at \SpecialChar LyX
38423 \begin_layout Description
38424 PDFPages With this template you can insert PDF documents to your document.
38425 To specify the range of pages that should be included, use the option
38435 LaTeX and LyX options
38438 The argument of this option is a comma separated list, containing page
38439 numbers (insert as option
38443 ), ranges of page numbers (
38447 ) or any combination.
38448 To insert empty pages use {}.
38450 \begin_inset space \thinspace{}
38454 \begin_inset space ~
38459 pages={3,{},8-11,15}
38461 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38462 Page ranges are specified in the syntax
38471 This selects all pages from
38484 defaults to the first page; omitting
38488 defaults to the last page of the document.
38489 The last page can also be selected with the keyword
38494 (This is only permitted in a page range.) So
38498 will insert all pages of the document and
38502 will insert all pages in reverse order.
38503 If the pages option is not specified, only the first page of the PDF is
38505 \begin_inset Newline newline
38512 inserts the pages with their original size, if this option is not given,
38513 the pages will be resized to fith the width of the page of your document.
38518 you can specify the width and height of the input pages and their rotation.
38519 If another width than 100
38520 \begin_inset space \thinspace{}
38523 Scale% is used, the option
38527 will be overwritten.
38528 For more info and possible options, have a look into the documentation
38529 of the \SpecialChar LaTeX
38535 \begin_inset CommandInset citation
38542 \begin_inset Index idx
38545 \begin_layout Plain Layout
38547 -packages ! pdfpages
38553 \begin_inset Newline newline
38556 To use this template in a
38560 presentation you need to first insert an
38564 environment and in a subsequent paragraph a \SpecialChar TeX
38565 Code box containing the command
38570 setbeamertemplate{background canvas}{}
38573 Then you can insert as many paragraphs containing the PDFPages template
38575 Behind the included PDF pages you can resume the Beamer presentation by
38576 beginning a new frame or by starting a new section.
38577 To avoid stray blank pages prior to the PDF pages, make sure to use the
38582 alignment for the paragraph containing the template.
38583 \begin_inset Newline newline
38586 Here is an included PDF which is rotated by -5°:
38587 \begin_inset External
38589 filename clipart/Abstract.pdf
38590 extra LaTeX "noautoscale, pages=-"
38592 rotateOrigin bottomleft
38599 \begin_layout Description
38600 RasterImage This can be used for bitmap images.
38601 The image can be treated in the
38605 dialog like the images that are usually included via the
38609 dialog as described in section
38610 \begin_inset space ~
38614 \begin_inset CommandInset ref
38616 reference "sec:Graphics-Dialog"
38621 The difference to the normal image input is that only raster images are
38622 allowed; that means that PDF and EPS-images are not supported.
38623 Here is an inserted raster image:
38624 \begin_inset External
38625 template RasterImage
38626 filename clipart/ToolbarEnvBox.png
38633 \begin_layout Description
38634 XFig This template supports images created with the program
38637 \begin_inset CommandInset href
38640 target "http://en.wikipedia.org/wiki/Xfig"
38649 \begin_layout Standard
38650 \begin_inset Float table
38656 \begin_layout Plain Layout
38657 \begin_inset Caption Standard
38659 \begin_layout Plain Layout
38660 \begin_inset CommandInset label
38662 name "tab:Comparison-of-the"
38666 Comparison of the date input methods.
38674 \begin_layout Plain Layout
38676 \begin_inset Tabular
38677 <lyxtabular version="3" rows="4" columns="4">
38678 <features tabularvalignment="middle">
38679 <column alignment="center" valignment="top">
38680 <column alignment="center" valignment="top">
38681 <column alignment="center" valignment="top">
38682 <column alignment="center" valignment="top">
38684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38687 \begin_layout Plain Layout
38693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38696 \begin_layout Plain Layout
38699 External Material\SpecialChar menuseparator
38705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38708 \begin_layout Plain Layout
38711 Insert\SpecialChar menuseparator
38717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38720 \begin_layout Plain Layout
38732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38735 \begin_layout Plain Layout
38742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38745 \begin_layout Plain Layout
38751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38754 \begin_layout Plain Layout
38760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38763 \begin_layout Plain Layout
38764 as \SpecialChar TeX
38772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38775 \begin_layout Plain Layout
38782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38785 \begin_layout Plain Layout
38791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38794 \begin_layout Plain Layout
38800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38803 \begin_layout Plain Layout
38811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38814 \begin_layout Plain Layout
38820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38823 \begin_layout Plain Layout
38829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38832 \begin_layout Plain Layout
38838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38841 \begin_layout Plain Layout
38860 \begin_layout Standard
38861 When you use the option
38873 dialog, only the path to the inserted file is shown in the output.
38874 \begin_inset Newline newline
38877 External material is displayed in \SpecialChar LyX
38878 either as a box like this:
38879 \begin_inset Graphics
38880 filename clipart/ExternalMaterialQt4.png
38882 scaleBeforeRotation
38886 or as image, depending on the option
38892 LaTeX and LyX options
38897 \begin_layout Standard
38904 manual explains how you can define your own templates.
38907 \begin_layout Section
38909 \begin_inset CommandInset label
38911 name "sec:Child-Documents"
38916 \begin_inset Index idx
38919 \begin_layout Plain Layout
38920 External Document Parts ! Child Documents
38926 \begin_inset Index idx
38929 \begin_layout Plain Layout
38938 \begin_layout Standard
38939 Child documents are used if you have a long document consisting of several
38940 larger parts or sections.
38941 For maintenance it is often useful and sometimes even required to split
38942 the document into several files that can be revised separately.
38943 The different documents are then the so called
38944 \begin_inset Quotes eld
38948 \begin_inset Quotes erd
38951 , and a master document connects them to print the full document or parts
38953 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38955 the bibliography, and labels for cross-references.
38958 \begin_layout Standard
38959 To be able to work on child documents without the need to open their master,
38960 specify in the child document the master in the menu
38962 Document\SpecialChar menuseparator
38963 Settings\SpecialChar menuseparator
38965 \begin_inset space ~
38971 This master document will then be used in the background by \SpecialChar LyX
38973 the child document.
38976 \begin_layout Standard
38977 Included documents are displayed in \SpecialChar LyX
38978 as a box like this:
38979 \begin_inset Graphics
38980 filename clipart/ChildDocumentQt4.png
38982 scaleBeforeRotation
38986 To include child documents in a master document use the menu
38988 Insert\SpecialChar menuseparator
38989 File\SpecialChar menuseparator
38991 \begin_inset space ~
38997 A dialog pops up where you can choose between four include methods:
39000 \begin_layout Description
39001 Include You can include \SpecialChar LyX
39002 and \SpecialChar LaTeX
39012 dialog, the included document will be opened in \SpecialChar LyX
39013 in a new file tab so that
39015 \begin_inset Newline newline
39021 \begin_layout Standard
39022 Here is a child document inserted using
39027 \begin_inset CommandInset include
39028 LatexCommand include
39029 filename "DummyDocument1.lyx"
39036 \begin_layout Standard
39037 The section numbering includes the sections of the included files in the
39038 order they are inserted in the master document.
39039 The included example document has for example a subsection that is numbered
39040 as a subsection of this section.
39041 Labels of included documents can be referenced: Subsection
39042 \begin_inset space ~
39046 \begin_inset CommandInset ref
39048 reference "subsec:External-Subsection-1"
39055 \begin_layout Standard
39056 The preamble of the child document is ignored; only the preamble of the
39057 master document is used.
39058 Branches in child documents will be ignored by the master document when
39059 the master document does not have a branch with the same name.
39060 Included documents are inserted starting on a new page and ending with
39064 \begin_layout Standard
39065 \begin_inset Note Greyedout
39068 \begin_layout Plain Layout
39073 If you have included a \SpecialChar LyX
39074 or \SpecialChar LaTeX
39075 file, you are warned when you export/view the
39076 document in case the child document uses another document class than the
39077 master document as this will lead to unexpected outputs.
39085 \begin_layout Description
39086 Input This method is very similar to the Include method.
39087 The differences are:
39088 \begin_inset Separator parbreak
39095 \begin_layout Itemize
39096 Input files don't start with a new page and don't end with a page break.
39099 \begin_layout Itemize
39100 Input files can be previewed in \SpecialChar LyX
39104 \begin_inset space ~
39109 is enabled in \SpecialChar LyX
39110 's preferences under
39113 \begin_inset space ~
39117 \begin_inset space ~
39120 feel\SpecialChar menuseparator
39126 \begin_layout Itemize
39127 You cannot exclude Input files via the menu
39129 Document\SpecialChar menuseparator
39130 Settings\SpecialChar menuseparator
39137 \begin_layout Standard
39138 Here is a child document inserted using
39143 \begin_inset CommandInset include
39145 filename "DummyDocument2.lyx"
39152 \begin_layout Description
39153 Verbatim With this method any text file can be included.
39154 The file is shown in the output with its source code; no command used in
39155 the text is invoked.
39156 You can use the option
39158 Mark spaces in output
39160 that displays the character
39161 \begin_inset Quotes eld
39168 \begin_layout Plain Layout
39178 \begin_inset Quotes erd
39181 for every space character in the source code.
39182 The difference from the method via the menu
39184 Insert\SpecialChar menuseparator
39185 File\SpecialChar menuseparator
39187 \begin_inset space ~
39192 is that the document content is not shown in \SpecialChar LyX
39196 \begin_layout Standard
39197 Here is a child document inserted as Verbatim:
39198 \begin_inset CommandInset include
39199 LatexCommand verbatiminput
39200 filename "DummyTextDocument.txt"
39205 \begin_inset VSpace bigskip
39208 Here is a child document inserted as Verbatim using the
39210 Mark spaces in output
39213 \begin_inset CommandInset include
39214 LatexCommand verbatiminput*
39215 filename "DummyTextDocument.txt"
39222 \begin_layout Standard
39223 \begin_inset VSpace bigskip
39229 \begin_layout Standard
39230 \begin_inset Note Greyedout
39233 \begin_layout Plain Layout
39238 As you can see in the examples above, the text of the documents included
39243 is not broken at the end of the document lines.
39251 \begin_layout Description
39252 Listings This type is described in chapter
39253 \begin_inset space ~
39257 \begin_inset CommandInset ref
39259 reference "cha:Program-Code-Listings"
39266 \begin_layout Standard
39267 \begin_inset Note Greyedout
39270 \begin_layout Plain Layout
39275 Including the same document twice in a document using different methods
39276 could cause \SpecialChar LaTeX
39285 \begin_layout Standard
39286 If you want to view/export only selected children of your master document,
39287 either because you want to save compiling time or because you want to distribut
39288 e single chapters of the book you are just writing, you can exclude children
39290 This is done via the menu
39292 Document\SpecialChar menuseparator
39293 Settings\SpecialChar menuseparator
39297 You can exclude\SpecialChar breakableslash
39298 include children by double-clicking on the
39302 column of the respective child document in the list (note that this only
39303 works for documents embedded via
39304 \begin_inset Quotes eld
39308 \begin_inset Quotes erd
39312 \begin_inset Quotes eld
39316 \begin_inset Quotes erd
39322 Maintain counters and references
39324 is enabled, \SpecialChar LyX
39325 will assure that all page numbers, references etc.
39326 \begin_inset space ~
39329 are correct as if the whole document was processed.
39330 This is useful if you want the selected sub-documents to look exactly as
39331 in the context of the whole document.
39332 However, \SpecialChar LyX
39333 needs to process the whole document in the background for this
39335 So if you want to save compile time and if counters and references do not
39336 need to be correct, disable this checkbox.
39339 \begin_layout Standard
39340 Alternatively, you can put each included file into a branch.
39344 \begin_layout Plain Layout
39345 Branches are described in section
39349 of the \SpecialChar LyX
39359 By enabling\SpecialChar breakableslash
39360 disabling branches you can decide which included files will
39361 appear in the output.
39362 This has the advantage that it also works with Input'ed sub-documents.
39363 However, counters and references will not be maintained with this approach.
39366 \begin_layout Chapter
39367 Program Code Listings
39368 \begin_inset CommandInset label
39370 name "cha:Program-Code-Listings"
39375 \begin_inset Index idx
39378 \begin_layout Plain Layout
39385 \begin_inset Index idx
39388 \begin_layout Plain Layout
39395 \begin_inset Index idx
39398 \begin_layout Plain Layout
39407 \begin_layout Standard
39408 To include and typeset program code you can use the
39412 inset that can be inserted via the menu
39414 Insert\SpecialChar menuseparator
39418 The \SpecialChar LaTeX
39424 \begin_inset Index idx
39427 \begin_layout Plain Layout
39429 -packages ! listings
39434 provides a powerful and flexible way to insert program source code into
39438 \begin_layout Standard
39439 Right-clicking on a listings inset opens the context menu containing where
39440 you can set the listings format.
39443 \begin_layout Standard
39444 By default, a listing starts a new paragraph in the output.
39445 The placement option
39448 \begin_inset space ~
39453 prints the listing inline like this:
39454 \begin_inset listings
39455 lstparams "language={C++}"
39459 \begin_layout Plain Layout
39467 \begin_inset Newline newline
39474 creates a listings float where you can specify the placement options
39475 \begin_inset Quotes eld
39483 \begin_inset Quotes erd
39487 \begin_inset Quotes eld
39495 \begin_inset Quotes erd
39499 \begin_inset Quotes eld
39507 \begin_inset Quotes erd
39511 \begin_inset Quotes eld
39519 \begin_inset Quotes erd
39522 corresponding to the float placement options described in section
39523 \begin_inset space ~
39527 \begin_inset CommandInset ref
39529 reference "sec:Float-Placement"
39534 The placement options can be mixed and are inserted without any separation,
39536 \begin_inset space \thinspace{}
39540 \begin_inset space \space{}
39544 \begin_inset Quotes eld
39552 \begin_inset Quotes erd
39557 \begin_inset Quotes eld
39561 \begin_inset Quotes erd
39564 has sometimes no effect, but you don't need to use the
39568 option in this case as also non-float listings can have captions and be
39572 \begin_layout Standard
39573 You can add captions to listings with the menu
39575 Insert\SpecialChar menuseparator
39579 Listings can be referenced like floats: Listing
39580 \begin_inset space ~
39584 \begin_inset CommandInset ref
39586 reference "lst:Example-Listing"
39591 A list of listings which contains all listings with captions can be created
39594 Insert\SpecialChar menuseparator
39596 \begin_inset space ~
39600 \begin_inset space ~
39603 TOC\SpecialChar menuseparator
39607 The list entries are the listing caption and the listing number.
39610 \begin_layout Standard
39611 \begin_inset listings
39612 lstparams "language=Python"
39616 \begin_layout Plain Layout
39618 \begin_inset Caption Standard
39620 \begin_layout Plain Layout
39621 \begin_inset CommandInset label
39623 name "lst:Example-Listing"
39627 Example Listing float
39632 # Example listing float
39635 \begin_layout Plain Layout
39640 \begin_layout Plain Layout
39642 'this is a python function'
39645 \begin_layout Plain Layout
39655 \begin_layout Standard
39656 When you have set a programming language in the listings dialog, the keywords
39657 of this language will be recognized and specially typeset in the output.
39658 In the example listings the Python keyword
39659 \begin_inset Quotes eld
39663 \begin_inset Quotes erd
39666 is recognized and printed bold in the output.
39669 \begin_layout Standard
39670 \begin_inset Note Greyedout
39673 \begin_layout Plain Layout
39678 If you don't get bold keywords when using typewriter fonts, your
39682 font probably doesn't provide a bold shape.
39683 In this case select a different one in the menu
39685 Document\SpecialChar menuseparator
39686 Settings\SpecialChar menuseparator
39698 provide bold shapes.)
39706 \begin_layout Standard
39710 \begin_inset space ~
39715 of the listings dialog you can specify the line numbering style.
39716 You can insert a number to specify which lines are numbered in the field
39723 \begin_inset space \thinspace{}
39727 \begin_inset space \space{}
39731 \begin_inset Quotes eld
39735 \begin_inset Quotes erd
39738 , only every 3rd line will be numbered.
39741 \begin_layout Standard
39742 You can furthermore specify a range of lines; only these will then appear
39746 Extended character table
39748 should be used when you use national characters like the German umlauts
39750 \begin_inset Newline newline
39753 Here is an example listing with left line numbering, step
39754 \begin_inset Quotes eld
39758 \begin_inset Quotes erd
39762 \begin_inset Quotes eld
39766 \begin_inset Quotes erd
39770 \begin_inset Quotes eld
39773 Extended character table
39774 \begin_inset Quotes erd
39778 \begin_inset Quotes eld
39782 \begin_inset space ~
39786 \begin_inset space ~
39790 \begin_inset Quotes erd
39794 \begin_inset space \thinspace{}
39798 \begin_inset space \thinspace{}
39804 \begin_layout Standard
39805 \begin_inset listings
39806 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39810 \begin_layout Plain Layout
39815 \begin_layout Plain Layout
39817 'this is a python function'
39820 \begin_layout Plain Layout
39825 \begin_layout Plain Layout
39830 \begin_layout Plain Layout
39832 'This is a German word: Tschüß'
39835 \begin_layout Plain Layout
39840 \begin_layout Plain Layout
39845 \begin_layout Plain Layout
39847 'this is a python function'
39850 \begin_layout Plain Layout
39860 \begin_layout Standard
39861 When you have tabulators in your listing, you can specify the number of
39862 characters that are spanned by a tabulator in the field
39865 \begin_inset space ~
39873 \begin_layout Standard
39874 \begin_inset Note Greyedout
39877 \begin_layout Plain Layout
39882 Due to a bug in the
39886 package the line numbering is shifted by a line by every previous listing.
39887 That's the reason why the lines 2 and 5 are numbered in the above listing
39888 and not the lines 3 and 6.
39896 \begin_layout Standard
39897 \begin_inset VSpace bigskip
39903 \begin_layout Standard
39904 It is also possible to print lines from a file as listing.
39905 To do this, use the menu
39907 Insert\SpecialChar menuseparator
39908 File\SpecialChar menuseparator
39911 and choose the type
39919 \begin_layout Plain Layout
39920 The other child document types are described in section
39921 \begin_inset space ~
39925 \begin_inset CommandInset ref
39927 reference "sec:Child-Documents"
39936 In the child document dialog you can specify the listing parameters in
39938 To show a list of all available parameters, type in a question mark
39939 \begin_inset Quotes eld
39943 \begin_inset Quotes erd
39949 \begin_layout Standard
39950 To reference child document listings, write a label text into the corresponding
39951 field of the child document dialog.
39952 The label can then be referenced using the menu
39954 Insert\SpecialChar menuseparator
39960 \begin_layout Standard
39962 \begin_inset space ~
39966 \begin_inset CommandInset ref
39968 reference "lst:file-listing"
39972 is an example for a listing of a file; there the lines 10
39973 \begin_inset space \thinspace{}
39977 \begin_inset space \thinspace{}
39980 15 of this \SpecialChar LyX
39984 \begin_layout Standard
39985 \begin_inset CommandInset include
39986 LatexCommand lstinputlisting
39987 filename "EmbeddedObjects.lyx"
39988 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39995 \begin_layout Standard
39996 \begin_inset VSpace bigskip
40002 \begin_layout Standard
40003 Inserting a formula into a listing can be done the following way:
40006 \begin_layout Enumerate
40007 Open the listings dialog and add
40008 \begin_inset Newline newline
40016 \begin_inset Newline newline
40019 to the field of the
40026 \begin_layout Enumerate
40027 Create a formula outside the listing
40030 \begin_layout Enumerate
40031 Copy the content of the formula (not the formula inset) to the clipboard
40041 \begin_layout Enumerate
40042 In the listing write
40043 \begin_inset Quotes eld
40051 \begin_inset Quotes erd
40054 and copy from the clipboard between the dollar-signs (shortcut
40063 \begin_layout Standard
40064 \begin_inset listings
40065 lstparams "language=Python,mathescape=true"
40069 \begin_layout Plain Layout
40071 \begin_inset Caption Standard
40073 \begin_layout Plain Layout
40074 Example Listing float containing a formula
40079 # Example listing float
40082 \begin_layout Plain Layout
40087 \begin_layout Plain Layout
40100 \begin_layout Plain Layout
40110 \begin_layout Standard
40111 \begin_inset VSpace bigskip
40117 \begin_layout Standard
40118 Global listings settings can be set in the
40120 Document\SpecialChar menuseparator
40121 Settings\SpecialChar menuseparator
40125 To get there a list of available options, type in a question mark
40126 \begin_inset Quotes eld
40130 \begin_inset Quotes erd
40136 \begin_layout Standard
40137 For more information about the
40141 package, we refer to its documentation
40142 \begin_inset CommandInset citation
40151 \begin_layout Standard
40152 \begin_inset Newpage newpage
40158 \begin_layout Chapter
40160 Units available in \SpecialChar LyX
40162 \begin_inset Index idx
40165 \begin_layout Plain Layout
40172 \begin_inset CommandInset label
40174 name "cha:Units-available-in"
40181 \begin_layout Standard
40182 To understand the units described in this documentation, Table
40183 \begin_inset space ~
40187 \begin_inset CommandInset ref
40189 reference "tab:Units"
40193 explains all units available in \SpecialChar LyX
40197 \begin_layout Standard
40198 \begin_inset Float table
40204 \begin_layout Plain Layout
40205 \begin_inset Caption Standard
40207 \begin_layout Plain Layout
40208 \begin_inset CommandInset label
40222 \begin_layout Plain Layout
40223 \begin_inset VSpace medskip
40229 \begin_layout Plain Layout
40231 \begin_inset Tabular
40232 <lyxtabular version="3" rows="20" columns="3">
40233 <features tabularvalignment="middle">
40234 <column alignment="center" valignment="top">
40235 <column alignment="center" valignment="top">
40236 <column alignment="center" valignment="top">
40238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40241 \begin_layout Plain Layout
40247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40250 \begin_layout Plain Layout
40256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40259 \begin_layout Plain Layout
40268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40271 \begin_layout Plain Layout
40277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40280 \begin_layout Plain Layout
40286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40289 \begin_layout Plain Layout
40297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40300 \begin_layout Plain Layout
40306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40309 \begin_layout Plain Layout
40315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40318 \begin_layout Plain Layout
40326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40329 \begin_layout Plain Layout
40335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40338 \begin_layout Plain Layout
40344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40347 \begin_layout Plain Layout
40355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40358 \begin_layout Plain Layout
40364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40367 \begin_layout Plain Layout
40369 \begin_inset space \thinspace{}
40373 \begin_inset space \thinspace{}
40381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40384 \begin_layout Plain Layout
40392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40395 \begin_layout Plain Layout
40401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40404 \begin_layout Plain Layout
40406 \begin_inset space \thinspace{}
40410 \begin_inset space \thinspace{}
40418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40421 \begin_layout Plain Layout
40429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40432 \begin_layout Plain Layout
40438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40441 \begin_layout Plain Layout
40442 scaled point (65536
40443 \begin_inset space \thinspace{}
40447 \begin_inset space \thinspace{}
40455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40458 \begin_layout Plain Layout
40466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40469 \begin_layout Plain Layout
40475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40478 \begin_layout Plain Layout
40480 \begin_inset space \thinspace{}
40484 \begin_inset space \thinspace{}
40492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40495 \begin_layout Plain Layout
40503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40506 \begin_layout Plain Layout
40512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40515 \begin_layout Plain Layout
40517 \begin_inset space \thinspace{}
40521 \begin_inset Formula $\approx$
40525 \begin_inset space \thinspace{}
40533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40536 \begin_layout Plain Layout
40544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40547 \begin_layout Plain Layout
40553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40556 \begin_layout Plain Layout
40558 \begin_inset space \thinspace{}
40562 \begin_inset space \thinspace{}
40570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40573 \begin_layout Plain Layout
40581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40584 \begin_layout Plain Layout
40590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40593 \begin_layout Plain Layout
40594 % of original image width
40599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40602 \begin_layout Plain Layout
40610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40613 \begin_layout Plain Layout
40619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40622 \begin_layout Plain Layout
40628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40631 \begin_layout Plain Layout
40641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40644 \begin_layout Plain Layout
40650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40653 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40662 \begin_layout Plain Layout
40672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40675 \begin_layout Plain Layout
40681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40684 \begin_layout Plain Layout
40690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40693 \begin_layout Plain Layout
40703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40706 \begin_layout Plain Layout
40712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40715 \begin_layout Plain Layout
40721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40724 \begin_layout Plain Layout
40734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40737 \begin_layout Plain Layout
40743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40746 \begin_layout Plain Layout
40752 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40755 \begin_layout Plain Layout
40765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40768 \begin_layout Plain Layout
40774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40777 \begin_layout Plain Layout
40783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40786 \begin_layout Plain Layout
40796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40799 \begin_layout Plain Layout
40805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40808 \begin_layout Plain Layout
40818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40821 \begin_layout Plain Layout
40829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40832 \begin_layout Plain Layout
40838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40841 \begin_layout Plain Layout
40851 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40854 \begin_layout Plain Layout
40862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40865 \begin_layout Plain Layout
40871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40874 \begin_layout Plain Layout
40876 \begin_inset space \thinspace{}
40880 \begin_inset space \thinspace{}
40888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40891 \begin_layout Plain Layout
40910 \begin_layout Chapter
40911 Output File Formats with Graphics
40912 \begin_inset CommandInset label
40914 name "cha:Output-File-Formats"
40921 \begin_layout Section
40923 \begin_inset Index idx
40926 \begin_layout Plain Layout
40933 \begin_inset Index idx
40936 \begin_layout Plain Layout
40941 \begin_layout Plain Layout
40952 \begin_layout Plain Layout
40967 \begin_layout Standard
40968 This file type has the extension
40969 \begin_inset Quotes eld
40977 \begin_inset Quotes erd
40982 \begin_inset Quotes eld
40986 \begin_inset Quotes erd
40989 (DVI), because it is completely portable; you can move them from one machine
40990 to another without needing to do any sort of conversion.
40991 At the time when this file-format was developed, this was no matter of
40993 DVIs are used for quick previews and as pre-stage for other output formats,
40997 \begin_layout Standard
40998 \begin_inset Note Greyedout
41001 \begin_layout Plain Layout
41006 DVI-files do not contain images; they will only be a linked.
41011 So don't forget this, if you move your
41015 file to another computer.
41016 This property can also slow down your computer when you view the DVI, because
41017 the DVI-viewer has to convert the image in the background to make it visible
41018 when you scroll in the DVI.
41019 So it is recommended that you use PDF for files with many images.
41022 \begin_layout Standard
41023 You can export your document to DVI by using the menu
41025 File\SpecialChar menuseparator
41026 Export\SpecialChar menuseparator
41030 You can view your document as DVI via the
41037 \begin_layout Section
41039 \begin_inset Index idx
41042 \begin_layout Plain Layout
41043 File Formats ! PostScript
41049 \begin_inset Index idx
41052 \begin_layout Plain Layout
41057 \begin_layout Plain Layout
41068 \begin_layout Plain Layout
41083 \begin_layout Standard
41084 This file type has the extension
41085 \begin_inset Quotes eld
41093 \begin_inset Quotes erd
41097 PostScript was developed by the company
41101 as a printer language.
41102 The file therefore contains commands that the printer uses to print the
41104 PostScript can be seen as a
41105 \begin_inset Quotes eld
41108 programming language
41109 \begin_inset Quotes erd
41112 ; you can calculate with it and draw diagrams and images
41116 \begin_layout Plain Layout
41117 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41124 \begin_inset CommandInset citation
41136 Due to this ability, the files are often bigger than PDFs.
41139 \begin_layout Standard
41140 PostScript can only contain images in the format
41141 \begin_inset Quotes eld
41144 Encapsulated PostScript
41145 \begin_inset Quotes erd
41148 (EPS, file extension
41149 \begin_inset Quotes eld
41157 \begin_inset Quotes erd
41161 As \SpecialChar LyX
41162 allows you to use any known image format in your document, it has to
41163 convert images in the background to EPS.
41165 \begin_inset space ~
41169 \begin_inset space ~
41172 images in your document, \SpecialChar LyX
41174 \begin_inset space ~
41177 conversions whenever you view or export your document.
41178 This will slow down your work flow with \SpecialChar LyX
41180 So if you plan to use PostScript, you can insert your images directly as
41181 EPS to avoid this problem.
41184 \begin_layout Standard
41185 You can export your document to PostScript using the menu
41187 File\SpecialChar menuseparator
41188 Export\SpecialChar menuseparator
41192 You can view your document as PostScript via the
41199 \begin_layout Section
41201 \begin_inset Index idx
41204 \begin_layout Plain Layout
41211 \begin_inset Index idx
41214 \begin_layout Plain Layout
41223 \begin_layout Standard
41224 This file type has the extension
41225 \begin_inset Quotes eld
41233 \begin_inset Quotes erd
41238 \begin_inset Quotes eld
41241 Portable Document Format
41242 \begin_inset Quotes erd
41245 (PDF) was developed by
41249 as a derivative of PostScript.
41250 It is more compressed and it uses fewer commands than PostScript.
41252 \begin_inset Quotes eld
41256 \begin_inset Quotes erd
41259 implies, it can be processed at any computer system and the printed output
41260 looks exactly the same.
41263 \begin_layout Standard
41264 PDF can contain images in its own PDF format, in the format
41265 \begin_inset Quotes eld
41268 Joint Photographic Experts Group
41269 \begin_inset Quotes erd
41272 (JPG, file extension
41273 \begin_inset Quotes eld
41281 \begin_inset Quotes erd
41285 \begin_inset Quotes eld
41293 \begin_inset Quotes erd
41296 ), and in the format
41297 \begin_inset Quotes eld
41300 Portable Network Graphics
41301 \begin_inset Quotes erd
41304 (PNG, file extension
41305 \begin_inset Quotes eld
41313 \begin_inset Quotes erd
41317 Nevertheless you can use any other image format, because \SpecialChar LyX
41319 in the background to one of these formats.
41320 But as described in the section about PostScript, the image conversion
41321 will slow down your work flow.
41322 So it is recommended that you use images in one of the three mentioned
41326 \begin_layout Standard
41327 You can export your document to PDF via the menu
41329 File\SpecialChar menuseparator
41332 in three different ways:
41335 \begin_layout Description
41337 \begin_inset space ~
41340 (ps2pdf) This uses the program
41344 that creates a PDF from a PostScript-version of your file.
41345 The PostScript-version is produced by the program
41349 which uses a DVI-version as intermediate step.
41350 So this export variant consists of three conversions.
41353 \begin_layout Description
41355 \begin_inset space ~
41358 (dvipdfm) This uses the program
41362 that converts your file in the background to DVI and in a second step to
41366 \begin_layout Description
41368 \begin_inset space ~
41371 (pdflatex) This uses the program
41375 that converts your file directly to PDF.
41378 \begin_layout Standard
41379 It is recommended that you use
41382 \begin_inset space ~
41391 supports all features of actual PDF-versions, is quick and works stable.
41396 is not under development and therefore a bit outdated.
41399 \begin_layout Standard
41400 You can view your document as PDF via the
41404 menu or by using a toolbar button.
41407 \begin_layout Chapter
41408 List of dvips color names
41409 \begin_inset CommandInset label
41411 name "chap:List-of-dvips-colornames"
41418 \begin_layout Standard
41419 \begin_inset Tabular
41420 <lyxtabular version="3" rows="17" columns="4">
41421 <features tabularvalignment="middle">
41422 <column alignment="left" valignment="top" width="0pt">
41423 <column alignment="left" valignment="top" width="0pt">
41424 <column alignment="left" valignment="top" width="0pt">
41425 <column alignment="left" valignment="top" width="0pt">
41427 <cell alignment="left" valignment="top" usebox="none">
41430 \begin_layout Plain Layout
41434 \begin_layout Plain Layout
41447 \begin_layout Plain Layout
41458 \begin_layout Plain Layout
41470 <cell alignment="left" valignment="top" usebox="none">
41473 \begin_layout Plain Layout
41477 \begin_layout Plain Layout
41490 \begin_layout Plain Layout
41501 \begin_layout Plain Layout
41513 <cell alignment="left" valignment="top" usebox="none">
41516 \begin_layout Plain Layout
41520 \begin_layout Plain Layout
41533 \begin_layout Plain Layout
41544 \begin_layout Plain Layout
41556 <cell alignment="left" valignment="top" usebox="none">
41559 \begin_layout Plain Layout
41563 \begin_layout Plain Layout
41576 \begin_layout Plain Layout
41587 \begin_layout Plain Layout
41601 <cell alignment="center" valignment="top" usebox="none">
41604 \begin_layout Plain Layout
41608 \begin_layout Plain Layout
41621 \begin_layout Plain Layout
41629 \begin_inset Phantom Phantom
41632 \begin_layout Plain Layout
41642 \begin_layout Plain Layout
41654 <cell alignment="center" valignment="top" usebox="none">
41657 \begin_layout Plain Layout
41661 \begin_layout Plain Layout
41674 \begin_layout Plain Layout
41682 \begin_inset Phantom Phantom
41685 \begin_layout Plain Layout
41695 \begin_layout Plain Layout
41707 <cell alignment="center" valignment="top" usebox="none">
41710 \begin_layout Plain Layout
41714 \begin_layout Plain Layout
41727 \begin_layout Plain Layout
41735 \begin_inset Phantom Phantom
41738 \begin_layout Plain Layout
41748 \begin_layout Plain Layout
41760 <cell alignment="center" valignment="top" usebox="none">
41763 \begin_layout Plain Layout
41767 \begin_layout Plain Layout
41780 \begin_layout Plain Layout
41788 \begin_inset Phantom Phantom
41791 \begin_layout Plain Layout
41801 \begin_layout Plain Layout
41815 <cell alignment="left" valignment="top" usebox="none">
41818 \begin_layout Plain Layout
41822 \begin_layout Plain Layout
41835 \begin_layout Plain Layout
41843 \begin_inset Phantom Phantom
41846 \begin_layout Plain Layout
41856 \begin_layout Plain Layout
41868 <cell alignment="left" valignment="top" usebox="none">
41871 \begin_layout Plain Layout
41875 \begin_layout Plain Layout
41888 \begin_layout Plain Layout
41896 \begin_inset Phantom Phantom
41899 \begin_layout Plain Layout
41909 \begin_layout Plain Layout
41921 <cell alignment="left" valignment="top" usebox="none">
41924 \begin_layout Plain Layout
41928 \begin_layout Plain Layout
41941 \begin_layout Plain Layout
41949 \begin_inset Phantom Phantom
41952 \begin_layout Plain Layout
41962 \begin_layout Plain Layout
41974 <cell alignment="left" valignment="top" usebox="none">
41977 \begin_layout Plain Layout
41981 \begin_layout Plain Layout
41994 \begin_layout Plain Layout
42002 \begin_inset Phantom Phantom
42005 \begin_layout Plain Layout
42015 \begin_layout Plain Layout
42029 <cell alignment="left" valignment="top" usebox="none">
42032 \begin_layout Plain Layout
42036 \begin_layout Plain Layout
42049 \begin_layout Plain Layout
42057 \begin_inset Phantom Phantom
42060 \begin_layout Plain Layout
42070 \begin_layout Plain Layout
42082 <cell alignment="left" valignment="top" usebox="none">
42085 \begin_layout Plain Layout
42089 \begin_layout Plain Layout
42102 \begin_layout Plain Layout
42110 \begin_inset Phantom Phantom
42113 \begin_layout Plain Layout
42123 \begin_layout Plain Layout
42135 <cell alignment="left" valignment="top" usebox="none">
42138 \begin_layout Plain Layout
42142 \begin_layout Plain Layout
42155 \begin_layout Plain Layout
42163 \begin_inset Phantom Phantom
42166 \begin_layout Plain Layout
42176 \begin_layout Plain Layout
42188 <cell alignment="left" valignment="top" usebox="none">
42191 \begin_layout Plain Layout
42195 \begin_layout Plain Layout
42208 \begin_layout Plain Layout
42216 \begin_inset Phantom Phantom
42219 \begin_layout Plain Layout
42229 \begin_layout Plain Layout
42243 <cell alignment="left" valignment="top" usebox="none">
42246 \begin_layout Plain Layout
42250 \begin_layout Plain Layout
42263 \begin_layout Plain Layout
42271 \begin_inset Phantom Phantom
42274 \begin_layout Plain Layout
42284 \begin_layout Plain Layout
42296 <cell alignment="left" valignment="top" usebox="none">
42299 \begin_layout Plain Layout
42303 \begin_layout Plain Layout
42316 \begin_layout Plain Layout
42324 \begin_inset Phantom Phantom
42327 \begin_layout Plain Layout
42337 \begin_layout Plain Layout
42349 <cell alignment="left" valignment="top" usebox="none">
42352 \begin_layout Plain Layout
42356 \begin_layout Plain Layout
42369 \begin_layout Plain Layout
42377 \begin_inset Phantom Phantom
42380 \begin_layout Plain Layout
42390 \begin_layout Plain Layout
42402 <cell alignment="left" valignment="top" usebox="none">
42405 \begin_layout Plain Layout
42409 \begin_layout Plain Layout
42422 \begin_layout Plain Layout
42430 \begin_inset Phantom Phantom
42433 \begin_layout Plain Layout
42443 \begin_layout Plain Layout
42457 <cell alignment="left" valignment="top" usebox="none">
42460 \begin_layout Plain Layout
42464 \begin_layout Plain Layout
42477 \begin_layout Plain Layout
42485 \begin_inset Phantom Phantom
42488 \begin_layout Plain Layout
42498 \begin_layout Plain Layout
42510 <cell alignment="left" valignment="top" usebox="none">
42513 \begin_layout Plain Layout
42517 \begin_layout Plain Layout
42530 \begin_layout Plain Layout
42538 \begin_inset Phantom Phantom
42541 \begin_layout Plain Layout
42551 \begin_layout Plain Layout
42563 <cell alignment="left" valignment="top" usebox="none">
42566 \begin_layout Plain Layout
42570 \begin_layout Plain Layout
42583 \begin_layout Plain Layout
42591 \begin_inset Phantom Phantom
42594 \begin_layout Plain Layout
42604 \begin_layout Plain Layout
42616 <cell alignment="left" valignment="top" usebox="none">
42619 \begin_layout Plain Layout
42623 \begin_layout Plain Layout
42636 \begin_layout Plain Layout
42644 \begin_inset Phantom Phantom
42647 \begin_layout Plain Layout
42657 \begin_layout Plain Layout
42671 <cell alignment="center" valignment="top" usebox="none">
42674 \begin_layout Plain Layout
42678 \begin_layout Plain Layout
42691 \begin_layout Plain Layout
42699 \begin_inset Phantom Phantom
42702 \begin_layout Plain Layout
42712 \begin_layout Plain Layout
42724 <cell alignment="center" valignment="top" usebox="none">
42727 \begin_layout Plain Layout
42731 \begin_layout Plain Layout
42744 \begin_layout Plain Layout
42752 \begin_inset Phantom Phantom
42755 \begin_layout Plain Layout
42765 \begin_layout Plain Layout
42777 <cell alignment="center" valignment="top" usebox="none">
42780 \begin_layout Plain Layout
42784 \begin_layout Plain Layout
42797 \begin_layout Plain Layout
42805 \begin_inset Phantom Phantom
42808 \begin_layout Plain Layout
42818 \begin_layout Plain Layout
42830 <cell alignment="center" valignment="top" usebox="none">
42833 \begin_layout Plain Layout
42837 \begin_layout Plain Layout
42850 \begin_layout Plain Layout
42858 \begin_inset Phantom Phantom
42861 \begin_layout Plain Layout
42871 \begin_layout Plain Layout
42885 <cell alignment="left" valignment="top" usebox="none">
42888 \begin_layout Plain Layout
42892 \begin_layout Plain Layout
42905 \begin_layout Plain Layout
42913 \begin_inset Phantom Phantom
42916 \begin_layout Plain Layout
42926 \begin_layout Plain Layout
42938 <cell alignment="left" valignment="top" usebox="none">
42941 \begin_layout Plain Layout
42945 \begin_layout Plain Layout
42958 \begin_layout Plain Layout
42966 \begin_inset Phantom Phantom
42969 \begin_layout Plain Layout
42979 \begin_layout Plain Layout
42991 <cell alignment="left" valignment="top" usebox="none">
42994 \begin_layout Plain Layout
42998 \begin_layout Plain Layout
43011 \begin_layout Plain Layout
43019 \begin_inset Phantom Phantom
43022 \begin_layout Plain Layout
43032 \begin_layout Plain Layout
43044 <cell alignment="left" valignment="top" usebox="none">
43047 \begin_layout Plain Layout
43051 \begin_layout Plain Layout
43064 \begin_layout Plain Layout
43072 \begin_inset Phantom Phantom
43075 \begin_layout Plain Layout
43085 \begin_layout Plain Layout
43099 <cell alignment="left" valignment="top" usebox="none">
43102 \begin_layout Plain Layout
43106 \begin_layout Plain Layout
43119 \begin_layout Plain Layout
43127 \begin_inset Phantom Phantom
43130 \begin_layout Plain Layout
43140 \begin_layout Plain Layout
43152 <cell alignment="left" valignment="top" usebox="none">
43155 \begin_layout Plain Layout
43159 \begin_layout Plain Layout
43172 \begin_layout Plain Layout
43180 \begin_inset Phantom Phantom
43183 \begin_layout Plain Layout
43193 \begin_layout Plain Layout
43205 <cell alignment="left" valignment="top" usebox="none">
43208 \begin_layout Plain Layout
43212 \begin_layout Plain Layout
43225 \begin_layout Plain Layout
43233 \begin_inset Phantom Phantom
43236 \begin_layout Plain Layout
43246 \begin_layout Plain Layout
43258 <cell alignment="left" valignment="top" usebox="none">
43261 \begin_layout Plain Layout
43265 \begin_layout Plain Layout
43278 \begin_layout Plain Layout
43286 \begin_inset Phantom Phantom
43289 \begin_layout Plain Layout
43299 \begin_layout Plain Layout
43313 <cell alignment="left" valignment="top" usebox="none">
43316 \begin_layout Plain Layout
43320 \begin_layout Plain Layout
43333 \begin_layout Plain Layout
43341 \begin_inset Phantom Phantom
43344 \begin_layout Plain Layout
43354 \begin_layout Plain Layout
43366 <cell alignment="left" valignment="top" usebox="none">
43369 \begin_layout Plain Layout
43373 \begin_layout Plain Layout
43386 \begin_layout Plain Layout
43394 \begin_inset Phantom Phantom
43397 \begin_layout Plain Layout
43407 \begin_layout Plain Layout
43419 <cell alignment="left" valignment="top" usebox="none">
43422 \begin_layout Plain Layout
43426 \begin_layout Plain Layout
43439 \begin_layout Plain Layout
43447 \begin_inset Phantom Phantom
43450 \begin_layout Plain Layout
43460 \begin_layout Plain Layout
43472 <cell alignment="left" valignment="top" usebox="none">
43475 \begin_layout Plain Layout
43479 \begin_layout Plain Layout
43492 \begin_layout Plain Layout
43500 \begin_inset Phantom Phantom
43503 \begin_layout Plain Layout
43513 \begin_layout Plain Layout
43527 <cell alignment="left" valignment="top" usebox="none">
43530 \begin_layout Plain Layout
43534 \begin_layout Plain Layout
43547 \begin_layout Plain Layout
43555 \begin_inset Phantom Phantom
43558 \begin_layout Plain Layout
43568 \begin_layout Plain Layout
43580 <cell alignment="left" valignment="top" usebox="none">
43583 \begin_layout Plain Layout
43587 \begin_layout Plain Layout
43600 \begin_layout Plain Layout
43608 \begin_inset Phantom Phantom
43611 \begin_layout Plain Layout
43621 \begin_layout Plain Layout
43633 <cell alignment="left" valignment="top" usebox="none">
43636 \begin_layout Plain Layout
43640 \begin_layout Plain Layout
43653 \begin_layout Plain Layout
43661 \begin_inset Phantom Phantom
43664 \begin_layout Plain Layout
43674 \begin_layout Plain Layout
43686 <cell alignment="left" valignment="top" usebox="none">
43689 \begin_layout Plain Layout
43693 \begin_layout Plain Layout
43706 \begin_layout Plain Layout
43714 \begin_inset Phantom Phantom
43717 \begin_layout Plain Layout
43727 \begin_layout Plain Layout
43741 <cell alignment="left" valignment="top" usebox="none">
43744 \begin_layout Plain Layout
43748 \begin_layout Plain Layout
43761 \begin_layout Plain Layout
43769 \begin_inset Phantom Phantom
43772 \begin_layout Plain Layout
43782 \begin_layout Plain Layout
43794 <cell alignment="left" valignment="top" usebox="none">
43797 \begin_layout Plain Layout
43801 \begin_layout Plain Layout
43814 \begin_layout Plain Layout
43822 \begin_inset Phantom Phantom
43825 \begin_layout Plain Layout
43835 \begin_layout Plain Layout
43847 <cell alignment="left" valignment="top" usebox="none">
43850 \begin_layout Plain Layout
43854 \begin_layout Plain Layout
43867 \begin_layout Plain Layout
43875 \begin_inset Phantom Phantom
43878 \begin_layout Plain Layout
43888 \begin_layout Plain Layout
43900 <cell alignment="left" valignment="top" usebox="none">
43903 \begin_layout Plain Layout
43907 \begin_layout Plain Layout
43920 \begin_layout Plain Layout
43928 \begin_inset Phantom Phantom
43931 \begin_layout Plain Layout
43941 \begin_layout Plain Layout
43955 <cell alignment="left" valignment="top" usebox="none">
43958 \begin_layout Plain Layout
43962 \begin_layout Plain Layout
43975 \begin_layout Plain Layout
43983 \begin_inset Phantom Phantom
43986 \begin_layout Plain Layout
43996 \begin_layout Plain Layout
44008 <cell alignment="left" valignment="top" usebox="none">
44011 \begin_layout Plain Layout
44015 \begin_layout Plain Layout
44028 \begin_layout Plain Layout
44036 \begin_inset Phantom Phantom
44039 \begin_layout Plain Layout
44049 \begin_layout Plain Layout
44061 <cell alignment="left" valignment="top" usebox="none">
44064 \begin_layout Plain Layout
44068 \begin_layout Plain Layout
44081 \begin_layout Plain Layout
44089 \begin_inset Phantom Phantom
44092 \begin_layout Plain Layout
44102 \begin_layout Plain Layout
44114 <cell alignment="left" valignment="top" usebox="none">
44117 \begin_layout Plain Layout
44121 \begin_layout Plain Layout
44134 \begin_layout Plain Layout
44142 \begin_inset Phantom Phantom
44145 \begin_layout Plain Layout
44155 \begin_layout Plain Layout
44169 <cell alignment="left" valignment="top" usebox="none">
44172 \begin_layout Plain Layout
44176 \begin_layout Plain Layout
44189 \begin_layout Plain Layout
44197 \begin_inset Phantom Phantom
44200 \begin_layout Plain Layout
44210 \begin_layout Plain Layout
44222 <cell alignment="left" valignment="top" usebox="none">
44225 \begin_layout Plain Layout
44229 \begin_layout Plain Layout
44242 \begin_layout Plain Layout
44250 \begin_inset Phantom Phantom
44253 \begin_layout Plain Layout
44263 \begin_layout Plain Layout
44275 <cell alignment="left" valignment="top" usebox="none">
44278 \begin_layout Plain Layout
44282 \begin_layout Plain Layout
44295 \begin_layout Plain Layout
44303 \begin_inset Phantom Phantom
44306 \begin_layout Plain Layout
44316 \begin_layout Plain Layout
44328 <cell alignment="left" valignment="top" usebox="none">
44331 \begin_layout Plain Layout
44335 \begin_layout Plain Layout
44348 \begin_layout Plain Layout
44356 \begin_inset Phantom Phantom
44359 \begin_layout Plain Layout
44369 \begin_layout Plain Layout
44383 <cell alignment="left" valignment="top" usebox="none">
44386 \begin_layout Plain Layout
44390 \begin_layout Plain Layout
44403 \begin_layout Plain Layout
44411 \begin_inset Phantom Phantom
44414 \begin_layout Plain Layout
44424 \begin_layout Plain Layout
44436 <cell alignment="left" valignment="top" usebox="none">
44439 \begin_layout Plain Layout
44443 \begin_layout Plain Layout
44456 \begin_layout Plain Layout
44464 \begin_inset Phantom Phantom
44467 \begin_layout Plain Layout
44477 \begin_layout Plain Layout
44489 <cell alignment="left" valignment="top" usebox="none">
44492 \begin_layout Plain Layout
44496 \begin_layout Plain Layout
44509 \begin_layout Plain Layout
44517 \begin_inset Phantom Phantom
44520 \begin_layout Plain Layout
44530 \begin_layout Plain Layout
44542 <cell alignment="left" valignment="top" usebox="none">
44545 \begin_layout Plain Layout
44549 \begin_layout Plain Layout
44562 \begin_layout Plain Layout
44570 \begin_inset Phantom Phantom
44573 \begin_layout Plain Layout
44583 \begin_layout Plain Layout
44597 <cell alignment="left" valignment="top" usebox="none">
44600 \begin_layout Plain Layout
44604 \begin_layout Plain Layout
44617 \begin_layout Plain Layout
44625 \begin_inset Phantom Phantom
44628 \begin_layout Plain Layout
44638 \begin_layout Plain Layout
44650 <cell alignment="left" valignment="top" usebox="none">
44653 \begin_layout Plain Layout
44657 \begin_layout Plain Layout
44670 \begin_layout Plain Layout
44678 \begin_inset Phantom Phantom
44681 \begin_layout Plain Layout
44691 \begin_layout Plain Layout
44703 <cell alignment="left" valignment="top" usebox="none">
44706 \begin_layout Plain Layout
44710 \begin_layout Plain Layout
44723 \begin_layout Plain Layout
44731 \begin_inset Phantom Phantom
44734 \begin_layout Plain Layout
44744 \begin_layout Plain Layout
44756 <cell alignment="left" valignment="top" usebox="none">
44759 \begin_layout Plain Layout
44763 \begin_layout Plain Layout
44776 \begin_layout Plain Layout
44784 \begin_inset Phantom Phantom
44787 \begin_layout Plain Layout
44797 \begin_layout Plain Layout
44811 <cell alignment="left" valignment="top" usebox="none">
44814 \begin_layout Plain Layout
44818 \begin_layout Plain Layout
44831 \begin_layout Plain Layout
44839 \begin_inset Phantom Phantom
44842 \begin_layout Plain Layout
44852 \begin_layout Plain Layout
44864 <cell alignment="left" valignment="top" usebox="none">
44867 \begin_layout Plain Layout
44873 <cell alignment="left" valignment="top" usebox="none">
44876 \begin_layout Plain Layout
44882 <cell alignment="left" valignment="top" usebox="none">
44885 \begin_layout Plain Layout
44899 \begin_layout Chapter
44900 Explanation of Equation
44901 \begin_inset space ~
44905 \begin_inset CommandInset ref
44912 \begin_inset CommandInset label
44914 name "cha:Explanation-of-Equation"
44921 \begin_layout Standard
44922 We can calculate the total width of
44927 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44931 \begin_inset Formula
44933 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44939 \begin_inset Formula $W_{g\,n}$
44942 is the given width of all cells,
44948 is the \SpecialChar LaTeX
44949 -length between the cell text and the cell border (its default value
44951 \begin_inset space \thinspace{}
44961 is the thickness of the cell border line, the default is 0.4
44962 \begin_inset space \thinspace{}
44968 \begin_layout Standard
44970 \begin_inset space ~
44974 \begin_inset CommandInset ref
44976 reference "eq:Wtot_n"
44980 , the total width of a multicolumn
44981 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44985 \begin_inset Formula
44987 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44995 \begin_layout Standard
44996 By setting equation
44997 \begin_inset space ~
45001 \begin_inset CommandInset ref
45003 reference "eq:Wtot_n"
45008 \begin_inset CommandInset ref
45010 reference "eq:Wtot_mult"
45014 equal we can calculate the needed given width
45015 \begin_inset Formula $W_{g\,n}$
45022 columns are spanned, so that each column has a total width of
45023 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45027 \begin_inset Formula
45029 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45037 \begin_layout Bibliography
45038 \begin_inset CommandInset bibitem
45039 LatexCommand bibitem
45040 key "latexcompanion"
45044 Frank Mittelbach and Michel Goossens:
45046 The \SpecialChar LaTeX
45047 Companion Second Edition.
45050 Addison-Wesley, 2004
45053 \begin_layout Bibliography
45054 \begin_inset CommandInset bibitem
45055 LatexCommand bibitem
45060 Helmut Kopka and Patrick W.
45063 A Guide to \SpecialChar LaTeX
45067 Addison-Wesley, 2003
45070 \begin_layout Bibliography
45071 \begin_inset CommandInset bibitem
45072 LatexCommand bibitem
45080 : A Document Preparation System.
45083 Addison-Wesley, second edition, 1994
45086 \begin_layout Bibliography
45087 \begin_inset CommandInset bibitem
45088 LatexCommand bibitem
45093 Documentation of the \SpecialChar LaTeX
45097 \begin_inset CommandInset href
45100 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45107 \begin_inset Index idx
45110 \begin_layout Plain Layout
45112 -packages ! arydshln
45120 \begin_layout Bibliography
45121 \begin_inset CommandInset bibitem
45122 LatexCommand bibitem
45127 Documentation of the \SpecialChar LaTeX
45131 \begin_inset CommandInset href
45134 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45141 \begin_inset Index idx
45144 \begin_layout Plain Layout
45146 -packages ! booktabs
45154 \begin_layout Bibliography
45155 \begin_inset CommandInset bibitem
45156 LatexCommand bibitem
45161 Documentation of the \SpecialChar LaTeX
45165 \begin_inset CommandInset href
45168 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45175 \begin_inset Index idx
45178 \begin_layout Plain Layout
45180 -packages ! caption
45188 \begin_layout Bibliography
45189 \begin_inset CommandInset bibitem
45190 LatexCommand bibitem
45195 Documentation of the \SpecialChar LaTeX
45199 \begin_inset CommandInset href
45202 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45209 \begin_inset Index idx
45212 \begin_layout Plain Layout
45214 -packages ! diagbox
45222 \begin_layout Bibliography
45223 \begin_inset CommandInset bibitem
45224 LatexCommand bibitem
45229 Documentation of the \SpecialChar LaTeX
45233 \begin_inset CommandInset href
45236 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45243 \begin_inset Index idx
45246 \begin_layout Plain Layout
45248 -packages ! endfloat
45256 \begin_layout Bibliography
45257 \begin_inset CommandInset bibitem
45258 LatexCommand bibitem
45263 Documentation of the \SpecialChar LaTeX
45267 \begin_inset CommandInset href
45270 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45277 \begin_inset Index idx
45280 \begin_layout Plain Layout
45282 -packages ! footmisc
45290 \begin_layout Bibliography
45291 \begin_inset CommandInset bibitem
45292 LatexCommand bibitem
45297 Documentation of the \SpecialChar LaTeX
45301 \begin_inset CommandInset href
45304 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45311 \begin_inset Index idx
45314 \begin_layout Plain Layout
45316 -packages ! hyperref
45324 \begin_layout Bibliography
45325 \begin_inset CommandInset bibitem
45326 LatexCommand bibitem
45331 Documentation of the \SpecialChar LaTeX
45335 \begin_inset CommandInset href
45338 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45345 \begin_inset Index idx
45348 \begin_layout Plain Layout
45350 -packages ! hyperref
45358 \begin_layout Bibliography
45359 \begin_inset CommandInset bibitem
45360 LatexCommand bibitem
45365 Documentation of the \SpecialChar LaTeX
45369 \begin_inset CommandInset href
45372 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45379 \begin_inset Index idx
45382 \begin_layout Plain Layout
45384 -packages ! KOMA-Script
45392 \begin_layout Bibliography
45393 \begin_inset CommandInset bibitem
45394 LatexCommand bibitem
45399 Documentation of the \SpecialChar LaTeX
45403 \begin_inset CommandInset href
45406 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45413 \begin_inset CommandInset href
45416 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45421 \begin_inset Index idx
45424 \begin_layout Plain Layout
45426 -packages ! lettrine
45434 \begin_layout Bibliography
45435 \begin_inset CommandInset bibitem
45436 LatexCommand bibitem
45441 Documentation of the \SpecialChar LaTeX
45445 \begin_inset CommandInset href
45448 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45455 \begin_inset Index idx
45458 \begin_layout Plain Layout
45460 -packages ! listings
45468 \begin_layout Bibliography
45469 \begin_inset CommandInset bibitem
45470 LatexCommand bibitem
45475 Documentation of the \SpecialChar LaTeX
45479 \begin_inset CommandInset href
45482 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45489 \begin_inset Index idx
45492 \begin_layout Plain Layout
45494 -packages ! marginnote
45502 \begin_layout Bibliography
45503 \begin_inset CommandInset bibitem
45504 LatexCommand bibitem
45509 Documentation of the \SpecialChar LaTeX
45513 \begin_inset CommandInset href
45516 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45523 \begin_inset Index idx
45526 \begin_layout Plain Layout
45528 -packages ! pdfpages
45536 \begin_layout Bibliography
45537 \begin_inset CommandInset bibitem
45538 LatexCommand bibitem
45543 Documentation of the \SpecialChar LaTeX
45547 \begin_inset CommandInset href
45550 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45557 \begin_inset Index idx
45560 \begin_layout Plain Layout
45562 -packages ! prettyref
45570 \begin_layout Bibliography
45571 \begin_inset CommandInset bibitem
45572 LatexCommand bibitem
45577 Web page of the \SpecialChar LaTeX
45581 \begin_inset CommandInset href
45584 target "http://tug.org/PSTricks/"
45591 \begin_inset Index idx
45594 \begin_layout Plain Layout
45596 -packages ! PSTricks
45604 \begin_layout Bibliography
45605 \begin_inset CommandInset bibitem
45606 LatexCommand bibitem
45611 Documentation of the \SpecialChar LaTeX
45615 \begin_inset CommandInset href
45618 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45625 \begin_inset Index idx
45628 \begin_layout Plain Layout
45630 -packages ! refstyle
45638 \begin_layout Bibliography
45639 \begin_inset CommandInset bibitem
45640 LatexCommand bibitem
45645 Documentation of the \SpecialChar LaTeX
45649 \begin_inset CommandInset href
45652 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45659 \begin_inset Index idx
45662 \begin_layout Plain Layout
45664 -packages ! sidecap
45672 \begin_layout Bibliography
45673 \begin_inset CommandInset bibitem
45674 LatexCommand bibitem
45680 \begin_inset CommandInset href
45683 target "http://wiki.lyx.org/LyX/NewInLyX20"
45687 about new features in
45695 \begin_layout Standard
45696 \begin_inset CommandInset index_print
45697 LatexCommand printindex