1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
12 % set fonts for nicer pdf view
13 \IfFileExists{lmodern.sty}
14 {\usepackage{lmodern}}{}
16 \fi % end if pdflatex is used
18 % that links to image floats jumps
19 % to the beginning of the float and
21 \usepackage[figure]{hypcap}
23 % the pages of the TOC is numbered roman
24 % and a PDF-bookmark for the TOC is added
25 \let\myTOC\tableofcontents
26 \renewcommand\tableofcontents{%
28 \pdfbookmark[1]{\contentsname}{}
32 % provides caption formatting
33 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
35 % provides commands to set caption
36 % beside tables/images
37 \newcommand{\TabBesBeg}[1][1.0]{%
39 \let\MyEndtable\endtable
40 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
42 \newcommand{\TabBesEnd}{%
44 \let\endtable\MyEndtable}
46 \newcommand{\FigBesBeg}[1][1.0]{%
48 \let\MyEndfigure\endfigure
49 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
51 \newcommand{\FigBesEnd}{%
53 \let\endfigure\MyEndfigure}
55 % enables calculation of values,
58 % increase the bottom float placement fraction
59 \renewcommand{\bottomfraction}{0.5}
61 % avoids that floats are placed before their
62 % corresponding section starts
63 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
65 % speed up the longtable calculation
66 \setcounter{LTchunksize}{100}
68 % used for colored tables
69 \@ifundefined{textcolor}
70 {\usepackage{color}}{}
71 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
72 \definecolor{lightgrey}{gray}{0.8}
74 % check for package colortbl
75 % used for colored table cells
77 \IfFileExists{colortbl.sty}
78 {\usepackage{colortbl}
79 \setboolean{colortbl}{true}}
80 {\setboolean{colortbl}{false}}
82 % used to have extra space in table cells
83 \@ifundefined{extrarowheight}
84 {\usepackage{array}}{}
85 \setlength{\extrarowheight}{2pt}
87 % used for customized tables
90 {>{\centering\hspace{0pt}}m{#1}}
93 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
96 {>{\columncolor{#1}\hspace{0pt}}c}
98 \newcolumntype{V}{!{\vrule width 1.5pt}}
100 \newcolumntype{W}{!{\color{green}\vline}}
103 % insert additional vertical space of
104 % 1.5 mm between footnotes
106 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
108 % number algorithm floats within chapters
109 \numberwithin{algorithm}{chapter}
111 % ------------------------------------
112 % used to check for needed LaTeX packages
115 % check for package arydshln
116 % used for tables with dashed lines
117 \newboolean{arydshln}
118 \IfFileExists{arydshln.sty}
119 {\usepackage{arydshln}
120 \setboolean{arydshln}{true}}
121 {\setboolean{arydshln}{false}}
123 % check for package marginnote
124 % used for margin notes
125 \newboolean{marginnote}
126 \IfFileExists{marginnote.sty}
127 {\usepackage{marginnote}
128 \let\marginpar\marginnote
129 \setboolean{marginnote}{true}}
130 {\setboolean{marginnote}{false}}
132 % check for package sidecap
133 % used for captions on the side
135 \IfFileExists{sidecap.sty}
136 {\usepackage{sidecap}
137 \setboolean{sidecap}{true}}
138 {\setboolean{sidecap}{false}}
141 % used for surrounded fixed objects
142 \newboolean{picinpar}
143 \IfFileExists{picinpar.sty}
144 {\usepackage{picinpar}
145 \setboolean{picinpar}{true}}
146 {\setboolean{picinpar}{false}}
149 \newboolean{lettrine}
150 \IfFileExists{lettrine.sty}
151 {\usepackage{lettrine}
152 \setboolean{lettrine}{true}}
153 {\setboolean{lettrine}{false}}
157 \IfFileExists{diagbox.sty}
158 {\usepackage{diagbox}
159 \setboolean{diagbox}{true}}
160 {\setboolean{diagbox}{false}}
162 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames,table
163 \use_default_options false
168 \maintain_unincluded_children false
170 \language_package default
175 \font_typewriter default
177 \font_default_family default
178 \use_non_tex_fonts false
184 \default_output_format default
186 \bibtex_command default
187 \index_command default
191 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
192 \pdf_author "LyX Team, Uwe Stöhr"
193 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
194 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
196 \pdf_bookmarksnumbered true
197 \pdf_bookmarksopen true
198 \pdf_bookmarksopenlevel 1
199 \pdf_breaklinks false
203 \pdf_pdfusetitle false
204 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
207 \use_package amsmath 2
208 \use_package amssymb 2
209 \use_package cancel 0
211 \use_package mathdots 1
212 \use_package mathtools 0
213 \use_package mhchem 1
214 \use_package stackrel 0
215 \use_package stmaryrd 0
216 \use_package undertilde 0
218 \cite_engine_type default
222 \paperorientation portrait
226 \notefontcolor #0000ff
233 \paragraph_separation skip
235 \quotes_language english
238 \paperpagestyle default
239 \tracking_changes false
240 \output_changes false
243 \html_be_strict false
250 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
254 by the \SpecialChar LyX
259 \begin_layout Plain Layout
261 If you have comments or error corrections, please send them to the \SpecialChar LyX
264 \begin_inset CommandInset href
266 name "lyx-docs@lists.lyx.org"
267 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
278 \begin_inset Note Note
281 \begin_layout Plain Layout
288 \begin_inset Newline newline
292 \begin_inset Newline newline
300 \begin_layout Standard
301 \begin_inset CommandInset toc
302 LatexCommand tableofcontents
309 \begin_layout Standard
310 \begin_inset Note Note
313 \begin_layout Plain Layout
314 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
325 diagbox, lettrine, marginnote, picinpar
332 If they are not installed you can export the document anyway but the sections
333 where the packages are required won't appear in the output.
336 \begin_layout Plain Layout
337 The latest PDF-version of this document can be found here:
338 \begin_inset Newline newline
343 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
351 \begin_layout Chapter
353 \begin_inset Index idx
356 \begin_layout Plain Layout
363 \begin_inset Index idx
366 \begin_layout Plain Layout
371 \begin_layout Plain Layout
382 \begin_layout Plain Layout
397 \begin_layout Section
399 \begin_inset Index idx
402 \begin_layout Plain Layout
403 Figures ! Graphics Dialog
409 \begin_inset CommandInset label
411 name "sec:Graphics-Dialog"
418 \begin_layout Standard
419 To insert an image into your document, place the cursor at the text position
420 you want and click on the toolbar icon
423 arg "dialog-show-new-inset graphics"
428 Insert\SpecialChar menuseparator
432 Then a dialog will appear to choose the file to load.
433 The image will appear in the output exactly at the position where it is
437 \begin_layout Standard
438 The graphics dialog can be called at any time by clicking on an image.
439 This dialog has three tabs:
442 \begin_layout Description
447 Here you can choose an image file and adjust its appearance in the output.
448 The available units for the image size are explained in appendix
453 \begin_inset CommandInset ref
455 reference "cha:Units-available-in"
460 \begin_inset Newline newline
464 \begin_inset Index idx
467 \begin_layout Plain Layout
473 You can rotate images counter-clockwise by setting a rotation angle and
475 The image will also be rotated inside \SpecialChar LyX
477 \begin_inset Newline newline
481 \begin_inset Index idx
484 \begin_layout Plain Layout
490 Images can be scaled by using a percentage value or by setting the width
491 and height explicitly.
492 If you set only the width or only the height, the other size will be determined
494 If you set both, then the image will be transformed to the given size,
495 possibly distorting it.
496 To prevent the image from distortion, use the option
498 Maintain aspect ratio
501 The image will then be scaled so that its width and height don't exceed
502 the specified dimensions.
503 \begin_inset Newline newline
506 Images can be opened in a program of your choice by right-clicking on it
507 and choosing the entry
516 The program can be set for every image format in the file format settings
521 \begin_layout Description
526 Alternatively to the usage of scaling units it is possible to set image
527 coordinates to adjust the height and width of the image in the output.
528 The coordinates can also be calculated automatically by pressing the button
558 will only print the image region within the given coordinates.
559 Normally you don't need to worry about image coordinates and can ignore
563 \begin_layout Description
580 In this tab you can modify the appearance of the image within \SpecialChar LyX
581 and \SpecialChar LaTeX
583 can specify additional \SpecialChar LaTeX
585 \begin_inset Newline newline
596 makes the image appear in the output only as a frame with the size of the
598 \begin_inset Newline newline
609 you can define or join an image settings group.
610 \begin_inset Index idx
613 \begin_layout Plain Layout
614 Figures ! Settings grouping
619 Images within such a group share their settings, so adjusting one image
620 of the group automatically also adjusts all other images of the group in
622 So you can for example change the size for a bunch of images without the
623 need to manually change each of them.
624 Joining an existing group can also be done using the context menu of the
625 image by checking the name of the desired group.
628 \begin_layout Standard
629 \begin_inset VSpace bigskip
635 \begin_layout Standard
636 This is an example image in EPS format
640 \begin_layout Plain Layout
641 Image formats are explained in section
646 \begin_inset CommandInset ref
648 reference "sec:Image-Formats"
657 within a separate, horizontally centered paragraph:
658 \begin_inset Separator parbreak
664 \begin_layout Standard
666 \begin_inset Graphics
667 filename clipart/mobius.eps
677 \begin_layout Standard
678 This is the same image like the one above but in draft mode:
679 \begin_inset Separator parbreak
685 \begin_layout Standard
687 \begin_inset Graphics
688 filename clipart/mobius.eps
699 \begin_layout Standard
700 \begin_inset Newpage newpage
706 \begin_layout Section
708 \begin_inset CommandInset label
710 name "sec:Figure-Floats"
715 \begin_inset Index idx
718 \begin_layout Plain Layout
725 \begin_inset Index idx
728 \begin_layout Plain Layout
737 \begin_layout Standard
738 For general explanations about floats, have a look at section
743 \begin_inset CommandInset ref
745 reference "sec:FloatIntroduction"
752 \begin_layout Standard
756 arg "float-insert figure"
761 Insert\SpecialChar menuseparator
762 Float\SpecialChar menuseparator
765 inserts a float with a caption that has the label
766 \begin_inset Quotes eld
774 \begin_inset Quotes erd
777 (# is the actual number).
778 You can insert the image above the caption, like in Figure
783 \begin_inset CommandInset ref
785 reference "fig:kill-plat"
789 or below the caption, like in Figure
794 \begin_inset CommandInset ref
796 reference "fig:escher"
801 More about caption placement is described in section
806 \begin_inset CommandInset ref
808 reference "sec:Caption-Placement"
815 \begin_layout Standard
816 \begin_inset Float figure
821 \begin_layout Plain Layout
823 \begin_inset Graphics
824 filename clipart/platypus.eps
834 \begin_layout Plain Layout
835 \begin_inset Caption Standard
837 \begin_layout Plain Layout
838 \begin_inset CommandInset label
844 A severely distorted platypus in a float.
857 \begin_layout Standard
858 \begin_inset Float figure
863 \begin_layout Plain Layout
864 \begin_inset Caption Standard
866 \begin_layout Plain Layout
867 \begin_inset CommandInset label
882 \begin_layout Plain Layout
884 \begin_inset Graphics
885 filename clipart/escher-lsd.eps
900 \begin_layout Standard
901 \begin_inset Index idx
904 \begin_layout Plain Layout
905 References ! to Figures
915 \begin_inset CommandInset ref
917 reference "fig:kill-plat"
922 \begin_inset CommandInset ref
924 reference "fig:escher"
928 are examples of referenced figures.
929 Figures can be referenced in the text by referencing their label.
930 To do this insert a label in the caption using the menu
932 Insert\SpecialChar menuseparator
935 or the toolbar button
942 You can now refer to the label using the menu
944 Insert\SpecialChar menuseparator
951 or the toolbar button
954 arg "dialog-show-new-inset ref"
958 It is important to use references to floats, rather than using vague references
960 \begin_inset Quotes eld
964 \begin_inset Quotes erd
967 , because \SpecialChar LaTeX
968 will reposition the floats in the final document and it might
970 \begin_inset Quotes eld
974 \begin_inset Quotes erd
978 \begin_inset Newline newline
981 Referencing is explained in detail in section
986 \begin_inset CommandInset ref
988 reference "sec:Referencing-Floats"
995 \begin_layout Standard
996 Normally only one image is inserted to a figure float, but sometimes you
997 might want to use two images with separate subcaptions.
998 This can be done by inserting image floats into existing image floats.
999 Note that only the main caption of the float is added to the List of Figures.
1001 \begin_inset space ~
1005 \begin_inset CommandInset ref
1007 reference "fig:Two-distorted-images"
1011 is an example of a figure float with two images set side by side.
1012 You can also set the images one below the other.
1014 \begin_inset space ~
1018 \begin_inset CommandInset ref
1020 reference "fig:Undefinable-structure"
1025 \begin_inset CommandInset ref
1027 reference "fig:A-Platypus"
1034 \begin_layout Standard
1035 \begin_inset Float figure
1040 \begin_layout Plain Layout
1041 \begin_inset space \hfill{}
1045 \begin_inset Float figure
1050 \begin_layout Plain Layout
1051 \begin_inset Caption Standard
1053 \begin_layout Plain Layout
1054 \begin_inset CommandInset label
1056 name "fig:Undefinable-structure"
1060 Undefinable structure.
1068 \begin_layout Plain Layout
1069 \begin_inset Graphics
1070 filename clipart/escher-lsd.eps
1083 \begin_inset space \hfill{}
1087 \begin_inset Float figure
1092 \begin_layout Plain Layout
1093 \begin_inset Caption Standard
1095 \begin_layout Plain Layout
1096 \begin_inset CommandInset label
1098 name "fig:A-Platypus"
1110 \begin_layout Plain Layout
1111 \begin_inset Graphics
1112 filename clipart/platypus.eps
1125 \begin_inset space \hfill{}
1131 \begin_layout Plain Layout
1132 \begin_inset Caption Standard
1134 \begin_layout Plain Layout
1135 \begin_inset CommandInset label
1137 name "fig:Two-distorted-images"
1141 Two distorted images.
1142 Both images are in the image settings group named
1143 \begin_inset Quotes eld
1147 \begin_inset Quotes erd
1163 \begin_layout Standard
1164 \begin_inset Newpage newpage
1170 \begin_layout Section
1172 \begin_inset CommandInset label
1174 name "sec:Image-Formats"
1179 \begin_inset Index idx
1182 \begin_layout Plain Layout
1189 \begin_inset Index idx
1192 \begin_layout Plain Layout
1193 Figures ! Image Formats
1201 \begin_layout Standard
1202 You can insert images in any known file format.
1203 But as explained in appendix
1204 \begin_inset space ~
1208 \begin_inset CommandInset ref
1210 reference "cha:Output-File-Formats"
1214 , each output document format allows only a few image formats.
1216 uses therefore the program
1220 in the background to convert the images to the right format.
1221 To increase your work flow by avoiding these conversions in the background,
1222 you could choose to use only the image formats that can directly be embedded
1223 in the output file format.
1224 The output file formats are explained in appendix
1225 \begin_inset space ~
1229 \begin_inset CommandInset ref
1231 reference "cha:Output-File-Formats"
1238 \begin_layout Standard
1239 Similar to fonts there are two types of image formats:
1242 \begin_layout Description
1244 \begin_inset space ~
1247 images consist of pixel values, often in a compressed form.
1248 They are therefore not fully scalable and look pixelated in large zooms.
1249 Well-known bitmap image formats are
1250 \begin_inset Quotes eld
1253 Graphics Interchange Format
1254 \begin_inset Quotes erd
1257 (GIF, file extension
1258 \begin_inset Quotes eld
1266 \begin_inset Quotes erd
1270 \begin_inset Index idx
1273 \begin_layout Plain Layout
1278 \begin_layout Plain Layout
1289 \begin_layout Plain Layout
1302 \begin_inset Quotes eld
1305 Portable Network Graphics
1306 \begin_inset Quotes erd
1309 (PNG, file extension
1310 \begin_inset Quotes eld
1318 \begin_inset Quotes erd
1322 \begin_inset Index idx
1325 \begin_layout Plain Layout
1330 \begin_layout Plain Layout
1341 \begin_layout Plain Layout
1354 \begin_inset Quotes eld
1357 Joint Photographic Experts Group
1358 \begin_inset Quotes erd
1361 (JPG, file extension
1362 \begin_inset Quotes eld
1370 \begin_inset Quotes erd
1374 \begin_inset Quotes eld
1382 \begin_inset Quotes erd
1386 \begin_inset Index idx
1389 \begin_layout Plain Layout
1394 \begin_layout Plain Layout
1405 \begin_layout Plain Layout
1420 \begin_layout Description
1422 \begin_inset space ~
1425 images consist of vectors and can therefore be scaled to any size without
1427 The scaling ability is necessary if you want to create presentations, because
1428 presentations are always scaled by the video projector.
1429 Scaling is also useful for online documents to let the user zoom into diagrams.
1430 \begin_inset Newline newline
1433 Well-known scalable image formats are
1434 \begin_inset Quotes eld
1437 Scalable Vector Graphics
1438 \begin_inset Quotes erd
1441 (SVG, file extension
1442 \begin_inset Quotes eld
1450 \begin_inset Quotes erd
1454 \begin_inset Index idx
1457 \begin_layout Plain Layout
1462 \begin_layout Plain Layout
1473 \begin_layout Plain Layout
1486 \begin_inset Quotes eld
1489 Encapsulated PostScript
1490 \begin_inset Quotes erd
1493 (EPS, file extension
1494 \begin_inset Quotes eld
1502 \begin_inset Quotes erd
1506 \begin_inset Index idx
1509 \begin_layout Plain Layout
1514 \begin_layout Plain Layout
1525 \begin_layout Plain Layout
1538 \begin_inset Quotes eld
1541 Portable Document Format
1542 \begin_inset Quotes erd
1545 (PDF, file extension
1546 \begin_inset Quotes eld
1554 \begin_inset Quotes erd
1558 \begin_inset Index idx
1561 \begin_layout Plain Layout
1568 \begin_inset Quotes eld
1572 \begin_inset Quotes erd
1575 (WMF, file extension
1576 \begin_inset Quotes eld
1584 \begin_inset Quotes erd
1588 \begin_inset Index idx
1591 \begin_layout Plain Layout
1596 \begin_layout Plain Layout
1607 \begin_layout Plain Layout
1621 \begin_inset Quotes eld
1625 \begin_inset Quotes erd
1628 , because you can convert any bitmap image to a PDF or EPS-image and the
1629 result will still be a bitmap image.
1630 In such cases only a header with the image properties is added to the original
1635 \begin_layout Plain Layout
1636 In the case of PDF, the original image is additionally compressed.
1642 The PDF-files generated by
1646 are for example bitmap images.
1649 \begin_layout Standard
1650 Normally it is not possible to convert a bitmap image into a scalable one,
1652 Only the image formats PDF and EPS can directly be embedded to PDF and
1653 PostScript output files, respectively.
1654 SVG and WMF-images are recalculated to bitmaps when the output file is
1655 generated because there is currently no adequate WMF/SVG
1656 \begin_inset Formula $\to$
1659 PDF/EPS converter available.
1662 \begin_layout Chapter
1664 \begin_inset Index idx
1667 \begin_layout Plain Layout
1676 \begin_layout Section
1678 \begin_inset Index idx
1681 \begin_layout Plain Layout
1682 Table ! Introduction
1690 \begin_layout Standard
1691 You can insert a table using either the toolbar button
1694 arg "tabular-insert"
1699 Insert\SpecialChar menuseparator
1703 The toolbar button offers you a graphical selection: move the mouse to
1704 set the column/row number of the table that should be created and then
1705 press a mouse button.
1706 When you use the menu to create a table, a dialog will appear, asking you
1707 for the number of rows and columns.
1708 \begin_inset Newline newline
1711 The default table has lines around any cell and the first row appears separated
1712 from the rest of the table.
1713 This separation occurs due to a double line: The cells of the first row
1714 have a line below them and the cells of the second row have a line above
1716 Here is an example table:
1717 \begin_inset Separator parbreak
1723 \begin_layout Standard
1725 \begin_inset Tabular
1726 <lyxtabular version="3" rows="4" columns="4">
1727 <features tabularvalignment="middle">
1728 <column alignment="center" valignment="top">
1729 <column alignment="center" valignment="top">
1730 <column alignment="center" valignment="top">
1731 <column alignment="center" valignment="top">
1733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1736 \begin_layout Plain Layout
1742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1745 \begin_layout Plain Layout
1760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1763 \begin_layout Plain Layout
1769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1772 \begin_layout Plain Layout
1780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1783 \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" usebox="none">
1810 \begin_layout Plain Layout
1816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1819 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1830 \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" usebox="none">
1857 \begin_layout Plain Layout
1863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1866 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1877 \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" usebox="none">
1904 \begin_layout Plain Layout
1910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1913 \begin_layout Plain Layout
1927 \begin_layout Section
1929 \begin_inset Index idx
1932 \begin_layout Plain Layout
1941 \begin_layout Standard
1942 You can alter a table by clicking on it with the right mouse button, which
1943 brings up the context menu.
1944 Under the menu entry
1948 you can adjust the settings of that cell and row/column respectively where
1949 the cursor is currently placed.
1952 More\SpecialChar menuseparator
1955 opens the table dialog where you can adjust more things.
1956 Most of the dialog options also work on selections.
1957 This means if you select more cells, columns or rows, the action is done
1958 for the whole selection.
1959 Note that there is a difference between selecting the
1963 of the cell, and the cell itself.
1964 \begin_inset Newline newline
1967 With the dialog option
1970 \begin_inset space ~
1975 every change you make in the dialog is directly applied.
1976 If you move the cursor to another table cell the dialog will then also
1977 be updated with the parameters of the new cell.
1978 If you change length values in the dialog you must press
1982 to get the change applied.
1983 \begin_inset Newline newline
1986 You can alter tables with the following tabs of the table dialog:
1989 \begin_layout Description
1993 \begin_inset space ~
1998 Here you can set the table width
1999 \begin_inset Index idx
2002 \begin_layout Plain Layout
2008 , and the horizontal alignment and the width of the current column.
2012 \begin_inset space ~
2016 \begin_inset space ~
2021 is described in section
2022 \begin_inset space ~
2026 \begin_inset CommandInset ref
2028 reference "subsec:Special-Cell-Alignment"
2033 When you have set a width you can also adjust the vertical alignment of
2035 A given width will allow the cell to have line breaks and multiple paragraphs
2037 \begin_inset space \thinspace{}
2041 \begin_inset CommandInset ref
2043 reference "subsec:Multiple-Lines-in"
2048 If you set no width, the column is as wide as the content of its widest
2050 \begin_inset Newline newline
2053 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2055 \begin_inset space \thinspace{}
2059 \begin_inset CommandInset ref
2061 reference "subsec:Multicolumns"
2065 or the cells of one column as multirow cell, see sec.
2066 \begin_inset space \thinspace{}
2070 \begin_inset CommandInset ref
2072 reference "subsec:Multirows"
2077 \begin_inset Newline newline
2080 The rotate check boxes rotate the current cell, a selection, or the whole
2081 table counter-clockwise by 90
2082 \begin_inset space \thinspace{}
2086 The rotation is not shown within \SpecialChar LyX
2087 , only in the output.
2088 For more information see sec.
2089 \begin_inset space \thinspace{}
2093 \begin_inset CommandInset ref
2095 reference "sec:Rotated-Table-Cells"
2100 \begin_inset Newline newline
2104 \begin_inset Note Greyedout
2107 \begin_layout Plain Layout
2112 Not all DVI-viewers are able to display rotations.
2118 \begin_inset Newline newline
2121 The table-wide vertical alignment is used for tables within text lines:
2122 \begin_inset Newline newline
2125 A line with tables with different alignments:
2126 \begin_inset Tabular
2127 <lyxtabular version="3" rows="2" columns="2">
2128 <features tabularvalignment="top">
2129 <column alignment="center" valignment="top" width="0pt">
2130 <column alignment="center" valignment="top">
2132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2135 \begin_layout Plain Layout
2141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2144 \begin_layout Plain Layout
2161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2164 \begin_layout Plain Layout
2179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2182 \begin_layout Plain Layout
2194 \begin_inset Tabular
2195 <lyxtabular version="3" rows="2" columns="2">
2196 <features tabularvalignment="middle">
2197 <column alignment="center" valignment="top">
2198 <column alignment="center" valignment="top">
2200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2203 \begin_layout Plain Layout
2209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2212 \begin_layout Plain Layout
2229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2232 \begin_layout Plain Layout
2247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2250 \begin_layout Plain Layout
2262 \begin_inset Tabular
2263 <lyxtabular version="3" rows="2" columns="2">
2264 <features tabularvalignment="bottom">
2265 <column alignment="center" valignment="top" width="0pt">
2266 <column alignment="center" valignment="top">
2268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2271 \begin_layout Plain Layout
2277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2280 \begin_layout Plain Layout
2297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2300 \begin_layout Plain Layout
2315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2318 \begin_layout Plain Layout
2330 \begin_inset Newline newline
2333 It is also possible to enter a \SpecialChar LaTeX
2334 -argument which is needed for special table
2335 formattings, see sec.
2336 \begin_inset space \thinspace{}
2340 \begin_inset CommandInset ref
2342 reference "subsec:Multicolumn-Calculations"
2347 \begin_inset CommandInset ref
2349 reference "sec:Colored-Tables"
2356 \begin_layout Description
2361 In this tab you can add and delete border lines for the current row/column.
2362 \begin_inset Newline newline
2365 Using the style option
2369 will convert the table to a formal table as described in sec.
2370 \begin_inset space \thinspace{}
2374 \begin_inset CommandInset ref
2376 reference "sec:Formal-Tables"
2381 \begin_inset Newline newline
2384 You can also add space here to table rows as described in sec.
2385 \begin_inset space \thinspace{}
2389 \begin_inset CommandInset ref
2391 reference "subsec:Row-Spacing"
2398 \begin_layout Description
2403 This tab is to make a table a so called
2404 \begin_inset Quotes eld
2412 \begin_inset Quotes erd
2415 that can run over several pages.
2417 \begin_inset space ~
2421 \begin_inset CommandInset ref
2423 reference "sec:Longtables"
2428 \begin_inset CommandInset ref
2430 reference "sec:Special-Longtable-Issues"
2434 describe the longtable features in detail.
2437 \begin_layout Section
2439 \begin_inset Index idx
2442 \begin_layout Plain Layout
2451 \begin_layout Standard
2452 The table toolbar is an alternative to the table dialog to be able to alter
2454 It should normally appear at the bottom of \SpecialChar LyX
2455 's main window when the cursor
2457 You can alternatively switch it on to appear always, by right-clicking
2462 \begin_layout Standard
2463 The toolbar has the following icons:
2466 \begin_layout Labeling
2467 \labelwidthstring 00.00.0000
2470 arg "inset-modify tabular append-row"
2473 adds a row below the current cell or selection
2476 \begin_layout Labeling
2477 \labelwidthstring 00.00.0000
2480 arg "inset-modify tabular append-column"
2483 adds a column right beside the current cell or selection
2486 \begin_layout Labeling
2487 \labelwidthstring 00.00.0000
2490 arg "inset-modify tabular delete-row"
2493 deletes the current row or selection
2496 \begin_layout Labeling
2497 \labelwidthstring 00.00.0000
2500 arg "inset-modify tabular delete-column"
2503 deletes the current column or selection
2506 \begin_layout Labeling
2507 \labelwidthstring 00.00.0000
2510 arg "inset-modify tabular move-row-up"
2516 \begin_layout Labeling
2517 \labelwidthstring 00.00.0000
2520 arg "inset-modify tabular move-column-left"
2523 moves the column to the left
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2530 arg "inset-modify tabular move-row-down"
2536 \begin_layout Labeling
2537 \labelwidthstring 00.00.0000
2540 arg "inset-modify tabular move-column-right"
2543 moves the column to the right
2546 \begin_layout Labeling
2547 \labelwidthstring 00.00.0000
2550 arg "inset-modify tabular toggle-line-top"
2553 adds a line at the top of the current cell / row or of a selection
2556 \begin_layout Labeling
2557 \labelwidthstring 00.00.0000
2560 arg "inset-modify tabular toggle-line-bottom"
2563 adds a line at the bottom of the current cell / row or of a selection
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2570 arg "inset-modify tabular toggle-line-left"
2573 adds a line at the left side of the current cell / row or of a selection
2576 \begin_layout Labeling
2577 \labelwidthstring 00.00.0000
2580 arg "inset-modify tabular toggle-line-right"
2583 adds a line at the right side of the current cell / row or of a selection
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2590 arg "inset-modify tabular set-all-lines"
2593 adds lines around the current or selected cells - if the current cell no
2594 multicolumn cell this also affects the current row and column
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2601 arg "inset-modify tabular unset-all-lines"
2604 deletes all lines of the current or selected cells - if the current cell
2605 no multicolumn cell this also affects the current row and column
2608 \begin_layout Labeling
2609 \labelwidthstring 00.00.0000
2612 arg "inset-modify tabular m-align-left"
2615 left-aligns the content of the current cell / column
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2622 arg "inset-modify tabular m-align-center"
2625 centers the content of the current cell / column horizontally
2628 \begin_layout Labeling
2629 \labelwidthstring 00.00.0000
2632 arg "inset-modify tabular m-align-right"
2635 right-aligns the content of the current cell / column
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2642 arg "inset-modify tabular align-decimal"
2645 aligns the content of the current column at a character
2648 \begin_layout Labeling
2649 \labelwidthstring 00.00.0000
2652 arg "inset-modify tabular m-valign-top"
2655 aligns the content of the current cell vertically to the top
2658 \begin_layout Labeling
2659 \labelwidthstring 00.00.0000
2662 arg "inset-modify tabular m-valign-middle"
2665 centers the content of the current cell vertically
2668 \begin_layout Labeling
2669 \labelwidthstring 00.00.0000
2672 arg "inset-modify tabular m-valign-bottom"
2675 aligns the content of the current cell vertically to the bottom
2678 \begin_layout Labeling
2679 \labelwidthstring 00.00.0000
2682 arg "inset-modify tabular set-rotate-cell"
2685 rotates the current cell or selection counter-clockwise by 90°
2688 \begin_layout Labeling
2689 \labelwidthstring 00.00.0000
2692 arg "inset-modify tabular set-rotate-tabular"
2695 rotates the whole table counter-clockwise by 90°
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2702 arg "inset-modify tabular multicolumn"
2705 sets the current cell or selection as a multicolumn
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2712 arg "inset-modify tabular multirow"
2715 sets the current cell or selection as a multirow
2718 \begin_layout Standard
2719 \begin_inset Note Greyedout
2722 \begin_layout Plain Layout
2727 For the output the vertical alignment of the first cell in a row is used
2728 for all following cells in the row.
2736 \begin_layout Section
2738 \begin_inset Index idx
2741 \begin_layout Plain Layout
2750 \begin_layout Standard
2751 In addition to the table dialog and toolbar, the menu
2753 Edit\SpecialChar menuseparator
2756 allows you to add and delete border lines for the current row/column and
2757 to set the current selection as multicolumn.
2758 The menu is only available when the cursor is inside a table.
2761 \begin_layout Section
2763 \begin_inset CommandInset label
2765 name "sec:Table-Floats"
2770 \begin_inset Index idx
2773 \begin_layout Plain Layout
2780 \begin_inset Index idx
2783 \begin_layout Plain Layout
2792 \begin_layout Standard
2793 For general explanations about floats, have a look at section
2794 \begin_inset space ~
2798 \begin_inset CommandInset ref
2800 reference "sec:FloatIntroduction"
2807 \begin_layout Standard
2808 \begin_inset Float table
2814 \begin_layout Plain Layout
2815 \begin_inset Caption Standard
2817 \begin_layout Plain Layout
2818 \begin_inset CommandInset label
2820 name "tab:a table float"
2832 \begin_layout Plain Layout
2834 \begin_inset Tabular
2835 <lyxtabular version="3" rows="3" columns="3">
2836 <features tabularvalignment="middle">
2837 <column alignment="center" valignment="top" width="0pt">
2838 <column alignment="center" valignment="top" width="0pt">
2839 <column alignment="center" valignment="top" width="0pt">
2841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2844 \begin_layout Plain Layout
2859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2862 \begin_layout Plain Layout
2877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2880 \begin_layout Plain Layout
2897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2900 \begin_layout Plain Layout
2915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2918 \begin_layout Plain Layout
2933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2936 \begin_layout Plain Layout
2953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2956 \begin_layout Plain Layout
2966 \begin_inset Formula $\int x^{2}dx$
2974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2977 \begin_layout Plain Layout
2987 \begin_inset Formula $\left[\begin{array}{cc}
2998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3001 \begin_layout Plain Layout
3011 \begin_inset Formula $1+1=2$
3032 \begin_layout Standard
3033 Table floats can be inserted using the menu
3035 Insert\SpecialChar menuseparator
3036 Float\SpecialChar menuseparator
3039 or the toolbar button
3042 arg "float-insert table"
3048 \begin_layout Standard
3049 The float appears as a collapsible box with a caption that has the label
3051 \begin_inset Quotes eld
3055 \begin_inset space ~
3059 \begin_inset Quotes erd
3062 (# is the actual table number).
3063 You can insert tables in the float above or below the caption.
3066 \begin_layout Standard
3068 \begin_inset space ~
3072 \begin_inset CommandInset ref
3074 reference "tab:a table float"
3078 is an example table within a table float.
3081 \begin_layout Standard
3082 Having the caption above the table is the common rule that is unfortunately
3083 not supported in \SpecialChar LaTeX
3084 's standard classes.
3085 This means that, if you are using the document classes
3101 , there will be no space between the caption and the table.
3102 To insert the needed space, add the following option to the load command
3103 of the \SpecialChar LaTeX
3109 \begin_inset Index idx
3112 \begin_layout Plain Layout
3119 in your document preamble
3123 \begin_layout Plain Layout
3124 For more information have a look at section
3125 \begin_inset space ~
3129 \begin_inset CommandInset ref
3131 reference "sec:Caption-Placement"
3143 \begin_layout Standard
3149 \begin_layout Standard
3154 , which is described in section
3155 \begin_inset space ~
3159 \begin_inset CommandInset ref
3161 reference "sec:Caption-Formatting"
3165 , is used to adjust the caption format.
3168 \begin_layout Standard
3169 \begin_inset Index idx
3172 \begin_layout Plain Layout
3173 References ! to Tables
3178 Tables can be cross-referenced in the text by referencing their label.
3179 To do this insert a label in the caption using the menu
3181 Insert\SpecialChar menuseparator
3184 or the toolbar button
3191 You can now refer to the label using the menu
3193 Insert\SpecialChar menuseparator
3195 \begin_inset space ~
3200 or the toolbar button
3203 arg "dialog-show-new-inset ref"
3207 \begin_inset Newline newline
3210 Referencing is explained in detail in section
3211 \begin_inset space ~
3215 \begin_inset CommandInset ref
3217 reference "sec:Referencing-Floats"
3224 \begin_layout Section
3226 \begin_inset CommandInset label
3228 name "sec:Longtables"
3233 \begin_inset Index idx
3236 \begin_layout Plain Layout
3243 \begin_inset Index idx
3246 \begin_layout Plain Layout
3255 \begin_layout Standard
3256 If the table is too long to fit on one page, you can use the option
3259 \begin_inset space ~
3263 \begin_inset space ~
3272 of the table dialog to split the table automatically over more pages.
3273 Doing this enables the following options:
3276 \begin_layout Description
3277 Header: The current row is defined to be a header row that appears on all
3278 pages of the longtable; except for the first page, if
3281 \begin_inset space ~
3287 This is therefore called the main header.
3290 \begin_layout Description
3292 \begin_inset space ~
3295 header: The current row is defined to be a header row that appears on the
3296 first page of the longtable.
3299 \begin_layout Description
3300 Footer: The current row is defined to be a footer row that appears on all
3301 pages of the longtable; except for the last page, if
3304 \begin_inset space ~
3312 \begin_layout Description
3314 \begin_inset space ~
3317 footer: The current row is defined to be a footer row that appears on the
3318 last page of the longtable.
3321 \begin_layout Description
3322 Caption: The current row contains the table caption.
3323 The row is reset as single column and a caption is inserted.
3324 More about longtable captions is explained in sec.
3325 \begin_inset space \thinspace{}
3329 \begin_inset CommandInset ref
3331 reference "subsec:Longtable-Captions"
3338 \begin_layout Standard
3339 You can also specify a row where the table is split.
3340 See the following longtable to see how it works:
3341 \begin_inset Separator parbreak
3347 \begin_layout Standard
3349 \begin_inset Tabular
3350 <lyxtabular version="3" rows="69" columns="3">
3351 <features islongtable="true" longtabularalignment="center">
3352 <column alignment="left" valignment="top" width="0cm">
3353 <column alignment="left" valignment="top" width="0pt">
3354 <column alignment="center" valignment="top" width="0pt">
3355 <row endfirsthead="true">
3356 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3359 \begin_layout Plain Layout
3362 Example Phone List (ignore the names)
3367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3370 \begin_layout Plain Layout
3376 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3379 \begin_layout Plain Layout
3386 <row endfirsthead="true">
3387 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3390 \begin_layout Plain Layout
3398 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3401 \begin_layout Plain Layout
3407 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3410 \begin_layout Plain Layout
3419 <row endhead="true">
3420 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3423 \begin_layout Plain Layout
3431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3434 \begin_layout Plain Layout
3440 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3443 \begin_layout Plain Layout
3450 <row endhead="true">
3451 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3454 \begin_layout Plain Layout
3462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3465 \begin_layout Plain Layout
3471 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3474 \begin_layout Plain Layout
3483 <row endfoot="true">
3484 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3487 \begin_layout Plain Layout
3488 continued on next page
3493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3496 \begin_layout Plain Layout
3502 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3505 \begin_layout Plain Layout
3513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" usebox="none">
3527 \begin_layout Plain Layout
3533 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3536 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" usebox="none">
3558 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3567 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3578 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" usebox="none">
3589 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3598 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" usebox="none">
3620 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3629 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" usebox="none">
3651 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3660 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" usebox="none">
3682 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3691 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" usebox="none">
3713 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3722 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" usebox="none">
3744 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3753 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" usebox="none">
3775 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3784 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" usebox="none">
3806 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3815 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" usebox="none">
3837 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3846 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" usebox="none">
3868 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3877 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" usebox="none">
3899 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3908 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" usebox="none">
3930 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3939 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" usebox="none">
3961 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3970 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" usebox="none">
3992 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4001 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" usebox="none">
4023 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" usebox="none">
4054 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4063 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" usebox="none">
4085 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4094 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" usebox="none">
4116 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4125 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" usebox="none">
4147 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4156 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" usebox="none">
4178 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4187 \begin_layout Plain Layout
4195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4198 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" usebox="none">
4209 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4218 \begin_layout Plain Layout
4226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4229 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" usebox="none">
4240 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4260 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" usebox="none">
4271 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4291 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" usebox="none">
4302 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4322 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" usebox="none">
4333 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4353 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" usebox="none">
4364 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4384 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" usebox="none">
4395 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4415 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" usebox="none">
4426 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4446 \begin_layout Plain Layout
4454 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4457 \begin_layout Plain Layout
4463 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4466 \begin_layout Plain Layout
4474 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4477 \begin_layout Plain Layout
4483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4486 \begin_layout Plain Layout
4492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4495 \begin_layout Plain Layout
4503 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4506 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" usebox="none">
4517 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4526 \begin_layout Plain Layout
4534 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4537 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" usebox="none">
4548 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4557 \begin_layout Plain Layout
4565 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4568 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" usebox="none">
4579 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4588 \begin_layout Plain Layout
4596 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" usebox="none">
4610 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4619 \begin_layout Plain Layout
4627 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" usebox="none">
4641 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4650 \begin_layout Plain Layout
4658 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" usebox="none">
4672 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4681 \begin_layout Plain Layout
4689 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" usebox="none">
4703 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4712 \begin_layout Plain Layout
4720 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" usebox="none">
4734 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4743 \begin_layout Plain Layout
4751 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" usebox="none">
4765 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4774 \begin_layout Plain Layout
4782 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" usebox="none">
4796 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4805 \begin_layout Plain Layout
4813 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" usebox="none">
4827 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4836 \begin_layout Plain Layout
4844 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" usebox="none">
4858 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4867 \begin_layout Plain Layout
4875 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" usebox="none">
4889 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4898 \begin_layout Plain Layout
4906 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" usebox="none">
4920 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4929 \begin_layout Plain Layout
4937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" usebox="none">
4951 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4960 \begin_layout Plain Layout
4968 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" usebox="none">
4982 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4991 \begin_layout Plain Layout
4999 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" usebox="none">
5013 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5022 \begin_layout Plain Layout
5030 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" usebox="none">
5044 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5053 \begin_layout Plain Layout
5061 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" usebox="none">
5075 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5084 \begin_layout Plain Layout
5092 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" usebox="none">
5106 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5115 \begin_layout Plain Layout
5123 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" usebox="none">
5137 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5146 \begin_layout Plain Layout
5154 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5157 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" usebox="none">
5168 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5177 \begin_layout Plain Layout
5185 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5188 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" usebox="none">
5199 \begin_layout Plain Layout
5205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5208 \begin_layout Plain Layout
5216 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5219 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" usebox="none">
5230 \begin_layout Plain Layout
5236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5239 \begin_layout Plain Layout
5247 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5250 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" usebox="none">
5261 \begin_layout Plain Layout
5267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5270 \begin_layout Plain Layout
5278 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5281 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" usebox="none">
5292 \begin_layout Plain Layout
5298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5301 \begin_layout Plain Layout
5309 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5312 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" usebox="none">
5323 \begin_layout Plain Layout
5329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5332 \begin_layout Plain Layout
5340 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5343 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" usebox="none">
5354 \begin_layout Plain Layout
5360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5363 \begin_layout Plain Layout
5371 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5374 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" usebox="none">
5385 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5394 \begin_layout Plain Layout
5402 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5405 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" usebox="none">
5416 \begin_layout Plain Layout
5422 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5425 \begin_layout Plain Layout
5433 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5436 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5447 \begin_layout Plain Layout
5453 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5456 \begin_layout Plain Layout
5463 <row endlastfoot="true">
5464 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5476 \begin_layout Plain Layout
5482 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5485 \begin_layout Plain Layout
5500 \begin_layout Plain Layout
5504 addtocounter{table}{-1}
5510 \begin_inset Note Note
5513 \begin_layout Plain Layout
5514 See the first greyed-out note in section
5515 \begin_inset space ~
5519 \begin_inset CommandInset ref
5521 reference "subsec:Longtable-Captions"
5525 for an explanation of this command.
5533 \begin_layout Subsection
5534 Footnotes in Longtables
5535 \begin_inset CommandInset label
5537 name "subsec:Footnotes-in-Longtables"
5542 \begin_inset Index idx
5545 \begin_layout Plain Layout
5546 Longtables ! Footnotes
5554 \begin_layout Standard
5555 Footnotes can be inserted to every longtable cell.
5556 They appear at the bottom of the page where the table cell with the footnote
5559 \begin_inset space ~
5563 \begin_inset CommandInset ref
5565 reference "tab:DiffCaptions"
5569 has for example a footnote.
5572 \begin_layout Subsection
5574 \begin_inset Index idx
5577 \begin_layout Plain Layout
5578 Longtables ! Alignment
5586 \begin_layout Standard
5587 The horizontal alignment of longtables can be set in the table settings
5589 For left- and right-alignment the table will be directly at the page border.
5590 To add space between the table and the border one has to set the alignment
5591 to center and change the value of the \SpecialChar LaTeX
5604 by inserting this line as \SpecialChar TeX
5605 Code before the longtable:
5608 \begin_layout Standard
5618 \begin_layout Standard
5619 The value can have any of the units listed in Table
5620 \begin_inset space ~
5624 \begin_inset CommandInset ref
5626 reference "tab:Units"
5637 controls the horizontal distance from the left page border to the longtable,
5644 the distance from the right side.
5645 The default value for both lengths is
5651 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5655 \begin_layout Standard
5656 The following longtable was centered and
5672 \begin_layout Plain Layout
5688 \begin_layout Standard
5689 \begin_inset Tabular
5690 <lyxtabular version="3" rows="5" columns="5">
5691 <features islongtable="true" longtabularalignment="center">
5692 <column alignment="center" valignment="top">
5693 <column alignment="center" valignment="top" width="0pt">
5694 <column alignment="center" valignment="top">
5695 <column alignment="center" valignment="top">
5696 <column alignment="center" valignment="top">
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" usebox="none">
5728 \begin_layout Plain Layout
5734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5737 \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" usebox="none">
5775 \begin_layout Plain Layout
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5784 \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" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5831 \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" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5878 \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" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5925 \begin_layout Plain Layout
5940 \begin_layout Plain Layout
5957 \begin_layout Plain Layout
5961 addtocounter{table}{-1}
5967 \begin_inset Note Note
5970 \begin_layout Plain Layout
5971 See the first greyed-out note in section
5972 \begin_inset space ~
5976 \begin_inset CommandInset ref
5978 reference "subsec:Longtable-Captions"
5982 for an explanation of this command.
5990 \begin_layout Subsection
5992 \begin_inset Index idx
5995 \begin_layout Plain Layout
5996 Longtables ! Captions
6002 \begin_inset CommandInset label
6004 name "subsec:Longtable-Captions"
6011 \begin_layout Standard
6012 A longtable cannot be put into a table float because floats can only be
6014 But the caption environment of floats can also be used for longtables when
6015 you use the longtable option
6019 as described in sec.
6020 \begin_inset space \thinspace{}
6024 \begin_inset CommandInset ref
6026 reference "sec:Longtables"
6031 Only one table row should contain a caption, either a header or a footer
6035 \begin_layout Standard
6036 Here is a short longtable to see how it works:
6039 \begin_layout Standard
6040 \begin_inset Tabular
6041 <lyxtabular version="3" rows="6" columns="5">
6042 <features islongtable="true" longtabularalignment="center">
6043 <column alignment="center" valignment="top">
6044 <column alignment="center" valignment="top">
6045 <column alignment="center" valignment="top">
6046 <column alignment="center" valignment="top">
6047 <column alignment="center" valignment="top">
6048 <row endfirsthead="true" caption="true">
6049 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6052 \begin_layout Plain Layout
6053 \begin_inset Caption Standard
6055 \begin_layout Plain Layout
6056 Longtable with caption
6057 \begin_inset Argument 1
6060 \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" usebox="none">
6097 \begin_layout Plain Layout
6103 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6106 \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" usebox="none">
6144 \begin_layout Plain Layout
6150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6153 \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" usebox="none">
6191 \begin_layout Plain Layout
6197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6200 \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" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6247 \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" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6294 \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" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6341 \begin_layout Plain Layout
6355 \begin_layout Standard
6356 \begin_inset VSpace medskip
6360 \begin_inset Note Greyedout
6363 \begin_layout Plain Layout
6367 \begin_inset space ~
6372 The table number is increased for every longtable, even if you did not
6373 set a caption for it.
6374 For this reason you could have the case that e.
6375 \begin_inset space \thinspace{}
6379 \begin_inset space \space{}
6383 \begin_inset space ~
6387 \begin_inset space ~
6390 2.1 in the list of tables if there are two longtables without captions.
6391 To avoid this you can add the following command in \SpecialChar TeX
6392 Code after every longtable
6396 \begin_layout Plain Layout
6401 addtocounter{table}{-1}
6404 \begin_layout Plain Layout
6405 This is not needed when none of your longtables has a caption and you add
6406 the following code to the document preamble:
6409 \begin_layout Plain Layout
6419 \begin_inset Newline newline
6430 addtocounter{table}{-1}}
6438 \begin_layout Standard
6439 \begin_inset Note Greyedout
6442 \begin_layout Plain Layout
6446 \begin_inset space ~
6456 \begin_inset Index idx
6459 \begin_layout Plain Layout
6461 -packages ! hyperref
6474 dialog to link cross-references, the link to a longtable caption will always
6475 point to the beginning of the document.
6483 \begin_layout Subsubsection
6484 References to Longtables
6485 \begin_inset Index idx
6488 \begin_layout Plain Layout
6489 Longtables ! References
6497 \begin_layout Standard
6498 \begin_inset Tabular
6499 <lyxtabular version="3" rows="6" columns="5">
6500 <features islongtable="true" longtabularalignment="center">
6501 <column alignment="center" valignment="top">
6502 <column alignment="center" valignment="top">
6503 <column alignment="center" valignment="top">
6504 <column alignment="center" valignment="top">
6505 <column alignment="center" valignment="top">
6506 <row endfirsthead="true" caption="true">
6507 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6510 \begin_layout Plain Layout
6511 \begin_inset Caption Standard
6513 \begin_layout Plain Layout
6514 Referenced longtable
6515 \begin_inset CommandInset label
6517 name "tab:RefExample"
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" usebox="none">
6552 \begin_layout Plain Layout
6558 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6561 \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" usebox="none">
6599 \begin_layout Plain Layout
6605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6608 \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" usebox="none">
6646 \begin_layout Plain Layout
6652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6655 \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" usebox="none">
6693 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6702 \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" usebox="none">
6740 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6749 \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" usebox="none">
6787 \begin_layout Plain Layout
6793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6796 \begin_layout Plain Layout
6810 \begin_layout Standard
6811 To reference a longtable, insert a label into the caption.
6814 \begin_layout Standard
6815 This is a reference to Table
6816 \begin_inset space ~
6820 \begin_inset CommandInset ref
6822 reference "tab:RefExample"
6829 \begin_layout Standard
6830 The caption layout can be set together with all other captions of your document
6831 using the \SpecialChar LaTeX
6837 \begin_inset Index idx
6840 \begin_layout Plain Layout
6848 \begin_inset space ~
6852 \begin_inset CommandInset ref
6854 reference "sec:Caption-Formatting"
6861 \begin_layout Subsubsection
6863 \begin_inset Index idx
6866 \begin_layout Plain Layout
6867 Longtables ! Caption Width
6875 \begin_layout Standard
6876 The maximal width of caption lines is defined by the length
6883 Its default value is 4
6884 \begin_inset space \thinspace{}
6888 To change it add the following command to your document preamble or as
6890 Code into your document before the longtable that should be affected
6893 \begin_layout Standard
6903 \begin_layout Standard
6904 where the width could have one of the units listed in appendix
6905 \begin_inset space ~
6909 \begin_inset CommandInset ref
6911 reference "cha:Units-available-in"
6918 \begin_layout Standard
6919 The following tables show the difference:
6922 \begin_layout Standard
6923 \begin_inset Tabular
6924 <lyxtabular version="3" rows="6" columns="5">
6925 <features islongtable="true" longtabularalignment="center">
6926 <column alignment="center" valignment="top">
6927 <column alignment="center" valignment="top">
6928 <column alignment="center" valignment="top">
6929 <column alignment="center" valignment="top">
6930 <column alignment="center" valignment="top">
6931 <row endfirsthead="true" caption="true">
6932 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6935 \begin_layout Plain Layout
6936 \begin_inset Caption Standard
6938 \begin_layout Plain Layout
6939 long full title with default width long full title with default width long
6940 full title with default width
6941 \begin_inset Argument 1
6944 \begin_layout Plain Layout
6945 caption with default width
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" usebox="none">
6981 \begin_layout Plain Layout
6987 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6990 \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" usebox="none">
7028 \begin_layout Plain Layout
7034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7037 \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" usebox="none">
7075 \begin_layout Plain Layout
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7084 \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" usebox="none">
7122 \begin_layout Plain Layout
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7131 \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" usebox="none">
7169 \begin_layout Plain Layout
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7178 \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" usebox="none">
7216 \begin_layout Plain Layout
7222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7225 \begin_layout Plain Layout
7239 \begin_layout Standard
7243 \begin_layout Plain Layout
7255 \begin_inset Tabular
7256 <lyxtabular version="3" rows="6" columns="5">
7257 <features islongtable="true" longtabularalignment="center">
7258 <column alignment="center" valignment="top">
7259 <column alignment="center" valignment="top">
7260 <column alignment="center" valignment="top">
7261 <column alignment="center" valignment="top">
7262 <column alignment="center" valignment="top">
7263 <row endfirsthead="true" caption="true">
7264 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7267 \begin_layout Plain Layout
7268 \begin_inset Caption Standard
7270 \begin_layout Plain Layout
7271 long full title with width set to 5
7272 \begin_inset space \thinspace{}
7275 cm long full title with width set to 5
7276 \begin_inset space \thinspace{}
7279 cm long full title with width set to 5
7280 \begin_inset space \thinspace{}
7284 \begin_inset Argument 1
7287 \begin_layout Plain Layout
7289 \begin_inset space \thinspace{}
7293 \begin_inset space \thinspace{}
7297 \begin_inset space \thinspace{}
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" usebox="none">
7336 \begin_layout Plain Layout
7342 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7345 \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" usebox="none">
7383 \begin_layout Plain Layout
7389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7392 \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" usebox="none">
7430 \begin_layout Plain Layout
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7439 \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" usebox="none">
7477 \begin_layout Plain Layout
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7486 \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" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7533 \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" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7580 \begin_layout Plain Layout
7594 \begin_layout Standard
7598 \begin_layout Plain Layout
7612 \begin_layout Standard
7613 \begin_inset Note Greyedout
7616 \begin_layout Plain Layout
7621 When the \SpecialChar LaTeX
7627 \begin_inset Index idx
7630 \begin_layout Plain Layout
7637 is used, as in this document, the full page width is used for the caption
7638 when you use the default value of 4
7639 \begin_inset space \thinspace{}
7649 To get in this case exactly a 4
7650 \begin_inset space \thinspace{}
7653 in wide caption, you can either use a value slightly different from 4.0
7654 \begin_inset space \thinspace{}
7658 \begin_inset space \thinspace{}
7662 \begin_inset space \space{}
7666 \begin_inset space \thinspace{}
7669 in, or the \SpecialChar LaTeX
7674 captionsetup{width=value}
7676 that is provided by the
7688 \begin_layout Subsubsection
7689 Different Captions for Table Pages
7690 \begin_inset Index idx
7693 \begin_layout Plain Layout
7694 Longtables ! Different Captions for Pages
7702 \begin_layout Standard
7703 When the table captions for the following pages should differ from the one
7704 of the first table page, mark a empty row as header which contains a caption.
7705 Then right-click on the caption and select in the context menu
7708 \begin_inset space ~
7715 \begin_inset space ~
7719 \begin_inset CommandInset ref
7721 reference "tab:DiffCaptions"
7725 is an example of a longtable with different heading where the second caption
7726 does not include the table number.
7727 \begin_inset Separator parbreak
7733 \begin_layout Standard
7735 \begin_inset Tabular
7736 <lyxtabular version="3" rows="59" columns="3">
7737 <features islongtable="true" longtabularalignment="center">
7738 <column alignment="left" valignment="top" width="0cm">
7739 <column alignment="left" valignment="top" width="0pt">
7740 <column alignment="center" valignment="top" width="0pt">
7741 <row endfirsthead="true" caption="true">
7742 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7745 \begin_layout Plain Layout
7746 \begin_inset Caption Standard
7748 \begin_layout Plain Layout
7750 \begin_inset CommandInset label
7752 name "tab:DiffCaptions"
7757 \begin_inset Argument 1
7760 \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
7785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7788 \begin_layout Plain Layout
7795 <row endfirsthead="true">
7796 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Plain Layout
7802 Example Phone List (ignore the names)
7807 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7810 \begin_layout Plain Layout
7816 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7819 \begin_layout Plain Layout
7826 <row endfirsthead="true">
7827 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7830 \begin_layout Plain Layout
7838 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7841 \begin_layout Plain Layout
7847 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7850 \begin_layout Plain Layout
7859 <row endhead="true" caption="true">
7860 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7863 \begin_layout Plain Layout
7864 \begin_inset Caption LongTableNoNumber
7866 \begin_layout Plain Layout
7867 Continued Example Phone List
7877 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7880 \begin_layout Plain Layout
7886 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Plain Layout
7896 <row endhead="true">
7897 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7900 \begin_layout Plain Layout
7908 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7911 \begin_layout Plain Layout
7917 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Plain Layout
7927 <row endhead="true">
7928 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7931 \begin_layout Plain Layout
7939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7942 \begin_layout Plain Layout
7948 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Plain Layout
7960 <row endfoot="true">
7961 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7964 \begin_layout Plain Layout
7965 continued on next page
7970 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7973 \begin_layout Plain Layout
7979 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7982 \begin_layout Plain Layout
7990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7993 \begin_layout Plain Layout
8001 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8013 \begin_layout Plain Layout
8021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8024 \begin_layout Plain Layout
8032 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8044 \begin_layout Plain Layout
8052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8063 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8075 \begin_layout Plain Layout
8083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8086 \begin_layout Plain Layout
8094 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8097 \begin_layout Plain Layout
8103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8106 \begin_layout Plain Layout
8114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8117 \begin_layout Plain Layout
8125 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8128 \begin_layout Plain Layout
8134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8137 \begin_layout Plain Layout
8145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8148 \begin_layout Plain Layout
8156 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8159 \begin_layout Plain Layout
8165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8168 \begin_layout Plain Layout
8176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8179 \begin_layout Plain Layout
8187 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8190 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8199 \begin_layout Plain Layout
8207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8210 \begin_layout Plain Layout
8218 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8221 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8230 \begin_layout Plain Layout
8238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8241 \begin_layout Plain Layout
8249 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8252 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8261 \begin_layout Plain Layout
8269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8272 \begin_layout Plain Layout
8280 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8283 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8292 \begin_layout Plain Layout
8300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8303 \begin_layout Plain Layout
8311 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8314 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8323 \begin_layout Plain Layout
8331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8334 \begin_layout Plain Layout
8342 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8345 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8354 \begin_layout Plain Layout
8362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8365 \begin_layout Plain Layout
8373 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8376 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8385 \begin_layout Plain Layout
8393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8396 \begin_layout Plain Layout
8404 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8407 \begin_layout Plain Layout
8413 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8416 \begin_layout Plain Layout
8424 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8427 \begin_layout Plain Layout
8436 \begin_layout Plain Layout
8447 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8478 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8490 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8501 \begin_layout Plain Layout
8509 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8521 \begin_layout Plain Layout
8529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8532 \begin_layout Plain Layout
8540 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8552 \begin_layout Plain Layout
8560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8563 \begin_layout Plain Layout
8571 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8602 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8625 \begin_layout Plain Layout
8633 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8636 \begin_layout Plain Layout
8642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8664 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8667 \begin_layout Plain Layout
8673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8676 \begin_layout Plain Layout
8684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8687 \begin_layout Plain Layout
8695 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8698 \begin_layout Plain Layout
8704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8707 \begin_layout Plain Layout
8715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8718 \begin_layout Plain Layout
8726 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8729 \begin_layout Plain Layout
8735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8738 \begin_layout Plain Layout
8746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8749 \begin_layout Plain Layout
8757 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8760 \begin_layout Plain Layout
8766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8769 \begin_layout Plain Layout
8777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8780 \begin_layout Plain Layout
8788 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8791 \begin_layout Plain Layout
8797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8800 \begin_layout Plain Layout
8808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8811 \begin_layout Plain Layout
8819 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8822 \begin_layout Plain Layout
8828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8831 \begin_layout Plain Layout
8839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8842 \begin_layout Plain Layout
8850 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8853 \begin_layout Plain Layout
8859 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8862 \begin_layout Plain Layout
8870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8873 \begin_layout Plain Layout
8881 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8884 \begin_layout Plain Layout
8890 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8893 \begin_layout Plain Layout
8901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8904 \begin_layout Plain Layout
8912 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8915 \begin_layout Plain Layout
8921 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8924 \begin_layout Plain Layout
8932 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8935 \begin_layout Plain Layout
8943 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8946 \begin_layout Plain Layout
8952 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8955 \begin_layout Plain Layout
8963 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8975 \begin_layout Plain Layout
8981 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8984 \begin_layout Plain Layout
8992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8995 \begin_layout Plain Layout
9003 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9015 \begin_layout Plain Layout
9023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9026 \begin_layout Plain Layout
9034 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9046 \begin_layout Plain Layout
9054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9057 \begin_layout Plain Layout
9065 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9077 \begin_layout Plain Layout
9085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9088 \begin_layout Plain Layout
9096 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9127 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9158 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9189 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9220 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9251 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9263 \begin_layout Plain Layout
9271 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9274 \begin_layout Plain Layout
9282 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9285 \begin_layout Plain Layout
9291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9294 \begin_layout Plain Layout
9302 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9305 \begin_layout Plain Layout
9313 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9316 \begin_layout Plain Layout
9322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9325 \begin_layout Plain Layout
9333 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9336 \begin_layout Plain Layout
9344 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9347 \begin_layout Plain Layout
9353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9356 \begin_layout Plain Layout
9364 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9367 \begin_layout Plain Layout
9375 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9378 \begin_layout Plain Layout
9384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9387 \begin_layout Plain Layout
9395 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9398 \begin_layout Plain Layout
9406 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9409 \begin_layout Plain Layout
9415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9418 \begin_layout Plain Layout
9426 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9429 \begin_layout Plain Layout
9437 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9440 \begin_layout Plain Layout
9446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9449 \begin_layout Plain Layout
9457 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9460 \begin_layout Plain Layout
9468 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9471 \begin_layout Plain Layout
9477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9480 \begin_layout Plain Layout
9488 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9491 \begin_layout Plain Layout
9499 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9502 \begin_layout Plain Layout
9508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9511 \begin_layout Plain Layout
9519 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9522 \begin_layout Plain Layout
9530 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9533 \begin_layout Plain Layout
9539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9542 \begin_layout Plain Layout
9550 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9553 \begin_layout Plain Layout
9561 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9564 \begin_layout Plain Layout
9570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9573 \begin_layout Plain Layout
9581 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9584 \begin_layout Plain Layout
9592 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9595 \begin_layout Plain Layout
9601 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9604 \begin_layout Plain Layout
9618 \begin_layout Section
9619 Special Longtable Issues
9620 \begin_inset CommandInset label
9622 name "sec:Special-Longtable-Issues"
9629 \begin_layout Subsection
9630 Longtable Calculation
9631 \begin_inset Index idx
9634 \begin_layout Plain Layout
9635 Longtables ! Calculation
9643 \begin_layout Standard
9645 calculates the height of table pages and their page breaks using so called
9647 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9649 The default value was historically set to only 20 table rows.
9650 If you are using longtables with many pages this may slow down the creation
9652 You can safely increase the chunk size to values of 100-1000 by adding
9653 this command line to your document preamble:
9656 \begin_layout Standard
9661 setcounter{LTchunksize}{100}
9664 \begin_layout Subsection
9665 Floats and Longtables
9666 \begin_inset Index idx
9669 \begin_layout Plain Layout
9678 \begin_layout Standard
9679 There might be problems when a float appears on the same page where a longtable
9681 To avoid such a situation, insert a
9682 \begin_inset Quotes eld
9686 \begin_inset Quotes erd
9691 Insert\SpecialChar menuseparator
9692 Formatting\SpecialChar menuseparator
9694 \begin_inset space ~
9699 ) before your longtable.
9702 \begin_layout Subsection
9704 \begin_inset Index idx
9707 \begin_layout Plain Layout
9708 Longtables ! Forced Page Breaks
9716 \begin_layout Standard
9717 By default tables are only broken between rows.
9718 If you have a cell with multiples lines and want to have a page break within
9719 the cell, insert the new line command
9720 \begin_inset Quotes eld
9732 \begin_inset Quotes erd
9736 Code at the point of the cell where it can be broken.
9745 command you have to insert in \SpecialChar TeX
9747 \begin_inset Quotes eld
9755 \begin_inset Quotes erd
9758 characters as the number of the following table columns.
9763 is the character to separate table cells.
9764 Write in \SpecialChar TeX
9769 the content of the corresponding following cell and delete the content
9771 \begin_inset Newline newline
9782 command, insert as many
9786 characters as the number of table columns before the current column.
9788 \begin_inset space ~
9792 \begin_inset CommandInset ref
9794 reference "tab:ForcedPagebreak"
9798 the cell that should be broken is in the second column followed by another
9800 Therefore the following command was inserted in the cell as \SpecialChar TeX
9803 \begin_inset Quotes eld
9811 \begin_inset Quotes erd
9817 \begin_layout Standard
9827 \begin_inset Newline newline
9833 \begin_layout Standard
9835 \begin_inset Quotes eld
9839 \begin_inset Quotes erd
9842 in the third column of the row was deleted.
9849 is only needed when a page break should definitely occur at this position,
9850 otherwise it would be a conditional break.
9851 If your footer row of the longtable has for a certain reason no upper line
9852 but you would have a horizontal line where the cell is broken, use this
9856 \begin_layout Standard
9864 \begin_inset Newline newline
9872 \begin_layout Standard
9873 When the cell to be broken is in the last column, the command
9876 \begin_layout Standard
9886 \begin_layout Standard
9887 must be inserted as \SpecialChar TeX
9888 Code at the beginning of the cell.
9889 This ensures that the part of the cell that will be displayed on the new
9890 page appears with the full width.
9891 \begin_inset Separator parbreak
9897 \begin_layout Standard
9899 \begin_inset Tabular
9900 <lyxtabular version="3" rows="38" columns="3">
9901 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9902 <column alignment="left" valignment="top" width="0cm">
9903 <column alignment="left" valignment="top" width="3cm">
9904 <column alignment="center" valignment="top" width="0pt">
9905 <row endfirsthead="true" caption="true">
9906 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9909 \begin_layout Plain Layout
9910 \begin_inset Caption Standard
9912 \begin_layout Plain Layout
9913 Table with forced page break in table cell
9914 \begin_inset CommandInset label
9916 name "tab:ForcedPagebreak"
9921 \begin_inset Argument 1
9924 \begin_layout Plain Layout
9925 Table with forced page break in table cell
9940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9949 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9952 \begin_layout Plain Layout
9959 <row endfirsthead="true">
9960 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9963 \begin_layout Plain Layout
9966 Example Phone List (ignore the names)
9971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9974 \begin_layout Plain Layout
9980 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9983 \begin_layout Plain Layout
9990 <row endfirsthead="true">
9991 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9994 \begin_layout Plain Layout
10002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10005 \begin_layout Plain Layout
10011 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10014 \begin_layout Plain Layout
10023 <row endhead="true">
10024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10027 \begin_layout Plain Layout
10031 \begin_layout Plain Layout
10035 caption*{Continued Example Phone List}
10049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10061 \begin_layout Plain Layout
10068 <row endhead="true">
10069 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10080 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10083 \begin_layout Plain Layout
10089 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10092 \begin_layout Plain Layout
10099 <row endhead="true">
10100 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10103 \begin_layout Plain Layout
10111 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10114 \begin_layout Plain Layout
10120 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10123 \begin_layout Plain Layout
10132 <row endfoot="true">
10133 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10136 \begin_layout Plain Layout
10137 continued on next page
10142 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10145 \begin_layout Plain Layout
10151 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10154 \begin_layout Plain Layout
10162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10176 \begin_layout Plain Layout
10182 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10185 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10207 \begin_layout Plain Layout
10213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10216 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10238 \begin_layout Plain Layout
10244 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10247 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10269 \begin_layout Plain Layout
10275 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10278 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10300 \begin_layout Plain Layout
10306 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10309 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10331 \begin_layout Plain Layout
10337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10340 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10362 \begin_layout Plain Layout
10368 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10371 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10393 \begin_layout Plain Layout
10399 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10402 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10424 \begin_layout Plain Layout
10430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10433 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10455 \begin_layout Plain Layout
10461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10464 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10486 \begin_layout Plain Layout
10492 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10495 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10517 \begin_layout Plain Layout
10523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10526 \begin_layout Plain Layout
10534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10537 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10548 \begin_layout Plain Layout
10554 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10557 \begin_layout Plain Layout
10565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10579 \begin_layout Plain Layout
10585 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10588 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10610 \begin_layout Plain Layout
10616 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10619 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10630 \begin_layout Plain Layout
10638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10641 \begin_layout Plain Layout
10647 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10650 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10661 \begin_layout Plain Layout
10669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10672 \begin_layout Plain Layout
10678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10681 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10692 \begin_layout Plain Layout
10700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10703 \begin_layout Plain Layout
10709 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10712 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10723 \begin_layout Plain Layout
10731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10734 \begin_layout Plain Layout
10740 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10743 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10754 \begin_layout Plain Layout
10762 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10765 \begin_layout Plain Layout
10771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10774 \begin_layout Plain Layout
10782 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10785 \begin_layout Plain Layout
10793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10796 \begin_layout Plain Layout
10802 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10805 \begin_layout Plain Layout
10813 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10816 \begin_layout Plain Layout
10824 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10827 \begin_layout Plain Layout
10833 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10844 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10847 \begin_layout Plain Layout
10855 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10858 \begin_layout Plain Layout
10860 Fürst von Montecompatri, 11.
10861 Fürst von Sulmona und Vivaro, 10.
10862 Fürst von Rossano, 5.
10863 Herzog von Canemorte, 11.
10864 Herzog von Palombara, 5.
10865 Herzog von Castelchiodato,
10869 \begin_layout Plain Layout
10880 \begin_layout Plain Layout
10888 Herzog von Poggionativo, 11.
10889 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10890 Graf von Valinfreda, 11.
10891 Baron von Cropalati, 11.
10892 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10897 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10900 \begin_layout Plain Layout
10908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10911 \begin_layout Plain Layout
10919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10922 \begin_layout Plain Layout
10928 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10931 \begin_layout Plain Layout
10939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10942 \begin_layout Plain Layout
10950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10953 \begin_layout Plain Layout
10959 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10962 \begin_layout Plain Layout
10970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10973 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10984 \begin_layout Plain Layout
10990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10993 \begin_layout Plain Layout
11001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11004 \begin_layout Plain Layout
11012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11015 \begin_layout Plain Layout
11021 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11024 \begin_layout Plain Layout
11032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11035 \begin_layout Plain Layout
11043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11046 \begin_layout Plain Layout
11052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11055 \begin_layout Plain Layout
11063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11066 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11077 \begin_layout Plain Layout
11083 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11086 \begin_layout Plain Layout
11094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11097 \begin_layout Plain Layout
11105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11108 \begin_layout Plain Layout
11114 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11117 \begin_layout Plain Layout
11125 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11128 \begin_layout Plain Layout
11136 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11139 \begin_layout Plain Layout
11145 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11148 \begin_layout Plain Layout
11162 \begin_layout Section
11163 Multiple Lines, Columns and Rows
11166 \begin_layout Subsection
11167 Multiple Lines in Table Cells
11168 \begin_inset CommandInset label
11170 name "subsec:Multiple-Lines-in"
11175 \begin_inset Index idx
11178 \begin_layout Plain Layout
11179 Multiple Lines in Table Cells
11185 \begin_inset Index idx
11188 \begin_layout Plain Layout
11197 \begin_layout Standard
11199 \begin_inset Float table
11205 \begin_layout Plain Layout
11206 \begin_inset Caption Standard
11208 \begin_layout Plain Layout
11209 \begin_inset CommandInset label
11211 name "tab:Table-with-multiple"
11215 Table with multiple lines in cells
11223 \begin_layout Plain Layout
11225 \begin_inset Tabular
11226 <lyxtabular version="3" rows="3" columns="3">
11227 <features tabularvalignment="middle">
11228 <column alignment="center" valignment="middle" width="2.5cm">
11229 <column alignment="center" valignment="middle">
11230 <column alignment="center" valignment="middle">
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11235 \begin_layout Plain Layout
11237 \begin_inset Newline linebreak
11245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11248 \begin_layout Plain Layout
11254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11257 \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" usebox="none">
11277 \begin_layout Plain Layout
11283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11286 \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" usebox="none">
11306 \begin_layout Plain Layout
11312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11315 \begin_layout Plain Layout
11334 \begin_layout Standard
11335 Setting a fixed width for a column enables you to enter text as a paragraph
11336 with multiple lines and hyphenation.
11339 \begin_layout Standard
11341 \begin_inset space ~
11345 \begin_inset CommandInset ref
11347 reference "tab:Table-with-multiple"
11351 , create a 3×3 table, mark the first cell and right-click on it.
11352 In the appearing table dialog we set a cell width of 2.5
11353 \begin_inset space \thinspace{}
11356 cm and choose centered for the vertical and horizontal alignment.
11357 The vertical alignment is used for all cells of the row.
11358 As our text is smaller than 2.5
11359 \begin_inset space \thinspace{}
11362 cm, only one line will appear.
11363 To get two lines, a justified line break (shortcut
11366 arg "newline-insert linebreak"
11370 If the text is wider than the set cell width, it will automatically be
11371 broken to several lines.
11374 \begin_layout Standard
11375 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11376 by \SpecialChar LaTeX
11377 if it is the first entry.
11378 Therefore you need to insert something to prevent the word not being the
11380 So add a horizontal space of 0
11381 \begin_inset space \thinspace{}
11384 pt before the word.
11385 As the space is zero, it doesn't change the output.
11387 \begin_inset space ~
11391 \begin_inset CommandInset ref
11393 reference "tab:Table-with-and"
11400 \begin_layout Standard
11401 \begin_inset Float table
11407 \begin_layout Plain Layout
11408 \begin_inset Caption Standard
11410 \begin_layout Plain Layout
11411 \begin_inset CommandInset label
11413 name "tab:Table-with-and"
11417 Table with and without hyphenation
11425 \begin_layout Plain Layout
11426 \begin_inset space \hfill{}
11430 \begin_inset Tabular
11431 <lyxtabular version="3" rows="3" columns="3">
11432 <features tabularvalignment="middle">
11433 <column alignment="center" valignment="middle" width="2.5cm">
11434 <column alignment="center" valignment="middle">
11435 <column alignment="center" valignment="middle">
11437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11440 \begin_layout Plain Layout
11441 verylongtablecellword
11446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11449 \begin_layout Plain Layout
11455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11458 \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" usebox="none">
11478 \begin_layout Plain Layout
11484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11487 \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" usebox="none">
11507 \begin_layout Plain Layout
11513 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11516 \begin_layout Plain Layout
11528 \begin_inset space \hfill{}
11532 \begin_inset Tabular
11533 <lyxtabular version="3" rows="3" columns="3">
11534 <features tabularvalignment="middle">
11535 <column alignment="center" valignment="middle" width="2.5cm">
11536 <column alignment="center" valignment="middle">
11537 <column alignment="center" valignment="middle">
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
11543 \begin_inset space \hspace{}
11547 verylongtablecellword
11552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11555 \begin_layout Plain Layout
11561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11564 \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" usebox="none">
11584 \begin_layout Plain Layout
11590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11593 \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" usebox="none">
11613 \begin_layout Plain Layout
11619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11622 \begin_layout Plain Layout
11634 \begin_inset space \hfill{}
11645 \begin_layout Subsection
11647 \begin_inset CommandInset label
11649 name "subsec:Multicolumns"
11654 \begin_inset Index idx
11657 \begin_layout Plain Layout
11664 \begin_inset Index idx
11667 \begin_layout Plain Layout
11668 Table ! Multicolumns
11676 \begin_layout Subsubsection
11680 \begin_layout Standard
11681 To merge cells over multiple columns, select as many cells within a row
11682 as you want to merge and use either the table-toolbar button
11685 arg "inset-modify tabular multicolumn"
11690 Edit\SpecialChar menuseparator
11691 Table\SpecialChar menuseparator
11694 , or right click on the marked cells and choose
11698 in the context menu.
11701 \begin_layout Standard
11702 Multicolumns have there own cell settings.
11703 That means changing cell borders, cell alignment, and the width only affects
11705 Here is an example table with a multicolumn cell in the first row and one
11706 in the last row without the upper border:
11707 \begin_inset Separator parbreak
11713 \begin_layout Standard
11715 \begin_inset Tabular
11716 <lyxtabular version="3" rows="3" columns="4">
11717 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11718 <column alignment="center" valignment="top" width="0pt">
11719 <column alignment="center" valignment="middle">
11720 <column alignment="center" valignment="top" width="0in">
11721 <column alignment="center" valignment="top" width="0pt">
11723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11726 \begin_layout Plain Layout
11732 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11735 \begin_layout Plain Layout
11741 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11744 \begin_layout Plain Layout
11750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11753 \begin_layout Plain Layout
11761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11764 \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" usebox="none">
11791 \begin_layout Plain Layout
11797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11800 \begin_layout Plain Layout
11808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11829 \begin_layout Plain Layout
11835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11838 \begin_layout Plain Layout
11852 \begin_layout Subsubsection
11853 Multicolumn Calculations
11854 \begin_inset CommandInset label
11856 name "subsec:Multicolumn-Calculations"
11861 \begin_inset Index idx
11864 \begin_layout Plain Layout
11865 Multicolumns ! Calculations
11873 \begin_layout Standard
11875 supports multicolumns directly, but we have to take account of the cell
11876 width of the columns spanned by the multicolumn cell.
11879 \begin_layout Standard
11880 \begin_inset Float table
11886 \begin_layout Plain Layout
11887 \begin_inset Caption Standard
11889 \begin_layout Plain Layout
11890 \begin_inset CommandInset label
11892 name "tab:Table-with-centered"
11896 Table with centered multicolumn text above two columns that have exactly
11897 half the width of the multicolumn cell
11898 \begin_inset Argument 1
11901 \begin_layout Plain Layout
11902 Perfect multicolumn table
11915 \begin_layout Plain Layout
11917 \begin_inset Tabular
11918 <lyxtabular version="3" rows="3" columns="3">
11919 <features tabularvalignment="middle">
11920 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11921 <column alignment="center" valignment="middle">
11922 <column alignment="center" valignment="top">
11924 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11927 \begin_layout Plain Layout
11928 multiple lines multicolumn
11933 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11936 \begin_layout Plain Layout
11942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11945 \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" usebox="none">
11965 \begin_layout Plain Layout
11971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11974 \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" usebox="none">
11994 \begin_layout Plain Layout
12000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12003 \begin_layout Plain Layout
12022 \begin_layout Standard
12023 To create for example Table
12024 \begin_inset space ~
12028 \begin_inset CommandInset ref
12030 reference "tab:Table-with-centered"
12034 , mark the first two cells in the first row of a 3×3 table and right-click
12036 Now choose for this cell
12045 \begin_inset space \thinspace{}
12048 cm in the table dialog.
12049 The merged columns should have exactly half the width of the multicolumn
12050 cell, so that you would set a width of 1.25
12051 \begin_inset space \thinspace{}
12054 cm for the first column.
12055 The second column has then automatically a width of 1.25
12056 \begin_inset space \thinspace{}
12059 cm (multicolumn width - width of first column).
12060 This was done for Table
12061 \begin_inset space ~
12065 \begin_inset CommandInset ref
12067 reference "tab:Table-without-half"
12074 \begin_layout Standard
12075 \begin_inset Float table
12080 \begin_layout Plain Layout
12081 \begin_inset Caption Standard
12083 \begin_layout Plain Layout
12084 \begin_inset CommandInset label
12086 name "tab:Table-without-half"
12090 Table where the spanned table columns are not exactly half the width of
12091 the multicolumn cell
12092 \begin_inset Argument 1
12095 \begin_layout Plain Layout
12096 Imperfect multicolumn table
12109 \begin_layout Plain Layout
12111 \begin_inset Tabular
12112 <lyxtabular version="3" rows="3" columns="3">
12113 <features tabularvalignment="middle">
12114 <column alignment="center" valignment="top" width="1.25cm">
12115 <column alignment="center" valignment="top">
12116 <column alignment="center" valignment="top">
12118 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12121 \begin_layout Plain Layout
12122 multiple lines multicolumn
12127 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12130 \begin_layout Plain Layout
12136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12139 \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" usebox="none">
12159 \begin_layout Plain Layout
12165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12168 \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" usebox="none">
12188 \begin_layout Plain Layout
12194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12197 \begin_layout Plain Layout
12216 \begin_layout Standard
12217 You can see that the first column is not half the width of the multicolumn
12218 cell, it is a bit bigger.
12219 The reason is that the specified width of a cell
12220 \begin_inset Formula $W_{g}$
12223 is not its total width
12224 \begin_inset Formula $W_{\mathrm{tot}}$
12227 because a cell is always a bit larger than specified.
12229 \begin_inset space ~
12233 \begin_inset CommandInset ref
12235 reference "cha:Explanation-of-Equation"
12239 explains this in detail.
12242 \begin_layout Standard
12244 \begin_inset Formula $W_{g\,n}$
12247 which the user needs to set when
12251 columns are spanned can be calculated, so that each column has a total
12253 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12257 \begin_inset Formula
12259 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12267 \begin_layout Standard
12268 In our case we have
12269 \begin_inset Formula $n=2$
12273 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12276 cm and the default values for the lengths, so that equation
12277 \begin_inset CommandInset ref
12284 \begin_inset Formula
12286 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12294 \begin_layout Standard
12295 To enable calculations in \SpecialChar LaTeX
12296 , the \SpecialChar LaTeX
12301 must be loaded with the document preamble line
12302 \begin_inset Index idx
12305 \begin_layout Plain Layout
12315 \begin_layout Standard
12323 \begin_layout Standard
12325 does not allow you to calculate lengths in the
12329 field of the table dialog.
12330 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12333 Here is an overview about the arguments:
12336 \begin_layout Itemize
12341 creates cell with a fixed width, its text is vertically top-aligned
12344 \begin_layout Itemize
12349 creates cell with a fixed width, its text is vertically centered
12352 \begin_layout Itemize
12357 creates cell with a fixed width, its text is vertically bottom-aligned
12360 \begin_layout Standard
12361 By entering a \SpecialChar LaTeX
12362 -argument, all cell settings set in the table dialog are overwritt
12366 \begin_layout Standard
12367 \begin_inset Note Greyedout
12370 \begin_layout Plain Layout
12375 Due to a bug, \SpecialChar LyX
12376 shows the overwritten settings anyway.
12384 \begin_layout Standard
12385 As the text should be horizontally centered, the command
12392 You can now enter the following \SpecialChar LaTeX
12393 -argument for the first spanned column:
12396 \begin_layout Standard
12401 centering}m{1.25cm-6.2pt}
12404 \begin_layout Standard
12409 means, that the commands inside the braces are applied before the cell
12413 \begin_layout Standard
12414 Although we have chosen centered alignment for the text of the multicolumn
12415 cell, it is still left aligned.
12416 This is because \SpecialChar LyX
12417 only applies the alignment to single columns.
12418 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12422 \begin_layout Standard
12430 \begin_layout Subsection
12432 \begin_inset CommandInset label
12434 name "subsec:Multirows"
12439 \begin_inset Index idx
12442 \begin_layout Plain Layout
12449 \begin_inset Index idx
12452 \begin_layout Plain Layout
12461 \begin_layout Standard
12462 To merge cells over multiple rows, select as many cells within a column
12463 as you want to merge and use either the table-toolbar button
12466 arg "inset-modify tabular multirow"
12471 Edit\SpecialChar menuseparator
12472 Table\SpecialChar menuseparator
12475 , or right click on the marked cells and choose
12479 in the context menu.
12482 \begin_layout Standard
12483 Here is an example table with a multirow in the first column:
12484 \begin_inset Separator parbreak
12490 \begin_layout Standard
12492 \begin_inset Tabular
12493 <lyxtabular version="3" rows="3" columns="3">
12494 <features tabularvalignment="middle">
12495 <column alignment="center" valignment="top" width="0pt">
12496 <column alignment="center" valignment="top">
12497 <column alignment="center" valignment="top">
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" usebox="none">
12511 \begin_layout Plain Layout
12517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12520 \begin_layout Plain Layout
12528 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12531 \begin_layout Plain Layout
12537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12540 \begin_layout Plain Layout
12546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12549 \begin_layout Plain Layout
12557 <cell multirow="4" 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" usebox="none">
12569 \begin_layout Plain Layout
12575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12578 \begin_layout Plain Layout
12592 \begin_layout Standard
12593 The width of multirow cells is set by setting the width and alignment for
12599 shifts the content of the multirow up/down if the offset is positive/negative.
12602 \begin_layout Standard
12603 If the column of a multirow cell has no explicit width, the multirow cell
12604 inherits the alignment of the column.
12605 Otherwise it is by default left-aligned.
12606 To override the default, renew the command
12615 \begin_layout Standard
12627 \begin_layout Standard
12628 in the document preamble.
12629 Then all entries of multirow cells in the document are centered.
12630 If centering is only needed for several tables, you can renew the command
12631 in a \SpecialChar TeX
12632 Code box just before the table instead of the preamble.
12633 If the text should be right-aligned, replace
12646 To return to left-alignment
12655 \begin_layout Standard
12656 This is an example table with a right-aligned multirow cell that has a vertical
12658 \begin_inset space \thinspace{}
12662 \begin_inset space \thinspace{}
12666 \begin_inset Separator parbreak
12672 \begin_layout Standard
12678 \begin_layout Plain Layout
12692 \begin_inset Tabular
12693 <lyxtabular version="3" rows="4" columns="3">
12694 <features tabularvalignment="middle">
12695 <column alignment="center" valignment="top" width="3cm">
12696 <column alignment="center" valignment="top">
12697 <column alignment="center" valignment="top">
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" usebox="none">
12711 \begin_layout Plain Layout
12717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12720 \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" usebox="none">
12740 \begin_layout Plain Layout
12746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12749 \begin_layout Plain Layout
12757 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12760 \begin_layout Plain Layout
12766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12769 \begin_layout Plain Layout
12775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12778 \begin_layout Plain Layout
12786 <cell multirow="4" 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" usebox="none">
12798 \begin_layout Plain Layout
12804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12807 \begin_layout Plain Layout
12822 \begin_layout Plain Layout
12838 \begin_layout Standard
12839 To start a new line in a multirow you can use a forced line break (shortcut
12843 arg "newline-insert newline"
12846 ) but this will not respect the cell lines as demonstrated in this table:
12847 \begin_inset Separator parbreak
12853 \begin_layout Standard
12856 \begin_inset Tabular
12857 <lyxtabular version="3" rows="3" columns="2">
12858 <features tabularvalignment="middle">
12859 <column alignment="left" valignment="middle" width="2cm">
12860 <column alignment="center" valignment="top">
12862 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12865 \begin_layout Plain Layout
12867 \begin_inset Newline newline
12871 \begin_inset Newline newline
12879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12882 \begin_layout Plain Layout
12890 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12893 \begin_layout Plain Layout
12899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12902 \begin_layout Plain Layout
12910 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12913 \begin_layout Plain Layout
12919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12922 \begin_layout Plain Layout
12936 \begin_layout Standard
12937 Therefore be careful with forced line breaks.
12940 \begin_layout Subsection
12941 Cells with diagonal line(s)
12944 \begin_layout Standard
12945 To tell the reader what is meant by column and row headings in a table,
12946 it is helpful to split the first cell of the table by one or two diagonal
12948 This can be achieved by loading the \SpecialChar LaTeX
12954 \begin_inset Index idx
12957 \begin_layout Plain Layout
12959 -packages ! picinpar
12964 in the document preamble.
12965 The package provides the command
12971 that is inserted as \SpecialChar TeX
12972 Code and that can take 2 or 3
12973 \begin_inset space ~
12979 \begin_layout Standard
12984 diagbox[options]{lower left}{upper right}
12987 \begin_layout Standard
12992 diagbox[options]{lower left}{upper left}{upper right}
12995 \begin_layout Standard
12996 The first scheme divides the cell by a single diagonal line and the arguments
12997 are placed below and above this line.
12998 The second scheme divides the cell by 2
12999 \begin_inset space ~
13005 \begin_layout Standard
13009 \begin_layout Plain Layout
13019 \begin_inset Note Note
13022 \begin_layout Plain Layout
13023 The following section will only be displayed when the \SpecialChar LaTeX
13036 \begin_layout Standard
13037 Here is an example table where
13043 is used in the 2-argument scheme in the first cell:
13044 \begin_inset VSpace medskip
13050 \begin_layout Standard
13052 \begin_inset Tabular
13053 <lyxtabular version="3" rows="4" columns="4">
13054 <features tabularvalignment="middle">
13055 <column alignment="center" valignment="top">
13056 <column alignment="center" valignment="top">
13057 <column alignment="center" valignment="top">
13058 <column alignment="center" valignment="top">
13060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13063 \begin_layout Plain Layout
13067 \begin_layout Plain Layout
13080 \begin_layout Plain Layout
13091 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13115 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13124 \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" usebox="none">
13153 \begin_layout Plain Layout
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13162 \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" usebox="none">
13191 \begin_layout Plain Layout
13197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13200 \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" usebox="none">
13229 \begin_layout Plain Layout
13235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13238 \begin_layout Plain Layout
13250 \begin_inset VSpace medskip
13256 \begin_layout Standard
13257 The 3-argument scheme is for example useful for cross-tables of sports leagues
13259 \begin_inset Separator parbreak
13265 \begin_layout Standard
13268 \begin_inset Tabular
13269 <lyxtabular version="3" rows="4" columns="4">
13270 <features tabularvalignment="middle">
13271 <column alignment="center" valignment="top" width="0pt">
13272 <column alignment="center" valignment="top">
13273 <column alignment="center" valignment="top">
13274 <column alignment="center" valignment="top">
13276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13279 \begin_layout Plain Layout
13283 \begin_layout Plain Layout
13296 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13318 \begin_layout Plain Layout
13330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13333 \begin_layout Plain Layout
13339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13342 \begin_layout Plain Layout
13348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13351 \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" usebox="none">
13380 \begin_layout Plain Layout
13386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13389 \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" usebox="none">
13418 \begin_layout Plain Layout
13424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13427 \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" usebox="none">
13456 \begin_layout Plain Layout
13462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13465 \begin_layout Plain Layout
13479 \begin_layout Standard
13480 For larger cross-tables one might use split cells in 2 or every corner of
13481 the table like in this example:
13482 \begin_inset Separator parbreak
13488 \begin_layout Standard
13491 \begin_inset Tabular
13492 <lyxtabular version="3" rows="5" columns="5">
13493 <features tabularvalignment="middle">
13494 <column alignment="center" valignment="top" width="0pt">
13495 <column alignment="center" valignment="top">
13496 <column alignment="center" valignment="top">
13497 <column alignment="center" valignment="top">
13498 <column alignment="center" valignment="top">
13500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13503 \begin_layout Plain Layout
13507 \begin_layout Plain Layout
13520 \begin_layout Plain Layout
13531 \begin_layout Plain Layout
13542 \begin_layout Plain Layout
13554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13557 \begin_layout Plain Layout
13563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13566 \begin_layout Plain Layout
13572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13575 \begin_layout Plain Layout
13581 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13584 \begin_layout Plain Layout
13588 \begin_layout Plain Layout
13601 \begin_layout Plain Layout
13612 \begin_layout Plain Layout
13623 \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" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13673 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13676 \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" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13714 \begin_layout Plain Layout
13720 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13723 \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" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13761 \begin_layout Plain Layout
13767 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13770 \begin_layout Plain Layout
13778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13781 \begin_layout Plain Layout
13785 \begin_layout Plain Layout
13798 \begin_layout Plain Layout
13809 \begin_layout Plain Layout
13820 \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" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13853 \begin_layout Plain Layout
13859 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13862 \begin_layout Plain Layout
13866 \begin_layout Plain Layout
13879 \begin_layout Plain Layout
13890 \begin_layout Plain Layout
13901 \begin_layout Plain Layout
13921 \begin_layout Standard
13922 To rotate the diagonal lines, the command option
13947 and represent a point of a compass.
13952 is for example the south-west corner.
13953 Thus in the lower left cell of the above table the command
13956 \begin_layout Standard
13961 diagbox[dir=SW]{Team home}{Result}{Team away}
13964 \begin_layout Standard
13966 If no direction is given, it will be NW.
13969 \begin_layout Standard
13970 The necessary width of split cells is automatically calculated.
13971 Thus if you set a fixed column width smaller than the calculated one, the
13972 cell's content will protrude the cell borders:
13973 \begin_inset Separator parbreak
13979 \begin_layout Standard
13982 \begin_inset Tabular
13983 <lyxtabular version="3" rows="2" columns="2">
13984 <features tabularvalignment="middle">
13985 <column alignment="center" valignment="top" width="3cm">
13986 <column alignment="center" valignment="top">
13988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13991 \begin_layout Plain Layout
13995 \begin_layout Plain Layout
14008 \begin_layout Plain Layout
14019 \begin_layout Plain Layout
14031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14034 \begin_layout Plain Layout
14042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14045 \begin_layout Plain Layout
14051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14054 \begin_layout Plain Layout
14068 \begin_layout Standard
14069 If you need a certain width for columns with a split cell, use the command
14074 (replace '3cm' by the width you need).
14075 In the following table the width of the first column is set to 4
14076 \begin_inset space \thinspace{}
14087 \begin_inset space \thinspace{}
14091 \begin_inset space \thinspace{}
14096 tabcolsep is necessary because the overall width is the width for the text
14097 (in this case the 4
14098 \begin_inset space \thinspace{}
14101 cm) plus two times the separation of the text and the cell border.
14102 The calculation of the width cannot be done in the command option of
14108 so one needs to create a new length which can be used later.
14109 This is done with the \SpecialChar TeX
14113 \begin_layout Standard
14121 \begin_inset Newline newline
14133 \begin_layout Standard
14137 \begin_layout Plain Layout
14146 \begin_layout Plain Layout
14162 \begin_layout Standard
14163 To enable calculations in \SpecialChar LaTeX
14164 one needs to load the package
14169 \begin_inset Index idx
14172 \begin_layout Plain Layout
14179 in the document preamble.
14182 \begin_layout Standard
14183 In this table you can now use the command
14186 \begin_layout Standard
14196 \begin_layout Standard
14198 \begin_inset Separator parbreak
14204 \begin_layout Standard
14207 \begin_inset Tabular
14208 <lyxtabular version="3" rows="2" columns="2">
14209 <features tabularvalignment="middle">
14210 <column alignment="center" valignment="top" width="4cm">
14211 <column alignment="center" valignment="top">
14213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14216 \begin_layout Plain Layout
14220 \begin_layout Plain Layout
14235 \begin_layout Plain Layout
14246 \begin_layout Plain Layout
14258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14261 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14272 \begin_layout Plain Layout
14278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14281 \begin_layout Plain Layout
14295 \begin_layout Standard
14296 Note that the split cell needs to be the widest one in the column.
14297 Otherwise the length of the diagonal line cannot be calculated correctly
14298 like in this table:
14299 \begin_inset Separator parbreak
14305 \begin_layout Standard
14308 \begin_inset Tabular
14309 <lyxtabular version="3" rows="2" columns="2">
14310 <features tabularvalignment="middle">
14311 <column alignment="center" valignment="top" width="0pt">
14312 <column alignment="center" valignment="top">
14314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14317 \begin_layout Plain Layout
14321 \begin_layout Plain Layout
14334 \begin_layout Plain Layout
14345 \begin_layout Plain Layout
14357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14360 \begin_layout Plain Layout
14368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14371 \begin_layout Plain Layout
14377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14380 \begin_layout Plain Layout
14394 \begin_layout Standard
14395 In this case use the
14406 It is then not necessary to add 2
14408 tabcolsep because the cell width is now the width of the column.
14409 In this table a width of 3
14410 \begin_inset space \thinspace{}
14414 \begin_inset Separator parbreak
14420 \begin_layout Standard
14423 \begin_inset Tabular
14424 <lyxtabular version="3" rows="2" columns="2">
14425 <features tabularvalignment="middle">
14426 <column alignment="center" valignment="top" width="0pt">
14427 <column alignment="center" valignment="top">
14429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14432 \begin_layout Plain Layout
14436 \begin_layout Plain Layout
14440 diagbox[width=3cm]{
14449 \begin_layout Plain Layout
14460 \begin_layout Plain Layout
14472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14475 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14486 \begin_layout Plain Layout
14492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14495 \begin_layout Plain Layout
14509 \begin_layout Standard
14510 For multiple text lines in split cells one needs some extra height to fit
14511 the text to the cell.
14512 This can be achieved with the
14522 (replace '3cm' by the height you need).
14523 In the following table the command
14526 \begin_layout Standard
14531 diagbox[width=3cm,height=1.4cm]{A
14542 \begin_layout Standard
14543 is used in the first cell.
14552 creates hereby the line break.
14556 \begin_layout Plain Layout
14557 Breaking lines with
14561 is only possible when the column has a fixed width.
14567 \begin_inset Separator parbreak
14573 \begin_layout Standard
14576 \begin_inset Tabular
14577 <lyxtabular version="3" rows="2" columns="2">
14578 <features tabularvalignment="middle">
14579 <column alignment="center" valignment="top">
14580 <column alignment="center" valignment="top">
14582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14585 \begin_layout Plain Layout
14589 \begin_layout Plain Layout
14593 diagbox[width=3cm,height=1.4cm]{
14602 \begin_layout Plain Layout
14617 \begin_layout Plain Layout
14628 \begin_layout Plain Layout
14643 \begin_layout Plain Layout
14655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14658 \begin_layout Plain Layout
14666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14669 \begin_layout Plain Layout
14675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14678 \begin_layout Plain Layout
14692 \begin_layout Standard
14696 \begin_layout Plain Layout
14706 \begin_inset Note Note
14709 \begin_layout Plain Layout
14710 The following will be displayed when the \SpecialChar LaTeX
14723 \begin_layout Standard
14724 You need to install the \SpecialChar LaTeX
14729 to see the following part of this section in the output.
14732 \begin_layout Standard
14736 \begin_layout Plain Layout
14748 \begin_layout Standard
14749 For more info about the \SpecialChar LaTeX
14754 , see its documentation,
14755 \begin_inset CommandInset citation
14764 \begin_layout Section
14766 \begin_inset CommandInset label
14768 name "sec:Formal-Tables"
14773 \begin_inset Index idx
14776 \begin_layout Plain Layout
14785 \begin_layout Standard
14786 Tables are often typeset in books similar to Table
14787 \begin_inset space ~
14791 \begin_inset CommandInset ref
14793 reference "tab:Example-booktabs-table"
14798 This kind of tables is called
14799 \begin_inset Quotes eld
14807 \begin_inset Quotes erd
14811 To make a table a formal table use the option
14819 tab of the table dialog.
14822 \begin_layout Standard
14823 \begin_inset Float table
14829 \begin_layout Plain Layout
14830 \begin_inset Caption Standard
14832 \begin_layout Plain Layout
14833 \begin_inset CommandInset label
14835 name "tab:Example-booktabs-table"
14839 Example booktabs-table
14847 \begin_layout Plain Layout
14849 \begin_inset Tabular
14850 <lyxtabular version="3" rows="8" columns="4">
14851 <features booktabs="true" tabularvalignment="middle">
14852 <column alignment="center" valignment="top">
14853 <column alignment="center" valignment="top">
14854 <column alignment="center" valignment="top">
14855 <column alignment="center" valignment="top">
14857 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14860 \begin_layout Plain Layout
14866 <cell alignment="center" valignment="top" topline="true" usebox="none">
14869 \begin_layout Plain Layout
14871 \begin_inset space \thinspace{}
14879 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14882 \begin_layout Plain Layout
14884 \begin_inset space \thinspace{}
14892 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14895 \begin_layout Plain Layout
14903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14906 \begin_layout Plain Layout
14910 \begin_layout Plain Layout
14923 \begin_layout Plain Layout
14932 Detector thickness in µm
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
14955 <cell alignment="center" valignment="top" usebox="none">
14958 \begin_layout Plain Layout
14966 <cell alignment="center" valignment="top" topline="true" rightline="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
14993 <cell alignment="center" valignment="top" topline="true" usebox="none">
14996 \begin_layout Plain Layout
15003 <row topspace="default">
15004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15007 \begin_layout Plain Layout
15008 Spatial resolution in µm
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
15031 <cell alignment="center" valignment="top" usebox="none">
15034 \begin_layout Plain Layout
15041 <row topspace="default">
15042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15045 \begin_layout Plain Layout
15047 \begin_inset Formula $f_{\mathrm{max}}$
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
15073 <cell alignment="center" valignment="top" usebox="none">
15076 \begin_layout Plain Layout
15083 <row topspace="default">
15084 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15087 \begin_layout Plain Layout
15091 \begin_layout Plain Layout
15095 cmidrule[2pt](l{10pt}){1-1}
15100 LSF-spatial resolution
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
15123 <cell alignment="center" valignment="top" usebox="none">
15126 \begin_layout Plain Layout
15134 <cell alignment="center" valignment="top" rightline="true" 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
15161 <cell alignment="center" valignment="top" usebox="none">
15164 \begin_layout Plain Layout
15172 <cell alignment="center" valignment="top" bottomline="true" rightline="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
15199 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15202 \begin_layout Plain Layout
15221 \begin_layout Standard
15222 Spaces to table rows can be added using the
15226 tab of the table dialog as described in section
15227 \begin_inset space ~
15231 \begin_inset CommandInset ref
15233 reference "subsec:Row-Spacing"
15240 \begin_layout Standard
15241 Unlike normal tables, formal tables have no vertical table lines.
15242 The horizontal table lines can be set as for normal tables but they appear
15243 with different widths in the output:
15244 \begin_inset Newline newline
15247 The first and the last table line have a default width of 0.08
15248 \begin_inset space \thinspace{}
15251 em while the other lines have a default width of 0.05
15252 \begin_inset space \thinspace{}
15258 \begin_layout Standard
15259 The default widths can be changed with the following preamble lines
15262 \begin_layout Standard
15272 \begin_inset Newline newline
15284 \begin_layout Standard
15285 This example is for the first line, the so called
15290 If you want to change the width for the last line, replace
15299 To change the width for the other lines replace
15308 You can use all units listed in appendix
15309 \begin_inset space ~
15313 \begin_inset CommandInset ref
15315 reference "cha:Units-available-in"
15322 \begin_layout Standard
15323 Lines that do not span all table columns can be created by setting a table
15324 line for multicolumn cells.
15326 will then internally use the command
15332 to create this line.
15336 \begin_layout Standard
15341 cmidrule[height](trim){startcol-endcol}
15344 \begin_layout Standard
15351 are currently not supported by \SpecialChar LyX
15352 so you have to use \SpecialChar TeX
15361 s can manually be created by inserting the command as \SpecialChar TeX
15363 cell entry of the first cell of a row.
15364 The line is then drawn in the output above the current row.
15367 \begin_layout Standard
15368 The default for the optional
15373 \begin_inset space \thinspace{}
15381 is the number of the column where the line starts and
15385 the column number where the line ends.
15390 always needs to be specified, also when the line should span only one column.
15391 The optional parameter
15408 Using for example the parameter
15412 means that the line is trimmed from its left end by 2
15413 \begin_inset space \thinspace{}
15417 If you don't specify the
15421 the line is trimmed by the default of 0.5
15422 \begin_inset space \thinspace{}
15428 \begin_layout Standard
15429 \begin_inset VSpace bigskip
15433 \begin_inset space ~
15437 \begin_inset CommandInset ref
15439 reference "tab:Example-booktabs-table"
15443 was created using the commands
15446 \begin_layout Standard
15456 \begin_layout Standard
15457 at the beginning of the second row and
15460 \begin_layout Standard
15465 cmidrule[2pt](l{10pt}){1-1}
15468 \begin_layout Standard
15472 \begin_layout Standard
15473 \begin_inset VSpace bigskip
15479 \begin_layout Standard
15480 You might want to have overlapping
15487 \begin_inset space ~
15491 \begin_inset CommandInset ref
15493 reference "tab:Special-booktabs-table"
15498 This can be achieved with the \SpecialChar TeX
15502 \begin_layout Standard
15510 \begin_layout Standard
15511 The command that was used for the second row of Table
15512 \begin_inset space ~
15516 \begin_inset CommandInset ref
15518 reference "tab:Special-booktabs-table"
15525 \begin_layout Standard
15539 \begin_layout Standard
15540 The command for the sixth row is
15543 \begin_layout Standard
15555 \begin_layout Standard
15556 \begin_inset VSpace bigskip
15562 \begin_layout Standard
15563 If you are in any way not satisfied with the border line spacing, you can
15564 use the following command to produce lines that span over all table columns
15569 \begin_layout Standard
15574 specialrule{width}{space above}{space below}
15577 \begin_layout Standard
15578 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15585 \begin_inset CommandInset citation
15592 \begin_inset Index idx
15595 \begin_layout Plain Layout
15597 -packages ! booktabs
15605 \begin_layout Standard
15606 \begin_inset Float table
15612 \begin_layout Plain Layout
15613 \begin_inset Caption Standard
15615 \begin_layout Plain Layout
15616 \begin_inset CommandInset label
15618 name "tab:Special-booktabs-table"
15622 Special booktabs-table
15630 \begin_layout Plain Layout
15632 \begin_inset Tabular
15633 <lyxtabular version="3" rows="8" columns="4">
15634 <features booktabs="true" tabularvalignment="middle">
15635 <column alignment="center" valignment="top">
15636 <column alignment="center" valignment="top">
15637 <column alignment="center" valignment="top">
15638 <column alignment="center" valignment="top">
15640 <cell alignment="center" valignment="top" topline="true" usebox="none">
15643 \begin_layout Plain Layout
15649 <cell alignment="center" valignment="top" topline="true" usebox="none">
15652 \begin_layout Plain Layout
15654 \begin_inset space \thinspace{}
15662 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15665 \begin_layout Plain Layout
15667 \begin_inset space \thinspace{}
15675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15678 \begin_layout Plain Layout
15686 <cell alignment="center" valignment="top" usebox="none">
15689 \begin_layout Plain Layout
15693 \begin_layout Plain Layout
15706 \begin_layout Plain Layout
15719 \begin_layout Plain Layout
15732 \begin_layout Plain Layout
15741 Detector thickness in µm
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
15764 <cell alignment="center" valignment="top" usebox="none">
15767 \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
15802 <cell alignment="center" valignment="top" topline="true" usebox="none">
15805 \begin_layout Plain Layout
15812 <row topspace="default">
15813 <cell alignment="center" valignment="top" usebox="none">
15816 \begin_layout Plain Layout
15817 Spatial resolution in µm
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
15840 <cell alignment="center" valignment="top" usebox="none">
15843 \begin_layout Plain Layout
15850 <row topspace="default">
15851 <cell alignment="center" valignment="top" usebox="none">
15854 \begin_layout Plain Layout
15856 \begin_inset Formula $f_{\mathrm{max}}$
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
15882 <cell alignment="center" valignment="top" usebox="none">
15885 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" topline="true" usebox="none">
15896 \begin_layout Plain Layout
15900 \begin_layout Plain Layout
15913 \begin_layout Plain Layout
15922 LSF-spatial resolution
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
15945 <cell alignment="center" valignment="top" topline="true" usebox="none">
15948 \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
15983 <cell alignment="center" valignment="top" usebox="none">
15986 \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
16021 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16024 \begin_layout Plain Layout
16043 \begin_layout Section
16044 Vertical Table Alignment
16045 \begin_inset Index idx
16048 \begin_layout Plain Layout
16057 \begin_layout Standard
16058 To align tables vertically in a text line, the table must be inside a box.
16059 The box can then be vertically aligned as described in section
16060 \begin_inset space ~
16064 \begin_inset CommandInset ref
16066 reference "sec:Box-Dialog"
16073 \begin_layout Standard
16074 In the following example the tables are inside a minipage
16078 \begin_layout Plain Layout
16079 Minipages are described in section
16080 \begin_inset space ~
16084 \begin_inset CommandInset ref
16086 reference "sec:Minipages"
16095 box that has a width of 15
16096 \begin_inset space \thinspace{}
16102 \begin_layout Itemize
16104 \begin_inset Box Frameless
16114 height_special "totalheight"
16119 backgroundcolor "none"
16122 \begin_layout Plain Layout
16123 \begin_inset Tabular
16124 <lyxtabular version="3" rows="3" columns="3">
16125 <features tabularvalignment="middle">
16126 <column alignment="center" valignment="top">
16127 <column alignment="center" valignment="top">
16128 <column alignment="center" valignment="top">
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" usebox="none">
16142 \begin_layout Plain Layout
16148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16151 \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" usebox="none">
16171 \begin_layout Plain Layout
16177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16180 \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" usebox="none">
16200 \begin_layout Plain Layout
16206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Plain Layout
16229 \begin_layout Plain Layout
16241 \begin_inset Box Frameless
16251 height_special "totalheight"
16256 backgroundcolor "none"
16259 \begin_layout Plain Layout
16260 \begin_inset Tabular
16261 <lyxtabular version="3" rows="3" columns="3">
16262 <features tabularvalignment="middle">
16263 <column alignment="center" valignment="top">
16264 <column alignment="center" valignment="top">
16265 <column alignment="center" valignment="top">
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" usebox="none">
16279 \begin_layout Plain Layout
16285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16288 \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" usebox="none">
16308 \begin_layout Plain Layout
16314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16317 \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" usebox="none">
16337 \begin_layout Plain Layout
16343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16346 \begin_layout Plain Layout
16366 \begin_layout Plain Layout
16376 \begin_layout Itemize
16378 \begin_inset Box Frameless
16388 height_special "totalheight"
16393 backgroundcolor "none"
16396 \begin_layout Plain Layout
16397 \begin_inset Tabular
16398 <lyxtabular version="3" rows="3" columns="3">
16399 <features tabularvalignment="middle">
16400 <column alignment="center" valignment="top">
16401 <column alignment="center" valignment="top">
16402 <column alignment="center" valignment="top">
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" usebox="none">
16416 \begin_layout Plain Layout
16422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16425 \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" usebox="none">
16445 \begin_layout Plain Layout
16451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16454 \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" usebox="none">
16474 \begin_layout Plain Layout
16480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16483 \begin_layout Plain Layout
16502 \begin_layout Itemize
16504 \begin_inset Box Frameless
16514 height_special "totalheight"
16519 backgroundcolor "none"
16522 \begin_layout Plain Layout
16523 \begin_inset Tabular
16524 <lyxtabular version="3" rows="3" columns="3">
16525 <features tabularvalignment="middle">
16526 <column alignment="center" valignment="top">
16527 <column alignment="center" valignment="top">
16528 <column alignment="center" valignment="top">
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" usebox="none">
16542 \begin_layout Plain Layout
16548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16551 \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" usebox="none">
16571 \begin_layout Plain Layout
16577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16580 \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" usebox="none">
16600 \begin_layout Plain Layout
16606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16629 \begin_layout Plain Layout
16641 \begin_inset Box Frameless
16651 height_special "totalheight"
16656 backgroundcolor "none"
16659 \begin_layout Plain Layout
16660 \begin_inset Tabular
16661 <lyxtabular version="3" rows="3" columns="3">
16662 <features tabularvalignment="middle">
16663 <column alignment="center" valignment="top">
16664 <column alignment="center" valignment="top">
16665 <column alignment="center" valignment="top">
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" usebox="none">
16679 \begin_layout Plain Layout
16685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16688 \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" usebox="none">
16708 \begin_layout Plain Layout
16714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16717 \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" usebox="none">
16737 \begin_layout Plain Layout
16743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16746 \begin_layout Plain Layout
16766 \begin_layout Plain Layout
16776 \begin_layout Standard
16777 As you will see, the content of the first and last table row is not correctly
16779 To get this alignment, the minipage box must be set into a raisebox.
16783 \begin_layout Plain Layout
16784 Raiseboxes are described in section
16785 \begin_inset space ~
16789 \begin_inset CommandInset ref
16791 reference "subsec:Vertical-Alignment"
16800 In the example above the second table in the first item is aligned using
16801 the \SpecialChar TeX
16805 \begin_layout Standard
16815 \begin_layout Standard
16817 After the box the closing brace
16821 is inserted as \SpecialChar TeX
16823 For the second table in the last item the command
16826 \begin_layout Standard
16836 \begin_layout Standard
16840 \begin_layout Standard
16841 \begin_inset Note Greyedout
16844 \begin_layout Plain Layout
16849 The alignment of the table row content to the surrounding text line is
16851 The required value for the
16857 command for this alignment depends on the document font, the font size,
16858 and the table line thickness.
16866 \begin_layout Section
16868 \begin_inset CommandInset label
16870 name "sec:Colored-Tables"
16875 \begin_inset Index idx
16878 \begin_layout Plain Layout
16887 \begin_layout Subsection
16889 \begin_inset Index idx
16892 \begin_layout Plain Layout
16893 Table Color ! for Cells
16899 \begin_inset Index idx
16902 \begin_layout Plain Layout
16903 Color ! for Table Cells
16911 \begin_layout Standard
16912 \begin_inset Float table
16918 \begin_layout Plain Layout
16919 \begin_inset Caption Standard
16921 \begin_layout Plain Layout
16922 \begin_inset CommandInset label
16924 name "tab:Table-colored-without"
16928 Table colored without using the package
16933 \begin_inset Argument 1
16936 \begin_layout Plain Layout
16937 Table without colortbl
16950 \begin_layout Plain Layout
16952 \begin_inset Tabular
16953 <lyxtabular version="3" rows="3" columns="3">
16954 <features tabularvalignment="middle">
16955 <column alignment="center" valignment="top">
16956 <column alignment="center" valignment="top">
16957 <column alignment="center" valignment="top">
16959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16962 \begin_layout Plain Layout
16970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16973 \begin_layout Plain Layout
16981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16984 \begin_layout Plain Layout
16994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16997 \begin_layout Plain Layout
17005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17008 \begin_layout Plain Layout
17016 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17019 \begin_layout Plain Layout
17029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17032 \begin_layout Plain Layout
17040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17043 \begin_layout Plain Layout
17051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17054 \begin_layout Plain Layout
17075 \begin_layout Standard
17076 If you only need colored text, mark the cells and choose a color in the
17080 \begin_inset space ~
17085 dialog (toolbar button
17088 arg "dialog-show character"
17092 This was used to create Table
17093 \begin_inset space ~
17097 \begin_inset CommandInset ref
17099 reference "tab:Table-colored-without"
17104 In any other case you have to use the \SpecialChar LaTeX
17110 \begin_inset Index idx
17113 \begin_layout Plain Layout
17115 -packages ! colortbl
17123 \begin_layout Standard
17127 \begin_layout Plain Layout
17137 \begin_inset Note Note
17140 \begin_layout Plain Layout
17141 The following section part will only be displayed when the \SpecialChar LaTeX
17154 \begin_layout Standard
17155 To create colored tables,
17159 must be loaded in the preamble with the line
17162 \begin_layout Standard
17167 usepackage{colortbl}
17170 \begin_layout Standard
17171 The color of a column is adjusted with the command
17174 \begin_layout Standard
17179 columncolor{name of color}
17182 \begin_layout Standard
17188 More about the command
17192 is contained in section
17193 \begin_inset space ~
17197 \begin_inset CommandInset ref
17199 reference "subsec:Multicolumn-Calculations"
17206 \begin_layout Standard
17207 The following color names are predefined:
17210 \begin_layout Standard
17244 \begin_layout Standard
17245 \begin_inset VSpace medskip
17251 \begin_layout Standard
17252 If you add the options
17255 \begin_layout Standard
17258 usenames,dvipsnames
17261 \begin_layout Standard
17262 to the document class options in the document settings, you can additionally
17264 \begin_inset space ~
17268 These colors are listed in appendix
17269 \begin_inset space ~
17273 \begin_inset CommandInset ref
17275 reference "chap:List-of-dvips-colornames"
17280 One of these colors,
17284 , is used as example in Table
17285 \begin_inset space ~
17289 \begin_inset CommandInset ref
17291 reference "tab:Table-colored-using"
17298 \begin_layout Standard
17299 \begin_inset VSpace medskip
17305 \begin_layout Standard
17306 You can also define your own color with the command
17309 \begin_layout Standard
17314 definecolor{color name}{color model}{color values}
17317 \begin_layout Standard
17318 The color model can be
17321 \begin_layout Labeling
17322 \labelwidthstring 00.00.0000
17323 cmyk: cyan, magenta, yellow, black
17326 \begin_layout Labeling
17327 \labelwidthstring 00.00.0000
17328 rgb: red, green blue
17331 \begin_layout Labeling
17332 \labelwidthstring 00.00.0000
17336 \begin_layout Standard
17337 and the color values are comma separated numbers between 0 and 1 describing
17338 the factor for the corresponding color of the color model.
17341 \begin_layout Standard
17343 \begin_inset space \thinspace{}
17347 \begin_inset space \space{}
17354 " in the preamble with
17357 \begin_layout Standard
17362 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17365 \begin_layout Standard
17373 \begin_layout Standard
17378 definecolor{lightgray}{gray}{0.8}
17381 \begin_layout Standard
17382 \begin_inset VSpace medskip
17388 \begin_layout Standard
17389 Lines are colored with the command
17392 \begin_layout Standard
17397 rowcolor{name of color}
17400 \begin_layout Standard
17401 and cells are colored with the command
17404 \begin_layout Standard
17409 cellcolor{name of color}
17412 \begin_layout Standard
17413 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17417 \begin_layout Standard
17418 To color characters in the table, mark the cells and use the
17421 \begin_inset space ~
17427 If a cell contains \SpecialChar TeX
17428 Code mark only the characters, otherwise the colored
17430 Code will cause \SpecialChar LaTeX
17434 \begin_layout Standard
17435 \begin_inset Note Greyedout
17438 \begin_layout Plain Layout
17443 Not all DVI-viewers are able to display self-defined colors.
17451 \begin_layout Standard
17452 \begin_inset VSpace bigskip
17458 \begin_layout Standard
17460 \begin_inset space ~
17464 \begin_inset CommandInset ref
17466 reference "tab:Table-colored-using"
17470 do the following: The color of the first column should be
17478 \begin_layout Standard
17483 columncolor{darkgreen}
17488 \begin_layout Standard
17489 as \SpecialChar LaTeX
17490 -argument for this column.
17491 The first row should be light blue, therefore the \SpecialChar TeX
17495 \begin_layout Standard
17503 \begin_layout Standard
17504 is inserted to the first cell of this row.
17505 Note that this overwrites the column color for the first cell.
17506 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17511 \begin_layout Standard
17519 \begin_layout Standard
17520 The characters could now be colored using the menu
17522 Edit\SpecialChar menuseparator
17524 \begin_inset space ~
17532 \begin_layout Standard
17533 \begin_inset Float table
17539 \begin_layout Plain Layout
17540 \begin_inset Caption Standard
17542 \begin_layout Plain Layout
17543 \begin_inset CommandInset label
17545 name "tab:Table-colored-using"
17549 Table colored using the package
17554 \begin_inset Argument 1
17557 \begin_layout Plain Layout
17558 Table with colortbl
17571 \begin_layout Plain Layout
17573 \begin_inset Tabular
17574 <lyxtabular version="3" rows="3" columns="3">
17575 <features tabularvalignment="middle">
17576 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17577 <column alignment="center" valignment="top">
17578 <column alignment="center" valignment="top">
17580 <cell alignment="center" valignment="top" usebox="none">
17583 \begin_layout Plain Layout
17587 \begin_layout Plain Layout
17603 <cell alignment="center" valignment="top" usebox="none">
17606 \begin_layout Plain Layout
17614 <cell alignment="center" valignment="top" usebox="none">
17617 \begin_layout Plain Layout
17627 <cell alignment="center" valignment="top" usebox="none">
17630 \begin_layout Plain Layout
17638 <cell alignment="center" valignment="top" usebox="none">
17641 \begin_layout Plain Layout
17649 <cell alignment="center" valignment="top" usebox="none">
17652 \begin_layout Plain Layout
17662 <cell alignment="center" valignment="top" usebox="none">
17665 \begin_layout Plain Layout
17673 <cell alignment="center" valignment="top" usebox="none">
17676 \begin_layout Plain Layout
17684 <cell alignment="center" valignment="top" usebox="none">
17687 \begin_layout Plain Layout
17691 \begin_layout Plain Layout
17720 \begin_layout Standard
17724 \begin_layout Plain Layout
17734 \begin_inset Note Note
17737 \begin_layout Plain Layout
17738 The following will be displayed when the \SpecialChar LaTeX
17751 \begin_layout Standard
17752 You need to install the package
17756 to see the content of this section in the output.
17759 \begin_layout Standard
17763 \begin_layout Plain Layout
17775 \begin_layout Subsection
17777 \begin_inset Index idx
17780 \begin_layout Plain Layout
17781 Table Color ! for Rows
17787 \begin_inset Index idx
17790 \begin_layout Plain Layout
17791 Color ! for Table Rows
17799 \begin_layout Standard
17800 In case every second table row needs to be colored there is an alternative
17801 to the method described in the previous section: One loads the package
17807 \begin_inset Index idx
17810 \begin_layout Plain Layout
17816 \begin_layout Plain Layout
17830 in the document preamble with the command
17833 \begin_layout Standard
17838 usepackage[table]{xcolor}
17841 \begin_layout Standard
17846 automatically loads also the package
17851 \begin_inset Index idx
17854 \begin_layout Plain Layout
17856 -packages ! colortbl
17865 must be installed in your \SpecialChar LaTeX
17866 -distribution, otherwise you get \SpecialChar LaTeX
17870 \begin_layout Standard
17874 \begin_layout Plain Layout
17884 \begin_inset Note Note
17887 \begin_layout Plain Layout
17888 The following section part will only be displayed when the \SpecialChar LaTeX
17901 \begin_layout Standard
17902 The table rows are colored with the command
17905 \begin_layout Standard
17910 rowcolors[commands]{row number}{odd row color}{even row color}
17913 \begin_layout Standard
17914 that is either inserted in the document preamble or as \SpecialChar TeX
17916 first table to be colored.
17918 \begin_inset space ~
17921 number is the number of the first row which should be colored according
17922 to the odd row color.
17923 commands can be additional commands that are executed before every table
17925 So for example the command
17928 \begin_layout Standard
17933 rowcolors{1}{white}{lightgray}
17936 \begin_layout Standard
17937 leads to the coloring scheme of Table
17938 \begin_inset space ~
17942 \begin_inset CommandInset ref
17944 reference "tab:Table-rowcolors"
17952 \begin_layout Standard
17959 hline]{1}{lightgray}{cyan}
17962 \begin_layout Standard
17963 leads to the coloring scheme of Table
17964 \begin_inset space ~
17968 \begin_inset CommandInset ref
17970 reference "tab:Table-rowcolors-2"
17976 \begin_inset space ~
17980 \begin_inset space ~
17984 \begin_inset space ~
17988 \begin_inset space ~
17991 color are left empty, no color will be used so that the command
17994 \begin_layout Standard
18002 \begin_layout Standard
18003 deletes all colors.
18010 affects all tables following that command.
18013 \begin_layout Standard
18017 \begin_layout Plain Layout
18021 rowcolors{1}{white}{lightgray}
18029 \begin_layout Standard
18030 \begin_inset Float table
18036 \begin_layout Plain Layout
18037 \begin_inset Caption Standard
18039 \begin_layout Plain Layout
18040 \begin_inset CommandInset label
18042 name "tab:Table-rowcolors"
18046 Table where every second row is colored light gray.
18054 \begin_layout Plain Layout
18056 \begin_inset Tabular
18057 <lyxtabular version="3" rows="4" columns="3">
18058 <features tabularvalignment="middle">
18059 <column alignment="center" valignment="top">
18060 <column alignment="center" valignment="top" width="0pt">
18061 <column alignment="center" valignment="top" width="0pt">
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
18081 <cell alignment="center" valignment="top" usebox="none">
18084 \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
18110 <cell alignment="center" valignment="top" usebox="none">
18113 \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
18139 <cell alignment="center" valignment="top" usebox="none">
18142 \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
18168 <cell alignment="center" valignment="top" usebox="none">
18171 \begin_layout Plain Layout
18190 \begin_layout Standard
18194 \begin_layout Plain Layout
18200 hline]{1}{lightgray}{cyan}
18208 \begin_layout Standard
18209 \begin_inset Float table
18215 \begin_layout Plain Layout
18216 \begin_inset Caption Standard
18218 \begin_layout Plain Layout
18219 \begin_inset CommandInset label
18221 name "tab:Table-rowcolors-2"
18225 Table where every second row is colored cyan and at which there is a line
18234 \begin_layout Plain Layout
18236 \begin_inset Tabular
18237 <lyxtabular version="3" rows="4" columns="3">
18238 <features tabularvalignment="middle">
18239 <column alignment="center" valignment="top">
18240 <column alignment="center" valignment="top">
18241 <column alignment="center" valignment="top" width="0pt">
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
18261 <cell alignment="center" valignment="top" usebox="none">
18264 \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
18290 <cell alignment="center" valignment="top" usebox="none">
18293 \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
18319 <cell alignment="center" valignment="top" usebox="none">
18322 \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
18348 <cell alignment="center" valignment="top" usebox="none">
18351 \begin_layout Plain Layout
18370 \begin_layout Standard
18374 \begin_layout Plain Layout
18384 \begin_inset Note Note
18387 \begin_layout Plain Layout
18388 turns off the row coloring
18396 \begin_layout Standard
18400 \begin_layout Plain Layout
18410 \begin_inset Note Note
18413 \begin_layout Plain Layout
18414 The following will be displayed when the \SpecialChar LaTeX
18427 \begin_layout Standard
18428 You need to install the package
18432 to see the content of this section in the output.
18435 \begin_layout Standard
18439 \begin_layout Plain Layout
18451 \begin_layout Subsection
18453 \begin_inset Index idx
18456 \begin_layout Plain Layout
18457 Table Color ! for Lines
18463 \begin_inset Index idx
18466 \begin_layout Plain Layout
18467 Color ! for Table Lines
18475 \begin_layout Standard
18476 As described in section
18477 \begin_inset space ~
18481 \begin_inset CommandInset ref
18483 reference "subsec:Line-Thickness"
18487 , the line thickness for all lines in a table can be adjusted with the length
18496 \begin_inset space \thinspace{}
18499 pt for all tables of this section.
18503 \begin_layout Plain Layout
18509 arrayrulewidth}{1.5pt}
18517 \begin_layout Standard
18518 To color vertical lines for example with green, create the following column
18519 format in the document preamble, according to the description in section
18520 \begin_inset space ~
18524 \begin_inset CommandInset ref
18526 reference "subsec:Customized-Format"
18533 \begin_layout Standard
18538 newcolumntype{W}{!{
18545 \begin_layout Standard
18547 \begin_inset space ~
18551 \begin_inset CommandInset ref
18553 reference "tab:Table-with-vertical-colored"
18557 the \SpecialChar LaTeX
18562 was used for the last column and
18566 for the other columns.
18569 \begin_layout Standard
18570 If you want to have several colors, define more column formats.
18573 \begin_layout Standard
18574 \begin_inset Float table
18580 \begin_layout Plain Layout
18581 \begin_inset Caption Standard
18583 \begin_layout Plain Layout
18584 \begin_inset CommandInset label
18586 name "tab:Table-with-vertical-colored"
18590 Table with colored vertical lines
18598 \begin_layout Plain Layout
18600 \begin_inset Tabular
18601 <lyxtabular version="3" rows="3" columns="3">
18602 <features tabularvalignment="middle">
18603 <column alignment="center" valignment="top" special="Wc">
18604 <column alignment="center" valignment="top" special="Wc">
18605 <column alignment="center" valignment="top" special="WcW">
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
18625 <cell alignment="center" valignment="top" topline="true" usebox="none">
18628 \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
18654 <cell alignment="center" valignment="top" topline="true" usebox="none">
18657 \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
18683 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18686 \begin_layout Plain Layout
18705 \begin_layout Standard
18706 \begin_inset VSpace bigskip
18709 To color horizontal lines for example with red, as in Table
18710 \begin_inset space ~
18714 \begin_inset CommandInset ref
18716 reference "tab:Table-with-horizontal-colored"
18720 , insert these commands in \SpecialChar TeX
18721 Code before the table or table float:
18724 \begin_layout Standard
18734 \begin_inset Newline newline
18742 \begin_inset Newline newline
18746 \begin_inset Phantom HPhantom
18749 \begin_layout Plain Layout
18752 \begin_inset space ~
18762 arrayrulecolor{red}
18766 arrayrulecolor{black}}
18769 \begin_layout Standard
18773 \begin_layout Plain Layout
18784 \begin_layout Plain Layout
18793 \begin_layout Plain Layout
18797 arrayrulecolor{red}
18801 arrayrulecolor{black}}
18807 \begin_inset Float table
18813 \begin_layout Plain Layout
18814 \begin_inset Caption Standard
18816 \begin_layout Plain Layout
18817 \begin_inset CommandInset label
18819 name "tab:Table-with-horizontal-colored"
18823 Table with colored horizontal lines
18831 \begin_layout Plain Layout
18833 \begin_inset Tabular
18834 <lyxtabular version="3" rows="3" columns="3">
18835 <features tabularvalignment="middle">
18836 <column alignment="center" valignment="top">
18837 <column alignment="center" valignment="top">
18838 <column alignment="center" valignment="top">
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" usebox="none">
18852 \begin_layout Plain Layout
18858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18861 \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" usebox="none">
18881 \begin_layout Plain Layout
18887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18890 \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" usebox="none">
18910 \begin_layout Plain Layout
18916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18919 \begin_layout Plain Layout
18938 \begin_layout Standard
18939 To return to the default line color black, insert this command in \SpecialChar TeX
18941 after the table or table float:
18944 \begin_layout Standard
18956 \begin_layout Standard
18958 \begin_inset space ~
18962 \begin_inset CommandInset ref
18964 reference "tab:Table-with-colored"
18968 is an example with colored vertical and horizontal lines.
18971 \begin_layout Standard
18972 \begin_inset Float table
18978 \begin_layout Plain Layout
18979 \begin_inset Caption Standard
18981 \begin_layout Plain Layout
18982 \begin_inset CommandInset label
18984 name "tab:Table-with-colored"
18988 Table with colored lines
18996 \begin_layout Plain Layout
18998 \begin_inset Tabular
18999 <lyxtabular version="3" rows="3" columns="3">
19000 <features tabularvalignment="middle">
19001 <column alignment="center" valignment="top" special="Wc">
19002 <column alignment="center" valignment="top" special="Wc">
19003 <column alignment="center" valignment="top" special="WcW">
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
19023 <cell alignment="center" valignment="top" topline="true" usebox="none">
19026 \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
19052 <cell alignment="center" valignment="top" topline="true" usebox="none">
19055 \begin_layout Plain Layout
19062 <row topspace="default">
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
19081 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19084 \begin_layout Plain Layout
19103 \begin_layout Standard
19107 \begin_layout Plain Layout
19123 \begin_layout Standard
19127 \begin_layout Plain Layout
19133 arrayrulewidth}{0.4pt}
19141 \begin_layout Section
19142 Rotated Table Cells
19143 \begin_inset CommandInset label
19145 name "sec:Rotated-Table-Cells"
19150 \begin_inset Index idx
19153 \begin_layout Plain Layout
19154 Table ! Rotated Cells
19160 \begin_inset Index idx
19163 \begin_layout Plain Layout
19172 \begin_layout Standard
19173 \begin_inset Note Greyedout
19176 \begin_layout Plain Layout
19181 Not all DVI-viewers are able to display rotations.
19189 \begin_layout Standard
19191 \begin_inset space ~
19195 \begin_inset CommandInset ref
19197 reference "tab:Table-with-rotated-multi"
19201 is an example where 3
19202 \begin_inset space ~
19205 cells were rotated by 45
19206 \begin_inset space \thinspace{}
19212 \begin_layout Standard
19213 \begin_inset Float table
19219 \begin_layout Plain Layout
19220 \begin_inset Caption Standard
19222 \begin_layout Plain Layout
19223 \begin_inset CommandInset label
19225 name "tab:Table-with-rotated"
19229 Table with rotated cells in the first row.
19237 \begin_layout Plain Layout
19240 \begin_inset Tabular
19241 <lyxtabular version="3" rows="2" columns="3">
19242 <features tabularvalignment="middle">
19243 <column alignment="center" valignment="top" width="0pt">
19244 <column alignment="center" valignment="top" width="0pt">
19245 <column alignment="center" valignment="top" width="0pt">
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
19265 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19268 \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" usebox="none">
19288 \begin_layout Plain Layout
19294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19297 \begin_layout Plain Layout
19316 \begin_layout Standard
19317 \begin_inset Note Greyedout
19320 \begin_layout Plain Layout
19325 Line breaks (shortcut
19328 arg "newline-insert newline"
19331 ) are not allowed in rotated cells.
19339 \begin_layout Standard
19340 If you want to rotate table cells containing line breaks, you have to put
19341 the cell content into a minipage or a parbox.
19345 \begin_layout Plain Layout
19346 For more about these boxes see sec.
19347 \begin_inset space \thinspace{}
19351 \begin_inset CommandInset ref
19353 reference "sec:Minipages"
19358 \begin_inset CommandInset ref
19360 reference "sec:Parboxes"
19369 If you rotate this cell by 90
19370 \begin_inset space \thinspace{}
19373 ° the width of the box is the height of the cell.
19375 \begin_inset space ~
19379 \begin_inset CommandInset ref
19381 reference "tab:Table-with-rotated-multi"
19385 is an example for a rotated multiline cell where the box width was set
19387 \begin_inset space \thinspace{}
19393 \begin_layout Standard
19394 \begin_inset Float table
19399 \begin_layout Plain Layout
19400 \begin_inset Caption Standard
19402 \begin_layout Plain Layout
19403 \begin_inset CommandInset label
19405 name "tab:Table-with-rotated-multi"
19409 Table with rotated multiline cell.
19417 \begin_layout Plain Layout
19420 \begin_inset Tabular
19421 <lyxtabular version="3" rows="2" columns="3">
19422 <features tabularvalignment="middle">
19423 <column alignment="center" valignment="top">
19424 <column alignment="center" valignment="top" width="0pt">
19425 <column alignment="center" valignment="top">
19427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19430 \begin_layout Plain Layout
19436 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19439 \begin_layout Plain Layout
19440 \begin_inset Box Frameless
19450 height_special "totalheight"
19455 backgroundcolor "none"
19458 \begin_layout Plain Layout
19460 \begin_inset Newline newline
19473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19476 \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" usebox="none">
19496 \begin_layout Plain Layout
19502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19505 \begin_layout Plain Layout
19524 \begin_layout Section
19525 Table Width Calculation
19526 \begin_inset CommandInset label
19528 name "sec:Table-Width-Calculation"
19535 \begin_layout Standard
19536 For wide tables it is sometimes difficult to assure that the table does
19537 not protrude over the page margin.
19538 Setting a fixed width for every column of the table is the solution, but
19539 what amount of space is needed for each column?
19542 \begin_layout Standard
19544 \begin_inset Formula $W_{\mathrm{table}}$
19547 can be calculated: Every column has the width of the specified column width
19549 \begin_inset Formula $W_{\mathrm{column}}$
19552 (that the content of the column can consume) plus two times the separation
19553 between the column content and the column border (\SpecialChar LaTeX
19561 \begin_inset space \thinspace{}
19564 pt) plus the width of a border line (\SpecialChar LaTeX
19572 \begin_inset space \thinspace{}
19576 \begin_inset Formula $n$
19580 \begin_inset space ~
19583 columns have the same width, the table width is
19584 \begin_inset Formula
19586 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19594 \begin_layout Standard
19595 The available width for a table is the space between the page margins or
19596 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19604 If all table columns should have the same width and
19605 \begin_inset Formula $W_{\mathrm{table}}$
19609 \begin_inset space \thinspace{}
19615 \begin_inset Formula $W_{\mathrm{column}}$
19618 can easily be calculated.
19621 \begin_layout Standard
19622 To be able to perform calculations you need to load the \SpecialChar LaTeX
19628 \begin_inset Index idx
19631 \begin_layout Plain Layout
19638 in the document preamble.
19639 To set the width in the table dialog you have to use the field
19645 The command scheme for this field is the same that is explained in section
19646 \begin_inset space ~
19650 \begin_inset CommandInset ref
19652 reference "subsec:Multicolumn-Calculations"
19658 \begin_inset space \thinspace{}
19661 columns with an uniform width and centered text, enter there for each column
19665 \begin_layout Standard
19672 columnwidth-62.4pt)/5}
19675 \begin_layout Standard
19677 \begin_inset space \thinspace{}
19680 columns where 2 should have 0.75
19681 \begin_inset space ~
19684 times the width than the 3 others, the calculation is
19685 \begin_inset Formula
19687 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19688 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19689 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19690 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19698 \begin_layout Standard
19699 In the table therefore the command
19702 \begin_layout Standard
19709 columnwidth-62.4pt)/
19714 \begin_layout Standard
19715 is used for the wider columns and
19718 \begin_layout Standard
19725 columnwidth-62.4pt)/
19732 \begin_layout Standard
19733 for the smaller ones:
19736 \begin_layout Standard
19737 \begin_inset Tabular
19738 <lyxtabular version="3" rows="2" columns="5">
19739 <features tabularvalignment="middle">
19740 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19741 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19742 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19743 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19744 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
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" usebox="none">
19776 \begin_layout Plain Layout
19782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19785 \begin_layout Plain Layout
19793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19796 \begin_layout Plain Layout
19797 111111 1111111 111111 111111111 11111 11111 1111
19802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19805 \begin_layout Plain Layout
19811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19814 \begin_layout Plain Layout
19815 2222 22222 222222 222222222 2222222 22 22222
19820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19823 \begin_layout Plain Layout
19829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19832 \begin_layout Plain Layout
19833 333333 333333 333333 33333 3333333 333
19846 \begin_layout Section
19847 Table Customization
19848 \begin_inset Index idx
19851 \begin_layout Plain Layout
19852 Table Customization
19858 \begin_inset Index idx
19861 \begin_layout Plain Layout
19862 Table ! Customization
19870 \begin_layout Subsection
19872 \begin_inset CommandInset label
19874 name "subsec:Row-Spacing"
19879 \begin_inset Index idx
19882 \begin_layout Plain Layout
19883 Table Customization ! Row Spacing
19891 \begin_layout Standard
19892 You can add vertical space to table rows in the
19896 tab of the table dialog.
19897 You find there three possibilities:
19900 \begin_layout Description
19902 \begin_inset space ~
19906 \begin_inset space ~
19909 row will add space above the characters of the table row.
19910 If the table is a formal table
19914 \begin_layout Plain Layout
19915 Formal tables are explained in section
19916 \begin_inset space ~
19920 \begin_inset CommandInset ref
19922 reference "sec:Formal-Tables"
19932 will insert as default 0.5
19933 \begin_inset space \thinspace{}
19937 For normal tables the inserted space will unfortunately destroy the vertical
19938 table lines as in the following table:
19939 \begin_inset VSpace medskip
19943 \begin_inset Newline newline
19947 \begin_inset space \hspace*{}
19952 \begin_inset space \hfill{}
19956 \begin_inset Tabular
19957 <lyxtabular version="3" rows="3" columns="1">
19958 <features tabularvalignment="middle">
19959 <column alignment="center" valignment="top">
19961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19964 \begin_layout Plain Layout
19971 <row topspace="3mm">
19972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19975 \begin_layout Plain Layout
19977 \begin_inset space \thinspace{}
19980 mm space top of row
19987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19990 \begin_layout Plain Layout
20002 \begin_inset space \hfill{}
20006 \begin_inset space \hspace*{}
20011 \begin_inset VSpace medskip
20015 \begin_inset Newline newline
20018 So inserting space in the top of row for normal tables is only useful when
20019 you don't have vertical lines.
20022 \begin_layout Description
20024 \begin_inset space ~
20028 \begin_inset space ~
20031 row will add space below the characters of the table row.
20032 If the table is a formal table \SpecialChar LyX
20033 will insert as default 0.5
20034 \begin_inset space \thinspace{}
20037 em space, for normal tables the default size is 2
20038 \begin_inset space \thinspace{}
20044 \begin_layout Description
20046 \begin_inset space ~
20049 rows adds space between the current and the following row.
20050 If the table is a formal table \SpecialChar LyX
20051 will insert as default 0.5
20052 \begin_inset space \thinspace{}
20056 For normal tables the inserted space will unfortunately destroy the vertical
20057 table lines as in the following table:
20058 \begin_inset VSpace medskip
20062 \begin_inset Newline newline
20066 \begin_inset space \hspace*{}
20071 \begin_inset space \hfill{}
20075 \begin_inset Tabular
20076 <lyxtabular version="3" rows="3" columns="1">
20077 <features tabularvalignment="middle">
20078 <column alignment="center" valignment="top">
20080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20083 \begin_layout Plain Layout
20090 <row interlinespace="3mm">
20091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20094 \begin_layout Plain Layout
20095 \begin_inset Formula $\downarrow$
20099 \begin_inset space \thinspace{}
20102 mm space between row
20103 \begin_inset Formula $\downarrow$
20113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20116 \begin_layout Plain Layout
20117 \begin_inset Formula $\uparrow$
20121 \begin_inset space \thinspace{}
20124 mm space between row
20125 \begin_inset Formula $\uparrow$
20139 \begin_inset space \hfill{}
20143 \begin_inset space \hspace*{}
20148 \begin_inset VSpace medskip
20152 \begin_inset Newline newline
20155 So inserting space between rows for normal tables is only useful when you
20156 don't have vertical lines.
20159 \begin_layout Standard
20160 \begin_inset VSpace bigskip
20163 When you want to add extra height to all cells of all tables, you can do
20164 this with the following preamble lines:
20167 \begin_layout Standard
20172 @ifundefined{extrarowheight}
20173 \begin_inset Newline newline
20177 \begin_inset Phantom HPhantom
20180 \begin_layout Plain Layout
20183 \begin_inset space ~
20193 usepackage{array}}{}
20194 \begin_inset Newline newline
20201 extrarowheight}{height}
20204 \begin_layout Standard
20205 But this has the disadvantage that the cell texts are no longer exactly
20206 vertically centered.
20211 will be loaded automatically by \SpecialChar LyX
20212 when you use self defined table formats.
20213 To avoid that it being loaded twice the command
20219 is used in the above command.)
20222 \begin_layout Standard
20223 If you are using font sizes larger than the normal size, the table borders
20224 are often too close to the letters.
20225 This can be corrected by inserting the command
20231 in \SpecialChar TeX
20232 Code at the beginning of a table row.
20234 \begin_inset space ~
20238 \begin_inset CommandInset ref
20240 reference "tab:Vertical-alignment-of"
20244 illustrates the effect.
20247 \begin_layout Standard
20249 \begin_inset Float table
20255 \begin_layout Plain Layout
20256 \begin_inset Caption Standard
20258 \begin_layout Plain Layout
20259 \begin_inset CommandInset label
20261 name "tab:Vertical-alignment-of"
20265 Vertical alignment of text with large font sizes.
20273 \begin_layout Plain Layout
20274 \begin_inset space \hfill{}
20278 \begin_inset Float table
20283 \begin_layout Plain Layout
20284 \begin_inset Caption Standard
20286 \begin_layout Plain Layout
20295 \begin_layout Plain Layout
20298 \begin_inset Tabular
20299 <lyxtabular version="3" rows="6" columns="1">
20300 <features tabularvalignment="middle">
20301 <column alignment="left" valignment="top">
20303 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20306 \begin_layout Plain Layout
20314 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20317 \begin_layout Plain Layout
20327 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20330 \begin_layout Plain Layout
20340 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20343 \begin_layout Plain Layout
20353 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20356 \begin_layout Plain Layout
20366 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20369 \begin_layout Plain Layout
20388 \begin_inset space \hfill{}
20392 \begin_inset Float table
20397 \begin_layout Plain Layout
20398 \begin_inset Caption Standard
20400 \begin_layout Plain Layout
20401 Table using the command
20415 \begin_layout Plain Layout
20418 \begin_inset Tabular
20419 <lyxtabular version="3" rows="6" columns="1">
20420 <features tabularvalignment="middle">
20421 <column alignment="left" valignment="top">
20423 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20426 \begin_layout Plain Layout
20434 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20437 \begin_layout Plain Layout
20443 \begin_layout Plain Layout
20459 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20462 \begin_layout Plain Layout
20468 \begin_layout Plain Layout
20484 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20487 \begin_layout Plain Layout
20493 \begin_layout Plain Layout
20509 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20512 \begin_layout Plain Layout
20518 \begin_layout Plain Layout
20534 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20537 \begin_layout Plain Layout
20543 \begin_layout Plain Layout
20570 \begin_inset space \hfill{}
20581 \begin_layout Subsection
20582 Special Cell Alignment
20583 \begin_inset CommandInset label
20585 name "subsec:Special-Cell-Alignment"
20590 \begin_inset Index idx
20593 \begin_layout Plain Layout
20594 Table Customization ! Special Cell Alignment
20602 \begin_layout Standard
20603 Sometimes it looks better when the cell entries of a column are aligned
20604 with a special character, e.
20605 \begin_inset space \thinspace{}
20609 \begin_inset space \space{}
20612 with the decimal separator as in Table
20613 \begin_inset space ~
20617 \begin_inset CommandInset ref
20619 reference "tab:Table-cells-align"
20624 This alignment is achieved by setting the cursor into the column and then
20625 either pressing the toolbar button
20628 arg "inset-modify tabular align-decimal"
20631 or setting the alignment in the table settings to
20634 \begin_inset space ~
20638 \begin_inset space ~
20644 The alignment character can be a character of your choice and is specified
20645 in the table settings.
20648 \begin_layout Standard
20649 \begin_inset Float table
20655 \begin_layout Plain Layout
20656 \begin_inset Caption Standard
20658 \begin_layout Plain Layout
20659 \begin_inset CommandInset label
20661 name "tab:Table-cells-align"
20665 Table cells of a column aligned with the decimal separator.
20673 \begin_layout Plain Layout
20675 \begin_inset Tabular
20676 <lyxtabular version="3" rows="4" columns="1">
20677 <features booktabs="true" tabularvalignment="middle">
20678 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20680 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20683 \begin_layout Plain Layout
20691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20694 \begin_layout Plain Layout
20702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20705 \begin_layout Plain Layout
20713 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20716 \begin_layout Plain Layout
20735 \begin_layout Standard
20736 \begin_inset Float table
20742 \begin_layout Plain Layout
20743 \begin_inset Caption Standard
20745 \begin_layout Plain Layout
20746 \begin_inset CommandInset label
20748 name "tab:Table-align-operator"
20752 Table cells of a column aligned with the operators.
20760 \begin_layout Plain Layout
20762 \begin_inset Tabular
20763 <lyxtabular version="3" rows="4" columns="2">
20764 <features booktabs="true" tabularvalignment="middle">
20765 <column alignment="right" valignment="top" width="0pt">
20766 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20768 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20771 \begin_layout Plain Layout
20777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20780 \begin_layout Plain Layout
20788 <cell alignment="center" valignment="top" usebox="none">
20791 \begin_layout Plain Layout
20792 \begin_inset Formula $12\,+$
20800 <cell alignment="center" valignment="top" usebox="none">
20803 \begin_layout Plain Layout
20804 \begin_inset Formula $\,6$
20814 <cell alignment="center" valignment="top" usebox="none">
20817 \begin_layout Plain Layout
20818 \begin_inset Formula $0\,-$
20826 <cell alignment="center" valignment="top" usebox="none">
20829 \begin_layout Plain Layout
20830 \begin_inset Formula $\,68$
20840 <cell alignment="center" valignment="top" usebox="none">
20843 \begin_layout Plain Layout
20844 \begin_inset Formula $-123\,/$
20852 <cell alignment="center" valignment="top" usebox="none">
20855 \begin_layout Plain Layout
20856 \begin_inset Formula $\,0$
20877 \begin_layout Standard
20878 For alignments at characters in formulas this method does not work because
20879 the field to specify the alignment character does not allow formulas.
20880 In this case one need to use the method from Table
20881 \begin_inset space ~
20885 \begin_inset CommandInset ref
20887 reference "tab:Table-align-operator"
20892 This table was created with a 4×2 table.
20893 The heading is a centered multicolumn.
20894 The first column is right-aligned and contains the first part including
20896 The second column is left aligned and contains the rest.
20897 A small space was added at the beginning of each cell of the second column
20898 to get the space that is usually around operators.
20899 To omit the space that is normally between two table columns, the following
20901 -argument was used for the second column:
20904 \begin_layout Standard
20910 \begin_layout Standard
20912 \begin_inset space ~
20916 \begin_inset CommandInset ref
20918 reference "tab:Several-table-cell"
20922 shows some example alignments.
20923 For the alignment with the relation sign, a small space was added like
20924 for the second column of Table
20925 \begin_inset space ~
20929 \begin_inset CommandInset ref
20931 reference "tab:Table-align-operator"
20938 \begin_layout Standard
20939 \begin_inset Float table
20945 \begin_layout Plain Layout
20946 \begin_inset Caption Standard
20948 \begin_layout Plain Layout
20949 \begin_inset CommandInset label
20951 name "tab:Several-table-cell"
20955 Several table cell alignments.
20963 \begin_layout Plain Layout
20965 \begin_inset Tabular
20966 <lyxtabular version="3" rows="4" columns="6">
20967 <features tabularvalignment="middle">
20968 <column alignment="right" valignment="top">
20969 <column alignment="left" valignment="top" special="@{}l">
20970 <column alignment="right" valignment="top">
20971 <column alignment="left" valignment="top" special="@{}l">
20972 <column alignment="right" valignment="top">
20973 <column alignment="left" valignment="top" special="@{}l">
20975 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20978 \begin_layout Plain Layout
20984 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20987 \begin_layout Plain Layout
20993 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20996 \begin_layout Plain Layout
21002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21005 \begin_layout Plain Layout
21011 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21014 \begin_layout Plain Layout
21020 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21023 \begin_layout Plain Layout
21031 <cell alignment="center" valignment="top" usebox="none">
21034 \begin_layout Plain Layout
21040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21043 \begin_layout Plain Layout
21045 \begin_inset space \thinspace{}
21053 <cell alignment="center" valignment="top" usebox="none">
21056 \begin_layout Plain Layout
21057 \begin_inset Formula $10\cdot$
21065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21068 \begin_layout Plain Layout
21069 \begin_inset Formula $10^{\mbox{-}17}$
21077 <cell alignment="center" valignment="top" usebox="none">
21080 \begin_layout Plain Layout
21081 \begin_inset Formula $\Gamma(t)\propto$
21089 <cell alignment="center" valignment="top" usebox="none">
21092 \begin_layout Plain Layout
21093 \begin_inset Formula $\:\Upsilon(t)$
21103 <cell alignment="center" valignment="top" usebox="none">
21106 \begin_layout Plain Layout
21112 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21115 \begin_layout Plain Layout
21117 \begin_inset space \thinspace{}
21125 <cell alignment="center" valignment="top" usebox="none">
21128 \begin_layout Plain Layout
21129 \begin_inset Formula $5.78\cdot$
21137 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21140 \begin_layout Plain Layout
21141 \begin_inset Formula $10^{7}$
21149 <cell alignment="center" valignment="top" usebox="none">
21152 \begin_layout Plain Layout
21153 \begin_inset Formula $A\ne$
21161 <cell alignment="center" valignment="top" usebox="none">
21164 \begin_layout Plain Layout
21165 \begin_inset Formula $\:B_{\mathrm{red}}$
21175 <cell alignment="center" valignment="top" usebox="none">
21178 \begin_layout Plain Layout
21184 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21187 \begin_layout Plain Layout
21189 \begin_inset space \thinspace{}
21197 <cell alignment="center" valignment="top" usebox="none">
21200 \begin_layout Plain Layout
21202 \begin_inset Formula $33.5\cdot$
21210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21213 \begin_layout Plain Layout
21214 \begin_inset Formula $10^{4}$
21222 <cell alignment="center" valignment="top" usebox="none">
21225 \begin_layout Plain Layout
21226 \begin_inset Formula $\sin(\alpha)\ge$
21234 <cell alignment="center" valignment="top" usebox="none">
21237 \begin_layout Plain Layout
21238 \begin_inset Formula $\:\sin(\beta)$
21259 \begin_layout Subsection
21260 Customized Cell/Column Format
21261 \begin_inset CommandInset label
21263 name "subsec:Customized-Format"
21268 \begin_inset Index idx
21271 \begin_layout Plain Layout
21272 Table Customization ! Cell/Column Format
21280 \begin_layout Standard
21281 Calculating the required width for normal columns as described in section
21282 \begin_inset space ~
21286 \begin_inset CommandInset ref
21288 reference "sec:Table-Width-Calculation"
21292 or for spanned columns as described in section
21293 \begin_inset space ~
21297 \begin_inset CommandInset ref
21299 reference "subsec:Multicolumn-Calculations"
21303 is very annoying if you have several tables where a calculation is necessary.
21304 To make life easier, you can define a cell/column format in the preamble,
21305 that can be used in all tables of the document.
21306 The format is defined with the command
21309 \begin_layout Standard
21314 newcolumntype{name of format}[number of arguments]{commands}
21317 \begin_layout Standard
21318 The format name may only consist of one letter.
21343 are predefined and cannot be used.
21344 But all letters are allowed as capitals.
21347 \begin_layout Standard
21348 \begin_inset VSpace medskip
21354 \begin_layout Standard
21355 For vertically and horizontally centered multicolumn cells with a fixed
21356 width you can define the cell format
21359 \begin_layout Standard
21364 newcolumntype{M}[1]{>{
21371 \begin_layout Standard
21378 avoids the problem of hyphenating the first word, as described in section
21379 \begin_inset space ~
21383 \begin_inset CommandInset ref
21385 reference "subsec:Multiple-Lines-in"
21390 Now you can simply enter
21393 \begin_layout Standard
21399 \begin_layout Standard
21405 in the table dialog to create a multicolumn.
21408 \begin_layout Standard
21409 \begin_inset VSpace bigskip
21415 \begin_layout Standard
21416 For cells spanned by a multicolumn cell, you can define the format
21419 \begin_layout Standard
21424 newcolumntype{S}[2]{>{
21429 \begin_inset Newline newline
21433 \begin_inset Phantom HPhantom
21436 \begin_layout Plain Layout
21450 arrayrulewidth)*(1-#2))/#2}}
21453 \begin_layout Standard
21454 This format uses equation
21455 \begin_inset CommandInset ref
21461 to calculate the required width so that each spanned cell has the same
21465 \begin_layout Standard
21469 \begin_layout Standard
21472 S{width of multicolumn cell}{number of spanned columns}
21475 \begin_layout Standard
21476 as \SpecialChar LaTeX
21477 -argument of the column.
21480 \begin_layout Standard
21481 \begin_inset VSpace bigskip
21487 \begin_layout Standard
21488 For colored columns, you can define
21491 \begin_layout Standard
21496 newcolumntype{K}[1]{>{
21503 \begin_layout Standard
21505 \begin_inset Quotes eld
21509 \begin_inset Quotes erd
21512 at the end creates a column with a flexible width whose text is horizontally
21517 \begin_layout Standard
21523 \begin_layout Standard
21524 as \SpecialChar LaTeX
21528 \begin_layout Standard
21529 \begin_inset VSpace bigskip
21535 \begin_layout Standard
21537 \begin_inset space ~
21541 \begin_inset CommandInset ref
21543 reference "tab:Table-using-user-defined"
21547 use the \SpecialChar LaTeX
21551 \begin_layout Standard
21557 \begin_layout Standard
21558 for the first column and the multicolumn,
21561 \begin_layout Standard
21567 \begin_layout Standard
21568 for the last column, and
21571 \begin_layout Standard
21577 \begin_layout Standard
21578 for the cells in the second column.
21581 \begin_layout Standard
21582 \begin_inset Float table
21588 \begin_layout Plain Layout
21589 \begin_inset Caption Standard
21591 \begin_layout Plain Layout
21592 \begin_inset CommandInset label
21594 name "tab:Table-using-user-defined"
21598 Table using user-defined table formats
21606 \begin_layout Plain Layout
21608 \begin_inset Tabular
21609 <lyxtabular version="3" rows="3" columns="4">
21610 <features tabularvalignment="middle">
21611 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21612 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21613 <column alignment="center" valignment="middle">
21614 <column alignment="center" valignment="middle" special="K{red}">
21616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21619 \begin_layout Plain Layout
21620 verylongtablecellword
21625 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21628 \begin_layout Plain Layout
21629 multiple lines multicolumn
21634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21637 \begin_layout Plain Layout
21643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21646 \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" usebox="none">
21675 \begin_layout Plain Layout
21681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21684 \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" usebox="none">
21713 \begin_layout Plain Layout
21719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21722 \begin_layout Plain Layout
21741 \begin_layout Subsection
21743 \begin_inset CommandInset label
21745 name "subsec:Line-Thickness"
21750 \begin_inset Index idx
21753 \begin_layout Plain Layout
21754 Table Customization ! Line Thickness
21762 \begin_layout Standard
21763 The line thickness for all lines in a table can be adjusted with the length
21771 To set for example a line thickness of 1.5
21772 \begin_inset space \thinspace{}
21776 \begin_inset space ~
21780 \begin_inset CommandInset ref
21782 reference "tab:Table-with-1.5"
21786 , insert the command
21789 \begin_layout Standard
21796 arrayrulewidth}{1.5pt}
21799 \begin_layout Standard
21800 in \SpecialChar TeX
21801 Code before the table or table float.
21802 The changed thickness is valid for all subsequent tables.
21803 To use the default value again, set
21810 \begin_inset space \thinspace{}
21813 pt in \SpecialChar TeX
21814 Code after the table or table float.
21817 \begin_layout Standard
21821 \begin_layout Plain Layout
21827 arrayrulewidth}{1.5pt}
21833 \begin_inset Float table
21838 \begin_layout Plain Layout
21839 \begin_inset Caption Standard
21841 \begin_layout Plain Layout
21842 \begin_inset CommandInset label
21844 name "tab:Table-with-1.5"
21849 \begin_inset space \thinspace{}
21860 \begin_layout Plain Layout
21862 \begin_inset Tabular
21863 <lyxtabular version="3" rows="3" columns="3">
21864 <features tabularvalignment="middle">
21865 <column alignment="center" valignment="top">
21866 <column alignment="center" valignment="top">
21867 <column alignment="center" valignment="top">
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" usebox="none">
21881 \begin_layout Plain Layout
21887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21890 \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" usebox="none">
21910 \begin_layout Plain Layout
21916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21919 \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" usebox="none">
21939 \begin_layout Plain Layout
21945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21948 \begin_layout Plain Layout
21968 \begin_layout Plain Layout
21974 arrayrulewidth}{0.4pt}
21982 \begin_layout Standard
21983 \begin_inset VSpace bigskip
21986 To set the line thickness to 1.5
21987 \begin_inset space \thinspace{}
21990 pt only for horizontal lines, as in Table
21991 \begin_inset space ~
21995 \begin_inset CommandInset ref
21997 reference "tab:Table-with-horizontal"
22001 , insert these commands in \SpecialChar TeX
22002 Code before the table or table float:
22005 \begin_layout Standard
22015 \begin_inset Newline newline
22023 \begin_inset Newline newline
22032 arrayrulewidth 1.5pt}
22033 \begin_inset Newline newline
22044 arrayrulewidth 0.4pt}}
22047 \begin_layout Standard
22048 To return to the default line thickness, insert this command in \SpecialChar TeX
22050 the table or table float:
22053 \begin_layout Standard
22065 \begin_layout Standard
22069 \begin_layout Plain Layout
22080 \begin_layout Plain Layout
22089 \begin_layout Plain Layout
22097 arrayrulewidth 1.5pt}
22100 \begin_layout Plain Layout
22110 arrayrulewidth 0.4pt}}
22116 \begin_inset Float table
22121 \begin_layout Plain Layout
22122 \begin_inset Caption Standard
22124 \begin_layout Plain Layout
22125 \begin_inset CommandInset label
22127 name "tab:Table-with-horizontal"
22132 \begin_inset space \thinspace{}
22135 pt thick horizontal lines
22143 \begin_layout Plain Layout
22145 \begin_inset Tabular
22146 <lyxtabular version="3" rows="3" columns="3">
22147 <features tabularvalignment="middle">
22148 <column alignment="center" valignment="top">
22149 <column alignment="center" valignment="top">
22150 <column alignment="center" valignment="top">
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" usebox="none">
22164 \begin_layout Plain Layout
22170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22173 \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" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22202 \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" usebox="none">
22222 \begin_layout Plain Layout
22228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22231 \begin_layout Plain Layout
22251 \begin_layout Plain Layout
22267 \begin_layout Standard
22268 \begin_inset VSpace bigskip
22271 To set the line thickness to 1.5
22272 \begin_inset space \thinspace{}
22275 pt only for vertical lines, create the following column format in the document
22276 preamble, according to the description in section
22277 \begin_inset space ~
22281 \begin_inset CommandInset ref
22283 reference "subsec:Customized-Format"
22290 \begin_layout Standard
22295 newcolumntype{V}{!{
22297 vrule width 1.5pt}}
22300 \begin_layout Standard
22302 \begin_inset space ~
22306 \begin_inset CommandInset ref
22308 reference "tab:Table-with-vertical"
22312 the \SpecialChar LaTeX
22316 \begin_layout Standard
22322 \begin_layout Standard
22323 was used for the last column and
22326 \begin_layout Standard
22332 \begin_layout Standard
22333 for the other columns.
22336 \begin_layout Standard
22337 \begin_inset Float table
22342 \begin_layout Plain Layout
22343 \begin_inset Caption Standard
22345 \begin_layout Plain Layout
22346 \begin_inset CommandInset label
22348 name "tab:Table-with-vertical"
22353 \begin_inset space \thinspace{}
22356 pt thick vertical lines
22364 \begin_layout Plain Layout
22366 \begin_inset Tabular
22367 <lyxtabular version="3" rows="3" columns="3">
22368 <features tabularvalignment="middle">
22369 <column alignment="center" valignment="top" special="Vc">
22370 <column alignment="center" valignment="top" special="Vc">
22371 <column alignment="center" valignment="top" special="VcV">
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
22391 <cell alignment="center" valignment="top" topline="true" usebox="none">
22394 \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
22420 <cell alignment="center" valignment="top" topline="true" usebox="none">
22423 \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
22449 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22452 \begin_layout Plain Layout
22471 \begin_layout Subsection
22473 \begin_inset Index idx
22476 \begin_layout Plain Layout
22477 Table Customization ! Dashed Lines
22485 \begin_layout Standard
22489 \begin_layout Plain Layout
22499 \begin_inset Note Note
22502 \begin_layout Plain Layout
22503 The following section will only be displayed when the \SpecialChar LaTeX
22516 \begin_layout Standard
22517 \begin_inset Float table
22523 \begin_layout Plain Layout
22524 \begin_inset Caption Standard
22526 \begin_layout Plain Layout
22527 \begin_inset CommandInset label
22529 name "tab:Table-with-dashed"
22533 Table with dashed lines
22541 \begin_layout Plain Layout
22543 \begin_inset Tabular
22544 <lyxtabular version="3" rows="5" columns="5">
22545 <features tabularvalignment="middle">
22546 <column alignment="center" valignment="top">
22547 <column alignment="center" valignment="top">
22548 <column alignment="center" valignment="top" special=":c">
22549 <column alignment="center" valignment="top">
22550 <column alignment="center" valignment="top">
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" leftline="true" usebox="none">
22564 \begin_layout Plain Layout
22570 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22573 \begin_layout Plain Layout
22579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22582 \begin_layout Plain Layout
22588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22591 \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" leftline="true" usebox="none">
22611 \begin_layout Plain Layout
22617 <cell alignment="center" valignment="top" topline="true" usebox="none">
22620 \begin_layout Plain Layout
22626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22629 \begin_layout Plain Layout
22635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22638 \begin_layout Plain Layout
22646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22649 \begin_layout Plain Layout
22653 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" usebox="none">
22679 \begin_layout Plain Layout
22685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22688 \begin_layout Plain Layout
22694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22697 \begin_layout Plain Layout
22705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22708 \begin_layout Plain Layout
22712 \begin_layout Plain Layout
22726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22729 \begin_layout Plain Layout
22735 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22738 \begin_layout Plain Layout
22744 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22747 \begin_layout Plain Layout
22753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22756 \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" leftline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22785 \begin_layout Plain Layout
22791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22794 \begin_layout Plain Layout
22800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22803 \begin_layout Plain Layout
22822 \begin_layout Standard
22824 does not natively support dashed lines, so you have to use \SpecialChar TeX
22826 As a prerequisite the \SpecialChar LaTeX
22832 \begin_inset Index idx
22835 \begin_layout Plain Layout
22837 -packages ! arydshln
22842 must be loaded in the document preamble with the command
22845 \begin_layout Standard
22850 usepackage{arydshln}
22853 \begin_layout Standard
22854 To make a vertical line dashed, enter the colon
22855 \begin_inset Quotes eld
22859 \begin_inset Quotes erd
22862 together with the character for the horizontal alignment as \SpecialChar LaTeX
22864 the table cell dialog.
22867 \begin_layout Standard
22868 For a horizontal dashed line add the command
22871 \begin_layout Standard
22879 \begin_layout Standard
22880 in \SpecialChar TeX
22881 Code as first element of the first cell in the table row.
22884 \begin_layout Standard
22885 For dashed multicolumn lines use the command
22888 \begin_layout Standard
22893 cdashline{line number
22898 \begin_layout Standard
22899 in \SpecialChar TeX
22900 Code as the first element of the first cell in the table row.
22901 If you have for example a multicolumn spanning columns 2 to 4 and you want
22902 to have a dashed line above, add the command
22905 \begin_layout Standard
22913 \begin_layout Standard
22914 as the first element of the first cell in the row of the multicolumn.
22917 \begin_layout Standard
22918 \begin_inset VSpace bigskip
22924 \begin_layout Standard
22926 \begin_inset space ~
22930 \begin_inset CommandInset ref
22932 reference "tab:Table-with-dashed"
22937 \begin_inset Quotes eld
22945 \begin_inset Quotes erd
22948 as \SpecialChar LaTeX
22949 argument of the third column.
22950 The \SpecialChar TeX
22957 was inserted in the first cell of the third row and the \SpecialChar TeX
22959 \begin_inset Newline newline
22968 was inserted in the first cell of the fourth row.
22971 \begin_layout Standard
22972 \begin_inset VSpace bigskip
22978 \begin_layout Standard
22979 Tables with dashed lines can also be colored as shown by Table
22980 \begin_inset space ~
22984 \begin_inset CommandInset ref
22986 reference "tab:Colored-table-with"
22993 \begin_layout Standard
22997 \begin_layout Plain Layout
23003 arrayrulewidth}{1pt}
23009 \begin_inset Note Note
23012 \begin_layout Plain Layout
23013 thicker lines for better visualization of the line color
23021 \begin_layout Standard
23025 \begin_layout Plain Layout
23029 dashgapcolor{green}
23035 \begin_inset Note Note
23038 \begin_layout Plain Layout
23039 color gaps between dashes green
23047 \begin_layout Standard
23051 \begin_layout Plain Layout
23062 \begin_layout Plain Layout
23071 \begin_layout Plain Layout
23075 arrayrulecolor{red}
23079 arrayrulecolor{black}}
23085 \begin_inset Note Note
23088 \begin_layout Plain Layout
23089 color horizontal, dashed lines red
23097 \begin_layout Standard
23101 \begin_layout Plain Layout
23112 \begin_layout Plain Layout
23121 \begin_layout Plain Layout
23125 arrayrulecolor{yellow}
23129 arrayrulecolor{black}}
23135 \begin_inset Note Note
23138 \begin_layout Plain Layout
23139 color partial horizontal, dashed lines yellow
23147 \begin_layout Standard
23148 \begin_inset Float table
23154 \begin_layout Plain Layout
23155 \begin_inset Caption Standard
23157 \begin_layout Plain Layout
23158 \begin_inset CommandInset label
23160 name "tab:Colored-table-with"
23164 Colored table with dashed lines
23172 \begin_layout Plain Layout
23174 \begin_inset Tabular
23175 <lyxtabular version="3" rows="5" columns="5">
23176 <features tabularvalignment="middle">
23177 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23178 <column alignment="center" valignment="top" width="0pt">
23179 <column alignment="center" valignment="top" width="0pt" special=":c">
23180 <column alignment="center" valignment="top">
23181 <column alignment="center" valignment="top">
23183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="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" usebox="none">
23204 \begin_layout Plain Layout
23210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23213 \begin_layout Plain Layout
23219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23222 \begin_layout Plain Layout
23230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="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" usebox="none">
23251 \begin_layout Plain Layout
23257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23260 \begin_layout Plain Layout
23266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23269 \begin_layout Plain Layout
23277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23280 \begin_layout Plain Layout
23284 \begin_layout Plain Layout
23297 \begin_layout Plain Layout
23311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23314 \begin_layout Plain Layout
23320 <cell alignment="center" valignment="top" usebox="none">
23323 \begin_layout Plain Layout
23329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23332 \begin_layout Plain Layout
23338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23341 \begin_layout Plain Layout
23349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23352 \begin_layout Plain Layout
23356 \begin_layout Plain Layout
23370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23373 \begin_layout Plain Layout
23379 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23382 \begin_layout Plain Layout
23388 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23391 \begin_layout Plain Layout
23397 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23400 \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" leftline="true" usebox="none">
23420 \begin_layout Plain Layout
23426 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23429 \begin_layout Plain Layout
23435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23438 \begin_layout Plain Layout
23444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23447 \begin_layout Plain Layout
23451 \begin_layout Plain Layout
23478 \begin_layout Standard
23482 \begin_layout Plain Layout
23496 \begin_inset Note Note
23499 \begin_layout Plain Layout
23508 \begin_layout Standard
23512 \begin_layout Plain Layout
23526 \begin_inset Note Note
23529 \begin_layout Plain Layout
23538 \begin_layout Standard
23542 \begin_layout Plain Layout
23552 \begin_inset Note Note
23555 \begin_layout Plain Layout
23564 \begin_layout Standard
23568 \begin_layout Plain Layout
23574 arrayrulewidth}{0.4pt}
23580 \begin_inset Note Note
23583 \begin_layout Plain Layout
23592 \begin_layout Standard
23593 The coloring of lines, columns and lines works as decribed in section
23594 \begin_inset space ~
23598 \begin_inset CommandInset ref
23600 reference "sec:Colored-Tables"
23605 Coloring horizontal lines works analogically as described there as well,
23606 one only needs to replace in the commands
23630 ; so one uses the command
23633 \begin_layout Standard
23643 \begin_inset Newline newline
23651 \begin_inset Newline newline
23655 \begin_inset Phantom HPhantom
23658 \begin_layout Plain Layout
23659 \begin_inset space ~
23669 arrayrulecolor{red}
23673 arrayrulecolor{black}}
23676 \begin_layout Standard
23686 \begin_layout Standard
23696 \begin_inset Newline newline
23704 \begin_inset Newline newline
23708 \begin_inset Phantom HPhantom
23711 \begin_layout Plain Layout
23712 \begin_inset space ~
23722 arrayrulecolor{red}
23726 arrayrulecolor{black}}
23729 \begin_layout Standard
23730 To get back the black line color, one needs to insert the following commands
23731 as \SpecialChar TeX
23732 Code behind the table:
23735 \begin_layout Standard
23743 \begin_layout Standard
23755 \begin_layout Standard
23763 \begin_layout Standard
23775 \begin_layout Standard
23776 To color the gaps between the dashes the command
23779 \begin_layout Standard
23784 dashgapcolor{color}
23787 \begin_layout Standard
23788 can be used in front of a table as \SpecialChar TeX
23790 color is hereby the name of a defined color.
23794 \begin_layout Standard
23802 \begin_layout Standard
23803 unsets the changes made by
23812 \begin_layout Standard
23813 \begin_inset Note Greyedout
23816 \begin_layout Plain Layout
23822 : If there are multiple commands in a cell, the command of
23826 needs to be the first one in the cell.
23832 \begin_inset space ~
23836 \begin_inset CommandInset ref
23838 reference "tab:Colored-table-with"
23862 \begin_layout Standard
23863 \begin_inset Note Greyedout
23866 \begin_layout Plain Layout
23872 The \SpecialChar LaTeX
23877 must be loaded in the document preamble before the \SpecialChar LaTeX
23883 \begin_inset Index idx
23886 \begin_layout Plain Layout
23888 -packages ! colortbl
23901 \begin_layout Standard
23905 \begin_layout Plain Layout
23915 \begin_inset Note Note
23918 \begin_layout Plain Layout
23919 The following will be displayed when the \SpecialChar LaTeX
23932 \begin_layout Standard
23933 You need to install the package
23937 to see the content of this section in the output.
23940 \begin_layout Standard
23944 \begin_layout Plain Layout
23956 \begin_layout Standard
23957 For more information about dashed lines see the documentation of
23962 \begin_inset CommandInset citation
23971 \begin_layout Chapter
23973 \begin_inset CommandInset label
23980 \begin_inset Index idx
23983 \begin_layout Plain Layout
23992 \begin_layout Section
23994 \begin_inset CommandInset label
23996 name "sec:FloatIntroduction"
24001 \begin_inset Index idx
24004 \begin_layout Plain Layout
24005 Floats ! Introduction
24013 \begin_layout Standard
24014 A float is a block of text associated with some sort of label, which doesn't
24015 have a fixed location.
24017 \begin_inset Quotes eld
24021 \begin_inset Quotes erd
24024 forward or backward a page or two, to wherever it fits best.
24032 \begin_inset space ~
24037 are also floats because they can float to the next page when there are
24038 too many notes on the page.
24041 \begin_layout Standard
24042 Floats allow a high quality layout.
24043 Images and tables can be spread evenly among the pages to avoid white space
24044 and pages without text.
24045 As the floating often destroys the context between the text and the image/table
24046 , every float can be referenced in the text.
24047 Floats are therefore numbered.
24048 Referencing is described in section
24049 \begin_inset space ~
24053 \begin_inset CommandInset ref
24055 reference "sec:Referencing-Floats"
24062 \begin_layout Standard
24063 To insert a float, use the menu
24065 Insert\SpecialChar menuseparator
24071 arg "float-insert figure"
24077 arg "float-insert table"
24085 inset, a box with a label.
24086 The label will automatically be translated to the document language in
24088 After the label you can insert the caption text.
24089 The image or table is inserted above or below the caption in a separate
24090 paragraph within the float.
24091 More about the caption placement is contained in section
24092 \begin_inset space ~
24096 \begin_inset CommandInset ref
24098 reference "sec:Caption-Placement"
24103 To keep your \SpecialChar LyX
24104 document readable, you can open and close the float box by
24105 left-clicking on the box label.
24106 A closed float box looks like this:
24107 \begin_inset Graphics
24108 filename clipart/floatQt4.png
24110 scaleBeforeRotation
24114 – a gray button with a red label.
24117 \begin_layout Standard
24118 It is recommended that you insert floats as separate standard paragraphs
24119 to avoid possible \SpecialChar LaTeX
24120 -errors that can occur when the surrounding text is specially
24124 \begin_layout Standard
24125 Existing figures or tables can be put into a float by highlighting them
24126 and then pressing the corresponding toolbar button for a new float.
24129 \begin_layout Section
24133 \begin_layout Standard
24134 Besides figure and table floats that are described in sections
24135 \begin_inset space ~
24139 \begin_inset CommandInset ref
24141 reference "sec:Figure-Floats"
24146 \begin_inset CommandInset ref
24148 reference "sec:Table-Floats"
24152 respectively, \SpecialChar LyX
24153 offers the float types
24162 The latter are explained in sec.
24163 \begin_inset space \thinspace{}
24167 \begin_inset CommandInset ref
24169 reference "sec:Wrap-Floats"
24176 \begin_layout Subsection
24178 \begin_inset Index idx
24181 \begin_layout Plain Layout
24182 Floats ! Algorithms
24190 \begin_layout Standard
24191 \begin_inset Float algorithm
24197 \begin_layout Plain Layout
24198 \begin_inset Caption Standard
24200 \begin_layout Plain Layout
24201 \begin_inset CommandInset label
24203 name "alg:Example-Algorithm-float"
24207 Example Algorithm float
24215 \begin_layout LyX-Code
24217 \begin_inset Newline newline
24220 Sum:= Sum + A(I); /*comment*/
24221 \begin_inset Newline newline
24225 \begin_inset VSpace -4mm
24236 \begin_layout Standard
24237 This float type is inserted with the menu
24239 Insert\SpecialChar menuseparator
24240 Float\SpecialChar menuseparator
24244 It is used for program codes and descriptions of algorithms and can be
24245 seen as an alternative to program code listings that are explained in chapter
24246 \begin_inset space ~
24250 \begin_inset CommandInset ref
24252 reference "cha:Program-Code-Listings"
24257 A possible environment for algorithms is the
24262 , described in \SpecialChar LyX
24269 \begin_inset space ~
24273 \begin_inset CommandInset ref
24275 reference "alg:Example-Algorithm-float"
24279 is an example of an algorithm float where -4
24280 \begin_inset space \thinspace{}
24283 mm vertical space was added at the end of the float to have the bottom rule
24284 exactly below the last text line.
24287 \begin_layout Standard
24288 The float label is not automatically translated into the document language.
24289 If your document is not in English, you have to do this manually by adding
24290 the following line to the document preamble
24295 \begin_layout Standard
24300 floatname{algorithm}{your
24301 \begin_inset space ~
24307 \begin_layout Standard
24311 \begin_inset space ~
24317 \begin_inset Quotes eld
24325 \begin_inset Quotes erd
24331 \begin_layout Standard
24332 To insert the list of algorithms you can use the menu
24334 Insert\SpecialChar menuseparator
24336 \begin_inset space \thinspace{}
24340 \begin_inset space \thinspace{}
24343 TOC\SpecialChar menuseparator
24346 when your document has the same language as \SpecialChar LyX
24348 In other cases use this command in \SpecialChar TeX
24352 \begin_layout Standard
24357 listof{algorithm}{your
24358 \begin_inset space ~
24364 \begin_layout Standard
24368 \begin_inset space ~
24374 \begin_inset Quotes eld
24382 \begin_inset Quotes erd
24388 \begin_layout Standard
24389 Algorithm floats are not by default numbered in the scheme
24390 \begin_inset Quotes eld
24394 \begin_inset Quotes erd
24397 as is the case for table and figure floats in many document-classes.
24398 To number algorithm floats in the same scheme, add this command to your
24402 \begin_layout Standard
24407 numberwithin{algorithm}{chapter}
24410 \begin_layout Standard
24411 To be able to use the command
24420 \begin_inset space ~
24425 in the document settings the option
24428 \begin_inset space ~
24432 \begin_inset space ~
24436 \begin_inset space ~
24444 \begin_layout Section
24446 \begin_inset Index idx
24449 \begin_layout Plain Layout
24458 \begin_layout Standard
24459 Floats are usually numbered either independently from the sections the floats
24460 are in, or in the scheme
24461 \begin_inset Quotes eld
24465 \begin_inset Quotes erd
24469 \begin_inset Quotes eld
24473 \begin_inset Quotes erd
24477 This depends on the document class used.
24480 \begin_layout Standard
24481 To change section-independent numbering, you can use this command in the
24485 \begin_layout Standard
24497 \begin_layout Standard
24504 is the command that prints the table number.
24505 For figure floats, the command would be
24518 in the command above prints the table number as a small roman number.
24521 \begin_layout Standard
24522 To change the numbering scheme for example to
24523 \begin_inset Quotes eld
24527 \begin_inset Quotes erd
24530 , use this command in the preamble:
24533 \begin_layout Standard
24538 numberwithin{table}{subsection}
24541 \begin_layout Standard
24542 To be able to use the command
24551 \begin_inset space ~
24556 in the document settings the option
24559 \begin_inset space ~
24563 \begin_inset space ~
24567 \begin_inset space ~
24575 \begin_layout Standard
24576 Please also have a look at section
24577 \begin_inset space ~
24581 \begin_inset CommandInset ref
24583 reference "subsec:Footnote-Numbering"
24587 for the details and important notes about the numbering commands.
24590 \begin_layout Section
24592 \begin_inset CommandInset label
24594 name "sec:Referencing-Floats"
24599 \begin_inset Index idx
24602 \begin_layout Plain Layout
24603 Floats ! References
24609 \begin_inset Index idx
24612 \begin_layout Plain Layout
24613 References ! to Floats
24621 \begin_layout Standard
24622 To reference a float, insert a label into its caption using the menu
24624 Insert\SpecialChar menuseparator
24627 or the toolbar button
24634 A grey label box like this one:
24635 \begin_inset Graphics
24636 filename clipart/labelQt4.png
24638 scaleBeforeRotation
24642 will be inserted and the label window pops up asking for the label text.
24644 offers as text the first words of the caption with a prefix.
24645 The prefix depends on the float type, e.
24646 \begin_inset space \thinspace{}
24650 \begin_inset space \space{}
24653 for figure floats the prefix will be "
24660 \begin_layout Standard
24661 The label is used as anchor and name for the reference.
24662 You can refer to the label using the menu
24664 Insert\SpecialChar menuseparator
24667 or the toolbar button
24670 arg "dialog-show-new-inset ref"
24674 The cross-reference window appears showing all labels of the document.
24675 If you have multiple \SpecialChar LyX
24676 documents opened, choose the one you are working
24677 on from the drop-list at the top of the dialog.
24678 You can now sort the labels alphabetically and then choose one.
24679 A grey cross-reference box like this one:
24680 \begin_inset Graphics
24681 filename clipart/referenceQt4.png
24683 scaleBeforeRotation
24688 At the position of the cross-reference box the float number will appear
24692 \begin_layout Standard
24693 It is recommended that you use a protected space between the cross-reference
24694 name and its number to avoid line breaks between them.
24695 If a cross-reference refers to a non-existing label, you will see two question
24696 marks in the output instead of the reference.
24699 \begin_layout Standard
24700 You can change labels at any time by clicking on the label box.
24701 References to the changed label will automatically update their links to
24702 the new label text.
24705 \begin_layout Standard
24709 \begin_inset space ~
24713 \begin_inset space ~
24718 in the cross-reference window sets the cursor before the referred label.
24719 The button text changes then to Go
24720 \begin_inset space ~
24723 Back and you can use it to set the cursor back to the cross-reference.
24726 \begin_layout Subsection
24727 Cross-Reference Formats
24728 \begin_inset CommandInset label
24730 name "subsec:Cross-Reference-Formats"
24735 \begin_inset Index idx
24738 \begin_layout Plain Layout
24739 References ! Formats
24747 \begin_layout Standard
24748 There are six varieties of cross-references:
24751 \begin_layout Description
24752 <reference>: prints the float number, this is the default:
24753 \begin_inset CommandInset ref
24755 reference "fig:Two-distorted-images"
24762 \begin_layout Description
24763 (<reference>): prints the float number within two parentheses, this is the
24764 style normally used to reference formulas, especially when the reference
24766 \begin_inset Quotes eld
24770 \begin_inset Quotes erd
24774 \begin_inset CommandInset ref
24783 \begin_layout Description
24784 <page>: prints the page number: Page
24785 \begin_inset space ~
24789 \begin_inset CommandInset ref
24790 LatexCommand pageref
24791 reference "fig:Two-distorted-images"
24798 \begin_layout Description
24800 \begin_inset space ~
24804 \begin_inset space ~
24807 <page>: prints the text "on page" and the page number:
24808 \begin_inset CommandInset ref
24809 LatexCommand vpageref
24810 reference "fig:Two-distorted-images"
24817 \begin_layout Description
24819 \begin_inset space ~
24823 \begin_inset space ~
24827 \begin_inset space ~
24830 <page>: prints the float number, the text "on page", and the page number:
24832 \begin_inset CommandInset ref
24834 reference "fig:Two-distorted-images"
24841 \begin_layout Description
24843 \begin_inset space ~
24846 reference: prints a self-defined cross-reference format.
24847 \begin_inset Newline newline
24851 \begin_inset Note Greyedout
24854 \begin_layout Plain Layout
24859 This feature is only available when you have the \SpecialChar LaTeX
24869 \begin_inset Index idx
24872 \begin_layout Plain Layout
24874 -packages ! prettyref
24880 \begin_inset Index idx
24883 \begin_layout Plain Layout
24885 -packages ! refstyle
24896 \begin_inset Newline newline
24899 You can select which \SpecialChar LaTeX
24900 -package should be used for this feature by setting
24903 Use refstyle (not prettyref) for cross-references
24907 Document\SpecialChar menuseparator
24908 Settings\SpecialChar menuseparator
24912 The format is specified by adding the command
24924 (refstyle) to the preamble of the document.
24925 For example redefining all references to figures (which have the label
24927 \begin_inset Quotes eld
24935 \begin_inset Quotes erd
24938 ) can be done with this command
24939 \begin_inset Newline newline
24946 newref{fig}{refcmd={Image on page
24951 \begin_inset Newline newline
24954 For more information about the format, have a look at the package documentations
24956 \begin_inset CommandInset citation
24958 key "prettyref,refstyle"
24965 \begin_layout Description
24967 \begin_inset space ~
24970 reference: prints the caption of the reference:
24971 \begin_inset CommandInset ref
24972 LatexCommand nameref
24973 reference "fig:Two-distorted-images"
24980 \begin_layout Standard
24985 will not print the page number if the label is on the previous, the same,
24988 \begin_inset space \thinspace{}
24992 \begin_inset space \space{}
24996 \begin_inset Quotes eld
25004 \begin_inset Quotes erd
25010 <reference> on page <page>
25012 will not print anything about the page if the label is on the same page.
25015 \begin_layout Standard
25016 The number and current page of the part of the document referred to in the
25017 output is automatically calculated by \SpecialChar LaTeX
25019 The varieties are adjusted in the field
25023 of the cross-reference window that appears when you click on the cross-referenc
25027 \begin_layout Standard
25028 \begin_inset Note Greyedout
25031 \begin_layout Plain Layout
25036 It is recommended to use the \SpecialChar LaTeX
25042 \begin_inset Index idx
25045 \begin_layout Plain Layout
25047 -packages ! refstyle
25057 \begin_inset Index idx
25060 \begin_layout Plain Layout
25062 -packages ! prettyref
25067 does not know all of \SpecialChar LyX
25068 's possible label shortcuts
25072 \begin_layout Plain Layout
25073 \begin_inset Quotes eld
25077 \begin_inset Quotes erd
25080 is for example \SpecialChar LyX
25081 's shortcut for labels in figure captions.
25086 and is not internationalized.
25094 \begin_layout Subsection
25095 Automatic Reference Naming
25096 \begin_inset Index idx
25099 \begin_layout Plain Layout
25100 References ! Automatic Reference Naming
25108 \begin_layout Standard
25109 The \SpecialChar LaTeX
25115 \begin_inset Index idx
25118 \begin_layout Plain Layout
25120 -packages ! hyperref
25125 , that is enabled in the
25133 dialog, provides a very useful feature that cross-references automatically
25134 include the name of the referenced floats (or text parts like
25139 So you will save having to write e.
25140 \begin_inset space \thinspace{}
25144 \begin_inset space \space{}
25148 \begin_inset Quotes eld
25152 \begin_inset Quotes erd
25155 before every reference to a figure.
25156 To use this feature, enable
25160 and insert this line to the \SpecialChar LaTeX
25164 \begin_layout Standard
25180 \begin_layout Standard
25181 When you prefer other reference names than the default ones, for example
25182 you want instead of
25183 \begin_inset Quotes eld
25187 \begin_inset Quotes erd
25191 \begin_inset Quotes eld
25195 \begin_inset space \thinspace{}
25199 \begin_inset Quotes eld
25202 , you can redefine the name by inserting this in the preamble:
25205 \begin_layout Standard
25216 sectionautorefname}
25217 \begin_inset Newline newline
25221 \begin_inset Phantom HPhantom
25224 \begin_layout Plain Layout
25227 \begin_inset space ~
25240 \begin_layout Standard
25241 When you are using another document language than English, replace
25242 \begin_inset Newline newline
25257 , where *** is the name of the language used.
25260 \begin_layout Standard
25261 To get automatic names, but not for certain reference types, for example
25262 not for equations, use this preamble code:
25265 \begin_layout Standard
25276 equationautorefname}[1]{}}
25279 \begin_layout Standard
25280 More about this topic can be found in
25285 \begin_inset CommandInset citation
25294 \begin_layout Standard
25295 \begin_inset Note Greyedout
25298 \begin_layout Plain Layout
25303 Automatic reference naming cannot be used when you use cross-references
25307 \begin_inset space ~
25312 style, as described in section
25313 \begin_inset space ~
25317 \begin_inset CommandInset ref
25319 reference "subsec:Cross-Reference-Formats"
25331 \begin_layout Standard
25336 manual is an example where automatic reference naming is used.
25339 \begin_layout Subsection
25341 \begin_inset CommandInset label
25343 name "subsec:Reference-Position"
25348 \begin_inset Index idx
25351 \begin_layout Plain Layout
25352 References ! Reference Position
25360 \begin_layout Standard
25366 \begin_inset Index idx
25369 \begin_layout Plain Layout
25371 -packages ! hyperref
25384 dialog to link cross-references in the output, you will see that clicking
25385 on an image float reference jumps to the image label.
25386 The caption will be the first text part on the screen, so that you cannot
25387 see the image without scrolling.
25388 This is because the reference link anchor is placed at the position of
25390 With the use of the package
25395 \begin_inset Index idx
25398 \begin_layout Plain Layout
25405 , which is part of the \SpecialChar LaTeX
25411 \begin_inset Index idx
25414 \begin_layout Plain Layout
25416 -packages ! oberdiek
25421 , the link anchor is placed at the beginning of a float.
25422 To use this feature for figure floats, load
25426 in the document preamble with the line
25429 \begin_layout Standard
25434 usepackage[figure]{hypcap}
25437 \begin_layout Standard
25442 for all float types but this is not recommended for stability reasons.
25443 For more information, have a look at
25448 \begin_inset CommandInset citation
25457 \begin_layout Standard
25458 \begin_inset Note Greyedout
25461 \begin_layout Plain Layout
25470 has no effect on references to subfigures.
25478 \begin_layout Section
25480 \begin_inset CommandInset label
25482 name "sec:Float-Placement"
25487 \begin_inset Index idx
25490 \begin_layout Plain Layout
25499 \begin_layout Standard
25500 Right-clicking on a float-box and clicking on
25504 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25506 positioning the float.
25507 \begin_inset Newline newline
25513 \begin_inset space ~
25518 is only useful for two-column documents: If you select it, the float will
25519 span both columns on the page instead of being confined to just one.
25520 \begin_inset Newline newline
25526 \begin_inset space ~
25531 is used to rotate floats, see section
25532 \begin_inset CommandInset ref
25534 reference "sec:Rotated-Floats"
25541 \begin_layout Standard
25542 You can use one or more of the following options in the float dialog to
25543 set the placement for a particular float when you uncheck the option
25546 \begin_inset space ~
25550 \begin_inset space ~
25558 \begin_layout Description
25560 \begin_inset space ~
25564 \begin_inset space ~
25567 possible try to place the float on the position where it has been inserted
25570 \begin_layout Description
25572 \begin_inset space ~
25576 \begin_inset space ~
25579 page try to place the float at the top of the current page
25582 \begin_layout Description
25584 \begin_inset space ~
25588 \begin_inset space ~
25591 page try to place the float at the bottom of the current page
25594 \begin_layout Description
25596 \begin_inset space ~
25600 \begin_inset space ~
25603 floats try to place the float on its own page
25606 \begin_layout Standard
25607 The order of the above option is
25611 used by \SpecialChar LaTeX
25613 That means, if you use the default placement, \SpecialChar LaTeX
25617 \begin_inset space ~
25621 \begin_inset space ~
25629 \begin_inset space ~
25633 \begin_inset space ~
25638 , and then the others.
25639 If you do not use the default, \SpecialChar LaTeX
25640 will try only the checked options but in
25643 \begin_inset space ~
25646 placements is possible the procedure is internally repeated trying to put
25647 the float on the following page.
25650 \begin_layout Standard
25651 By default, each option has its own rules:
25654 \begin_layout Labeling
25655 \labelwidthstring 00.00.0000
25659 \begin_inset space ~
25663 \begin_inset space ~
25668 only floats occupying less than 70
25669 \begin_inset space \thinspace{}
25672 % of the page can be placed at the top of a page (
25681 \begin_layout Labeling
25682 \labelwidthstring 00.00.0000
25686 \begin_inset space ~
25690 \begin_inset space ~
25695 : only floats occupying less than 30
25696 \begin_inset space \thinspace{}
25699 % of the page can be placed at the bottom of a page.
25709 \begin_layout Labeling
25710 \labelwidthstring 00.00.0000
25714 \begin_inset space ~
25718 \begin_inset space ~
25723 : only if more than 50
25724 \begin_inset space \thinspace{}
25727 % of the page is occupied by floats, several floats can be set together
25738 \begin_layout Standard
25739 If you don't like these rules, you can ignore them by using the additional
25743 \begin_inset space ~
25748 \begin_inset space ~
25754 \begin_inset Newline newline
25757 You can also redefine the rules with \SpecialChar LaTeX
25758 -commands that are given in parentheses
25759 after the rules description above.
25760 To increase for example the often too small default of the bottom-rule
25762 \begin_inset space \thinspace{}
25765 % of the page, add this line to your document preamble:
25768 \begin_layout Standard
25775 bottomfraction}{0.5}
25778 \begin_layout Standard
25779 Sometimes you might need, under all circumstances, a float to be placed
25780 exactly at the position where it is inserted.
25781 For this case you can use the option
25784 \begin_inset space ~
25790 Use this option very rarely and only if the document is almost ready to
25791 be printed, because the float is then no longer able to
25792 \begin_inset Quotes eld
25796 \begin_inset Quotes erd
25799 when you change your document and this will often destroy the page layout.
25802 \begin_layout Standard
25803 There are no placement options for text wrap floats, because they are always
25804 surrounded by the text of a certain paragraph.
25805 \begin_inset VSpace bigskip
25811 \begin_layout Standard
25812 Sometimes you have the problem that a float is placed at the top of a page
25813 while its corresponding section starts at the middle of the page, so that
25814 the reader could think the float is part of the previous section.
25815 To avoid this the \SpecialChar LaTeX
25823 It suppresses a given float placement for the page where it is inserted
25824 and can therefore be used to avoid floats being set before a section starts.
25825 To get this, add these commands to your document preamble:
25828 \begin_layout Standard
25838 \begin_inset Newline newline
25852 \begin_layout Standard
25853 You can define the same for all section headings, like chapters and subsections.
25854 This definition is not recommended to be used for small text parts like
25855 subsubsections because \SpecialChar LaTeX
25856 may then have problems finding a suitable placement.
25859 \begin_layout Standard
25860 \begin_inset VSpace bigskip
25863 In some cases it is required to have all figures/tables at the end of the
25865 For this purpose the \SpecialChar LaTeX
25871 \begin_inset Index idx
25874 \begin_layout Plain Layout
25876 -packages ! endfloat
25882 It puts all figure and table floats at the end of the document into their
25884 At the original float position a text hint like
25885 \begin_inset Quotes eld
25891 \begin_inset space ~
25897 \begin_inset Quotes erd
25901 The endfloat-package is loaded in the preamble with the line
25904 \begin_layout Standard
25909 usepackage[options]{endfloat}
25912 \begin_layout Standard
25913 There are various package options to format the created figure/table sections.
25914 For more information we refer you to the
25919 \begin_inset CommandInset citation
25926 \begin_inset Newline newline
25930 \begin_inset Note Greyedout
25933 \begin_layout Plain Layout
25938 doesn't provide an automatic translation for the text hint, you have to
25939 do this manually, see section
25940 \begin_inset space ~
25944 \begin_inset CommandInset citation
25956 \begin_inset Newline newline
25960 \begin_inset Note Greyedout
25963 \begin_layout Plain Layout
25968 There is currently a bug in
25972 when the caption contains a German
25973 \begin_inset Quotes eld
25977 \begin_inset Quotes erd
25981 Use in this case the command
25982 \begin_inset Quotes eld
25992 \begin_inset Quotes erd
25995 in \SpecialChar TeX
25997 \begin_inset Quotes eld
26001 \begin_inset Quotes erd
26012 \begin_layout Standard
26013 \begin_inset VSpace bigskip
26016 For more details about float placements, have a look at \SpecialChar LaTeX
26018 \begin_inset CommandInset citation
26020 key "latexcompanion,latexguide,latexbook"
26027 \begin_layout Section
26029 \begin_inset CommandInset label
26031 name "sec:Rotated-Floats"
26036 \begin_inset Index idx
26039 \begin_layout Plain Layout
26048 \begin_layout Standard
26049 Especially for wide tables you might have floats rotated.
26050 To rotate a whole float including the caption, right-click on the float-box
26054 \begin_inset space ~
26062 \begin_layout Standard
26063 Rotated floats are always placed on a page of their own (or column of their
26064 own; in case you have a multi-column document).
26065 You can let them span several columns using the float settings option
26068 \begin_inset space ~
26074 Floats are rotated so that you can read them from the outside margin.
26075 To force a certain rotation direction for all pages, you can add either
26084 to the document class options.
26087 \begin_layout Standard
26088 Referencing rotated floats is the same as for normal floats, the caption
26089 format is also the same: Table
26090 \begin_inset space ~
26094 \begin_inset CommandInset ref
26096 reference "tab:Rotated-table"
26100 is an example of a rotated table float.
26103 \begin_layout Standard
26104 \begin_inset Note Greyedout
26107 \begin_layout Plain Layout
26112 Not all DVI-viewers are able to display rotated floats.
26120 \begin_layout Standard
26121 \begin_inset Float table
26126 \begin_layout Plain Layout
26127 \begin_inset Caption Standard
26129 \begin_layout Plain Layout
26130 \begin_inset CommandInset label
26132 name "tab:Rotated-table"
26144 \begin_layout Plain Layout
26146 \begin_inset Tabular
26147 <lyxtabular version="3" rows="1" columns="5">
26148 <features tabularvalignment="middle">
26149 <column alignment="center" valignment="top">
26150 <column alignment="center" valignment="top">
26151 <column alignment="center" valignment="top">
26152 <column alignment="center" valignment="top">
26153 <column alignment="center" valignment="top">
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" usebox="none">
26185 \begin_layout Plain Layout
26191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26194 \begin_layout Plain Layout
26213 \begin_layout Section
26215 \begin_inset Index idx
26218 \begin_layout Plain Layout
26227 \begin_layout Standard
26228 Subfloats are for example used when a figure consists of several images.
26229 They are created by inserting a float into an existing float.
26230 The placement of the subfloats can be controlled in the same way as for
26231 paragraphs as shown in table
26232 \begin_inset space ~
26236 \begin_inset CommandInset ref
26238 reference "tab:Two-subtables-side"
26243 \begin_inset CommandInset ref
26245 reference "tab:Two-subtables-upon"
26252 \begin_layout Standard
26253 Referencing subfloats works as for normal floats: Table
26254 \begin_inset space ~
26258 \begin_inset CommandInset ref
26260 reference "tab:This-is-subtable-a"
26265 \begin_inset CommandInset ref
26267 reference "tab:This-is-subtable-b"
26271 are subtables of table
26272 \begin_inset space ~
26276 \begin_inset CommandInset ref
26278 reference "tab:Two-subtables-side"
26285 \begin_layout Standard
26286 \begin_inset Float table
26291 \begin_layout Plain Layout
26292 \begin_inset Caption Standard
26294 \begin_layout Plain Layout
26295 \begin_inset CommandInset label
26297 name "tab:Two-subtables-side"
26301 Two subtables placed side by side.
26309 \begin_layout Plain Layout
26311 \begin_inset space \hfill{}
26315 \begin_inset Float table
26320 \begin_layout Plain Layout
26321 \begin_inset Caption Standard
26323 \begin_layout Plain Layout
26324 \begin_inset CommandInset label
26326 name "tab:This-is-subtable-a"
26330 This is subtable a.
26338 \begin_layout Plain Layout
26340 \begin_inset Tabular
26341 <lyxtabular version="3" rows="1" columns="5">
26342 <features tabularvalignment="middle">
26343 <column alignment="center" valignment="top">
26344 <column alignment="center" valignment="top">
26345 <column alignment="center" valignment="top">
26346 <column alignment="center" valignment="top">
26347 <column alignment="center" valignment="top">
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" usebox="none">
26379 \begin_layout Plain Layout
26385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26388 \begin_layout Plain Layout
26405 \begin_inset space \hfill{}
26409 \begin_inset Float table
26414 \begin_layout Plain Layout
26415 \begin_inset Caption Standard
26417 \begin_layout Plain Layout
26418 \begin_inset CommandInset label
26420 name "tab:This-is-subtable-b"
26424 This is subtable b.
26432 \begin_layout Plain Layout
26434 \begin_inset Tabular
26435 <lyxtabular version="3" rows="1" columns="5">
26436 <features tabularvalignment="middle">
26437 <column alignment="center" valignment="top">
26438 <column alignment="center" valignment="top">
26439 <column alignment="center" valignment="top">
26440 <column alignment="center" valignment="top">
26441 <column alignment="center" valignment="top">
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" usebox="none">
26473 \begin_layout Plain Layout
26479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26482 \begin_layout Plain Layout
26499 \begin_inset space \hfill{}
26510 \begin_layout Standard
26511 \begin_inset Float table
26516 \begin_layout Plain Layout
26517 \begin_inset Caption Standard
26519 \begin_layout Plain Layout
26520 \begin_inset CommandInset label
26522 name "tab:Two-subtables-upon"
26526 Two subtables placed one above the other.
26527 (a) table with 4 cells, (b) table with 5 cells.
26535 \begin_layout Plain Layout
26537 \begin_inset Float table
26542 \begin_layout Plain Layout
26543 \begin_inset Caption Standard
26545 \begin_layout Plain Layout
26554 \begin_layout Plain Layout
26556 \begin_inset Tabular
26557 <lyxtabular version="3" rows="1" columns="4">
26558 <features tabularvalignment="middle">
26559 <column alignment="center" valignment="top">
26560 <column alignment="center" valignment="top">
26561 <column alignment="center" valignment="top">
26562 <column alignment="center" valignment="top">
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" usebox="none">
26585 \begin_layout Plain Layout
26591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26594 \begin_layout Plain Layout
26613 \begin_layout Plain Layout
26615 \begin_inset Float table
26620 \begin_layout Plain Layout
26621 \begin_inset Caption Standard
26623 \begin_layout Plain Layout
26632 \begin_layout Plain Layout
26634 \begin_inset Tabular
26635 <lyxtabular version="3" rows="1" columns="5">
26636 <features tabularvalignment="middle">
26637 <column alignment="center" valignment="top">
26638 <column alignment="center" valignment="top">
26639 <column alignment="center" valignment="top">
26640 <column alignment="center" valignment="top">
26641 <column alignment="center" valignment="top">
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" usebox="none">
26673 \begin_layout Plain Layout
26679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26682 \begin_layout Plain Layout
26706 \begin_layout Section
26707 Floats Side by Side
26708 \begin_inset Index idx
26711 \begin_layout Plain Layout
26712 Floats ! Side by side
26720 \begin_layout Standard
26721 To place floats side by side, as in Figures
26722 \begin_inset space ~
26726 \begin_inset CommandInset ref
26728 reference "fig:Float-left"
26733 \begin_inset CommandInset ref
26735 reference "fig:Float-right"
26744 In it two minipage boxes are inserted.
26748 \begin_layout Plain Layout
26749 Minipages are explained in section
26750 \begin_inset space ~
26754 \begin_inset CommandInset ref
26756 reference "sec:Minipages"
26765 The width is set to 45
26766 \begin_inset space \thinspace{}
26770 \begin_inset space \thinspace{}
26773 column% and the box alignment to
26778 The minipage boxes contain the image and the caption in the same way as
26779 they are in a float.
26780 The only difference is that the image unit
26783 \begin_inset space ~
26787 \begin_inset space ~
26792 is now calculated according to the width of the minipage boxes.
26795 \begin_layout Standard
26796 \begin_inset Float figure
26801 \begin_layout Plain Layout
26802 \begin_inset Box Frameless
26812 height_special "totalheight"
26817 backgroundcolor "none"
26820 \begin_layout Plain Layout
26822 \begin_inset Graphics
26823 filename clipart/mobius.eps
26826 scaleBeforeRotation
26833 \begin_layout Plain Layout
26834 \begin_inset Caption Standard
26836 \begin_layout Plain Layout
26837 \begin_inset CommandInset label
26839 name "fig:Float-left"
26843 Float on the left side.
26854 \begin_inset space \hfill{}
26858 \begin_inset Box Frameless
26868 height_special "totalheight"
26873 backgroundcolor "none"
26876 \begin_layout Plain Layout
26878 \begin_inset Graphics
26879 filename clipart/platypus.eps
26882 scaleBeforeRotation
26889 \begin_layout Plain Layout
26890 \begin_inset Caption Standard
26892 \begin_layout Plain Layout
26893 \begin_inset CommandInset label
26895 name "fig:Float-right"
26899 Float on the right side.
26912 \begin_layout Plain Layout
26921 \begin_layout Section
26923 \begin_inset Index idx
26926 \begin_layout Plain Layout
26927 Caption ! Formatting
26933 \begin_inset Index idx
26936 \begin_layout Plain Layout
26937 Floats ! Caption Formatting
26943 \begin_inset CommandInset label
26945 name "sec:Caption-Formatting"
26952 \begin_layout Standard
26957 environment is the default paragraph environment for
26962 On the \SpecialChar LyX
26963 screen captions appear as a label, e.
26964 \begin_inset space \thinspace{}
26968 \begin_inset space \space{}
26972 \begin_inset Quotes eld
26980 \begin_inset Quotes erd
26983 followed by the caption text.
26985 \begin_inset Quotes eld
26989 \begin_inset Quotes erd
26992 is the actual reference number.
26993 By default the label and the number are in the same font as the caption
26994 text and a colon follows the number to divide the label from the text.
26995 This caption format is suitable for many but not all documents.
26999 \begin_layout Standard
27000 To change the default caption format, load the \SpecialChar LaTeX
27006 \begin_inset Index idx
27009 \begin_layout Plain Layout
27011 -packages ! caption
27016 in the document preamble with this line:
27019 \begin_layout Standard
27024 usepackage[format definition]{caption}
27027 \begin_layout Standard
27028 To have for example the label and the number in sans-serif, bold font and
27029 the table captions always above the table as in this document, use the
27033 \begin_layout Standard
27038 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27041 \begin_layout Standard
27042 You can also define different caption formats for the different float types.
27043 In this case load the
27047 package without format specific options and define the different formats
27048 with the help of the command
27051 \begin_layout Standard
27056 captionsetup[float type]{format definition}
27059 \begin_layout Standard
27060 in the document preamble.
27061 For example the caption formats of Figure
27062 \begin_inset space ~
27066 \begin_inset CommandInset ref
27068 reference "fig:This-is-an-fig"
27073 \begin_inset space ~
27077 \begin_inset CommandInset ref
27079 reference "tab:This-is-an-tab"
27083 can be created using these commands in the document preamble:
27086 \begin_layout Standard
27091 usepackage[tableposition=top]{caption}
27094 \begin_inset Newline newline
27101 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27102 \begin_inset Newline newline
27106 \begin_inset Phantom HPhantom
27109 \begin_layout Plain Layout
27114 captionsetup[figure]{
27120 \begin_inset Newline newline
27125 captionsetup[table]{labelfont={bf,sf}}
27128 \begin_layout Standard
27129 \begin_inset Note Greyedout
27132 \begin_layout Plain Layout
27141 has no effect when a
27146 \begin_inset Index idx
27149 \begin_layout Plain Layout
27151 -packages ! KOMA-Script
27156 document class is used.
27157 In this case the document class option
27159 captions=tableheading
27169 \begin_layout Standard
27170 For more information about the package
27174 we refer to its documentation
27175 \begin_inset CommandInset citation
27184 \begin_layout Standard
27185 To change the label name from e.
27186 \begin_inset space \thinspace{}
27190 \begin_inset space \space{}
27194 \begin_inset Quotes eld
27198 \begin_inset Quotes erd
27202 \begin_inset Quotes eld
27206 \begin_inset Quotes erd
27209 use this preamble command:
27212 \begin_layout Standard
27219 fnum@figure}{Image~
27224 \begin_layout Standard
27231 inserts the figure number and
27234 \begin_inset Quotes eld
27240 \begin_inset Quotes erd
27243 creates a protected space.
27246 \begin_layout Standard
27247 \begin_inset VSpace bigskip
27255 \begin_inset Index idx
27258 \begin_layout Plain Layout
27260 -packages ! KOMA-Script
27267 article (KOMA-Script)
27275 letter (KOMA-Script)
27279 report (KOMA-Script)
27282 \begin_inset space \thinspace{}
27285 ), you can alternatively to the
27293 's built-in command
27300 For example, to have the caption label in bold, add this command to your
27304 \begin_layout Standard
27309 setkomafont{captionlabel}{
27314 \begin_layout Standard
27315 For more information about
27326 \begin_inset CommandInset citation
27335 \begin_layout Standard
27339 \begin_layout Plain Layout
27343 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27350 \begin_inset Note Note
27353 \begin_layout Plain Layout
27354 The caption format is changed only for this example.
27362 \begin_layout Standard
27363 \begin_inset Float figure
27369 \begin_layout Plain Layout
27371 \begin_inset Graphics
27372 filename clipart/mobius.eps
27375 scaleBeforeRotation
27382 \begin_layout Plain Layout
27383 \begin_inset Caption Standard
27385 \begin_layout Plain Layout
27386 \begin_inset CommandInset label
27388 name "fig:This-is-an-fig"
27392 This is an example figure caption that is longer than one line to show the
27393 different caption format.
27394 Here a self-defined caption format is used.
27407 \begin_layout Standard
27411 \begin_layout Plain Layout
27415 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27424 \begin_layout Standard
27425 \begin_inset Float table
27431 \begin_layout Plain Layout
27432 \begin_inset Caption Standard
27434 \begin_layout Plain Layout
27435 \begin_inset CommandInset label
27437 name "tab:This-is-an-tab"
27441 This is an example table caption that is longer than one line to show the
27442 different caption format.
27443 Here the standard caption format for tables in this document is used.
27451 \begin_layout Plain Layout
27453 \begin_inset Tabular
27454 <lyxtabular version="3" rows="1" columns="5">
27455 <features tabularvalignment="middle">
27456 <column alignment="center" valignment="top">
27457 <column alignment="center" valignment="top">
27458 <column alignment="center" valignment="top">
27459 <column alignment="center" valignment="top">
27460 <column alignment="center" valignment="top">
27462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27465 \begin_layout Plain Layout
27471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27474 \begin_layout Plain Layout
27480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27483 \begin_layout Plain Layout
27489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27492 \begin_layout Plain Layout
27498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27501 \begin_layout Plain Layout
27520 \begin_layout Section
27522 \begin_inset Index idx
27525 \begin_layout Plain Layout
27526 Caption ! Placement
27532 \begin_inset Index idx
27535 \begin_layout Plain Layout
27536 Floats ! Caption Placement
27542 \begin_inset CommandInset label
27544 name "sec:Caption-Placement"
27551 \begin_layout Standard
27552 The common caption placement rule is:
27555 \begin_layout Description
27556 Figure: Caption is set below the figure
27559 \begin_layout Description
27560 Table: Caption is set above the table
27563 \begin_layout Standard
27564 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27567 That means if you are using the document classes
27583 there will be no space between the caption and the table.
27584 To insert the necessary space, load the \SpecialChar LaTeX
27590 \begin_inset Index idx
27593 \begin_layout Plain Layout
27595 -packages ! caption
27600 in your document preamble with the option
27604 \begin_layout Plain Layout
27606 \begin_inset space ~
27610 \begin_inset CommandInset ref
27612 reference "sec:Caption-Formatting"
27616 for more information of the package
27628 \begin_layout Standard
27634 \begin_layout Standard
27640 \begin_inset Index idx
27643 \begin_layout Plain Layout
27645 -packages ! KOMA-Script
27652 article (KOMA-Script)
27660 letter (KOMA-Script)
27664 report (KOMA-Script)
27667 \begin_inset space \thinspace{}
27670 ), you can alternatively to the
27674 package set the document class option
27678 \begin_layout Plain Layout
27679 That option is used in this document.
27687 \begin_layout Standard
27690 captions=tableheading
27693 \begin_layout Standard
27694 In documents with a KOMA-Script document class you can also right-click
27695 on a caption and mark in the context menu if this should be a caption above
27696 or below the table/figure.
27697 This way you can override the document-wide caption placement for certain
27700 \begin_inset space ~
27704 \begin_inset CommandInset ref
27706 reference "tab:A-caption-marked"
27710 is an example where the caption is marked a being below the table while
27712 For comparison the caption in Table
27713 \begin_inset space ~
27717 \begin_inset CommandInset ref
27719 reference "tab:A-standard-table"
27726 \begin_layout Standard
27727 \begin_inset Float table
27732 \begin_layout Plain Layout
27733 \begin_inset Caption Below
27735 \begin_layout Plain Layout
27736 \begin_inset CommandInset label
27738 name "tab:A-caption-marked"
27742 A caption marked as being below the table.
27750 \begin_layout Plain Layout
27752 \begin_inset Tabular
27753 <lyxtabular version="3" rows="3" columns="3">
27754 <features tabularvalignment="middle">
27755 <column alignment="center" valignment="top" width="0pt">
27756 <column alignment="center" valignment="top" width="0pt">
27757 <column alignment="center" valignment="top" width="0pt">
27759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27762 \begin_layout Plain Layout
27768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27771 \begin_layout Plain Layout
27777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27780 \begin_layout Plain Layout
27788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27791 \begin_layout Plain Layout
27797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27800 \begin_layout Plain Layout
27806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27809 \begin_layout Plain Layout
27817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27820 \begin_layout Plain Layout
27821 \begin_inset Formula $\int x^{2}dx$
27829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27832 \begin_layout Plain Layout
27833 \begin_inset Formula $\left[\begin{array}{cc}
27836 \end{array}\right]$
27844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27847 \begin_layout Plain Layout
27848 \begin_inset Formula $1+1=2$
27869 \begin_layout Standard
27870 \begin_inset Float table
27875 \begin_layout Plain Layout
27876 \begin_inset Caption Standard
27878 \begin_layout Plain Layout
27879 \begin_inset CommandInset label
27881 name "tab:A-standard-table"
27885 A standard table caption.
27893 \begin_layout Plain Layout
27895 \begin_inset Tabular
27896 <lyxtabular version="3" rows="3" columns="3">
27897 <features tabularvalignment="middle">
27898 <column alignment="center" valignment="top" width="0pt">
27899 <column alignment="center" valignment="top" width="0pt">
27900 <column alignment="center" valignment="top" width="0pt">
27902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27905 \begin_layout Plain Layout
27911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27914 \begin_layout Plain Layout
27920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27923 \begin_layout Plain Layout
27931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27934 \begin_layout Plain Layout
27940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27943 \begin_layout Plain Layout
27949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27952 \begin_layout Plain Layout
27960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27963 \begin_layout Plain Layout
27964 \begin_inset Formula $\int x^{2}dx$
27972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27975 \begin_layout Plain Layout
27976 \begin_inset Formula $\left[\begin{array}{cc}
27979 \end{array}\right]$
27987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27990 \begin_layout Plain Layout
27991 \begin_inset Formula $1+1=2$
28012 \begin_layout Standard
28013 \begin_inset VSpace bigskip
28016 It is also possible to set the caption beside a figure or table.
28017 To get this the \SpecialChar LaTeX
28023 \begin_inset Index idx
28026 \begin_layout Plain Layout
28028 -packages ! sidecap
28033 has to be loaded in the document preamble with the line
28036 \begin_layout Standard
28041 usepackage[option]{sidecap}
28044 \begin_layout Standard
28045 If you set no option, the caption is placed on the side of the outer page
28046 margin – to the right on odd pages, to the left on even pages.
28047 You can change the placement to inner margin with the option
28052 To force the placement always to the right or left, use the option
28063 \begin_layout Standard
28067 \begin_layout Plain Layout
28077 \begin_inset Note Note
28080 \begin_layout Plain Layout
28081 The following section will only be displayed when the \SpecialChar LaTeX
28094 \begin_layout Standard
28095 To place in \SpecialChar LyX
28096 the caption of a float on the side, it is necessary to add
28097 these commands to the document preamble:
28100 \begin_layout Standard
28102 \begin_inset CommandInset line
28113 \begin_layout Standard
28120 TabBesBeg}[1][1.0]{%
28121 \begin_inset Newline newline
28125 \begin_inset Phantom HPhantom
28128 \begin_layout Plain Layout
28129 \begin_inset space ~
28144 \begin_inset Newline newline
28148 \begin_inset Phantom HPhantom
28151 \begin_layout Plain Layout
28154 \begin_inset space ~
28169 \begin_inset Newline newline
28173 \begin_inset Phantom HPhantom
28176 \begin_layout Plain Layout
28179 \begin_inset space ~
28189 renewenvironment{table}[1]{
28191 begin{SCtable}[#1]##1}{
28196 \begin_layout Standard
28204 \begin_inset Newline newline
28208 \begin_inset Phantom HPhantom
28211 \begin_layout Plain Layout
28212 \begin_inset space ~
28227 \begin_inset Newline newline
28231 \begin_inset Phantom HPhantom
28234 \begin_layout Plain Layout
28235 \begin_inset space ~
28252 \begin_layout Standard
28259 FigBesBeg}[1][1.0]{%
28260 \begin_inset Newline newline
28264 \begin_inset Phantom HPhantom
28267 \begin_layout Plain Layout
28268 \begin_inset space ~
28283 \begin_inset Newline newline
28287 \begin_inset Phantom HPhantom
28290 \begin_layout Plain Layout
28291 \begin_inset space ~
28306 \begin_inset Newline newline
28310 \begin_inset Phantom HPhantom
28313 \begin_layout Plain Layout
28314 \begin_inset space ~
28324 renewenvironment{figure}[1]{
28326 begin{SCfigure}[#1]##1}{
28331 \begin_layout Standard
28339 \begin_inset Newline newline
28343 \begin_inset Phantom HPhantom
28346 \begin_layout Plain Layout
28347 \begin_inset space ~
28362 \begin_inset Newline newline
28366 \begin_inset Phantom HPhantom
28369 \begin_layout Plain Layout
28370 \begin_inset space ~
28387 \begin_layout Standard
28389 \begin_inset CommandInset line
28400 \begin_layout Standard
28401 The commands allow you to redefine the floats so that the caption is set
28403 For figure floats use the command
28406 \begin_layout Standard
28414 \begin_layout Standard
28415 in \SpecialChar TeX
28416 Code before the float.
28417 And insert the command
28420 \begin_layout Standard
28428 \begin_layout Standard
28429 in \SpecialChar TeX
28430 Code at the point where you want to get back to the original float definitio
28434 \begin_layout Standard
28435 For table floats use the corresponding commands
28438 \begin_layout Standard
28452 \begin_layout Standard
28454 \begin_inset space ~
28458 \begin_inset CommandInset ref
28460 reference "fig:cap-beside-fig"
28465 \begin_inset space ~
28469 \begin_inset CommandInset ref
28471 reference "tab:cap-beside-tab"
28475 are examples where the caption is set beside.
28478 \begin_layout Standard
28479 You can see in the examples that the caption text appears at the top of
28480 the floats for table floats and at the bottom for figure floats.
28481 To change this, you can use the command
28484 \begin_layout Standard
28489 sidecaptionvpos{float type}{placement}
28492 \begin_layout Standard
28493 in the document preamble or in \SpecialChar TeX
28494 Code before the float.
28495 The float type is either
28503 , the placement can be
28504 \begin_inset Quotes eld
28512 \begin_inset Quotes erd
28516 \begin_inset Quotes eld
28524 \begin_inset Quotes erd
28528 \begin_inset Quotes eld
28536 \begin_inset Quotes erd
28540 To have for example the caption of figure floats vertically centered, use
28544 \begin_layout Standard
28549 sidecaptionvpos{figure}{c}
28552 \begin_layout Standard
28553 This was used for Figure
28554 \begin_inset space ~
28558 \begin_inset CommandInset ref
28560 reference "fig:cap-beside-fig-2"
28567 \begin_layout Standard
28568 \begin_inset VSpace medskip
28574 \begin_layout Standard
28575 The default caption width is the width of the image/table.
28576 For thin image/tables, like in Table
28577 \begin_inset space ~
28581 \begin_inset CommandInset ref
28583 reference "tab:cap-beside-tab"
28587 , this leads to captions that are too thin.
28588 You can increase the width by specifying a factor that will be multiplied
28589 with the image/table width to get the caption width.
28590 The caption width will automatically be recalculated in case it would protrude
28591 over the page or column margin due to the specified width.
28596 can either be given as optional argument for
28605 \begin_layout Standard
28613 \begin_layout Standard
28614 or in the definition of
28624 with another value.
28625 If you do the latter, your factor will be the default if
28631 is used without an argument.
28633 \begin_inset space ~
28637 \begin_inset CommandInset ref
28639 reference "tab:cap-beside-tab-wider"
28643 the factor 5 was used.
28646 \begin_layout Standard
28647 \begin_inset Note Greyedout
28650 \begin_layout Plain Layout
28655 For floats with captions set beside, you cannot use the float placement
28659 \begin_inset space ~
28664 because it is not supported by
28676 \begin_layout Standard
28677 \begin_inset VSpace medskip
28680 For more information about the package
28684 we refer to its documentation
28685 \begin_inset CommandInset citation
28694 \begin_layout Standard
28695 \begin_inset Note Greyedout
28698 \begin_layout Plain Layout
28703 The \SpecialChar LaTeX
28709 \begin_inset Index idx
28712 \begin_layout Plain Layout
28719 , described in section
28720 \begin_inset space ~
28724 \begin_inset CommandInset ref
28726 reference "subsec:Reference-Position"
28730 , has no effect on floats with the caption set beside.
28738 \begin_layout Standard
28742 \begin_layout Plain Layout
28754 \begin_layout Standard
28755 \begin_inset Float figure
28760 \begin_layout Plain Layout
28761 \begin_inset Graphics
28762 filename clipart/escher-lsd.eps
28764 scaleBeforeRotation
28771 \begin_layout Plain Layout
28772 \begin_inset Caption Standard
28774 \begin_layout Plain Layout
28775 \begin_inset CommandInset label
28777 name "fig:cap-beside-fig"
28781 This is a caption beside a figure.
28794 \begin_layout Standard
28798 \begin_layout Plain Layout
28810 \begin_layout Standard
28814 \begin_layout Plain Layout
28826 \begin_layout Standard
28827 \begin_inset Float table
28832 \begin_layout Plain Layout
28833 \begin_inset Caption Standard
28835 \begin_layout Plain Layout
28836 \begin_inset CommandInset label
28838 name "tab:cap-beside-tab"
28842 This is a caption beside a table.
28850 \begin_layout Plain Layout
28851 \begin_inset Tabular
28852 <lyxtabular version="3" rows="4" columns="5">
28853 <features tabularvalignment="middle">
28854 <column alignment="center" valignment="top">
28855 <column alignment="center" valignment="top">
28856 <column alignment="center" valignment="top">
28857 <column alignment="center" valignment="top">
28858 <column alignment="center" valignment="top">
28860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28863 \begin_layout Plain Layout
28869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28872 \begin_layout Plain Layout
28878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28881 \begin_layout Plain Layout
28887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28890 \begin_layout Plain Layout
28896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28899 \begin_layout Plain Layout
28907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28910 \begin_layout Plain Layout
28916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28919 \begin_layout Plain Layout
28925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28928 \begin_layout Plain Layout
28934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28937 \begin_layout Plain Layout
28943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28946 \begin_layout Plain Layout
28954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28957 \begin_layout Plain Layout
28963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28966 \begin_layout Plain Layout
28972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28975 \begin_layout Plain Layout
28981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28984 \begin_layout Plain Layout
28990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28993 \begin_layout Plain Layout
29001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29004 \begin_layout Plain Layout
29010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29013 \begin_layout Plain Layout
29019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29022 \begin_layout Plain Layout
29028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29031 \begin_layout Plain Layout
29037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29040 \begin_layout Plain Layout
29059 \begin_layout Standard
29063 \begin_layout Plain Layout
29075 \begin_layout Standard
29079 \begin_layout Plain Layout
29092 \begin_layout Plain Layout
29096 sidecaptionvpos{figure}{c}
29102 \begin_inset Float figure
29107 \begin_layout Plain Layout
29108 \begin_inset Graphics
29109 filename clipart/escher-lsd.eps
29111 scaleBeforeRotation
29118 \begin_layout Plain Layout
29119 \begin_inset Caption Standard
29121 \begin_layout Plain Layout
29122 \begin_inset CommandInset label
29124 name "fig:cap-beside-fig-2"
29128 This is a vertically centered caption beside a figure.
29141 \begin_layout Standard
29145 \begin_layout Plain Layout
29157 \begin_layout Standard
29161 \begin_layout Plain Layout
29173 \begin_layout Standard
29174 \begin_inset Float table
29179 \begin_layout Plain Layout
29180 \begin_inset Caption Standard
29182 \begin_layout Plain Layout
29183 \begin_inset CommandInset label
29185 name "tab:cap-beside-tab-wider"
29189 This caption is wider than the one in Table
29190 \begin_inset space ~
29194 \begin_inset CommandInset ref
29196 reference "tab:cap-beside-tab"
29208 \begin_layout Plain Layout
29209 \begin_inset Tabular
29210 <lyxtabular version="3" rows="4" columns="5">
29211 <features tabularvalignment="middle">
29212 <column alignment="center" valignment="top">
29213 <column alignment="center" valignment="top">
29214 <column alignment="center" valignment="top">
29215 <column alignment="center" valignment="top">
29216 <column alignment="center" valignment="top">
29218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29221 \begin_layout Plain Layout
29227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29230 \begin_layout Plain Layout
29236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29239 \begin_layout Plain Layout
29245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29248 \begin_layout Plain Layout
29254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29257 \begin_layout Plain Layout
29265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29268 \begin_layout Plain Layout
29274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29277 \begin_layout Plain Layout
29283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29286 \begin_layout Plain Layout
29292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29295 \begin_layout Plain Layout
29301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29304 \begin_layout Plain Layout
29312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29315 \begin_layout Plain Layout
29321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29324 \begin_layout Plain Layout
29330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29333 \begin_layout Plain Layout
29339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29342 \begin_layout Plain Layout
29348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29351 \begin_layout Plain Layout
29359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29362 \begin_layout Plain Layout
29368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29371 \begin_layout Plain Layout
29377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29380 \begin_layout Plain Layout
29386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29389 \begin_layout Plain Layout
29395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29398 \begin_layout Plain Layout
29417 \begin_layout Standard
29421 \begin_layout Plain Layout
29433 \begin_layout Standard
29437 \begin_layout Plain Layout
29447 \begin_inset Note Note
29450 \begin_layout Plain Layout
29451 The following will be displayed when the \SpecialChar LaTeX
29464 \begin_layout Standard
29465 You need to install the \SpecialChar LaTeX
29470 to see the following part of this section in the output.
29473 \begin_layout Standard
29477 \begin_layout Plain Layout
29489 \begin_layout Section
29491 \begin_inset Index idx
29494 \begin_layout Plain Layout
29495 Floats ! Float Lists
29503 \begin_layout Standard
29504 Similar to the table of contents where the sections of the document are
29505 listed, there are listings for all float types, like the figures of the
29507 You can insert them via the
29509 Insert\SpecialChar menuseparator
29511 \begin_inset space ~
29515 \begin_inset space ~
29523 \begin_layout Standard
29524 The list entries are the float captions or its short title, the float number,
29525 and the page number where they appear in the document.
29528 \begin_layout Standard
29529 You can find the list of figures and tables at the end of this document.
29532 \begin_layout Chapter
29536 \begin_layout Section
29539 \begin_inset Index idx
29542 \begin_layout Plain Layout
29543 Notes ! \SpecialChar LyX
29552 \begin_layout Standard
29553 Notes are inserted with the toolbar button
29561 Insert\SpecialChar menuseparator
29565 There are three types of notes:
29568 \begin_layout Description
29571 \begin_inset space ~
29574 Note This note type is for internal notes that won't appear in the output.
29575 Its note-box looks like this:
29576 \begin_inset Newline newline
29580 \begin_inset Newline newline
29584 \begin_inset Graphics
29585 filename clipart/LyXNoteImageQt4.png
29588 scaleBeforeRotation
29593 \begin_inset Note Note
29596 \begin_layout Plain Layout
29597 This is text in a note box that doesn't appear in the output.
29605 \begin_layout Description
29606 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29608 when you export the document to \SpecialChar LaTeX
29611 File\SpecialChar menuseparator
29612 Export\SpecialChar menuseparator
29614 (pdflatex) / (plain)
29617 Its note-box looks like this:
29618 \begin_inset Newline newline
29622 \begin_inset Newline newline
29626 \begin_inset Graphics
29627 filename clipart/CommentNoteImageQt4.png
29630 scaleBeforeRotation
29635 \begin_inset Note Comment
29638 \begin_layout Plain Layout
29639 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29648 \begin_layout Description
29650 \begin_inset space ~
29653 Out This note will appear in the output as grey text.
29654 Its note-box looks like this:
29655 \begin_inset Newline newline
29659 \begin_inset Newline newline
29663 \begin_inset Graphics
29664 filename clipart/GreyedOutNoteImageQt4.png
29667 scaleBeforeRotation
29672 \begin_inset Newline newline
29679 \begin_layout Plain Layout
29683 renewenvironment{lyxgreyedout}
29686 \begin_layout Plain Layout
29690 textcolor[gray]{0.8}
29700 \begin_inset Note Greyedout
29703 \begin_layout Plain Layout
29708 \begin_layout Plain Layout
29709 This is an example footnote within a greyed out note.
29714 of a comment that appears in the output as grey text.
29723 \begin_layout Plain Layout
29727 renewenvironment{lyxgreyedout}
29730 \begin_layout Plain Layout
29744 \begin_inset Note Note
29747 \begin_layout Plain Layout
29748 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29750 because greyed out notes are redefined in the preamble of this document,
29751 as described below, to have blue text.
29757 \begin_inset Newline newline
29761 \begin_inset Newline newline
29764 As you can see in the example, the first line of greyed out notes is a bit
29765 indented and greyed out notes can have footnotes.
29768 \begin_layout Standard
29769 \begin_inset VSpace bigskip
29772 When you use the toolbar button
29782 \begin_inset space ~
29788 You can switch between the three note types by right-clicking on the note-box.
29793 If you want to turn existing text into a note, mark it and click on the
29807 To change a note to text, press the backspace key when the cursor is in
29808 the first position of a note, or press the delete key when the cursor is
29809 in the very last position of the note, respectively.
29812 \begin_layout Standard
29813 \begin_inset VSpace bigskip
29816 You can change the text color of the greyed out notes in the menu
29818 Document\SpecialChar menuseparator
29819 Settings\SpecialChar menuseparator
29825 \begin_layout Section
29827 \begin_inset CommandInset label
29829 name "sec:Footnotes"
29834 \begin_inset Index idx
29837 \begin_layout Plain Layout
29844 \begin_inset Index idx
29847 \begin_layout Plain Layout
29856 \begin_layout Standard
29857 Footnotes can be inserted using the toolbar button
29860 arg "footnote-insert"
29865 Insert\SpecialChar menuseparator
29869 You will then see the following footnote-box:
29870 \begin_inset Graphics
29871 filename clipart/footnoteQt4.png
29873 scaleBeforeRotation
29881 where you can enter the footnote text.
29882 If you want to turn existing text into a footnote, mark it and click on
29908 key when the cursor is in the first position of a
29920 key when the cursor is in the very last position of the
29931 \begin_layout Standard
29932 Here is an example footnote:
29940 \begin_layout Plain Layout
29941 \begin_inset CommandInset label
29943 name "foot:This-is-an"
29947 This is an example footnote.
29960 \begin_layout Plain Layout
29964 newcounter{MyRepeatFoot}
29967 \begin_layout Plain Layout
29971 setcounter{MyRepeatFoot}{
29981 \begin_layout Standard
29982 The footnote will appear in the output as a superscript number at the text
29983 position where the footnote box is placed.
29984 The footnote text is placed at the bottom of the current page.
29985 The footnote number is calculated by \SpecialChar LaTeX
29986 ; the numbers are consecutive.
29987 Whether the footnote number is reset for every chapter depends on your
29991 \begin_layout Standard
29992 Footnotes can be referenced like floats: Insert a label into the footnote
29993 and cross-reference this label in the text as described in section
29994 \begin_inset space ~
29998 \begin_inset CommandInset ref
30000 reference "sec:Referencing-Floats"
30005 \begin_inset Newline newline
30008 This is a cross-reference of Footnote
30009 \begin_inset space ~
30013 \begin_inset CommandInset ref
30015 reference "foot:This-is-an"
30022 \begin_layout Standard
30023 \begin_inset VSpace defskip
30026 Footnotes in title environments are usually not numbered with symbols and
30027 they cannot contain several paragraphs.
30028 See for example the footnote in the titling of this document.
30031 \begin_layout Standard
30032 \begin_inset VSpace defskip
30035 Footnotes in tables are not printed by \SpecialChar LaTeX
30036 due to technical reasons.
30037 However there exists another method to print them: Instead of the footnote
30044 is inserted as \SpecialChar TeX
30046 The text of the footnote is entered as an argument of the \SpecialChar TeX
30055 \begin_inset Newline newline
30058 This was done for the following table with the command
30061 \begin_layout Standard
30068 Printed table footnote.
30073 \begin_layout Standard
30074 \begin_inset Tabular
30075 <lyxtabular version="3" rows="2" columns="1">
30076 <features tabularvalignment="middle">
30077 <column alignment="center" valignment="top">
30079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30082 \begin_layout Plain Layout
30083 This an example text.
30087 \begin_layout Plain Layout
30088 This footnote will not be printed!
30100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30103 \begin_layout Plain Layout
30104 This an example text.
30108 \begin_layout Plain Layout
30131 \begin_layout Plain Layout
30140 Printed table footnote.
30144 \begin_layout Plain Layout
30154 \begin_layout Standard
30155 Footnotes in longtables are described in section
30156 \begin_inset space ~
30160 \begin_inset CommandInset ref
30162 reference "subsec:Footnotes-in-Longtables"
30169 \begin_layout Standard
30170 Footnotes in minipage boxes are printed, but inside the box and with a different
30171 numbering because a minipage box is like a page inside a page.
30172 (For more about minipages, see section
30173 \begin_inset space ~
30177 \begin_inset CommandInset ref
30179 reference "sec:Minipages"
30183 .) To get a footnote in the minipage that is output at the bottom of the
30184 page like normal footnotes, also use the method of
30199 \begin_layout Standard
30200 \begin_inset Box Frameless
30210 height_special "totalheight"
30215 backgroundcolor "none"
30218 \begin_layout Plain Layout
30219 This an example text in a minipage.
30223 \begin_layout Plain Layout
30224 Footnote in the minipage.
30232 \begin_layout Plain Layout
30233 This an example text in a minipage.
30237 \begin_layout Plain Layout
30254 \begin_layout Standard
30258 \begin_layout Plain Layout
30267 Footnote outside the minipage.
30271 \begin_layout Plain Layout
30281 \begin_layout Standard
30282 \begin_inset VSpace defskip
30288 \begin_layout Standard
30289 To refer to the same footnote several times without printing the footnote
30290 text every time, use the command
30294 footnotemark[number]
30296 in \SpecialChar TeX
30298 \begin_inset Newline newline
30301 As you do not know the number of the repeating footnote while you are writing
30302 the text, you have to store its number.
30303 For the following footnote mark example, these commands were inserted in
30305 code after Footnote
30306 \begin_inset space ~
30310 \begin_inset CommandInset ref
30312 reference "foot:This-is-an"
30316 to store the footnote number:
30319 \begin_layout Standard
30324 newcounter{MyRepeatFoot}
30325 \begin_inset Newline newline
30330 setcounter{MyRepeatFoot}{
30335 \begin_layout Standard
30336 The footnote mark was then created with this command:
30339 \begin_layout Standard
30349 \begin_layout Standard
30350 Here is a repeated footnote:
30358 \begin_layout Plain Layout
30372 \begin_layout Standard
30373 If you want to repeat the previous footnote, you can omit the storage of
30374 the footnote number and just use this command instead:
30377 \begin_layout Standard
30387 \begin_layout Standard
30388 Here is another repeated footnote:
30396 \begin_layout Plain Layout
30410 \begin_layout Subsection
30412 \begin_inset CommandInset label
30414 name "subsec:Footnote-Numbering"
30419 \begin_inset Index idx
30422 \begin_layout Plain Layout
30423 Footnotes ! Numbering
30431 \begin_layout Standard
30432 To reset the footnote number back to 1 after each section
30434 , add this command to your document preamble:
30437 \begin_layout Standard
30442 @addtoreset{footnote}{section}
30445 \begin_layout Standard
30446 \begin_inset VSpace bigskip
30449 The following preamble command changes the footnote numbering style to small
30453 \begin_layout Standard
30465 \begin_layout Standard
30469 \begin_layout Plain Layout
30482 This is a footnote with roman numbering:
30486 \begin_layout Plain Layout
30487 This is an example footnote with roman numbering.
30495 \begin_layout Standard
30496 To change the numbering style to capital roman numerals replace in the command
30511 \begin_inset Quotes eld
30515 \begin_inset Quotes erd
30518 footnotes with capital or small Latin letters use
30532 \begin_inset Quotes eld
30536 \begin_inset Quotes erd
30539 footnotes with symbols use
30548 \begin_layout Standard
30549 \begin_inset Note Greyedout
30552 \begin_layout Plain Layout
30557 You can only number 26 footnotes with Latin letters, because this numbering
30558 is limited to single letters.
30564 \begin_inset Newline newline
30568 \begin_inset Note Greyedout
30571 \begin_layout Plain Layout
30576 You can only number 9 footnotes with symbols.
30584 \begin_layout Standard
30585 To return to the default numbering style after you have changed to another
30598 in the command above.
30602 \begin_layout Plain Layout
30618 \begin_layout Standard
30619 \begin_inset VSpace bigskip
30625 \begin_layout Standard
30626 If you want to have footnotes numbered in the scheme
30627 \begin_inset Quotes eld
30631 \begin_inset Quotes erd
30634 , add the following command to your document preamble:
30637 \begin_layout Standard
30642 numberwithin{footnote}{chapter}
30645 \begin_layout Standard
30646 To be able to use the command
30655 \begin_inset space ~
30660 in the document settings the option
30663 \begin_inset space ~
30667 \begin_inset space ~
30671 \begin_inset space ~
30679 \begin_layout Standard
30683 \begin_layout Plain Layout
30687 numberwithin{footnote}{chapter}
30692 This is another example footnote:
30698 \begin_layout Plain Layout
30699 This is a footnote numbered in the scheme
30700 \begin_inset Quotes eld
30704 \begin_inset Quotes erd
30718 \begin_layout Plain Layout
30734 \begin_layout Standard
30735 \begin_inset Note Greyedout
30738 \begin_layout Plain Layout
30749 always prints out the footnote number as arabic number; previous redefinitions
30750 to get non-arabic numbers are overwritten.
30758 \begin_layout Standard
30759 So to get for example the scheme
30760 \begin_inset Quotes eld
30766 \begin_inset Quotes erd
30769 , use this command instead of
30778 \begin_layout Standard
30792 \begin_layout Subsection
30794 \begin_inset Index idx
30797 \begin_layout Plain Layout
30798 Footnotes ! Placement
30806 \begin_layout Standard
30807 If you have several footnotes in one page, they appear without vertical
30808 space between them at the bottom of the page.
30809 To make them more readable you can e.
30810 \begin_inset space \thinspace{}
30814 \begin_inset space \space{}
30818 \begin_inset space \thinspace{}
30821 mm space with the following preamble command:
30824 \begin_layout Standard
30834 \begin_inset Newline newline
30848 \begin_layout Standard
30849 \begin_inset VSpace bigskip
30852 In a two-column document the footnotes appear at the bottom of every column,
30854 \begin_inset space ~
30858 \begin_inset CommandInset ref
30860 reference "fig:Standard-footnote-placement"
30865 If the footnotes should only appear at the bottom of the right column,
30867 \begin_inset space ~
30871 \begin_inset CommandInset ref
30873 reference "fig:Footnote-placement-in"
30877 , use the \SpecialChar LaTeX
30883 \begin_inset Index idx
30886 \begin_layout Plain Layout
30888 -packages ! ftnright
30893 with this command in the document preamble:
30896 \begin_layout Standard
30901 usepackage{ftnright}
30904 \begin_layout Standard
30905 \begin_inset Float figure
30911 \begin_layout Plain Layout
30915 \begin_layout Plain Layout
30925 \begin_inset Graphics
30926 filename clipart/without_fntright.pdf
30928 scaleBeforeRotation
30936 \begin_layout Plain Layout
30946 \begin_layout Plain Layout
30947 \begin_inset Caption Standard
30949 \begin_layout Plain Layout
30950 \begin_inset CommandInset label
30952 name "fig:Standard-footnote-placement"
30956 Standard footnote placement in two-column documents.
30969 \begin_layout Standard
30970 \begin_inset Float figure
30976 \begin_layout Plain Layout
30980 \begin_layout Plain Layout
30990 \begin_inset Graphics
30991 filename clipart/with_fntright.pdf
30993 scaleBeforeRotation
31001 \begin_layout Plain Layout
31011 \begin_layout Plain Layout
31012 \begin_inset Caption Standard
31014 \begin_layout Plain Layout
31015 \begin_inset CommandInset label
31017 name "fig:Footnote-placement-in"
31021 Footnote placement in two-column documents when the \SpecialChar LaTeX
31039 \begin_layout Standard
31040 \begin_inset VSpace bigskip
31043 In some scientific literature it is usual to collect the footnotes and print
31044 them in a separate paragraph at the end of a section, as in Figure
31045 \begin_inset space ~
31049 \begin_inset CommandInset ref
31051 reference "fig:Endnotes"
31056 They are then called
31057 \begin_inset Quotes eld
31061 \begin_inset Quotes erd
31065 \begin_inset Index idx
31068 \begin_layout Plain Layout
31074 To use endnotes instead of footnotes in your document, load in the menu
31077 Document\SpecialChar menuseparator
31078 Settings\SpecialChar menuseparator
31084 \begin_inset space ~
31088 \begin_inset space ~
31094 To insert the collected footnotes, insert the command
31097 \begin_layout Standard
31105 \begin_layout Standard
31106 in \SpecialChar TeX
31107 Code at the end of a section or chapter.
31110 \begin_layout Standard
31111 \begin_inset Float figure
31116 \begin_layout Plain Layout
31121 \begin_layout Plain Layout
31131 \begin_inset Graphics
31132 filename clipart/endnotes.pdf
31133 scaleBeforeRotation
31141 \begin_layout Plain Layout
31151 \begin_layout Plain Layout
31152 \begin_inset Caption Standard
31154 \begin_layout Plain Layout
31155 \begin_inset CommandInset label
31157 name "fig:Endnotes"
31161 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31175 \begin_layout Standard
31176 \begin_inset VSpace medskip
31179 The paragraph heading for the endnotes isn't automatically translated into
31180 the document language, this must be done manually.
31181 The following preamble command translates the default English
31182 \begin_inset Quotes eld
31186 \begin_inset Quotes erd
31190 \begin_inset Quotes eld
31194 \begin_inset Quotes erd
31200 \begin_layout Standard
31207 notesname}{Anmerkungen}
31210 \begin_layout Standard
31211 \begin_inset VSpace medskip
31214 The numbering of endnotes can be changed like the footnote numbering as
31215 described in section
31216 \begin_inset space ~
31220 \begin_inset CommandInset ref
31222 reference "subsec:Footnote-Numbering"
31226 ; just replace the command
31239 To reset the endnote number use the command
31245 as described in section
31246 \begin_inset space ~
31250 \begin_inset CommandInset ref
31252 reference "subsec:Footnote-Numbering"
31256 and replace the command parameter
31267 \begin_layout Standard
31268 For endnotes there is the command
31272 endnotemark[number]
31274 similar to the command
31280 , that is described in section
31281 \begin_inset space ~
31285 \begin_inset CommandInset ref
31287 reference "sec:Footnotes"
31294 \begin_layout Standard
31295 \begin_inset VSpace bigskip
31298 Footnotes can also be placed in the page margin and the footnote text alignment
31299 can be changed, see the \SpecialChar LaTeX
31305 \begin_inset Index idx
31308 \begin_layout Plain Layout
31310 -packages ! footmisc
31316 \begin_inset CommandInset citation
31322 for more information about this.
31325 \begin_layout Standard
31326 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31328 \begin_inset CommandInset citation
31330 key "latexcompanion,latexguide,latexbook"
31340 \begin_inset Index idx
31343 \begin_layout Plain Layout
31345 -packages ! KOMA-Script
31350 document class, you can adjust all footnote settings using class-specific
31352 \begin_inset CommandInset citation
31361 \begin_layout Section
31363 \begin_inset Index idx
31366 \begin_layout Plain Layout
31367 Notes ! Margin Notes
31375 \begin_layout Standard
31376 Margin notes look and behave in \SpecialChar LyX
31378 They are inserted via the menu
31380 Insert\SpecialChar menuseparator
31382 \begin_inset space ~
31387 or the toolbar button
31390 arg "marginalnote-insert"
31404 \begin_inset Quotes eld
31408 \begin_inset Quotes erd
31411 appears where you can enter the text of the margin note.
31414 \begin_layout Standard
31415 At the side is an example margin note.
31420 \begin_inset Marginal
31423 \begin_layout Plain Layout
31424 This is a margin note.
31432 \begin_layout Standard
31433 Margin notes appear at the right side in single-sided documents.
31434 In double-sided documents they appear in the outer margin – left on even
31435 pages, right on odd pages.
31436 The text of margin notes is aligned opposite to the outer margin – right-aligne
31437 d when the note appears in the left margin.
31438 The first line of the margin note is placed at the position of the text
31439 line where it is inserted in the document.
31442 \begin_layout Standard
31443 \begin_inset VSpace bigskip
31446 To place the margin note in the inner margin, add the command
31449 \begin_layout Standard
31457 \begin_layout Standard
31458 in \SpecialChar TeX
31459 Code before a margin note.
31460 The new placement is valid for all subsequent margin notes.
31465 \begin_layout Plain Layout
31475 \begin_inset Marginal
31478 \begin_layout Plain Layout
31479 This is a margin note in the inner margin.
31487 \begin_inset Newline newline
31493 \begin_inset Note Greyedout
31496 \begin_layout Plain Layout
31501 There is often not enough space in the inner margin so that the notes are
31502 not correctly displayed in the output.
31510 \begin_layout Standard
31511 To return to the default placement insert the command
31514 \begin_layout Standard
31522 \begin_layout Standard
31523 in \SpecialChar TeX
31528 \begin_layout Plain Layout
31538 \begin_inset Note Greyedout
31541 \begin_layout Plain Layout
31546 The command is ignored when it is within a paragraph where also the command
31561 \begin_layout Standard
31562 \begin_inset VSpace bigskip
31569 \begin_inset Marginal
31572 \begin_layout Plain Layout
31573 AVeryLongMarginParWord that isn't hyphenated.
31581 Similar to the case described in section
31582 \begin_inset space ~
31586 \begin_inset CommandInset ref
31588 reference "subsec:Multiple-Lines-in"
31592 , long words cannot be hyphenated when they are the first word in a margin
31594 To avoid this, insert 0
31595 \begin_inset space \thinspace{}
31598 pt horizontal space before the word
31603 \begin_inset Marginal
31606 \begin_layout Plain Layout
31607 \begin_inset space \hspace*{}
31611 AVeryLongMarginParWord that is hyphenated.
31619 \begin_layout Standard
31620 \begin_inset VSpace bigskip
31626 \begin_layout Standard
31627 \begin_inset Note Greyedout
31630 \begin_layout Plain Layout
31635 Margin notes can normally not be used inside tables, floats, and footnotes.
31643 \begin_layout Standard
31644 \begin_inset VSpace bigskip
31650 \begin_layout Standard
31654 \begin_layout Plain Layout
31664 \begin_inset Note Note
31667 \begin_layout Plain Layout
31668 The following section will only be displayed when the \SpecialChar LaTeX
31681 \begin_layout Standard
31682 This restriction can be evaded by using the \SpecialChar LaTeX
31688 \begin_inset Index idx
31691 \begin_layout Plain Layout
31693 -packages ! marginnote
31699 By adding these two lines to your document preamble, the command used by
31701 for margin notes is redefined to use the command provided by the
31708 \begin_layout Standard
31713 usepackage{marginnote}
31714 \begin_inset Newline newline
31726 \begin_layout Standard
31727 This is also used in this document because
31731 has another useful feature: You can set a vertical offset for the note.
31732 This is often needed when too many margin notes are too close together
31733 or for a better page layout.
31734 The offset is set in \SpecialChar LyX
31735 as \SpecialChar TeX
31736 Code directly after the margin note in the scheme
31739 \begin_layout Standard
31745 \begin_layout Standard
31746 where the offset is a length with one of the units listed in Table
31747 \begin_inset space ~
31751 \begin_inset CommandInset ref
31753 reference "tab:Units"
31758 A negative value shifts the note up, a positive value shifts it down.
31762 For example the margin note beside this text line is shifted up 1.5
31763 \begin_inset space \thinspace{}
31766 cm with the \SpecialChar TeX
31768 \begin_inset Quotes eld
31778 \begin_inset Quotes erd
31782 \begin_inset Marginal
31785 \begin_layout Plain Layout
31786 This margin note is shifted up 1.5
31787 \begin_inset space \thinspace{}
31790 cm from its original position.
31802 \begin_layout Plain Layout
31812 \begin_layout Standard
31813 \begin_inset VSpace medskip
31820 you can also change the alignment of the text in the margin note.
31821 For example the commands
31824 \begin_layout Standard
31831 raggedleftmarginnote}{
31834 \begin_inset Newline newline
31841 raggedrightmarginnote}{
31846 \begin_layout Standard
31847 set the alignment to centered.
31852 raggedleftmarginnote
31854 denotes margin notes that appear at the left side.
31861 \begin_layout Plain Layout
31867 raggedleftmarginnote}{
31872 \begin_layout Plain Layout
31878 raggedrightmarginnote}{
31886 \begin_inset Marginal
31889 \begin_layout Plain Layout
31890 The text of this margin note is centered.
31901 \begin_layout Standard
31908 raggedleftmarginnote}{
31911 \begin_inset Newline newline
31918 raggedrightmarginnote}{
31927 \begin_layout Plain Layout
31933 raggedleftmarginnote}{
31938 \begin_layout Plain Layout
31944 raggedrightmarginnote}{
31954 \begin_layout Standard
31955 \begin_inset VSpace medskip
31958 For the other features of
31962 refer to its documentation
31963 \begin_inset CommandInset citation
31972 \begin_layout Standard
31973 \begin_inset VSpace bigskip
31976 You can adjust the layout of margin notes by changing its definition.
31977 To create for example a header for all margin notes with the underlined,
31978 sans-serif, and bold header text
31979 \begin_inset Quotes eld
31991 \begin_inset Quotes erd
31994 , add this to your document preamble:
31997 \begin_layout Standard
32007 \begin_inset Newline newline
32017 \begin_inset Newline newline
32021 \begin_inset Phantom HPhantom
32024 \begin_layout Plain Layout
32027 \begin_inset space ~
32043 underbar{Attention!}}}%
32044 \begin_inset Newline newline
32048 \begin_inset Phantom HPhantom
32051 \begin_layout Plain Layout
32054 \begin_inset space ~
32071 \begin_layout Standard
32078 \begin_layout Plain Layout
32089 \begin_layout Plain Layout
32100 \begin_layout Plain Layout
32108 underbar{Attention!}}}%
32111 \begin_layout Plain Layout
32125 \begin_inset Marginal
32128 \begin_layout Plain Layout
32129 This is a margin note with a defined heading.
32141 \begin_layout Plain Layout
32155 \begin_layout Plain Layout
32172 \begin_inset Note Note
32175 \begin_layout Plain Layout
32176 The margin note format is changed only for this example.
32184 \begin_layout Standard
32188 \begin_layout Plain Layout
32198 \begin_inset Note Note
32201 \begin_layout Plain Layout
32202 The following will be displayed when the \SpecialChar LaTeX
32215 \begin_layout Standard
32216 You need to install the \SpecialChar LaTeX
32221 to see the following part of this section in the output.
32224 \begin_layout Standard
32228 \begin_layout Plain Layout
32240 \begin_layout Chapter
32244 \begin_layout Section
32246 \begin_inset Index idx
32249 \begin_layout Plain Layout
32250 Boxes ! Introduction
32258 \begin_layout Standard
32259 Boxes are used to format a block of text.
32260 Boxes can be used to write documents with multiple languages, see section
32261 \begin_inset space ~
32265 \begin_inset CommandInset ref
32267 reference "sec:Minipages"
32271 , to frame texts, see section
32272 \begin_inset space ~
32276 \begin_inset CommandInset ref
32278 reference "sec:Decoration"
32282 , to prevent words from being hyphenated, see section
32283 \begin_inset space ~
32287 \begin_inset CommandInset ref
32289 reference "sec:Prevent-Hyphenation"
32293 , to align text, see section
32294 \begin_inset space ~
32298 \begin_inset CommandInset ref
32300 reference "subsec:Vertical-Alignment"
32304 , or to set the background color of texts, see section
32305 \begin_inset space ~
32309 \begin_inset CommandInset ref
32311 reference "sec:Colored-Boxes"
32318 \begin_layout Standard
32319 Boxes can be inserted with the menu
32321 Insert\SpecialChar menuseparator
32324 or the toolbar button
32327 arg "box-insert Frameless"
32331 A grey box with the label
32336 \begin_inset Graphics
32337 filename clipart/BoxInsetDefaultQt4.png
32339 scaleBeforeRotation
32344 The box type can be specified by right-clicking on the box and selecting
32350 The box dialog offers the
32353 \begin_inset space ~
32375 is the default for new boxes and is explained in section
32376 \begin_inset space ~
32380 \begin_inset CommandInset ref
32382 reference "sec:Minipages"
32390 is described in section
32391 \begin_inset space ~
32395 \begin_inset CommandInset ref
32397 reference "sec:Parboxes"
32406 \begin_inset CommandInset ref
32408 reference "sec:Prevent-Hyphenation"
32415 \begin_layout Standard
32416 Boxes are not numbered and can therefore not be referenced like floats or
32420 \begin_layout Standard
32421 \begin_inset Note Greyedout
32424 \begin_layout Plain Layout
32429 Boxes must not be the item in an
32445 \begin_layout Standard
32446 \begin_inset Note Greyedout
32449 \begin_layout Plain Layout
32454 For an unknown reason you can only set the
32457 \begin_inset space ~
32466 when you use a framed box.
32470 \begin_inset space ~
32475 type and without frames are explained in section
32476 \begin_inset space ~
32480 \begin_inset CommandInset ref
32482 reference "sec:Prevent-Hyphenation"
32494 \begin_layout Section
32496 \begin_inset CommandInset label
32498 name "sec:Box-Dialog"
32503 \begin_inset Index idx
32506 \begin_layout Plain Layout
32515 \begin_layout Subsection
32517 \begin_inset Index idx
32520 \begin_layout Plain Layout
32529 \begin_layout Standard
32530 In the box dialog you can adjust the box geometry in the fields
32539 The available units for the geometry are explained in Table
32540 \begin_inset space ~
32544 \begin_inset CommandInset ref
32546 reference "tab:Units"
32555 offers the following additional sizes:
32558 \begin_layout Description
32559 Depth This is the plain text
32560 \begin_inset Quotes eld
32564 \begin_inset Quotes erd
32568 It ignores the total depth when there are multiple text lines in the box:
32569 \begin_inset Newline newline
32573 \begin_inset Newline newline
32577 \begin_inset Newline newline
32581 \begin_inset Box Boxed
32591 height_special "depth"
32596 backgroundcolor "none"
32599 \begin_layout Plain Layout
32601 Box height set to 1
32602 \begin_inset space \thinspace{}
32611 \begin_inset Newline newline
32615 \begin_inset Newline newline
32621 \begin_layout Description
32622 Height This is the height of the text that is inside the box.
32624 \begin_inset space \thinspace{}
32628 \begin_inset space \space{}
32631 2 for this size will set the box height to 2
32632 \begin_inset space ~
32635 times the text height:
32636 \begin_inset Box Boxed
32646 height_special "height"
32651 backgroundcolor "none"
32654 \begin_layout Plain Layout
32656 Box height set to 2
32657 \begin_inset space \thinspace{}
32668 \begin_layout Description
32670 \begin_inset space ~
32673 Height This is the Height
32674 \begin_inset space \thinspace{}
32678 \begin_inset space \thinspace{}
32682 \begin_inset Box Boxed
32692 height_special "totalheight"
32697 backgroundcolor "none"
32700 \begin_layout Plain Layout
32702 Box height set to 1
32703 \begin_inset space \thinspace{}
32707 \begin_inset space ~
32718 \begin_layout Description
32719 Width This sets the width of the box as height:
32720 \begin_inset Box Boxed
32730 height_special "width"
32735 backgroundcolor "none"
32738 \begin_layout Plain Layout
32740 Box height set to 1
32741 \begin_inset space \thinspace{}
32752 \begin_layout Subsection
32754 \begin_inset Index idx
32757 \begin_layout Plain Layout
32766 \begin_layout Standard
32767 When you have chosen an
32770 \begin_inset space ~
32775 , the vertical box alignment can be:
32778 \begin_layout Description
32779 Top This is an example text line.
32781 \begin_inset Box Boxed
32791 height_special "totalheight"
32796 backgroundcolor "none"
32799 \begin_layout Plain Layout
32801 This box is top-aligned.
32806 This is an example text line.
32809 \begin_layout Description
32810 Middle This is an example text line.
32812 \begin_inset Box Boxed
32822 height_special "totalheight"
32827 backgroundcolor "none"
32830 \begin_layout Plain Layout
32832 This box is middle-aligned.
32837 This is an example text line.
32840 \begin_layout Description
32841 Bottom This is an example text line.
32843 \begin_inset Box Boxed
32853 height_special "totalheight"
32858 backgroundcolor "none"
32861 \begin_layout Plain Layout
32863 This box is bottom-aligned.
32868 This is an example text line.
32871 \begin_layout Standard
32872 \begin_inset Note Greyedout
32875 \begin_layout Plain Layout
32880 The vertical box alignment can be lost in the output when you have two
32881 boxes in a line and one has e.
32882 \begin_inset space \thinspace{}
32886 \begin_inset space \space{}
32889 a shadow and the other one not.
32897 \begin_layout Standard
32898 The horizontal box alignment can be set via \SpecialChar LyX
32899 's paragraph dialog when you
32900 set the box into its own paragraph.
32903 \begin_layout Standard
32904 \begin_inset VSpace bigskip
32907 When you have chosen an
32910 \begin_inset space ~
32915 , the box content can be aligned vertically to:
32918 \begin_layout Description
32919 top This is an example text line.
32921 \begin_inset Box Boxed
32931 height_special "totalheight"
32936 backgroundcolor "none"
32939 \begin_layout Plain Layout
32941 This box text is top-aligned.
32946 This is an example text line.
32949 \begin_layout Description
32950 middle This is an example text line.
32952 \begin_inset Box Boxed
32962 height_special "totalheight"
32967 backgroundcolor "none"
32970 \begin_layout Plain Layout
32972 This box text is middle-aligned.
32977 This is an example text line.
32980 \begin_layout Description
32981 bottom This is an example text line.
32983 \begin_inset Box Boxed
32993 height_special "totalheight"
32998 backgroundcolor "none"
33001 \begin_layout Plain Layout
33003 This box text is bottom-aligned.
33008 This is an example text line.
33011 \begin_layout Description
33012 stretch This is an example text line.
33014 \begin_inset Box Boxed
33024 height_special "totalheight"
33029 backgroundcolor "none"
33032 \begin_layout Plain Layout
33037 \begin_layout Plain Layout
33042 \begin_layout Plain Layout
33049 This is an example text line.
33052 \begin_layout Standard
33053 To stretch the box content, it must consist of more than one paragraph.
33054 In the example above every text line is in an own paragraph.
33057 \begin_layout Standard
33058 \begin_inset VSpace bigskip
33061 To align the box content horizontally you can use \SpecialChar LyX
33062 's paragraph dialog when
33066 \begin_inset space ~
33074 \begin_layout Standard
33076 \begin_inset Box Boxed
33086 height_special "totalheight"
33091 backgroundcolor "none"
33094 \begin_layout Plain Layout
33099 \begin_layout Plain Layout
33104 \begin_layout Plain Layout
33114 \begin_layout Standard
33115 If you have not set an
33118 \begin_inset space ~
33123 , you can align the box content horizontally in the box dialog.
33124 \begin_inset Separator parbreak
33130 \begin_layout Standard
33132 \begin_inset Box Boxed
33142 height_special "totalheight"
33147 backgroundcolor "none"
33150 \begin_layout Plain Layout
33151 This box text is horizontally stretched.
33159 \begin_layout Subsection
33161 \begin_inset CommandInset label
33163 name "sec:Decoration"
33168 \begin_inset Index idx
33171 \begin_layout Plain Layout
33180 \begin_layout Standard
33181 The type of the box can be specified in the box dialog in the drop-down
33187 The following types are possible:
33190 \begin_layout Description
33192 \begin_inset space ~
33195 frame Nothing is drawn.
33198 \begin_layout Description
33200 \begin_inset space ~
33204 \begin_inset space ~
33207 frame This draws a rectangular frame around the box.
33208 The frame line thickness can be specified.
33210 \begin_inset Box Boxed
33220 height_special "totalheight"
33225 backgroundcolor "none"
33228 \begin_layout Plain Layout
33238 \begin_layout Description
33240 \begin_inset space ~
33244 \begin_inset space ~
33247 thin This draws an oval frame around the box.
33248 The frame line thickness has the size 0.4
33249 \begin_inset space \thinspace{}
33254 \begin_inset Box ovalbox
33264 height_special "totalheight"
33269 backgroundcolor "none"
33272 \begin_layout Plain Layout
33282 \begin_layout Description
33284 \begin_inset space ~
33288 \begin_inset space ~
33291 thick This draws an oval frame around the box.
33292 The frame line thickness has the size 0.8
33293 \begin_inset space \thinspace{}
33298 \begin_inset Box Ovalbox
33308 height_special "totalheight"
33313 backgroundcolor "none"
33316 \begin_layout Plain Layout
33326 \begin_layout Description
33328 \begin_inset space ~
33331 shadow This draws a rectangular frame with a shadow around the box.
33332 The frame line thickness and the shadow can be specified.
33334 \begin_inset Box Shadowbox
33344 height_special "totalheight"
33349 backgroundcolor "none"
33352 \begin_layout Plain Layout
33362 \begin_layout Description
33364 \begin_inset space ~
33367 background This draws a box with a red background.
33368 Unlike colored boxes
33372 \begin_layout Plain Layout
33374 \begin_inset space \thinspace{}
33378 \begin_inset CommandInset ref
33380 reference "sec:Colored-Boxes"
33389 , it always uses the whole column width and the box is set as its own paragraph.
33391 \begin_inset Box Shaded
33401 height_special "totalheight"
33406 backgroundcolor "none"
33409 \begin_layout Plain Layout
33410 Shaded background box
33418 \begin_layout Description
33420 \begin_inset space ~
33424 \begin_inset space ~
33427 frame This draws a double-line rectangular frame around the box.
33428 The line thickness of the inner frame is 0.75
33429 \begin_inset space \thinspace{}
33433 \begin_inset space ~
33436 thickness, the thickness of the outer frame is 1.5
33437 \begin_inset space \thinspace{}
33441 \begin_inset space ~
33445 The distance between the lines is 1.5
33446 \begin_inset space \thinspace{}
33450 \begin_inset space ~
33454 \begin_inset space \thinspace{}
33458 \begin_inset space \thinspace{}
33462 \begin_inset space \thinspace{}
33467 \begin_inset Box Doublebox
33477 height_special "totalheight"
33482 backgroundcolor "none"
33485 \begin_layout Plain Layout
33487 Double rectangular box
33495 \begin_layout Standard
33496 \begin_inset VSpace bigskip
33500 's box label will reflect the different frame types.
33501 To be able to use all types, the \SpecialChar LaTeX
33507 \begin_inset Index idx
33510 \begin_layout Plain Layout
33512 -packages ! fancybox
33520 \begin_layout Standard
33521 \begin_inset VSpace bigskip
33524 When you use the decoration
33526 simple rectangular frame
33528 and no inner box, you can allow page breaks within a box.
33529 Note that then, unlike other framed boxes, the frame always uses the whole
33530 column width and the box is set as its own paragraph:
33531 \begin_inset Box Framed
33541 height_special "totalheight"
33546 backgroundcolor "none"
33549 \begin_layout Plain Layout
33550 Allow page break box
33558 \begin_layout Section
33560 \begin_inset Index idx
33563 \begin_layout Plain Layout
33564 Boxes ! Customization
33572 \begin_layout Standard
33573 The diameter of the round corners of the oval boxes can be set with the
33584 \begin_layout Standard
33592 \begin_layout Standard
33593 sets the diameter to 1
33594 \begin_inset space \thinspace{}
33601 \begin_layout Standard
33609 \begin_layout Standard
33610 sets the diameter to
33613 \begin_inset space \thinspace{}
33617 \begin_inset space \thinspace{}
33620 minimum(width and height of box)
33632 \begin_layout Standard
33636 \begin_layout Plain Layout
33646 \begin_inset Box Ovalbox
33656 height_special "totalheight"
33661 backgroundcolor "none"
33664 \begin_layout Plain Layout
33673 \begin_inset space \thinspace{}
33677 \begin_inset space \thinspace{}
33681 \begin_inset space \thinspace{}
33693 \begin_layout Plain Layout
33705 \begin_layout Standard
33706 \begin_inset VSpace bigskip
33712 \begin_layout Standard
33713 The default background color red of
33717 boxes can either be changed locally with the command
33721 definecolor{shadecolor}
33723 or globally with the menu
33725 Tools\SpecialChar menuseparator
33726 Preferences\SpecialChar menuseparator
33727 Colors\SpecialChar menuseparator
33729 \begin_inset space ~
33741 command is explained in section
33742 \begin_inset space ~
33746 \begin_inset CommandInset ref
33748 reference "sec:Colored-Tables"
33756 \begin_layout Plain Layout
33763 requires the \SpecialChar LaTeX
33768 in the preamble, see section
33769 \begin_inset space ~
33773 \begin_inset CommandInset ref
33775 reference "sec:Colored-Boxes"
33784 For example the appearance of the following shaded background box is set
33785 with the \SpecialChar TeX
33789 \begin_layout Standard
33794 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33797 \begin_layout Standard
33801 \begin_layout Plain Layout
33805 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33811 \begin_inset Box Shaded
33821 height_special "totalheight"
33826 backgroundcolor "none"
33829 \begin_layout Plain Layout
33832 This is yellow text in a
33842 box with dark green background.
33851 \begin_layout Plain Layout
33855 definecolor{shadecolor}{rgb}{1,0,0}
33863 \begin_layout Standard
33864 \begin_inset VSpace bigskip
33867 Manually changed sizes and colors are valid for all boxes following the
33868 commands that change them.
33871 \begin_layout Section
33873 \begin_inset CommandInset label
33875 name "sec:Minipages"
33880 \begin_inset Index idx
33883 \begin_layout Plain Layout
33892 \begin_layout Standard
33893 Minipages are treated by \SpecialChar LaTeX
33894 as pages within pages and can therefore for example
33895 have their own footnotes.
33898 \begin_layout Standard
33899 Minipages are useful when you write documents with different languages.
33902 \begin_layout Standard
33903 Below are two example minipages side by side.
33904 Their width is set to 45
33905 \begin_inset space \thinspace{}
33908 col% and they are separated by a horizontal fill, that was inserted via
33911 Insert\SpecialChar menuseparator
33913 \begin_inset space ~
33916 Formatting\SpecialChar menuseparator
33918 \begin_inset space ~
33924 \begin_inset Newpage newpage
33930 \begin_layout Standard
33931 \begin_inset Box Frameless
33941 height_special "totalheight"
33946 backgroundcolor "none"
33949 \begin_layout Plain Layout
33952 Dies ist ein deutscher Text.
33953 Dies ist ein deutscher Text.
33954 Dies ist ein deutscher Text.
33955 Dies ist ein deutscher Text.
33956 Dies ist ein deutscher Text.
33957 Dies ist ein deutscher Text.
33958 Dies ist ein deutscher Text.
33959 Dies ist ein deutscher Text.
33960 Dies ist ein deutscher Text.
33961 Dies ist ein deutscher Text.
33962 Dies ist ein deutscher Text.
33963 Dies ist ein deutscher Text.
33964 Dies ist ein deutscher Text
33968 \begin_layout Plain Layout
33971 Dies ist eine deutsche Fußnote.
33977 Dies ist ein deutscher Text.
33978 Dies ist ein deutscher Text.
33984 \begin_inset space \hfill{}
33988 \begin_inset Box Frameless
33998 height_special "totalheight"
34003 backgroundcolor "none"
34006 \begin_layout Plain Layout
34007 This is an English Text.
34008 This is an English Text.
34009 This is an English Text.
34010 This is an English Text.
34011 This is an English Text.
34012 This is an English Text.
34013 This is an English Text.
34014 This is an English Text.
34015 This is an English Text.
34016 This is an English Text.
34017 This is an English Text.
34018 This is an English Text.
34019 This is an English Text.
34020 This is an English Text.
34021 This is an English Text.
34022 This is an English Text.
34026 \begin_layout Plain Layout
34027 This is an English footnote.
34032 This is an English Text.
34040 \begin_layout Standard
34041 \begin_inset VSpace bigskip
34044 The document-wide paragraph settings are ignored within minipages.
34045 That means that there will be no space between paragraphs in minipages
34046 although you set it to e.
34047 \begin_inset space \thinspace{}
34051 \begin_inset space \space{}
34058 in the document settings.
34061 \begin_layout Standard
34062 Minipages can also be used to set a background color for text parts, see
34064 \begin_inset space ~
34068 \begin_inset CommandInset ref
34070 reference "sec:Colored-Boxes"
34077 \begin_layout Standard
34078 \begin_inset Note Greyedout
34081 \begin_layout Plain Layout
34086 You cannot have floats or margin notes inside minipages but minipages can
34087 be used inside tables, floats, and other boxes.
34095 \begin_layout Section
34097 \begin_inset CommandInset label
34099 name "sec:Parboxes"
34104 \begin_inset Index idx
34107 \begin_layout Plain Layout
34116 \begin_layout Standard
34117 Parboxes are very similar to minipages with the difference that they cannot
34119 \begin_inset Separator parbreak
34125 \begin_layout Standard
34127 \begin_inset Box Frameless
34137 height_special "totalheight"
34142 backgroundcolor "none"
34145 \begin_layout Plain Layout
34146 This a text within a parbox.
34147 This a text within a parbox.
34150 \begin_layout Plain Layout
34151 This footnote won't appear:
34155 \begin_layout Plain Layout
34156 This footnote is inside a parbox and will therefore not appear.
34169 \begin_layout Section
34170 Boxes for Words and Characters
34171 \begin_inset Index idx
34174 \begin_layout Plain Layout
34175 Boxes ! for Characters
34183 \begin_layout Subsection
34184 Prevent Hyphenation
34185 \begin_inset CommandInset label
34187 name "sec:Prevent-Hyphenation"
34192 \begin_inset Index idx
34195 \begin_layout Plain Layout
34196 Boxes ! to Prevent Hyphenation
34204 \begin_layout Standard
34205 You can use the box type
34209 to prevent words or text from being hyphenated.
34210 \begin_inset Newline newline
34213 Here is an example text:
34216 \begin_layout Standard
34217 This line is an example to show how you can prevent the hyphenation of
34218 \begin_inset Quotes eld
34222 \begin_inset Quotes erd
34228 \begin_layout Standard
34229 To prevent the hyphenation of the word
34230 \begin_inset Quotes eld
34234 \begin_inset Quotes erd
34237 , put the word into a box, set the
34240 \begin_inset space ~
34249 and use no explicit width.
34252 \begin_layout Standard
34253 This is the result:
34256 \begin_layout Standard
34257 This line is an example to show how you can prevent the hyphenation of
34258 \begin_inset Box Frameless
34268 height_special "totalheight"
34273 backgroundcolor "none"
34276 \begin_layout Plain Layout
34277 \begin_inset Quotes eld
34281 \begin_inset Quotes erd
34292 \begin_layout Standard
34293 You can alternatively set the command
34294 \begin_inset Quotes eld
34304 \begin_inset Quotes grd
34307 as \SpecialChar TeX
34308 Code directly before the word:
34311 \begin_layout Standard
34312 This line is an example to show how you can prevent the hyphenation of
34313 \begin_inset Quotes eld
34320 \begin_layout Plain Layout
34330 \begin_inset Quotes erd
34336 \begin_layout Standard
34337 Of course the word now protrudes over the side margin.
34338 To avoid this, add via the menu
34340 Insert\SpecialChar menuseparator
34341 Formatting\SpecialChar menuseparator
34343 \begin_inset space ~
34347 \begin_inset space ~
34355 arg "newline-insert newline"
34358 ) a line break before the word:
34361 \begin_layout Standard
34362 This line is an example to show how you can prevent the hyphenation of
34363 \begin_inset Newline newline
34367 \begin_inset Box Frameless
34377 height_special "totalheight"
34382 backgroundcolor "none"
34385 \begin_layout Plain Layout
34386 \begin_inset Quotes eld
34390 \begin_inset Quotes erd
34401 \begin_layout Subsection
34403 \begin_inset CommandInset label
34405 name "subsec:Vertical-Alignment"
34410 \begin_inset Index idx
34413 \begin_layout Plain Layout
34414 Boxes ! for Vertical Alignment
34420 \begin_inset Index idx
34423 \begin_layout Plain Layout
34432 \begin_layout Standard
34433 With the help of the command
34439 you can align words, characters or other boxes vertically relative to the
34447 is used with the following scheme:
34450 \begin_layout Standard
34455 raisebox{lift}[height][depth]{box content}
34458 \begin_layout Standard
34459 The lift can be a positive value to raise the box or a negative value to
34463 \begin_layout Standard
34464 To align for example the word
34465 \begin_inset Quotes eld
34469 \begin_inset Quotes erd
34472 so that the bottom of the
34473 \begin_inset Quotes eld
34477 \begin_inset Quotes erd
34481 \begin_inset Quotes eld
34485 \begin_inset Quotes erd
34488 is at the baseline, insert the command
34491 \begin_layout Standard
34501 \begin_layout Standard
34502 in \SpecialChar TeX
34503 Code before the word.
34504 After the word insert a closing brace
34505 \begin_inset Quotes eld
34513 \begin_inset Quotes erd
34516 in \SpecialChar TeX
34518 \begin_inset Newline newline
34521 This is the result:
34524 \begin_layout Standard
34525 This is a text line with the word
34529 \begin_layout Plain Layout
34541 \begin_inset Quotes eld
34545 \begin_inset Quotes erd
34552 \begin_layout Plain Layout
34562 \begin_layout Standard
34563 \begin_inset VSpace bigskip
34566 When you raise or lower characters in a line, the line distance will be
34570 \begin_layout Standard
34571 This is a text line with the word
34575 \begin_layout Plain Layout
34587 \begin_inset Quotes eld
34591 \begin_inset Quotes erd
34598 \begin_layout Plain Layout
34606 \begin_inset Newline newline
34609 This is a text line with the word
34613 \begin_layout Plain Layout
34623 \begin_inset Quotes eld
34627 \begin_inset Quotes erd
34634 \begin_layout Plain Layout
34644 \begin_layout Standard
34645 If you want to prevent this for a certain reason, set the box height to
34650 \begin_layout Standard
34660 \begin_layout Standard
34661 This is a text line with the word
34665 \begin_layout Plain Layout
34677 \begin_inset Quotes eld
34681 \begin_inset Quotes erd
34688 \begin_layout Plain Layout
34696 \begin_inset Newline newline
34700 \begin_inset Newline newline
34703 This is a text line with the word
34707 \begin_layout Plain Layout
34711 raisebox{0.5cm}[0pt]{
34717 \begin_inset Quotes eld
34721 \begin_inset Quotes erd
34728 \begin_layout Plain Layout
34738 \begin_layout Section
34740 \begin_inset CommandInset label
34742 name "sec:Colored-Boxes"
34747 \begin_inset Index idx
34750 \begin_layout Plain Layout
34759 \begin_layout Standard
34760 To color the background of a box just select the color you like in the box
34762 This is for example a box with orange background:
34763 \begin_inset Box Frameless
34773 height_special "totalheight"
34778 backgroundcolor "orange"
34781 \begin_layout Plain Layout
34782 Box with orange background
34790 \begin_layout Standard
34791 If you use the decoration
34794 \begin_inset space ~
34798 \begin_inset space ~
34803 you can set a frame color.
34804 In this case you must also specify a background color (LyX sets white as
34806 Here is an example:
34807 \begin_inset Box Boxed
34817 height_special "totalheight"
34822 backgroundcolor "yellow"
34825 \begin_layout Plain Layout
34826 Box with teal frame color and yellow background color
34834 \begin_layout Standard
34835 \begin_inset VSpace bigskip
34838 Of course you can also have colored text inside a colored box:
34839 \begin_inset Newline newline
34843 \begin_inset Box Boxed
34853 height_special "totalheight"
34858 backgroundcolor "magenta"
34861 \begin_layout Plain Layout
34864 This is colored text within a colored, framed box
34872 \begin_layout Standard
34873 \begin_inset VSpace bigskip
34879 \begin_layout Standard
34880 If you need another color than the predefined ones, you can define your
34881 own color as described in section
34882 \begin_inset space ~
34886 \begin_inset CommandInset ref
34888 reference "sec:Colored-Tables"
34893 To use your own color you must typeset the box by using TeX code:
34896 \begin_layout Standard
34897 Colored boxes without frame are created with the command
34904 It has the following scheme:
34907 \begin_layout Standard
34912 colorbox{color}{box content}
34915 \begin_layout Standard
34916 The box content can also be a box and colored boxes can also be within other
34919 \begin_inset space \thinspace{}
34923 \begin_inset space \space{}
34926 a darkgreen background for a word, insert the command
34929 \begin_layout Standard
34934 colorbox{darkgreen}{
34937 \begin_layout Standard
34938 before the word in \SpecialChar TeX
34940 After the word insert a closing brace
34941 \begin_inset Quotes eld
34949 \begin_inset Quotes erd
34952 in \SpecialChar TeX
34954 \begin_inset Newline newline
34957 This is the result:
34960 \begin_layout Standard
34961 This is a line where the word
34965 \begin_layout Plain Layout
34969 colorbox{darkgreen}{
34975 \begin_inset Quotes eld
34979 \begin_inset Quotes erd
34986 \begin_layout Plain Layout
34993 has a darkgreen background.
34996 \begin_layout Standard
34997 Framed, colored boxes are created with the command
35004 It has the following scheme:
35007 \begin_layout Standard
35012 fcolorbox{frame color}{box color}{box content}
35015 \begin_layout Section
35016 Rotated and Scaled Boxes
35019 \begin_layout Standard
35020 To use the boxes described in this section, the module
35024 must be loaded in the document settings.
35027 \begin_layout Standard
35028 \begin_inset Note Greyedout
35031 \begin_layout Plain Layout
35036 Not all DVI-viewers are able to display rotated or scaled material.
35044 \begin_layout Standard
35045 \begin_inset Note Greyedout
35048 \begin_layout Plain Layout
35053 Floats are not allowed inside a rotated or scaled box.
35061 \begin_layout Subsection
35063 \begin_inset Index idx
35066 \begin_layout Plain Layout
35073 \begin_inset Index idx
35076 \begin_layout Plain Layout
35085 \begin_layout Standard
35086 To rotate material, you can put it into a rotated box.
35087 Such a box is inserted via the menu
35089 Insert\SpecialChar menuseparator
35090 Custom Insets\SpecialChar menuseparator
35096 \begin_layout Standard
35097 The rotation origin can be specified via the inset
35103 Insert\SpecialChar menuseparator
35111 The following positions are possible:
35131 (top), along with meaningful combinations of the four base positions.
35136 means that the rotation origin is at the top left corner of the box.
35137 When no rotation origin is specified, the position
35142 The rotation angle is a number that can be negative that specifies the
35144 The rotation direction is counterclockwise.
35147 \begin_layout Standard
35148 In the following example
35152 was inserted to the
35160 was inserted to the
35167 \begin_layout Standard
35169 \begin_inset Flex Rotatebox
35172 \begin_layout Plain Layout
35173 \begin_inset Argument 1
35176 \begin_layout Plain Layout
35183 \begin_inset Argument 2
35186 \begin_layout Plain Layout
35200 \begin_layout Standard
35201 The box content can also be another box or an inline formula:
35204 \begin_layout Standard
35206 \begin_inset Flex Rotatebox
35209 \begin_layout Plain Layout
35210 \begin_inset Argument 1
35213 \begin_layout Plain Layout
35220 \begin_inset Argument 2
35223 \begin_layout Plain Layout
35230 \begin_inset Box Doublebox
35240 height_special "totalheight"
35245 backgroundcolor "none"
35248 \begin_layout Plain Layout
35260 \begin_inset Flex Rotatebox
35263 \begin_layout Plain Layout
35264 \begin_inset Argument 1
35267 \begin_layout Plain Layout
35274 \begin_inset Argument 2
35277 \begin_layout Plain Layout
35284 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35295 \begin_layout Standard
35296 or an image or table:
35299 \begin_layout Standard
35301 \begin_inset Flex Rotatebox
35304 \begin_layout Plain Layout
35305 \begin_inset Argument 1
35308 \begin_layout Plain Layout
35315 \begin_inset Argument 2
35318 \begin_layout Plain Layout
35325 \begin_inset Graphics
35326 filename clipart/platypus.eps
35337 with a rotated image
35338 \begin_inset Flex Rotatebox
35341 \begin_layout Plain Layout
35342 \begin_inset Argument 2
35345 \begin_layout Plain Layout
35352 \begin_inset Tabular
35353 <lyxtabular version="3" rows="2" columns="2">
35354 <features tabularvalignment="middle">
35355 <column alignment="center" valignment="top">
35356 <column alignment="center" valignment="top">
35358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35361 \begin_layout Plain Layout
35367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35370 \begin_layout Plain Layout
35378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35381 \begin_layout Plain Layout
35387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35390 \begin_layout Plain Layout
35407 \begin_inset Index idx
35410 \begin_layout Plain Layout
35417 \begin_inset Index idx
35420 \begin_layout Plain Layout
35421 Table Customization ! Rotating
35429 \begin_layout Subsection
35431 \begin_inset Index idx
35434 \begin_layout Plain Layout
35441 \begin_inset Index idx
35444 \begin_layout Plain Layout
35453 \begin_layout Standard
35454 To scale material the commands
35466 can be used as \SpecialChar TeX
35470 \begin_layout Standard
35477 is used with the following scheme:
35480 \begin_layout Standard
35485 scalebox{horizontal}[vertical]{box content}
35488 \begin_layout Standard
35489 Horizontal and vertical are the corresponding scaling factors.
35490 If no vertical scaling factor is given, the horizontal factor will also
35491 be used as the vertical one.
35494 \begin_layout Standard
35501 creates for example a double size
35505 \begin_layout Plain Layout
35518 \begin_layout Plain Layout
35525 , compared with the document text size.
35528 \begin_layout Standard
35533 scalebox{2}[1]{Hello}
35535 on the other hand distorts the
35539 \begin_layout Plain Layout
35552 \begin_layout Plain Layout
35562 \begin_layout Standard
35563 If the scaling factor is negative, the box content will be mirrored.
35564 Therefore the command
35568 scalebox{-1}[1]{Hello}
35570 can be used to create mirror writing:
35574 \begin_layout Plain Layout
35587 \begin_layout Plain Layout
35597 \begin_layout Standard
35602 scalebox{1}[-1]{Hello}
35608 \begin_layout Plain Layout
35621 \begin_layout Plain Layout
35631 \begin_layout Standard
35636 scalebox{-1}[1]{box content}
35638 there exists the command
35639 \begin_inset Newline newline
35646 reflectbox{box content}
35651 \begin_layout Standard
35652 \begin_inset VSpace bigskip
35661 is used to scale the box to a defined width and height.
35662 The command scheme is:
35665 \begin_layout Standard
35670 resizebox{width}{height}{box content}
35673 \begin_layout Standard
35674 If one of the two command arguments given is an exclamation mark
35678 , the size is set so that the aspect ratio of the box content is kept.
35681 \begin_layout Standard
35686 resizebox{2cm}{1cm}{Hello}
35692 \begin_layout Plain Layout
35696 resizebox{2cm}{1cm}{
35705 \begin_layout Plain Layout
35713 \begin_inset Newline newline
35720 resizebox{2cm}{!}{Hello}
35726 \begin_layout Plain Layout
35739 \begin_layout Plain Layout
35749 \begin_layout Standard
35750 \begin_inset VSpace bigskip
35754 \begin_inset Note Greyedout
35757 \begin_layout Plain Layout
35774 are set to zero, no \SpecialChar LaTeX
35775 -errors occur when exporting the document but the exported
35776 files can not or only partly be displayed.
35784 \begin_layout Standard
35785 \begin_inset VSpace bigskip
35791 \begin_layout Standard
35792 The boxes can be combined in any order.
35794 \begin_inset space \thinspace{}
35798 \begin_inset space \space{}
35802 \begin_inset Newline newline
35809 rotatebox[origin=c]{-45}{
35813 reflectbox{Hello}}}
35814 \begin_inset Newline newline
35820 \begin_inset Separator parbreak
35826 \begin_layout Standard
35831 \begin_layout Plain Layout
35835 rotatebox[origin=c]{-45}{
35848 \begin_layout Plain Layout
35858 \begin_layout Standard
35860 Images, tables, and inline formulas are allowed as box content:
35861 \begin_inset Separator parbreak
35867 \begin_layout Standard
35872 \begin_layout Plain Layout
35876 rotatebox[origin=c]{-30}{
35886 \begin_inset Graphics
35887 filename clipart/platypus.eps
35897 \begin_layout Plain Layout
35908 \begin_layout Plain Layout
35912 rotatebox[origin=c]{-45}{
35922 \begin_inset Tabular
35923 <lyxtabular version="3" rows="2" columns="2">
35924 <features tabularvalignment="middle">
35925 <column alignment="center" valignment="top">
35926 <column alignment="center" valignment="top">
35928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35931 \begin_layout Plain Layout
35937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35940 \begin_layout Plain Layout
35948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35951 \begin_layout Plain Layout
35957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35960 \begin_layout Plain Layout
35975 \begin_layout Plain Layout
35986 \begin_layout Plain Layout
35990 rotatebox[origin=c]{-45}{
36000 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36007 \begin_layout Plain Layout
36015 \begin_inset Index idx
36018 \begin_layout Plain Layout
36025 \begin_inset Index idx
36028 \begin_layout Plain Layout
36029 Table Customization ! Scaling
36037 \begin_layout Standard
36038 When the global formula style
36042 is used in the document
36046 \begin_layout Plain Layout
36048 \begin_inset Quotes eld
36052 \begin_inset Quotes erd
36055 is added to the document class options.
36060 , display style formulas can also be scaled.
36063 \begin_layout Chapter
36064 Objects Surrounded by Text
36065 \begin_inset Index idx
36068 \begin_layout Plain Layout
36077 \begin_layout Section
36079 \begin_inset CommandInset label
36081 name "sec:Wrap-Floats"
36086 \begin_inset Index idx
36089 \begin_layout Plain Layout
36090 Floats ! Wrap Floats
36096 \begin_inset Index idx
36099 \begin_layout Plain Layout
36100 Surrounded by text ! Wrap Floats
36108 \begin_layout Standard
36109 \begin_inset Wrap figure
36116 \begin_layout Plain Layout
36117 \begin_inset Graphics
36118 filename clipart/mobius.eps
36120 scaleBeforeRotation
36121 rotateOrigin center
36128 \begin_layout Plain Layout
36129 \begin_inset Caption Standard
36131 \begin_layout Plain Layout
36132 \begin_inset CommandInset label
36134 name "fig:This-is-a"
36138 This is a figure wrap float.
36148 This float type is used if you want to wrap text around a figure or table
36149 so that it only occupies some fraction of the column width.
36150 It can be inserted using the menu
36152 Insert\SpecialChar menuseparator
36153 Floats\SpecialChar menuseparator
36155 \begin_inset space ~
36159 \begin_inset space ~
36167 \begin_inset space ~
36171 \begin_inset space ~
36176 if the \SpecialChar LaTeX
36182 \begin_inset Index idx
36185 \begin_layout Plain Layout
36187 -packages ! wrapfig
36196 \begin_layout Plain Layout
36197 Installing a \SpecialChar LaTeX
36198 -package is explained it in the
36202 \begin_inset space ~
36212 The settings of the float can be modified by right-clicking on the float
36214 The mandatory settings are the float
36227 that specifies how much the float is set into the paragraph
36228 \begin_inset space \thinspace{}
36232 \begin_inset space \thinspace{}
36235 page margin, and the
36238 \begin_inset space ~
36243 that specifies how many text lines the float will approximately need.
36244 The line span is often hard to approximate; so it is better only to use
36245 it when you encounter float placement problems.
36246 You can furthermore decide if \SpecialChar LaTeX
36247 is allowed to let the float float within
36248 the paragraph or to surrounding paragraphs.
36250 \begin_inset space ~
36254 \begin_inset CommandInset ref
36256 reference "fig:This-is-a"
36260 is an example text wrap float with a width of 40
36261 \begin_inset space \thinspace{}
36265 \begin_inset space \thinspace{}
36268 cm overhang, set to the left.
36271 \begin_layout Standard
36272 \begin_inset Note Greyedout
36275 \begin_layout Plain Layout
36281 \begin_inset space ~
36284 wrap float floats are fragile! E.
36285 \begin_inset space \thinspace{}
36289 \begin_inset space \space{}
36292 having a figure too close to the bottom of the page can mess things up in
36293 such a way that the float does not appear in the output or that it is placed
36294 over some other text.
36302 \begin_layout Standard
36303 In general, the following applies for wrap floats:
36306 \begin_layout Itemize
36307 They should not be placed in paragraphs that run over a page break.
36308 That means that wrap floats are better inserted in their exact place when
36309 the document is almost finished and you are able to estimate where page
36310 breaks will appear.
36313 \begin_layout Itemize
36314 They should either be placed in their own paragraph before the paragraph
36315 where they should wrap into or within a paragraph.
36318 \begin_layout Itemize
36319 In consecutive paragraphs they may cause troubles, so ensure that there
36320 is a text paragraph between them as separator.
36323 \begin_layout Itemize
36324 They are not allowed in section headings or tables.
36327 \begin_layout Itemize
36328 Their numbering and referencing works as described in chap.
36329 \begin_inset space \thinspace{}
36333 \begin_inset CommandInset ref
36335 reference "chap:Floats"
36342 \begin_layout Section
36343 Surrounded Fixed Objects
36344 \begin_inset Index idx
36347 \begin_layout Plain Layout
36348 Surrounded by text ! Fixed objects
36356 \begin_layout Standard
36357 The wrap floats described in sec.
36358 \begin_inset space \thinspace{}
36362 \begin_inset CommandInset ref
36364 reference "sec:Wrap-Floats"
36368 have these positions in the paragraph:
36369 \begin_inset Separator parbreak
36375 \begin_layout Standard
36378 \begin_inset Tabular
36379 <lyxtabular version="3" rows="2" columns="2">
36380 <features tabularvalignment="middle">
36381 <column alignment="center" valignment="top">
36382 <column alignment="center" valignment="top">
36384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36387 \begin_layout Plain Layout
36388 \begin_inset Graphics
36389 filename ../images/dialog-show-new-inset_graphics.png
36391 scaleBeforeRotation
36400 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36403 \begin_layout Plain Layout
36411 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36414 \begin_layout Plain Layout
36420 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36423 \begin_layout Plain Layout
36435 \begin_inset Tabular
36436 <lyxtabular version="3" rows="2" columns="2">
36437 <features tabularvalignment="middle">
36438 <column alignment="center" valignment="top">
36439 <column alignment="center" valignment="top">
36441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36444 \begin_layout Plain Layout
36450 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36453 \begin_layout Plain Layout
36454 \begin_inset Graphics
36455 filename ../images/dialog-show-new-inset_graphics.png
36457 scaleBeforeRotation
36468 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36471 \begin_layout Plain Layout
36477 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36480 \begin_layout Plain Layout
36494 \begin_layout Standard
36495 To get an object exactly at the position where it is inserted, for example
36496 to get one of these positions:
36497 \begin_inset VSpace defskip
36503 \begin_layout Standard
36506 \begin_inset Tabular
36507 <lyxtabular version="3" rows="2" columns="2">
36508 <features tabularvalignment="middle">
36509 <column alignment="center" valignment="top">
36510 <column alignment="center" valignment="top">
36512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36515 \begin_layout Plain Layout
36521 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36524 \begin_layout Plain Layout
36532 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36535 \begin_layout Plain Layout
36536 \begin_inset Graphics
36537 filename ../images/dialog-show-new-inset_graphics.png
36539 scaleBeforeRotation
36548 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36551 \begin_layout Plain Layout
36563 \begin_inset Tabular
36564 <lyxtabular version="3" rows="2" columns="2">
36565 <features tabularvalignment="middle">
36566 <column alignment="center" valignment="top">
36567 <column alignment="center" valignment="top">
36569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36572 \begin_layout Plain Layout
36578 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36581 \begin_layout Plain Layout
36589 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36592 \begin_layout Plain Layout
36598 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36601 \begin_layout Plain Layout
36602 \begin_inset Graphics
36603 filename ../images/dialog-show-new-inset_graphics.png
36605 scaleBeforeRotation
36620 \begin_inset Tabular
36621 <lyxtabular version="3" rows="2" columns="3">
36622 <features tabularvalignment="middle">
36623 <column alignment="center" valignment="top">
36624 <column alignment="center" valignment="top">
36625 <column alignment="center" valignment="top">
36627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36630 \begin_layout Plain Layout
36636 <cell alignment="center" valignment="top" topline="true" usebox="none">
36639 \begin_layout Plain Layout
36640 \begin_inset Graphics
36641 filename ../images/dialog-show-new-inset_graphics.png
36643 scaleBeforeRotation
36652 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36655 \begin_layout Plain Layout
36663 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36666 \begin_layout Plain Layout
36672 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36675 \begin_layout Plain Layout
36681 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36684 \begin_layout Plain Layout
36696 \begin_inset Tabular
36697 <lyxtabular version="3" rows="2" columns="3">
36698 <features tabularvalignment="middle">
36699 <column alignment="center" valignment="top">
36700 <column alignment="center" valignment="top">
36701 <column alignment="center" valignment="top">
36703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36706 \begin_layout Plain Layout
36712 <cell alignment="center" valignment="top" topline="true" usebox="none">
36715 \begin_layout Plain Layout
36721 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36724 \begin_layout Plain Layout
36732 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36735 \begin_layout Plain Layout
36741 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36744 \begin_layout Plain Layout
36745 \begin_inset Graphics
36746 filename ../images/dialog-show-new-inset_graphics.png
36748 scaleBeforeRotation
36757 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36760 \begin_layout Plain Layout
36774 \begin_layout Standard
36777 \begin_inset Tabular
36778 <lyxtabular version="3" rows="3" columns="2">
36779 <features tabularvalignment="middle">
36780 <column alignment="center" valignment="top">
36781 <column alignment="center" valignment="top">
36783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36786 \begin_layout Plain Layout
36792 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36795 \begin_layout Plain Layout
36803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36806 \begin_layout Plain Layout
36807 \begin_inset Graphics
36808 filename ../images/dialog-show-new-inset_graphics.png
36810 scaleBeforeRotation
36819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36822 \begin_layout Plain Layout
36830 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36833 \begin_layout Plain Layout
36839 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36842 \begin_layout Plain Layout
36854 \begin_inset Tabular
36855 <lyxtabular version="3" rows="3" columns="3">
36856 <features tabularvalignment="middle">
36857 <column alignment="center" valignment="top">
36858 <column alignment="center" valignment="top">
36859 <column alignment="center" valignment="top">
36861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36864 \begin_layout Plain Layout
36870 <cell alignment="center" valignment="top" topline="true" usebox="none">
36873 \begin_layout Plain Layout
36879 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36882 \begin_layout Plain Layout
36890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36893 \begin_layout Plain Layout
36899 <cell alignment="center" valignment="top" usebox="none">
36902 \begin_layout Plain Layout
36903 \begin_inset Graphics
36904 filename ../images/dialog-show-new-inset_graphics.png
36906 scaleBeforeRotation
36915 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36918 \begin_layout Plain Layout
36926 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36929 \begin_layout Plain Layout
36935 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36938 \begin_layout Plain Layout
36944 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36947 \begin_layout Plain Layout
36959 \begin_inset Tabular
36960 <lyxtabular version="3" rows="3" columns="2">
36961 <features tabularvalignment="middle">
36962 <column alignment="center" valignment="top">
36963 <column alignment="center" valignment="top">
36965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36968 \begin_layout Plain Layout
36974 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36977 \begin_layout Plain Layout
36985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36988 \begin_layout Plain Layout
36994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36997 \begin_layout Plain Layout
36998 \begin_inset Graphics
36999 filename ../images/dialog-show-new-inset_graphics.png
37001 scaleBeforeRotation
37012 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37015 \begin_layout Plain Layout
37021 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37024 \begin_layout Plain Layout
37038 \begin_layout Standard
37040 you can use the \SpecialChar LaTeX
37046 \begin_inset Index idx
37049 \begin_layout Plain Layout
37051 -packages ! picinpar
37057 Here is an example:
37060 \begin_layout Standard
37064 \begin_layout Plain Layout
37074 \begin_inset Note Note
37077 \begin_layout Plain Layout
37078 The following section will only be displayed when the \SpecialChar LaTeX
37091 \begin_layout Standard
37095 \begin_layout Plain Layout
37099 begin{window}[2,c,{
37105 \begin_inset Graphics
37106 filename clipart/mobius.eps
37109 scaleBeforeRotation
37110 rotateOrigin center
37118 \begin_layout Plain Layout
37123 \begin_layout Plain Layout
37132 It was in the spring of the year 1894 that all London was interested, and
37133 the fashionable world dismayed, by the murder of the Honourable Ronald
37134 Adair under most unusual and inexplicable circumstances.
37135 The public has already learned those particulars of the crime which
37141 \begin_layout Plain Layout
37152 came out in the police investigation, but a good deal was suppressed upon
37153 that occasion, since the case for the prosecution was so overwhelmingly
37154 strong that it was not necessary to bring forward all the facts.
37155 Only now, at the end of nearly ten years, am I allowed to supply those
37156 missing links which make up the whole of that remarkable chain.
37162 \begin_layout Plain Layout
37174 \begin_layout Standard
37178 \begin_layout Plain Layout
37187 Footnote of the paragraph with the fixed object.
37191 \begin_layout Plain Layout
37201 \begin_layout Standard
37202 Surrounded fixed objects are used to let text float around them, at which
37203 the object's position in the paragraph can be determined by the number
37205 In contrary to floats is it not possible to have a numbered caption.
37208 \begin_layout Standard
37209 A fixed object is inserted by adding the command
37212 \begin_layout Standard
37217 begin{window}[2,c,{
37220 \begin_layout Standard
37221 as \SpecialChar TeX
37222 Code at the beginning of the paragraph.
37223 The first parameter in the bracket, here '2', defines the number of lines
37224 above the object, the second, here 'c', the position of the object.
37225 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37226 Behind the command you insert the object.
37227 In this example an image with a width of 40
37228 \begin_inset space \thinspace{}
37231 % of the text column width was inserted.
37232 The object can also be a table, a box or an equation.
37233 Behind the object the command
37236 \begin_layout Standard
37239 },description text]
37240 \begin_inset Newline newline
37246 \begin_layout Standard
37249 \begin_inset Quotes eld
37257 \begin_inset Quotes erd
37260 is in the second line.
37261 The description text is optional.
37262 The text surrounding the object must be in the same paragraph as the object,
37263 so it must begin directly after the
37268 At the end of the paragraph insert the command:
37271 \begin_layout Standard
37279 \begin_layout Standard
37280 Within a paragraph with a fixed object, you cannot insert footnotes in the
37282 You have to use instead the command
37288 inside the paragraph and outside the command
37294 as described in sec.
37295 \begin_inset space \thinspace{}
37299 \begin_inset CommandInset ref
37301 reference "sec:Footnotes"
37308 \begin_layout Standard
37312 \begin_layout Plain Layout
37322 \begin_inset Note Note
37325 \begin_layout Plain Layout
37326 The following will be displayed when the \SpecialChar LaTeX
37339 \begin_layout Standard
37340 You need to install the \SpecialChar LaTeX
37345 to see the following part of this section in the output.
37348 \begin_layout Standard
37352 \begin_layout Plain Layout
37364 \begin_layout Section
37366 \begin_inset Index idx
37369 \begin_layout Plain Layout
37376 \begin_inset Index idx
37379 \begin_layout Plain Layout
37380 Surrounded by text ! Initials
37388 \begin_layout Standard
37389 To use initials, you must have the \SpecialChar LaTeX
37395 \begin_inset Index idx
37398 \begin_layout Plain Layout
37400 -packages ! lettrine
37405 installed and use the module
37409 in your document (menu
37411 Document\SpecialChar menuseparator
37412 Settings\SpecialChar menuseparator
37416 To insert an initial, use the style
37421 This style has a mandatory and two optional arguments.
37422 The arguments are inserted via the
37427 The mandatory argument
37431 contains the letter(s) that is the initial, the argument
37434 \begin_inset space ~
37438 \begin_inset space ~
37443 contains the rest of the word or text of the initial letter(s).
37448 contains parameters to modify the initial.
37449 For more information about the possible parameters see the documentation
37455 \begin_inset CommandInset citation
37462 The style itself contains the text that is surrounding the initial.
37463 The usual style is hereby that the word whose first letter is the initial,
37471 \begin_layout Standard
37472 Here are some examples:
37475 \begin_layout Standard
37479 \begin_layout Plain Layout
37489 \begin_inset Note Note
37492 \begin_layout Plain Layout
37493 The following section will only be displayed when the \SpecialChar LaTeX
37506 \begin_layout Enumerate
37507 No optional argument, the initial is the letter 'I' in the math font
37508 \begin_inset Formula $\mathfrak{Fraktur}$
37512 \begin_inset Separator parbreak
37519 \begin_layout Initial
37520 \begin_inset Argument 2
37523 \begin_layout Plain Layout
37524 \begin_inset Formula $\mathfrak{I}$
37533 \begin_inset Argument 3
37536 \begin_layout Plain Layout
37542 was in the spring of the year 1894 that all London was interested, and
37543 the fashionable world dismayed, by the murder of the Honourable Ronald
37544 Adair under most unusual and inexplicable circumstances.
37545 The public has already learned those particulars of the crime which came
37546 out in the police investigation, but a good deal was suppressed upon that
37547 occasion, since the case for the prosecution was so overwhelmingly strong
37548 that it was not necessary to bring forward all the facts.
37549 \begin_inset Newpage newpage
37556 \begin_layout Enumerate
37557 Only one line is surrounding the initial, which is formed by two letters
37558 in standard font and no text is printed in small caps:
37559 \begin_inset Separator parbreak
37566 \begin_layout Initial
37567 \begin_inset Argument 1
37570 \begin_layout Plain Layout
37577 \begin_inset Argument 2
37580 \begin_layout Plain Layout
37586 was in the spring of the year 1894 that all London was interested, and
37587 the fashionable world dismayed, by the murder of the Honourable Ronald
37588 Adair under most unusual and inexplicable circumstances.
37589 The public has already learned those particulars of the crime which came
37590 out in the police investigation, but a good deal was suppressed upon that
37591 occasion, since the case for the prosecution was so overwhelmingly strong
37592 that it was not necessary to bring forward all the facts.
37596 \begin_layout Enumerate
37597 Magenta, hanging initial over 3
37598 \begin_inset space ~
37601 lines in the math font
37602 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37606 \begin_inset Quotes eld
37609 t was in the spring
37610 \begin_inset Quotes erd
37617 ; to color the initial, you must insert this command before the initial:
37618 \begin_inset Newline newline
37632 \begin_inset Newline newline
37640 \begin_inset Quotes eld
37644 \begin_inset Quotes erd
37648 \begin_inset Quotes eld
37652 \begin_inset Quotes erd
37656 \begin_inset Quotes eld
37660 \begin_inset Quotes erd
37664 \begin_inset Quotes eld
37668 \begin_inset Quotes erd
37672 \begin_inset Quotes eld
37676 \begin_inset Quotes erd
37680 \begin_inset Quotes eld
37684 \begin_inset Quotes erd
37688 \begin_inset Quotes eld
37692 \begin_inset Quotes erd
37696 \begin_inset Quotes eld
37700 \begin_inset Quotes erd
37703 , and add this command to the document preamble:
37704 \begin_inset Newline newline
37711 @ifundefined{textcolor}
37712 \begin_inset Newline newline
37716 \begin_inset space ~
37721 usepackage{color}}{}
37724 \begin_inset Separator parbreak
37731 \begin_layout Standard
37735 \begin_layout Plain Layout
37749 \begin_inset Note Note
37752 \begin_layout Plain Layout
37753 makes the initial magenta
37761 \begin_layout Initial
37762 \begin_inset Argument 1
37765 \begin_layout Plain Layout
37766 lines=3, lhang=0.33, loversize=0.25
37772 \begin_inset Argument 2
37775 \begin_layout Plain Layout
37776 \begin_inset Formula $\mathcal{I}$
37785 \begin_inset Argument 3
37788 \begin_layout Plain Layout
37789 t was in the spring
37794 of the year 1894 that all London was interested, and the fashionable world
37795 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37796 and inexplicable circumstances.
37797 The public has already learned those particulars of the crime which came
37798 out in the police investigation, but a good deal was suppressed upon that
37799 occasion, since the case for the prosecution was so overwhelmingly strong
37800 that it was not necessary to bring forward all the facts.
37804 \begin_layout Standard
37808 \begin_layout Plain Layout
37818 \begin_inset Note Note
37821 \begin_layout Plain Layout
37822 The following will be displayed when the \SpecialChar LaTeX
37835 \begin_layout Standard
37836 You need to install the \SpecialChar LaTeX
37841 to see the following part of this section in the output.
37844 \begin_layout Standard
37848 \begin_layout Plain Layout
37860 \begin_layout Chapter
37861 External Document Parts
37862 \begin_inset Index idx
37865 \begin_layout Plain Layout
37866 External Document Parts
37874 \begin_layout Standard
37877 Insert\SpecialChar menuseparator
37880 you can insert external material into your document.
37884 \begin_layout Description
37886 \begin_inset space ~
37889 Document Another \SpecialChar LyX
37890 document; its content is directly inserted to your document.
37893 \begin_layout Description
37895 \begin_inset space ~
37898 Text A text document; each line is inserted in your document as a separate
37902 \begin_layout Description
37904 \begin_inset space ~
37908 \begin_inset space ~
37912 \begin_inset space ~
37915 Lines A text document; text lines are inserted in your document continuously
37916 but an empty text line creates a new paragraph.
37919 \begin_layout Description
37921 \begin_inset space ~
37924 Material Files in various formats.
37927 \begin_layout Description
37929 \begin_inset space ~
37932 Document \SpecialChar LyX
37933 or \SpecialChar LaTeX
37937 \begin_layout Section
37939 \begin_inset Index idx
37942 \begin_layout Plain Layout
37943 External Document Parts ! External Material
37951 \begin_layout Standard
37952 The external material feature allows you to insert files into your document
37953 without converting them to a format that can be read by the document output
37956 takes care of the necessary conversions.
37957 This is similar to images that can be inserted in various image formats
37958 in \SpecialChar LyX
37960 When you have enabled Instant Preview in \SpecialChar LyX
37961 's preferences under
37964 \begin_inset space ~
37968 \begin_inset space ~
37971 feel\SpecialChar menuseparator
37974 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
37978 \begin_layout Standard
37979 External material can be inserted via the
37983 dialog that is accessible with the menu
37985 Insert\SpecialChar menuseparator
37986 File\SpecialChar menuseparator
37988 \begin_inset space ~
37994 Currently the following file types (
38001 \begin_layout Description
38002 ChessDiagram This template supports chess position diagrams made with the
38006 \begin_inset CommandInset href
38009 target "http://en.wikipedia.org/wiki/XBoard"
38018 \begin_layout Description
38019 Date This inserts the date in the form
38024 This is a date inserted as external material:
38025 \begin_inset External
38032 \begin_inset space ~
38036 \begin_inset Note Note
38039 \begin_layout Plain Layout
38040 Remove the protected space when bug 4398 is fixed!
38046 \begin_inset Newline newline
38049 The date is not shown within \SpecialChar LyX
38050 , only in the output.
38051 There are two other methods of inserting a date: Via menu
38053 Insert\SpecialChar menuseparator
38056 and with the \SpecialChar LaTeX
38063 as \SpecialChar TeX
38065 The different methods are compared in Table
38066 \begin_inset space ~
38070 \begin_inset CommandInset ref
38072 reference "tab:Comparison-of-the"
38079 \begin_layout Description
38080 Dia This template supports diagrams created with the program
38083 \begin_inset CommandInset href
38086 target "http://en.wikipedia.org/wiki/Dia_(software)"
38095 \begin_layout Description
38096 GnumericSpreadsheet With this template you can insert spreadsheets
38097 \begin_inset space \thinspace{}
38101 \begin_inset space \thinspace{}
38104 tables in the format of
38107 \begin_inset CommandInset href
38110 target "http://en.wikipedia.org/wiki/Gnumeric"
38117 \begin_inset CommandInset href
38119 name "OpenDocument"
38120 target "http://en.wikipedia.org/wiki/OpenDocument"
38125 \begin_inset CommandInset href
38127 name "Microsoft Office XML"
38128 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38133 \begin_inset CommandInset href
38135 name "Office Open XML"
38136 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38141 For this feature \SpecialChar LyX
38142 must have found the program
38146 during its configuration.
38147 This program is part of Gnumeric, so that you must have Gnumeric installed,
38148 also if you don't have tables in the Gnumeric format.
38149 For examples and possible limitations have a look at \SpecialChar LyX
38157 \begin_layout Description
38158 LilyPond This template is used for music notation typeset with the program
38159 \begin_inset Newline linebreak
38165 \begin_inset CommandInset href
38168 target "http://en.wikipedia.org/wiki/LilyPond"
38175 For \SpecialChar LyX
38176 's extended support for LilyPond have a look at \SpecialChar LyX
38184 \begin_layout Description
38185 PDFPages With this template you can insert PDF documents to your document.
38186 To specify the range of pages that should be included, use the option
38196 LaTeX and LyX options
38199 The argument of this option is a comma separated list, containing page
38200 numbers (insert as option
38204 ), ranges of page numbers (
38208 ) or any combination.
38209 To insert empty pages use {}.
38211 \begin_inset space \thinspace{}
38215 \begin_inset space ~
38220 pages={3,{},8-11,15}
38222 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38223 Page ranges are specified in the syntax
38232 This selects all pages from
38245 defaults to the first page; omitting
38249 defaults to the last page of the document.
38250 The last page can also be selected with the keyword
38255 (This is only permitted in a page range.) So
38259 will insert all pages of the document and
38263 will insert all pages in reverse order.
38264 If the pages option is not specified, only the first page of the PDF is
38266 \begin_inset Newline newline
38273 inserts the pages with their original size, if this option is not given,
38274 the pages will be resized to fith the width of the page of your document.
38279 you can specify the width and height of the input pages and their rotation.
38280 If another width than 100
38281 \begin_inset space \thinspace{}
38284 Scale% is used, the option
38288 will be overwritten.
38289 For more info and possible options, have a look into the documentation
38290 of the \SpecialChar LaTeX
38296 \begin_inset CommandInset citation
38303 \begin_inset Index idx
38306 \begin_layout Plain Layout
38308 -packages ! pdfpages
38314 \begin_inset Newline newline
38317 To use this template in a
38321 presentation you need to first insert an
38325 environment and in a subsequent paragraph a \SpecialChar TeX
38326 Code box containing the command
38331 setbeamertemplate{background canvas}{}
38334 Then you can insert as many paragraphs containing the PDFPages template
38336 Behind the included PDF pages you can resume the Beamer presentation by
38337 beginning a new frame or by starting a new section.
38338 To avoid stray blank pages prior to the PDF pages, make sure to use the
38343 alignment for the paragraph containing the template.
38344 \begin_inset Newline newline
38347 Here is an included PDF which is rotated by -5°:
38348 \begin_inset External
38350 filename clipart/Abstract.pdf
38351 extra LaTeX "noautoscale, pages=-"
38353 rotateOrigin bottomleft
38360 \begin_layout Description
38361 RasterImage This can be used for bitmap images.
38362 The image can be treated in the
38366 dialog like the images that are usually included via the
38370 dialog as described in section
38371 \begin_inset space ~
38375 \begin_inset CommandInset ref
38377 reference "sec:Graphics-Dialog"
38382 The difference to the normal image input is that only raster images are
38383 allowed; that means that PDF and EPS-images are not supported.
38384 Here is an inserted raster image:
38385 \begin_inset External
38386 template RasterImage
38387 filename clipart/ToolbarEnvBox.png
38394 \begin_layout Description
38395 XFig This template supports images created with the program
38398 \begin_inset CommandInset href
38401 target "http://en.wikipedia.org/wiki/Xfig"
38410 \begin_layout Standard
38411 \begin_inset Float table
38417 \begin_layout Plain Layout
38418 \begin_inset Caption Standard
38420 \begin_layout Plain Layout
38421 \begin_inset CommandInset label
38423 name "tab:Comparison-of-the"
38427 Comparison of the date input methods.
38435 \begin_layout Plain Layout
38437 \begin_inset Tabular
38438 <lyxtabular version="3" rows="4" columns="4">
38439 <features tabularvalignment="middle">
38440 <column alignment="center" valignment="top">
38441 <column alignment="center" valignment="top">
38442 <column alignment="center" valignment="top">
38443 <column alignment="center" valignment="top">
38445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38448 \begin_layout Plain Layout
38454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38457 \begin_layout Plain Layout
38460 External Material\SpecialChar menuseparator
38466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38469 \begin_layout Plain Layout
38472 Insert\SpecialChar menuseparator
38478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38481 \begin_layout Plain Layout
38493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38496 \begin_layout Plain Layout
38503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38506 \begin_layout Plain Layout
38512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38515 \begin_layout Plain Layout
38521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38524 \begin_layout Plain Layout
38525 as \SpecialChar TeX
38533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38536 \begin_layout Plain Layout
38543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38546 \begin_layout Plain Layout
38552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38555 \begin_layout Plain Layout
38561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38564 \begin_layout Plain Layout
38572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38575 \begin_layout Plain Layout
38581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38584 \begin_layout Plain Layout
38590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38593 \begin_layout Plain Layout
38599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38602 \begin_layout Plain Layout
38621 \begin_layout Standard
38622 When you use the option
38634 dialog, only the path to the inserted file is shown in the output.
38635 \begin_inset Newline newline
38638 External material is displayed in \SpecialChar LyX
38639 either as a box like this:
38640 \begin_inset Graphics
38641 filename clipart/ExternalMaterialQt4.png
38643 scaleBeforeRotation
38647 or as image, depending on the option
38653 LaTeX and LyX options
38658 \begin_layout Standard
38665 manual explains how you can define your own templates.
38668 \begin_layout Section
38670 \begin_inset CommandInset label
38672 name "sec:Child-Documents"
38677 \begin_inset Index idx
38680 \begin_layout Plain Layout
38681 External Document Parts ! Child Documents
38687 \begin_inset Index idx
38690 \begin_layout Plain Layout
38699 \begin_layout Standard
38700 Child documents are used if you have a long document consisting of several
38701 larger parts or sections.
38702 For maintenance it is often useful and sometimes even required to split
38703 the document into several files that can be revised separately.
38704 The different documents are then the so called
38705 \begin_inset Quotes eld
38709 \begin_inset Quotes erd
38712 , and a master document connects them to print the full document or parts
38714 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38716 the bibliography, and labels for cross-references.
38719 \begin_layout Standard
38720 To be able to work on child documents without the need to open their master,
38721 specify in the child document the master in the menu
38723 Document\SpecialChar menuseparator
38724 Settings\SpecialChar menuseparator
38726 \begin_inset space ~
38732 This master document will then be used in the background by \SpecialChar LyX
38734 the child document.
38737 \begin_layout Standard
38738 Included documents are displayed in \SpecialChar LyX
38739 as a box like this:
38740 \begin_inset Graphics
38741 filename clipart/ChildDocumentQt4.png
38743 scaleBeforeRotation
38747 To include child documents in a master document use the menu
38749 Insert\SpecialChar menuseparator
38750 File\SpecialChar menuseparator
38752 \begin_inset space ~
38758 A dialog pops up where you can choose between four include methods:
38761 \begin_layout Description
38762 Include You can include \SpecialChar LyX
38763 and \SpecialChar LaTeX
38773 dialog, the included document will be opened in \SpecialChar LyX
38774 in a new file tab so that
38776 \begin_inset Newline newline
38782 \begin_layout Standard
38783 Here is a child document inserted using
38788 \begin_inset CommandInset include
38789 LatexCommand include
38790 filename "DummyDocument1.lyx"
38797 \begin_layout Standard
38798 The section numbering includes the sections of the included files in the
38799 order they are inserted in the master document.
38800 The included example document has for example a subsection that is numbered
38801 as a subsection of this section.
38802 Labels of included documents can be referenced: Subsection
38803 \begin_inset space ~
38807 \begin_inset CommandInset ref
38809 reference "subsec:External-Subsection-1"
38816 \begin_layout Standard
38817 The preamble of the child document is ignored; only the preamble of the
38818 master document is used.
38819 Branches in child documents will be ignored by the master document when
38820 the master document does not have a branch with the same name.
38821 Included documents are inserted starting on a new page and ending with
38825 \begin_layout Standard
38826 \begin_inset Note Greyedout
38829 \begin_layout Plain Layout
38834 If you have included a \SpecialChar LyX
38835 or \SpecialChar LaTeX
38836 file, you are warned when you export/view the
38837 document in case the child document uses another document class than the
38838 master document as this will lead to unexpected outputs.
38846 \begin_layout Description
38847 Input This method is very similar to the Include method.
38848 The differences are:
38849 \begin_inset Separator parbreak
38856 \begin_layout Itemize
38857 Input files don't start with a new page and don't end with a page break.
38860 \begin_layout Itemize
38861 Input files can be previewed in \SpecialChar LyX
38865 \begin_inset space ~
38870 is enabled in \SpecialChar LyX
38871 's preferences under
38874 \begin_inset space ~
38878 \begin_inset space ~
38881 feel\SpecialChar menuseparator
38887 \begin_layout Itemize
38888 You cannot exclude Input files via the menu
38890 Document\SpecialChar menuseparator
38891 Settings\SpecialChar menuseparator
38898 \begin_layout Standard
38899 Here is a child document inserted using
38904 \begin_inset CommandInset include
38906 filename "DummyDocument2.lyx"
38913 \begin_layout Description
38914 Verbatim With this method any text file can be included.
38915 The file is shown in the output with its source code; no command used in
38916 the text is invoked.
38917 You can use the option
38919 Mark spaces in output
38921 that displays the character
38922 \begin_inset Quotes eld
38929 \begin_layout Plain Layout
38939 \begin_inset Quotes erd
38942 for every space character in the source code.
38943 The difference from the method via the menu
38945 Insert\SpecialChar menuseparator
38946 File\SpecialChar menuseparator
38948 \begin_inset space ~
38953 is that the document content is not shown in \SpecialChar LyX
38957 \begin_layout Standard
38958 Here is a child document inserted as Verbatim:
38959 \begin_inset CommandInset include
38960 LatexCommand verbatiminput
38961 filename "DummyTextDocument.txt"
38966 \begin_inset VSpace bigskip
38969 Here is a child document inserted as Verbatim using the
38971 Mark spaces in output
38974 \begin_inset CommandInset include
38975 LatexCommand verbatiminput*
38976 filename "DummyTextDocument.txt"
38983 \begin_layout Standard
38984 \begin_inset VSpace bigskip
38990 \begin_layout Standard
38991 \begin_inset Note Greyedout
38994 \begin_layout Plain Layout
38999 As you can see in the examples above, the text of the documents included
39004 is not broken at the end of the document lines.
39012 \begin_layout Description
39013 Listings This type is described in chapter
39014 \begin_inset space ~
39018 \begin_inset CommandInset ref
39020 reference "cha:Program-Code-Listings"
39027 \begin_layout Standard
39028 \begin_inset Note Greyedout
39031 \begin_layout Plain Layout
39036 Including the same document twice in a document using different methods
39037 could cause \SpecialChar LaTeX
39046 \begin_layout Standard
39047 If you want to view/export only selected children of your master document,
39048 either because you want to save compiling time or because you want to distribut
39049 e single chapters of the book you are just writing, you can exclude children
39051 This is done via the menu
39053 Document\SpecialChar menuseparator
39054 Settings\SpecialChar menuseparator
39058 You can exclude\SpecialChar breakableslash
39059 include children by double-clicking on the
39063 column of the respective child document in the list (note that this only
39064 works for documents embedded via
39065 \begin_inset Quotes eld
39069 \begin_inset Quotes erd
39073 \begin_inset Quotes eld
39077 \begin_inset Quotes erd
39083 Maintain counters and references
39085 is enabled, \SpecialChar LyX
39086 will assure that all page numbers, references etc.
39087 \begin_inset space ~
39090 are correct as if the whole document was processed.
39091 This is useful if you want the selected sub-documents to look exactly as
39092 in the context of the whole document.
39093 However, \SpecialChar LyX
39094 needs to process the whole document in the background for this
39096 So if you want to save compile time and if counters and references do not
39097 need to be correct, disable this checkbox.
39100 \begin_layout Standard
39101 Alternatively, you can put each included file into a branch.
39105 \begin_layout Plain Layout
39106 Branches are described in section
39110 of the \SpecialChar LyX
39120 By enabling\SpecialChar breakableslash
39121 disabling branches you can decide which included files will
39122 appear in the output.
39123 This has the advantage that it also works with Input'ed sub-documents.
39124 However, counters and references will not be maintained with this approach.
39127 \begin_layout Chapter
39128 Program Code Listings
39129 \begin_inset CommandInset label
39131 name "cha:Program-Code-Listings"
39136 \begin_inset Index idx
39139 \begin_layout Plain Layout
39146 \begin_inset Index idx
39149 \begin_layout Plain Layout
39156 \begin_inset Index idx
39159 \begin_layout Plain Layout
39168 \begin_layout Standard
39169 To include and typeset program code you can use the
39173 inset that can be inserted via the menu
39175 Insert\SpecialChar menuseparator
39179 The \SpecialChar LaTeX
39185 \begin_inset Index idx
39188 \begin_layout Plain Layout
39190 -packages ! listings
39195 provides a powerful and flexible way to insert program source code into
39199 \begin_layout Standard
39200 Right-clicking on a listings inset opens the context menu containing where
39201 you can set the listings format.
39204 \begin_layout Standard
39205 By default, a listing starts a new paragraph in the output.
39206 The placement option
39209 \begin_inset space ~
39214 prints the listing inline like this:
39215 \begin_inset listings
39216 lstparams "language={C++}"
39220 \begin_layout Plain Layout
39228 \begin_inset Newline newline
39235 creates a listings float where you can specify the placement options
39236 \begin_inset Quotes eld
39244 \begin_inset Quotes erd
39248 \begin_inset Quotes eld
39256 \begin_inset Quotes erd
39260 \begin_inset Quotes eld
39268 \begin_inset Quotes erd
39272 \begin_inset Quotes eld
39280 \begin_inset Quotes erd
39283 corresponding to the float placement options described in section
39284 \begin_inset space ~
39288 \begin_inset CommandInset ref
39290 reference "sec:Float-Placement"
39295 The placement options can be mixed and are inserted without any separation,
39297 \begin_inset space \thinspace{}
39301 \begin_inset space \space{}
39305 \begin_inset Quotes eld
39313 \begin_inset Quotes erd
39318 \begin_inset Quotes eld
39322 \begin_inset Quotes erd
39325 has sometimes no effect, but you don't need to use the
39329 option in this case as also non-float listings can have captions and be
39333 \begin_layout Standard
39334 You can add captions to listings with the menu
39336 Insert\SpecialChar menuseparator
39340 Listings can be referenced like floats: Listing
39341 \begin_inset space ~
39345 \begin_inset CommandInset ref
39347 reference "lst:Example-Listing"
39352 A list of listings which contains all listings with captions can be created
39355 Insert\SpecialChar menuseparator
39357 \begin_inset space ~
39361 \begin_inset space ~
39364 TOC\SpecialChar menuseparator
39368 The list entries are the listing caption and the listing number.
39371 \begin_layout Standard
39372 \begin_inset listings
39373 lstparams "language=Python"
39377 \begin_layout Plain Layout
39379 \begin_inset Caption Standard
39381 \begin_layout Plain Layout
39382 \begin_inset CommandInset label
39384 name "lst:Example-Listing"
39388 Example Listing float
39393 # Example listing float
39396 \begin_layout Plain Layout
39401 \begin_layout Plain Layout
39403 'this is a python function'
39406 \begin_layout Plain Layout
39416 \begin_layout Standard
39417 When you have set a programming language in the listings dialog, the keywords
39418 of this language will be recognized and specially typeset in the output.
39419 In the example listings the Python keyword
39420 \begin_inset Quotes eld
39424 \begin_inset Quotes erd
39427 is recognized and printed bold in the output.
39430 \begin_layout Standard
39431 \begin_inset Note Greyedout
39434 \begin_layout Plain Layout
39439 If you don't get bold keywords when using typewriter fonts, your
39443 font probably doesn't provide a bold shape.
39444 In this case select a different one in the menu
39446 Document\SpecialChar menuseparator
39447 Settings\SpecialChar menuseparator
39459 provide bold shapes.)
39467 \begin_layout Standard
39471 \begin_inset space ~
39476 of the listings dialog you can specify the line numbering style.
39477 You can insert a number to specify which lines are numbered in the field
39484 \begin_inset space \thinspace{}
39488 \begin_inset space \space{}
39492 \begin_inset Quotes eld
39496 \begin_inset Quotes erd
39499 , only every 3rd line will be numbered.
39502 \begin_layout Standard
39503 You can furthermore specify a range of lines; only these will then appear
39507 Extended character table
39509 should be used when you use national characters like the German umlauts
39511 \begin_inset Newline newline
39514 Here is an example listing with left line numbering, step
39515 \begin_inset Quotes eld
39519 \begin_inset Quotes erd
39523 \begin_inset Quotes eld
39527 \begin_inset Quotes erd
39531 \begin_inset Quotes eld
39534 Extended character table
39535 \begin_inset Quotes erd
39539 \begin_inset Quotes eld
39543 \begin_inset space ~
39547 \begin_inset space ~
39551 \begin_inset Quotes erd
39555 \begin_inset space \thinspace{}
39559 \begin_inset space \thinspace{}
39565 \begin_layout Standard
39566 \begin_inset listings
39567 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39571 \begin_layout Plain Layout
39576 \begin_layout Plain Layout
39578 'this is a python function'
39581 \begin_layout Plain Layout
39586 \begin_layout Plain Layout
39591 \begin_layout Plain Layout
39593 'This is a German word: Tschüß'
39596 \begin_layout Plain Layout
39601 \begin_layout Plain Layout
39606 \begin_layout Plain Layout
39608 'this is a python function'
39611 \begin_layout Plain Layout
39621 \begin_layout Standard
39622 When you have tabulators in your listing, you can specify the number of
39623 characters that are spanned by a tabulator in the field
39626 \begin_inset space ~
39634 \begin_layout Standard
39635 \begin_inset Note Greyedout
39638 \begin_layout Plain Layout
39643 Due to a bug in the
39647 package the line numbering is shifted by a line by every previous listing.
39648 That's the reason why the lines 2 and 5 are numbered in the above listing
39649 and not the lines 3 and 6.
39657 \begin_layout Standard
39658 \begin_inset VSpace bigskip
39664 \begin_layout Standard
39665 It is also possible to print lines from a file as listing.
39666 To do this, use the menu
39668 Insert\SpecialChar menuseparator
39669 File\SpecialChar menuseparator
39672 and choose the type
39680 \begin_layout Plain Layout
39681 The other child document types are described in section
39682 \begin_inset space ~
39686 \begin_inset CommandInset ref
39688 reference "sec:Child-Documents"
39697 In the child document dialog you can specify the listing parameters in
39699 To show a list of all available parameters, type in a question mark
39700 \begin_inset Quotes eld
39704 \begin_inset Quotes erd
39710 \begin_layout Standard
39711 To reference child document listings, write a label text into the corresponding
39712 field of the child document dialog.
39713 The label can then be referenced using the menu
39715 Insert\SpecialChar menuseparator
39721 \begin_layout Standard
39723 \begin_inset space ~
39727 \begin_inset CommandInset ref
39729 reference "lst:file-listing"
39733 is an example for a listing of a file; there the lines 10
39734 \begin_inset space \thinspace{}
39738 \begin_inset space \thinspace{}
39741 15 of this \SpecialChar LyX
39745 \begin_layout Standard
39746 \begin_inset CommandInset include
39747 LatexCommand lstinputlisting
39748 filename "EmbeddedObjects.lyx"
39749 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39756 \begin_layout Standard
39757 \begin_inset VSpace bigskip
39763 \begin_layout Standard
39764 Inserting a formula into a listing can be done the following way:
39767 \begin_layout Enumerate
39768 Open the listings dialog and add
39769 \begin_inset Newline newline
39777 \begin_inset Newline newline
39780 to the field of the
39787 \begin_layout Enumerate
39788 Create a formula outside the listing
39791 \begin_layout Enumerate
39792 Copy the content of the formula (not the formula inset) to the clipboard
39802 \begin_layout Enumerate
39803 In the listing write
39804 \begin_inset Quotes eld
39812 \begin_inset Quotes erd
39815 and copy from the clipboard between the dollar-signs (shortcut
39824 \begin_layout Standard
39825 \begin_inset listings
39826 lstparams "language=Python,mathescape=true"
39830 \begin_layout Plain Layout
39832 \begin_inset Caption Standard
39834 \begin_layout Plain Layout
39835 Example Listing float containing a formula
39840 # Example listing float
39843 \begin_layout Plain Layout
39848 \begin_layout Plain Layout
39861 \begin_layout Plain Layout
39871 \begin_layout Standard
39872 \begin_inset VSpace bigskip
39878 \begin_layout Standard
39879 Global listings settings can be set in the
39881 Document\SpecialChar menuseparator
39882 Settings\SpecialChar menuseparator
39886 To get there a list of available options, type in a question mark
39887 \begin_inset Quotes eld
39891 \begin_inset Quotes erd
39897 \begin_layout Standard
39898 For more information about the
39902 package, we refer to its documentation
39903 \begin_inset CommandInset citation
39912 \begin_layout Standard
39913 \begin_inset Newpage newpage
39919 \begin_layout Chapter
39921 Units available in \SpecialChar LyX
39923 \begin_inset Index idx
39926 \begin_layout Plain Layout
39933 \begin_inset CommandInset label
39935 name "cha:Units-available-in"
39942 \begin_layout Standard
39943 To understand the units described in this documentation, Table
39944 \begin_inset space ~
39948 \begin_inset CommandInset ref
39950 reference "tab:Units"
39954 explains all units available in \SpecialChar LyX
39958 \begin_layout Standard
39959 \begin_inset Float table
39965 \begin_layout Plain Layout
39966 \begin_inset Caption Standard
39968 \begin_layout Plain Layout
39969 \begin_inset CommandInset label
39983 \begin_layout Plain Layout
39984 \begin_inset VSpace medskip
39990 \begin_layout Plain Layout
39992 \begin_inset Tabular
39993 <lyxtabular version="3" rows="20" columns="3">
39994 <features tabularvalignment="middle">
39995 <column alignment="center" valignment="top">
39996 <column alignment="center" valignment="top">
39997 <column alignment="center" valignment="top">
39999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40002 \begin_layout Plain Layout
40008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40011 \begin_layout Plain Layout
40017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40020 \begin_layout Plain Layout
40029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40032 \begin_layout Plain Layout
40038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40041 \begin_layout Plain Layout
40047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40050 \begin_layout Plain Layout
40058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40061 \begin_layout Plain Layout
40067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40070 \begin_layout Plain Layout
40076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40079 \begin_layout Plain Layout
40087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40090 \begin_layout Plain Layout
40096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40099 \begin_layout Plain Layout
40105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40108 \begin_layout Plain Layout
40116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40119 \begin_layout Plain Layout
40125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40128 \begin_layout Plain Layout
40130 \begin_inset space \thinspace{}
40134 \begin_inset space \thinspace{}
40142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40145 \begin_layout Plain Layout
40153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40156 \begin_layout Plain Layout
40162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40165 \begin_layout Plain Layout
40167 \begin_inset space \thinspace{}
40171 \begin_inset space \thinspace{}
40179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40182 \begin_layout Plain Layout
40190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40193 \begin_layout Plain Layout
40199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40202 \begin_layout Plain Layout
40203 scaled point (65536
40204 \begin_inset space \thinspace{}
40208 \begin_inset space \thinspace{}
40216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40219 \begin_layout Plain Layout
40227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40230 \begin_layout Plain Layout
40236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40239 \begin_layout Plain Layout
40241 \begin_inset space \thinspace{}
40245 \begin_inset space \thinspace{}
40253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40256 \begin_layout Plain Layout
40264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40267 \begin_layout Plain Layout
40273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40276 \begin_layout Plain Layout
40278 \begin_inset space \thinspace{}
40282 \begin_inset Formula $\approx$
40286 \begin_inset space \thinspace{}
40294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40297 \begin_layout Plain Layout
40305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40308 \begin_layout Plain Layout
40314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40317 \begin_layout Plain Layout
40319 \begin_inset space \thinspace{}
40323 \begin_inset space \thinspace{}
40331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40334 \begin_layout Plain Layout
40342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40345 \begin_layout Plain Layout
40351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40354 \begin_layout Plain Layout
40355 % of original image width
40360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40363 \begin_layout Plain Layout
40371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40374 \begin_layout Plain Layout
40380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40383 \begin_layout Plain Layout
40389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40392 \begin_layout Plain Layout
40402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40405 \begin_layout Plain Layout
40411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40414 \begin_layout Plain Layout
40420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40423 \begin_layout Plain Layout
40433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40436 \begin_layout Plain Layout
40442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40445 \begin_layout Plain Layout
40451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40454 \begin_layout Plain Layout
40464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40467 \begin_layout Plain Layout
40473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40476 \begin_layout Plain Layout
40482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40485 \begin_layout Plain Layout
40495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40498 \begin_layout Plain Layout
40504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40507 \begin_layout Plain Layout
40513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40516 \begin_layout Plain Layout
40526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40529 \begin_layout Plain Layout
40535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40538 \begin_layout Plain Layout
40544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40547 \begin_layout Plain Layout
40557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40560 \begin_layout Plain Layout
40566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40569 \begin_layout Plain Layout
40579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40582 \begin_layout Plain Layout
40590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40593 \begin_layout Plain Layout
40599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40602 \begin_layout Plain Layout
40612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40615 \begin_layout Plain Layout
40623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40626 \begin_layout Plain Layout
40632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40635 \begin_layout Plain Layout
40637 \begin_inset space \thinspace{}
40641 \begin_inset space \thinspace{}
40649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40652 \begin_layout Plain Layout
40671 \begin_layout Chapter
40672 Output File Formats with Graphics
40673 \begin_inset CommandInset label
40675 name "cha:Output-File-Formats"
40682 \begin_layout Section
40684 \begin_inset Index idx
40687 \begin_layout Plain Layout
40694 \begin_inset Index idx
40697 \begin_layout Plain Layout
40702 \begin_layout Plain Layout
40713 \begin_layout Plain Layout
40728 \begin_layout Standard
40729 This file type has the extension
40730 \begin_inset Quotes eld
40738 \begin_inset Quotes erd
40743 \begin_inset Quotes eld
40747 \begin_inset Quotes erd
40750 (DVI), because it is completely portable; you can move them from one machine
40751 to another without needing to do any sort of conversion.
40752 At the time when this file-format was developed, this was no matter of
40754 DVIs are used for quick previews and as pre-stage for other output formats,
40758 \begin_layout Standard
40759 \begin_inset Note Greyedout
40762 \begin_layout Plain Layout
40767 DVI-files do not contain images; they will only be a linked.
40772 So don't forget this, if you move your
40776 file to another computer.
40777 This property can also slow down your computer when you view the DVI, because
40778 the DVI-viewer has to convert the image in the background to make it visible
40779 when you scroll in the DVI.
40780 So it is recommended that you use PDF for files with many images.
40783 \begin_layout Standard
40784 You can export your document to DVI by using the menu
40786 File\SpecialChar menuseparator
40787 Export\SpecialChar menuseparator
40791 You can view your document as DVI via the
40798 \begin_layout Section
40800 \begin_inset Index idx
40803 \begin_layout Plain Layout
40804 File Formats ! PostScript
40810 \begin_inset Index idx
40813 \begin_layout Plain Layout
40818 \begin_layout Plain Layout
40829 \begin_layout Plain Layout
40844 \begin_layout Standard
40845 This file type has the extension
40846 \begin_inset Quotes eld
40854 \begin_inset Quotes erd
40858 PostScript was developed by the company
40862 as a printer language.
40863 The file therefore contains commands that the printer uses to print the
40865 PostScript can be seen as a
40866 \begin_inset Quotes eld
40869 programming language
40870 \begin_inset Quotes erd
40873 ; you can calculate with it and draw diagrams and images
40877 \begin_layout Plain Layout
40878 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
40885 \begin_inset CommandInset citation
40897 Due to this ability, the files are often bigger than PDFs.
40900 \begin_layout Standard
40901 PostScript can only contain images in the format
40902 \begin_inset Quotes eld
40905 Encapsulated PostScript
40906 \begin_inset Quotes erd
40909 (EPS, file extension
40910 \begin_inset Quotes eld
40918 \begin_inset Quotes erd
40922 As \SpecialChar LyX
40923 allows you to use any known image format in your document, it has to
40924 convert images in the background to EPS.
40926 \begin_inset space ~
40930 \begin_inset space ~
40933 images in your document, \SpecialChar LyX
40935 \begin_inset space ~
40938 conversions whenever you view or export your document.
40939 This will slow down your work flow with \SpecialChar LyX
40941 So if you plan to use PostScript, you can insert your images directly as
40942 EPS to avoid this problem.
40945 \begin_layout Standard
40946 You can export your document to PostScript using the menu
40948 File\SpecialChar menuseparator
40949 Export\SpecialChar menuseparator
40953 You can view your document as PostScript via the
40960 \begin_layout Section
40962 \begin_inset Index idx
40965 \begin_layout Plain Layout
40972 \begin_inset Index idx
40975 \begin_layout Plain Layout
40984 \begin_layout Standard
40985 This file type has the extension
40986 \begin_inset Quotes eld
40994 \begin_inset Quotes erd
40999 \begin_inset Quotes eld
41002 Portable Document Format
41003 \begin_inset Quotes erd
41006 (PDF) was developed by
41010 as a derivative of PostScript.
41011 It is more compressed and it uses fewer commands than PostScript.
41013 \begin_inset Quotes eld
41017 \begin_inset Quotes erd
41020 implies, it can be processed at any computer system and the printed output
41021 looks exactly the same.
41024 \begin_layout Standard
41025 PDF can contain images in its own PDF format, in the format
41026 \begin_inset Quotes eld
41029 Joint Photographic Experts Group
41030 \begin_inset Quotes erd
41033 (JPG, file extension
41034 \begin_inset Quotes eld
41042 \begin_inset Quotes erd
41046 \begin_inset Quotes eld
41054 \begin_inset Quotes erd
41057 ), and in the format
41058 \begin_inset Quotes eld
41061 Portable Network Graphics
41062 \begin_inset Quotes erd
41065 (PNG, file extension
41066 \begin_inset Quotes eld
41074 \begin_inset Quotes erd
41078 Nevertheless you can use any other image format, because \SpecialChar LyX
41080 in the background to one of these formats.
41081 But as described in the section about PostScript, the image conversion
41082 will slow down your work flow.
41083 So it is recommended that you use images in one of the three mentioned
41087 \begin_layout Standard
41088 You can export your document to PDF via the menu
41090 File\SpecialChar menuseparator
41093 in three different ways:
41096 \begin_layout Description
41098 \begin_inset space ~
41101 (ps2pdf) This uses the program
41105 that creates a PDF from a PostScript-version of your file.
41106 The PostScript-version is produced by the program
41110 which uses a DVI-version as intermediate step.
41111 So this export variant consists of three conversions.
41114 \begin_layout Description
41116 \begin_inset space ~
41119 (dvipdfm) This uses the program
41123 that converts your file in the background to DVI and in a second step to
41127 \begin_layout Description
41129 \begin_inset space ~
41132 (pdflatex) This uses the program
41136 that converts your file directly to PDF.
41139 \begin_layout Standard
41140 It is recommended that you use
41143 \begin_inset space ~
41152 supports all features of actual PDF-versions, is quick and works stable.
41157 is not under development and therefore a bit outdated.
41160 \begin_layout Standard
41161 You can view your document as PDF via the
41165 menu or by using a toolbar button.
41168 \begin_layout Chapter
41169 List of dvips color names
41170 \begin_inset CommandInset label
41172 name "chap:List-of-dvips-colornames"
41179 \begin_layout Standard
41180 \begin_inset Tabular
41181 <lyxtabular version="3" rows="17" columns="4">
41182 <features tabularvalignment="middle">
41183 <column alignment="left" valignment="top" width="0pt">
41184 <column alignment="left" valignment="top" width="0pt">
41185 <column alignment="left" valignment="top" width="0pt">
41186 <column alignment="left" valignment="top" width="0pt">
41188 <cell alignment="left" valignment="top" usebox="none">
41191 \begin_layout Plain Layout
41195 \begin_layout Plain Layout
41208 \begin_layout Plain Layout
41219 \begin_layout Plain Layout
41231 <cell alignment="left" valignment="top" usebox="none">
41234 \begin_layout Plain Layout
41238 \begin_layout Plain Layout
41251 \begin_layout Plain Layout
41262 \begin_layout Plain Layout
41274 <cell alignment="left" valignment="top" usebox="none">
41277 \begin_layout Plain Layout
41281 \begin_layout Plain Layout
41294 \begin_layout Plain Layout
41305 \begin_layout Plain Layout
41317 <cell alignment="left" valignment="top" usebox="none">
41320 \begin_layout Plain Layout
41324 \begin_layout Plain Layout
41337 \begin_layout Plain Layout
41348 \begin_layout Plain Layout
41362 <cell alignment="center" valignment="top" usebox="none">
41365 \begin_layout Plain Layout
41369 \begin_layout Plain Layout
41382 \begin_layout Plain Layout
41390 \begin_inset Phantom Phantom
41393 \begin_layout Plain Layout
41403 \begin_layout Plain Layout
41415 <cell alignment="center" valignment="top" usebox="none">
41418 \begin_layout Plain Layout
41422 \begin_layout Plain Layout
41435 \begin_layout Plain Layout
41443 \begin_inset Phantom Phantom
41446 \begin_layout Plain Layout
41456 \begin_layout Plain Layout
41468 <cell alignment="center" valignment="top" usebox="none">
41471 \begin_layout Plain Layout
41475 \begin_layout Plain Layout
41488 \begin_layout Plain Layout
41496 \begin_inset Phantom Phantom
41499 \begin_layout Plain Layout
41509 \begin_layout Plain Layout
41521 <cell alignment="center" valignment="top" usebox="none">
41524 \begin_layout Plain Layout
41528 \begin_layout Plain Layout
41541 \begin_layout Plain Layout
41549 \begin_inset Phantom Phantom
41552 \begin_layout Plain Layout
41562 \begin_layout Plain Layout
41576 <cell alignment="left" valignment="top" usebox="none">
41579 \begin_layout Plain Layout
41583 \begin_layout Plain Layout
41596 \begin_layout Plain Layout
41604 \begin_inset Phantom Phantom
41607 \begin_layout Plain Layout
41617 \begin_layout Plain Layout
41629 <cell alignment="left" valignment="top" usebox="none">
41632 \begin_layout Plain Layout
41636 \begin_layout Plain Layout
41649 \begin_layout Plain Layout
41657 \begin_inset Phantom Phantom
41660 \begin_layout Plain Layout
41670 \begin_layout Plain Layout
41682 <cell alignment="left" valignment="top" usebox="none">
41685 \begin_layout Plain Layout
41689 \begin_layout Plain Layout
41702 \begin_layout Plain Layout
41710 \begin_inset Phantom Phantom
41713 \begin_layout Plain Layout
41723 \begin_layout Plain Layout
41735 <cell alignment="left" valignment="top" usebox="none">
41738 \begin_layout Plain Layout
41742 \begin_layout Plain Layout
41755 \begin_layout Plain Layout
41763 \begin_inset Phantom Phantom
41766 \begin_layout Plain Layout
41776 \begin_layout Plain Layout
41790 <cell alignment="left" valignment="top" usebox="none">
41793 \begin_layout Plain Layout
41797 \begin_layout Plain Layout
41810 \begin_layout Plain Layout
41818 \begin_inset Phantom Phantom
41821 \begin_layout Plain Layout
41831 \begin_layout Plain Layout
41843 <cell alignment="left" valignment="top" usebox="none">
41846 \begin_layout Plain Layout
41850 \begin_layout Plain Layout
41863 \begin_layout Plain Layout
41871 \begin_inset Phantom Phantom
41874 \begin_layout Plain Layout
41884 \begin_layout Plain Layout
41896 <cell alignment="left" valignment="top" usebox="none">
41899 \begin_layout Plain Layout
41903 \begin_layout Plain Layout
41916 \begin_layout Plain Layout
41924 \begin_inset Phantom Phantom
41927 \begin_layout Plain Layout
41937 \begin_layout Plain Layout
41949 <cell alignment="left" valignment="top" usebox="none">
41952 \begin_layout Plain Layout
41956 \begin_layout Plain Layout
41969 \begin_layout Plain Layout
41977 \begin_inset Phantom Phantom
41980 \begin_layout Plain Layout
41990 \begin_layout Plain Layout
42004 <cell alignment="left" valignment="top" usebox="none">
42007 \begin_layout Plain Layout
42011 \begin_layout Plain Layout
42024 \begin_layout Plain Layout
42032 \begin_inset Phantom Phantom
42035 \begin_layout Plain Layout
42045 \begin_layout Plain Layout
42057 <cell alignment="left" valignment="top" usebox="none">
42060 \begin_layout Plain Layout
42064 \begin_layout Plain Layout
42077 \begin_layout Plain Layout
42085 \begin_inset Phantom Phantom
42088 \begin_layout Plain Layout
42098 \begin_layout Plain Layout
42110 <cell alignment="left" valignment="top" usebox="none">
42113 \begin_layout Plain Layout
42117 \begin_layout Plain Layout
42130 \begin_layout Plain Layout
42138 \begin_inset Phantom Phantom
42141 \begin_layout Plain Layout
42151 \begin_layout Plain Layout
42163 <cell alignment="left" valignment="top" usebox="none">
42166 \begin_layout Plain Layout
42170 \begin_layout Plain Layout
42183 \begin_layout Plain Layout
42191 \begin_inset Phantom Phantom
42194 \begin_layout Plain Layout
42204 \begin_layout Plain Layout
42218 <cell alignment="left" valignment="top" usebox="none">
42221 \begin_layout Plain Layout
42225 \begin_layout Plain Layout
42238 \begin_layout Plain Layout
42246 \begin_inset Phantom Phantom
42249 \begin_layout Plain Layout
42259 \begin_layout Plain Layout
42271 <cell alignment="left" valignment="top" usebox="none">
42274 \begin_layout Plain Layout
42278 \begin_layout Plain Layout
42291 \begin_layout Plain Layout
42299 \begin_inset Phantom Phantom
42302 \begin_layout Plain Layout
42312 \begin_layout Plain Layout
42324 <cell alignment="left" valignment="top" usebox="none">
42327 \begin_layout Plain Layout
42331 \begin_layout Plain Layout
42344 \begin_layout Plain Layout
42352 \begin_inset Phantom Phantom
42355 \begin_layout Plain Layout
42365 \begin_layout Plain Layout
42377 <cell alignment="left" valignment="top" usebox="none">
42380 \begin_layout Plain Layout
42384 \begin_layout Plain Layout
42397 \begin_layout Plain Layout
42405 \begin_inset Phantom Phantom
42408 \begin_layout Plain Layout
42418 \begin_layout Plain Layout
42432 <cell alignment="center" valignment="top" usebox="none">
42435 \begin_layout Plain Layout
42439 \begin_layout Plain Layout
42452 \begin_layout Plain Layout
42460 \begin_inset Phantom Phantom
42463 \begin_layout Plain Layout
42473 \begin_layout Plain Layout
42485 <cell alignment="center" valignment="top" usebox="none">
42488 \begin_layout Plain Layout
42492 \begin_layout Plain Layout
42505 \begin_layout Plain Layout
42513 \begin_inset Phantom Phantom
42516 \begin_layout Plain Layout
42526 \begin_layout Plain Layout
42538 <cell alignment="center" valignment="top" usebox="none">
42541 \begin_layout Plain Layout
42545 \begin_layout Plain Layout
42558 \begin_layout Plain Layout
42566 \begin_inset Phantom Phantom
42569 \begin_layout Plain Layout
42579 \begin_layout Plain Layout
42591 <cell alignment="center" valignment="top" usebox="none">
42594 \begin_layout Plain Layout
42598 \begin_layout Plain Layout
42611 \begin_layout Plain Layout
42619 \begin_inset Phantom Phantom
42622 \begin_layout Plain Layout
42632 \begin_layout Plain Layout
42646 <cell alignment="left" valignment="top" usebox="none">
42649 \begin_layout Plain Layout
42653 \begin_layout Plain Layout
42666 \begin_layout Plain Layout
42674 \begin_inset Phantom Phantom
42677 \begin_layout Plain Layout
42687 \begin_layout Plain Layout
42699 <cell alignment="left" valignment="top" usebox="none">
42702 \begin_layout Plain Layout
42706 \begin_layout Plain Layout
42719 \begin_layout Plain Layout
42727 \begin_inset Phantom Phantom
42730 \begin_layout Plain Layout
42740 \begin_layout Plain Layout
42752 <cell alignment="left" valignment="top" usebox="none">
42755 \begin_layout Plain Layout
42759 \begin_layout Plain Layout
42772 \begin_layout Plain Layout
42780 \begin_inset Phantom Phantom
42783 \begin_layout Plain Layout
42793 \begin_layout Plain Layout
42805 <cell alignment="left" valignment="top" usebox="none">
42808 \begin_layout Plain Layout
42812 \begin_layout Plain Layout
42825 \begin_layout Plain Layout
42833 \begin_inset Phantom Phantom
42836 \begin_layout Plain Layout
42846 \begin_layout Plain Layout
42860 <cell alignment="left" valignment="top" usebox="none">
42863 \begin_layout Plain Layout
42867 \begin_layout Plain Layout
42880 \begin_layout Plain Layout
42888 \begin_inset Phantom Phantom
42891 \begin_layout Plain Layout
42901 \begin_layout Plain Layout
42913 <cell alignment="left" valignment="top" usebox="none">
42916 \begin_layout Plain Layout
42920 \begin_layout Plain Layout
42933 \begin_layout Plain Layout
42941 \begin_inset Phantom Phantom
42944 \begin_layout Plain Layout
42954 \begin_layout Plain Layout
42966 <cell alignment="left" valignment="top" usebox="none">
42969 \begin_layout Plain Layout
42973 \begin_layout Plain Layout
42986 \begin_layout Plain Layout
42994 \begin_inset Phantom Phantom
42997 \begin_layout Plain Layout
43007 \begin_layout Plain Layout
43019 <cell alignment="left" valignment="top" usebox="none">
43022 \begin_layout Plain Layout
43026 \begin_layout Plain Layout
43039 \begin_layout Plain Layout
43047 \begin_inset Phantom Phantom
43050 \begin_layout Plain Layout
43060 \begin_layout Plain Layout
43074 <cell alignment="left" valignment="top" usebox="none">
43077 \begin_layout Plain Layout
43081 \begin_layout Plain Layout
43094 \begin_layout Plain Layout
43102 \begin_inset Phantom Phantom
43105 \begin_layout Plain Layout
43115 \begin_layout Plain Layout
43127 <cell alignment="left" valignment="top" usebox="none">
43130 \begin_layout Plain Layout
43134 \begin_layout Plain Layout
43147 \begin_layout Plain Layout
43155 \begin_inset Phantom Phantom
43158 \begin_layout Plain Layout
43168 \begin_layout Plain Layout
43180 <cell alignment="left" valignment="top" usebox="none">
43183 \begin_layout Plain Layout
43187 \begin_layout Plain Layout
43200 \begin_layout Plain Layout
43208 \begin_inset Phantom Phantom
43211 \begin_layout Plain Layout
43221 \begin_layout Plain Layout
43233 <cell alignment="left" valignment="top" usebox="none">
43236 \begin_layout Plain Layout
43240 \begin_layout Plain Layout
43253 \begin_layout Plain Layout
43261 \begin_inset Phantom Phantom
43264 \begin_layout Plain Layout
43274 \begin_layout Plain Layout
43288 <cell alignment="left" valignment="top" usebox="none">
43291 \begin_layout Plain Layout
43295 \begin_layout Plain Layout
43308 \begin_layout Plain Layout
43316 \begin_inset Phantom Phantom
43319 \begin_layout Plain Layout
43329 \begin_layout Plain Layout
43341 <cell alignment="left" valignment="top" usebox="none">
43344 \begin_layout Plain Layout
43348 \begin_layout Plain Layout
43361 \begin_layout Plain Layout
43369 \begin_inset Phantom Phantom
43372 \begin_layout Plain Layout
43382 \begin_layout Plain Layout
43394 <cell alignment="left" valignment="top" usebox="none">
43397 \begin_layout Plain Layout
43401 \begin_layout Plain Layout
43414 \begin_layout Plain Layout
43422 \begin_inset Phantom Phantom
43425 \begin_layout Plain Layout
43435 \begin_layout Plain Layout
43447 <cell alignment="left" valignment="top" usebox="none">
43450 \begin_layout Plain Layout
43454 \begin_layout Plain Layout
43467 \begin_layout Plain Layout
43475 \begin_inset Phantom Phantom
43478 \begin_layout Plain Layout
43488 \begin_layout Plain Layout
43502 <cell alignment="left" valignment="top" usebox="none">
43505 \begin_layout Plain Layout
43509 \begin_layout Plain Layout
43522 \begin_layout Plain Layout
43530 \begin_inset Phantom Phantom
43533 \begin_layout Plain Layout
43543 \begin_layout Plain Layout
43555 <cell alignment="left" valignment="top" usebox="none">
43558 \begin_layout Plain Layout
43562 \begin_layout Plain Layout
43575 \begin_layout Plain Layout
43583 \begin_inset Phantom Phantom
43586 \begin_layout Plain Layout
43596 \begin_layout Plain Layout
43608 <cell alignment="left" valignment="top" usebox="none">
43611 \begin_layout Plain Layout
43615 \begin_layout Plain Layout
43628 \begin_layout Plain Layout
43636 \begin_inset Phantom Phantom
43639 \begin_layout Plain Layout
43649 \begin_layout Plain Layout
43661 <cell alignment="left" valignment="top" usebox="none">
43664 \begin_layout Plain Layout
43668 \begin_layout Plain Layout
43681 \begin_layout Plain Layout
43689 \begin_inset Phantom Phantom
43692 \begin_layout Plain Layout
43702 \begin_layout Plain Layout
43716 <cell alignment="left" valignment="top" usebox="none">
43719 \begin_layout Plain Layout
43723 \begin_layout Plain Layout
43736 \begin_layout Plain Layout
43744 \begin_inset Phantom Phantom
43747 \begin_layout Plain Layout
43757 \begin_layout Plain Layout
43769 <cell alignment="left" valignment="top" usebox="none">
43772 \begin_layout Plain Layout
43776 \begin_layout Plain Layout
43789 \begin_layout Plain Layout
43797 \begin_inset Phantom Phantom
43800 \begin_layout Plain Layout
43810 \begin_layout Plain Layout
43822 <cell alignment="left" valignment="top" usebox="none">
43825 \begin_layout Plain Layout
43829 \begin_layout Plain Layout
43842 \begin_layout Plain Layout
43850 \begin_inset Phantom Phantom
43853 \begin_layout Plain Layout
43863 \begin_layout Plain Layout
43875 <cell alignment="left" valignment="top" usebox="none">
43878 \begin_layout Plain Layout
43882 \begin_layout Plain Layout
43895 \begin_layout Plain Layout
43903 \begin_inset Phantom Phantom
43906 \begin_layout Plain Layout
43916 \begin_layout Plain Layout
43930 <cell alignment="left" valignment="top" usebox="none">
43933 \begin_layout Plain Layout
43937 \begin_layout Plain Layout
43950 \begin_layout Plain Layout
43958 \begin_inset Phantom Phantom
43961 \begin_layout Plain Layout
43971 \begin_layout Plain Layout
43983 <cell alignment="left" valignment="top" usebox="none">
43986 \begin_layout Plain Layout
43990 \begin_layout Plain Layout
44003 \begin_layout Plain Layout
44011 \begin_inset Phantom Phantom
44014 \begin_layout Plain Layout
44024 \begin_layout Plain Layout
44036 <cell alignment="left" valignment="top" usebox="none">
44039 \begin_layout Plain Layout
44043 \begin_layout Plain Layout
44056 \begin_layout Plain Layout
44064 \begin_inset Phantom Phantom
44067 \begin_layout Plain Layout
44077 \begin_layout Plain Layout
44089 <cell alignment="left" valignment="top" usebox="none">
44092 \begin_layout Plain Layout
44096 \begin_layout Plain Layout
44109 \begin_layout Plain Layout
44117 \begin_inset Phantom Phantom
44120 \begin_layout Plain Layout
44130 \begin_layout Plain Layout
44144 <cell alignment="left" valignment="top" usebox="none">
44147 \begin_layout Plain Layout
44151 \begin_layout Plain Layout
44164 \begin_layout Plain Layout
44172 \begin_inset Phantom Phantom
44175 \begin_layout Plain Layout
44185 \begin_layout Plain Layout
44197 <cell alignment="left" valignment="top" usebox="none">
44200 \begin_layout Plain Layout
44204 \begin_layout Plain Layout
44217 \begin_layout Plain Layout
44225 \begin_inset Phantom Phantom
44228 \begin_layout Plain Layout
44238 \begin_layout Plain Layout
44250 <cell alignment="left" valignment="top" usebox="none">
44253 \begin_layout Plain Layout
44257 \begin_layout Plain Layout
44270 \begin_layout Plain Layout
44278 \begin_inset Phantom Phantom
44281 \begin_layout Plain Layout
44291 \begin_layout Plain Layout
44303 <cell alignment="left" valignment="top" usebox="none">
44306 \begin_layout Plain Layout
44310 \begin_layout Plain Layout
44323 \begin_layout Plain Layout
44331 \begin_inset Phantom Phantom
44334 \begin_layout Plain Layout
44344 \begin_layout Plain Layout
44358 <cell alignment="left" valignment="top" usebox="none">
44361 \begin_layout Plain Layout
44365 \begin_layout Plain Layout
44378 \begin_layout Plain Layout
44386 \begin_inset Phantom Phantom
44389 \begin_layout Plain Layout
44399 \begin_layout Plain Layout
44411 <cell alignment="left" valignment="top" usebox="none">
44414 \begin_layout Plain Layout
44418 \begin_layout Plain Layout
44431 \begin_layout Plain Layout
44439 \begin_inset Phantom Phantom
44442 \begin_layout Plain Layout
44452 \begin_layout Plain Layout
44464 <cell alignment="left" valignment="top" usebox="none">
44467 \begin_layout Plain Layout
44471 \begin_layout Plain Layout
44484 \begin_layout Plain Layout
44492 \begin_inset Phantom Phantom
44495 \begin_layout Plain Layout
44505 \begin_layout Plain Layout
44517 <cell alignment="left" valignment="top" usebox="none">
44520 \begin_layout Plain Layout
44524 \begin_layout Plain Layout
44537 \begin_layout Plain Layout
44545 \begin_inset Phantom Phantom
44548 \begin_layout Plain Layout
44558 \begin_layout Plain Layout
44572 <cell alignment="left" valignment="top" usebox="none">
44575 \begin_layout Plain Layout
44579 \begin_layout Plain Layout
44592 \begin_layout Plain Layout
44600 \begin_inset Phantom Phantom
44603 \begin_layout Plain Layout
44613 \begin_layout Plain Layout
44625 <cell alignment="left" valignment="top" usebox="none">
44628 \begin_layout Plain Layout
44634 <cell alignment="left" valignment="top" usebox="none">
44637 \begin_layout Plain Layout
44643 <cell alignment="left" valignment="top" usebox="none">
44646 \begin_layout Plain Layout
44660 \begin_layout Chapter
44661 Explanation of Equation
44662 \begin_inset space ~
44666 \begin_inset CommandInset ref
44673 \begin_inset CommandInset label
44675 name "cha:Explanation-of-Equation"
44682 \begin_layout Standard
44683 We can calculate the total width of
44688 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44692 \begin_inset Formula
44694 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44700 \begin_inset Formula $W_{g\,n}$
44703 is the given width of all cells,
44709 is the \SpecialChar LaTeX
44710 -length between the cell text and the cell border (its default value
44712 \begin_inset space \thinspace{}
44722 is the thickness of the cell border line, the default is 0.4
44723 \begin_inset space \thinspace{}
44729 \begin_layout Standard
44731 \begin_inset space ~
44735 \begin_inset CommandInset ref
44737 reference "eq:Wtot_n"
44741 , the total width of a multicolumn
44742 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44746 \begin_inset Formula
44748 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44756 \begin_layout Standard
44757 By setting equation
44758 \begin_inset space ~
44762 \begin_inset CommandInset ref
44764 reference "eq:Wtot_n"
44769 \begin_inset CommandInset ref
44771 reference "eq:Wtot_mult"
44775 equal we can calculate the needed given width
44776 \begin_inset Formula $W_{g\,n}$
44783 columns are spanned, so that each column has a total width of
44784 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
44788 \begin_inset Formula
44790 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44798 \begin_layout Bibliography
44799 \begin_inset CommandInset bibitem
44800 LatexCommand bibitem
44801 key "latexcompanion"
44805 Frank Mittelbach and Michel Goossens:
44807 The \SpecialChar LaTeX
44808 Companion Second Edition.
44811 Addison-Wesley, 2004
44814 \begin_layout Bibliography
44815 \begin_inset CommandInset bibitem
44816 LatexCommand bibitem
44821 Helmut Kopka and Patrick W.
44824 A Guide to \SpecialChar LaTeX
44828 Addison-Wesley, 2003
44831 \begin_layout Bibliography
44832 \begin_inset CommandInset bibitem
44833 LatexCommand bibitem
44841 : A Document Preparation System.
44844 Addison-Wesley, second edition, 1994
44847 \begin_layout Bibliography
44848 \begin_inset CommandInset bibitem
44849 LatexCommand bibitem
44854 Documentation of the \SpecialChar LaTeX
44858 \begin_inset CommandInset href
44861 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44868 \begin_inset Index idx
44871 \begin_layout Plain Layout
44873 -packages ! arydshln
44881 \begin_layout Bibliography
44882 \begin_inset CommandInset bibitem
44883 LatexCommand bibitem
44888 Documentation of the \SpecialChar LaTeX
44892 \begin_inset CommandInset href
44895 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44902 \begin_inset Index idx
44905 \begin_layout Plain Layout
44907 -packages ! booktabs
44915 \begin_layout Bibliography
44916 \begin_inset CommandInset bibitem
44917 LatexCommand bibitem
44922 Documentation of the \SpecialChar LaTeX
44926 \begin_inset CommandInset href
44929 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
44936 \begin_inset Index idx
44939 \begin_layout Plain Layout
44941 -packages ! caption
44949 \begin_layout Bibliography
44950 \begin_inset CommandInset bibitem
44951 LatexCommand bibitem
44956 Documentation of the \SpecialChar LaTeX
44960 \begin_inset CommandInset href
44963 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44970 \begin_inset Index idx
44973 \begin_layout Plain Layout
44975 -packages ! diagbox
44983 \begin_layout Bibliography
44984 \begin_inset CommandInset bibitem
44985 LatexCommand bibitem
44990 Documentation of the \SpecialChar LaTeX
44994 \begin_inset CommandInset href
44997 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45004 \begin_inset Index idx
45007 \begin_layout Plain Layout
45009 -packages ! endfloat
45017 \begin_layout Bibliography
45018 \begin_inset CommandInset bibitem
45019 LatexCommand bibitem
45024 Documentation of the \SpecialChar LaTeX
45028 \begin_inset CommandInset href
45031 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45038 \begin_inset Index idx
45041 \begin_layout Plain Layout
45043 -packages ! footmisc
45051 \begin_layout Bibliography
45052 \begin_inset CommandInset bibitem
45053 LatexCommand bibitem
45058 Documentation of the \SpecialChar LaTeX
45062 \begin_inset CommandInset href
45065 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45072 \begin_inset Index idx
45075 \begin_layout Plain Layout
45077 -packages ! hyperref
45085 \begin_layout Bibliography
45086 \begin_inset CommandInset bibitem
45087 LatexCommand bibitem
45092 Documentation of the \SpecialChar LaTeX
45096 \begin_inset CommandInset href
45099 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45106 \begin_inset Index idx
45109 \begin_layout Plain Layout
45111 -packages ! hyperref
45119 \begin_layout Bibliography
45120 \begin_inset CommandInset bibitem
45121 LatexCommand bibitem
45126 Documentation of the \SpecialChar LaTeX
45130 \begin_inset CommandInset href
45133 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45140 \begin_inset Index idx
45143 \begin_layout Plain Layout
45145 -packages ! KOMA-Script
45153 \begin_layout Bibliography
45154 \begin_inset CommandInset bibitem
45155 LatexCommand bibitem
45160 Documentation of the \SpecialChar LaTeX
45164 \begin_inset CommandInset href
45167 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45174 \begin_inset CommandInset href
45177 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45182 \begin_inset Index idx
45185 \begin_layout Plain Layout
45187 -packages ! lettrine
45195 \begin_layout Bibliography
45196 \begin_inset CommandInset bibitem
45197 LatexCommand bibitem
45202 Documentation of the \SpecialChar LaTeX
45206 \begin_inset CommandInset href
45209 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45216 \begin_inset Index idx
45219 \begin_layout Plain Layout
45221 -packages ! listings
45229 \begin_layout Bibliography
45230 \begin_inset CommandInset bibitem
45231 LatexCommand bibitem
45236 Documentation of the \SpecialChar LaTeX
45240 \begin_inset CommandInset href
45243 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45250 \begin_inset Index idx
45253 \begin_layout Plain Layout
45255 -packages ! marginnote
45263 \begin_layout Bibliography
45264 \begin_inset CommandInset bibitem
45265 LatexCommand bibitem
45270 Documentation of the \SpecialChar LaTeX
45274 \begin_inset CommandInset href
45277 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45284 \begin_inset Index idx
45287 \begin_layout Plain Layout
45289 -packages ! pdfpages
45297 \begin_layout Bibliography
45298 \begin_inset CommandInset bibitem
45299 LatexCommand bibitem
45304 Documentation of the \SpecialChar LaTeX
45308 \begin_inset CommandInset href
45311 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45318 \begin_inset Index idx
45321 \begin_layout Plain Layout
45323 -packages ! prettyref
45331 \begin_layout Bibliography
45332 \begin_inset CommandInset bibitem
45333 LatexCommand bibitem
45338 Web page of the \SpecialChar LaTeX
45342 \begin_inset CommandInset href
45345 target "http://tug.org/PSTricks/"
45352 \begin_inset Index idx
45355 \begin_layout Plain Layout
45357 -packages ! PSTricks
45365 \begin_layout Bibliography
45366 \begin_inset CommandInset bibitem
45367 LatexCommand bibitem
45372 Documentation of the \SpecialChar LaTeX
45376 \begin_inset CommandInset href
45379 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45386 \begin_inset Index idx
45389 \begin_layout Plain Layout
45391 -packages ! refstyle
45399 \begin_layout Bibliography
45400 \begin_inset CommandInset bibitem
45401 LatexCommand bibitem
45406 Documentation of the \SpecialChar LaTeX
45410 \begin_inset CommandInset href
45413 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45420 \begin_inset Index idx
45423 \begin_layout Plain Layout
45425 -packages ! sidecap
45433 \begin_layout Bibliography
45434 \begin_inset CommandInset bibitem
45435 LatexCommand bibitem
45441 \begin_inset CommandInset href
45444 target "http://wiki.lyx.org/LyX/NewInLyX20"
45448 about new features in
45456 \begin_layout Standard
45457 \begin_inset CommandInset index_print
45458 LatexCommand printindex