1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
5 \origin /systemlyxdir/doc/
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
173 \font_roman "default" "default"
174 \font_sans "default" "default"
175 \font_typewriter "default" "default"
176 \font_math "auto" "auto"
177 \font_default_family default
178 \use_non_tex_fonts false
181 \font_sf_scale 100 100
182 \font_tt_scale 100 100
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 true
240 \output_changes false
243 \html_be_strict false
244 \author 2047637253 "Guillaume Munch"
251 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
255 by the \SpecialChar LyX
260 \begin_layout Plain Layout
262 If you have comments or error corrections, please send them to the \SpecialChar LyX
265 \begin_inset CommandInset href
267 name "lyx-docs@lists.lyx.org"
268 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
279 \begin_inset Note Note
282 \begin_layout Plain Layout
289 \begin_inset Newline newline
293 \begin_inset Newline newline
301 \begin_layout Standard
302 \begin_inset CommandInset toc
303 LatexCommand tableofcontents
310 \begin_layout Standard
311 \begin_inset Note Note
314 \begin_layout Plain Layout
315 To export all parts of this document to PDF, PS, or DVI the \SpecialChar LaTeX
326 diagbox, lettrine, marginnote, picinpar
333 If they are not installed you can export the document anyway but the sections
334 where the packages are required won't appear in the output.
337 \begin_layout Plain Layout
338 The latest PDF-version of this document can be found here:
339 \begin_inset Newline newline
344 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
352 \begin_layout Chapter
354 \begin_inset Index idx
357 \begin_layout Plain Layout
364 \begin_inset Index idx
367 \begin_layout Plain Layout
372 \begin_layout Plain Layout
383 \begin_layout Plain Layout
398 \begin_layout Section
400 \begin_inset Index idx
403 \begin_layout Plain Layout
404 Figures ! Graphics Dialog
410 \begin_inset CommandInset label
412 name "sec:Graphics-Dialog"
419 \begin_layout Standard
420 To insert an image into your document, place the cursor at the text position
421 you want and click on the toolbar icon
424 arg "dialog-show-new-inset graphics"
429 Insert\SpecialChar menuseparator
433 Then a dialog will appear to choose the file to load.
434 The image will appear in the output exactly at the position where it is
438 \begin_layout Standard
439 The graphics dialog can be called at any time by clicking on an image.
440 This dialog has three tabs:
443 \begin_layout Description
448 Here you can choose an image file and adjust its appearance in the output.
449 The available units for the image size are explained in appendix
454 \begin_inset CommandInset ref
456 reference "cha:Units-available-in"
461 \begin_inset Newline newline
465 \begin_inset Index idx
468 \begin_layout Plain Layout
474 You can rotate images counter-clockwise by setting a rotation angle and
476 The image will also be rotated inside \SpecialChar LyX
478 \begin_inset Newline newline
482 \begin_inset Index idx
485 \begin_layout Plain Layout
491 Images can be scaled by using a percentage value or by setting the width
492 and height explicitly.
493 If you set only the width or only the height, the other size will be determined
495 If you set both, then the image will be transformed to the given size,
496 possibly distorting it.
497 To prevent the image from distortion, use the option
499 Maintain aspect ratio
502 The image will then be scaled so that its width and height don't exceed
503 the specified dimensions.
504 \begin_inset Newline newline
507 Images can be opened in a program of your choice by right-clicking on it
508 and choosing the entry
517 The program can be set for every image format in the file format settings
522 \begin_layout Description
527 Alternatively to the usage of scaling units it is possible to set image
528 coordinates to adjust the height and width of the image in the output.
529 The coordinates can also be calculated automatically by pressing the button
559 will only print the image region within the given coordinates.
560 Normally you don't need to worry about image coordinates and can ignore
564 \begin_layout Description
581 In this tab you can modify the appearance of the image within \SpecialChar LyX
582 and \SpecialChar LaTeX
584 can specify additional \SpecialChar LaTeX
586 \begin_inset Newline newline
597 makes the image appear in the output only as a frame with the size of the
599 \begin_inset Newline newline
610 you can define or join an image settings group.
611 \begin_inset Index idx
614 \begin_layout Plain Layout
615 Figures ! Settings grouping
620 Images within such a group share their settings, so adjusting one image
621 of the group automatically also adjusts all other images of the group in
623 So you can for example change the size for a bunch of images without the
624 need to manually change each of them.
625 Joining an existing group can also be done using the context menu of the
626 image by checking the name of the desired group.
629 \begin_layout Standard
630 \begin_inset VSpace bigskip
636 \begin_layout Standard
637 This is an example image in EPS format
641 \begin_layout Plain Layout
642 Image formats are explained in section
647 \begin_inset CommandInset ref
649 reference "sec:Image-Formats"
658 within a separate, horizontally centered paragraph:
659 \begin_inset Separator parbreak
665 \begin_layout Standard
667 \begin_inset Graphics
668 filename clipart/mobius.eps
678 \begin_layout Standard
679 This is the same image like the one above but in draft mode:
680 \begin_inset Separator parbreak
686 \begin_layout Standard
688 \begin_inset Graphics
689 filename clipart/mobius.eps
700 \begin_layout Standard
701 \begin_inset Newpage newpage
707 \begin_layout Section
709 \begin_inset CommandInset label
711 name "sec:Figure-Floats"
716 \begin_inset Index idx
719 \begin_layout Plain Layout
726 \begin_inset Index idx
729 \begin_layout Plain Layout
738 \begin_layout Standard
739 For general explanations about floats, have a look at section
744 \begin_inset CommandInset ref
746 reference "sec:FloatIntroduction"
753 \begin_layout Standard
757 arg "float-insert figure"
762 Insert\SpecialChar menuseparator
763 Float\SpecialChar menuseparator
766 inserts a float with a caption that has the label
767 \begin_inset Quotes eld
775 \begin_inset Quotes erd
778 (# is the actual number).
779 You can insert the image above the caption, like in Figure
784 \begin_inset CommandInset ref
786 reference "fig:kill-plat"
790 or below the caption, like in Figure
795 \begin_inset CommandInset ref
797 reference "fig:escher"
802 More about caption placement is described in section
807 \begin_inset CommandInset ref
809 reference "sec:Caption-Placement"
816 \begin_layout Standard
817 \begin_inset Float figure
822 \begin_layout Plain Layout
824 \begin_inset Graphics
825 filename clipart/platypus.eps
835 \begin_layout Plain Layout
836 \begin_inset Caption Standard
838 \begin_layout Plain Layout
839 \begin_inset CommandInset label
845 A severely distorted platypus in a float.
858 \begin_layout Standard
859 \begin_inset Float figure
864 \begin_layout Plain Layout
865 \begin_inset Caption Standard
867 \begin_layout Plain Layout
868 \begin_inset CommandInset label
883 \begin_layout Plain Layout
885 \begin_inset Graphics
886 filename clipart/escher-lsd.eps
901 \begin_layout Standard
902 \begin_inset Index idx
905 \begin_layout Plain Layout
906 References ! to Figures
916 \begin_inset CommandInset ref
918 reference "fig:kill-plat"
923 \begin_inset CommandInset ref
925 reference "fig:escher"
929 are examples of referenced figures.
930 Figures can be referenced in the text by referencing their label.
931 To do this insert a label in the caption using the menu
933 Insert\SpecialChar menuseparator
936 or the toolbar button
943 You can now refer to the label using the menu
945 Insert\SpecialChar menuseparator
952 or the toolbar button
955 arg "dialog-show-new-inset ref"
959 It is important to use references to floats, rather than using vague references
961 \begin_inset Quotes eld
965 \begin_inset Quotes erd
968 , because \SpecialChar LaTeX
969 will reposition the floats in the final document and it might
971 \begin_inset Quotes eld
975 \begin_inset Quotes erd
979 \begin_inset Newline newline
982 Referencing is explained in detail in section
987 \begin_inset CommandInset ref
989 reference "sec:Referencing-Floats"
996 \begin_layout Standard
997 Normally only one image is inserted to a figure float, but sometimes you
998 might want to use two images with separate subcaptions.
999 This can be done by inserting image floats into existing image floats.
1000 Note that only the main caption of the float is added to the List of Figures.
1002 \begin_inset space ~
1006 \begin_inset CommandInset ref
1008 reference "fig:Two-distorted-images"
1012 is an example of a figure float with two images set side by side.
1013 You can also set the images one below the other.
1015 \begin_inset space ~
1019 \begin_inset CommandInset ref
1021 reference "fig:Undefinable-structure"
1026 \begin_inset CommandInset ref
1028 reference "fig:A-Platypus"
1035 \begin_layout Standard
1036 \begin_inset Float figure
1041 \begin_layout Plain Layout
1042 \begin_inset space \hfill{}
1046 \begin_inset Float figure
1051 \begin_layout Plain Layout
1052 \begin_inset Caption Standard
1054 \begin_layout Plain Layout
1055 \begin_inset CommandInset label
1057 name "fig:Undefinable-structure"
1061 Undefinable structure.
1069 \begin_layout Plain Layout
1070 \begin_inset Graphics
1071 filename clipart/escher-lsd.eps
1084 \begin_inset space \hfill{}
1088 \begin_inset Float figure
1093 \begin_layout Plain Layout
1094 \begin_inset Caption Standard
1096 \begin_layout Plain Layout
1097 \begin_inset CommandInset label
1099 name "fig:A-Platypus"
1111 \begin_layout Plain Layout
1112 \begin_inset Graphics
1113 filename clipart/platypus.eps
1126 \begin_inset space \hfill{}
1132 \begin_layout Plain Layout
1133 \begin_inset Caption Standard
1135 \begin_layout Plain Layout
1136 \begin_inset CommandInset label
1138 name "fig:Two-distorted-images"
1142 Two distorted images.
1143 Both images are in the image settings group named
1144 \begin_inset Quotes eld
1148 \begin_inset Quotes erd
1164 \begin_layout Standard
1165 \begin_inset Newpage newpage
1171 \begin_layout Section
1173 \begin_inset CommandInset label
1175 name "sec:Image-Formats"
1180 \begin_inset Index idx
1183 \begin_layout Plain Layout
1190 \begin_inset Index idx
1193 \begin_layout Plain Layout
1194 Figures ! Image Formats
1202 \begin_layout Standard
1203 You can insert images in any known file format.
1204 But as explained in appendix
1205 \begin_inset space ~
1209 \begin_inset CommandInset ref
1211 reference "cha:Output-File-Formats"
1215 , each output document format allows only a few image formats.
1217 uses therefore the program
1221 in the background to convert the images to the right format.
1222 To increase your work flow by avoiding these conversions in the background,
1223 you could choose to use only the image formats that can directly be embedded
1224 in the output file format.
1225 The output file formats are explained in appendix
1226 \begin_inset space ~
1230 \begin_inset CommandInset ref
1232 reference "cha:Output-File-Formats"
1239 \begin_layout Standard
1240 Similar to fonts there are two types of image formats:
1243 \begin_layout Description
1245 \begin_inset space ~
1248 images consist of pixel values, often in a compressed form.
1249 They are therefore not fully scalable and look pixelated in large zooms.
1250 Well-known bitmap image formats are
1251 \begin_inset Quotes eld
1254 Graphics Interchange Format
1255 \begin_inset Quotes erd
1258 (GIF, file extension
1259 \begin_inset Quotes eld
1267 \begin_inset Quotes erd
1271 \begin_inset Index idx
1274 \begin_layout Plain Layout
1279 \begin_layout Plain Layout
1290 \begin_layout Plain Layout
1303 \begin_inset Quotes eld
1306 Portable Network Graphics
1307 \begin_inset Quotes erd
1310 (PNG, file extension
1311 \begin_inset Quotes eld
1319 \begin_inset Quotes erd
1323 \begin_inset Index idx
1326 \begin_layout Plain Layout
1331 \begin_layout Plain Layout
1342 \begin_layout Plain Layout
1355 \begin_inset Quotes eld
1358 Joint Photographic Experts Group
1359 \begin_inset Quotes erd
1362 (JPG, file extension
1363 \begin_inset Quotes eld
1371 \begin_inset Quotes erd
1375 \begin_inset Quotes eld
1383 \begin_inset Quotes erd
1387 \begin_inset Index idx
1390 \begin_layout Plain Layout
1395 \begin_layout Plain Layout
1406 \begin_layout Plain Layout
1421 \begin_layout Description
1423 \begin_inset space ~
1426 images consist of vectors and can therefore be scaled to any size without
1428 The scaling ability is necessary if you want to create presentations, because
1429 presentations are always scaled by the video projector.
1430 Scaling is also useful for online documents to let the user zoom into diagrams.
1431 \begin_inset Newline newline
1434 Well-known scalable image formats are
1435 \begin_inset Quotes eld
1438 Scalable Vector Graphics
1439 \begin_inset Quotes erd
1442 (SVG, file extension
1443 \begin_inset Quotes eld
1451 \begin_inset Quotes erd
1455 \begin_inset Index idx
1458 \begin_layout Plain Layout
1463 \begin_layout Plain Layout
1474 \begin_layout Plain Layout
1487 \begin_inset Quotes eld
1490 Encapsulated PostScript
1491 \begin_inset Quotes erd
1494 (EPS, file extension
1495 \begin_inset Quotes eld
1503 \begin_inset Quotes erd
1507 \begin_inset Index idx
1510 \begin_layout Plain Layout
1515 \begin_layout Plain Layout
1526 \begin_layout Plain Layout
1539 \begin_inset Quotes eld
1542 Portable Document Format
1543 \begin_inset Quotes erd
1546 (PDF, file extension
1547 \begin_inset Quotes eld
1555 \begin_inset Quotes erd
1559 \begin_inset Index idx
1562 \begin_layout Plain Layout
1569 \begin_inset Quotes eld
1573 \begin_inset Quotes erd
1576 (WMF, file extension
1577 \begin_inset Quotes eld
1585 \begin_inset Quotes erd
1589 \begin_inset Index idx
1592 \begin_layout Plain Layout
1597 \begin_layout Plain Layout
1608 \begin_layout Plain Layout
1622 \begin_inset Quotes eld
1626 \begin_inset Quotes erd
1629 , because you can convert any bitmap image to a PDF or EPS-image and the
1630 result will still be a bitmap image.
1631 In such cases only a header with the image properties is added to the original
1636 \begin_layout Plain Layout
1637 In the case of PDF, the original image is additionally compressed.
1643 The PDF-files generated by
1647 are for example bitmap images.
1650 \begin_layout Standard
1651 Normally it is not possible to convert a bitmap image into a scalable one,
1653 Only the image formats PDF and EPS can directly be embedded to PDF and
1654 PostScript output files, respectively.
1655 SVG and WMF-images are recalculated to bitmaps when the output file is
1656 generated because there is currently no adequate WMF/SVG
1657 \begin_inset Formula $\to$
1660 PDF/EPS converter available.
1663 \begin_layout Chapter
1665 \begin_inset Index idx
1668 \begin_layout Plain Layout
1677 \begin_layout Section
1679 \begin_inset Index idx
1682 \begin_layout Plain Layout
1683 Table ! Introduction
1691 \begin_layout Standard
1692 You can insert a table using either the toolbar button
1695 arg "tabular-insert"
1700 Insert\SpecialChar menuseparator
1704 The toolbar button offers you a graphical selection: move the mouse to
1705 set the column/row number of the table that should be created and then
1706 press a mouse button.
1707 When you use the menu to create a table, a dialog will appear, asking you
1708 for the number of rows and columns.
1709 \begin_inset Newline newline
1712 The default table has lines around any cell and the first row appears separated
1713 from the rest of the table.
1714 This separation occurs due to a double line: The cells of the first row
1715 have a line below them and the cells of the second row have a line above
1717 Here is an example table:
1718 \begin_inset Separator parbreak
1724 \begin_layout Standard
1726 \begin_inset Tabular
1727 <lyxtabular version="3" rows="4" columns="4">
1728 <features tabularvalignment="middle">
1729 <column alignment="center" valignment="top">
1730 <column alignment="center" valignment="top">
1731 <column alignment="center" valignment="top">
1732 <column alignment="center" valignment="top">
1734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1737 \begin_layout Plain Layout
1743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1746 \begin_layout Plain Layout
1761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1764 \begin_layout Plain Layout
1770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1773 \begin_layout Plain Layout
1781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1784 \begin_layout Plain Layout
1799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1802 \begin_layout Plain Layout
1808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1811 \begin_layout Plain Layout
1817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1820 \begin_layout Plain Layout
1828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1831 \begin_layout Plain Layout
1846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1849 \begin_layout Plain Layout
1855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1858 \begin_layout Plain Layout
1864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1867 \begin_layout Plain Layout
1875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1878 \begin_layout Plain Layout
1893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1896 \begin_layout Plain Layout
1902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1905 \begin_layout Plain Layout
1911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1914 \begin_layout Plain Layout
1928 \begin_layout Section
1930 \begin_inset Index idx
1933 \begin_layout Plain Layout
1942 \begin_layout Standard
1943 You can alter a table by clicking on it with the right mouse button, which
1944 brings up the context menu.
1945 Under the menu entry
1949 you can adjust the settings of that cell and row/column respectively where
1950 the cursor is currently placed.
1953 More\SpecialChar menuseparator
1956 opens the table dialog where you can adjust more things.
1957 Most of the dialog options also work on selections.
1958 This means if you select more cells, columns or rows, the action is done
1959 for the whole selection.
1960 Note that there is a difference between selecting the
1964 of the cell, and the cell itself.
1965 \begin_inset Newline newline
1968 With the dialog option
1971 \begin_inset space ~
1976 every change you make in the dialog is directly applied.
1977 If you move the cursor to another table cell the dialog will then also
1978 be updated with the parameters of the new cell.
1979 If you change length values in the dialog you must press
1983 to get the change applied.
1984 \begin_inset Newline newline
1987 You can alter tables with the following tabs of the table dialog:
1990 \begin_layout Description
1994 \begin_inset space ~
1999 Here you can set the table width
2000 \begin_inset Index idx
2003 \begin_layout Plain Layout
2009 , and the horizontal alignment and the width of the current column.
2013 \begin_inset space ~
2017 \begin_inset space ~
2022 is described in section
2023 \begin_inset space ~
2027 \begin_inset CommandInset ref
2029 reference "subsec:Special-Cell-Alignment"
2034 When you have set a width you can also adjust the vertical alignment of
2036 A given width will allow the cell to have line breaks and multiple paragraphs
2038 \begin_inset space \thinspace{}
2042 \begin_inset CommandInset ref
2044 reference "subsec:Multiple-Lines-in"
2049 If you set no width, the column is as wide as the content of its widest
2051 \begin_inset Newline newline
2054 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2056 \begin_inset space \thinspace{}
2060 \begin_inset CommandInset ref
2062 reference "subsec:Multicolumns"
2066 or the cells of one column as multirow cell, see sec.
2067 \begin_inset space \thinspace{}
2071 \begin_inset CommandInset ref
2073 reference "subsec:Multirows"
2078 \begin_inset Newline newline
2081 The rotate check boxes rotate the current cell, a selection, or the whole
2082 table counter-clockwise by 90
2083 \begin_inset space \thinspace{}
2087 The rotation is not shown within \SpecialChar LyX
2088 , only in the output.
2089 For more information see sec.
2090 \begin_inset space \thinspace{}
2094 \begin_inset CommandInset ref
2096 reference "sec:Rotated-Table-Cells"
2101 \begin_inset Newline newline
2105 \begin_inset Note Greyedout
2108 \begin_layout Plain Layout
2113 Not all DVI-viewers are able to display rotations.
2119 \begin_inset Newline newline
2122 The table-wide vertical alignment is used for tables within text lines:
2123 \begin_inset Newline newline
2126 A line with tables with different alignments:
2127 \begin_inset Tabular
2128 <lyxtabular version="3" rows="2" columns="2">
2129 <features tabularvalignment="top">
2130 <column alignment="center" valignment="top" width="0pt">
2131 <column alignment="center" valignment="top">
2133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2136 \begin_layout Plain Layout
2142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2145 \begin_layout Plain Layout
2162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2165 \begin_layout Plain Layout
2180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2183 \begin_layout Plain Layout
2195 \begin_inset Tabular
2196 <lyxtabular version="3" rows="2" columns="2">
2197 <features tabularvalignment="middle">
2198 <column alignment="center" valignment="top">
2199 <column alignment="center" valignment="top">
2201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2204 \begin_layout Plain Layout
2210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2213 \begin_layout Plain Layout
2230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2233 \begin_layout Plain Layout
2248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2251 \begin_layout Plain Layout
2263 \begin_inset Tabular
2264 <lyxtabular version="3" rows="2" columns="2">
2265 <features tabularvalignment="bottom">
2266 <column alignment="center" valignment="top" width="0pt">
2267 <column alignment="center" valignment="top">
2269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2272 \begin_layout Plain Layout
2278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2281 \begin_layout Plain Layout
2298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2301 \begin_layout Plain Layout
2316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2319 \begin_layout Plain Layout
2331 \begin_inset Newline newline
2334 It is also possible to enter a \SpecialChar LaTeX
2335 -argument which is needed for special table
2336 formattings, see sec.
2337 \begin_inset space \thinspace{}
2341 \begin_inset CommandInset ref
2343 reference "subsec:Multicolumn-Calculations"
2348 \begin_inset CommandInset ref
2350 reference "sec:Colored-Tables"
2357 \begin_layout Description
2362 In this tab you can add and delete border lines for the current row/column.
2363 \begin_inset Newline newline
2366 Using the style option
2370 will convert the table to a formal table as described in sec.
2371 \begin_inset space \thinspace{}
2375 \begin_inset CommandInset ref
2377 reference "sec:Formal-Tables"
2382 \begin_inset Newline newline
2385 You can also add space here to table rows as described in sec.
2386 \begin_inset space \thinspace{}
2390 \begin_inset CommandInset ref
2392 reference "subsec:Row-Spacing"
2399 \begin_layout Description
2404 This tab is to make a table a so called
2405 \begin_inset Quotes eld
2413 \begin_inset Quotes erd
2416 that can run over several pages.
2418 \begin_inset space ~
2422 \begin_inset CommandInset ref
2424 reference "sec:Longtables"
2429 \begin_inset CommandInset ref
2431 reference "sec:Special-Longtable-Issues"
2435 describe the longtable features in detail.
2438 \begin_layout Section
2440 \begin_inset Index idx
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 The table toolbar is an alternative to the table dialog to be able to alter
2455 It should normally appear at the bottom of \SpecialChar LyX
2456 's main window when the cursor
2458 You can alternatively switch it on to appear always, by right-clicking
2463 \begin_layout Standard
2464 The toolbar has the following icons:
2467 \begin_layout Labeling
2468 \labelwidthstring 00.00.0000
2471 arg "inset-modify tabular append-row"
2474 adds a row below the current cell or selection
2477 \begin_layout Labeling
2478 \labelwidthstring 00.00.0000
2481 arg "inset-modify tabular append-column"
2484 adds a column right beside the current cell or selection
2487 \begin_layout Labeling
2488 \labelwidthstring 00.00.0000
2491 arg "inset-modify tabular delete-row"
2494 deletes the current row or selection
2497 \begin_layout Labeling
2498 \labelwidthstring 00.00.0000
2501 arg "inset-modify tabular delete-column"
2504 deletes the current column or selection
2507 \begin_layout Labeling
2508 \labelwidthstring 00.00.0000
2511 arg "inset-modify tabular move-row-up"
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2521 arg "inset-modify tabular move-column-left"
2524 moves the column to the left
2527 \begin_layout Labeling
2528 \labelwidthstring 00.00.0000
2531 arg "inset-modify tabular move-row-down"
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2541 arg "inset-modify tabular move-column-right"
2544 moves the column to the right
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2551 arg "inset-modify tabular toggle-line-top"
2554 adds a line at the top of the current cell / row or of a selection
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2561 arg "inset-modify tabular toggle-line-bottom"
2564 adds a line at the bottom of the current cell / row or of a selection
2567 \begin_layout Labeling
2568 \labelwidthstring 00.00.0000
2571 arg "inset-modify tabular toggle-line-left"
2574 adds a line at the left side of the current cell / row or of a selection
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2581 arg "inset-modify tabular toggle-line-right"
2584 adds a line at the right side of the current cell / row or of a selection
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2591 arg "inset-modify tabular set-all-lines"
2594 adds lines around the current or selected cells - if the current cell no
2595 multicolumn cell this also affects the current row and column
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2602 arg "inset-modify tabular unset-all-lines"
2605 deletes all lines of the current or selected cells - if the current cell
2606 no multicolumn cell this also affects the current row and column
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2613 arg "inset-modify tabular m-align-left"
2616 left-aligns the content of the current cell / column
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2623 arg "inset-modify tabular m-align-center"
2626 centers the content of the current cell / column horizontally
2629 \begin_layout Labeling
2630 \labelwidthstring 00.00.0000
2633 arg "inset-modify tabular m-align-right"
2636 right-aligns the content of the current cell / column
2639 \begin_layout Labeling
2640 \labelwidthstring 00.00.0000
2643 arg "inset-modify tabular align-decimal"
2646 aligns the content of the current column at a character
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2653 arg "inset-modify tabular m-valign-top"
2656 aligns the content of the current cell vertically to the top
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2663 arg "inset-modify tabular m-valign-middle"
2666 centers the content of the current cell vertically
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2673 arg "inset-modify tabular m-valign-bottom"
2676 aligns the content of the current cell vertically to the bottom
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2683 arg "inset-modify tabular set-rotate-cell"
2686 rotates the current cell or selection counter-clockwise by 90°
2689 \begin_layout Labeling
2690 \labelwidthstring 00.00.0000
2693 arg "inset-modify tabular set-rotate-tabular"
2696 rotates the whole table counter-clockwise by 90°
2699 \begin_layout Labeling
2700 \labelwidthstring 00.00.0000
2703 arg "inset-modify tabular multicolumn"
2706 sets the current cell or selection as a multicolumn
2709 \begin_layout Labeling
2710 \labelwidthstring 00.00.0000
2713 arg "inset-modify tabular multirow"
2716 sets the current cell or selection as a multirow
2719 \begin_layout Standard
2720 \begin_inset Note Greyedout
2723 \begin_layout Plain Layout
2728 For the output the vertical alignment of the first cell in a row is used
2729 for all following cells in the row.
2737 \begin_layout Section
2739 \begin_inset Index idx
2742 \begin_layout Plain Layout
2751 \begin_layout Standard
2752 In addition to the table dialog and toolbar, the menu
2754 Edit\SpecialChar menuseparator
2757 allows you to add and delete border lines for the current row/column and
2758 to set the current selection as multicolumn.
2759 The menu is only available when the cursor is inside a table.
2762 \begin_layout Section
2764 \begin_inset CommandInset label
2766 name "sec:Table-Floats"
2771 \begin_inset Index idx
2774 \begin_layout Plain Layout
2781 \begin_inset Index idx
2784 \begin_layout Plain Layout
2793 \begin_layout Standard
2794 For general explanations about floats, have a look at section
2795 \begin_inset space ~
2799 \begin_inset CommandInset ref
2801 reference "sec:FloatIntroduction"
2808 \begin_layout Standard
2809 \begin_inset Float table
2815 \begin_layout Plain Layout
2816 \begin_inset Caption Standard
2818 \begin_layout Plain Layout
2819 \begin_inset CommandInset label
2821 name "tab:a table float"
2833 \begin_layout Plain Layout
2835 \begin_inset Tabular
2836 <lyxtabular version="3" rows="3" columns="3">
2837 <features tabularvalignment="middle">
2838 <column alignment="center" valignment="top" width="0pt">
2839 <column alignment="center" valignment="top" width="0pt">
2840 <column alignment="center" valignment="top" width="0pt">
2842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2845 \begin_layout Plain Layout
2860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2863 \begin_layout Plain Layout
2878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2881 \begin_layout Plain Layout
2898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2901 \begin_layout Plain Layout
2916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2919 \begin_layout Plain Layout
2934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2937 \begin_layout Plain Layout
2954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2957 \begin_layout Plain Layout
2967 \begin_inset Formula $\int x^{2}dx$
2975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2978 \begin_layout Plain Layout
2988 \begin_inset Formula $\left[\begin{array}{cc}
2999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3002 \begin_layout Plain Layout
3012 \begin_inset Formula $1+1=2$
3033 \begin_layout Standard
3034 Table floats can be inserted using the menu
3036 Insert\SpecialChar menuseparator
3037 Float\SpecialChar menuseparator
3040 or the toolbar button
3043 arg "float-insert table"
3049 \begin_layout Standard
3050 The float appears as a collapsible box with a caption that has the label
3052 \begin_inset Quotes eld
3056 \begin_inset space ~
3060 \begin_inset Quotes erd
3063 (# is the actual table number).
3064 You can insert tables in the float above or below the caption.
3067 \begin_layout Standard
3069 \begin_inset space ~
3073 \begin_inset CommandInset ref
3075 reference "tab:a table float"
3079 is an example table within a table float.
3082 \begin_layout Standard
3083 Having the caption above the table is the common rule that is unfortunately
3084 not supported in \SpecialChar LaTeX
3085 's standard classes.
3086 This means that, if you are using the document classes
3102 , there will be no space between the caption and the table.
3103 To insert the needed space, add the following option to the load command
3104 of the \SpecialChar LaTeX
3110 \begin_inset Index idx
3113 \begin_layout Plain Layout
3120 in your document preamble
3124 \begin_layout Plain Layout
3125 For more information have a look at section
3126 \begin_inset space ~
3130 \begin_inset CommandInset ref
3132 reference "sec:Caption-Placement"
3144 \begin_layout Standard
3150 \begin_layout Standard
3155 , which is described in section
3156 \begin_inset space ~
3160 \begin_inset CommandInset ref
3162 reference "sec:Caption-Formatting"
3166 , is used to adjust the caption format.
3169 \begin_layout Standard
3170 \begin_inset Index idx
3173 \begin_layout Plain Layout
3174 References ! to Tables
3179 Tables can be cross-referenced in the text by referencing their label.
3180 To do this insert a label in the caption using the menu
3182 Insert\SpecialChar menuseparator
3185 or the toolbar button
3192 You can now refer to the label using the menu
3194 Insert\SpecialChar menuseparator
3196 \begin_inset space ~
3201 or the toolbar button
3204 arg "dialog-show-new-inset ref"
3208 \begin_inset Newline newline
3211 Referencing is explained in detail in section
3212 \begin_inset space ~
3216 \begin_inset CommandInset ref
3218 reference "sec:Referencing-Floats"
3225 \begin_layout Section
3227 \begin_inset CommandInset label
3229 name "sec:Longtables"
3234 \begin_inset Index idx
3237 \begin_layout Plain Layout
3244 \begin_inset Index idx
3247 \begin_layout Plain Layout
3256 \begin_layout Standard
3257 If the table is too long to fit on one page, you can use the option
3260 \begin_inset space ~
3264 \begin_inset space ~
3273 of the table dialog to split the table automatically over more pages.
3274 Doing this enables the following options:
3277 \begin_layout Description
3278 Header: The current row is defined to be a header row that appears on all
3279 pages of the longtable; except for the first page, if
3282 \begin_inset space ~
3288 This is therefore called the main header.
3291 \begin_layout Description
3293 \begin_inset space ~
3296 header: The current row is defined to be a header row that appears on the
3297 first page of the longtable.
3300 \begin_layout Description
3301 Footer: The current row is defined to be a footer row that appears on all
3302 pages of the longtable; except for the last page, if
3305 \begin_inset space ~
3313 \begin_layout Description
3315 \begin_inset space ~
3318 footer: The current row is defined to be a footer row that appears on the
3319 last page of the longtable.
3322 \begin_layout Description
3323 Caption: The current row contains the table caption.
3324 The row is reset as single column and a caption is inserted.
3325 More about longtable captions is explained in sec.
3326 \begin_inset space \thinspace{}
3330 \begin_inset CommandInset ref
3332 reference "subsec:Longtable-Captions"
3339 \begin_layout Standard
3340 You can also specify a row where the table is split.
3341 See the following longtable to see how it works:
3342 \begin_inset Separator parbreak
3348 \begin_layout Standard
3350 \begin_inset Tabular
3351 <lyxtabular version="3" rows="69" columns="3">
3352 <features islongtable="true" longtabularalignment="center">
3353 <column alignment="left" valignment="top" width="0cm">
3354 <column alignment="left" valignment="top" width="0pt">
3355 <column alignment="center" valignment="top" width="0pt">
3356 <row endfirsthead="true">
3357 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3363 Example Phone List (ignore the names)
3368 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3371 \begin_layout Plain Layout
3377 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3380 \begin_layout Plain Layout
3387 <row endfirsthead="true">
3388 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3402 \begin_layout Plain Layout
3408 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3411 \begin_layout Plain Layout
3420 <row endhead="true">
3421 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3424 \begin_layout Plain Layout
3432 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3435 \begin_layout Plain Layout
3441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3444 \begin_layout Plain Layout
3451 <row endhead="true">
3452 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3455 \begin_layout Plain Layout
3463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3466 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3475 \begin_layout Plain Layout
3484 <row endfoot="true">
3485 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3488 \begin_layout Plain Layout
3489 continued on next page
3494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3497 \begin_layout Plain Layout
3503 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3506 \begin_layout Plain Layout
3514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3517 \begin_layout Plain Layout
3525 <cell alignment="center" valignment="top" usebox="none">
3528 \begin_layout Plain Layout
3534 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3537 \begin_layout Plain Layout
3545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3548 \begin_layout Plain Layout
3556 <cell alignment="center" valignment="top" usebox="none">
3559 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3568 \begin_layout Plain Layout
3576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3579 \begin_layout Plain Layout
3587 <cell alignment="center" valignment="top" usebox="none">
3590 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3599 \begin_layout Plain Layout
3607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3610 \begin_layout Plain Layout
3618 <cell alignment="center" valignment="top" usebox="none">
3621 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3630 \begin_layout Plain Layout
3638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3641 \begin_layout Plain Layout
3649 <cell alignment="center" valignment="top" usebox="none">
3652 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3661 \begin_layout Plain Layout
3669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3672 \begin_layout Plain Layout
3680 <cell alignment="center" valignment="top" usebox="none">
3683 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3692 \begin_layout Plain Layout
3700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3703 \begin_layout Plain Layout
3711 <cell alignment="center" valignment="top" usebox="none">
3714 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3723 \begin_layout Plain Layout
3731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3734 \begin_layout Plain Layout
3742 <cell alignment="center" valignment="top" usebox="none">
3745 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3754 \begin_layout Plain Layout
3762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3765 \begin_layout Plain Layout
3773 <cell alignment="center" valignment="top" usebox="none">
3776 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3785 \begin_layout Plain Layout
3793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3796 \begin_layout Plain Layout
3804 <cell alignment="center" valignment="top" usebox="none">
3807 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3816 \begin_layout Plain Layout
3824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3827 \begin_layout Plain Layout
3835 <cell alignment="center" valignment="top" usebox="none">
3838 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3847 \begin_layout Plain Layout
3855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3858 \begin_layout Plain Layout
3866 <cell alignment="center" valignment="top" usebox="none">
3869 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3878 \begin_layout Plain Layout
3886 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3889 \begin_layout Plain Layout
3897 <cell alignment="center" valignment="top" usebox="none">
3900 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3909 \begin_layout Plain Layout
3917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3920 \begin_layout Plain Layout
3928 <cell alignment="center" valignment="top" usebox="none">
3931 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3940 \begin_layout Plain Layout
3948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3951 \begin_layout Plain Layout
3959 <cell alignment="center" valignment="top" usebox="none">
3962 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3971 \begin_layout Plain Layout
3979 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3982 \begin_layout Plain Layout
3990 <cell alignment="center" valignment="top" usebox="none">
3993 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4002 \begin_layout Plain Layout
4010 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4013 \begin_layout Plain Layout
4021 <cell alignment="center" valignment="top" usebox="none">
4024 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4033 \begin_layout Plain Layout
4041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4044 \begin_layout Plain Layout
4052 <cell alignment="center" valignment="top" usebox="none">
4055 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4064 \begin_layout Plain Layout
4072 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4075 \begin_layout Plain Layout
4083 <cell alignment="center" valignment="top" usebox="none">
4086 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4095 \begin_layout Plain Layout
4103 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4106 \begin_layout Plain Layout
4114 <cell alignment="center" valignment="top" usebox="none">
4117 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4126 \begin_layout Plain Layout
4134 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4137 \begin_layout Plain Layout
4145 <cell alignment="center" valignment="top" usebox="none">
4148 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4157 \begin_layout Plain Layout
4165 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4168 \begin_layout Plain Layout
4176 <cell alignment="center" valignment="top" usebox="none">
4179 \begin_layout Plain Layout
4185 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4188 \begin_layout Plain Layout
4196 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4199 \begin_layout Plain Layout
4207 <cell alignment="center" valignment="top" usebox="none">
4210 \begin_layout Plain Layout
4216 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4219 \begin_layout Plain Layout
4227 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4230 \begin_layout Plain Layout
4238 <cell alignment="center" valignment="top" usebox="none">
4241 \begin_layout Plain Layout
4247 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4250 \begin_layout Plain Layout
4258 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4261 \begin_layout Plain Layout
4269 <cell alignment="center" valignment="top" usebox="none">
4272 \begin_layout Plain Layout
4278 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4281 \begin_layout Plain Layout
4289 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4292 \begin_layout Plain Layout
4300 <cell alignment="center" valignment="top" usebox="none">
4303 \begin_layout Plain Layout
4309 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4312 \begin_layout Plain Layout
4320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4323 \begin_layout Plain Layout
4331 <cell alignment="center" valignment="top" usebox="none">
4334 \begin_layout Plain Layout
4340 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4343 \begin_layout Plain Layout
4351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4354 \begin_layout Plain Layout
4362 <cell alignment="center" valignment="top" usebox="none">
4365 \begin_layout Plain Layout
4371 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4374 \begin_layout Plain Layout
4382 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4385 \begin_layout Plain Layout
4393 <cell alignment="center" valignment="top" usebox="none">
4396 \begin_layout Plain Layout
4402 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4405 \begin_layout Plain Layout
4413 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4416 \begin_layout Plain Layout
4424 <cell alignment="center" valignment="top" usebox="none">
4427 \begin_layout Plain Layout
4433 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4436 \begin_layout Plain Layout
4444 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4447 \begin_layout Plain Layout
4455 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4458 \begin_layout Plain Layout
4464 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4467 \begin_layout Plain Layout
4475 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4478 \begin_layout Plain Layout
4484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4487 \begin_layout Plain Layout
4493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4496 \begin_layout Plain Layout
4504 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4507 \begin_layout Plain Layout
4515 <cell alignment="center" valignment="top" usebox="none">
4518 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4527 \begin_layout Plain Layout
4535 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4538 \begin_layout Plain Layout
4546 <cell alignment="center" valignment="top" usebox="none">
4549 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4558 \begin_layout Plain Layout
4566 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4569 \begin_layout Plain Layout
4577 <cell alignment="center" valignment="top" usebox="none">
4580 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4589 \begin_layout Plain Layout
4597 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4600 \begin_layout Plain Layout
4608 <cell alignment="center" valignment="top" usebox="none">
4611 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4620 \begin_layout Plain Layout
4628 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4631 \begin_layout Plain Layout
4639 <cell alignment="center" valignment="top" usebox="none">
4642 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4651 \begin_layout Plain Layout
4659 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4662 \begin_layout Plain Layout
4670 <cell alignment="center" valignment="top" usebox="none">
4673 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4682 \begin_layout Plain Layout
4690 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4693 \begin_layout Plain Layout
4701 <cell alignment="center" valignment="top" usebox="none">
4704 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4713 \begin_layout Plain Layout
4721 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4724 \begin_layout Plain Layout
4732 <cell alignment="center" valignment="top" usebox="none">
4735 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4744 \begin_layout Plain Layout
4752 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4755 \begin_layout Plain Layout
4763 <cell alignment="center" valignment="top" usebox="none">
4766 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4775 \begin_layout Plain Layout
4783 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4786 \begin_layout Plain Layout
4794 <cell alignment="center" valignment="top" usebox="none">
4797 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4806 \begin_layout Plain Layout
4814 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4817 \begin_layout Plain Layout
4825 <cell alignment="center" valignment="top" usebox="none">
4828 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4837 \begin_layout Plain Layout
4845 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4848 \begin_layout Plain Layout
4856 <cell alignment="center" valignment="top" usebox="none">
4859 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4868 \begin_layout Plain Layout
4876 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4879 \begin_layout Plain Layout
4887 <cell alignment="center" valignment="top" usebox="none">
4890 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4899 \begin_layout Plain Layout
4907 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4910 \begin_layout Plain Layout
4918 <cell alignment="center" valignment="top" usebox="none">
4921 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4930 \begin_layout Plain Layout
4938 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4941 \begin_layout Plain Layout
4949 <cell alignment="center" valignment="top" usebox="none">
4952 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4961 \begin_layout Plain Layout
4969 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4972 \begin_layout Plain Layout
4980 <cell alignment="center" valignment="top" usebox="none">
4983 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4992 \begin_layout Plain Layout
5000 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5003 \begin_layout Plain Layout
5011 <cell alignment="center" valignment="top" usebox="none">
5014 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5023 \begin_layout Plain Layout
5031 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5034 \begin_layout Plain Layout
5042 <cell alignment="center" valignment="top" usebox="none">
5045 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5054 \begin_layout Plain Layout
5062 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5065 \begin_layout Plain Layout
5073 <cell alignment="center" valignment="top" usebox="none">
5076 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5085 \begin_layout Plain Layout
5093 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5096 \begin_layout Plain Layout
5104 <cell alignment="center" valignment="top" usebox="none">
5107 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5116 \begin_layout Plain Layout
5124 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5127 \begin_layout Plain Layout
5135 <cell alignment="center" valignment="top" usebox="none">
5138 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5147 \begin_layout Plain Layout
5155 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5158 \begin_layout Plain Layout
5166 <cell alignment="center" valignment="top" usebox="none">
5169 \begin_layout Plain Layout
5175 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5178 \begin_layout Plain Layout
5186 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5189 \begin_layout Plain Layout
5197 <cell alignment="center" valignment="top" usebox="none">
5200 \begin_layout Plain Layout
5206 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5209 \begin_layout Plain Layout
5217 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5220 \begin_layout Plain Layout
5228 <cell alignment="center" valignment="top" usebox="none">
5231 \begin_layout Plain Layout
5237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5240 \begin_layout Plain Layout
5248 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5251 \begin_layout Plain Layout
5259 <cell alignment="center" valignment="top" usebox="none">
5262 \begin_layout Plain Layout
5268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5271 \begin_layout Plain Layout
5279 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5282 \begin_layout Plain Layout
5290 <cell alignment="center" valignment="top" usebox="none">
5293 \begin_layout Plain Layout
5299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5302 \begin_layout Plain Layout
5310 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5313 \begin_layout Plain Layout
5321 <cell alignment="center" valignment="top" usebox="none">
5324 \begin_layout Plain Layout
5330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5333 \begin_layout Plain Layout
5341 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5344 \begin_layout Plain Layout
5352 <cell alignment="center" valignment="top" usebox="none">
5355 \begin_layout Plain Layout
5361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5364 \begin_layout Plain Layout
5372 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5375 \begin_layout Plain Layout
5383 <cell alignment="center" valignment="top" usebox="none">
5386 \begin_layout Plain Layout
5392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5395 \begin_layout Plain Layout
5403 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5406 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" usebox="none">
5417 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5426 \begin_layout Plain Layout
5434 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5445 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5448 \begin_layout Plain Layout
5454 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5457 \begin_layout Plain Layout
5464 <row endlastfoot="true">
5465 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5477 \begin_layout Plain Layout
5483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5486 \begin_layout Plain Layout
5501 \begin_layout Plain Layout
5505 addtocounter{table}{-1}
5511 \begin_inset Note Note
5514 \begin_layout Plain Layout
5515 See the first greyed-out note in section
5516 \begin_inset space ~
5520 \begin_inset CommandInset ref
5522 reference "subsec:Longtable-Captions"
5526 for an explanation of this command.
5534 \begin_layout Subsection
5535 Footnotes in Longtables
5536 \begin_inset CommandInset label
5538 name "subsec:Footnotes-in-Longtables"
5543 \begin_inset Index idx
5546 \begin_layout Plain Layout
5547 Longtables ! Footnotes
5555 \begin_layout Standard
5556 Footnotes can be inserted to every longtable cell.
5557 They appear at the bottom of the page where the table cell with the footnote
5560 \begin_inset space ~
5564 \begin_inset CommandInset ref
5566 reference "tab:DiffCaptions"
5570 has for example a footnote.
5573 \begin_layout Subsection
5575 \begin_inset Index idx
5578 \begin_layout Plain Layout
5579 Longtables ! Alignment
5587 \begin_layout Standard
5588 The horizontal alignment of longtables can be set in the table settings
5590 For left- and right-alignment the table will be directly at the page border.
5591 To add space between the table and the border one has to set the alignment
5592 to center and change the value of the \SpecialChar LaTeX
5605 by inserting this line as \SpecialChar TeX
5606 Code before the longtable:
5609 \begin_layout Standard
5619 \begin_layout Standard
5620 The value can have any of the units listed in Table
5621 \begin_inset space ~
5625 \begin_inset CommandInset ref
5627 reference "tab:Units"
5638 controls the horizontal distance from the left page border to the longtable,
5645 the distance from the right side.
5646 The default value for both lengths is
5652 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5656 \begin_layout Standard
5657 The following longtable was centered and
5673 \begin_layout Plain Layout
5689 \begin_layout Standard
5690 \begin_inset Tabular
5691 <lyxtabular version="3" rows="5" columns="5">
5692 <features islongtable="true" longtabularalignment="center">
5693 <column alignment="center" valignment="top">
5694 <column alignment="center" valignment="top" width="0pt">
5695 <column alignment="center" valignment="top">
5696 <column alignment="center" valignment="top">
5697 <column alignment="center" valignment="top">
5699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5702 \begin_layout Plain Layout
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Plain Layout
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Plain Layout
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Plain Layout
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5738 \begin_layout Plain Layout
5746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5749 \begin_layout Plain Layout
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5758 \begin_layout Plain Layout
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Plain Layout
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Plain Layout
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5785 \begin_layout Plain Layout
5793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5796 \begin_layout Plain Layout
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Plain Layout
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Plain Layout
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5832 \begin_layout Plain Layout
5840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5843 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Plain Layout
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Plain Layout
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5879 \begin_layout Plain Layout
5887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5890 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5899 \begin_layout Plain Layout
5905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5908 \begin_layout Plain Layout
5914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5917 \begin_layout Plain Layout
5923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5926 \begin_layout Plain Layout
5941 \begin_layout Plain Layout
5958 \begin_layout Plain Layout
5962 addtocounter{table}{-1}
5968 \begin_inset Note Note
5971 \begin_layout Plain Layout
5972 See the first greyed-out note in section
5973 \begin_inset space ~
5977 \begin_inset CommandInset ref
5979 reference "subsec:Longtable-Captions"
5983 for an explanation of this command.
5991 \begin_layout Subsection
5993 \begin_inset Index idx
5996 \begin_layout Plain Layout
5997 Longtables ! Captions
6003 \begin_inset CommandInset label
6005 name "subsec:Longtable-Captions"
6012 \begin_layout Standard
6013 A longtable cannot be put into a table float because floats can only be
6015 But the caption environment of floats can also be used for longtables when
6016 you use the longtable option
6020 as described in sec.
6021 \begin_inset space \thinspace{}
6025 \begin_inset CommandInset ref
6027 reference "sec:Longtables"
6032 Only one table row should contain a caption, either a header or a footer
6036 \begin_layout Standard
6037 Here is a short longtable to see how it works:
6040 \begin_layout Standard
6041 \begin_inset Tabular
6042 <lyxtabular version="3" rows="6" columns="5">
6043 <features islongtable="true" longtabularalignment="center">
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 <column alignment="center" valignment="top">
6049 <row endfirsthead="true" caption="true">
6050 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6053 \begin_layout Plain Layout
6054 \begin_inset Caption Standard
6056 \begin_layout Plain Layout
6057 Longtable with caption
6058 \begin_inset Argument 1
6061 \begin_layout Plain Layout
6077 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6080 \begin_layout Plain Layout
6086 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6089 \begin_layout Plain Layout
6095 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6098 \begin_layout Plain Layout
6104 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6107 \begin_layout Plain Layout
6115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6118 \begin_layout Plain Layout
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Plain Layout
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6136 \begin_layout Plain Layout
6142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6145 \begin_layout Plain Layout
6151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6154 \begin_layout Plain Layout
6162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6165 \begin_layout Plain Layout
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Plain Layout
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6183 \begin_layout Plain Layout
6189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6192 \begin_layout Plain Layout
6198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6201 \begin_layout Plain Layout
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6212 \begin_layout Plain Layout
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Plain Layout
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6230 \begin_layout Plain Layout
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6239 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6248 \begin_layout Plain Layout
6256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6259 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Plain Layout
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6277 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6295 \begin_layout Plain Layout
6303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6306 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6315 \begin_layout Plain Layout
6321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6324 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6333 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6342 \begin_layout Plain Layout
6356 \begin_layout Standard
6357 \begin_inset VSpace medskip
6361 \begin_inset Note Greyedout
6364 \begin_layout Plain Layout
6368 \begin_inset space ~
6373 The table number is increased for every longtable, even if you did not
6374 set a caption for it.
6375 For this reason you could have the case that e.
6376 \begin_inset space \thinspace{}
6380 \begin_inset space \space{}
6384 \begin_inset space ~
6388 \begin_inset space ~
6391 2.1 in the list of tables if there are two longtables without captions.
6392 To avoid this you can add the following command in \SpecialChar TeX
6393 Code after every longtable
6397 \begin_layout Plain Layout
6402 addtocounter{table}{-1}
6405 \begin_layout Plain Layout
6406 This is not needed when none of your longtables has a caption and you add
6407 the following code to the document preamble:
6410 \begin_layout Plain Layout
6420 \begin_inset Newline newline
6431 addtocounter{table}{-1}}
6439 \begin_layout Standard
6440 \begin_inset Note Greyedout
6443 \begin_layout Plain Layout
6447 \begin_inset space ~
6457 \begin_inset Index idx
6460 \begin_layout Plain Layout
6462 -packages ! hyperref
6475 dialog to link cross-references, the link to a longtable caption will always
6476 point to the beginning of the document.
6484 \begin_layout Subsubsection
6485 References to Longtables
6486 \begin_inset Index idx
6489 \begin_layout Plain Layout
6490 Longtables ! References
6498 \begin_layout Standard
6499 \begin_inset Tabular
6500 <lyxtabular version="3" rows="6" columns="5">
6501 <features islongtable="true" longtabularalignment="center">
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 <column alignment="center" valignment="top">
6507 <row endfirsthead="true" caption="true">
6508 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6511 \begin_layout Plain Layout
6512 \begin_inset Caption Standard
6514 \begin_layout Plain Layout
6515 Referenced longtable
6516 \begin_inset CommandInset label
6518 name "tab:RefExample"
6532 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6535 \begin_layout Plain Layout
6541 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6544 \begin_layout Plain Layout
6550 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6553 \begin_layout Plain Layout
6559 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6562 \begin_layout Plain Layout
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6573 \begin_layout Plain Layout
6579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6582 \begin_layout Plain Layout
6588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6591 \begin_layout Plain Layout
6597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6600 \begin_layout Plain Layout
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6609 \begin_layout Plain Layout
6617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6620 \begin_layout Plain Layout
6626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6629 \begin_layout Plain Layout
6635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6638 \begin_layout Plain Layout
6644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6647 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6656 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6676 \begin_layout Plain Layout
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6694 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6703 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6723 \begin_layout Plain Layout
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6741 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6750 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6779 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6788 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Plain Layout
6811 \begin_layout Standard
6812 To reference a longtable, insert a label into the caption.
6815 \begin_layout Standard
6816 This is a reference to Table
6817 \begin_inset space ~
6821 \begin_inset CommandInset ref
6823 reference "tab:RefExample"
6830 \begin_layout Standard
6831 The caption layout can be set together with all other captions of your document
6832 using the \SpecialChar LaTeX
6838 \begin_inset Index idx
6841 \begin_layout Plain Layout
6849 \begin_inset space ~
6853 \begin_inset CommandInset ref
6855 reference "sec:Caption-Formatting"
6862 \begin_layout Subsubsection
6864 \begin_inset Index idx
6867 \begin_layout Plain Layout
6868 Longtables ! Caption Width
6876 \begin_layout Standard
6877 The maximal width of caption lines is defined by the length
6884 Its default value is 4
6885 \begin_inset space \thinspace{}
6889 To change it add the following command to your document preamble or as
6891 Code into your document before the longtable that should be affected
6894 \begin_layout Standard
6904 \begin_layout Standard
6905 where the width could have one of the units listed in appendix
6906 \begin_inset space ~
6910 \begin_inset CommandInset ref
6912 reference "cha:Units-available-in"
6919 \begin_layout Standard
6920 The following tables show the difference:
6923 \begin_layout Standard
6924 \begin_inset Tabular
6925 <lyxtabular version="3" rows="6" columns="5">
6926 <features islongtable="true" longtabularalignment="center">
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 <column alignment="center" valignment="top">
6932 <row endfirsthead="true" caption="true">
6933 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6936 \begin_layout Plain Layout
6937 \begin_inset Caption Standard
6939 \begin_layout Plain Layout
6940 long full title with default width long full title with default width long
6941 full title with default width
6942 \begin_inset Argument 1
6945 \begin_layout Plain Layout
6946 caption with default width
6961 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6964 \begin_layout Plain Layout
6970 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6973 \begin_layout Plain Layout
6979 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6982 \begin_layout Plain Layout
6988 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6991 \begin_layout Plain Layout
6999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7002 \begin_layout Plain Layout
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7011 \begin_layout Plain Layout
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7020 \begin_layout Plain Layout
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7038 \begin_layout Plain Layout
7046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7049 \begin_layout Plain Layout
7055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7058 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7085 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7096 \begin_layout Plain Layout
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7105 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7132 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7143 \begin_layout Plain Layout
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7179 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7190 \begin_layout Plain Layout
7196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7199 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7208 \begin_layout Plain Layout
7214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7217 \begin_layout Plain Layout
7223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7226 \begin_layout Plain Layout
7240 \begin_layout Standard
7244 \begin_layout Plain Layout
7256 \begin_inset Tabular
7257 <lyxtabular version="3" rows="6" columns="5">
7258 <features islongtable="true" longtabularalignment="center">
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 <column alignment="center" valignment="top">
7264 <row endfirsthead="true" caption="true">
7265 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7268 \begin_layout Plain Layout
7269 \begin_inset Caption Standard
7271 \begin_layout Plain Layout
7272 long full title with width set to 5
7273 \begin_inset space \thinspace{}
7276 cm long full title with width set to 5
7277 \begin_inset space \thinspace{}
7280 cm long full title with width set to 5
7281 \begin_inset space \thinspace{}
7285 \begin_inset Argument 1
7288 \begin_layout Plain Layout
7290 \begin_inset space \thinspace{}
7294 \begin_inset space \thinspace{}
7298 \begin_inset space \thinspace{}
7316 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7319 \begin_layout Plain Layout
7325 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7328 \begin_layout Plain Layout
7334 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7337 \begin_layout Plain Layout
7343 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7346 \begin_layout Plain Layout
7354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7357 \begin_layout Plain Layout
7363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7366 \begin_layout Plain Layout
7372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7375 \begin_layout Plain Layout
7381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7384 \begin_layout Plain Layout
7390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7393 \begin_layout Plain Layout
7401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7404 \begin_layout Plain Layout
7410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7413 \begin_layout Plain Layout
7419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7422 \begin_layout Plain Layout
7428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7431 \begin_layout Plain Layout
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7440 \begin_layout Plain Layout
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7451 \begin_layout Plain Layout
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7460 \begin_layout Plain Layout
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7469 \begin_layout Plain Layout
7475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7478 \begin_layout Plain Layout
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7487 \begin_layout Plain Layout
7495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7498 \begin_layout Plain Layout
7504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7516 \begin_layout Plain Layout
7522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7525 \begin_layout Plain Layout
7531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7534 \begin_layout Plain Layout
7542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7545 \begin_layout Plain Layout
7551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7563 \begin_layout Plain Layout
7569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7572 \begin_layout Plain Layout
7578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7581 \begin_layout Plain Layout
7595 \begin_layout Standard
7599 \begin_layout Plain Layout
7613 \begin_layout Standard
7614 \begin_inset Note Greyedout
7617 \begin_layout Plain Layout
7622 When the \SpecialChar LaTeX
7628 \begin_inset Index idx
7631 \begin_layout Plain Layout
7638 is used, as in this document, the full page width is used for the caption
7639 when you use the default value of 4
7640 \begin_inset space \thinspace{}
7650 To get in this case exactly a 4
7651 \begin_inset space \thinspace{}
7654 in wide caption, you can either use a value slightly different from 4.0
7655 \begin_inset space \thinspace{}
7659 \begin_inset space \thinspace{}
7663 \begin_inset space \space{}
7667 \begin_inset space \thinspace{}
7670 in, or the \SpecialChar LaTeX
7675 captionsetup{width=value}
7677 that is provided by the
7689 \begin_layout Subsubsection
7690 Different Captions for Table Pages
7691 \begin_inset Index idx
7694 \begin_layout Plain Layout
7695 Longtables ! Different Captions for Pages
7703 \begin_layout Standard
7704 When the table captions for the following pages should differ from the one
7705 of the first table page, mark a empty row as header which contains a caption.
7706 Then right-click on the caption and select in the context menu
7709 \begin_inset space ~
7716 \begin_inset space ~
7720 \begin_inset CommandInset ref
7722 reference "tab:DiffCaptions"
7726 is an example of a longtable with different heading where the second caption
7727 does not include the table number.
7728 \begin_inset Separator parbreak
7734 \begin_layout Standard
7736 \begin_inset Tabular
7737 <lyxtabular version="3" rows="59" columns="3">
7738 <features islongtable="true" longtabularalignment="center">
7739 <column alignment="left" valignment="top" width="0cm">
7740 <column alignment="left" valignment="top" width="0pt">
7741 <column alignment="center" valignment="top" width="0pt">
7742 <row endfirsthead="true" caption="true">
7743 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7746 \begin_layout Plain Layout
7747 \begin_inset Caption Standard
7749 \begin_layout Plain Layout
7751 \begin_inset CommandInset label
7753 name "tab:DiffCaptions"
7758 \begin_inset Argument 1
7761 \begin_layout Plain Layout
7777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7780 \begin_layout Plain Layout
7786 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7789 \begin_layout Plain Layout
7796 <row endfirsthead="true">
7797 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7800 \begin_layout Plain Layout
7803 Example Phone List (ignore the names)
7808 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7811 \begin_layout Plain Layout
7817 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7820 \begin_layout Plain Layout
7827 <row endfirsthead="true">
7828 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7831 \begin_layout Plain Layout
7839 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7842 \begin_layout Plain Layout
7848 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7851 \begin_layout Plain Layout
7860 <row endhead="true" caption="true">
7861 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7864 \begin_layout Plain Layout
7865 \begin_inset Caption LongTableNoNumber
7867 \begin_layout Plain Layout
7868 Continued Example Phone List
7878 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7881 \begin_layout Plain Layout
7887 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7890 \begin_layout Plain Layout
7897 <row endhead="true">
7898 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7901 \begin_layout Plain Layout
7909 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7912 \begin_layout Plain Layout
7918 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7921 \begin_layout Plain Layout
7928 <row endhead="true">
7929 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7932 \begin_layout Plain Layout
7940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7943 \begin_layout Plain Layout
7949 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7952 \begin_layout Plain Layout
7961 <row endfoot="true">
7962 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7965 \begin_layout Plain Layout
7966 continued on next page
7971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7974 \begin_layout Plain Layout
7980 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7983 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7994 \begin_layout Plain Layout
8002 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8005 \begin_layout Plain Layout
8011 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8014 \begin_layout Plain Layout
8022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8036 \begin_layout Plain Layout
8042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8045 \begin_layout Plain Layout
8053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8067 \begin_layout Plain Layout
8073 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8076 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8087 \begin_layout Plain Layout
8095 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8098 \begin_layout Plain Layout
8104 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8107 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8118 \begin_layout Plain Layout
8126 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8129 \begin_layout Plain Layout
8135 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8138 \begin_layout Plain Layout
8146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8149 \begin_layout Plain Layout
8157 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8160 \begin_layout Plain Layout
8166 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8169 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8191 \begin_layout Plain Layout
8197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8200 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8222 \begin_layout Plain Layout
8228 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8231 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8253 \begin_layout Plain Layout
8259 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8262 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8284 \begin_layout Plain Layout
8290 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8293 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8315 \begin_layout Plain Layout
8321 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8324 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8346 \begin_layout Plain Layout
8352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8355 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8377 \begin_layout Plain Layout
8383 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8386 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8408 \begin_layout Plain Layout
8414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8417 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8428 \begin_layout Plain Layout
8437 \begin_layout Plain Layout
8448 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8451 \begin_layout Plain Layout
8457 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8460 \begin_layout Plain Layout
8468 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8471 \begin_layout Plain Layout
8479 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8482 \begin_layout Plain Layout
8488 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8491 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8513 \begin_layout Plain Layout
8519 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8522 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8544 \begin_layout Plain Layout
8550 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8553 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8575 \begin_layout Plain Layout
8581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8584 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8606 \begin_layout Plain Layout
8612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8615 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8626 \begin_layout Plain Layout
8634 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8637 \begin_layout Plain Layout
8643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8657 \begin_layout Plain Layout
8665 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8668 \begin_layout Plain Layout
8674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8677 \begin_layout Plain Layout
8685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8688 \begin_layout Plain Layout
8696 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8699 \begin_layout Plain Layout
8705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8708 \begin_layout Plain Layout
8716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8719 \begin_layout Plain Layout
8727 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8730 \begin_layout Plain Layout
8736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8739 \begin_layout Plain Layout
8747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8750 \begin_layout Plain Layout
8758 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8761 \begin_layout Plain Layout
8767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8770 \begin_layout Plain Layout
8778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8781 \begin_layout Plain Layout
8789 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8792 \begin_layout Plain Layout
8798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8801 \begin_layout Plain Layout
8809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8812 \begin_layout Plain Layout
8820 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8823 \begin_layout Plain Layout
8829 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8832 \begin_layout Plain Layout
8840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8843 \begin_layout Plain Layout
8851 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8854 \begin_layout Plain Layout
8860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8863 \begin_layout Plain Layout
8871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8874 \begin_layout Plain Layout
8882 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8885 \begin_layout Plain Layout
8891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8894 \begin_layout Plain Layout
8902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8905 \begin_layout Plain Layout
8913 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8916 \begin_layout Plain Layout
8922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8925 \begin_layout Plain Layout
8933 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8936 \begin_layout Plain Layout
8944 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8947 \begin_layout Plain Layout
8953 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8956 \begin_layout Plain Layout
8964 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8967 \begin_layout Plain Layout
8973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8976 \begin_layout Plain Layout
8982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9007 \begin_layout Plain Layout
9013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9038 \begin_layout Plain Layout
9044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9069 \begin_layout Plain Layout
9075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9078 \begin_layout Plain Layout
9086 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9100 \begin_layout Plain Layout
9106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9109 \begin_layout Plain Layout
9117 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9131 \begin_layout Plain Layout
9137 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9140 \begin_layout Plain Layout
9148 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9162 \begin_layout Plain Layout
9168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9171 \begin_layout Plain Layout
9179 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9193 \begin_layout Plain Layout
9199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9202 \begin_layout Plain Layout
9210 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9224 \begin_layout Plain Layout
9230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9233 \begin_layout Plain Layout
9241 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9255 \begin_layout Plain Layout
9261 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9264 \begin_layout Plain Layout
9272 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9275 \begin_layout Plain Layout
9283 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9286 \begin_layout Plain Layout
9292 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9295 \begin_layout Plain Layout
9303 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9306 \begin_layout Plain Layout
9314 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9317 \begin_layout Plain Layout
9323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9326 \begin_layout Plain Layout
9334 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9337 \begin_layout Plain Layout
9345 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9348 \begin_layout Plain Layout
9354 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9357 \begin_layout Plain Layout
9365 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9368 \begin_layout Plain Layout
9376 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9379 \begin_layout Plain Layout
9385 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9388 \begin_layout Plain Layout
9396 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9399 \begin_layout Plain Layout
9407 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9410 \begin_layout Plain Layout
9416 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9419 \begin_layout Plain Layout
9427 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9430 \begin_layout Plain Layout
9438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9441 \begin_layout Plain Layout
9447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9450 \begin_layout Plain Layout
9458 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9461 \begin_layout Plain Layout
9469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9472 \begin_layout Plain Layout
9478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9481 \begin_layout Plain Layout
9489 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9492 \begin_layout Plain Layout
9500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9503 \begin_layout Plain Layout
9509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9512 \begin_layout Plain Layout
9520 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9523 \begin_layout Plain Layout
9531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9534 \begin_layout Plain Layout
9540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9543 \begin_layout Plain Layout
9551 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9554 \begin_layout Plain Layout
9562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9565 \begin_layout Plain Layout
9571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9574 \begin_layout Plain Layout
9582 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9585 \begin_layout Plain Layout
9593 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9596 \begin_layout Plain Layout
9602 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9605 \begin_layout Plain Layout
9619 \begin_layout Section
9620 Special Longtable Issues
9621 \begin_inset CommandInset label
9623 name "sec:Special-Longtable-Issues"
9630 \begin_layout Subsection
9631 Longtable Calculation
9632 \begin_inset Index idx
9635 \begin_layout Plain Layout
9636 Longtables ! Calculation
9644 \begin_layout Standard
9646 calculates the height of table pages and their page breaks using so called
9648 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9650 The default value was historically set to only 20 table rows.
9651 If you are using longtables with many pages this may slow down the creation
9653 You can safely increase the chunk size to values of 100-1000 by adding
9654 this command line to your document preamble:
9657 \begin_layout Standard
9662 setcounter{LTchunksize}{100}
9665 \begin_layout Subsection
9666 Floats and Longtables
9667 \begin_inset Index idx
9670 \begin_layout Plain Layout
9679 \begin_layout Standard
9680 There might be problems when a float appears on the same page where a longtable
9682 To avoid such a situation, insert a
9683 \begin_inset Quotes eld
9687 \begin_inset Quotes erd
9692 Insert\SpecialChar menuseparator
9693 Formatting\SpecialChar menuseparator
9695 \begin_inset space ~
9700 ) before your longtable.
9703 \begin_layout Subsection
9705 \begin_inset Index idx
9708 \begin_layout Plain Layout
9709 Longtables ! Forced Page Breaks
9717 \begin_layout Standard
9718 By default tables are only broken between rows.
9719 If you have a cell with multiples lines and want to have a page break within
9720 the cell, insert the new line command
9721 \begin_inset Quotes eld
9733 \begin_inset Quotes erd
9737 Code at the point of the cell where it can be broken.
9746 command you have to insert in \SpecialChar TeX
9748 \begin_inset Quotes eld
9756 \begin_inset Quotes erd
9759 characters as the number of the following table columns.
9764 is the character to separate table cells.
9765 Write in \SpecialChar TeX
9770 the content of the corresponding following cell and delete the content
9772 \begin_inset Newline newline
9783 command, insert as many
9787 characters as the number of table columns before the current column.
9789 \begin_inset space ~
9793 \begin_inset CommandInset ref
9795 reference "tab:ForcedPagebreak"
9799 the cell that should be broken is in the second column followed by another
9801 Therefore the following command was inserted in the cell as \SpecialChar TeX
9804 \begin_inset Quotes eld
9812 \begin_inset Quotes erd
9818 \begin_layout Standard
9828 \begin_inset Newline newline
9834 \begin_layout Standard
9836 \begin_inset Quotes eld
9840 \begin_inset Quotes erd
9843 in the third column of the row was deleted.
9850 is only needed when a page break should definitely occur at this position,
9851 otherwise it would be a conditional break.
9852 If your footer row of the longtable has for a certain reason no upper line
9853 but you would have a horizontal line where the cell is broken, use this
9857 \begin_layout Standard
9865 \begin_inset Newline newline
9873 \begin_layout Standard
9874 When the cell to be broken is in the last column, the command
9877 \begin_layout Standard
9887 \begin_layout Standard
9888 must be inserted as \SpecialChar TeX
9889 Code at the beginning of the cell.
9890 This ensures that the part of the cell that will be displayed on the new
9891 page appears with the full width.
9892 \begin_inset Separator parbreak
9898 \begin_layout Standard
9900 \begin_inset Tabular
9901 <lyxtabular version="3" rows="38" columns="3">
9902 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9903 <column alignment="left" valignment="top" width="0cm">
9904 <column alignment="left" valignment="top" width="3cm">
9905 <column alignment="center" valignment="top" width="0pt">
9906 <row endfirsthead="true" caption="true">
9907 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9910 \begin_layout Plain Layout
9911 \begin_inset Caption Standard
9913 \begin_layout Plain Layout
9914 Table with forced page break in table cell
9915 \begin_inset CommandInset label
9917 name "tab:ForcedPagebreak"
9922 \begin_inset Argument 1
9925 \begin_layout Plain Layout
9926 Table with forced page break in table cell
9941 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9944 \begin_layout Plain Layout
9950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9960 <row endfirsthead="true">
9961 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9964 \begin_layout Plain Layout
9967 Example Phone List (ignore the names)
9972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9981 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9991 <row endfirsthead="true">
9992 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9995 \begin_layout Plain Layout
10003 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10006 \begin_layout Plain Layout
10012 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10024 <row endhead="true">
10025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10028 \begin_layout Plain Layout
10032 \begin_layout Plain Layout
10036 caption*{Continued Example Phone List}
10050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10053 \begin_layout Plain Layout
10059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10062 \begin_layout Plain Layout
10069 <row endhead="true">
10070 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10073 \begin_layout Plain Layout
10081 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10084 \begin_layout Plain Layout
10090 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10093 \begin_layout Plain Layout
10100 <row endhead="true">
10101 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10104 \begin_layout Plain Layout
10112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10115 \begin_layout Plain Layout
10121 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10124 \begin_layout Plain Layout
10133 <row endfoot="true">
10134 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10137 \begin_layout Plain Layout
10138 continued on next page
10143 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10146 \begin_layout Plain Layout
10152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10155 \begin_layout Plain Layout
10163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10166 \begin_layout Plain Layout
10174 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10177 \begin_layout Plain Layout
10183 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10186 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10197 \begin_layout Plain Layout
10205 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10208 \begin_layout Plain Layout
10214 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10217 \begin_layout Plain Layout
10225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10239 \begin_layout Plain Layout
10245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10248 \begin_layout Plain Layout
10256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10270 \begin_layout Plain Layout
10276 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10279 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10301 \begin_layout Plain Layout
10307 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10310 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10332 \begin_layout Plain Layout
10338 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10341 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10363 \begin_layout Plain Layout
10369 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10372 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10394 \begin_layout Plain Layout
10400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10403 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10425 \begin_layout Plain Layout
10431 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10434 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10456 \begin_layout Plain Layout
10462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10465 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10487 \begin_layout Plain Layout
10493 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10496 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10507 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10518 \begin_layout Plain Layout
10524 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10527 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10538 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10549 \begin_layout Plain Layout
10555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10558 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10569 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10580 \begin_layout Plain Layout
10586 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10589 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10600 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10611 \begin_layout Plain Layout
10617 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10620 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10631 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10642 \begin_layout Plain Layout
10648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10651 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10673 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10682 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10704 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10713 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10735 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10744 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10766 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10775 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10786 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10797 \begin_layout Plain Layout
10803 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10806 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10817 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10828 \begin_layout Plain Layout
10834 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10837 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10848 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10859 \begin_layout Plain Layout
10861 Fürst von Montecompatri, 11.
10862 Fürst von Sulmona und Vivaro, 10.
10863 Fürst von Rossano, 5.
10864 Herzog von Canemorte, 11.
10865 Herzog von Palombara, 5.
10866 Herzog von Castelchiodato,
10870 \begin_layout Plain Layout
10881 \begin_layout Plain Layout
10889 Herzog von Poggionativo, 11.
10890 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10891 Graf von Valinfreda, 11.
10892 Baron von Cropalati, 11.
10893 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10898 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10901 \begin_layout Plain Layout
10909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10912 \begin_layout Plain Layout
10920 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10923 \begin_layout Plain Layout
10929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10932 \begin_layout Plain Layout
10940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10943 \begin_layout Plain Layout
10951 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10954 \begin_layout Plain Layout
10960 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10963 \begin_layout Plain Layout
10971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10974 \begin_layout Plain Layout
10982 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10985 \begin_layout Plain Layout
10991 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10994 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11005 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11016 \begin_layout Plain Layout
11022 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11025 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11036 \begin_layout Plain Layout
11044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11047 \begin_layout Plain Layout
11053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11056 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11067 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11078 \begin_layout Plain Layout
11084 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11087 \begin_layout Plain Layout
11095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11098 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11109 \begin_layout Plain Layout
11115 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11118 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11149 \begin_layout Plain Layout
11163 \begin_layout Section
11164 Multiple Lines, Columns and Rows
11167 \begin_layout Subsection
11168 Multiple Lines in Table Cells
11169 \begin_inset CommandInset label
11171 name "subsec:Multiple-Lines-in"
11176 \begin_inset Index idx
11179 \begin_layout Plain Layout
11180 Multiple Lines in Table Cells
11186 \begin_inset Index idx
11189 \begin_layout Plain Layout
11198 \begin_layout Standard
11200 \begin_inset Float table
11206 \begin_layout Plain Layout
11207 \begin_inset Caption Standard
11209 \begin_layout Plain Layout
11210 \begin_inset CommandInset label
11212 name "tab:Table-with-multiple"
11216 Table with multiple lines in cells
11224 \begin_layout Plain Layout
11226 \begin_inset Tabular
11227 <lyxtabular version="3" rows="3" columns="3">
11228 <features tabularvalignment="middle">
11229 <column alignment="center" valignment="middle" width="2.5cm">
11230 <column alignment="center" valignment="middle">
11231 <column alignment="center" valignment="middle">
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11236 \begin_layout Plain Layout
11238 \begin_inset Newline linebreak
11246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11249 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11258 \begin_layout Plain Layout
11266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11269 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11278 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11287 \begin_layout Plain Layout
11295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11298 \begin_layout Plain Layout
11304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11307 \begin_layout Plain Layout
11313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11316 \begin_layout Plain Layout
11335 \begin_layout Standard
11336 Setting a fixed width for a column enables you to enter text as a paragraph
11337 with multiple lines and hyphenation.
11340 \begin_layout Standard
11342 \begin_inset space ~
11346 \begin_inset CommandInset ref
11348 reference "tab:Table-with-multiple"
11352 , create a 3×3 table, mark the first cell and right-click on it.
11353 In the appearing table dialog we set a cell width of 2.5
11354 \begin_inset space \thinspace{}
11357 cm and choose centered for the vertical and horizontal alignment.
11358 The vertical alignment is used for all cells of the row.
11359 As our text is smaller than 2.5
11360 \begin_inset space \thinspace{}
11363 cm, only one line will appear.
11364 To get two lines, a justified line break (shortcut
11367 arg "newline-insert linebreak"
11371 If the text is wider than the set cell width, it will automatically be
11372 broken to several lines.
11375 \begin_layout Standard
11376 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11377 by \SpecialChar LaTeX
11378 if it is the first entry.
11379 Therefore you need to insert something to prevent the word not being the
11381 So add a horizontal space of 0
11382 \begin_inset space \thinspace{}
11385 pt before the word.
11386 As the space is zero, it doesn't change the output.
11388 \begin_inset space ~
11392 \begin_inset CommandInset ref
11394 reference "tab:Table-with-and"
11401 \begin_layout Standard
11402 \begin_inset Float table
11408 \begin_layout Plain Layout
11409 \begin_inset Caption Standard
11411 \begin_layout Plain Layout
11412 \begin_inset CommandInset label
11414 name "tab:Table-with-and"
11418 Table with and without hyphenation
11426 \begin_layout Plain Layout
11427 \begin_inset space \hfill{}
11431 \begin_inset Tabular
11432 <lyxtabular version="3" rows="3" columns="3">
11433 <features tabularvalignment="middle">
11434 <column alignment="center" valignment="middle" width="2.5cm">
11435 <column alignment="center" valignment="middle">
11436 <column alignment="center" valignment="middle">
11438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11441 \begin_layout Plain Layout
11442 verylongtablecellword
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11450 \begin_layout Plain Layout
11456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11459 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11470 \begin_layout Plain Layout
11476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11479 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11488 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11508 \begin_layout Plain Layout
11514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11517 \begin_layout Plain Layout
11529 \begin_inset space \hfill{}
11533 \begin_inset Tabular
11534 <lyxtabular version="3" rows="3" columns="3">
11535 <features tabularvalignment="middle">
11536 <column alignment="center" valignment="middle" width="2.5cm">
11537 <column alignment="center" valignment="middle">
11538 <column alignment="center" valignment="middle">
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Plain Layout
11544 \begin_inset space \hspace{}
11548 verylongtablecellword
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11556 \begin_layout Plain Layout
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11565 \begin_layout Plain Layout
11573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11576 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11585 \begin_layout Plain Layout
11591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11594 \begin_layout Plain Layout
11602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11605 \begin_layout Plain Layout
11611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11614 \begin_layout Plain Layout
11620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11623 \begin_layout Plain Layout
11635 \begin_inset space \hfill{}
11646 \begin_layout Subsection
11648 \begin_inset CommandInset label
11650 name "subsec:Multicolumns"
11655 \begin_inset Index idx
11658 \begin_layout Plain Layout
11665 \begin_inset Index idx
11668 \begin_layout Plain Layout
11669 Table ! Multicolumns
11677 \begin_layout Subsubsection
11681 \begin_layout Standard
11682 To merge cells over multiple columns, select as many cells within a row
11683 as you want to merge and use either the table-toolbar button
11686 arg "inset-modify tabular multicolumn"
11691 Edit\SpecialChar menuseparator
11692 Table\SpecialChar menuseparator
11695 , or right click on the marked cells and choose
11699 in the context menu.
11702 \begin_layout Standard
11703 Multicolumns have there own cell settings.
11704 That means changing cell borders, cell alignment, and the width only affects
11706 Here is an example table with a multicolumn cell in the first row and one
11707 in the last row without the upper border:
11708 \begin_inset Separator parbreak
11714 \begin_layout Standard
11716 \begin_inset Tabular
11717 <lyxtabular version="3" rows="3" columns="4">
11718 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11719 <column alignment="center" valignment="top" width="0pt">
11720 <column alignment="center" valignment="middle">
11721 <column alignment="center" valignment="top" width="0in">
11722 <column alignment="center" valignment="top" width="0pt">
11724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11727 \begin_layout Plain Layout
11733 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11736 \begin_layout Plain Layout
11742 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11745 \begin_layout Plain Layout
11751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11754 \begin_layout Plain Layout
11762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11765 \begin_layout Plain Layout
11780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11783 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11792 \begin_layout Plain Layout
11798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11801 \begin_layout Plain Layout
11809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11812 \begin_layout Plain Layout
11818 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11821 \begin_layout Plain Layout
11827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11830 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11839 \begin_layout Plain Layout
11853 \begin_layout Subsubsection
11854 Multicolumn Calculations
11855 \begin_inset CommandInset label
11857 name "subsec:Multicolumn-Calculations"
11862 \begin_inset Index idx
11865 \begin_layout Plain Layout
11866 Multicolumns ! Calculations
11874 \begin_layout Standard
11876 supports multicolumns directly, but we have to take account of the cell
11877 width of the columns spanned by the multicolumn cell.
11880 \begin_layout Standard
11881 \begin_inset Float table
11887 \begin_layout Plain Layout
11888 \begin_inset Caption Standard
11890 \begin_layout Plain Layout
11891 \begin_inset CommandInset label
11893 name "tab:Table-with-centered"
11897 Table with centered multicolumn text above two columns that have exactly
11898 half the width of the multicolumn cell
11899 \begin_inset Argument 1
11902 \begin_layout Plain Layout
11903 Perfect multicolumn table
11916 \begin_layout Plain Layout
11918 \begin_inset Tabular
11919 <lyxtabular version="3" rows="3" columns="3">
11920 <features tabularvalignment="middle">
11921 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11922 <column alignment="center" valignment="middle">
11923 <column alignment="center" valignment="top">
11925 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11928 \begin_layout Plain Layout
11929 multiple lines multicolumn
11934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11937 \begin_layout Plain Layout
11943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11946 \begin_layout Plain Layout
11954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11957 \begin_layout Plain Layout
11963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11966 \begin_layout Plain Layout
11972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11975 \begin_layout Plain Layout
11983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11986 \begin_layout Plain Layout
11992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11995 \begin_layout Plain Layout
12001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12004 \begin_layout Plain Layout
12023 \begin_layout Standard
12024 To create for example Table
12025 \begin_inset space ~
12029 \begin_inset CommandInset ref
12031 reference "tab:Table-with-centered"
12035 , mark the first two cells in the first row of a 3×3 table and right-click
12037 Now choose for this cell
12046 \begin_inset space \thinspace{}
12049 cm in the table dialog.
12050 The merged columns should have exactly half the width of the multicolumn
12051 cell, so that you would set a width of 1.25
12052 \begin_inset space \thinspace{}
12055 cm for the first column.
12056 The second column has then automatically a width of 1.25
12057 \begin_inset space \thinspace{}
12060 cm (multicolumn width - width of first column).
12061 This was done for Table
12062 \begin_inset space ~
12066 \begin_inset CommandInset ref
12068 reference "tab:Table-without-half"
12075 \begin_layout Standard
12076 \begin_inset Float table
12081 \begin_layout Plain Layout
12082 \begin_inset Caption Standard
12084 \begin_layout Plain Layout
12085 \begin_inset CommandInset label
12087 name "tab:Table-without-half"
12091 Table where the spanned table columns are not exactly half the width of
12092 the multicolumn cell
12093 \begin_inset Argument 1
12096 \begin_layout Plain Layout
12097 Imperfect multicolumn table
12110 \begin_layout Plain Layout
12112 \begin_inset Tabular
12113 <lyxtabular version="3" rows="3" columns="3">
12114 <features tabularvalignment="middle">
12115 <column alignment="center" valignment="top" width="1.25cm">
12116 <column alignment="center" valignment="top">
12117 <column alignment="center" valignment="top">
12119 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12122 \begin_layout Plain Layout
12123 multiple lines multicolumn
12128 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12131 \begin_layout Plain Layout
12137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12140 \begin_layout Plain Layout
12148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12151 \begin_layout Plain Layout
12157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12160 \begin_layout Plain Layout
12166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12169 \begin_layout Plain Layout
12177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12180 \begin_layout Plain Layout
12186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12189 \begin_layout Plain Layout
12195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12198 \begin_layout Plain Layout
12217 \begin_layout Standard
12218 You can see that the first column is not half the width of the multicolumn
12219 cell, it is a bit bigger.
12220 The reason is that the specified width of a cell
12221 \begin_inset Formula $W_{g}$
12224 is not its total width
12225 \begin_inset Formula $W_{\mathrm{tot}}$
12228 because a cell is always a bit larger than specified.
12230 \begin_inset space ~
12234 \begin_inset CommandInset ref
12236 reference "cha:Explanation-of-Equation"
12240 explains this in detail.
12243 \begin_layout Standard
12245 \begin_inset Formula $W_{g\,n}$
12248 which the user needs to set when
12252 columns are spanned can be calculated, so that each column has a total
12254 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12258 \begin_inset Formula
12260 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12268 \begin_layout Standard
12269 In our case we have
12270 \begin_inset Formula $n=2$
12274 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12277 cm and the default values for the lengths, so that equation
12278 \begin_inset CommandInset ref
12285 \begin_inset Formula
12287 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12295 \begin_layout Standard
12296 To enable calculations in \SpecialChar LaTeX
12297 , the \SpecialChar LaTeX
12302 must be loaded with the document preamble line
12303 \begin_inset Index idx
12306 \begin_layout Plain Layout
12316 \begin_layout Standard
12324 \begin_layout Standard
12326 does not allow you to calculate lengths in the
12330 field of the table dialog.
12331 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12334 Here is an overview about the arguments:
12337 \begin_layout Itemize
12342 creates cell with a fixed width, its text is vertically top-aligned
12345 \begin_layout Itemize
12350 creates cell with a fixed width, its text is vertically centered
12353 \begin_layout Itemize
12358 creates cell with a fixed width, its text is vertically bottom-aligned
12361 \begin_layout Standard
12362 By entering a \SpecialChar LaTeX
12363 -argument, all cell settings set in the table dialog are overwritt
12367 \begin_layout Standard
12368 \begin_inset Note Greyedout
12371 \begin_layout Plain Layout
12376 Due to a bug, \SpecialChar LyX
12377 shows the overwritten settings anyway.
12385 \begin_layout Standard
12386 As the text should be horizontally centered, the command
12393 You can now enter the following \SpecialChar LaTeX
12394 -argument for the first spanned column:
12397 \begin_layout Standard
12402 centering}m{1.25cm-6.2pt}
12405 \begin_layout Standard
12410 means, that the commands inside the braces are applied before the cell
12414 \begin_layout Standard
12415 Although we have chosen centered alignment for the text of the multicolumn
12416 cell, it is still left aligned.
12417 This is because \SpecialChar LyX
12418 only applies the alignment to single columns.
12419 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12423 \begin_layout Standard
12431 \begin_layout Subsection
12433 \begin_inset CommandInset label
12435 name "subsec:Multirows"
12440 \begin_inset Index idx
12443 \begin_layout Plain Layout
12450 \begin_inset Index idx
12453 \begin_layout Plain Layout
12462 \begin_layout Standard
12463 To merge cells over multiple rows, select as many cells within a column
12464 as you want to merge and use either the table-toolbar button
12467 arg "inset-modify tabular multirow"
12472 Edit\SpecialChar menuseparator
12473 Table\SpecialChar menuseparator
12476 , or right click on the marked cells and choose
12480 in the context menu.
12483 \begin_layout Standard
12484 Here is an example table with a multirow in the first column:
12485 \begin_inset Separator parbreak
12491 \begin_layout Standard
12493 \begin_inset Tabular
12494 <lyxtabular version="3" rows="3" columns="3">
12495 <features tabularvalignment="middle">
12496 <column alignment="center" valignment="top" width="0pt">
12497 <column alignment="center" valignment="top">
12498 <column alignment="center" valignment="top">
12500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12503 \begin_layout Plain Layout
12509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12512 \begin_layout Plain Layout
12518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12521 \begin_layout Plain Layout
12529 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12532 \begin_layout Plain Layout
12538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12541 \begin_layout Plain Layout
12547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12550 \begin_layout Plain Layout
12558 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12561 \begin_layout Plain Layout
12567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12570 \begin_layout Plain Layout
12576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12579 \begin_layout Plain Layout
12593 \begin_layout Standard
12594 The width of multirow cells is set by setting the width and alignment for
12600 shifts the content of the multirow up/down if the offset is positive/negative.
12603 \begin_layout Standard
12604 If the column of a multirow cell has no explicit width, the multirow cell
12605 inherits the alignment of the column.
12606 Otherwise it is by default left-aligned.
12607 To override the default, renew the command
12616 \begin_layout Standard
12628 \begin_layout Standard
12629 in the document preamble.
12630 Then all entries of multirow cells in the document are centered.
12631 If centering is only needed for several tables, you can renew the command
12632 in a \SpecialChar TeX
12633 Code box just before the table instead of the preamble.
12634 If the text should be right-aligned, replace
12647 To return to left-alignment
12656 \begin_layout Standard
12657 This is an example table with a right-aligned multirow cell that has a vertical
12659 \begin_inset space \thinspace{}
12663 \begin_inset space \thinspace{}
12667 \begin_inset Separator parbreak
12673 \begin_layout Standard
12679 \begin_layout Plain Layout
12693 \begin_inset Tabular
12694 <lyxtabular version="3" rows="4" columns="3">
12695 <features tabularvalignment="middle">
12696 <column alignment="center" valignment="top" width="3cm">
12697 <column alignment="center" valignment="top">
12698 <column alignment="center" valignment="top">
12700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12703 \begin_layout Plain Layout
12709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12712 \begin_layout Plain Layout
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12721 \begin_layout Plain Layout
12729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12732 \begin_layout Plain Layout
12738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12741 \begin_layout Plain Layout
12747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12750 \begin_layout Plain Layout
12758 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12761 \begin_layout Plain Layout
12767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12779 \begin_layout Plain Layout
12787 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12790 \begin_layout Plain Layout
12796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12799 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12808 \begin_layout Plain Layout
12823 \begin_layout Plain Layout
12839 \begin_layout Standard
12840 To start a new line in a multirow you can use a forced line break (shortcut
12844 arg "newline-insert newline"
12847 ) but this will not respect the cell lines as demonstrated in this table:
12848 \begin_inset Separator parbreak
12854 \begin_layout Standard
12857 \begin_inset Tabular
12858 <lyxtabular version="3" rows="3" columns="2">
12859 <features tabularvalignment="middle">
12860 <column alignment="left" valignment="middle" width="2cm">
12861 <column alignment="center" valignment="top">
12863 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12866 \begin_layout Plain Layout
12868 \begin_inset Newline newline
12872 \begin_inset Newline newline
12880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12883 \begin_layout Plain Layout
12891 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12894 \begin_layout Plain Layout
12900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12903 \begin_layout Plain Layout
12911 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12914 \begin_layout Plain Layout
12920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12923 \begin_layout Plain Layout
12937 \begin_layout Standard
12938 Therefore be careful with forced line breaks.
12941 \begin_layout Subsection
12942 Cells with diagonal line(s)
12945 \begin_layout Standard
12946 To tell the reader what is meant by column and row headings in a table,
12947 it is helpful to split the first cell of the table by one or two diagonal
12949 This can be achieved by loading the \SpecialChar LaTeX
12955 \begin_inset Index idx
12958 \begin_layout Plain Layout
12960 -packages ! picinpar
12965 in the document preamble.
12966 The package provides the command
12972 that is inserted as \SpecialChar TeX
12973 Code and that can take 2 or 3
12974 \begin_inset space ~
12980 \begin_layout Standard
12985 diagbox[options]{lower left}{upper right}
12988 \begin_layout Standard
12993 diagbox[options]{lower left}{upper left}{upper right}
12996 \begin_layout Standard
12997 The first scheme divides the cell by a single diagonal line and the arguments
12998 are placed below and above this line.
12999 The second scheme divides the cell by 2
13000 \begin_inset space ~
13006 \begin_layout Standard
13010 \begin_layout Plain Layout
13020 \begin_inset Note Note
13023 \begin_layout Plain Layout
13024 The following section will only be displayed when the \SpecialChar LaTeX
13037 \begin_layout Standard
13038 Here is an example table where
13044 is used in the 2-argument scheme in the first cell:
13045 \begin_inset VSpace medskip
13051 \begin_layout Standard
13053 \begin_inset Tabular
13054 <lyxtabular version="3" rows="4" columns="4">
13055 <features tabularvalignment="middle">
13056 <column alignment="center" valignment="top">
13057 <column alignment="center" valignment="top">
13058 <column alignment="center" valignment="top">
13059 <column alignment="center" valignment="top">
13061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13064 \begin_layout Plain Layout
13068 \begin_layout Plain Layout
13081 \begin_layout Plain Layout
13092 \begin_layout Plain Layout
13104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13107 \begin_layout Plain Layout
13113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13116 \begin_layout Plain Layout
13122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13125 \begin_layout Plain Layout
13133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13136 \begin_layout Plain Layout
13142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13145 \begin_layout Plain Layout
13151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13154 \begin_layout Plain Layout
13160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13163 \begin_layout Plain Layout
13171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13174 \begin_layout Plain Layout
13180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13183 \begin_layout Plain Layout
13189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13192 \begin_layout Plain Layout
13198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13201 \begin_layout Plain Layout
13209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13212 \begin_layout Plain Layout
13218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13221 \begin_layout Plain Layout
13227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13230 \begin_layout Plain Layout
13236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13239 \begin_layout Plain Layout
13251 \begin_inset VSpace medskip
13257 \begin_layout Standard
13258 The 3-argument scheme is for example useful for cross-tables of sports leagues
13260 \begin_inset Separator parbreak
13266 \begin_layout Standard
13269 \begin_inset Tabular
13270 <lyxtabular version="3" rows="4" columns="4">
13271 <features tabularvalignment="middle">
13272 <column alignment="center" valignment="top" width="0pt">
13273 <column alignment="center" valignment="top">
13274 <column alignment="center" valignment="top">
13275 <column alignment="center" valignment="top">
13277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13280 \begin_layout Plain Layout
13284 \begin_layout Plain Layout
13297 \begin_layout Plain Layout
13308 \begin_layout Plain Layout
13319 \begin_layout Plain Layout
13331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13334 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13352 \begin_layout Plain Layout
13360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13363 \begin_layout Plain Layout
13369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13372 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13381 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13390 \begin_layout Plain Layout
13398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13401 \begin_layout Plain Layout
13407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13410 \begin_layout Plain Layout
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13419 \begin_layout Plain Layout
13425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13428 \begin_layout Plain Layout
13436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13439 \begin_layout Plain Layout
13445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13448 \begin_layout Plain Layout
13454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13457 \begin_layout Plain Layout
13463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13466 \begin_layout Plain Layout
13480 \begin_layout Standard
13481 For larger cross-tables one might use split cells in 2 or every corner of
13482 the table like in this example:
13483 \begin_inset Separator parbreak
13489 \begin_layout Standard
13492 \begin_inset Tabular
13493 <lyxtabular version="3" rows="5" columns="5">
13494 <features tabularvalignment="middle">
13495 <column alignment="center" valignment="top" width="0pt">
13496 <column alignment="center" valignment="top">
13497 <column alignment="center" valignment="top">
13498 <column alignment="center" valignment="top">
13499 <column alignment="center" valignment="top">
13501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13504 \begin_layout Plain Layout
13508 \begin_layout Plain Layout
13521 \begin_layout Plain Layout
13532 \begin_layout Plain Layout
13543 \begin_layout Plain Layout
13555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13567 \begin_layout Plain Layout
13573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13576 \begin_layout Plain Layout
13582 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13585 \begin_layout Plain Layout
13589 \begin_layout Plain Layout
13602 \begin_layout Plain Layout
13613 \begin_layout Plain Layout
13624 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13641 \begin_layout Plain Layout
13647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13659 \begin_layout Plain Layout
13665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13668 \begin_layout Plain Layout
13674 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13677 \begin_layout Plain Layout
13685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13688 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13715 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13724 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13762 \begin_layout Plain Layout
13768 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13771 \begin_layout Plain Layout
13779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13782 \begin_layout Plain Layout
13786 \begin_layout Plain Layout
13799 \begin_layout Plain Layout
13810 \begin_layout Plain Layout
13821 \begin_layout Plain Layout
13833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13836 \begin_layout Plain Layout
13842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13845 \begin_layout Plain Layout
13851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13854 \begin_layout Plain Layout
13860 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13863 \begin_layout Plain Layout
13867 \begin_layout Plain Layout
13880 \begin_layout Plain Layout
13891 \begin_layout Plain Layout
13902 \begin_layout Plain Layout
13922 \begin_layout Standard
13923 To rotate the diagonal lines, the command option
13948 and represent a point of a compass.
13953 is for example the south-west corner.
13954 Thus in the lower left cell of the above table the command
13957 \begin_layout Standard
13962 diagbox[dir=SW]{Team home}{Result}{Team away}
13965 \begin_layout Standard
13967 If no direction is given, it will be NW.
13970 \begin_layout Standard
13971 The necessary width of split cells is automatically calculated.
13972 Thus if you set a fixed column width smaller than the calculated one, the
13973 cell's content will protrude the cell borders:
13974 \begin_inset Separator parbreak
13980 \begin_layout Standard
13983 \begin_inset Tabular
13984 <lyxtabular version="3" rows="2" columns="2">
13985 <features tabularvalignment="middle">
13986 <column alignment="center" valignment="top" width="3cm">
13987 <column alignment="center" valignment="top">
13989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13992 \begin_layout Plain Layout
13996 \begin_layout Plain Layout
14009 \begin_layout Plain Layout
14020 \begin_layout Plain Layout
14032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14035 \begin_layout Plain Layout
14043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14046 \begin_layout Plain Layout
14052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14055 \begin_layout Plain Layout
14069 \begin_layout Standard
14070 If you need a certain width for columns with a split cell, use the command
14075 (replace '3cm' by the width you need).
14076 In the following table the width of the first column is set to 4
14077 \begin_inset space \thinspace{}
14088 \begin_inset space \thinspace{}
14092 \begin_inset space \thinspace{}
14097 tabcolsep is necessary because the overall width is the width for the text
14098 (in this case the 4
14099 \begin_inset space \thinspace{}
14102 cm) plus two times the separation of the text and the cell border.
14103 The calculation of the width cannot be done in the command option of
14109 so one needs to create a new length which can be used later.
14110 This is done with the \SpecialChar TeX
14114 \begin_layout Standard
14122 \begin_inset Newline newline
14134 \begin_layout Standard
14138 \begin_layout Plain Layout
14147 \begin_layout Plain Layout
14163 \begin_layout Standard
14164 To enable calculations in \SpecialChar LaTeX
14165 one needs to load the package
14170 \begin_inset Index idx
14173 \begin_layout Plain Layout
14180 in the document preamble.
14183 \begin_layout Standard
14184 In this table you can now use the command
14187 \begin_layout Standard
14197 \begin_layout Standard
14199 \begin_inset Separator parbreak
14205 \begin_layout Standard
14208 \begin_inset Tabular
14209 <lyxtabular version="3" rows="2" columns="2">
14210 <features tabularvalignment="middle">
14211 <column alignment="center" valignment="top" width="4cm">
14212 <column alignment="center" valignment="top">
14214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14217 \begin_layout Plain Layout
14221 \begin_layout Plain Layout
14236 \begin_layout Plain Layout
14247 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14262 \begin_layout Plain Layout
14270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14273 \begin_layout Plain Layout
14279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14282 \begin_layout Plain Layout
14296 \begin_layout Standard
14297 Note that the split cell needs to be the widest one in the column.
14298 Otherwise the length of the diagonal line cannot be calculated correctly
14299 like in this table:
14300 \begin_inset Separator parbreak
14306 \begin_layout Standard
14309 \begin_inset Tabular
14310 <lyxtabular version="3" rows="2" columns="2">
14311 <features tabularvalignment="middle">
14312 <column alignment="center" valignment="top" width="0pt">
14313 <column alignment="center" valignment="top">
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14318 \begin_layout Plain Layout
14322 \begin_layout Plain Layout
14335 \begin_layout Plain Layout
14346 \begin_layout Plain Layout
14358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14361 \begin_layout Plain Layout
14369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14372 \begin_layout Plain Layout
14378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14381 \begin_layout Plain Layout
14395 \begin_layout Standard
14396 In this case use the
14407 It is then not necessary to add 2
14409 tabcolsep because the cell width is now the width of the column.
14410 In this table a width of 3
14411 \begin_inset space \thinspace{}
14415 \begin_inset Separator parbreak
14421 \begin_layout Standard
14424 \begin_inset Tabular
14425 <lyxtabular version="3" rows="2" columns="2">
14426 <features tabularvalignment="middle">
14427 <column alignment="center" valignment="top" width="0pt">
14428 <column alignment="center" valignment="top">
14430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14433 \begin_layout Plain Layout
14437 \begin_layout Plain Layout
14441 diagbox[width=3cm]{
14450 \begin_layout Plain Layout
14461 \begin_layout Plain Layout
14473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14476 \begin_layout Plain Layout
14484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14487 \begin_layout Plain Layout
14493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14496 \begin_layout Plain Layout
14510 \begin_layout Standard
14511 For multiple text lines in split cells one needs some extra height to fit
14512 the text to the cell.
14513 This can be achieved with the
14523 (replace '3cm' by the height you need).
14524 In the following table the command
14527 \begin_layout Standard
14532 diagbox[width=3cm,height=1.4cm]{A
14543 \begin_layout Standard
14544 is used in the first cell.
14553 creates hereby the line break.
14557 \begin_layout Plain Layout
14558 Breaking lines with
14562 is only possible when the column has a fixed width.
14568 \begin_inset Separator parbreak
14574 \begin_layout Standard
14577 \begin_inset Tabular
14578 <lyxtabular version="3" rows="2" columns="2">
14579 <features tabularvalignment="middle">
14580 <column alignment="center" valignment="top">
14581 <column alignment="center" valignment="top">
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14586 \begin_layout Plain Layout
14590 \begin_layout Plain Layout
14594 diagbox[width=3cm,height=1.4cm]{
14603 \begin_layout Plain Layout
14618 \begin_layout Plain Layout
14629 \begin_layout Plain Layout
14644 \begin_layout Plain Layout
14656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14659 \begin_layout Plain Layout
14667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14670 \begin_layout Plain Layout
14676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14679 \begin_layout Plain Layout
14693 \begin_layout Standard
14697 \begin_layout Plain Layout
14707 \begin_inset Note Note
14710 \begin_layout Plain Layout
14711 The following will be displayed when the \SpecialChar LaTeX
14724 \begin_layout Standard
14725 You need to install the \SpecialChar LaTeX
14730 to see the following part of this section in the output.
14733 \begin_layout Standard
14737 \begin_layout Plain Layout
14749 \begin_layout Standard
14750 For more info about the \SpecialChar LaTeX
14755 , see its documentation,
14756 \begin_inset CommandInset citation
14765 \begin_layout Section
14767 \begin_inset CommandInset label
14769 name "sec:Formal-Tables"
14774 \begin_inset Index idx
14777 \begin_layout Plain Layout
14786 \begin_layout Standard
14787 Tables are often typeset in books similar to Table
14788 \begin_inset space ~
14792 \begin_inset CommandInset ref
14794 reference "tab:Example-booktabs-table"
14799 This kind of tables is called
14800 \begin_inset Quotes eld
14808 \begin_inset Quotes erd
14812 To make a table a formal table use the option
14820 tab of the table dialog.
14823 \begin_layout Standard
14824 \begin_inset Float table
14830 \begin_layout Plain Layout
14831 \begin_inset Caption Standard
14833 \begin_layout Plain Layout
14834 \begin_inset CommandInset label
14836 name "tab:Example-booktabs-table"
14840 Example booktabs-table
14848 \begin_layout Plain Layout
14850 \begin_inset Tabular
14851 <lyxtabular version="3" rows="8" columns="4">
14852 <features booktabs="true" tabularvalignment="middle">
14853 <column alignment="center" valignment="top">
14854 <column alignment="center" valignment="top">
14855 <column alignment="center" valignment="top">
14856 <column alignment="center" valignment="top">
14858 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14861 \begin_layout Plain Layout
14867 <cell alignment="center" valignment="top" topline="true" usebox="none">
14870 \begin_layout Plain Layout
14872 \begin_inset space \thinspace{}
14880 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14883 \begin_layout Plain Layout
14885 \begin_inset space \thinspace{}
14893 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14896 \begin_layout Plain Layout
14904 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14907 \begin_layout Plain Layout
14911 \begin_layout Plain Layout
14924 \begin_layout Plain Layout
14933 Detector thickness in µm
14938 <cell alignment="center" valignment="top" usebox="none">
14941 \begin_layout Plain Layout
14947 <cell alignment="center" valignment="top" usebox="none">
14950 \begin_layout Plain Layout
14956 <cell alignment="center" valignment="top" usebox="none">
14959 \begin_layout Plain Layout
14967 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14970 \begin_layout Plain Layout
14976 <cell alignment="center" valignment="top" topline="true" usebox="none">
14979 \begin_layout Plain Layout
14985 <cell alignment="center" valignment="top" topline="true" usebox="none">
14988 \begin_layout Plain Layout
14994 <cell alignment="center" valignment="top" topline="true" usebox="none">
14997 \begin_layout Plain Layout
15004 <row topspace="default">
15005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15008 \begin_layout Plain Layout
15009 Spatial resolution in µm
15014 <cell alignment="center" valignment="top" usebox="none">
15017 \begin_layout Plain Layout
15023 <cell alignment="center" valignment="top" usebox="none">
15026 \begin_layout Plain Layout
15032 <cell alignment="center" valignment="top" usebox="none">
15035 \begin_layout Plain Layout
15042 <row topspace="default">
15043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15046 \begin_layout Plain Layout
15048 \begin_inset Formula $f_{\mathrm{max}}$
15056 <cell alignment="center" valignment="top" usebox="none">
15059 \begin_layout Plain Layout
15065 <cell alignment="center" valignment="top" usebox="none">
15068 \begin_layout Plain Layout
15074 <cell alignment="center" valignment="top" usebox="none">
15077 \begin_layout Plain Layout
15084 <row topspace="default">
15085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15088 \begin_layout Plain Layout
15092 \begin_layout Plain Layout
15096 cmidrule[2pt](l{10pt}){1-1}
15101 LSF-spatial resolution
15106 <cell alignment="center" valignment="top" usebox="none">
15109 \begin_layout Plain Layout
15115 <cell alignment="center" valignment="top" usebox="none">
15118 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" usebox="none">
15127 \begin_layout Plain Layout
15135 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15138 \begin_layout Plain Layout
15144 <cell alignment="center" valignment="top" usebox="none">
15147 \begin_layout Plain Layout
15153 <cell alignment="center" valignment="top" usebox="none">
15156 \begin_layout Plain Layout
15162 <cell alignment="center" valignment="top" usebox="none">
15165 \begin_layout Plain Layout
15173 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15176 \begin_layout Plain Layout
15182 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15185 \begin_layout Plain Layout
15191 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15194 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15203 \begin_layout Plain Layout
15222 \begin_layout Standard
15223 Spaces to table rows can be added using the
15227 tab of the table dialog as described in section
15228 \begin_inset space ~
15232 \begin_inset CommandInset ref
15234 reference "subsec:Row-Spacing"
15241 \begin_layout Standard
15242 Unlike normal tables, formal tables have no vertical table lines.
15243 The horizontal table lines can be set as for normal tables but they appear
15244 with different widths in the output:
15245 \begin_inset Newline newline
15248 The first and the last table line have a default width of 0.08
15249 \begin_inset space \thinspace{}
15252 em while the other lines have a default width of 0.05
15253 \begin_inset space \thinspace{}
15259 \begin_layout Standard
15260 The default widths can be changed with the following preamble lines
15263 \begin_layout Standard
15273 \begin_inset Newline newline
15285 \begin_layout Standard
15286 This example is for the first line, the so called
15291 If you want to change the width for the last line, replace
15300 To change the width for the other lines replace
15309 You can use all units listed in appendix
15310 \begin_inset space ~
15314 \begin_inset CommandInset ref
15316 reference "cha:Units-available-in"
15323 \begin_layout Standard
15324 Lines that do not span all table columns can be created by setting a table
15325 line for multicolumn cells.
15327 will then internally use the command
15333 to create this line.
15337 \begin_layout Standard
15342 cmidrule[height](trim){startcol-endcol}
15345 \begin_layout Standard
15352 are currently not supported by \SpecialChar LyX
15353 so you have to use \SpecialChar TeX
15362 s can manually be created by inserting the command as \SpecialChar TeX
15364 cell entry of the first cell of a row.
15365 The line is then drawn in the output above the current row.
15368 \begin_layout Standard
15369 The default for the optional
15374 \begin_inset space \thinspace{}
15382 is the number of the column where the line starts and
15386 the column number where the line ends.
15391 always needs to be specified, also when the line should span only one column.
15392 The optional parameter
15409 Using for example the parameter
15413 means that the line is trimmed from its left end by 2
15414 \begin_inset space \thinspace{}
15418 If you don't specify the
15422 the line is trimmed by the default of 0.5
15423 \begin_inset space \thinspace{}
15429 \begin_layout Standard
15430 \begin_inset VSpace bigskip
15434 \begin_inset space ~
15438 \begin_inset CommandInset ref
15440 reference "tab:Example-booktabs-table"
15444 was created using the commands
15447 \begin_layout Standard
15457 \begin_layout Standard
15458 at the beginning of the second row and
15461 \begin_layout Standard
15466 cmidrule[2pt](l{10pt}){1-1}
15469 \begin_layout Standard
15473 \begin_layout Standard
15474 \begin_inset VSpace bigskip
15480 \begin_layout Standard
15481 You might want to have overlapping
15488 \begin_inset space ~
15492 \begin_inset CommandInset ref
15494 reference "tab:Special-booktabs-table"
15499 This can be achieved with the \SpecialChar TeX
15503 \begin_layout Standard
15511 \begin_layout Standard
15512 The command that was used for the second row of Table
15513 \begin_inset space ~
15517 \begin_inset CommandInset ref
15519 reference "tab:Special-booktabs-table"
15526 \begin_layout Standard
15540 \begin_layout Standard
15541 The command for the sixth row is
15544 \begin_layout Standard
15556 \begin_layout Standard
15557 \begin_inset VSpace bigskip
15563 \begin_layout Standard
15564 If you are in any way not satisfied with the border line spacing, you can
15565 use the following command to produce lines that span over all table columns
15570 \begin_layout Standard
15575 specialrule{width}{space above}{space below}
15578 \begin_layout Standard
15579 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15586 \begin_inset CommandInset citation
15593 \begin_inset Index idx
15596 \begin_layout Plain Layout
15598 -packages ! booktabs
15606 \begin_layout Standard
15607 \begin_inset Float table
15613 \begin_layout Plain Layout
15614 \begin_inset Caption Standard
15616 \begin_layout Plain Layout
15617 \begin_inset CommandInset label
15619 name "tab:Special-booktabs-table"
15623 Special booktabs-table
15631 \begin_layout Plain Layout
15633 \begin_inset Tabular
15634 <lyxtabular version="3" rows="8" columns="4">
15635 <features booktabs="true" tabularvalignment="middle">
15636 <column alignment="center" valignment="top">
15637 <column alignment="center" valignment="top">
15638 <column alignment="center" valignment="top">
15639 <column alignment="center" valignment="top">
15641 <cell alignment="center" valignment="top" topline="true" usebox="none">
15644 \begin_layout Plain Layout
15650 <cell alignment="center" valignment="top" topline="true" usebox="none">
15653 \begin_layout Plain Layout
15655 \begin_inset space \thinspace{}
15663 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15666 \begin_layout Plain Layout
15668 \begin_inset space \thinspace{}
15676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15679 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" usebox="none">
15690 \begin_layout Plain Layout
15694 \begin_layout Plain Layout
15707 \begin_layout Plain Layout
15720 \begin_layout Plain Layout
15733 \begin_layout Plain Layout
15742 Detector thickness in µm
15747 <cell alignment="center" valignment="top" usebox="none">
15750 \begin_layout Plain Layout
15756 <cell alignment="center" valignment="top" usebox="none">
15759 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" usebox="none">
15768 \begin_layout Plain Layout
15776 <cell alignment="center" valignment="top" topline="true" usebox="none">
15779 \begin_layout Plain Layout
15785 <cell alignment="center" valignment="top" topline="true" usebox="none">
15788 \begin_layout Plain Layout
15794 <cell alignment="center" valignment="top" topline="true" usebox="none">
15797 \begin_layout Plain Layout
15803 <cell alignment="center" valignment="top" topline="true" usebox="none">
15806 \begin_layout Plain Layout
15813 <row topspace="default">
15814 <cell alignment="center" valignment="top" usebox="none">
15817 \begin_layout Plain Layout
15818 Spatial resolution in µm
15823 <cell alignment="center" valignment="top" usebox="none">
15826 \begin_layout Plain Layout
15832 <cell alignment="center" valignment="top" usebox="none">
15835 \begin_layout Plain Layout
15841 <cell alignment="center" valignment="top" usebox="none">
15844 \begin_layout Plain Layout
15851 <row topspace="default">
15852 <cell alignment="center" valignment="top" usebox="none">
15855 \begin_layout Plain Layout
15857 \begin_inset Formula $f_{\mathrm{max}}$
15865 <cell alignment="center" valignment="top" usebox="none">
15868 \begin_layout Plain Layout
15874 <cell alignment="center" valignment="top" usebox="none">
15877 \begin_layout Plain Layout
15883 <cell alignment="center" valignment="top" usebox="none">
15886 \begin_layout Plain Layout
15894 <cell alignment="center" valignment="top" topline="true" usebox="none">
15897 \begin_layout Plain Layout
15901 \begin_layout Plain Layout
15914 \begin_layout Plain Layout
15923 LSF-spatial resolution
15928 <cell alignment="center" valignment="top" topline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" topline="true" usebox="none">
15940 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" topline="true" usebox="none">
15949 \begin_layout Plain Layout
15957 <cell alignment="center" valignment="top" usebox="none">
15960 \begin_layout Plain Layout
15966 <cell alignment="center" valignment="top" usebox="none">
15969 \begin_layout Plain Layout
15975 <cell alignment="center" valignment="top" usebox="none">
15978 \begin_layout Plain Layout
15984 <cell alignment="center" valignment="top" usebox="none">
15987 \begin_layout Plain Layout
15995 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15998 \begin_layout Plain Layout
16004 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16007 \begin_layout Plain Layout
16013 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16016 \begin_layout Plain Layout
16022 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16025 \begin_layout Plain Layout
16044 \begin_layout Section
16045 Vertical Table Alignment
16046 \begin_inset Index idx
16049 \begin_layout Plain Layout
16058 \begin_layout Standard
16059 To align tables vertically in a text line, the table must be inside a box.
16060 The box can then be vertically aligned as described in section
16061 \begin_inset space ~
16065 \begin_inset CommandInset ref
16067 reference "sec:Box-Dialog"
16074 \begin_layout Standard
16075 In the following example the tables are inside a minipage
16079 \begin_layout Plain Layout
16080 Minipages are described in section
16081 \begin_inset space ~
16085 \begin_inset CommandInset ref
16087 reference "sec:Minipages"
16096 box that has a width of 15
16097 \begin_inset space \thinspace{}
16103 \begin_layout Itemize
16105 \begin_inset Box Frameless
16115 height_special "totalheight"
16120 backgroundcolor "none"
16123 \begin_layout Plain Layout
16124 \begin_inset Tabular
16125 <lyxtabular version="3" rows="3" columns="3">
16126 <features tabularvalignment="middle">
16127 <column alignment="center" valignment="top">
16128 <column alignment="center" valignment="top">
16129 <column alignment="center" valignment="top">
16131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16134 \begin_layout Plain Layout
16140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16143 \begin_layout Plain Layout
16149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16152 \begin_layout Plain Layout
16160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16163 \begin_layout Plain Layout
16169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16172 \begin_layout Plain Layout
16178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16181 \begin_layout Plain Layout
16189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16192 \begin_layout Plain Layout
16198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16201 \begin_layout Plain Layout
16207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Plain Layout
16230 \begin_layout Plain Layout
16242 \begin_inset Box Frameless
16252 height_special "totalheight"
16257 backgroundcolor "none"
16260 \begin_layout Plain Layout
16261 \begin_inset Tabular
16262 <lyxtabular version="3" rows="3" columns="3">
16263 <features tabularvalignment="middle">
16264 <column alignment="center" valignment="top">
16265 <column alignment="center" valignment="top">
16266 <column alignment="center" valignment="top">
16268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16271 \begin_layout Plain Layout
16277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16280 \begin_layout Plain Layout
16286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16289 \begin_layout Plain Layout
16297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16300 \begin_layout Plain Layout
16306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16309 \begin_layout Plain Layout
16315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16318 \begin_layout Plain Layout
16326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16329 \begin_layout Plain Layout
16335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16338 \begin_layout Plain Layout
16344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16347 \begin_layout Plain Layout
16367 \begin_layout Plain Layout
16377 \begin_layout Itemize
16379 \begin_inset Box Frameless
16389 height_special "totalheight"
16394 backgroundcolor "none"
16397 \begin_layout Plain Layout
16398 \begin_inset Tabular
16399 <lyxtabular version="3" rows="3" columns="3">
16400 <features tabularvalignment="middle">
16401 <column alignment="center" valignment="top">
16402 <column alignment="center" valignment="top">
16403 <column alignment="center" valignment="top">
16405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16408 \begin_layout Plain Layout
16414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16417 \begin_layout Plain Layout
16423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16426 \begin_layout Plain Layout
16434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16437 \begin_layout Plain Layout
16443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16446 \begin_layout Plain Layout
16452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16455 \begin_layout Plain Layout
16463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16466 \begin_layout Plain Layout
16472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16475 \begin_layout Plain Layout
16481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16484 \begin_layout Plain Layout
16503 \begin_layout Itemize
16505 \begin_inset Box Frameless
16515 height_special "totalheight"
16520 backgroundcolor "none"
16523 \begin_layout Plain Layout
16524 \begin_inset Tabular
16525 <lyxtabular version="3" rows="3" columns="3">
16526 <features tabularvalignment="middle">
16527 <column alignment="center" valignment="top">
16528 <column alignment="center" valignment="top">
16529 <column alignment="center" valignment="top">
16531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16534 \begin_layout Plain Layout
16540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16543 \begin_layout Plain Layout
16549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16552 \begin_layout Plain Layout
16560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16563 \begin_layout Plain Layout
16569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16572 \begin_layout Plain Layout
16578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16581 \begin_layout Plain Layout
16589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16592 \begin_layout Plain Layout
16598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16601 \begin_layout Plain Layout
16607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16610 \begin_layout Plain Layout
16630 \begin_layout Plain Layout
16642 \begin_inset Box Frameless
16652 height_special "totalheight"
16657 backgroundcolor "none"
16660 \begin_layout Plain Layout
16661 \begin_inset Tabular
16662 <lyxtabular version="3" rows="3" columns="3">
16663 <features tabularvalignment="middle">
16664 <column alignment="center" valignment="top">
16665 <column alignment="center" valignment="top">
16666 <column alignment="center" valignment="top">
16668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16671 \begin_layout Plain Layout
16677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16680 \begin_layout Plain Layout
16686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16689 \begin_layout Plain Layout
16697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16700 \begin_layout Plain Layout
16706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16709 \begin_layout Plain Layout
16715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16718 \begin_layout Plain Layout
16726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16729 \begin_layout Plain Layout
16735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16738 \begin_layout Plain Layout
16744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16747 \begin_layout Plain Layout
16767 \begin_layout Plain Layout
16777 \begin_layout Standard
16778 As you will see, the content of the first and last table row is not correctly
16780 To get this alignment, the minipage box must be set into a raisebox.
16784 \begin_layout Plain Layout
16785 Raiseboxes are described in section
16786 \begin_inset space ~
16790 \begin_inset CommandInset ref
16792 reference "subsec:Vertical-Alignment"
16801 In the example above the second table in the first item is aligned using
16802 the \SpecialChar TeX
16806 \begin_layout Standard
16816 \begin_layout Standard
16818 After the box the closing brace
16822 is inserted as \SpecialChar TeX
16824 For the second table in the last item the command
16827 \begin_layout Standard
16837 \begin_layout Standard
16841 \begin_layout Standard
16842 \begin_inset Note Greyedout
16845 \begin_layout Plain Layout
16850 The alignment of the table row content to the surrounding text line is
16852 The required value for the
16858 command for this alignment depends on the document font, the font size,
16859 and the table line thickness.
16867 \begin_layout Section
16869 \begin_inset CommandInset label
16871 name "sec:Colored-Tables"
16876 \begin_inset Index idx
16879 \begin_layout Plain Layout
16888 \begin_layout Subsection
16890 \begin_inset Index idx
16893 \begin_layout Plain Layout
16894 Table Color ! for Cells
16900 \begin_inset Index idx
16903 \begin_layout Plain Layout
16904 Color ! for Table Cells
16912 \begin_layout Standard
16913 \begin_inset Float table
16919 \begin_layout Plain Layout
16920 \begin_inset Caption Standard
16922 \begin_layout Plain Layout
16923 \begin_inset CommandInset label
16925 name "tab:Table-colored-without"
16929 Table colored without using the package
16934 \begin_inset Argument 1
16937 \begin_layout Plain Layout
16938 Table without colortbl
16951 \begin_layout Plain Layout
16953 \begin_inset Tabular
16954 <lyxtabular version="3" rows="3" columns="3">
16955 <features tabularvalignment="middle">
16956 <column alignment="center" valignment="top">
16957 <column alignment="center" valignment="top">
16958 <column alignment="center" valignment="top">
16960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16963 \begin_layout Plain Layout
16971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16974 \begin_layout Plain Layout
16982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16985 \begin_layout Plain Layout
16995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16998 \begin_layout Plain Layout
17006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17009 \begin_layout Plain Layout
17017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17020 \begin_layout Plain Layout
17030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17033 \begin_layout Plain Layout
17041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17044 \begin_layout Plain Layout
17052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17055 \begin_layout Plain Layout
17076 \begin_layout Standard
17077 If you only need colored text, mark the cells and choose a color in the
17081 \begin_inset space ~
17086 dialog (toolbar button
17089 arg "dialog-show character"
17093 This was used to create Table
17094 \begin_inset space ~
17098 \begin_inset CommandInset ref
17100 reference "tab:Table-colored-without"
17105 In any other case you have to use the \SpecialChar LaTeX
17111 \begin_inset Index idx
17114 \begin_layout Plain Layout
17116 -packages ! colortbl
17124 \begin_layout Standard
17128 \begin_layout Plain Layout
17138 \begin_inset Note Note
17141 \begin_layout Plain Layout
17142 The following section part will only be displayed when the \SpecialChar LaTeX
17155 \begin_layout Standard
17156 To create colored tables,
17160 must be loaded in the preamble with the line
17163 \begin_layout Standard
17168 usepackage{colortbl}
17171 \begin_layout Standard
17172 The color of a column is adjusted with the command
17175 \begin_layout Standard
17180 columncolor{name of color}
17183 \begin_layout Standard
17189 More about the command
17193 is contained in section
17194 \begin_inset space ~
17198 \begin_inset CommandInset ref
17200 reference "subsec:Multicolumn-Calculations"
17207 \begin_layout Standard
17208 The following color names are predefined:
17211 \begin_layout Standard
17245 \begin_layout Standard
17246 \begin_inset VSpace medskip
17252 \begin_layout Standard
17253 If you add the options
17256 \begin_layout Standard
17259 usenames,dvipsnames
17262 \begin_layout Standard
17263 to the document class options in the document settings, you can additionally
17265 \begin_inset space ~
17269 These colors are listed in appendix
17270 \begin_inset space ~
17274 \begin_inset CommandInset ref
17276 reference "chap:List-of-dvips-colornames"
17281 One of these colors,
17285 , is used as example in Table
17286 \begin_inset space ~
17290 \begin_inset CommandInset ref
17292 reference "tab:Table-colored-using"
17299 \begin_layout Standard
17300 \begin_inset VSpace medskip
17306 \begin_layout Standard
17307 You can also define your own color with the command
17310 \begin_layout Standard
17315 definecolor{color name}{color model}{color values}
17318 \begin_layout Standard
17319 The color model can be
17322 \begin_layout Labeling
17323 \labelwidthstring 00.00.0000
17324 cmyk: cyan, magenta, yellow, black
17327 \begin_layout Labeling
17328 \labelwidthstring 00.00.0000
17329 rgb: red, green blue
17332 \begin_layout Labeling
17333 \labelwidthstring 00.00.0000
17337 \begin_layout Standard
17338 and the color values are comma separated numbers between 0 and 1 describing
17339 the factor for the corresponding color of the color model.
17342 \begin_layout Standard
17344 \begin_inset space \thinspace{}
17348 \begin_inset space \space{}
17355 " in the preamble with
17358 \begin_layout Standard
17363 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17366 \begin_layout Standard
17374 \begin_layout Standard
17379 definecolor{lightgray}{gray}{0.8}
17382 \begin_layout Standard
17383 \begin_inset VSpace medskip
17389 \begin_layout Standard
17390 Lines are colored with the command
17393 \begin_layout Standard
17398 rowcolor{name of color}
17401 \begin_layout Standard
17402 and cells are colored with the command
17405 \begin_layout Standard
17410 cellcolor{name of color}
17413 \begin_layout Standard
17414 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17418 \begin_layout Standard
17419 To color characters in the table, mark the cells and use the
17422 \begin_inset space ~
17428 If a cell contains \SpecialChar TeX
17429 Code mark only the characters, otherwise the colored
17431 Code will cause \SpecialChar LaTeX
17435 \begin_layout Standard
17436 \begin_inset Note Greyedout
17439 \begin_layout Plain Layout
17444 Not all DVI-viewers are able to display self-defined colors.
17452 \begin_layout Standard
17453 \begin_inset VSpace bigskip
17459 \begin_layout Standard
17461 \begin_inset space ~
17465 \begin_inset CommandInset ref
17467 reference "tab:Table-colored-using"
17471 do the following: The color of the first column should be
17479 \begin_layout Standard
17484 columncolor{darkgreen}
17489 \begin_layout Standard
17490 as \SpecialChar LaTeX
17491 -argument for this column.
17492 The first row should be light blue, therefore the \SpecialChar TeX
17496 \begin_layout Standard
17504 \begin_layout Standard
17505 is inserted to the first cell of this row.
17506 Note that this overwrites the column color for the first cell.
17507 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17512 \begin_layout Standard
17520 \begin_layout Standard
17521 The characters could now be colored using the menu
17523 Edit\SpecialChar menuseparator
17525 \begin_inset space ~
17533 \begin_layout Standard
17534 \begin_inset Float table
17540 \begin_layout Plain Layout
17541 \begin_inset Caption Standard
17543 \begin_layout Plain Layout
17544 \begin_inset CommandInset label
17546 name "tab:Table-colored-using"
17550 Table colored using the package
17555 \begin_inset Argument 1
17558 \begin_layout Plain Layout
17559 Table with colortbl
17572 \begin_layout Plain Layout
17574 \begin_inset Tabular
17575 <lyxtabular version="3" rows="3" columns="3">
17576 <features tabularvalignment="middle">
17577 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17578 <column alignment="center" valignment="top">
17579 <column alignment="center" valignment="top">
17581 <cell alignment="center" valignment="top" usebox="none">
17584 \begin_layout Plain Layout
17588 \begin_layout Plain Layout
17604 <cell alignment="center" valignment="top" usebox="none">
17607 \begin_layout Plain Layout
17615 <cell alignment="center" valignment="top" usebox="none">
17618 \begin_layout Plain Layout
17628 <cell alignment="center" valignment="top" usebox="none">
17631 \begin_layout Plain Layout
17639 <cell alignment="center" valignment="top" usebox="none">
17642 \begin_layout Plain Layout
17650 <cell alignment="center" valignment="top" usebox="none">
17653 \begin_layout Plain Layout
17663 <cell alignment="center" valignment="top" usebox="none">
17666 \begin_layout Plain Layout
17674 <cell alignment="center" valignment="top" usebox="none">
17677 \begin_layout Plain Layout
17685 <cell alignment="center" valignment="top" usebox="none">
17688 \begin_layout Plain Layout
17692 \begin_layout Plain Layout
17721 \begin_layout Standard
17725 \begin_layout Plain Layout
17735 \begin_inset Note Note
17738 \begin_layout Plain Layout
17739 The following will be displayed when the \SpecialChar LaTeX
17752 \begin_layout Standard
17753 You need to install the package
17757 to see the content of this section in the output.
17760 \begin_layout Standard
17764 \begin_layout Plain Layout
17776 \begin_layout Subsection
17778 \begin_inset Index idx
17781 \begin_layout Plain Layout
17782 Table Color ! for Rows
17788 \begin_inset Index idx
17791 \begin_layout Plain Layout
17792 Color ! for Table Rows
17800 \begin_layout Standard
17801 In case every second table row needs to be colored there is an alternative
17802 to the method described in the previous section: One loads the package
17808 \begin_inset Index idx
17811 \begin_layout Plain Layout
17817 \begin_layout Plain Layout
17831 in the document preamble with the command
17834 \begin_layout Standard
17839 usepackage[table]{xcolor}
17842 \begin_layout Standard
17847 automatically loads also the package
17852 \begin_inset Index idx
17855 \begin_layout Plain Layout
17857 -packages ! colortbl
17866 must be installed in your \SpecialChar LaTeX
17867 -distribution, otherwise you get \SpecialChar LaTeX
17871 \begin_layout Standard
17875 \begin_layout Plain Layout
17885 \begin_inset Note Note
17888 \begin_layout Plain Layout
17889 The following section part will only be displayed when the \SpecialChar LaTeX
17902 \begin_layout Standard
17903 The table rows are colored with the command
17906 \begin_layout Standard
17911 rowcolors[commands]{row number}{odd row color}{even row color}
17914 \begin_layout Standard
17915 that is either inserted in the document preamble or as \SpecialChar TeX
17917 first table to be colored.
17919 \begin_inset space ~
17922 number is the number of the first row which should be colored according
17923 to the odd row color.
17924 commands can be additional commands that are executed before every table
17926 So for example the command
17929 \begin_layout Standard
17934 rowcolors{1}{white}{lightgray}
17937 \begin_layout Standard
17938 leads to the coloring scheme of Table
17939 \begin_inset space ~
17943 \begin_inset CommandInset ref
17945 reference "tab:Table-rowcolors"
17953 \begin_layout Standard
17960 hline]{1}{lightgray}{cyan}
17963 \begin_layout Standard
17964 leads to the coloring scheme of Table
17965 \begin_inset space ~
17969 \begin_inset CommandInset ref
17971 reference "tab:Table-rowcolors-2"
17977 \begin_inset space ~
17981 \begin_inset space ~
17985 \begin_inset space ~
17989 \begin_inset space ~
17992 color are left empty, no color will be used so that the command
17995 \begin_layout Standard
18003 \begin_layout Standard
18004 deletes all colors.
18011 affects all tables following that command.
18014 \begin_layout Standard
18018 \begin_layout Plain Layout
18022 rowcolors{1}{white}{lightgray}
18030 \begin_layout Standard
18031 \begin_inset Float table
18037 \begin_layout Plain Layout
18038 \begin_inset Caption Standard
18040 \begin_layout Plain Layout
18041 \begin_inset CommandInset label
18043 name "tab:Table-rowcolors"
18047 Table where every second row is colored light gray.
18055 \begin_layout Plain Layout
18057 \begin_inset Tabular
18058 <lyxtabular version="3" rows="4" columns="3">
18059 <features tabularvalignment="middle">
18060 <column alignment="center" valignment="top">
18061 <column alignment="center" valignment="top" width="0pt">
18062 <column alignment="center" valignment="top" width="0pt">
18064 <cell alignment="center" valignment="top" usebox="none">
18067 \begin_layout Plain Layout
18073 <cell alignment="center" valignment="top" usebox="none">
18076 \begin_layout Plain Layout
18082 <cell alignment="center" valignment="top" usebox="none">
18085 \begin_layout Plain Layout
18093 <cell alignment="center" valignment="top" usebox="none">
18096 \begin_layout Plain Layout
18102 <cell alignment="center" valignment="top" usebox="none">
18105 \begin_layout Plain Layout
18111 <cell alignment="center" valignment="top" usebox="none">
18114 \begin_layout Plain Layout
18122 <cell alignment="center" valignment="top" usebox="none">
18125 \begin_layout Plain Layout
18131 <cell alignment="center" valignment="top" usebox="none">
18134 \begin_layout Plain Layout
18140 <cell alignment="center" valignment="top" usebox="none">
18143 \begin_layout Plain Layout
18151 <cell alignment="center" valignment="top" usebox="none">
18154 \begin_layout Plain Layout
18160 <cell alignment="center" valignment="top" usebox="none">
18163 \begin_layout Plain Layout
18169 <cell alignment="center" valignment="top" usebox="none">
18172 \begin_layout Plain Layout
18191 \begin_layout Standard
18195 \begin_layout Plain Layout
18201 hline]{1}{lightgray}{cyan}
18209 \begin_layout Standard
18210 \begin_inset Float table
18216 \begin_layout Plain Layout
18217 \begin_inset Caption Standard
18219 \begin_layout Plain Layout
18220 \begin_inset CommandInset label
18222 name "tab:Table-rowcolors-2"
18226 Table where every second row is colored cyan and at which there is a line
18235 \begin_layout Plain Layout
18237 \begin_inset Tabular
18238 <lyxtabular version="3" rows="4" columns="3">
18239 <features tabularvalignment="middle">
18240 <column alignment="center" valignment="top">
18241 <column alignment="center" valignment="top">
18242 <column alignment="center" valignment="top" width="0pt">
18244 <cell alignment="center" valignment="top" usebox="none">
18247 \begin_layout Plain Layout
18253 <cell alignment="center" valignment="top" usebox="none">
18256 \begin_layout Plain Layout
18262 <cell alignment="center" valignment="top" usebox="none">
18265 \begin_layout Plain Layout
18273 <cell alignment="center" valignment="top" usebox="none">
18276 \begin_layout Plain Layout
18282 <cell alignment="center" valignment="top" usebox="none">
18285 \begin_layout Plain Layout
18291 <cell alignment="center" valignment="top" usebox="none">
18294 \begin_layout Plain Layout
18302 <cell alignment="center" valignment="top" usebox="none">
18305 \begin_layout Plain Layout
18311 <cell alignment="center" valignment="top" usebox="none">
18314 \begin_layout Plain Layout
18320 <cell alignment="center" valignment="top" usebox="none">
18323 \begin_layout Plain Layout
18331 <cell alignment="center" valignment="top" usebox="none">
18334 \begin_layout Plain Layout
18340 <cell alignment="center" valignment="top" usebox="none">
18343 \begin_layout Plain Layout
18349 <cell alignment="center" valignment="top" usebox="none">
18352 \begin_layout Plain Layout
18371 \begin_layout Standard
18375 \begin_layout Plain Layout
18385 \begin_inset Note Note
18388 \begin_layout Plain Layout
18389 turns off the row coloring
18397 \begin_layout Standard
18401 \begin_layout Plain Layout
18411 \begin_inset Note Note
18414 \begin_layout Plain Layout
18415 The following will be displayed when the \SpecialChar LaTeX
18428 \begin_layout Standard
18429 You need to install the package
18433 to see the content of this section in the output.
18436 \begin_layout Standard
18440 \begin_layout Plain Layout
18452 \begin_layout Subsection
18454 \begin_inset Index idx
18457 \begin_layout Plain Layout
18458 Table Color ! for Lines
18464 \begin_inset Index idx
18467 \begin_layout Plain Layout
18468 Color ! for Table Lines
18476 \begin_layout Standard
18477 As described in section
18478 \begin_inset space ~
18482 \begin_inset CommandInset ref
18484 reference "subsec:Line-Thickness"
18488 , the line thickness for all lines in a table can be adjusted with the length
18497 \begin_inset space \thinspace{}
18500 pt for all tables of this section.
18504 \begin_layout Plain Layout
18510 arrayrulewidth}{1.5pt}
18518 \begin_layout Standard
18519 To color vertical lines for example with green, create the following column
18520 format in the document preamble, according to the description in section
18521 \begin_inset space ~
18525 \begin_inset CommandInset ref
18527 reference "subsec:Customized-Format"
18534 \begin_layout Standard
18539 newcolumntype{W}{!{
18546 \begin_layout Standard
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "tab:Table-with-vertical-colored"
18558 the \SpecialChar LaTeX
18563 was used for the last column and
18567 for the other columns.
18570 \begin_layout Standard
18571 If you want to have several colors, define more column formats.
18574 \begin_layout Standard
18575 \begin_inset Float table
18581 \begin_layout Plain Layout
18582 \begin_inset Caption Standard
18584 \begin_layout Plain Layout
18585 \begin_inset CommandInset label
18587 name "tab:Table-with-vertical-colored"
18591 Table with colored vertical lines
18599 \begin_layout Plain Layout
18601 \begin_inset Tabular
18602 <lyxtabular version="3" rows="3" columns="3">
18603 <features tabularvalignment="middle">
18604 <column alignment="center" valignment="top" special="Wc">
18605 <column alignment="center" valignment="top" special="Wc">
18606 <column alignment="center" valignment="top" special="WcW">
18608 <cell alignment="center" valignment="top" topline="true" usebox="none">
18611 \begin_layout Plain Layout
18617 <cell alignment="center" valignment="top" topline="true" usebox="none">
18620 \begin_layout Plain Layout
18626 <cell alignment="center" valignment="top" topline="true" usebox="none">
18629 \begin_layout Plain Layout
18637 <cell alignment="center" valignment="top" topline="true" usebox="none">
18640 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" usebox="none">
18649 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" usebox="none">
18658 \begin_layout Plain Layout
18666 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18669 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18678 \begin_layout Plain Layout
18684 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18687 \begin_layout Plain Layout
18706 \begin_layout Standard
18707 \begin_inset VSpace bigskip
18710 To color horizontal lines for example with red, as in Table
18711 \begin_inset space ~
18715 \begin_inset CommandInset ref
18717 reference "tab:Table-with-horizontal-colored"
18721 , insert these commands in \SpecialChar TeX
18722 Code before the table or table float:
18725 \begin_layout Standard
18735 \begin_inset Newline newline
18743 \begin_inset Newline newline
18747 \begin_inset Phantom HPhantom
18750 \begin_layout Plain Layout
18753 \begin_inset space ~
18763 arrayrulecolor{red}
18767 arrayrulecolor{black}}
18770 \begin_layout Standard
18774 \begin_layout Plain Layout
18785 \begin_layout Plain Layout
18794 \begin_layout Plain Layout
18798 arrayrulecolor{red}
18802 arrayrulecolor{black}}
18808 \begin_inset Float table
18814 \begin_layout Plain Layout
18815 \begin_inset Caption Standard
18817 \begin_layout Plain Layout
18818 \begin_inset CommandInset label
18820 name "tab:Table-with-horizontal-colored"
18824 Table with colored horizontal lines
18832 \begin_layout Plain Layout
18834 \begin_inset Tabular
18835 <lyxtabular version="3" rows="3" columns="3">
18836 <features tabularvalignment="middle">
18837 <column alignment="center" valignment="top">
18838 <column alignment="center" valignment="top">
18839 <column alignment="center" valignment="top">
18841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18844 \begin_layout Plain Layout
18850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18853 \begin_layout Plain Layout
18859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18862 \begin_layout Plain Layout
18870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18873 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18882 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18891 \begin_layout Plain Layout
18899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18902 \begin_layout Plain Layout
18908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18911 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18920 \begin_layout Plain Layout
18939 \begin_layout Standard
18940 To return to the default line color black, insert this command in \SpecialChar TeX
18942 after the table or table float:
18945 \begin_layout Standard
18957 \begin_layout Standard
18959 \begin_inset space ~
18963 \begin_inset CommandInset ref
18965 reference "tab:Table-with-colored"
18969 is an example with colored vertical and horizontal lines.
18972 \begin_layout Standard
18973 \begin_inset Float table
18979 \begin_layout Plain Layout
18980 \begin_inset Caption Standard
18982 \begin_layout Plain Layout
18983 \begin_inset CommandInset label
18985 name "tab:Table-with-colored"
18989 Table with colored lines
18997 \begin_layout Plain Layout
18999 \begin_inset Tabular
19000 <lyxtabular version="3" rows="3" columns="3">
19001 <features tabularvalignment="middle">
19002 <column alignment="center" valignment="top" special="Wc">
19003 <column alignment="center" valignment="top" special="Wc">
19004 <column alignment="center" valignment="top" special="WcW">
19006 <cell alignment="center" valignment="top" topline="true" usebox="none">
19009 \begin_layout Plain Layout
19015 <cell alignment="center" valignment="top" topline="true" usebox="none">
19018 \begin_layout Plain Layout
19024 <cell alignment="center" valignment="top" topline="true" usebox="none">
19027 \begin_layout Plain Layout
19035 <cell alignment="center" valignment="top" topline="true" usebox="none">
19038 \begin_layout Plain Layout
19044 <cell alignment="center" valignment="top" topline="true" usebox="none">
19047 \begin_layout Plain Layout
19053 <cell alignment="center" valignment="top" topline="true" usebox="none">
19056 \begin_layout Plain Layout
19063 <row topspace="default">
19064 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19067 \begin_layout Plain Layout
19073 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19076 \begin_layout Plain Layout
19082 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19085 \begin_layout Plain Layout
19104 \begin_layout Standard
19108 \begin_layout Plain Layout
19124 \begin_layout Standard
19128 \begin_layout Plain Layout
19134 arrayrulewidth}{0.4pt}
19142 \begin_layout Section
19143 Rotated Table Cells
19144 \begin_inset CommandInset label
19146 name "sec:Rotated-Table-Cells"
19151 \begin_inset Index idx
19154 \begin_layout Plain Layout
19155 Table ! Rotated Cells
19161 \begin_inset Index idx
19164 \begin_layout Plain Layout
19173 \begin_layout Standard
19174 \begin_inset Note Greyedout
19177 \begin_layout Plain Layout
19182 Not all DVI-viewers are able to display rotations.
19190 \begin_layout Standard
19192 \begin_inset space ~
19196 \begin_inset CommandInset ref
19198 reference "tab:Table-with-rotated-multi"
19202 is an example where 3
19203 \begin_inset space ~
19206 cells were rotated by 45
19207 \begin_inset space \thinspace{}
19213 \begin_layout Standard
19214 \begin_inset Float table
19220 \begin_layout Plain Layout
19221 \begin_inset Caption Standard
19223 \begin_layout Plain Layout
19224 \begin_inset CommandInset label
19226 name "tab:Table-with-rotated"
19230 Table with rotated cells in the first row.
19238 \begin_layout Plain Layout
19241 \begin_inset Tabular
19242 <lyxtabular version="3" rows="2" columns="3">
19243 <features tabularvalignment="middle">
19244 <column alignment="center" valignment="top" width="0pt">
19245 <column alignment="center" valignment="top" width="0pt">
19246 <column alignment="center" valignment="top" width="0pt">
19248 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19251 \begin_layout Plain Layout
19257 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19260 \begin_layout Plain Layout
19266 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19269 \begin_layout Plain Layout
19277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19280 \begin_layout Plain Layout
19286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19289 \begin_layout Plain Layout
19295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19298 \begin_layout Plain Layout
19317 \begin_layout Standard
19318 \begin_inset Note Greyedout
19321 \begin_layout Plain Layout
19326 Line breaks (shortcut
19329 arg "newline-insert newline"
19332 ) are not allowed in rotated cells.
19340 \begin_layout Standard
19341 If you want to rotate table cells containing line breaks, you have to put
19342 the cell content into a minipage or a parbox.
19346 \begin_layout Plain Layout
19347 For more about these boxes see sec.
19348 \begin_inset space \thinspace{}
19352 \begin_inset CommandInset ref
19354 reference "sec:Minipages"
19359 \begin_inset CommandInset ref
19361 reference "sec:Parboxes"
19370 If you rotate this cell by 90
19371 \begin_inset space \thinspace{}
19374 ° the width of the box is the height of the cell.
19376 \begin_inset space ~
19380 \begin_inset CommandInset ref
19382 reference "tab:Table-with-rotated-multi"
19386 is an example for a rotated multiline cell where the box width was set
19388 \begin_inset space \thinspace{}
19394 \begin_layout Standard
19395 \begin_inset Float table
19400 \begin_layout Plain Layout
19401 \begin_inset Caption Standard
19403 \begin_layout Plain Layout
19404 \begin_inset CommandInset label
19406 name "tab:Table-with-rotated-multi"
19410 Table with rotated multiline cell.
19418 \begin_layout Plain Layout
19421 \begin_inset Tabular
19422 <lyxtabular version="3" rows="2" columns="3">
19423 <features tabularvalignment="middle">
19424 <column alignment="center" valignment="top">
19425 <column alignment="center" valignment="top" width="0pt">
19426 <column alignment="center" valignment="top">
19428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19431 \begin_layout Plain Layout
19437 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19440 \begin_layout Plain Layout
19441 \begin_inset Box Frameless
19451 height_special "totalheight"
19456 backgroundcolor "none"
19459 \begin_layout Plain Layout
19461 \begin_inset Newline newline
19474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19477 \begin_layout Plain Layout
19485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19488 \begin_layout Plain Layout
19494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19497 \begin_layout Plain Layout
19503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19506 \begin_layout Plain Layout
19525 \begin_layout Section
19526 Table Width Calculation
19527 \begin_inset CommandInset label
19529 name "sec:Table-Width-Calculation"
19536 \begin_layout Standard
19537 For wide tables it is sometimes difficult to assure that the table does
19538 not protrude over the page margin.
19539 Setting a fixed width for every column of the table is the solution, but
19540 what amount of space is needed for each column?
19543 \begin_layout Standard
19545 \begin_inset Formula $W_{\mathrm{table}}$
19548 can be calculated: Every column has the width of the specified column width
19550 \begin_inset Formula $W_{\mathrm{column}}$
19553 (that the content of the column can consume) plus two times the separation
19554 between the column content and the column border (\SpecialChar LaTeX
19562 \begin_inset space \thinspace{}
19565 pt) plus the width of a border line (\SpecialChar LaTeX
19573 \begin_inset space \thinspace{}
19577 \begin_inset Formula $n$
19581 \begin_inset space ~
19584 columns have the same width, the table width is
19585 \begin_inset Formula
19587 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19595 \begin_layout Standard
19596 The available width for a table is the space between the page margins or
19597 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19605 If all table columns should have the same width and
19606 \begin_inset Formula $W_{\mathrm{table}}$
19610 \begin_inset space \thinspace{}
19616 \begin_inset Formula $W_{\mathrm{column}}$
19619 can easily be calculated.
19622 \begin_layout Standard
19623 To be able to perform calculations you need to load the \SpecialChar LaTeX
19629 \begin_inset Index idx
19632 \begin_layout Plain Layout
19639 in the document preamble.
19640 To set the width in the table dialog you have to use the field
19646 The command scheme for this field is the same that is explained in section
19647 \begin_inset space ~
19651 \begin_inset CommandInset ref
19653 reference "subsec:Multicolumn-Calculations"
19659 \begin_inset space \thinspace{}
19662 columns with an uniform width and centered text, enter there for each column
19666 \begin_layout Standard
19673 columnwidth-62.4pt)/5}
19676 \begin_layout Standard
19678 \begin_inset space \thinspace{}
19681 columns where 2 should have 0.75
19682 \begin_inset space ~
19685 times the width than the 3 others, the calculation is
19686 \begin_inset Formula
19688 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19689 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19690 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19691 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19699 \begin_layout Standard
19700 In the table therefore the command
19703 \begin_layout Standard
19710 columnwidth-62.4pt)/
19715 \begin_layout Standard
19716 is used for the wider columns and
19719 \begin_layout Standard
19726 columnwidth-62.4pt)/
19733 \begin_layout Standard
19734 for the smaller ones:
19737 \begin_layout Standard
19738 \begin_inset Tabular
19739 <lyxtabular version="3" rows="2" columns="5">
19740 <features tabularvalignment="middle">
19741 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19742 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19743 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19744 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19745 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19750 \begin_layout Plain Layout
19756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19759 \begin_layout Plain Layout
19765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19768 \begin_layout Plain Layout
19774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19777 \begin_layout Plain Layout
19783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19786 \begin_layout Plain Layout
19794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19797 \begin_layout Plain Layout
19798 111111 1111111 111111 111111111 11111 11111 1111
19803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19806 \begin_layout Plain Layout
19812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19815 \begin_layout Plain Layout
19816 2222 22222 222222 222222222 2222222 22 22222
19821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19824 \begin_layout Plain Layout
19830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19833 \begin_layout Plain Layout
19834 333333 333333 333333 33333 3333333 333
19847 \begin_layout Section
19848 Table Customization
19849 \begin_inset Index idx
19852 \begin_layout Plain Layout
19853 Table Customization
19859 \begin_inset Index idx
19862 \begin_layout Plain Layout
19863 Table ! Customization
19871 \begin_layout Subsection
19873 \begin_inset CommandInset label
19875 name "subsec:Row-Spacing"
19880 \begin_inset Index idx
19883 \begin_layout Plain Layout
19884 Table Customization ! Row Spacing
19892 \begin_layout Standard
19893 You can add vertical space to table rows in the
19897 tab of the table dialog.
19898 You find there three possibilities:
19901 \begin_layout Description
19903 \begin_inset space ~
19907 \begin_inset space ~
19910 row will add space above the characters of the table row.
19911 If the table is a formal table
19915 \begin_layout Plain Layout
19916 Formal tables are explained in section
19917 \begin_inset space ~
19921 \begin_inset CommandInset ref
19923 reference "sec:Formal-Tables"
19933 will insert as default 0.5
19934 \begin_inset space \thinspace{}
19938 For normal tables the inserted space will unfortunately destroy the vertical
19939 table lines as in the following table:
19940 \begin_inset VSpace medskip
19944 \begin_inset Newline newline
19948 \begin_inset space \hspace*{}
19953 \begin_inset space \hfill{}
19957 \begin_inset Tabular
19958 <lyxtabular version="3" rows="3" columns="1">
19959 <features tabularvalignment="middle">
19960 <column alignment="center" valignment="top">
19962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19965 \begin_layout Plain Layout
19972 <row topspace="3mm">
19973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19976 \begin_layout Plain Layout
19978 \begin_inset space \thinspace{}
19981 mm space top of row
19988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19991 \begin_layout Plain Layout
20003 \begin_inset space \hfill{}
20007 \begin_inset space \hspace*{}
20012 \begin_inset VSpace medskip
20016 \begin_inset Newline newline
20019 So inserting space in the top of row for normal tables is only useful when
20020 you don't have vertical lines.
20023 \begin_layout Description
20025 \begin_inset space ~
20029 \begin_inset space ~
20032 row will add space below the characters of the table row.
20033 If the table is a formal table \SpecialChar LyX
20034 will insert as default 0.5
20035 \begin_inset space \thinspace{}
20038 em space, for normal tables the default size is 2
20039 \begin_inset space \thinspace{}
20045 \begin_layout Description
20047 \begin_inset space ~
20050 rows adds space between the current and the following row.
20051 If the table is a formal table \SpecialChar LyX
20052 will insert as default 0.5
20053 \begin_inset space \thinspace{}
20057 For normal tables the inserted space will unfortunately destroy the vertical
20058 table lines as in the following table:
20059 \begin_inset VSpace medskip
20063 \begin_inset Newline newline
20067 \begin_inset space \hspace*{}
20072 \begin_inset space \hfill{}
20076 \begin_inset Tabular
20077 <lyxtabular version="3" rows="3" columns="1">
20078 <features tabularvalignment="middle">
20079 <column alignment="center" valignment="top">
20081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20084 \begin_layout Plain Layout
20091 <row interlinespace="3mm">
20092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20095 \begin_layout Plain Layout
20096 \begin_inset Formula $\downarrow$
20100 \begin_inset space \thinspace{}
20103 mm space between row
20104 \begin_inset Formula $\downarrow$
20114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20117 \begin_layout Plain Layout
20118 \begin_inset Formula $\uparrow$
20122 \begin_inset space \thinspace{}
20125 mm space between row
20126 \begin_inset Formula $\uparrow$
20140 \begin_inset space \hfill{}
20144 \begin_inset space \hspace*{}
20149 \begin_inset VSpace medskip
20153 \begin_inset Newline newline
20156 So inserting space between rows for normal tables is only useful when you
20157 don't have vertical lines.
20160 \begin_layout Standard
20161 \begin_inset VSpace bigskip
20164 When you want to add extra height to all cells of all tables, you can do
20165 this with the following preamble lines:
20168 \begin_layout Standard
20173 @ifundefined{extrarowheight}
20174 \begin_inset Newline newline
20178 \begin_inset Phantom HPhantom
20181 \begin_layout Plain Layout
20184 \begin_inset space ~
20194 usepackage{array}}{}
20195 \begin_inset Newline newline
20202 extrarowheight}{height}
20205 \begin_layout Standard
20206 But this has the disadvantage that the cell texts are no longer exactly
20207 vertically centered.
20212 will be loaded automatically by \SpecialChar LyX
20213 when you use self defined table formats.
20214 To avoid that it being loaded twice the command
20220 is used in the above command.)
20223 \begin_layout Standard
20224 If you are using font sizes larger than the normal size, the table borders
20225 are often too close to the letters.
20226 This can be corrected by inserting the command
20232 in \SpecialChar TeX
20233 Code at the beginning of a table row.
20235 \begin_inset space ~
20239 \begin_inset CommandInset ref
20241 reference "tab:Vertical-alignment-of"
20245 illustrates the effect.
20248 \begin_layout Standard
20250 \begin_inset Float table
20256 \begin_layout Plain Layout
20257 \begin_inset Caption Standard
20259 \begin_layout Plain Layout
20260 \begin_inset CommandInset label
20262 name "tab:Vertical-alignment-of"
20266 Vertical alignment of text with large font sizes.
20274 \begin_layout Plain Layout
20275 \begin_inset space \hfill{}
20279 \begin_inset Float table
20284 \begin_layout Plain Layout
20285 \begin_inset Caption Standard
20287 \begin_layout Plain Layout
20296 \begin_layout Plain Layout
20299 \begin_inset Tabular
20300 <lyxtabular version="3" rows="6" columns="1">
20301 <features tabularvalignment="middle">
20302 <column alignment="left" valignment="top">
20304 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20307 \begin_layout Plain Layout
20315 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20318 \begin_layout Plain Layout
20328 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20331 \begin_layout Plain Layout
20341 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20344 \begin_layout Plain Layout
20354 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20357 \begin_layout Plain Layout
20367 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20370 \begin_layout Plain Layout
20389 \begin_inset space \hfill{}
20393 \begin_inset Float table
20398 \begin_layout Plain Layout
20399 \begin_inset Caption Standard
20401 \begin_layout Plain Layout
20402 Table using the command
20416 \begin_layout Plain Layout
20419 \begin_inset Tabular
20420 <lyxtabular version="3" rows="6" columns="1">
20421 <features tabularvalignment="middle">
20422 <column alignment="left" valignment="top">
20424 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20427 \begin_layout Plain Layout
20435 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20438 \begin_layout Plain Layout
20444 \begin_layout Plain Layout
20460 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20463 \begin_layout Plain Layout
20469 \begin_layout Plain Layout
20485 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20488 \begin_layout Plain Layout
20494 \begin_layout Plain Layout
20510 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20513 \begin_layout Plain Layout
20519 \begin_layout Plain Layout
20535 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20538 \begin_layout Plain Layout
20544 \begin_layout Plain Layout
20571 \begin_inset space \hfill{}
20582 \begin_layout Subsection
20583 Special Cell Alignment
20584 \begin_inset CommandInset label
20586 name "subsec:Special-Cell-Alignment"
20591 \begin_inset Index idx
20594 \begin_layout Plain Layout
20595 Table Customization ! Special Cell Alignment
20603 \begin_layout Standard
20604 Sometimes it looks better when the cell entries of a column are aligned
20605 with a special character, e.
20606 \begin_inset space \thinspace{}
20610 \begin_inset space \space{}
20613 with the decimal separator as in Table
20614 \begin_inset space ~
20618 \begin_inset CommandInset ref
20620 reference "tab:Table-cells-align"
20625 This alignment is achieved by setting the cursor into the column and then
20626 either pressing the toolbar button
20629 arg "inset-modify tabular align-decimal"
20632 or setting the alignment in the table settings to
20635 \begin_inset space ~
20639 \begin_inset space ~
20645 The alignment character can be a character of your choice and is specified
20646 in the table settings.
20649 \begin_layout Standard
20650 \begin_inset Float table
20656 \begin_layout Plain Layout
20657 \begin_inset Caption Standard
20659 \begin_layout Plain Layout
20660 \begin_inset CommandInset label
20662 name "tab:Table-cells-align"
20666 Table cells of a column aligned with the decimal separator.
20674 \begin_layout Plain Layout
20676 \begin_inset Tabular
20677 <lyxtabular version="3" rows="4" columns="1">
20678 <features booktabs="true" tabularvalignment="middle">
20679 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20681 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20684 \begin_layout Plain Layout
20692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20695 \begin_layout Plain Layout
20703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20706 \begin_layout Plain Layout
20714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20717 \begin_layout Plain Layout
20736 \begin_layout Standard
20737 \begin_inset Float table
20743 \begin_layout Plain Layout
20744 \begin_inset Caption Standard
20746 \begin_layout Plain Layout
20747 \begin_inset CommandInset label
20749 name "tab:Table-align-operator"
20753 Table cells of a column aligned with the operators.
20761 \begin_layout Plain Layout
20763 \begin_inset Tabular
20764 <lyxtabular version="3" rows="4" columns="2">
20765 <features booktabs="true" tabularvalignment="middle">
20766 <column alignment="right" valignment="top" width="0pt">
20767 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20769 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20772 \begin_layout Plain Layout
20778 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20781 \begin_layout Plain Layout
20789 <cell alignment="center" valignment="top" usebox="none">
20792 \begin_layout Plain Layout
20793 \begin_inset Formula $12\,+$
20801 <cell alignment="center" valignment="top" usebox="none">
20804 \begin_layout Plain Layout
20805 \begin_inset Formula $\,6$
20815 <cell alignment="center" valignment="top" usebox="none">
20818 \begin_layout Plain Layout
20819 \begin_inset Formula $0\,-$
20827 <cell alignment="center" valignment="top" usebox="none">
20830 \begin_layout Plain Layout
20831 \begin_inset Formula $\,68$
20841 <cell alignment="center" valignment="top" usebox="none">
20844 \begin_layout Plain Layout
20845 \begin_inset Formula $-123\,/$
20853 <cell alignment="center" valignment="top" usebox="none">
20856 \begin_layout Plain Layout
20857 \begin_inset Formula $\,0$
20878 \begin_layout Standard
20879 For alignments at characters in formulas this method does not work because
20880 the field to specify the alignment character does not allow formulas.
20881 In this case one need to use the method from Table
20882 \begin_inset space ~
20886 \begin_inset CommandInset ref
20888 reference "tab:Table-align-operator"
20893 This table was created with a 4×2 table.
20894 The heading is a centered multicolumn.
20895 The first column is right-aligned and contains the first part including
20897 The second column is left aligned and contains the rest.
20898 A small space was added at the beginning of each cell of the second column
20899 to get the space that is usually around operators.
20900 To omit the space that is normally between two table columns, the following
20902 -argument was used for the second column:
20905 \begin_layout Standard
20911 \begin_layout Standard
20913 \begin_inset space ~
20917 \begin_inset CommandInset ref
20919 reference "tab:Several-table-cell"
20923 shows some example alignments.
20924 For the alignment with the relation sign, a small space was added like
20925 for the second column of Table
20926 \begin_inset space ~
20930 \begin_inset CommandInset ref
20932 reference "tab:Table-align-operator"
20939 \begin_layout Standard
20940 \begin_inset Float table
20946 \begin_layout Plain Layout
20947 \begin_inset Caption Standard
20949 \begin_layout Plain Layout
20950 \begin_inset CommandInset label
20952 name "tab:Several-table-cell"
20956 Several table cell alignments.
20964 \begin_layout Plain Layout
20966 \begin_inset Tabular
20967 <lyxtabular version="3" rows="4" columns="6">
20968 <features tabularvalignment="middle">
20969 <column alignment="right" valignment="top">
20970 <column alignment="left" valignment="top" special="@{}l">
20971 <column alignment="right" valignment="top">
20972 <column alignment="left" valignment="top" special="@{}l">
20973 <column alignment="right" valignment="top">
20974 <column alignment="left" valignment="top" special="@{}l">
20976 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20979 \begin_layout Plain Layout
20985 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20988 \begin_layout Plain Layout
20994 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20997 \begin_layout Plain Layout
21003 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21006 \begin_layout Plain Layout
21012 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21015 \begin_layout Plain Layout
21021 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21024 \begin_layout Plain Layout
21032 <cell alignment="center" valignment="top" usebox="none">
21035 \begin_layout Plain Layout
21041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21044 \begin_layout Plain Layout
21046 \begin_inset space \thinspace{}
21054 <cell alignment="center" valignment="top" usebox="none">
21057 \begin_layout Plain Layout
21058 \begin_inset Formula $10\cdot$
21066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21069 \begin_layout Plain Layout
21070 \begin_inset Formula $10^{\mbox{-}17}$
21078 <cell alignment="center" valignment="top" usebox="none">
21081 \begin_layout Plain Layout
21082 \begin_inset Formula $\Gamma(t)\propto$
21090 <cell alignment="center" valignment="top" usebox="none">
21093 \begin_layout Plain Layout
21094 \begin_inset Formula $\:\Upsilon(t)$
21104 <cell alignment="center" valignment="top" usebox="none">
21107 \begin_layout Plain Layout
21113 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21116 \begin_layout Plain Layout
21118 \begin_inset space \thinspace{}
21126 <cell alignment="center" valignment="top" usebox="none">
21129 \begin_layout Plain Layout
21130 \begin_inset Formula $5.78\cdot$
21138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21141 \begin_layout Plain Layout
21142 \begin_inset Formula $10^{7}$
21150 <cell alignment="center" valignment="top" usebox="none">
21153 \begin_layout Plain Layout
21154 \begin_inset Formula $A\ne$
21162 <cell alignment="center" valignment="top" usebox="none">
21165 \begin_layout Plain Layout
21166 \begin_inset Formula $\:B_{\mathrm{red}}$
21176 <cell alignment="center" valignment="top" usebox="none">
21179 \begin_layout Plain Layout
21185 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21188 \begin_layout Plain Layout
21190 \begin_inset space \thinspace{}
21198 <cell alignment="center" valignment="top" usebox="none">
21201 \begin_layout Plain Layout
21203 \begin_inset Formula $33.5\cdot$
21211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21214 \begin_layout Plain Layout
21215 \begin_inset Formula $10^{4}$
21223 <cell alignment="center" valignment="top" usebox="none">
21226 \begin_layout Plain Layout
21227 \begin_inset Formula $\sin(\alpha)\ge$
21235 <cell alignment="center" valignment="top" usebox="none">
21238 \begin_layout Plain Layout
21239 \begin_inset Formula $\:\sin(\beta)$
21260 \begin_layout Subsection
21261 Customized Cell/Column Format
21262 \begin_inset CommandInset label
21264 name "subsec:Customized-Format"
21269 \begin_inset Index idx
21272 \begin_layout Plain Layout
21273 Table Customization ! Cell/Column Format
21281 \begin_layout Standard
21282 Calculating the required width for normal columns as described in section
21283 \begin_inset space ~
21287 \begin_inset CommandInset ref
21289 reference "sec:Table-Width-Calculation"
21293 or for spanned columns as described in section
21294 \begin_inset space ~
21298 \begin_inset CommandInset ref
21300 reference "subsec:Multicolumn-Calculations"
21304 is very annoying if you have several tables where a calculation is necessary.
21305 To make life easier, you can define a cell/column format in the preamble,
21306 that can be used in all tables of the document.
21307 The format is defined with the command
21310 \begin_layout Standard
21315 newcolumntype{name of format}[number of arguments]{commands}
21318 \begin_layout Standard
21319 The format name may only consist of one letter.
21344 are predefined and cannot be used.
21345 But all letters are allowed as capitals.
21348 \begin_layout Standard
21349 \begin_inset VSpace medskip
21355 \begin_layout Standard
21356 For vertically and horizontally centered multicolumn cells with a fixed
21357 width you can define the cell format
21360 \begin_layout Standard
21365 newcolumntype{M}[1]{>{
21372 \begin_layout Standard
21379 avoids the problem of hyphenating the first word, as described in section
21380 \begin_inset space ~
21384 \begin_inset CommandInset ref
21386 reference "subsec:Multiple-Lines-in"
21391 Now you can simply enter
21394 \begin_layout Standard
21400 \begin_layout Standard
21406 in the table dialog to create a multicolumn.
21409 \begin_layout Standard
21410 \begin_inset VSpace bigskip
21416 \begin_layout Standard
21417 For cells spanned by a multicolumn cell, you can define the format
21420 \begin_layout Standard
21425 newcolumntype{S}[2]{>{
21430 \begin_inset Newline newline
21434 \begin_inset Phantom HPhantom
21437 \begin_layout Plain Layout
21451 arrayrulewidth)*(1-#2))/#2}}
21454 \begin_layout Standard
21455 This format uses equation
21456 \begin_inset CommandInset ref
21462 to calculate the required width so that each spanned cell has the same
21466 \begin_layout Standard
21470 \begin_layout Standard
21473 S{width of multicolumn cell}{number of spanned columns}
21476 \begin_layout Standard
21477 as \SpecialChar LaTeX
21478 -argument of the column.
21481 \begin_layout Standard
21482 \begin_inset VSpace bigskip
21488 \begin_layout Standard
21489 For colored columns, you can define
21492 \begin_layout Standard
21497 newcolumntype{K}[1]{>{
21504 \begin_layout Standard
21506 \begin_inset Quotes eld
21510 \begin_inset Quotes erd
21513 at the end creates a column with a flexible width whose text is horizontally
21518 \begin_layout Standard
21524 \begin_layout Standard
21525 as \SpecialChar LaTeX
21529 \begin_layout Standard
21530 \begin_inset VSpace bigskip
21536 \begin_layout Standard
21538 \begin_inset space ~
21542 \begin_inset CommandInset ref
21544 reference "tab:Table-using-user-defined"
21548 use the \SpecialChar LaTeX
21552 \begin_layout Standard
21558 \begin_layout Standard
21559 for the first column and the multicolumn,
21562 \begin_layout Standard
21568 \begin_layout Standard
21569 for the last column, and
21572 \begin_layout Standard
21578 \begin_layout Standard
21579 for the cells in the second column.
21582 \begin_layout Standard
21583 \begin_inset Float table
21589 \begin_layout Plain Layout
21590 \begin_inset Caption Standard
21592 \begin_layout Plain Layout
21593 \begin_inset CommandInset label
21595 name "tab:Table-using-user-defined"
21599 Table using user-defined table formats
21607 \begin_layout Plain Layout
21609 \begin_inset Tabular
21610 <lyxtabular version="3" rows="3" columns="4">
21611 <features tabularvalignment="middle">
21612 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21613 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21614 <column alignment="center" valignment="middle">
21615 <column alignment="center" valignment="middle" special="K{red}">
21617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21620 \begin_layout Plain Layout
21621 verylongtablecellword
21626 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21629 \begin_layout Plain Layout
21630 multiple lines multicolumn
21635 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21638 \begin_layout Plain Layout
21644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21647 \begin_layout Plain Layout
21655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21658 \begin_layout Plain Layout
21664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21667 \begin_layout Plain Layout
21673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21676 \begin_layout Plain Layout
21682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21685 \begin_layout Plain Layout
21693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21696 \begin_layout Plain Layout
21702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21705 \begin_layout Plain Layout
21711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21714 \begin_layout Plain Layout
21720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21723 \begin_layout Plain Layout
21742 \begin_layout Subsection
21744 \begin_inset CommandInset label
21746 name "subsec:Line-Thickness"
21751 \begin_inset Index idx
21754 \begin_layout Plain Layout
21755 Table Customization ! Line Thickness
21763 \begin_layout Standard
21764 The line thickness for all lines in a table can be adjusted with the length
21772 To set for example a line thickness of 1.5
21773 \begin_inset space \thinspace{}
21777 \begin_inset space ~
21781 \begin_inset CommandInset ref
21783 reference "tab:Table-with-1.5"
21787 , insert the command
21790 \begin_layout Standard
21797 arrayrulewidth}{1.5pt}
21800 \begin_layout Standard
21801 in \SpecialChar TeX
21802 Code before the table or table float.
21803 The changed thickness is valid for all subsequent tables.
21804 To use the default value again, set
21811 \begin_inset space \thinspace{}
21814 pt in \SpecialChar TeX
21815 Code after the table or table float.
21818 \begin_layout Standard
21822 \begin_layout Plain Layout
21828 arrayrulewidth}{1.5pt}
21834 \begin_inset Float table
21839 \begin_layout Plain Layout
21840 \begin_inset Caption Standard
21842 \begin_layout Plain Layout
21843 \begin_inset CommandInset label
21845 name "tab:Table-with-1.5"
21850 \begin_inset space \thinspace{}
21861 \begin_layout Plain Layout
21863 \begin_inset Tabular
21864 <lyxtabular version="3" rows="3" columns="3">
21865 <features tabularvalignment="middle">
21866 <column alignment="center" valignment="top">
21867 <column alignment="center" valignment="top">
21868 <column alignment="center" valignment="top">
21870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21873 \begin_layout Plain Layout
21879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21882 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21891 \begin_layout Plain Layout
21899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21902 \begin_layout Plain Layout
21908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21911 \begin_layout Plain Layout
21917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21920 \begin_layout Plain Layout
21928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21931 \begin_layout Plain Layout
21937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21940 \begin_layout Plain Layout
21946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21949 \begin_layout Plain Layout
21969 \begin_layout Plain Layout
21975 arrayrulewidth}{0.4pt}
21983 \begin_layout Standard
21984 \begin_inset VSpace bigskip
21987 To set the line thickness to 1.5
21988 \begin_inset space \thinspace{}
21991 pt only for horizontal lines, as in Table
21992 \begin_inset space ~
21996 \begin_inset CommandInset ref
21998 reference "tab:Table-with-horizontal"
22002 , insert these commands in \SpecialChar TeX
22003 Code before the table or table float:
22006 \begin_layout Standard
22016 \begin_inset Newline newline
22024 \begin_inset Newline newline
22033 arrayrulewidth 1.5pt}
22034 \begin_inset Newline newline
22045 arrayrulewidth 0.4pt}}
22048 \begin_layout Standard
22049 To return to the default line thickness, insert this command in \SpecialChar TeX
22051 the table or table float:
22054 \begin_layout Standard
22066 \begin_layout Standard
22070 \begin_layout Plain Layout
22081 \begin_layout Plain Layout
22090 \begin_layout Plain Layout
22098 arrayrulewidth 1.5pt}
22101 \begin_layout Plain Layout
22111 arrayrulewidth 0.4pt}}
22117 \begin_inset Float table
22122 \begin_layout Plain Layout
22123 \begin_inset Caption Standard
22125 \begin_layout Plain Layout
22126 \begin_inset CommandInset label
22128 name "tab:Table-with-horizontal"
22133 \begin_inset space \thinspace{}
22136 pt thick horizontal lines
22144 \begin_layout Plain Layout
22146 \begin_inset Tabular
22147 <lyxtabular version="3" rows="3" columns="3">
22148 <features tabularvalignment="middle">
22149 <column alignment="center" valignment="top">
22150 <column alignment="center" valignment="top">
22151 <column alignment="center" valignment="top">
22153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22156 \begin_layout Plain Layout
22162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22165 \begin_layout Plain Layout
22171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22174 \begin_layout Plain Layout
22182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22185 \begin_layout Plain Layout
22191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22194 \begin_layout Plain Layout
22200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22203 \begin_layout Plain Layout
22211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22214 \begin_layout Plain Layout
22220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22223 \begin_layout Plain Layout
22229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22232 \begin_layout Plain Layout
22252 \begin_layout Plain Layout
22268 \begin_layout Standard
22269 \begin_inset VSpace bigskip
22272 To set the line thickness to 1.5
22273 \begin_inset space \thinspace{}
22276 pt only for vertical lines, create the following column format in the document
22277 preamble, according to the description in section
22278 \begin_inset space ~
22282 \begin_inset CommandInset ref
22284 reference "subsec:Customized-Format"
22291 \begin_layout Standard
22296 newcolumntype{V}{!{
22298 vrule width 1.5pt}}
22301 \begin_layout Standard
22303 \begin_inset space ~
22307 \begin_inset CommandInset ref
22309 reference "tab:Table-with-vertical"
22313 the \SpecialChar LaTeX
22317 \begin_layout Standard
22323 \begin_layout Standard
22324 was used for the last column and
22327 \begin_layout Standard
22333 \begin_layout Standard
22334 for the other columns.
22337 \begin_layout Standard
22338 \begin_inset Float table
22343 \begin_layout Plain Layout
22344 \begin_inset Caption Standard
22346 \begin_layout Plain Layout
22347 \begin_inset CommandInset label
22349 name "tab:Table-with-vertical"
22354 \begin_inset space \thinspace{}
22357 pt thick vertical lines
22365 \begin_layout Plain Layout
22367 \begin_inset Tabular
22368 <lyxtabular version="3" rows="3" columns="3">
22369 <features tabularvalignment="middle">
22370 <column alignment="center" valignment="top" special="Vc">
22371 <column alignment="center" valignment="top" special="Vc">
22372 <column alignment="center" valignment="top" special="VcV">
22374 <cell alignment="center" valignment="top" topline="true" usebox="none">
22377 \begin_layout Plain Layout
22383 <cell alignment="center" valignment="top" topline="true" usebox="none">
22386 \begin_layout Plain Layout
22392 <cell alignment="center" valignment="top" topline="true" usebox="none">
22395 \begin_layout Plain Layout
22403 <cell alignment="center" valignment="top" topline="true" usebox="none">
22406 \begin_layout Plain Layout
22412 <cell alignment="center" valignment="top" topline="true" usebox="none">
22415 \begin_layout Plain Layout
22421 <cell alignment="center" valignment="top" topline="true" usebox="none">
22424 \begin_layout Plain Layout
22432 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22435 \begin_layout Plain Layout
22441 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22444 \begin_layout Plain Layout
22450 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22453 \begin_layout Plain Layout
22472 \begin_layout Subsection
22474 \begin_inset Index idx
22477 \begin_layout Plain Layout
22478 Table Customization ! Dashed Lines
22486 \begin_layout Standard
22490 \begin_layout Plain Layout
22500 \begin_inset Note Note
22503 \begin_layout Plain Layout
22504 The following section will only be displayed when the \SpecialChar LaTeX
22517 \begin_layout Standard
22518 \begin_inset Float table
22524 \begin_layout Plain Layout
22525 \begin_inset Caption Standard
22527 \begin_layout Plain Layout
22528 \begin_inset CommandInset label
22530 name "tab:Table-with-dashed"
22534 Table with dashed lines
22542 \begin_layout Plain Layout
22544 \begin_inset Tabular
22545 <lyxtabular version="3" rows="5" columns="5">
22546 <features tabularvalignment="middle">
22547 <column alignment="center" valignment="top">
22548 <column alignment="center" valignment="top">
22549 <column alignment="center" valignment="top" special=":c">
22550 <column alignment="center" valignment="top">
22551 <column alignment="center" valignment="top">
22553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22556 \begin_layout Plain Layout
22562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22565 \begin_layout Plain Layout
22571 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22574 \begin_layout Plain Layout
22580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22583 \begin_layout Plain Layout
22589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22592 \begin_layout Plain Layout
22600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22603 \begin_layout Plain Layout
22609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22612 \begin_layout Plain Layout
22618 <cell alignment="center" valignment="top" topline="true" usebox="none">
22621 \begin_layout Plain Layout
22627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22630 \begin_layout Plain Layout
22636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22639 \begin_layout Plain Layout
22647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22650 \begin_layout Plain Layout
22654 \begin_layout Plain Layout
22668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22671 \begin_layout Plain Layout
22677 <cell alignment="center" valignment="top" usebox="none">
22680 \begin_layout Plain Layout
22686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22689 \begin_layout Plain Layout
22695 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22698 \begin_layout Plain Layout
22706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22709 \begin_layout Plain Layout
22713 \begin_layout Plain Layout
22727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22730 \begin_layout Plain Layout
22736 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22739 \begin_layout Plain Layout
22745 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22748 \begin_layout Plain Layout
22754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22757 \begin_layout Plain Layout
22765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22768 \begin_layout Plain Layout
22774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22777 \begin_layout Plain Layout
22783 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22786 \begin_layout Plain Layout
22792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22795 \begin_layout Plain Layout
22801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22804 \begin_layout Plain Layout
22823 \begin_layout Standard
22825 does not natively support dashed lines, so you have to use \SpecialChar TeX
22827 As a prerequisite the \SpecialChar LaTeX
22833 \begin_inset Index idx
22836 \begin_layout Plain Layout
22838 -packages ! arydshln
22843 must be loaded in the document preamble with the command
22846 \begin_layout Standard
22851 usepackage{arydshln}
22854 \begin_layout Standard
22855 To make a vertical line dashed, enter the colon
22856 \begin_inset Quotes eld
22860 \begin_inset Quotes erd
22863 together with the character for the horizontal alignment as \SpecialChar LaTeX
22865 the table cell dialog.
22868 \begin_layout Standard
22869 For a horizontal dashed line add the command
22872 \begin_layout Standard
22880 \begin_layout Standard
22881 in \SpecialChar TeX
22882 Code as first element of the first cell in the table row.
22885 \begin_layout Standard
22886 For dashed multicolumn lines use the command
22889 \begin_layout Standard
22894 cdashline{line number
22899 \begin_layout Standard
22900 in \SpecialChar TeX
22901 Code as the first element of the first cell in the table row.
22902 If you have for example a multicolumn spanning columns 2 to 4 and you want
22903 to have a dashed line above, add the command
22906 \begin_layout Standard
22914 \begin_layout Standard
22915 as the first element of the first cell in the row of the multicolumn.
22918 \begin_layout Standard
22919 \begin_inset VSpace bigskip
22925 \begin_layout Standard
22927 \begin_inset space ~
22931 \begin_inset CommandInset ref
22933 reference "tab:Table-with-dashed"
22938 \begin_inset Quotes eld
22946 \begin_inset Quotes erd
22949 as \SpecialChar LaTeX
22950 argument of the third column.
22951 The \SpecialChar TeX
22958 was inserted in the first cell of the third row and the \SpecialChar TeX
22960 \begin_inset Newline newline
22969 was inserted in the first cell of the fourth row.
22972 \begin_layout Standard
22973 \begin_inset VSpace bigskip
22979 \begin_layout Standard
22980 Tables with dashed lines can also be colored as shown by Table
22981 \begin_inset space ~
22985 \begin_inset CommandInset ref
22987 reference "tab:Colored-table-with"
22994 \begin_layout Standard
22998 \begin_layout Plain Layout
23004 arrayrulewidth}{1pt}
23010 \begin_inset Note Note
23013 \begin_layout Plain Layout
23014 thicker lines for better visualization of the line color
23022 \begin_layout Standard
23026 \begin_layout Plain Layout
23030 dashgapcolor{green}
23036 \begin_inset Note Note
23039 \begin_layout Plain Layout
23040 color gaps between dashes green
23048 \begin_layout Standard
23052 \begin_layout Plain Layout
23063 \begin_layout Plain Layout
23072 \begin_layout Plain Layout
23076 arrayrulecolor{red}
23080 arrayrulecolor{black}}
23086 \begin_inset Note Note
23089 \begin_layout Plain Layout
23090 color horizontal, dashed lines red
23098 \begin_layout Standard
23102 \begin_layout Plain Layout
23113 \begin_layout Plain Layout
23122 \begin_layout Plain Layout
23126 arrayrulecolor{yellow}
23130 arrayrulecolor{black}}
23136 \begin_inset Note Note
23139 \begin_layout Plain Layout
23140 color partial horizontal, dashed lines yellow
23148 \begin_layout Standard
23149 \begin_inset Float table
23155 \begin_layout Plain Layout
23156 \begin_inset Caption Standard
23158 \begin_layout Plain Layout
23159 \begin_inset CommandInset label
23161 name "tab:Colored-table-with"
23165 Colored table with dashed lines
23173 \begin_layout Plain Layout
23175 \begin_inset Tabular
23176 <lyxtabular version="3" rows="5" columns="5">
23177 <features tabularvalignment="middle">
23178 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23179 <column alignment="center" valignment="top" width="0pt">
23180 <column alignment="center" valignment="top" width="0pt" special=":c">
23181 <column alignment="center" valignment="top">
23182 <column alignment="center" valignment="top">
23184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23187 \begin_layout Plain Layout
23193 <cell alignment="center" valignment="top" topline="true" usebox="none">
23196 \begin_layout Plain Layout
23202 <cell alignment="center" valignment="top" topline="true" usebox="none">
23205 \begin_layout Plain Layout
23211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23214 \begin_layout Plain Layout
23220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23223 \begin_layout Plain Layout
23231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23234 \begin_layout Plain Layout
23240 <cell alignment="center" valignment="top" topline="true" usebox="none">
23243 \begin_layout Plain Layout
23249 <cell alignment="center" valignment="top" topline="true" usebox="none">
23252 \begin_layout Plain Layout
23258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23261 \begin_layout Plain Layout
23267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23270 \begin_layout Plain Layout
23278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23281 \begin_layout Plain Layout
23285 \begin_layout Plain Layout
23298 \begin_layout Plain Layout
23312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23315 \begin_layout Plain Layout
23321 <cell alignment="center" valignment="top" usebox="none">
23324 \begin_layout Plain Layout
23330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23333 \begin_layout Plain Layout
23339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23342 \begin_layout Plain Layout
23350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23353 \begin_layout Plain Layout
23357 \begin_layout Plain Layout
23371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23374 \begin_layout Plain Layout
23380 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23383 \begin_layout Plain Layout
23389 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23392 \begin_layout Plain Layout
23398 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23401 \begin_layout Plain Layout
23409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23412 \begin_layout Plain Layout
23418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23421 \begin_layout Plain Layout
23427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23430 \begin_layout Plain Layout
23436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23439 \begin_layout Plain Layout
23445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23448 \begin_layout Plain Layout
23452 \begin_layout Plain Layout
23479 \begin_layout Standard
23483 \begin_layout Plain Layout
23497 \begin_inset Note Note
23500 \begin_layout Plain Layout
23509 \begin_layout Standard
23513 \begin_layout Plain Layout
23527 \begin_inset Note Note
23530 \begin_layout Plain Layout
23539 \begin_layout Standard
23543 \begin_layout Plain Layout
23553 \begin_inset Note Note
23556 \begin_layout Plain Layout
23565 \begin_layout Standard
23569 \begin_layout Plain Layout
23575 arrayrulewidth}{0.4pt}
23581 \begin_inset Note Note
23584 \begin_layout Plain Layout
23593 \begin_layout Standard
23594 The coloring of lines, columns and lines works as decribed in section
23595 \begin_inset space ~
23599 \begin_inset CommandInset ref
23601 reference "sec:Colored-Tables"
23606 Coloring horizontal lines works analogically as described there as well,
23607 one only needs to replace in the commands
23631 ; so one uses the command
23634 \begin_layout Standard
23644 \begin_inset Newline newline
23652 \begin_inset Newline newline
23656 \begin_inset Phantom HPhantom
23659 \begin_layout Plain Layout
23660 \begin_inset space ~
23670 arrayrulecolor{red}
23674 arrayrulecolor{black}}
23677 \begin_layout Standard
23687 \begin_layout Standard
23697 \begin_inset Newline newline
23705 \begin_inset Newline newline
23709 \begin_inset Phantom HPhantom
23712 \begin_layout Plain Layout
23713 \begin_inset space ~
23723 arrayrulecolor{red}
23727 arrayrulecolor{black}}
23730 \begin_layout Standard
23731 To get back the black line color, one needs to insert the following commands
23732 as \SpecialChar TeX
23733 Code behind the table:
23736 \begin_layout Standard
23744 \begin_layout Standard
23756 \begin_layout Standard
23764 \begin_layout Standard
23776 \begin_layout Standard
23777 To color the gaps between the dashes the command
23780 \begin_layout Standard
23785 dashgapcolor{color}
23788 \begin_layout Standard
23789 can be used in front of a table as \SpecialChar TeX
23791 color is hereby the name of a defined color.
23795 \begin_layout Standard
23803 \begin_layout Standard
23804 unsets the changes made by
23813 \begin_layout Standard
23814 \begin_inset Note Greyedout
23817 \begin_layout Plain Layout
23823 : If there are multiple commands in a cell, the command of
23827 needs to be the first one in the cell.
23833 \begin_inset space ~
23837 \begin_inset CommandInset ref
23839 reference "tab:Colored-table-with"
23863 \begin_layout Standard
23864 \begin_inset Note Greyedout
23867 \begin_layout Plain Layout
23873 The \SpecialChar LaTeX
23878 must be loaded in the document preamble before the \SpecialChar LaTeX
23884 \begin_inset Index idx
23887 \begin_layout Plain Layout
23889 -packages ! colortbl
23902 \begin_layout Standard
23906 \begin_layout Plain Layout
23916 \begin_inset Note Note
23919 \begin_layout Plain Layout
23920 The following will be displayed when the \SpecialChar LaTeX
23933 \begin_layout Standard
23934 You need to install the package
23938 to see the content of this section in the output.
23941 \begin_layout Standard
23945 \begin_layout Plain Layout
23957 \begin_layout Standard
23958 For more information about dashed lines see the documentation of
23963 \begin_inset CommandInset citation
23972 \begin_layout Chapter
23974 \begin_inset CommandInset label
23981 \begin_inset Index idx
23984 \begin_layout Plain Layout
23993 \begin_layout Section
23995 \begin_inset CommandInset label
23997 name "sec:FloatIntroduction"
24002 \begin_inset Index idx
24005 \begin_layout Plain Layout
24006 Floats ! Introduction
24014 \begin_layout Standard
24015 A float is a block of text associated with some sort of label, which doesn't
24016 have a fixed location.
24018 \begin_inset Quotes eld
24022 \begin_inset Quotes erd
24025 forward or backward a page or two, to wherever it fits best.
24033 \begin_inset space ~
24038 are also floats because they can float to the next page when there are
24039 too many notes on the page.
24042 \begin_layout Standard
24043 Floats allow a high quality layout.
24044 Images and tables can be spread evenly among the pages to avoid white space
24045 and pages without text.
24046 As the floating often destroys the context between the text and the image/table
24047 , every float can be referenced in the text.
24048 Floats are therefore numbered.
24049 Referencing is described in section
24050 \begin_inset space ~
24054 \begin_inset CommandInset ref
24056 reference "sec:Referencing-Floats"
24063 \begin_layout Standard
24064 To insert a float, use the menu
24066 Insert\SpecialChar menuseparator
24072 arg "float-insert figure"
24078 arg "float-insert table"
24086 inset, a box with a label.
24087 The label will automatically be translated to the document language in
24089 After the label you can insert the caption text.
24090 The image or table is inserted above or below the caption in a separate
24091 paragraph within the float.
24092 More about the caption placement is contained in section
24093 \begin_inset space ~
24097 \begin_inset CommandInset ref
24099 reference "sec:Caption-Placement"
24104 To keep your \SpecialChar LyX
24105 document readable, you can open and close the float box by
24106 left-clicking on the box label.
24107 A closed float box looks like this:
24108 \begin_inset Graphics
24109 filename clipart/floatQt4.png
24111 scaleBeforeRotation
24115 – a gray button with a red label.
24118 \begin_layout Standard
24119 It is recommended that you insert floats as separate standard paragraphs
24120 to avoid possible \SpecialChar LaTeX
24121 -errors that can occur when the surrounding text is specially
24125 \begin_layout Standard
24126 Existing figures or tables can be put into a float by highlighting them
24127 and then pressing the corresponding toolbar button for a new float.
24130 \begin_layout Section
24134 \begin_layout Standard
24135 Besides figure and table floats that are described in sections
24136 \begin_inset space ~
24140 \begin_inset CommandInset ref
24142 reference "sec:Figure-Floats"
24147 \begin_inset CommandInset ref
24149 reference "sec:Table-Floats"
24153 respectively, \SpecialChar LyX
24154 offers the float types
24163 The latter are explained in sec.
24164 \begin_inset space \thinspace{}
24168 \begin_inset CommandInset ref
24170 reference "sec:Wrap-Floats"
24177 \begin_layout Subsection
24179 \begin_inset Index idx
24182 \begin_layout Plain Layout
24183 Floats ! Algorithms
24191 \begin_layout Standard
24192 \begin_inset Float algorithm
24198 \begin_layout Plain Layout
24199 \begin_inset Caption Standard
24201 \begin_layout Plain Layout
24202 \begin_inset CommandInset label
24204 name "alg:Example-Algorithm-float"
24208 Example Algorithm float
24216 \begin_layout LyX-Code
24218 \begin_inset Newline newline
24221 Sum:= Sum + A(I); /*comment*/
24222 \begin_inset Newline newline
24226 \begin_inset VSpace -4mm
24237 \begin_layout Standard
24238 This float type is inserted with the menu
24240 Insert\SpecialChar menuseparator
24241 Float\SpecialChar menuseparator
24245 It is used for program codes and descriptions of algorithms and can be
24246 seen as an alternative to program code listings that are explained in chapter
24247 \begin_inset space ~
24251 \begin_inset CommandInset ref
24253 reference "cha:Program-Code-Listings"
24258 A possible environment for algorithms is the
24263 , described in \SpecialChar LyX
24270 \begin_inset space ~
24274 \begin_inset CommandInset ref
24276 reference "alg:Example-Algorithm-float"
24280 is an example of an algorithm float where -4
24281 \begin_inset space \thinspace{}
24284 mm vertical space was added at the end of the float to have the bottom rule
24285 exactly below the last text line.
24288 \begin_layout Standard
24289 The float label is not automatically translated into the document language.
24290 If your document is not in English, you have to do this manually by adding
24291 the following line to the document preamble
24296 \begin_layout Standard
24301 floatname{algorithm}{your
24302 \begin_inset space ~
24308 \begin_layout Standard
24312 \begin_inset space ~
24318 \begin_inset Quotes eld
24326 \begin_inset Quotes erd
24332 \begin_layout Standard
24333 To insert the list of algorithms you can use the menu
24335 Insert\SpecialChar menuseparator
24337 \begin_inset space \thinspace{}
24341 \begin_inset space \thinspace{}
24344 TOC\SpecialChar menuseparator
24347 when your document has the same language as \SpecialChar LyX
24349 In other cases use this command in \SpecialChar TeX
24353 \begin_layout Standard
24358 listof{algorithm}{your
24359 \begin_inset space ~
24365 \begin_layout Standard
24369 \begin_inset space ~
24375 \begin_inset Quotes eld
24383 \begin_inset Quotes erd
24389 \begin_layout Standard
24390 Algorithm floats are not by default numbered in the scheme
24391 \begin_inset Quotes eld
24395 \begin_inset Quotes erd
24398 as is the case for table and figure floats in many document-classes.
24399 To number algorithm floats in the same scheme, add this command to your
24403 \begin_layout Standard
24408 numberwithin{algorithm}{chapter}
24411 \begin_layout Standard
24412 To be able to use the command
24421 \begin_inset space ~
24426 in the document settings the option
24429 \begin_inset space ~
24433 \begin_inset space ~
24437 \begin_inset space ~
24445 \begin_layout Section
24447 \begin_inset Index idx
24450 \begin_layout Plain Layout
24459 \begin_layout Standard
24460 Floats are usually numbered either independently from the sections the floats
24461 are in, or in the scheme
24462 \begin_inset Quotes eld
24466 \begin_inset Quotes erd
24470 \begin_inset Quotes eld
24474 \begin_inset Quotes erd
24478 This depends on the document class used.
24481 \begin_layout Standard
24482 To change section-independent numbering, you can use this command in the
24486 \begin_layout Standard
24498 \begin_layout Standard
24505 is the command that prints the table number.
24506 For figure floats, the command would be
24519 in the command above prints the table number as a small roman number.
24522 \begin_layout Standard
24523 To change the numbering scheme for example to
24524 \begin_inset Quotes eld
24528 \begin_inset Quotes erd
24531 , use this command in the preamble:
24534 \begin_layout Standard
24539 numberwithin{table}{subsection}
24542 \begin_layout Standard
24543 To be able to use the command
24552 \begin_inset space ~
24557 in the document settings the option
24560 \begin_inset space ~
24564 \begin_inset space ~
24568 \begin_inset space ~
24576 \begin_layout Standard
24577 Please also have a look at section
24578 \begin_inset space ~
24582 \begin_inset CommandInset ref
24584 reference "subsec:Footnote-Numbering"
24588 for the details and important notes about the numbering commands.
24591 \begin_layout Section
24593 \begin_inset CommandInset label
24595 name "sec:Referencing-Floats"
24600 \begin_inset Index idx
24603 \begin_layout Plain Layout
24604 Floats ! References
24610 \begin_inset Index idx
24613 \begin_layout Plain Layout
24614 References ! to Floats
24622 \begin_layout Standard
24623 To reference a float, insert a label into its caption using the menu
24625 Insert\SpecialChar menuseparator
24628 or the toolbar button
24635 A grey label box like this one:
24636 \begin_inset Graphics
24637 filename clipart/labelQt4.png
24639 scaleBeforeRotation
24643 will be inserted and the label window pops up asking for the label text.
24645 offers as text the first words of the caption with a prefix.
24646 The prefix depends on the float type, e.
24647 \begin_inset space \thinspace{}
24651 \begin_inset space \space{}
24654 for figure floats the prefix will be "
24661 \begin_layout Standard
24662 The label is used as anchor and name for the reference.
24663 You can refer to the label using the menu
24665 Insert\SpecialChar menuseparator
24668 or the toolbar button
24671 arg "dialog-show-new-inset ref"
24675 The cross-reference window appears showing all labels of the document.
24676 If you have multiple \SpecialChar LyX
24677 documents opened, choose the one you are working
24678 on from the drop-list at the top of the dialog.
24679 You can now sort the labels alphabetically and then choose one.
24680 A grey cross-reference box like this one:
24681 \begin_inset Graphics
24682 filename clipart/referenceQt4.png
24684 scaleBeforeRotation
24689 At the position of the cross-reference box the float number will appear
24693 \begin_layout Standard
24694 It is recommended that you use a protected space between the cross-reference
24695 name and its number to avoid line breaks between them.
24696 If a cross-reference refers to a non-existing label, you will see two question
24697 marks in the output instead of the reference.
24700 \begin_layout Standard
24701 You can change labels at any time by clicking on the label box.
24702 References to the changed label will automatically update their links to
24703 the new label text.
24706 \begin_layout Standard
24710 \begin_inset space ~
24714 \begin_inset space ~
24719 in the cross-reference window sets the cursor before the referred label.
24720 The button text changes then to Go
24721 \begin_inset space ~
24724 Back and you can use it to set the cursor back to the cross-reference.
24727 \begin_layout Subsection
24728 Cross-Reference Formats
24729 \begin_inset CommandInset label
24731 name "subsec:Cross-Reference-Formats"
24736 \begin_inset Index idx
24739 \begin_layout Plain Layout
24740 References ! Formats
24748 \begin_layout Standard
24749 There are six varieties of cross-references:
24752 \begin_layout Description
24753 <reference>: prints the float number, this is the default:
24754 \begin_inset CommandInset ref
24756 reference "fig:Two-distorted-images"
24763 \begin_layout Description
24764 (<reference>): prints the float number within two parentheses, this is the
24765 style normally used to reference formulas, especially when the reference
24767 \begin_inset Quotes eld
24771 \begin_inset Quotes erd
24775 \begin_inset CommandInset ref
24784 \begin_layout Description
24785 <page>: prints the page number: Page
24786 \begin_inset space ~
24790 \begin_inset CommandInset ref
24791 LatexCommand pageref
24792 reference "fig:Two-distorted-images"
24799 \begin_layout Description
24801 \begin_inset space ~
24805 \begin_inset space ~
24808 <page>: prints the text "on page" and the page number:
24809 \begin_inset CommandInset ref
24810 LatexCommand vpageref
24811 reference "fig:Two-distorted-images"
24818 \begin_layout Description
24820 \begin_inset space ~
24824 \begin_inset space ~
24828 \begin_inset space ~
24831 <page>: prints the float number, the text "on page", and the page number:
24833 \begin_inset CommandInset ref
24835 reference "fig:Two-distorted-images"
24842 \begin_layout Description
24844 \begin_inset space ~
24847 reference: prints a self-defined cross-reference format.
24848 \begin_inset Newline newline
24852 \begin_inset Note Greyedout
24855 \begin_layout Plain Layout
24860 This feature is only available when you have the \SpecialChar LaTeX
24870 \begin_inset Index idx
24873 \begin_layout Plain Layout
24875 -packages ! prettyref
24881 \begin_inset Index idx
24884 \begin_layout Plain Layout
24886 -packages ! refstyle
24897 \begin_inset Newline newline
24900 You can select which \SpecialChar LaTeX
24901 -package should be used for this feature by setting
24904 Use refstyle (not prettyref) for cross-references
24908 Document\SpecialChar menuseparator
24909 Settings\SpecialChar menuseparator
24913 The format is specified by adding the command
24925 (refstyle) to the preamble of the document.
24926 For example redefining all references to figures (which have the label
24928 \begin_inset Quotes eld
24936 \begin_inset Quotes erd
24939 ) can be done with this command
24940 \begin_inset Newline newline
24947 newref{fig}{refcmd={Image on page
24952 \begin_inset Newline newline
24955 For more information about the format, have a look at the package documentations
24957 \begin_inset CommandInset citation
24959 key "prettyref,refstyle"
24966 \begin_layout Description
24968 \begin_inset space ~
24971 reference: prints the caption of the reference:
24972 \begin_inset CommandInset ref
24973 LatexCommand nameref
24974 reference "fig:Two-distorted-images"
24981 \begin_layout Standard
24986 will not print the page number if the label is on the previous, the same,
24989 \begin_inset space \thinspace{}
24993 \begin_inset space \space{}
24997 \begin_inset Quotes eld
25005 \begin_inset Quotes erd
25011 <reference> on page <page>
25013 will not print anything about the page if the label is on the same page.
25016 \begin_layout Standard
25017 The number and current page of the part of the document referred to in the
25018 output is automatically calculated by \SpecialChar LaTeX
25020 The varieties are adjusted in the field
25024 of the cross-reference window that appears when you click on the cross-referenc
25028 \begin_layout Standard
25029 \begin_inset Note Greyedout
25032 \begin_layout Plain Layout
25037 It is recommended to use the \SpecialChar LaTeX
25043 \begin_inset Index idx
25046 \begin_layout Plain Layout
25048 -packages ! refstyle
25058 \begin_inset Index idx
25061 \begin_layout Plain Layout
25063 -packages ! prettyref
25068 does not know all of \SpecialChar LyX
25069 's possible label shortcuts
25073 \begin_layout Plain Layout
25074 \begin_inset Quotes eld
25078 \begin_inset Quotes erd
25081 is for example \SpecialChar LyX
25082 's shortcut for labels in figure captions.
25087 and is not internationalized.
25095 \begin_layout Subsection
25096 Automatic Reference Naming
25097 \begin_inset Index idx
25100 \begin_layout Plain Layout
25101 References ! Automatic Reference Naming
25109 \begin_layout Standard
25110 The \SpecialChar LaTeX
25116 \begin_inset Index idx
25119 \begin_layout Plain Layout
25121 -packages ! hyperref
25126 , that is enabled in the
25134 dialog, provides a very useful feature that cross-references automatically
25135 include the name of the referenced floats (or text parts like
25140 So you will save having to write e.
25141 \begin_inset space \thinspace{}
25145 \begin_inset space \space{}
25149 \begin_inset Quotes eld
25153 \begin_inset Quotes erd
25156 before every reference to a figure.
25157 To use this feature, enable
25161 and insert this line to the \SpecialChar LaTeX
25165 \begin_layout Standard
25181 \begin_layout Standard
25182 When you prefer other reference names than the default ones, for example
25183 you want instead of
25184 \begin_inset Quotes eld
25188 \begin_inset Quotes erd
25192 \begin_inset Quotes eld
25196 \begin_inset space \thinspace{}
25200 \begin_inset Quotes eld
25203 , you can redefine the name by inserting this in the preamble:
25206 \begin_layout Standard
25217 sectionautorefname}
25218 \begin_inset Newline newline
25222 \begin_inset Phantom HPhantom
25225 \begin_layout Plain Layout
25228 \begin_inset space ~
25241 \begin_layout Standard
25242 When you are using another document language than English, replace
25243 \begin_inset Newline newline
25258 , where *** is the name of the language used.
25261 \begin_layout Standard
25262 To get automatic names, but not for certain reference types, for example
25263 not for equations, use this preamble code:
25266 \begin_layout Standard
25277 equationautorefname}[1]{}}
25280 \begin_layout Standard
25281 More about this topic can be found in
25286 \begin_inset CommandInset citation
25295 \begin_layout Standard
25296 \begin_inset Note Greyedout
25299 \begin_layout Plain Layout
25304 Automatic reference naming cannot be used when you use cross-references
25308 \begin_inset space ~
25313 style, as described in section
25314 \begin_inset space ~
25318 \begin_inset CommandInset ref
25320 reference "subsec:Cross-Reference-Formats"
25332 \begin_layout Standard
25337 manual is an example where automatic reference naming is used.
25340 \begin_layout Subsection
25342 \begin_inset CommandInset label
25344 name "subsec:Reference-Position"
25349 \begin_inset Index idx
25352 \begin_layout Plain Layout
25353 References ! Reference Position
25361 \begin_layout Standard
25367 \begin_inset Index idx
25370 \begin_layout Plain Layout
25372 -packages ! hyperref
25385 dialog to link cross-references in the output, you will see that clicking
25386 on an image float reference jumps to the image label.
25387 The caption will be the first text part on the screen, so that you cannot
25388 see the image without scrolling.
25389 This is because the reference link anchor is placed at the position of
25391 With the use of the package
25396 \begin_inset Index idx
25399 \begin_layout Plain Layout
25406 , which is part of the \SpecialChar LaTeX
25412 \begin_inset Index idx
25415 \begin_layout Plain Layout
25417 -packages ! oberdiek
25422 , the link anchor is placed at the beginning of a float.
25423 To use this feature for figure floats, load
25427 in the document preamble with the line
25430 \begin_layout Standard
25435 usepackage[figure]{hypcap}
25438 \begin_layout Standard
25443 for all float types but this is not recommended for stability reasons.
25444 For more information, have a look at
25449 \begin_inset CommandInset citation
25458 \begin_layout Standard
25459 \begin_inset Note Greyedout
25462 \begin_layout Plain Layout
25471 has no effect on references to subfigures.
25479 \begin_layout Section
25481 \begin_inset CommandInset label
25483 name "sec:Float-Placement"
25488 \begin_inset Index idx
25491 \begin_layout Plain Layout
25500 \begin_layout Standard
25501 Right-clicking on a float-box and clicking on
25505 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25507 positioning the float.
25508 \begin_inset Newline newline
25514 \begin_inset space ~
25519 is only useful for two-column documents: If you select it, the float will
25520 span both columns on the page instead of being confined to just one.
25521 \begin_inset Newline newline
25527 \begin_inset space ~
25532 is used to rotate floats, see section
25533 \begin_inset CommandInset ref
25535 reference "sec:Rotated-Floats"
25542 \begin_layout Standard
25543 You can use one or more of the following options in the float dialog to
25544 set the placement for a particular float when you uncheck the option
25547 \begin_inset space ~
25551 \begin_inset space ~
25559 \begin_layout Description
25561 \begin_inset space ~
25565 \begin_inset space ~
25568 possible try to place the float on the position where it has been inserted
25571 \begin_layout Description
25573 \begin_inset space ~
25577 \begin_inset space ~
25580 page try to place the float at the top of the current page
25583 \begin_layout Description
25585 \begin_inset space ~
25589 \begin_inset space ~
25592 page try to place the float at the bottom of the current page
25595 \begin_layout Description
25597 \begin_inset space ~
25601 \begin_inset space ~
25604 floats try to place the float on its own page
25607 \begin_layout Standard
25608 The order of the above option is
25612 used by \SpecialChar LaTeX
25614 That means, if you use the default placement, \SpecialChar LaTeX
25618 \begin_inset space ~
25622 \begin_inset space ~
25630 \begin_inset space ~
25634 \begin_inset space ~
25639 , and then the others.
25640 If you do not use the default, \SpecialChar LaTeX
25641 will try only the checked options but in
25644 \begin_inset space ~
25647 placements is possible the procedure is internally repeated trying to put
25648 the float on the following page.
25651 \begin_layout Standard
25652 By default, each option has its own rules:
25655 \begin_layout Labeling
25656 \labelwidthstring 00.00.0000
25660 \begin_inset space ~
25664 \begin_inset space ~
25669 only floats occupying less than 70
25670 \begin_inset space \thinspace{}
25673 % of the page can be placed at the top of a page (
25682 \begin_layout Labeling
25683 \labelwidthstring 00.00.0000
25687 \begin_inset space ~
25691 \begin_inset space ~
25696 : only floats occupying less than 30
25697 \begin_inset space \thinspace{}
25700 % of the page can be placed at the bottom of a page.
25710 \begin_layout Labeling
25711 \labelwidthstring 00.00.0000
25715 \begin_inset space ~
25719 \begin_inset space ~
25724 : only if more than 50
25725 \begin_inset space \thinspace{}
25728 % of the page is occupied by floats, several floats can be set together
25739 \begin_layout Standard
25740 If you don't like these rules, you can ignore them by using the additional
25744 \begin_inset space ~
25749 \begin_inset space ~
25755 \begin_inset Newline newline
25758 You can also redefine the rules with \SpecialChar LaTeX
25759 -commands that are given in parentheses
25760 after the rules description above.
25761 To increase for example the often too small default of the bottom-rule
25763 \begin_inset space \thinspace{}
25766 % of the page, add this line to your document preamble:
25769 \begin_layout Standard
25776 bottomfraction}{0.5}
25779 \begin_layout Standard
25780 Sometimes you might need, under all circumstances, a float to be placed
25781 exactly at the position where it is inserted.
25782 For this case you can use the option
25785 \begin_inset space ~
25791 Use this option very rarely and only if the document is almost ready to
25792 be printed, because the float is then no longer able to
25793 \begin_inset Quotes eld
25797 \begin_inset Quotes erd
25800 when you change your document and this will often destroy the page layout.
25803 \begin_layout Standard
25804 There are no placement options for text wrap floats, because they are always
25805 surrounded by the text of a certain paragraph.
25806 \begin_inset VSpace bigskip
25812 \begin_layout Standard
25813 Sometimes you have the problem that a float is placed at the top of a page
25814 while its corresponding section starts at the middle of the page, so that
25815 the reader could think the float is part of the previous section.
25816 To avoid this the \SpecialChar LaTeX
25824 It suppresses a given float placement for the page where it is inserted
25825 and can therefore be used to avoid floats being set before a section starts.
25826 To get this, add these commands to your document preamble:
25829 \begin_layout Standard
25839 \begin_inset Newline newline
25853 \begin_layout Standard
25854 You can define the same for all section headings, like chapters and subsections.
25855 This definition is not recommended to be used for small text parts like
25856 subsubsections because \SpecialChar LaTeX
25857 may then have problems finding a suitable placement.
25860 \begin_layout Standard
25861 \begin_inset VSpace bigskip
25864 In some cases it is required to have all figures/tables at the end of the
25866 For this purpose the \SpecialChar LaTeX
25872 \begin_inset Index idx
25875 \begin_layout Plain Layout
25877 -packages ! endfloat
25883 It puts all figure and table floats at the end of the document into their
25885 At the original float position a text hint like
25886 \begin_inset Quotes eld
25892 \begin_inset space ~
25898 \begin_inset Quotes erd
25902 The endfloat-package is loaded in the preamble with the line
25905 \begin_layout Standard
25910 usepackage[options]{endfloat}
25913 \begin_layout Standard
25914 There are various package options to format the created figure/table sections.
25915 For more information we refer you to the
25920 \begin_inset CommandInset citation
25927 \begin_inset Newline newline
25931 \begin_inset Note Greyedout
25934 \begin_layout Plain Layout
25939 doesn't provide an automatic translation for the text hint, you have to
25940 do this manually, see section
25941 \begin_inset space ~
25945 \begin_inset CommandInset citation
25957 \begin_inset Newline newline
25961 \begin_inset Note Greyedout
25964 \begin_layout Plain Layout
25969 There is currently a bug in
25973 when the caption contains a German
25974 \begin_inset Quotes eld
25978 \begin_inset Quotes erd
25982 Use in this case the command
25983 \begin_inset Quotes eld
25993 \begin_inset Quotes erd
25996 in \SpecialChar TeX
25998 \begin_inset Quotes eld
26002 \begin_inset Quotes erd
26013 \begin_layout Standard
26014 \begin_inset VSpace bigskip
26017 For more details about float placements, have a look at \SpecialChar LaTeX
26019 \begin_inset CommandInset citation
26021 key "latexcompanion,latexguide,latexbook"
26028 \begin_layout Section
26030 \begin_inset CommandInset label
26032 name "sec:Rotated-Floats"
26037 \begin_inset Index idx
26040 \begin_layout Plain Layout
26049 \begin_layout Standard
26050 Especially for wide tables you might have floats rotated.
26051 To rotate a whole float including the caption, right-click on the float-box
26055 \begin_inset space ~
26063 \begin_layout Standard
26064 Rotated floats are always placed on a page of their own (or column of their
26065 own; in case you have a multi-column document).
26066 You can let them span several columns using the float settings option
26069 \begin_inset space ~
26075 Floats are rotated so that you can read them from the outside margin.
26076 To force a certain rotation direction for all pages, you can add either
26085 to the document class options.
26088 \begin_layout Standard
26089 Referencing rotated floats is the same as for normal floats, the caption
26090 format is also the same: Table
26091 \begin_inset space ~
26095 \begin_inset CommandInset ref
26097 reference "tab:Rotated-table"
26101 is an example of a rotated table float.
26104 \begin_layout Standard
26105 \begin_inset Note Greyedout
26108 \begin_layout Plain Layout
26113 Not all DVI-viewers are able to display rotated floats.
26121 \begin_layout Standard
26122 \begin_inset Float table
26127 \begin_layout Plain Layout
26128 \begin_inset Caption Standard
26130 \begin_layout Plain Layout
26131 \begin_inset CommandInset label
26133 name "tab:Rotated-table"
26145 \begin_layout Plain Layout
26147 \begin_inset Tabular
26148 <lyxtabular version="3" rows="1" columns="5">
26149 <features tabularvalignment="middle">
26150 <column alignment="center" valignment="top">
26151 <column alignment="center" valignment="top">
26152 <column alignment="center" valignment="top">
26153 <column alignment="center" valignment="top">
26154 <column alignment="center" valignment="top">
26156 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26159 \begin_layout Plain Layout
26165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26168 \begin_layout Plain Layout
26174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26177 \begin_layout Plain Layout
26183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26186 \begin_layout Plain Layout
26192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26195 \begin_layout Plain Layout
26214 \begin_layout Section
26216 \begin_inset Index idx
26219 \begin_layout Plain Layout
26228 \begin_layout Standard
26229 Subfloats are for example used when a figure consists of several images.
26230 They are created by inserting a float into an existing float.
26231 The placement of the subfloats can be controlled in the same way as for
26232 paragraphs as shown in table
26233 \begin_inset space ~
26237 \begin_inset CommandInset ref
26239 reference "tab:Two-subtables-side"
26244 \begin_inset CommandInset ref
26246 reference "tab:Two-subtables-upon"
26253 \begin_layout Standard
26254 Referencing subfloats works as for normal floats: Table
26255 \begin_inset space ~
26259 \begin_inset CommandInset ref
26261 reference "tab:This-is-subtable-a"
26266 \begin_inset CommandInset ref
26268 reference "tab:This-is-subtable-b"
26272 are subtables of table
26273 \begin_inset space ~
26277 \begin_inset CommandInset ref
26279 reference "tab:Two-subtables-side"
26286 \begin_layout Standard
26287 \begin_inset Float table
26292 \begin_layout Plain Layout
26293 \begin_inset Caption Standard
26295 \begin_layout Plain Layout
26296 \begin_inset CommandInset label
26298 name "tab:Two-subtables-side"
26302 Two subtables placed side by side.
26310 \begin_layout Plain Layout
26312 \begin_inset space \hfill{}
26316 \begin_inset Float table
26321 \begin_layout Plain Layout
26322 \begin_inset Caption Standard
26324 \begin_layout Plain Layout
26325 \begin_inset CommandInset label
26327 name "tab:This-is-subtable-a"
26331 This is subtable a.
26339 \begin_layout Plain Layout
26341 \begin_inset Tabular
26342 <lyxtabular version="3" rows="1" columns="5">
26343 <features tabularvalignment="middle">
26344 <column alignment="center" valignment="top">
26345 <column alignment="center" valignment="top">
26346 <column alignment="center" valignment="top">
26347 <column alignment="center" valignment="top">
26348 <column alignment="center" valignment="top">
26350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26353 \begin_layout Plain Layout
26359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26362 \begin_layout Plain Layout
26368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26371 \begin_layout Plain Layout
26377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26380 \begin_layout Plain Layout
26386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26389 \begin_layout Plain Layout
26406 \begin_inset space \hfill{}
26410 \begin_inset Float table
26415 \begin_layout Plain Layout
26416 \begin_inset Caption Standard
26418 \begin_layout Plain Layout
26419 \begin_inset CommandInset label
26421 name "tab:This-is-subtable-b"
26425 This is subtable b.
26433 \begin_layout Plain Layout
26435 \begin_inset Tabular
26436 <lyxtabular version="3" rows="1" columns="5">
26437 <features tabularvalignment="middle">
26438 <column alignment="center" valignment="top">
26439 <column alignment="center" valignment="top">
26440 <column alignment="center" valignment="top">
26441 <column alignment="center" valignment="top">
26442 <column alignment="center" valignment="top">
26444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26447 \begin_layout Plain Layout
26453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26456 \begin_layout Plain Layout
26462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26465 \begin_layout Plain Layout
26471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26474 \begin_layout Plain Layout
26480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26483 \begin_layout Plain Layout
26500 \begin_inset space \hfill{}
26511 \begin_layout Standard
26512 \begin_inset Float table
26517 \begin_layout Plain Layout
26518 \begin_inset Caption Standard
26520 \begin_layout Plain Layout
26521 \begin_inset CommandInset label
26523 name "tab:Two-subtables-upon"
26527 Two subtables placed one above the other.
26528 (a) table with 4 cells, (b) table with 5 cells.
26536 \begin_layout Plain Layout
26538 \begin_inset Float table
26543 \begin_layout Plain Layout
26544 \begin_inset Caption Standard
26546 \begin_layout Plain Layout
26555 \begin_layout Plain Layout
26557 \begin_inset Tabular
26558 <lyxtabular version="3" rows="1" columns="4">
26559 <features tabularvalignment="middle">
26560 <column alignment="center" valignment="top">
26561 <column alignment="center" valignment="top">
26562 <column alignment="center" valignment="top">
26563 <column alignment="center" valignment="top">
26565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26568 \begin_layout Plain Layout
26574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26577 \begin_layout Plain Layout
26583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26586 \begin_layout Plain Layout
26592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26595 \begin_layout Plain Layout
26614 \begin_layout Plain Layout
26616 \begin_inset Float table
26621 \begin_layout Plain Layout
26622 \begin_inset Caption Standard
26624 \begin_layout Plain Layout
26633 \begin_layout Plain Layout
26635 \begin_inset Tabular
26636 <lyxtabular version="3" rows="1" columns="5">
26637 <features tabularvalignment="middle">
26638 <column alignment="center" valignment="top">
26639 <column alignment="center" valignment="top">
26640 <column alignment="center" valignment="top">
26641 <column alignment="center" valignment="top">
26642 <column alignment="center" valignment="top">
26644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26647 \begin_layout Plain Layout
26653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26656 \begin_layout Plain Layout
26662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26665 \begin_layout Plain Layout
26671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26674 \begin_layout Plain Layout
26680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26683 \begin_layout Plain Layout
26707 \begin_layout Section
26708 Floats Side by Side
26709 \begin_inset Index idx
26712 \begin_layout Plain Layout
26713 Floats ! Side by side
26721 \begin_layout Standard
26722 To place floats side by side, as in Figures
26723 \begin_inset space ~
26727 \begin_inset CommandInset ref
26729 reference "fig:Float-left"
26734 \begin_inset CommandInset ref
26736 reference "fig:Float-right"
26745 In it two minipage boxes are inserted.
26749 \begin_layout Plain Layout
26750 Minipages are explained in section
26751 \begin_inset space ~
26755 \begin_inset CommandInset ref
26757 reference "sec:Minipages"
26766 The width is set to 45
26767 \begin_inset space \thinspace{}
26771 \begin_inset space \thinspace{}
26774 column% and the box alignment to
26779 The minipage boxes contain the image and the caption in the same way as
26780 they are in a float.
26781 The only difference is that the image unit
26784 \begin_inset space ~
26788 \begin_inset space ~
26793 is now calculated according to the width of the minipage boxes.
26796 \begin_layout Standard
26797 \begin_inset Float figure
26802 \begin_layout Plain Layout
26803 \begin_inset Box Frameless
26813 height_special "totalheight"
26818 backgroundcolor "none"
26821 \begin_layout Plain Layout
26823 \begin_inset Graphics
26824 filename clipart/mobius.eps
26827 scaleBeforeRotation
26834 \begin_layout Plain Layout
26835 \begin_inset Caption Standard
26837 \begin_layout Plain Layout
26838 \begin_inset CommandInset label
26840 name "fig:Float-left"
26844 Float on the left side.
26855 \begin_inset space \hfill{}
26859 \begin_inset Box Frameless
26869 height_special "totalheight"
26874 backgroundcolor "none"
26877 \begin_layout Plain Layout
26879 \begin_inset Graphics
26880 filename clipart/platypus.eps
26883 scaleBeforeRotation
26890 \begin_layout Plain Layout
26891 \begin_inset Caption Standard
26893 \begin_layout Plain Layout
26894 \begin_inset CommandInset label
26896 name "fig:Float-right"
26900 Float on the right side.
26913 \begin_layout Plain Layout
26920 \change_inserted 2047637253 1447344411
26924 \begin_layout Standard
26926 \change_inserted 2047637253 1447344943
26927 Putting two floats side-by-side is made simpler using variable-width minipages
26929 \begin_inset space ~
26933 \begin_inset CommandInset ref
26935 reference "sec:Varwidth"
26940 Variable-width minipages adapt automatically to the width of the figures.
26941 They do not require an explicit width to be given, and they improve the
26942 horizontal alignment of the figures.
26945 examples/varwidth-floats-side-by-side.lyx
26947 gives examples of how to do this.
26952 \begin_layout Section
26954 \begin_inset Index idx
26957 \begin_layout Plain Layout
26958 Caption ! Formatting
26964 \begin_inset Index idx
26967 \begin_layout Plain Layout
26968 Floats ! Caption Formatting
26974 \begin_inset CommandInset label
26976 name "sec:Caption-Formatting"
26983 \begin_layout Standard
26988 environment is the default paragraph environment for
26993 On the \SpecialChar LyX
26994 screen captions appear as a label, e.
26995 \begin_inset space \thinspace{}
26999 \begin_inset space \space{}
27003 \begin_inset Quotes eld
27011 \begin_inset Quotes erd
27014 followed by the caption text.
27016 \begin_inset Quotes eld
27020 \begin_inset Quotes erd
27023 is the actual reference number.
27024 By default the label and the number are in the same font as the caption
27025 text and a colon follows the number to divide the label from the text.
27026 This caption format is suitable for many but not all documents.
27030 \begin_layout Standard
27031 To change the default caption format, load the \SpecialChar LaTeX
27037 \begin_inset Index idx
27040 \begin_layout Plain Layout
27042 -packages ! caption
27047 in the document preamble with this line:
27050 \begin_layout Standard
27055 usepackage[format definition]{caption}
27058 \begin_layout Standard
27059 To have for example the label and the number in sans-serif, bold font and
27060 the table captions always above the table as in this document, use the
27064 \begin_layout Standard
27069 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27072 \begin_layout Standard
27073 You can also define different caption formats for the different float types.
27074 In this case load the
27078 package without format specific options and define the different formats
27079 with the help of the command
27082 \begin_layout Standard
27087 captionsetup[float type]{format definition}
27090 \begin_layout Standard
27091 in the document preamble.
27092 For example the caption formats of Figure
27093 \begin_inset space ~
27097 \begin_inset CommandInset ref
27099 reference "fig:This-is-an-fig"
27104 \begin_inset space ~
27108 \begin_inset CommandInset ref
27110 reference "tab:This-is-an-tab"
27114 can be created using these commands in the document preamble:
27117 \begin_layout Standard
27122 usepackage[tableposition=top]{caption}
27125 \begin_inset Newline newline
27132 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27133 \begin_inset Newline newline
27137 \begin_inset Phantom HPhantom
27140 \begin_layout Plain Layout
27145 captionsetup[figure]{
27151 \begin_inset Newline newline
27156 captionsetup[table]{labelfont={bf,sf}}
27159 \begin_layout Standard
27160 \begin_inset Note Greyedout
27163 \begin_layout Plain Layout
27172 has no effect when a
27177 \begin_inset Index idx
27180 \begin_layout Plain Layout
27182 -packages ! KOMA-Script
27187 document class is used.
27188 In this case the document class option
27190 captions=tableheading
27200 \begin_layout Standard
27201 For more information about the package
27205 we refer to its documentation
27206 \begin_inset CommandInset citation
27215 \begin_layout Standard
27216 To change the label name from e.
27217 \begin_inset space \thinspace{}
27221 \begin_inset space \space{}
27225 \begin_inset Quotes eld
27229 \begin_inset Quotes erd
27233 \begin_inset Quotes eld
27237 \begin_inset Quotes erd
27240 use this preamble command:
27243 \begin_layout Standard
27250 fnum@figure}{Image~
27255 \begin_layout Standard
27262 inserts the figure number and
27265 \begin_inset Quotes eld
27271 \begin_inset Quotes erd
27274 creates a protected space.
27277 \begin_layout Standard
27278 \begin_inset VSpace bigskip
27286 \begin_inset Index idx
27289 \begin_layout Plain Layout
27291 -packages ! KOMA-Script
27298 article (KOMA-Script)
27306 letter (KOMA-Script)
27310 report (KOMA-Script)
27313 \begin_inset space \thinspace{}
27316 ), you can alternatively to the
27324 's built-in command
27331 For example, to have the caption label in bold, add this command to your
27335 \begin_layout Standard
27340 setkomafont{captionlabel}{
27345 \begin_layout Standard
27346 For more information about
27357 \begin_inset CommandInset citation
27366 \begin_layout Standard
27370 \begin_layout Plain Layout
27374 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27381 \begin_inset Note Note
27384 \begin_layout Plain Layout
27385 The caption format is changed only for this example.
27393 \begin_layout Standard
27394 \begin_inset Float figure
27400 \begin_layout Plain Layout
27402 \begin_inset Graphics
27403 filename clipart/mobius.eps
27406 scaleBeforeRotation
27413 \begin_layout Plain Layout
27414 \begin_inset Caption Standard
27416 \begin_layout Plain Layout
27417 \begin_inset CommandInset label
27419 name "fig:This-is-an-fig"
27423 This is an example figure caption that is longer than one line to show the
27424 different caption format.
27425 Here a self-defined caption format is used.
27438 \begin_layout Standard
27442 \begin_layout Plain Layout
27446 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27455 \begin_layout Standard
27456 \begin_inset Float table
27462 \begin_layout Plain Layout
27463 \begin_inset Caption Standard
27465 \begin_layout Plain Layout
27466 \begin_inset CommandInset label
27468 name "tab:This-is-an-tab"
27472 This is an example table caption that is longer than one line to show the
27473 different caption format.
27474 Here the standard caption format for tables in this document is used.
27482 \begin_layout Plain Layout
27484 \begin_inset Tabular
27485 <lyxtabular version="3" rows="1" columns="5">
27486 <features tabularvalignment="middle">
27487 <column alignment="center" valignment="top">
27488 <column alignment="center" valignment="top">
27489 <column alignment="center" valignment="top">
27490 <column alignment="center" valignment="top">
27491 <column alignment="center" valignment="top">
27493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27496 \begin_layout Plain Layout
27502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27505 \begin_layout Plain Layout
27511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27514 \begin_layout Plain Layout
27520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27523 \begin_layout Plain Layout
27529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27532 \begin_layout Plain Layout
27551 \begin_layout Section
27553 \begin_inset Index idx
27556 \begin_layout Plain Layout
27557 Caption ! Placement
27563 \begin_inset Index idx
27566 \begin_layout Plain Layout
27567 Floats ! Caption Placement
27573 \begin_inset CommandInset label
27575 name "sec:Caption-Placement"
27582 \begin_layout Standard
27583 The common caption placement rule is:
27586 \begin_layout Description
27587 Figure: Caption is set below the figure
27590 \begin_layout Description
27591 Table: Caption is set above the table
27594 \begin_layout Standard
27595 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27598 That means if you are using the document classes
27614 there will be no space between the caption and the table.
27615 To insert the necessary space, load the \SpecialChar LaTeX
27621 \begin_inset Index idx
27624 \begin_layout Plain Layout
27626 -packages ! caption
27631 in your document preamble with the option
27635 \begin_layout Plain Layout
27637 \begin_inset space ~
27641 \begin_inset CommandInset ref
27643 reference "sec:Caption-Formatting"
27647 for more information of the package
27659 \begin_layout Standard
27665 \begin_layout Standard
27671 \begin_inset Index idx
27674 \begin_layout Plain Layout
27676 -packages ! KOMA-Script
27683 article (KOMA-Script)
27691 letter (KOMA-Script)
27695 report (KOMA-Script)
27698 \begin_inset space \thinspace{}
27701 ), you can alternatively to the
27705 package set the document class option
27709 \begin_layout Plain Layout
27710 That option is used in this document.
27718 \begin_layout Standard
27721 captions=tableheading
27724 \begin_layout Standard
27725 In documents with a KOMA-Script document class you can also right-click
27726 on a caption and mark in the context menu if this should be a caption above
27727 or below the table/figure.
27728 This way you can override the document-wide caption placement for certain
27731 \begin_inset space ~
27735 \begin_inset CommandInset ref
27737 reference "tab:A-caption-marked"
27741 is an example where the caption is marked a being below the table while
27743 For comparison the caption in Table
27744 \begin_inset space ~
27748 \begin_inset CommandInset ref
27750 reference "tab:A-standard-table"
27757 \begin_layout Standard
27758 \begin_inset Float table
27763 \begin_layout Plain Layout
27764 \begin_inset Caption Below
27766 \begin_layout Plain Layout
27767 \begin_inset CommandInset label
27769 name "tab:A-caption-marked"
27773 A caption marked as being below the table.
27781 \begin_layout Plain Layout
27783 \begin_inset Tabular
27784 <lyxtabular version="3" rows="3" columns="3">
27785 <features tabularvalignment="middle">
27786 <column alignment="center" valignment="top" width="0pt">
27787 <column alignment="center" valignment="top" width="0pt">
27788 <column alignment="center" valignment="top" width="0pt">
27790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27793 \begin_layout Plain Layout
27799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27802 \begin_layout Plain Layout
27808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27811 \begin_layout Plain Layout
27819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27822 \begin_layout Plain Layout
27828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27831 \begin_layout Plain Layout
27837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27840 \begin_layout Plain Layout
27848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27851 \begin_layout Plain Layout
27852 \begin_inset Formula $\int x^{2}dx$
27860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27863 \begin_layout Plain Layout
27864 \begin_inset Formula $\left[\begin{array}{cc}
27867 \end{array}\right]$
27875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27878 \begin_layout Plain Layout
27879 \begin_inset Formula $1+1=2$
27900 \begin_layout Standard
27901 \begin_inset Float table
27906 \begin_layout Plain Layout
27907 \begin_inset Caption Standard
27909 \begin_layout Plain Layout
27910 \begin_inset CommandInset label
27912 name "tab:A-standard-table"
27916 A standard table caption.
27924 \begin_layout Plain Layout
27926 \begin_inset Tabular
27927 <lyxtabular version="3" rows="3" columns="3">
27928 <features tabularvalignment="middle">
27929 <column alignment="center" valignment="top" width="0pt">
27930 <column alignment="center" valignment="top" width="0pt">
27931 <column alignment="center" valignment="top" width="0pt">
27933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27936 \begin_layout Plain Layout
27942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27945 \begin_layout Plain Layout
27951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27954 \begin_layout Plain Layout
27962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27965 \begin_layout Plain Layout
27971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27974 \begin_layout Plain Layout
27980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27983 \begin_layout Plain Layout
27991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27994 \begin_layout Plain Layout
27995 \begin_inset Formula $\int x^{2}dx$
28003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28006 \begin_layout Plain Layout
28007 \begin_inset Formula $\left[\begin{array}{cc}
28010 \end{array}\right]$
28018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28021 \begin_layout Plain Layout
28022 \begin_inset Formula $1+1=2$
28043 \begin_layout Standard
28044 \begin_inset VSpace bigskip
28047 It is also possible to set the caption beside a figure or table.
28048 To get this the \SpecialChar LaTeX
28054 \begin_inset Index idx
28057 \begin_layout Plain Layout
28059 -packages ! sidecap
28064 has to be loaded in the document preamble with the line
28067 \begin_layout Standard
28072 usepackage[option]{sidecap}
28075 \begin_layout Standard
28076 If you set no option, the caption is placed on the side of the outer page
28077 margin – to the right on odd pages, to the left on even pages.
28078 You can change the placement to inner margin with the option
28083 To force the placement always to the right or left, use the option
28094 \begin_layout Standard
28098 \begin_layout Plain Layout
28108 \begin_inset Note Note
28111 \begin_layout Plain Layout
28112 The following section will only be displayed when the \SpecialChar LaTeX
28125 \begin_layout Standard
28126 To place in \SpecialChar LyX
28127 the caption of a float on the side, it is necessary to add
28128 these commands to the document preamble:
28131 \begin_layout Standard
28133 \begin_inset CommandInset line
28144 \begin_layout Standard
28151 TabBesBeg}[1][1.0]{%
28152 \begin_inset Newline newline
28156 \begin_inset Phantom HPhantom
28159 \begin_layout Plain Layout
28160 \begin_inset space ~
28175 \begin_inset Newline newline
28179 \begin_inset Phantom HPhantom
28182 \begin_layout Plain Layout
28185 \begin_inset space ~
28200 \begin_inset Newline newline
28204 \begin_inset Phantom HPhantom
28207 \begin_layout Plain Layout
28210 \begin_inset space ~
28220 renewenvironment{table}[1]{
28222 begin{SCtable}[#1]##1}{
28227 \begin_layout Standard
28235 \begin_inset Newline newline
28239 \begin_inset Phantom HPhantom
28242 \begin_layout Plain Layout
28243 \begin_inset space ~
28258 \begin_inset Newline newline
28262 \begin_inset Phantom HPhantom
28265 \begin_layout Plain Layout
28266 \begin_inset space ~
28283 \begin_layout Standard
28290 FigBesBeg}[1][1.0]{%
28291 \begin_inset Newline newline
28295 \begin_inset Phantom HPhantom
28298 \begin_layout Plain Layout
28299 \begin_inset space ~
28314 \begin_inset Newline newline
28318 \begin_inset Phantom HPhantom
28321 \begin_layout Plain Layout
28322 \begin_inset space ~
28337 \begin_inset Newline newline
28341 \begin_inset Phantom HPhantom
28344 \begin_layout Plain Layout
28345 \begin_inset space ~
28355 renewenvironment{figure}[1]{
28357 begin{SCfigure}[#1]##1}{
28362 \begin_layout Standard
28370 \begin_inset Newline newline
28374 \begin_inset Phantom HPhantom
28377 \begin_layout Plain Layout
28378 \begin_inset space ~
28393 \begin_inset Newline newline
28397 \begin_inset Phantom HPhantom
28400 \begin_layout Plain Layout
28401 \begin_inset space ~
28418 \begin_layout Standard
28420 \begin_inset CommandInset line
28431 \begin_layout Standard
28432 The commands allow you to redefine the floats so that the caption is set
28434 For figure floats use the command
28437 \begin_layout Standard
28445 \begin_layout Standard
28446 in \SpecialChar TeX
28447 Code before the float.
28448 And insert the command
28451 \begin_layout Standard
28459 \begin_layout Standard
28460 in \SpecialChar TeX
28461 Code at the point where you want to get back to the original float definitio
28465 \begin_layout Standard
28466 For table floats use the corresponding commands
28469 \begin_layout Standard
28483 \begin_layout Standard
28485 \begin_inset space ~
28489 \begin_inset CommandInset ref
28491 reference "fig:cap-beside-fig"
28496 \begin_inset space ~
28500 \begin_inset CommandInset ref
28502 reference "tab:cap-beside-tab"
28506 are examples where the caption is set beside.
28509 \begin_layout Standard
28510 You can see in the examples that the caption text appears at the top of
28511 the floats for table floats and at the bottom for figure floats.
28512 To change this, you can use the command
28515 \begin_layout Standard
28520 sidecaptionvpos{float type}{placement}
28523 \begin_layout Standard
28524 in the document preamble or in \SpecialChar TeX
28525 Code before the float.
28526 The float type is either
28534 , the placement can be
28535 \begin_inset Quotes eld
28543 \begin_inset Quotes erd
28547 \begin_inset Quotes eld
28555 \begin_inset Quotes erd
28559 \begin_inset Quotes eld
28567 \begin_inset Quotes erd
28571 To have for example the caption of figure floats vertically centered, use
28575 \begin_layout Standard
28580 sidecaptionvpos{figure}{c}
28583 \begin_layout Standard
28584 This was used for Figure
28585 \begin_inset space ~
28589 \begin_inset CommandInset ref
28591 reference "fig:cap-beside-fig-2"
28598 \begin_layout Standard
28599 \begin_inset VSpace medskip
28605 \begin_layout Standard
28606 The default caption width is the width of the image/table.
28607 For thin image/tables, like in Table
28608 \begin_inset space ~
28612 \begin_inset CommandInset ref
28614 reference "tab:cap-beside-tab"
28618 , this leads to captions that are too thin.
28619 You can increase the width by specifying a factor that will be multiplied
28620 with the image/table width to get the caption width.
28621 The caption width will automatically be recalculated in case it would protrude
28622 over the page or column margin due to the specified width.
28627 can either be given as optional argument for
28636 \begin_layout Standard
28644 \begin_layout Standard
28645 or in the definition of
28655 with another value.
28656 If you do the latter, your factor will be the default if
28662 is used without an argument.
28664 \begin_inset space ~
28668 \begin_inset CommandInset ref
28670 reference "tab:cap-beside-tab-wider"
28674 the factor 5 was used.
28677 \begin_layout Standard
28678 \begin_inset Note Greyedout
28681 \begin_layout Plain Layout
28686 For floats with captions set beside, you cannot use the float placement
28690 \begin_inset space ~
28695 because it is not supported by
28707 \begin_layout Standard
28708 \begin_inset VSpace medskip
28711 For more information about the package
28715 we refer to its documentation
28716 \begin_inset CommandInset citation
28725 \begin_layout Standard
28726 \begin_inset Note Greyedout
28729 \begin_layout Plain Layout
28734 The \SpecialChar LaTeX
28740 \begin_inset Index idx
28743 \begin_layout Plain Layout
28750 , described in section
28751 \begin_inset space ~
28755 \begin_inset CommandInset ref
28757 reference "subsec:Reference-Position"
28761 , has no effect on floats with the caption set beside.
28769 \begin_layout Standard
28773 \begin_layout Plain Layout
28785 \begin_layout Standard
28786 \begin_inset Float figure
28791 \begin_layout Plain Layout
28792 \begin_inset Graphics
28793 filename clipart/escher-lsd.eps
28795 scaleBeforeRotation
28802 \begin_layout Plain Layout
28803 \begin_inset Caption Standard
28805 \begin_layout Plain Layout
28806 \begin_inset CommandInset label
28808 name "fig:cap-beside-fig"
28812 This is a caption beside a figure.
28825 \begin_layout Standard
28829 \begin_layout Plain Layout
28841 \begin_layout Standard
28845 \begin_layout Plain Layout
28857 \begin_layout Standard
28858 \begin_inset Float table
28863 \begin_layout Plain Layout
28864 \begin_inset Caption Standard
28866 \begin_layout Plain Layout
28867 \begin_inset CommandInset label
28869 name "tab:cap-beside-tab"
28873 This is a caption beside a table.
28881 \begin_layout Plain Layout
28882 \begin_inset Tabular
28883 <lyxtabular version="3" rows="4" columns="5">
28884 <features tabularvalignment="middle">
28885 <column alignment="center" valignment="top">
28886 <column alignment="center" valignment="top">
28887 <column alignment="center" valignment="top">
28888 <column alignment="center" valignment="top">
28889 <column alignment="center" valignment="top">
28891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28894 \begin_layout Plain Layout
28900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28903 \begin_layout Plain Layout
28909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28912 \begin_layout Plain Layout
28918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28921 \begin_layout Plain Layout
28927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28930 \begin_layout Plain Layout
28938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28941 \begin_layout Plain Layout
28947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28950 \begin_layout Plain Layout
28956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28959 \begin_layout Plain Layout
28965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28968 \begin_layout Plain Layout
28974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28977 \begin_layout Plain Layout
28985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28988 \begin_layout Plain Layout
28994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28997 \begin_layout Plain Layout
29003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29006 \begin_layout Plain Layout
29012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29015 \begin_layout Plain Layout
29021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29024 \begin_layout Plain Layout
29032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29035 \begin_layout Plain Layout
29041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29044 \begin_layout Plain Layout
29050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29053 \begin_layout Plain Layout
29059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29062 \begin_layout Plain Layout
29068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29071 \begin_layout Plain Layout
29090 \begin_layout Standard
29094 \begin_layout Plain Layout
29106 \begin_layout Standard
29110 \begin_layout Plain Layout
29123 \begin_layout Plain Layout
29127 sidecaptionvpos{figure}{c}
29133 \begin_inset Float figure
29138 \begin_layout Plain Layout
29139 \begin_inset Graphics
29140 filename clipart/escher-lsd.eps
29142 scaleBeforeRotation
29149 \begin_layout Plain Layout
29150 \begin_inset Caption Standard
29152 \begin_layout Plain Layout
29153 \begin_inset CommandInset label
29155 name "fig:cap-beside-fig-2"
29159 This is a vertically centered caption beside a figure.
29172 \begin_layout Standard
29176 \begin_layout Plain Layout
29188 \begin_layout Standard
29192 \begin_layout Plain Layout
29204 \begin_layout Standard
29205 \begin_inset Float table
29210 \begin_layout Plain Layout
29211 \begin_inset Caption Standard
29213 \begin_layout Plain Layout
29214 \begin_inset CommandInset label
29216 name "tab:cap-beside-tab-wider"
29220 This caption is wider than the one in Table
29221 \begin_inset space ~
29225 \begin_inset CommandInset ref
29227 reference "tab:cap-beside-tab"
29239 \begin_layout Plain Layout
29240 \begin_inset Tabular
29241 <lyxtabular version="3" rows="4" columns="5">
29242 <features tabularvalignment="middle">
29243 <column alignment="center" valignment="top">
29244 <column alignment="center" valignment="top">
29245 <column alignment="center" valignment="top">
29246 <column alignment="center" valignment="top">
29247 <column alignment="center" valignment="top">
29249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29252 \begin_layout Plain Layout
29258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29261 \begin_layout Plain Layout
29267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29270 \begin_layout Plain Layout
29276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29279 \begin_layout Plain Layout
29285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29288 \begin_layout Plain Layout
29296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29299 \begin_layout Plain Layout
29305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29308 \begin_layout Plain Layout
29314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29317 \begin_layout Plain Layout
29323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29326 \begin_layout Plain Layout
29332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29335 \begin_layout Plain Layout
29343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29346 \begin_layout Plain Layout
29352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29355 \begin_layout Plain Layout
29361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29364 \begin_layout Plain Layout
29370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29373 \begin_layout Plain Layout
29379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29382 \begin_layout Plain Layout
29390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29393 \begin_layout Plain Layout
29399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29402 \begin_layout Plain Layout
29408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29411 \begin_layout Plain Layout
29417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29420 \begin_layout Plain Layout
29426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29429 \begin_layout Plain Layout
29448 \begin_layout Standard
29452 \begin_layout Plain Layout
29464 \begin_layout Standard
29468 \begin_layout Plain Layout
29478 \begin_inset Note Note
29481 \begin_layout Plain Layout
29482 The following will be displayed when the \SpecialChar LaTeX
29495 \begin_layout Standard
29496 You need to install the \SpecialChar LaTeX
29501 to see the following part of this section in the output.
29504 \begin_layout Standard
29508 \begin_layout Plain Layout
29520 \begin_layout Section
29522 \begin_inset Index idx
29525 \begin_layout Plain Layout
29526 Floats ! Float Lists
29534 \begin_layout Standard
29535 Similar to the table of contents where the sections of the document are
29536 listed, there are listings for all float types, like the figures of the
29538 You can insert them via the
29540 Insert\SpecialChar menuseparator
29542 \begin_inset space ~
29546 \begin_inset space ~
29554 \begin_layout Standard
29555 The list entries are the float captions or its short title, the float number,
29556 and the page number where they appear in the document.
29559 \begin_layout Standard
29560 You can find the list of figures and tables at the end of this document.
29563 \begin_layout Chapter
29567 \begin_layout Section
29570 \begin_inset Index idx
29573 \begin_layout Plain Layout
29574 Notes ! \SpecialChar LyX
29583 \begin_layout Standard
29584 Notes are inserted with the toolbar button
29592 Insert\SpecialChar menuseparator
29596 There are three types of notes:
29599 \begin_layout Description
29602 \begin_inset space ~
29605 Note This note type is for internal notes that won't appear in the output.
29606 Its note-box looks like this:
29607 \begin_inset Newline newline
29611 \begin_inset Newline newline
29615 \begin_inset Graphics
29616 filename clipart/LyXNoteImageQt4.png
29619 scaleBeforeRotation
29624 \begin_inset Note Note
29627 \begin_layout Plain Layout
29628 This is text in a note box that doesn't appear in the output.
29636 \begin_layout Description
29637 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29639 when you export the document to \SpecialChar LaTeX
29642 File\SpecialChar menuseparator
29643 Export\SpecialChar menuseparator
29645 (pdflatex) / (plain)
29648 Its note-box looks like this:
29649 \begin_inset Newline newline
29653 \begin_inset Newline newline
29657 \begin_inset Graphics
29658 filename clipart/CommentNoteImageQt4.png
29661 scaleBeforeRotation
29666 \begin_inset Note Comment
29669 \begin_layout Plain Layout
29670 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29679 \begin_layout Description
29681 \begin_inset space ~
29684 Out This note will appear in the output as grey text.
29685 Its note-box looks like this:
29686 \begin_inset Newline newline
29690 \begin_inset Newline newline
29694 \begin_inset Graphics
29695 filename clipart/GreyedOutNoteImageQt4.png
29698 scaleBeforeRotation
29703 \begin_inset Newline newline
29710 \begin_layout Plain Layout
29714 renewenvironment{lyxgreyedout}
29717 \begin_layout Plain Layout
29721 textcolor[gray]{0.8}
29731 \begin_inset Note Greyedout
29734 \begin_layout Plain Layout
29739 \begin_layout Plain Layout
29740 This is an example footnote within a greyed out note.
29745 of a comment that appears in the output as grey text.
29754 \begin_layout Plain Layout
29758 renewenvironment{lyxgreyedout}
29761 \begin_layout Plain Layout
29775 \begin_inset Note Note
29778 \begin_layout Plain Layout
29779 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29781 because greyed out notes are redefined in the preamble of this document,
29782 as described below, to have blue text.
29788 \begin_inset Newline newline
29792 \begin_inset Newline newline
29795 As you can see in the example, the first line of greyed out notes is a bit
29796 indented and greyed out notes can have footnotes.
29799 \begin_layout Standard
29800 \begin_inset VSpace bigskip
29803 When you use the toolbar button
29813 \begin_inset space ~
29819 You can switch between the three note types by right-clicking on the note-box.
29824 If you want to turn existing text into a note, mark it and click on the
29838 To change a note to text, press the backspace key when the cursor is in
29839 the first position of a note, or press the delete key when the cursor is
29840 in the very last position of the note, respectively.
29843 \begin_layout Standard
29844 \begin_inset VSpace bigskip
29847 You can change the text color of the greyed out notes in the menu
29849 Document\SpecialChar menuseparator
29850 Settings\SpecialChar menuseparator
29856 \begin_layout Section
29858 \begin_inset CommandInset label
29860 name "sec:Footnotes"
29865 \begin_inset Index idx
29868 \begin_layout Plain Layout
29875 \begin_inset Index idx
29878 \begin_layout Plain Layout
29887 \begin_layout Standard
29888 Footnotes can be inserted using the toolbar button
29891 arg "footnote-insert"
29896 Insert\SpecialChar menuseparator
29900 You will then see the following footnote-box:
29901 \begin_inset Graphics
29902 filename clipart/footnoteQt4.png
29904 scaleBeforeRotation
29912 where you can enter the footnote text.
29913 If you want to turn existing text into a footnote, mark it and click on
29939 key when the cursor is in the first position of a
29951 key when the cursor is in the very last position of the
29962 \begin_layout Standard
29963 Here is an example footnote:
29971 \begin_layout Plain Layout
29972 \begin_inset CommandInset label
29974 name "foot:This-is-an"
29978 This is an example footnote.
29991 \begin_layout Plain Layout
29995 newcounter{MyRepeatFoot}
29998 \begin_layout Plain Layout
30002 setcounter{MyRepeatFoot}{
30012 \begin_layout Standard
30013 The footnote will appear in the output as a superscript number at the text
30014 position where the footnote box is placed.
30015 The footnote text is placed at the bottom of the current page.
30016 The footnote number is calculated by \SpecialChar LaTeX
30017 ; the numbers are consecutive.
30018 Whether the footnote number is reset for every chapter depends on your
30022 \begin_layout Standard
30023 Footnotes can be referenced like floats: Insert a label into the footnote
30024 and cross-reference this label in the text as described in section
30025 \begin_inset space ~
30029 \begin_inset CommandInset ref
30031 reference "sec:Referencing-Floats"
30036 \begin_inset Newline newline
30039 This is a cross-reference of Footnote
30040 \begin_inset space ~
30044 \begin_inset CommandInset ref
30046 reference "foot:This-is-an"
30053 \begin_layout Standard
30054 \begin_inset VSpace defskip
30057 Footnotes in title environments are usually not numbered with symbols and
30058 they cannot contain several paragraphs.
30059 See for example the footnote in the titling of this document.
30062 \begin_layout Standard
30063 \begin_inset VSpace defskip
30066 Footnotes in tables are not printed by \SpecialChar LaTeX
30067 due to technical reasons.
30068 However there exists another method to print them: Instead of the footnote
30075 is inserted as \SpecialChar TeX
30077 The text of the footnote is entered as an argument of the \SpecialChar TeX
30086 \begin_inset Newline newline
30089 This was done for the following table with the command
30092 \begin_layout Standard
30099 Printed table footnote.
30104 \begin_layout Standard
30105 \begin_inset Tabular
30106 <lyxtabular version="3" rows="2" columns="1">
30107 <features tabularvalignment="middle">
30108 <column alignment="center" valignment="top">
30110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30113 \begin_layout Plain Layout
30114 This an example text.
30118 \begin_layout Plain Layout
30119 This footnote will not be printed!
30131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30134 \begin_layout Plain Layout
30135 This an example text.
30139 \begin_layout Plain Layout
30162 \begin_layout Plain Layout
30171 Printed table footnote.
30175 \begin_layout Plain Layout
30185 \begin_layout Standard
30186 Footnotes in longtables are described in section
30187 \begin_inset space ~
30191 \begin_inset CommandInset ref
30193 reference "subsec:Footnotes-in-Longtables"
30200 \begin_layout Standard
30201 Footnotes in minipage boxes are printed, but inside the box and with a different
30202 numbering because a minipage box is like a page inside a page.
30203 (For more about minipages, see section
30204 \begin_inset space ~
30208 \begin_inset CommandInset ref
30210 reference "sec:Minipages"
30214 .) To get a footnote in the minipage that is output at the bottom of the
30215 page like normal footnotes, also use the method of
30230 \begin_layout Standard
30231 \begin_inset Box Frameless
30241 height_special "totalheight"
30246 backgroundcolor "none"
30249 \begin_layout Plain Layout
30250 This an example text in a minipage.
30254 \begin_layout Plain Layout
30255 Footnote in the minipage.
30263 \begin_layout Plain Layout
30264 This an example text in a minipage.
30268 \begin_layout Plain Layout
30285 \begin_layout Standard
30289 \begin_layout Plain Layout
30298 Footnote outside the minipage.
30302 \begin_layout Plain Layout
30312 \begin_layout Standard
30313 \begin_inset VSpace defskip
30319 \begin_layout Standard
30320 To refer to the same footnote several times without printing the footnote
30321 text every time, use the command
30325 footnotemark[number]
30327 in \SpecialChar TeX
30329 \begin_inset Newline newline
30332 As you do not know the number of the repeating footnote while you are writing
30333 the text, you have to store its number.
30334 For the following footnote mark example, these commands were inserted in
30336 code after Footnote
30337 \begin_inset space ~
30341 \begin_inset CommandInset ref
30343 reference "foot:This-is-an"
30347 to store the footnote number:
30350 \begin_layout Standard
30355 newcounter{MyRepeatFoot}
30356 \begin_inset Newline newline
30361 setcounter{MyRepeatFoot}{
30366 \begin_layout Standard
30367 The footnote mark was then created with this command:
30370 \begin_layout Standard
30380 \begin_layout Standard
30381 Here is a repeated footnote:
30389 \begin_layout Plain Layout
30403 \begin_layout Standard
30404 If you want to repeat the previous footnote, you can omit the storage of
30405 the footnote number and just use this command instead:
30408 \begin_layout Standard
30418 \begin_layout Standard
30419 Here is another repeated footnote:
30427 \begin_layout Plain Layout
30441 \begin_layout Subsection
30443 \begin_inset CommandInset label
30445 name "subsec:Footnote-Numbering"
30450 \begin_inset Index idx
30453 \begin_layout Plain Layout
30454 Footnotes ! Numbering
30462 \begin_layout Standard
30463 To reset the footnote number back to 1 after each section
30465 , add this command to your document preamble:
30468 \begin_layout Standard
30473 @addtoreset{footnote}{section}
30476 \begin_layout Standard
30477 \begin_inset VSpace bigskip
30480 The following preamble command changes the footnote numbering style to small
30484 \begin_layout Standard
30496 \begin_layout Standard
30500 \begin_layout Plain Layout
30513 This is a footnote with roman numbering:
30517 \begin_layout Plain Layout
30518 This is an example footnote with roman numbering.
30526 \begin_layout Standard
30527 To change the numbering style to capital roman numerals replace in the command
30542 \begin_inset Quotes eld
30546 \begin_inset Quotes erd
30549 footnotes with capital or small Latin letters use
30563 \begin_inset Quotes eld
30567 \begin_inset Quotes erd
30570 footnotes with symbols use
30579 \begin_layout Standard
30580 \begin_inset Note Greyedout
30583 \begin_layout Plain Layout
30588 You can only number 26 footnotes with Latin letters, because this numbering
30589 is limited to single letters.
30595 \begin_inset Newline newline
30599 \begin_inset Note Greyedout
30602 \begin_layout Plain Layout
30607 You can only number 9 footnotes with symbols.
30615 \begin_layout Standard
30616 To return to the default numbering style after you have changed to another
30629 in the command above.
30633 \begin_layout Plain Layout
30649 \begin_layout Standard
30650 \begin_inset VSpace bigskip
30656 \begin_layout Standard
30657 If you want to have footnotes numbered in the scheme
30658 \begin_inset Quotes eld
30662 \begin_inset Quotes erd
30665 , add the following command to your document preamble:
30668 \begin_layout Standard
30673 numberwithin{footnote}{chapter}
30676 \begin_layout Standard
30677 To be able to use the command
30686 \begin_inset space ~
30691 in the document settings the option
30694 \begin_inset space ~
30698 \begin_inset space ~
30702 \begin_inset space ~
30710 \begin_layout Standard
30714 \begin_layout Plain Layout
30718 numberwithin{footnote}{chapter}
30723 This is another example footnote:
30729 \begin_layout Plain Layout
30730 This is a footnote numbered in the scheme
30731 \begin_inset Quotes eld
30735 \begin_inset Quotes erd
30749 \begin_layout Plain Layout
30765 \begin_layout Standard
30766 \begin_inset Note Greyedout
30769 \begin_layout Plain Layout
30780 always prints out the footnote number as arabic number; previous redefinitions
30781 to get non-arabic numbers are overwritten.
30789 \begin_layout Standard
30790 So to get for example the scheme
30791 \begin_inset Quotes eld
30797 \begin_inset Quotes erd
30800 , use this command instead of
30809 \begin_layout Standard
30823 \begin_layout Subsection
30825 \begin_inset Index idx
30828 \begin_layout Plain Layout
30829 Footnotes ! Placement
30837 \begin_layout Standard
30838 If you have several footnotes in one page, they appear without vertical
30839 space between them at the bottom of the page.
30840 To make them more readable you can e.
30841 \begin_inset space \thinspace{}
30845 \begin_inset space \space{}
30849 \begin_inset space \thinspace{}
30852 mm space with the following preamble command:
30855 \begin_layout Standard
30865 \begin_inset Newline newline
30879 \begin_layout Standard
30880 \begin_inset VSpace bigskip
30883 In a two-column document the footnotes appear at the bottom of every column,
30885 \begin_inset space ~
30889 \begin_inset CommandInset ref
30891 reference "fig:Standard-footnote-placement"
30896 If the footnotes should only appear at the bottom of the right column,
30898 \begin_inset space ~
30902 \begin_inset CommandInset ref
30904 reference "fig:Footnote-placement-in"
30908 , use the \SpecialChar LaTeX
30914 \begin_inset Index idx
30917 \begin_layout Plain Layout
30919 -packages ! ftnright
30924 with this command in the document preamble:
30927 \begin_layout Standard
30932 usepackage{ftnright}
30935 \begin_layout Standard
30936 \begin_inset Float figure
30942 \begin_layout Plain Layout
30946 \begin_layout Plain Layout
30956 \begin_inset Graphics
30957 filename clipart/without_fntright.pdf
30959 scaleBeforeRotation
30967 \begin_layout Plain Layout
30977 \begin_layout Plain Layout
30978 \begin_inset Caption Standard
30980 \begin_layout Plain Layout
30981 \begin_inset CommandInset label
30983 name "fig:Standard-footnote-placement"
30987 Standard footnote placement in two-column documents.
31000 \begin_layout Standard
31001 \begin_inset Float figure
31007 \begin_layout Plain Layout
31011 \begin_layout Plain Layout
31021 \begin_inset Graphics
31022 filename clipart/with_fntright.pdf
31024 scaleBeforeRotation
31032 \begin_layout Plain Layout
31042 \begin_layout Plain Layout
31043 \begin_inset Caption Standard
31045 \begin_layout Plain Layout
31046 \begin_inset CommandInset label
31048 name "fig:Footnote-placement-in"
31052 Footnote placement in two-column documents when the \SpecialChar LaTeX
31070 \begin_layout Standard
31071 \begin_inset VSpace bigskip
31074 In some scientific literature it is usual to collect the footnotes and print
31075 them in a separate paragraph at the end of a section, as in Figure
31076 \begin_inset space ~
31080 \begin_inset CommandInset ref
31082 reference "fig:Endnotes"
31087 They are then called
31088 \begin_inset Quotes eld
31092 \begin_inset Quotes erd
31096 \begin_inset Index idx
31099 \begin_layout Plain Layout
31105 To use endnotes instead of footnotes in your document, load in the menu
31108 Document\SpecialChar menuseparator
31109 Settings\SpecialChar menuseparator
31115 \begin_inset space ~
31119 \begin_inset space ~
31125 To insert the collected footnotes, insert the command
31128 \begin_layout Standard
31136 \begin_layout Standard
31137 in \SpecialChar TeX
31138 Code at the end of a section or chapter.
31141 \begin_layout Standard
31142 \begin_inset Float figure
31147 \begin_layout Plain Layout
31152 \begin_layout Plain Layout
31162 \begin_inset Graphics
31163 filename clipart/endnotes.pdf
31164 scaleBeforeRotation
31172 \begin_layout Plain Layout
31182 \begin_layout Plain Layout
31183 \begin_inset Caption Standard
31185 \begin_layout Plain Layout
31186 \begin_inset CommandInset label
31188 name "fig:Endnotes"
31192 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31206 \begin_layout Standard
31207 \begin_inset VSpace medskip
31210 The paragraph heading for the endnotes isn't automatically translated into
31211 the document language, this must be done manually.
31212 The following preamble command translates the default English
31213 \begin_inset Quotes eld
31217 \begin_inset Quotes erd
31221 \begin_inset Quotes eld
31225 \begin_inset Quotes erd
31231 \begin_layout Standard
31238 notesname}{Anmerkungen}
31241 \begin_layout Standard
31242 \begin_inset VSpace medskip
31245 The numbering of endnotes can be changed like the footnote numbering as
31246 described in section
31247 \begin_inset space ~
31251 \begin_inset CommandInset ref
31253 reference "subsec:Footnote-Numbering"
31257 ; just replace the command
31270 To reset the endnote number use the command
31276 as described in section
31277 \begin_inset space ~
31281 \begin_inset CommandInset ref
31283 reference "subsec:Footnote-Numbering"
31287 and replace the command parameter
31298 \begin_layout Standard
31299 For endnotes there is the command
31303 endnotemark[number]
31305 similar to the command
31311 , that is described in section
31312 \begin_inset space ~
31316 \begin_inset CommandInset ref
31318 reference "sec:Footnotes"
31325 \begin_layout Standard
31326 \begin_inset VSpace bigskip
31329 Footnotes can also be placed in the page margin and the footnote text alignment
31330 can be changed, see the \SpecialChar LaTeX
31336 \begin_inset Index idx
31339 \begin_layout Plain Layout
31341 -packages ! footmisc
31347 \begin_inset CommandInset citation
31353 for more information about this.
31356 \begin_layout Standard
31357 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31359 \begin_inset CommandInset citation
31361 key "latexcompanion,latexguide,latexbook"
31371 \begin_inset Index idx
31374 \begin_layout Plain Layout
31376 -packages ! KOMA-Script
31381 document class, you can adjust all footnote settings using class-specific
31383 \begin_inset CommandInset citation
31392 \begin_layout Section
31394 \begin_inset Index idx
31397 \begin_layout Plain Layout
31398 Notes ! Margin Notes
31406 \begin_layout Standard
31407 Margin notes look and behave in \SpecialChar LyX
31409 They are inserted via the menu
31411 Insert\SpecialChar menuseparator
31413 \begin_inset space ~
31418 or the toolbar button
31421 arg "marginalnote-insert"
31435 \begin_inset Quotes eld
31439 \begin_inset Quotes erd
31442 appears where you can enter the text of the margin note.
31445 \begin_layout Standard
31446 At the side is an example margin note.
31451 \begin_inset Marginal
31454 \begin_layout Plain Layout
31455 This is a margin note.
31463 \begin_layout Standard
31464 Margin notes appear at the right side in single-sided documents.
31465 In double-sided documents they appear in the outer margin – left on even
31466 pages, right on odd pages.
31467 The text of margin notes is aligned opposite to the outer margin – right-aligne
31468 d when the note appears in the left margin.
31469 The first line of the margin note is placed at the position of the text
31470 line where it is inserted in the document.
31473 \begin_layout Standard
31474 \begin_inset VSpace bigskip
31477 To place the margin note in the inner margin, add the command
31480 \begin_layout Standard
31488 \begin_layout Standard
31489 in \SpecialChar TeX
31490 Code before a margin note.
31491 The new placement is valid for all subsequent margin notes.
31496 \begin_layout Plain Layout
31506 \begin_inset Marginal
31509 \begin_layout Plain Layout
31510 This is a margin note in the inner margin.
31518 \begin_inset Newline newline
31524 \begin_inset Note Greyedout
31527 \begin_layout Plain Layout
31532 There is often not enough space in the inner margin so that the notes are
31533 not correctly displayed in the output.
31541 \begin_layout Standard
31542 To return to the default placement insert the command
31545 \begin_layout Standard
31553 \begin_layout Standard
31554 in \SpecialChar TeX
31559 \begin_layout Plain Layout
31569 \begin_inset Note Greyedout
31572 \begin_layout Plain Layout
31577 The command is ignored when it is within a paragraph where also the command
31592 \begin_layout Standard
31593 \begin_inset VSpace bigskip
31600 \begin_inset Marginal
31603 \begin_layout Plain Layout
31604 AVeryLongMarginParWord that isn't hyphenated.
31612 Similar to the case described in section
31613 \begin_inset space ~
31617 \begin_inset CommandInset ref
31619 reference "subsec:Multiple-Lines-in"
31623 , long words cannot be hyphenated when they are the first word in a margin
31625 To avoid this, insert 0
31626 \begin_inset space \thinspace{}
31629 pt horizontal space before the word
31634 \begin_inset Marginal
31637 \begin_layout Plain Layout
31638 \begin_inset space \hspace*{}
31642 AVeryLongMarginParWord that is hyphenated.
31650 \begin_layout Standard
31651 \begin_inset VSpace bigskip
31657 \begin_layout Standard
31658 \begin_inset Note Greyedout
31661 \begin_layout Plain Layout
31666 Margin notes can normally not be used inside tables, floats, and footnotes.
31674 \begin_layout Standard
31675 \begin_inset VSpace bigskip
31681 \begin_layout Standard
31685 \begin_layout Plain Layout
31695 \begin_inset Note Note
31698 \begin_layout Plain Layout
31699 The following section will only be displayed when the \SpecialChar LaTeX
31712 \begin_layout Standard
31713 This restriction can be evaded by using the \SpecialChar LaTeX
31719 \begin_inset Index idx
31722 \begin_layout Plain Layout
31724 -packages ! marginnote
31730 By adding these two lines to your document preamble, the command used by
31732 for margin notes is redefined to use the command provided by the
31739 \begin_layout Standard
31744 usepackage{marginnote}
31745 \begin_inset Newline newline
31757 \begin_layout Standard
31758 This is also used in this document because
31762 has another useful feature: You can set a vertical offset for the note.
31763 This is often needed when too many margin notes are too close together
31764 or for a better page layout.
31765 The offset is set in \SpecialChar LyX
31766 as \SpecialChar TeX
31767 Code directly after the margin note in the scheme
31770 \begin_layout Standard
31776 \begin_layout Standard
31777 where the offset is a length with one of the units listed in Table
31778 \begin_inset space ~
31782 \begin_inset CommandInset ref
31784 reference "tab:Units"
31789 A negative value shifts the note up, a positive value shifts it down.
31793 For example the margin note beside this text line is shifted up 1.5
31794 \begin_inset space \thinspace{}
31797 cm with the \SpecialChar TeX
31799 \begin_inset Quotes eld
31809 \begin_inset Quotes erd
31813 \begin_inset Marginal
31816 \begin_layout Plain Layout
31817 This margin note is shifted up 1.5
31818 \begin_inset space \thinspace{}
31821 cm from its original position.
31833 \begin_layout Plain Layout
31843 \begin_layout Standard
31844 \begin_inset VSpace medskip
31851 you can also change the alignment of the text in the margin note.
31852 For example the commands
31855 \begin_layout Standard
31862 raggedleftmarginnote}{
31865 \begin_inset Newline newline
31872 raggedrightmarginnote}{
31877 \begin_layout Standard
31878 set the alignment to centered.
31883 raggedleftmarginnote
31885 denotes margin notes that appear at the left side.
31892 \begin_layout Plain Layout
31898 raggedleftmarginnote}{
31903 \begin_layout Plain Layout
31909 raggedrightmarginnote}{
31917 \begin_inset Marginal
31920 \begin_layout Plain Layout
31921 The text of this margin note is centered.
31932 \begin_layout Standard
31939 raggedleftmarginnote}{
31942 \begin_inset Newline newline
31949 raggedrightmarginnote}{
31958 \begin_layout Plain Layout
31964 raggedleftmarginnote}{
31969 \begin_layout Plain Layout
31975 raggedrightmarginnote}{
31985 \begin_layout Standard
31986 \begin_inset VSpace medskip
31989 For the other features of
31993 refer to its documentation
31994 \begin_inset CommandInset citation
32003 \begin_layout Standard
32004 \begin_inset VSpace bigskip
32007 You can adjust the layout of margin notes by changing its definition.
32008 To create for example a header for all margin notes with the underlined,
32009 sans-serif, and bold header text
32010 \begin_inset Quotes eld
32022 \begin_inset Quotes erd
32025 , add this to your document preamble:
32028 \begin_layout Standard
32038 \begin_inset Newline newline
32048 \begin_inset Newline newline
32052 \begin_inset Phantom HPhantom
32055 \begin_layout Plain Layout
32058 \begin_inset space ~
32074 underbar{Attention!}}}%
32075 \begin_inset Newline newline
32079 \begin_inset Phantom HPhantom
32082 \begin_layout Plain Layout
32085 \begin_inset space ~
32102 \begin_layout Standard
32109 \begin_layout Plain Layout
32120 \begin_layout Plain Layout
32131 \begin_layout Plain Layout
32139 underbar{Attention!}}}%
32142 \begin_layout Plain Layout
32156 \begin_inset Marginal
32159 \begin_layout Plain Layout
32160 This is a margin note with a defined heading.
32172 \begin_layout Plain Layout
32186 \begin_layout Plain Layout
32203 \begin_inset Note Note
32206 \begin_layout Plain Layout
32207 The margin note format is changed only for this example.
32215 \begin_layout Standard
32219 \begin_layout Plain Layout
32229 \begin_inset Note Note
32232 \begin_layout Plain Layout
32233 The following will be displayed when the \SpecialChar LaTeX
32246 \begin_layout Standard
32247 You need to install the \SpecialChar LaTeX
32252 to see the following part of this section in the output.
32255 \begin_layout Standard
32259 \begin_layout Plain Layout
32271 \begin_layout Chapter
32275 \begin_layout Section
32277 \begin_inset Index idx
32280 \begin_layout Plain Layout
32281 Boxes ! Introduction
32289 \begin_layout Standard
32290 Boxes are used to format a block of text.
32291 Boxes can be used to write documents with multiple languages, see section
32292 \begin_inset space ~
32296 \begin_inset CommandInset ref
32298 reference "sec:Minipages"
32302 , to frame texts, see section
32303 \begin_inset space ~
32307 \begin_inset CommandInset ref
32309 reference "sec:Decoration"
32313 , to prevent words from being hyphenated, see section
32314 \begin_inset space ~
32318 \begin_inset CommandInset ref
32320 reference "sec:Prevent-Hyphenation"
32324 , to align text, see section
32325 \begin_inset space ~
32329 \begin_inset CommandInset ref
32331 reference "subsec:Vertical-Alignment"
32335 , or to set the background color of texts, see section
32336 \begin_inset space ~
32340 \begin_inset CommandInset ref
32342 reference "sec:Colored-Boxes"
32349 \begin_layout Standard
32350 Boxes can be inserted with the menu
32352 Insert\SpecialChar menuseparator
32355 or the toolbar button
32358 arg "box-insert Frameless"
32362 A grey box with the label
32367 \begin_inset Graphics
32368 filename clipart/BoxInsetDefaultQt4.png
32370 scaleBeforeRotation
32375 The box type can be specified by right-clicking on the box and selecting
32381 The box dialog offers the
32384 \begin_inset space ~
32406 is the default for new boxes and is explained in section
32407 \begin_inset space ~
32411 \begin_inset CommandInset ref
32413 reference "sec:Minipages"
32421 is described in section
32422 \begin_inset space ~
32426 \begin_inset CommandInset ref
32428 reference "sec:Parboxes"
32437 \begin_inset CommandInset ref
32439 reference "sec:Prevent-Hyphenation"
32446 \begin_layout Standard
32447 Boxes are not numbered and can therefore not be referenced like floats or
32451 \begin_layout Standard
32452 \begin_inset Note Greyedout
32455 \begin_layout Plain Layout
32460 Boxes must not be the item in an
32476 \begin_layout Standard
32477 \begin_inset Note Greyedout
32480 \begin_layout Plain Layout
32485 For an unknown reason you can only set the
32488 \begin_inset space ~
32497 when you use a framed box.
32501 \begin_inset space ~
32506 type and without frames are explained in section
32507 \begin_inset space ~
32511 \begin_inset CommandInset ref
32513 reference "sec:Prevent-Hyphenation"
32525 \begin_layout Section
32527 \begin_inset CommandInset label
32529 name "sec:Box-Dialog"
32534 \begin_inset Index idx
32537 \begin_layout Plain Layout
32546 \begin_layout Subsection
32548 \begin_inset Index idx
32551 \begin_layout Plain Layout
32560 \begin_layout Standard
32561 In the box dialog you can adjust the box geometry in the fields
32570 The available units for the geometry are explained in Table
32571 \begin_inset space ~
32575 \begin_inset CommandInset ref
32577 reference "tab:Units"
32586 offers the following additional sizes:
32589 \begin_layout Description
32590 Depth This is the plain text
32591 \begin_inset Quotes eld
32595 \begin_inset Quotes erd
32599 It ignores the total depth when there are multiple text lines in the box:
32600 \begin_inset Newline newline
32604 \begin_inset Newline newline
32608 \begin_inset Newline newline
32612 \begin_inset Box Boxed
32622 height_special "depth"
32627 backgroundcolor "none"
32630 \begin_layout Plain Layout
32632 Box height set to 1
32633 \begin_inset space \thinspace{}
32642 \begin_inset Newline newline
32646 \begin_inset Newline newline
32652 \begin_layout Description
32653 Height This is the height of the text that is inside the box.
32655 \begin_inset space \thinspace{}
32659 \begin_inset space \space{}
32662 2 for this size will set the box height to 2
32663 \begin_inset space ~
32666 times the text height:
32667 \begin_inset Box Boxed
32677 height_special "height"
32682 backgroundcolor "none"
32685 \begin_layout Plain Layout
32687 Box height set to 2
32688 \begin_inset space \thinspace{}
32699 \begin_layout Description
32701 \begin_inset space ~
32704 Height This is the Height
32705 \begin_inset space \thinspace{}
32709 \begin_inset space \thinspace{}
32713 \begin_inset Box Boxed
32723 height_special "totalheight"
32728 backgroundcolor "none"
32731 \begin_layout Plain Layout
32733 Box height set to 1
32734 \begin_inset space \thinspace{}
32738 \begin_inset space ~
32749 \begin_layout Description
32750 Width This sets the width of the box as height:
32751 \begin_inset Box Boxed
32761 height_special "width"
32766 backgroundcolor "none"
32769 \begin_layout Plain Layout
32771 Box height set to 1
32772 \begin_inset space \thinspace{}
32783 \begin_layout Subsection
32785 \begin_inset Index idx
32788 \begin_layout Plain Layout
32797 \begin_layout Standard
32798 When you have chosen an
32801 \begin_inset space ~
32806 , the vertical box alignment can be:
32809 \begin_layout Description
32810 Top 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 top-aligned.
32837 This is an example text line.
32840 \begin_layout Description
32841 Middle 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 middle-aligned.
32868 This is an example text line.
32871 \begin_layout Description
32872 Bottom This is an example text line.
32874 \begin_inset Box Boxed
32884 height_special "totalheight"
32889 backgroundcolor "none"
32892 \begin_layout Plain Layout
32894 This box is bottom-aligned.
32899 This is an example text line.
32902 \begin_layout Standard
32903 \begin_inset Note Greyedout
32906 \begin_layout Plain Layout
32911 The vertical box alignment can be lost in the output when you have two
32912 boxes in a line and one has e.
32913 \begin_inset space \thinspace{}
32917 \begin_inset space \space{}
32920 a shadow and the other one not.
32928 \begin_layout Standard
32929 The horizontal box alignment can be set via \SpecialChar LyX
32930 's paragraph dialog when you
32931 set the box into its own paragraph.
32934 \begin_layout Standard
32935 \begin_inset VSpace bigskip
32938 When you have chosen an
32941 \begin_inset space ~
32946 , the box content can be aligned vertically to:
32949 \begin_layout Description
32950 top 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 top-aligned.
32977 This is an example text line.
32980 \begin_layout Description
32981 middle 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 middle-aligned.
33008 This is an example text line.
33011 \begin_layout Description
33012 bottom This is an example text line.
33014 \begin_inset Box Boxed
33024 height_special "totalheight"
33029 backgroundcolor "none"
33032 \begin_layout Plain Layout
33034 This box text is bottom-aligned.
33039 This is an example text line.
33042 \begin_layout Description
33043 stretch This is an example text line.
33045 \begin_inset Box Boxed
33055 height_special "totalheight"
33060 backgroundcolor "none"
33063 \begin_layout Plain Layout
33068 \begin_layout Plain Layout
33073 \begin_layout Plain Layout
33080 This is an example text line.
33083 \begin_layout Standard
33084 To stretch the box content, it must consist of more than one paragraph.
33085 In the example above every text line is in an own paragraph.
33088 \begin_layout Standard
33089 \begin_inset VSpace bigskip
33092 To align the box content horizontally you can use \SpecialChar LyX
33093 's paragraph dialog when
33097 \begin_inset space ~
33105 \begin_layout Standard
33107 \begin_inset Box Boxed
33117 height_special "totalheight"
33122 backgroundcolor "none"
33125 \begin_layout Plain Layout
33130 \begin_layout Plain Layout
33135 \begin_layout Plain Layout
33145 \begin_layout Standard
33146 If you have not set an
33149 \begin_inset space ~
33154 , you can align the box content horizontally in the box dialog.
33155 \begin_inset Separator parbreak
33161 \begin_layout Standard
33163 \begin_inset Box Boxed
33173 height_special "totalheight"
33178 backgroundcolor "none"
33181 \begin_layout Plain Layout
33182 This box text is horizontally stretched.
33190 \begin_layout Subsection
33192 \begin_inset CommandInset label
33194 name "sec:Decoration"
33199 \begin_inset Index idx
33202 \begin_layout Plain Layout
33211 \begin_layout Standard
33212 The type of the box can be specified in the box dialog in the drop-down
33218 The following types are possible:
33221 \begin_layout Description
33223 \begin_inset space ~
33226 frame Nothing is drawn.
33229 \begin_layout Description
33231 \begin_inset space ~
33235 \begin_inset space ~
33238 frame This draws a rectangular frame around the box.
33239 The frame line thickness can be specified.
33241 \begin_inset Box Boxed
33251 height_special "totalheight"
33256 backgroundcolor "none"
33259 \begin_layout Plain Layout
33269 \begin_layout Description
33271 \begin_inset space ~
33275 \begin_inset space ~
33278 thin This draws an oval frame around the box.
33279 The frame line thickness has the size 0.4
33280 \begin_inset space \thinspace{}
33285 \begin_inset Box ovalbox
33295 height_special "totalheight"
33300 backgroundcolor "none"
33303 \begin_layout Plain Layout
33313 \begin_layout Description
33315 \begin_inset space ~
33319 \begin_inset space ~
33322 thick This draws an oval frame around the box.
33323 The frame line thickness has the size 0.8
33324 \begin_inset space \thinspace{}
33329 \begin_inset Box Ovalbox
33339 height_special "totalheight"
33344 backgroundcolor "none"
33347 \begin_layout Plain Layout
33357 \begin_layout Description
33359 \begin_inset space ~
33362 shadow This draws a rectangular frame with a shadow around the box.
33363 The frame line thickness and the shadow can be specified.
33365 \begin_inset Box Shadowbox
33375 height_special "totalheight"
33380 backgroundcolor "none"
33383 \begin_layout Plain Layout
33393 \begin_layout Description
33395 \begin_inset space ~
33398 background This draws a box with a red background.
33399 Unlike colored boxes
33403 \begin_layout Plain Layout
33405 \begin_inset space \thinspace{}
33409 \begin_inset CommandInset ref
33411 reference "sec:Colored-Boxes"
33420 , it always uses the whole column width and the box is set as its own paragraph.
33422 \begin_inset Box Shaded
33432 height_special "totalheight"
33437 backgroundcolor "none"
33440 \begin_layout Plain Layout
33441 Shaded background box
33449 \begin_layout Description
33451 \begin_inset space ~
33455 \begin_inset space ~
33458 frame This draws a double-line rectangular frame around the box.
33459 The line thickness of the inner frame is 0.75
33460 \begin_inset space \thinspace{}
33464 \begin_inset space ~
33467 thickness, the thickness of the outer frame is 1.5
33468 \begin_inset space \thinspace{}
33472 \begin_inset space ~
33476 The distance between the lines is 1.5
33477 \begin_inset space \thinspace{}
33481 \begin_inset space ~
33485 \begin_inset space \thinspace{}
33489 \begin_inset space \thinspace{}
33493 \begin_inset space \thinspace{}
33498 \begin_inset Box Doublebox
33508 height_special "totalheight"
33513 backgroundcolor "none"
33516 \begin_layout Plain Layout
33518 Double rectangular box
33526 \begin_layout Standard
33527 \begin_inset VSpace bigskip
33531 's box label will reflect the different frame types.
33532 To be able to use all types, the \SpecialChar LaTeX
33538 \begin_inset Index idx
33541 \begin_layout Plain Layout
33543 -packages ! fancybox
33551 \begin_layout Standard
33552 \begin_inset VSpace bigskip
33555 When you use the decoration
33557 simple rectangular frame
33559 and no inner box, you can allow page breaks within a box.
33560 Note that then, unlike other framed boxes, the frame always uses the whole
33561 column width and the box is set as its own paragraph:
33562 \begin_inset Box Framed
33572 height_special "totalheight"
33577 backgroundcolor "none"
33580 \begin_layout Plain Layout
33581 Allow page break box
33589 \begin_layout Section
33591 \begin_inset Index idx
33594 \begin_layout Plain Layout
33595 Boxes ! Customization
33603 \begin_layout Standard
33604 The diameter of the round corners of the oval boxes can be set with the
33615 \begin_layout Standard
33623 \begin_layout Standard
33624 sets the diameter to 1
33625 \begin_inset space \thinspace{}
33632 \begin_layout Standard
33640 \begin_layout Standard
33641 sets the diameter to
33644 \begin_inset space \thinspace{}
33648 \begin_inset space \thinspace{}
33651 minimum(width and height of box)
33663 \begin_layout Standard
33667 \begin_layout Plain Layout
33677 \begin_inset Box Ovalbox
33687 height_special "totalheight"
33692 backgroundcolor "none"
33695 \begin_layout Plain Layout
33704 \begin_inset space \thinspace{}
33708 \begin_inset space \thinspace{}
33712 \begin_inset space \thinspace{}
33724 \begin_layout Plain Layout
33736 \begin_layout Standard
33737 \begin_inset VSpace bigskip
33743 \begin_layout Standard
33744 The default background color red of
33748 boxes can either be changed locally with the command
33752 definecolor{shadecolor}
33754 or globally with the menu
33756 Tools\SpecialChar menuseparator
33757 Preferences\SpecialChar menuseparator
33758 Colors\SpecialChar menuseparator
33760 \begin_inset space ~
33772 command is explained in section
33773 \begin_inset space ~
33777 \begin_inset CommandInset ref
33779 reference "sec:Colored-Tables"
33787 \begin_layout Plain Layout
33794 requires the \SpecialChar LaTeX
33799 in the preamble, see section
33800 \begin_inset space ~
33804 \begin_inset CommandInset ref
33806 reference "sec:Colored-Boxes"
33815 For example the appearance of the following shaded background box is set
33816 with the \SpecialChar TeX
33820 \begin_layout Standard
33825 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33828 \begin_layout Standard
33832 \begin_layout Plain Layout
33836 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33842 \begin_inset Box Shaded
33852 height_special "totalheight"
33857 backgroundcolor "none"
33860 \begin_layout Plain Layout
33863 This is yellow text in a
33873 box with dark green background.
33882 \begin_layout Plain Layout
33886 definecolor{shadecolor}{rgb}{1,0,0}
33894 \begin_layout Standard
33895 \begin_inset VSpace bigskip
33898 Manually changed sizes and colors are valid for all boxes following the
33899 commands that change them.
33902 \begin_layout Section
33904 \begin_inset CommandInset label
33906 name "sec:Minipages"
33911 \begin_inset Index idx
33914 \begin_layout Plain Layout
33923 \begin_layout Standard
33924 Minipages are treated by \SpecialChar LaTeX
33925 as pages within pages and can therefore for example
33926 have their own footnotes.
33929 \begin_layout Standard
33930 Minipages are useful when you write documents with different languages.
33933 \begin_layout Standard
33934 Below are two example minipages side by side.
33935 Their width is set to 45
33936 \begin_inset space \thinspace{}
33939 col% and they are separated by a horizontal fill, that was inserted via
33942 Insert\SpecialChar menuseparator
33944 \begin_inset space ~
33947 Formatting\SpecialChar menuseparator
33949 \begin_inset space ~
33955 \begin_inset Newpage newpage
33961 \begin_layout Standard
33962 \begin_inset Box Frameless
33972 height_special "totalheight"
33977 backgroundcolor "none"
33980 \begin_layout Plain Layout
33983 Dies ist ein deutscher Text.
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text.
33986 Dies ist ein deutscher Text.
33987 Dies ist ein deutscher Text.
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text
33999 \begin_layout Plain Layout
34002 Dies ist eine deutsche Fußnote.
34008 Dies ist ein deutscher Text.
34009 Dies ist ein deutscher Text.
34015 \begin_inset space \hfill{}
34019 \begin_inset Box Frameless
34029 height_special "totalheight"
34034 backgroundcolor "none"
34037 \begin_layout Plain Layout
34038 This is an English Text.
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34057 \begin_layout Plain Layout
34058 This is an English footnote.
34063 This is an English Text.
34071 \begin_layout Standard
34072 \begin_inset VSpace bigskip
34075 The document-wide paragraph settings are ignored within minipages.
34076 That means that there will be no space between paragraphs in minipages
34077 although you set it to e.
34078 \begin_inset space \thinspace{}
34082 \begin_inset space \space{}
34089 in the document settings.
34092 \begin_layout Standard
34093 Minipages can also be used to set a background color for text parts, see
34095 \begin_inset space ~
34099 \begin_inset CommandInset ref
34101 reference "sec:Colored-Boxes"
34108 \begin_layout Standard
34109 \begin_inset Note Greyedout
34112 \begin_layout Plain Layout
34117 You cannot have floats or margin notes inside minipages but minipages can
34118 be used inside tables, floats, and other boxes.
34124 \change_inserted 2047637253 1447344098
34128 \begin_layout Section
34130 \change_inserted 2047637253 1447344355
34131 Variable-width Minipages
34132 \begin_inset CommandInset label
34134 name "sec:Varwidth"
34139 \begin_inset Index idx
34142 \begin_layout Plain Layout
34144 \change_inserted 2047637253 1447344099
34145 Boxes ! Minipages (variable width)
34153 \begin_layout Standard
34155 \change_inserted 2047637253 1447344362
34157 has a limited support for minipages whose size is automatically determined
34158 by the width of their contents, via the module
34160 Variable-width Minipages
34165 examples/varwidth-floats-side-by-side.lyx
34167 gives examples of variable-width minipages used for placing two floats
34169 This requires the \SpecialChar LaTeX
34179 \begin_layout Section
34181 \begin_inset CommandInset label
34183 name "sec:Parboxes"
34188 \begin_inset Index idx
34191 \begin_layout Plain Layout
34200 \begin_layout Standard
34201 Parboxes are very similar to minipages with the difference that they cannot
34203 \begin_inset Separator parbreak
34209 \begin_layout Standard
34211 \begin_inset Box Frameless
34221 height_special "totalheight"
34226 backgroundcolor "none"
34229 \begin_layout Plain Layout
34230 This a text within a parbox.
34231 This a text within a parbox.
34234 \begin_layout Plain Layout
34235 This footnote won't appear:
34239 \begin_layout Plain Layout
34240 This footnote is inside a parbox and will therefore not appear.
34253 \begin_layout Section
34254 Boxes for Words and Characters
34255 \begin_inset Index idx
34258 \begin_layout Plain Layout
34259 Boxes ! for Characters
34267 \begin_layout Subsection
34268 Prevent Hyphenation
34269 \begin_inset CommandInset label
34271 name "sec:Prevent-Hyphenation"
34276 \begin_inset Index idx
34279 \begin_layout Plain Layout
34280 Boxes ! to Prevent Hyphenation
34288 \begin_layout Standard
34289 You can use the box type
34293 to prevent words or text from being hyphenated.
34294 \begin_inset Newline newline
34297 Here is an example text:
34300 \begin_layout Standard
34301 This line is an example to show how you can prevent the hyphenation of
34302 \begin_inset Quotes eld
34306 \begin_inset Quotes erd
34312 \begin_layout Standard
34313 To prevent the hyphenation of the word
34314 \begin_inset Quotes eld
34318 \begin_inset Quotes erd
34321 , put the word into a box, set the
34324 \begin_inset space ~
34333 and use no explicit width.
34336 \begin_layout Standard
34337 This is the result:
34340 \begin_layout Standard
34341 This line is an example to show how you can prevent the hyphenation of
34342 \begin_inset Box Frameless
34352 height_special "totalheight"
34357 backgroundcolor "none"
34360 \begin_layout Plain Layout
34361 \begin_inset Quotes eld
34365 \begin_inset Quotes erd
34376 \begin_layout Standard
34377 You can alternatively set the command
34378 \begin_inset Quotes eld
34388 \begin_inset Quotes grd
34391 as \SpecialChar TeX
34392 Code directly before the word:
34395 \begin_layout Standard
34396 This line is an example to show how you can prevent the hyphenation of
34397 \begin_inset Quotes eld
34404 \begin_layout Plain Layout
34414 \begin_inset Quotes erd
34420 \begin_layout Standard
34421 Of course the word now protrudes over the side margin.
34422 To avoid this, add via the menu
34424 Insert\SpecialChar menuseparator
34425 Formatting\SpecialChar menuseparator
34427 \begin_inset space ~
34431 \begin_inset space ~
34439 arg "newline-insert newline"
34442 ) a line break before the word:
34445 \begin_layout Standard
34446 This line is an example to show how you can prevent the hyphenation of
34447 \begin_inset Newline newline
34451 \begin_inset Box Frameless
34461 height_special "totalheight"
34466 backgroundcolor "none"
34469 \begin_layout Plain Layout
34470 \begin_inset Quotes eld
34474 \begin_inset Quotes erd
34485 \begin_layout Subsection
34487 \begin_inset CommandInset label
34489 name "subsec:Vertical-Alignment"
34494 \begin_inset Index idx
34497 \begin_layout Plain Layout
34498 Boxes ! for Vertical Alignment
34504 \begin_inset Index idx
34507 \begin_layout Plain Layout
34516 \begin_layout Standard
34517 With the help of the command
34523 you can align words, characters or other boxes vertically relative to the
34531 is used with the following scheme:
34534 \begin_layout Standard
34539 raisebox{lift}[height][depth]{box content}
34542 \begin_layout Standard
34543 The lift can be a positive value to raise the box or a negative value to
34547 \begin_layout Standard
34548 To align for example the word
34549 \begin_inset Quotes eld
34553 \begin_inset Quotes erd
34556 so that the bottom of the
34557 \begin_inset Quotes eld
34561 \begin_inset Quotes erd
34565 \begin_inset Quotes eld
34569 \begin_inset Quotes erd
34572 is at the baseline, insert the command
34575 \begin_layout Standard
34585 \begin_layout Standard
34586 in \SpecialChar TeX
34587 Code before the word.
34588 After the word insert a closing brace
34589 \begin_inset Quotes eld
34597 \begin_inset Quotes erd
34600 in \SpecialChar TeX
34602 \begin_inset Newline newline
34605 This is the result:
34608 \begin_layout Standard
34609 This is a text line with the word
34613 \begin_layout Plain Layout
34625 \begin_inset Quotes eld
34629 \begin_inset Quotes erd
34636 \begin_layout Plain Layout
34646 \begin_layout Standard
34647 \begin_inset VSpace bigskip
34650 When you raise or lower characters in a line, the line distance will be
34654 \begin_layout Standard
34655 This is a text line with the word
34659 \begin_layout Plain Layout
34671 \begin_inset Quotes eld
34675 \begin_inset Quotes erd
34682 \begin_layout Plain Layout
34690 \begin_inset Newline newline
34693 This is a text line with the word
34697 \begin_layout Plain Layout
34707 \begin_inset Quotes eld
34711 \begin_inset Quotes erd
34718 \begin_layout Plain Layout
34728 \begin_layout Standard
34729 If you want to prevent this for a certain reason, set the box height to
34734 \begin_layout Standard
34744 \begin_layout Standard
34745 This is a text line with the word
34749 \begin_layout Plain Layout
34761 \begin_inset Quotes eld
34765 \begin_inset Quotes erd
34772 \begin_layout Plain Layout
34780 \begin_inset Newline newline
34784 \begin_inset Newline newline
34787 This is a text line with the word
34791 \begin_layout Plain Layout
34795 raisebox{0.5cm}[0pt]{
34801 \begin_inset Quotes eld
34805 \begin_inset Quotes erd
34812 \begin_layout Plain Layout
34822 \begin_layout Section
34824 \begin_inset CommandInset label
34826 name "sec:Colored-Boxes"
34831 \begin_inset Index idx
34834 \begin_layout Plain Layout
34843 \begin_layout Standard
34844 To color the background of a box just select the color you like in the box
34846 This is for example a box with orange background:
34847 \begin_inset Box Frameless
34857 height_special "totalheight"
34862 backgroundcolor "orange"
34865 \begin_layout Plain Layout
34866 Box with orange background
34874 \begin_layout Standard
34875 If you use the decoration
34878 \begin_inset space ~
34882 \begin_inset space ~
34887 you can set a frame color.
34888 In this case you must also specify a background color (LyX sets white as
34890 Here is an example:
34891 \begin_inset Box Boxed
34901 height_special "totalheight"
34906 backgroundcolor "yellow"
34909 \begin_layout Plain Layout
34910 Box with teal frame color and yellow background color
34918 \begin_layout Standard
34919 \begin_inset VSpace bigskip
34922 Of course you can also have colored text inside a colored box:
34923 \begin_inset Newline newline
34927 \begin_inset Box Boxed
34937 height_special "totalheight"
34942 backgroundcolor "magenta"
34945 \begin_layout Plain Layout
34948 This is colored text within a colored, framed box
34956 \begin_layout Standard
34957 \begin_inset VSpace bigskip
34963 \begin_layout Standard
34964 If you need another color than the predefined ones, you can define your
34965 own color as described in section
34966 \begin_inset space ~
34970 \begin_inset CommandInset ref
34972 reference "sec:Colored-Tables"
34977 To use your own color you must typeset the box by using TeX code:
34980 \begin_layout Standard
34981 Colored boxes without frame are created with the command
34988 It has the following scheme:
34991 \begin_layout Standard
34996 colorbox{color}{box content}
34999 \begin_layout Standard
35000 The box content can also be a box and colored boxes can also be within other
35003 \begin_inset space \thinspace{}
35007 \begin_inset space \space{}
35010 a darkgreen background for a word, insert the command
35013 \begin_layout Standard
35018 colorbox{darkgreen}{
35021 \begin_layout Standard
35022 before the word in \SpecialChar TeX
35024 After the word insert a closing brace
35025 \begin_inset Quotes eld
35033 \begin_inset Quotes erd
35036 in \SpecialChar TeX
35038 \begin_inset Newline newline
35041 This is the result:
35044 \begin_layout Standard
35045 This is a line where the word
35049 \begin_layout Plain Layout
35053 colorbox{darkgreen}{
35059 \begin_inset Quotes eld
35063 \begin_inset Quotes erd
35070 \begin_layout Plain Layout
35077 has a darkgreen background.
35080 \begin_layout Standard
35081 Framed, colored boxes are created with the command
35088 It has the following scheme:
35091 \begin_layout Standard
35096 fcolorbox{frame color}{box color}{box content}
35099 \begin_layout Section
35100 Rotated and Scaled Boxes
35103 \begin_layout Standard
35104 To use the boxes described in this section, the module
35108 must be loaded in the document settings.
35111 \begin_layout Standard
35112 \begin_inset Note Greyedout
35115 \begin_layout Plain Layout
35120 Not all DVI viewers are able to display rotated or scaled material.
35128 \begin_layout Standard
35129 \begin_inset Note Greyedout
35132 \begin_layout Plain Layout
35137 Floats are not allowed inside a rotated or scaled box.
35145 \begin_layout Subsection
35147 \begin_inset Index idx
35150 \begin_layout Plain Layout
35157 \begin_inset Index idx
35160 \begin_layout Plain Layout
35169 \begin_layout Standard
35170 To rotate material, you can put it into a
35175 Such a box is inserted via the menu
35177 Insert\SpecialChar menuseparator
35178 Custom Insets\SpecialChar menuseparator
35184 \begin_layout Standard
35185 The rotation origin can be specified via the inset
35191 Insert\SpecialChar menuseparator
35199 The following positions are possible:
35219 (top), along with meaningful combinations of the four base positions.
35224 means that the rotation origin is at the top left corner of the box.
35225 When no rotation origin is specified, the position
35230 The rotation angle is a number that can be negative that specifies the
35232 The rotation direction is counterclockwise.
35235 \begin_layout Standard
35236 In the following example
35240 was inserted to the
35248 was inserted to the
35255 \begin_layout Standard
35257 \begin_inset Flex Rotatebox
35260 \begin_layout Plain Layout
35261 \begin_inset Argument 1
35264 \begin_layout Plain Layout
35271 \begin_inset Argument 2
35274 \begin_layout Plain Layout
35288 \begin_layout Standard
35289 The box content can also be another box or an inline formula:
35292 \begin_layout Standard
35294 \begin_inset Flex Rotatebox
35297 \begin_layout Plain Layout
35298 \begin_inset Argument 1
35301 \begin_layout Plain Layout
35308 \begin_inset Argument 2
35311 \begin_layout Plain Layout
35318 \begin_inset Box Doublebox
35328 height_special "totalheight"
35333 backgroundcolor "none"
35336 \begin_layout Plain Layout
35348 \begin_inset Flex Rotatebox
35351 \begin_layout Plain Layout
35352 \begin_inset Argument 1
35355 \begin_layout Plain Layout
35362 \begin_inset Argument 2
35365 \begin_layout Plain Layout
35372 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35383 \begin_layout Standard
35384 or an image or table:
35387 \begin_layout Standard
35389 \begin_inset Flex Rotatebox
35392 \begin_layout Plain Layout
35393 \begin_inset Argument 1
35396 \begin_layout Plain Layout
35403 \begin_inset Argument 2
35406 \begin_layout Plain Layout
35413 \begin_inset Graphics
35414 filename clipart/platypus.eps
35425 with a rotated image
35426 \begin_inset Flex Rotatebox
35429 \begin_layout Plain Layout
35430 \begin_inset Argument 2
35433 \begin_layout Plain Layout
35440 \begin_inset Tabular
35441 <lyxtabular version="3" rows="2" columns="2">
35442 <features tabularvalignment="middle">
35443 <column alignment="center" valignment="top">
35444 <column alignment="center" valignment="top">
35446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35449 \begin_layout Plain Layout
35455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35458 \begin_layout Plain Layout
35466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35469 \begin_layout Plain Layout
35475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35478 \begin_layout Plain Layout
35495 \begin_inset Index idx
35498 \begin_layout Plain Layout
35505 \begin_inset Index idx
35508 \begin_layout Plain Layout
35509 Table Customization ! Rotating
35517 \begin_layout Standard
35518 \begin_inset Note Greyedout
35521 \begin_layout Plain Layout
35530 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35532 errors when viewing/exporting the document.
35540 \begin_layout Subsection
35542 \begin_inset Index idx
35545 \begin_layout Plain Layout
35552 \begin_inset Index idx
35555 \begin_layout Plain Layout
35564 \begin_layout Standard
35565 To scale material put it into a
35570 Such a box is inserted via the menu
35572 Insert\SpecialChar menuseparator
35573 Custom Insets\SpecialChar menuseparator
35579 \begin_layout Standard
35584 inset has the mandatory inset
35588 and the optional inset
35592 (inserted via the menu
35594 Insert\SpecialChar menuseparator
35598 Input there there horizontal and vertical scale factor, respectively.
35603 inset is used, the horizontal factor will also be used as the vertical
35607 \begin_layout Standard
35608 To get for example the double text size, compared to the document text size,
35619 \begin_inset Flex Scalebox
35622 \begin_layout Plain Layout
35623 \begin_inset Argument 1
35626 \begin_layout Plain Layout
35640 \begin_layout Standard
35658 \begin_inset Flex Scalebox
35661 \begin_layout Plain Layout
35662 \begin_inset Argument 1
35665 \begin_layout Plain Layout
35672 \begin_inset Argument 2
35675 \begin_layout Plain Layout
35689 \begin_layout Standard
35690 If the scaling factor is negative, the box content will be mirrored.
35707 can be used to create mirror writing:
35708 \begin_inset Flex Scalebox
35711 \begin_layout Plain Layout
35712 \begin_inset Argument 1
35715 \begin_layout Plain Layout
35722 \begin_inset Argument 2
35725 \begin_layout Plain Layout
35739 \begin_layout Standard
35757 \begin_inset Flex Scalebox
35760 \begin_layout Plain Layout
35761 \begin_inset Argument 1
35764 \begin_layout Plain Layout
35771 \begin_inset Argument 2
35774 \begin_layout Plain Layout
35788 \begin_layout Standard
35795 Insert\SpecialChar menuseparator
35796 Custom Insets\SpecialChar menuseparator
35822 \begin_layout Standard
35823 \begin_inset Note Greyedout
35826 \begin_layout Plain Layout
35835 inset is empty or contains other characters than numbers you will get LaTeX
35836 errors when viewing/exporting the document.
35844 \begin_layout Standard
35845 \begin_inset VSpace bigskip
35854 Insert\SpecialChar menuseparator
35855 Custom Insets\SpecialChar menuseparator
35858 ) is used to scale the content to a defined width and height.
35863 inset has the mandatory inset
35867 and the optional inset
35871 (inserted via the menu
35873 Insert\SpecialChar menuseparator
35877 Input there there width and height, respectively, as value with a unit.
35879 \begin_inset CommandInset ref
35881 reference "tab:Units"
35885 lists the possible units.
35886 If there is an exclamation mark
35890 in of of the two insets, the size is set so that the aspect ratio of the
35891 box content is kept.
35896 inset is used an exclamation mark will internally be used for the height.
35899 \begin_layout Standard
35917 \begin_inset Flex Resizebox
35920 \begin_layout Plain Layout
35921 \begin_inset Argument 1
35924 \begin_layout Plain Layout
35931 \begin_inset Argument 2
35934 \begin_layout Plain Layout
35946 \begin_inset Newline newline
35970 \begin_inset Flex Resizebox
35973 \begin_layout Plain Layout
35974 \begin_inset Argument 1
35977 \begin_layout Plain Layout
35984 \begin_inset Argument 2
35987 \begin_layout Plain Layout
36001 \begin_layout Standard
36002 \begin_inset Note Greyedout
36005 \begin_layout Plain Layout
36014 inset is empty or contains an invalid unit you will get LaTeX errors when
36015 viewing/exporting the document.
36023 \begin_layout Standard
36024 \begin_inset VSpace bigskip
36030 \begin_layout Standard
36031 The boxes can be combined in any order.
36040 which is in turn inside a
36047 \begin_layout Standard
36050 \begin_inset Flex Rotatebox
36053 \begin_layout Plain Layout
36054 \begin_inset Argument 1
36057 \begin_layout Plain Layout
36064 \begin_inset Argument 2
36067 \begin_layout Plain Layout
36074 \begin_inset Flex Resizebox
36077 \begin_layout Plain Layout
36078 \begin_inset Argument 1
36081 \begin_layout Plain Layout
36088 \begin_inset Flex Reflectbox
36091 \begin_layout Plain Layout
36110 \begin_layout Standard
36112 Images, tables, and inline formulas are allowed as box content:
36115 \begin_layout Standard
36118 \begin_inset Flex Resizebox
36121 \begin_layout Plain Layout
36122 \begin_inset Argument 1
36125 \begin_layout Plain Layout
36132 \begin_inset Flex Reflectbox
36135 \begin_layout Plain Layout
36136 \begin_inset Graphics
36137 filename clipart/platypus.eps
36154 \begin_inset Flex Resizebox
36157 \begin_layout Plain Layout
36158 \begin_inset Argument 1
36161 \begin_layout Plain Layout
36168 \begin_inset Flex Reflectbox
36171 \begin_layout Plain Layout
36172 \begin_inset Tabular
36173 <lyxtabular version="3" rows="2" columns="2">
36174 <features tabularvalignment="middle">
36175 <column alignment="center" valignment="top">
36176 <column alignment="center" valignment="top">
36178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36181 \begin_layout Plain Layout
36187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36190 \begin_layout Plain Layout
36198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36201 \begin_layout Plain Layout
36207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36210 \begin_layout Plain Layout
36232 \begin_inset Flex Resizebox
36235 \begin_layout Plain Layout
36236 \begin_inset Argument 1
36239 \begin_layout Plain Layout
36246 \begin_inset Flex Reflectbox
36249 \begin_layout Plain Layout
36250 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36264 \begin_inset Index idx
36267 \begin_layout Plain Layout
36274 \begin_inset Index idx
36277 \begin_layout Plain Layout
36278 Table Customization ! Scaling
36286 \begin_layout Standard
36287 When the global formula style
36291 is used in the document
36295 \begin_layout Plain Layout
36297 \begin_inset Quotes eld
36301 \begin_inset Quotes erd
36304 is added to the document class options.
36309 , display style formulas can also be scaled.
36312 \begin_layout Chapter
36313 Objects Surrounded by Text
36314 \begin_inset Index idx
36317 \begin_layout Plain Layout
36326 \begin_layout Section
36328 \begin_inset CommandInset label
36330 name "sec:Wrap-Floats"
36335 \begin_inset Index idx
36338 \begin_layout Plain Layout
36339 Floats ! Wrap Floats
36345 \begin_inset Index idx
36348 \begin_layout Plain Layout
36349 Surrounded by text ! Wrap Floats
36357 \begin_layout Standard
36358 \begin_inset Wrap figure
36365 \begin_layout Plain Layout
36366 \begin_inset Graphics
36367 filename clipart/mobius.eps
36369 scaleBeforeRotation
36370 rotateOrigin center
36377 \begin_layout Plain Layout
36378 \begin_inset Caption Standard
36380 \begin_layout Plain Layout
36381 \begin_inset CommandInset label
36383 name "fig:This-is-a"
36387 This is a figure wrap float.
36397 This float type is used if you want to wrap text around a figure or table
36398 so that it only occupies some fraction of the column width.
36399 It can be inserted using the menu
36401 Insert\SpecialChar menuseparator
36402 Floats\SpecialChar menuseparator
36404 \begin_inset space ~
36408 \begin_inset space ~
36416 \begin_inset space ~
36420 \begin_inset space ~
36425 if the \SpecialChar LaTeX
36431 \begin_inset Index idx
36434 \begin_layout Plain Layout
36436 -packages ! wrapfig
36445 \begin_layout Plain Layout
36446 Installing a \SpecialChar LaTeX
36447 -package is explained it in the
36451 \begin_inset space ~
36461 The settings of the float can be modified by right-clicking on the float
36463 The mandatory settings are the float
36476 that specifies how much the float is set into the paragraph
36477 \begin_inset space \thinspace{}
36481 \begin_inset space \thinspace{}
36484 page margin, and the
36487 \begin_inset space ~
36492 that specifies how many text lines the float will approximately need.
36493 The line span is often hard to approximate; so it is better only to use
36494 it when you encounter float placement problems.
36495 You can furthermore decide if \SpecialChar LaTeX
36496 is allowed to let the float float within
36497 the paragraph or to surrounding paragraphs.
36499 \begin_inset space ~
36503 \begin_inset CommandInset ref
36505 reference "fig:This-is-a"
36509 is an example text wrap float with a width of 40
36510 \begin_inset space \thinspace{}
36514 \begin_inset space \thinspace{}
36517 cm overhang, set to the left.
36520 \begin_layout Standard
36521 \begin_inset Note Greyedout
36524 \begin_layout Plain Layout
36530 \begin_inset space ~
36533 wrap float floats are fragile! E.
36534 \begin_inset space \thinspace{}
36538 \begin_inset space \space{}
36541 having a figure too close to the bottom of the page can mess things up in
36542 such a way that the float does not appear in the output or that it is placed
36543 over some other text.
36551 \begin_layout Standard
36552 In general, the following applies for wrap floats:
36555 \begin_layout Itemize
36556 They should not be placed in paragraphs that run over a page break.
36557 That means that wrap floats are better inserted in their exact place when
36558 the document is almost finished and you are able to estimate where page
36559 breaks will appear.
36562 \begin_layout Itemize
36563 They should either be placed in their own paragraph before the paragraph
36564 where they should wrap into or within a paragraph.
36567 \begin_layout Itemize
36568 In consecutive paragraphs they may cause troubles, so ensure that there
36569 is a text paragraph between them as separator.
36572 \begin_layout Itemize
36573 They are not allowed in section headings or tables.
36576 \begin_layout Itemize
36577 Their numbering and referencing works as described in chap.
36578 \begin_inset space \thinspace{}
36582 \begin_inset CommandInset ref
36584 reference "chap:Floats"
36591 \begin_layout Section
36592 Surrounded Fixed Objects
36593 \begin_inset Index idx
36596 \begin_layout Plain Layout
36597 Surrounded by text ! Fixed objects
36605 \begin_layout Standard
36606 The wrap floats described in sec.
36607 \begin_inset space \thinspace{}
36611 \begin_inset CommandInset ref
36613 reference "sec:Wrap-Floats"
36617 have these positions in the paragraph:
36618 \begin_inset Separator parbreak
36624 \begin_layout Standard
36627 \begin_inset Tabular
36628 <lyxtabular version="3" rows="2" columns="2">
36629 <features tabularvalignment="middle">
36630 <column alignment="center" valignment="top">
36631 <column alignment="center" valignment="top">
36633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36636 \begin_layout Plain Layout
36637 \begin_inset Graphics
36638 filename ../images/dialog-show-new-inset_graphics.png
36640 scaleBeforeRotation
36649 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36652 \begin_layout Plain Layout
36660 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36663 \begin_layout Plain Layout
36669 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36672 \begin_layout Plain Layout
36684 \begin_inset Tabular
36685 <lyxtabular version="3" rows="2" columns="2">
36686 <features tabularvalignment="middle">
36687 <column alignment="center" valignment="top">
36688 <column alignment="center" valignment="top">
36690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36693 \begin_layout Plain Layout
36699 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36702 \begin_layout Plain Layout
36703 \begin_inset Graphics
36704 filename ../images/dialog-show-new-inset_graphics.png
36706 scaleBeforeRotation
36717 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36720 \begin_layout Plain Layout
36726 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36729 \begin_layout Plain Layout
36743 \begin_layout Standard
36744 To get an object exactly at the position where it is inserted, for example
36745 to get one of these positions:
36746 \begin_inset VSpace defskip
36752 \begin_layout Standard
36755 \begin_inset Tabular
36756 <lyxtabular version="3" rows="2" columns="2">
36757 <features tabularvalignment="middle">
36758 <column alignment="center" valignment="top">
36759 <column alignment="center" valignment="top">
36761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36764 \begin_layout Plain Layout
36770 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36773 \begin_layout Plain Layout
36781 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36784 \begin_layout Plain Layout
36785 \begin_inset Graphics
36786 filename ../images/dialog-show-new-inset_graphics.png
36788 scaleBeforeRotation
36797 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36800 \begin_layout Plain Layout
36812 \begin_inset Tabular
36813 <lyxtabular version="3" rows="2" columns="2">
36814 <features tabularvalignment="middle">
36815 <column alignment="center" valignment="top">
36816 <column alignment="center" valignment="top">
36818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36821 \begin_layout Plain Layout
36827 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36830 \begin_layout Plain Layout
36838 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36841 \begin_layout Plain Layout
36847 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36850 \begin_layout Plain Layout
36851 \begin_inset Graphics
36852 filename ../images/dialog-show-new-inset_graphics.png
36854 scaleBeforeRotation
36869 \begin_inset Tabular
36870 <lyxtabular version="3" rows="2" columns="3">
36871 <features tabularvalignment="middle">
36872 <column alignment="center" valignment="top">
36873 <column alignment="center" valignment="top">
36874 <column alignment="center" valignment="top">
36876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36879 \begin_layout Plain Layout
36885 <cell alignment="center" valignment="top" topline="true" usebox="none">
36888 \begin_layout Plain Layout
36889 \begin_inset Graphics
36890 filename ../images/dialog-show-new-inset_graphics.png
36892 scaleBeforeRotation
36901 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36904 \begin_layout Plain Layout
36912 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36915 \begin_layout Plain Layout
36921 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36924 \begin_layout Plain Layout
36930 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36933 \begin_layout Plain Layout
36945 \begin_inset Tabular
36946 <lyxtabular version="3" rows="2" columns="3">
36947 <features tabularvalignment="middle">
36948 <column alignment="center" valignment="top">
36949 <column alignment="center" valignment="top">
36950 <column alignment="center" valignment="top">
36952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36955 \begin_layout Plain Layout
36961 <cell alignment="center" valignment="top" topline="true" usebox="none">
36964 \begin_layout Plain Layout
36970 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36973 \begin_layout Plain Layout
36981 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36984 \begin_layout Plain Layout
36990 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36993 \begin_layout Plain Layout
36994 \begin_inset Graphics
36995 filename ../images/dialog-show-new-inset_graphics.png
36997 scaleBeforeRotation
37006 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37009 \begin_layout Plain Layout
37023 \begin_layout Standard
37026 \begin_inset Tabular
37027 <lyxtabular version="3" rows="3" columns="2">
37028 <features tabularvalignment="middle">
37029 <column alignment="center" valignment="top">
37030 <column alignment="center" valignment="top">
37032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37035 \begin_layout Plain Layout
37041 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37044 \begin_layout Plain Layout
37052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37055 \begin_layout Plain Layout
37056 \begin_inset Graphics
37057 filename ../images/dialog-show-new-inset_graphics.png
37059 scaleBeforeRotation
37068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37071 \begin_layout Plain Layout
37079 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37082 \begin_layout Plain Layout
37088 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37091 \begin_layout Plain Layout
37103 \begin_inset Tabular
37104 <lyxtabular version="3" rows="3" columns="3">
37105 <features tabularvalignment="middle">
37106 <column alignment="center" valignment="top">
37107 <column alignment="center" valignment="top">
37108 <column alignment="center" valignment="top">
37110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37113 \begin_layout Plain Layout
37119 <cell alignment="center" valignment="top" topline="true" usebox="none">
37122 \begin_layout Plain Layout
37128 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37131 \begin_layout Plain Layout
37139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37142 \begin_layout Plain Layout
37148 <cell alignment="center" valignment="top" usebox="none">
37151 \begin_layout Plain Layout
37152 \begin_inset Graphics
37153 filename ../images/dialog-show-new-inset_graphics.png
37155 scaleBeforeRotation
37164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37167 \begin_layout Plain Layout
37175 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37178 \begin_layout Plain Layout
37184 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37187 \begin_layout Plain Layout
37193 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37196 \begin_layout Plain Layout
37208 \begin_inset Tabular
37209 <lyxtabular version="3" rows="3" columns="2">
37210 <features tabularvalignment="middle">
37211 <column alignment="center" valignment="top">
37212 <column alignment="center" valignment="top">
37214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37217 \begin_layout Plain Layout
37223 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37226 \begin_layout Plain Layout
37234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37237 \begin_layout Plain Layout
37243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37246 \begin_layout Plain Layout
37247 \begin_inset Graphics
37248 filename ../images/dialog-show-new-inset_graphics.png
37250 scaleBeforeRotation
37261 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37264 \begin_layout Plain Layout
37270 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37273 \begin_layout Plain Layout
37287 \begin_layout Standard
37289 you can use the \SpecialChar LaTeX
37295 \begin_inset Index idx
37298 \begin_layout Plain Layout
37300 -packages ! picinpar
37306 Here is an example:
37309 \begin_layout Standard
37313 \begin_layout Plain Layout
37323 \begin_inset Note Note
37326 \begin_layout Plain Layout
37327 The following section will only be displayed when the \SpecialChar LaTeX
37340 \begin_layout Standard
37344 \begin_layout Plain Layout
37348 begin{window}[2,c,{
37354 \begin_inset Graphics
37355 filename clipart/mobius.eps
37358 scaleBeforeRotation
37359 rotateOrigin center
37367 \begin_layout Plain Layout
37372 \begin_layout Plain Layout
37381 It was in the spring of the year 1894 that all London was interested, and
37382 the fashionable world dismayed, by the murder of the Honourable Ronald
37383 Adair under most unusual and inexplicable circumstances.
37384 The public has already learned those particulars of the crime which
37390 \begin_layout Plain Layout
37401 came out in the police investigation, but a good deal was suppressed upon
37402 that occasion, since the case for the prosecution was so overwhelmingly
37403 strong that it was not necessary to bring forward all the facts.
37404 Only now, at the end of nearly ten years, am I allowed to supply those
37405 missing links which make up the whole of that remarkable chain.
37411 \begin_layout Plain Layout
37423 \begin_layout Standard
37427 \begin_layout Plain Layout
37436 Footnote of the paragraph with the fixed object.
37440 \begin_layout Plain Layout
37450 \begin_layout Standard
37451 Surrounded fixed objects are used to let text float around them, at which
37452 the object's position in the paragraph can be determined by the number
37454 In contrary to floats is it not possible to have a numbered caption.
37457 \begin_layout Standard
37458 A fixed object is inserted by adding the command
37461 \begin_layout Standard
37466 begin{window}[2,c,{
37469 \begin_layout Standard
37470 as \SpecialChar TeX
37471 Code at the beginning of the paragraph.
37472 The first parameter in the bracket, here '2', defines the number of lines
37473 above the object, the second, here 'c', the position of the object.
37474 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37475 Behind the command you insert the object.
37476 In this example an image with a width of 40
37477 \begin_inset space \thinspace{}
37480 % of the text column width was inserted.
37481 The object can also be a table, a box or an equation.
37482 Behind the object the command
37485 \begin_layout Standard
37488 },description text]
37489 \begin_inset Newline newline
37495 \begin_layout Standard
37498 \begin_inset Quotes eld
37506 \begin_inset Quotes erd
37509 is in the second line.
37510 The description text is optional.
37511 The text surrounding the object must be in the same paragraph as the object,
37512 so it must begin directly after the
37517 At the end of the paragraph insert the command:
37520 \begin_layout Standard
37528 \begin_layout Standard
37529 Within a paragraph with a fixed object, you cannot insert footnotes in the
37531 You have to use instead the command
37537 inside the paragraph and outside the command
37543 as described in sec.
37544 \begin_inset space \thinspace{}
37548 \begin_inset CommandInset ref
37550 reference "sec:Footnotes"
37557 \begin_layout Standard
37561 \begin_layout Plain Layout
37571 \begin_inset Note Note
37574 \begin_layout Plain Layout
37575 The following will be displayed when the \SpecialChar LaTeX
37588 \begin_layout Standard
37589 You need to install the \SpecialChar LaTeX
37594 to see the following part of this section in the output.
37597 \begin_layout Standard
37601 \begin_layout Plain Layout
37613 \begin_layout Section
37615 \begin_inset Index idx
37618 \begin_layout Plain Layout
37625 \begin_inset Index idx
37628 \begin_layout Plain Layout
37629 Surrounded by text ! Initials
37637 \begin_layout Standard
37638 To use initials, you must have the \SpecialChar LaTeX
37644 \begin_inset Index idx
37647 \begin_layout Plain Layout
37649 -packages ! lettrine
37654 installed and use the module
37658 in your document (menu
37660 Document\SpecialChar menuseparator
37661 Settings\SpecialChar menuseparator
37665 To insert an initial, use the style
37670 This style has a mandatory and two optional arguments.
37671 The arguments are inserted via the
37676 The mandatory argument
37680 contains the letter(s) that is the initial, the argument
37683 \begin_inset space ~
37687 \begin_inset space ~
37692 contains the rest of the word or text of the initial letter(s).
37697 contains parameters to modify the initial.
37698 For more information about the possible parameters see the documentation
37704 \begin_inset CommandInset citation
37711 The style itself contains the text that is surrounding the initial.
37712 The usual style is hereby that the word whose first letter is the initial,
37720 \begin_layout Standard
37721 Here are some examples:
37724 \begin_layout Standard
37728 \begin_layout Plain Layout
37738 \begin_inset Note Note
37741 \begin_layout Plain Layout
37742 The following section will only be displayed when the \SpecialChar LaTeX
37755 \begin_layout Enumerate
37756 No optional argument, the initial is the letter 'I' in the math font
37757 \begin_inset Formula $\mathfrak{Fraktur}$
37761 \begin_inset Separator parbreak
37768 \begin_layout Initial
37769 \begin_inset Argument 2
37772 \begin_layout Plain Layout
37773 \begin_inset Formula $\mathfrak{I}$
37782 \begin_inset Argument 3
37785 \begin_layout Plain Layout
37791 was in the spring of the year 1894 that all London was interested, and
37792 the fashionable world dismayed, by the murder of the Honourable Ronald
37793 Adair under most unusual and inexplicable circumstances.
37794 The public has already learned those particulars of the crime which came
37795 out in the police investigation, but a good deal was suppressed upon that
37796 occasion, since the case for the prosecution was so overwhelmingly strong
37797 that it was not necessary to bring forward all the facts.
37798 \begin_inset Newpage newpage
37805 \begin_layout Enumerate
37806 Only one line is surrounding the initial, which is formed by two letters
37807 in standard font and no text is printed in small caps:
37808 \begin_inset Separator parbreak
37815 \begin_layout Initial
37816 \begin_inset Argument 1
37819 \begin_layout Plain Layout
37826 \begin_inset Argument 2
37829 \begin_layout Plain Layout
37835 was in the spring of the year 1894 that all London was interested, and
37836 the fashionable world dismayed, by the murder of the Honourable Ronald
37837 Adair under most unusual and inexplicable circumstances.
37838 The public has already learned those particulars of the crime which came
37839 out in the police investigation, but a good deal was suppressed upon that
37840 occasion, since the case for the prosecution was so overwhelmingly strong
37841 that it was not necessary to bring forward all the facts.
37845 \begin_layout Enumerate
37846 Magenta, hanging initial over 3
37847 \begin_inset space ~
37850 lines in the math font
37851 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37855 \begin_inset Quotes eld
37858 t was in the spring
37859 \begin_inset Quotes erd
37866 ; to color the initial, you must insert this command before the initial:
37867 \begin_inset Newline newline
37881 \begin_inset Newline newline
37889 \begin_inset Quotes eld
37893 \begin_inset Quotes erd
37897 \begin_inset Quotes eld
37901 \begin_inset Quotes erd
37905 \begin_inset Quotes eld
37909 \begin_inset Quotes erd
37913 \begin_inset Quotes eld
37917 \begin_inset Quotes erd
37921 \begin_inset Quotes eld
37925 \begin_inset Quotes erd
37929 \begin_inset Quotes eld
37933 \begin_inset Quotes erd
37937 \begin_inset Quotes eld
37941 \begin_inset Quotes erd
37945 \begin_inset Quotes eld
37949 \begin_inset Quotes erd
37952 , and add this command to the document preamble:
37953 \begin_inset Newline newline
37960 @ifundefined{textcolor}
37961 \begin_inset Newline newline
37965 \begin_inset space ~
37970 usepackage{color}}{}
37973 \begin_inset Separator parbreak
37980 \begin_layout Standard
37984 \begin_layout Plain Layout
37998 \begin_inset Note Note
38001 \begin_layout Plain Layout
38002 makes the initial magenta
38010 \begin_layout Initial
38011 \begin_inset Argument 1
38014 \begin_layout Plain Layout
38015 lines=3, lhang=0.33, loversize=0.25
38021 \begin_inset Argument 2
38024 \begin_layout Plain Layout
38025 \begin_inset Formula $\mathcal{I}$
38034 \begin_inset Argument 3
38037 \begin_layout Plain Layout
38038 t was in the spring
38043 of the year 1894 that all London was interested, and the fashionable world
38044 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38045 and inexplicable circumstances.
38046 The public has already learned those particulars of the crime which came
38047 out in the police investigation, but a good deal was suppressed upon that
38048 occasion, since the case for the prosecution was so overwhelmingly strong
38049 that it was not necessary to bring forward all the facts.
38053 \begin_layout Standard
38057 \begin_layout Plain Layout
38067 \begin_inset Note Note
38070 \begin_layout Plain Layout
38071 The following will be displayed when the \SpecialChar LaTeX
38084 \begin_layout Standard
38085 You need to install the \SpecialChar LaTeX
38090 to see the following part of this section in the output.
38093 \begin_layout Standard
38097 \begin_layout Plain Layout
38109 \begin_layout Chapter
38110 External Document Parts
38111 \begin_inset Index idx
38114 \begin_layout Plain Layout
38115 External Document Parts
38123 \begin_layout Standard
38126 Insert\SpecialChar menuseparator
38129 you can insert external material into your document.
38133 \begin_layout Description
38135 \begin_inset space ~
38138 Document Another \SpecialChar LyX
38139 document; its content is directly inserted to your document.
38142 \begin_layout Description
38144 \begin_inset space ~
38147 Text A text document; each line is inserted in your document as a separate
38151 \begin_layout Description
38153 \begin_inset space ~
38157 \begin_inset space ~
38161 \begin_inset space ~
38164 Lines A text document; text lines are inserted in your document continuously
38165 but an empty text line creates a new paragraph.
38168 \begin_layout Description
38170 \begin_inset space ~
38173 Material Files in various formats.
38176 \begin_layout Description
38178 \begin_inset space ~
38181 Document \SpecialChar LyX
38182 or \SpecialChar LaTeX
38186 \begin_layout Section
38188 \begin_inset Index idx
38191 \begin_layout Plain Layout
38192 External Document Parts ! External Material
38200 \begin_layout Standard
38201 The external material feature allows you to insert files into your document
38202 without converting them to a format that can be read by the document output
38205 takes care of the necessary conversions.
38206 This is similar to images that can be inserted in various image formats
38207 in \SpecialChar LyX
38209 When you have enabled Instant Preview in \SpecialChar LyX
38210 's preferences under
38213 \begin_inset space ~
38217 \begin_inset space ~
38220 feel\SpecialChar menuseparator
38223 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38227 \begin_layout Standard
38228 External material can be inserted via the
38232 dialog that is accessible with the menu
38234 Insert\SpecialChar menuseparator
38235 File\SpecialChar menuseparator
38237 \begin_inset space ~
38243 Currently the following file types (
38250 \begin_layout Description
38251 ChessDiagram This template supports chess position diagrams made with the
38255 \begin_inset CommandInset href
38258 target "http://en.wikipedia.org/wiki/XBoard"
38267 \begin_layout Description
38268 Date This inserts the date in the form
38273 This is a date inserted as external material:
38274 \begin_inset External
38281 \begin_inset space ~
38285 \begin_inset Note Note
38288 \begin_layout Plain Layout
38289 Remove the protected space when bug 4398 is fixed!
38295 \begin_inset Newline newline
38298 The date is not shown within \SpecialChar LyX
38299 , only in the output.
38300 There are two other methods of inserting a date: Via menu
38302 Insert\SpecialChar menuseparator
38305 and with the \SpecialChar LaTeX
38312 as \SpecialChar TeX
38314 The different methods are compared in Table
38315 \begin_inset space ~
38319 \begin_inset CommandInset ref
38321 reference "tab:Comparison-of-the"
38328 \begin_layout Description
38329 Dia This template supports diagrams created with the program
38332 \begin_inset CommandInset href
38335 target "http://en.wikipedia.org/wiki/Dia_(software)"
38344 \begin_layout Description
38345 GnumericSpreadsheet With this template you can insert spreadsheets
38346 \begin_inset space \thinspace{}
38350 \begin_inset space \thinspace{}
38353 tables in the format of
38356 \begin_inset CommandInset href
38359 target "http://en.wikipedia.org/wiki/Gnumeric"
38366 \begin_inset CommandInset href
38368 name "OpenDocument"
38369 target "http://en.wikipedia.org/wiki/OpenDocument"
38374 \begin_inset CommandInset href
38376 name "Microsoft Office XML"
38377 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38382 \begin_inset CommandInset href
38384 name "Office Open XML"
38385 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38390 For this feature \SpecialChar LyX
38391 must have found the program
38395 during its configuration.
38396 This program is part of Gnumeric, so that you must have Gnumeric installed,
38397 also if you don't have tables in the Gnumeric format.
38398 For examples and possible limitations have a look at \SpecialChar LyX
38406 \begin_layout Description
38407 LilyPond This template is used for music notation typeset with the program
38408 \begin_inset Newline linebreak
38414 \begin_inset CommandInset href
38417 target "http://en.wikipedia.org/wiki/LilyPond"
38424 For \SpecialChar LyX
38425 's extended support for LilyPond have a look at \SpecialChar LyX
38433 \begin_layout Description
38434 PDFPages With this template you can insert PDF documents to your document.
38435 To specify the range of pages that should be included, use the option
38445 LaTeX and LyX options
38448 The argument of this option is a comma separated list, containing page
38449 numbers (insert as option
38453 ), ranges of page numbers (
38457 ) or any combination.
38458 To insert empty pages use {}.
38460 \begin_inset space \thinspace{}
38464 \begin_inset space ~
38469 pages={3,{},8-11,15}
38471 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38472 Page ranges are specified in the syntax
38481 This selects all pages from
38494 defaults to the first page; omitting
38498 defaults to the last page of the document.
38499 The last page can also be selected with the keyword
38504 (This is only permitted in a page range.) So
38508 will insert all pages of the document and
38512 will insert all pages in reverse order.
38513 If the pages option is not specified, only the first page of the PDF is
38515 \begin_inset Newline newline
38522 inserts the pages with their original size, if this option is not given,
38523 the pages will be resized to fith the width of the page of your document.
38528 you can specify the width and height of the input pages and their rotation.
38529 If another width than 100
38530 \begin_inset space \thinspace{}
38533 Scale% is used, the option
38537 will be overwritten.
38538 For more info and possible options, have a look into the documentation
38539 of the \SpecialChar LaTeX
38545 \begin_inset CommandInset citation
38552 \begin_inset Index idx
38555 \begin_layout Plain Layout
38557 -packages ! pdfpages
38563 \begin_inset Newline newline
38566 To use this template in a
38570 presentation you need to first insert an
38574 environment and in a subsequent paragraph a \SpecialChar TeX
38575 Code box containing the command
38580 setbeamertemplate{background canvas}{}
38583 Then you can insert as many paragraphs containing the PDFPages template
38585 Behind the included PDF pages you can resume the Beamer presentation by
38586 beginning a new frame or by starting a new section.
38587 To avoid stray blank pages prior to the PDF pages, make sure to use the
38592 alignment for the paragraph containing the template.
38593 \begin_inset Newline newline
38596 Here is an included PDF which is rotated by -5°:
38597 \begin_inset External
38599 filename clipart/Abstract.pdf
38600 extra LaTeX "noautoscale, pages=-"
38602 rotateOrigin bottomleft
38609 \begin_layout Description
38610 RasterImage This can be used for bitmap images.
38611 The image can be treated in the
38615 dialog like the images that are usually included via the
38619 dialog as described in section
38620 \begin_inset space ~
38624 \begin_inset CommandInset ref
38626 reference "sec:Graphics-Dialog"
38631 The difference to the normal image input is that only raster images are
38632 allowed; that means that PDF and EPS-images are not supported.
38633 Here is an inserted raster image:
38634 \begin_inset External
38635 template RasterImage
38636 filename clipart/ToolbarEnvBox.png
38643 \begin_layout Description
38644 XFig This template supports images created with the program
38647 \begin_inset CommandInset href
38650 target "http://en.wikipedia.org/wiki/Xfig"
38659 \begin_layout Standard
38660 \begin_inset Float table
38666 \begin_layout Plain Layout
38667 \begin_inset Caption Standard
38669 \begin_layout Plain Layout
38670 \begin_inset CommandInset label
38672 name "tab:Comparison-of-the"
38676 Comparison of the date input methods.
38684 \begin_layout Plain Layout
38686 \begin_inset Tabular
38687 <lyxtabular version="3" rows="4" columns="4">
38688 <features tabularvalignment="middle">
38689 <column alignment="center" valignment="top">
38690 <column alignment="center" valignment="top">
38691 <column alignment="center" valignment="top">
38692 <column alignment="center" valignment="top">
38694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38697 \begin_layout Plain Layout
38703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38706 \begin_layout Plain Layout
38709 External Material\SpecialChar menuseparator
38715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38718 \begin_layout Plain Layout
38721 Insert\SpecialChar menuseparator
38727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38730 \begin_layout Plain Layout
38742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38745 \begin_layout Plain Layout
38752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38755 \begin_layout Plain Layout
38761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38764 \begin_layout Plain Layout
38770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38773 \begin_layout Plain Layout
38774 as \SpecialChar TeX
38782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38785 \begin_layout Plain Layout
38792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38795 \begin_layout Plain Layout
38801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38804 \begin_layout Plain Layout
38810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38813 \begin_layout Plain Layout
38821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38824 \begin_layout Plain Layout
38830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38833 \begin_layout Plain Layout
38839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38842 \begin_layout Plain Layout
38848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38851 \begin_layout Plain Layout
38870 \begin_layout Standard
38871 When you use the option
38883 dialog, only the path to the inserted file is shown in the output.
38884 \begin_inset Newline newline
38887 External material is displayed in \SpecialChar LyX
38888 either as a box like this:
38889 \begin_inset Graphics
38890 filename clipart/ExternalMaterialQt4.png
38892 scaleBeforeRotation
38896 or as image, depending on the option
38902 LaTeX and LyX options
38907 \begin_layout Standard
38914 manual explains how you can define your own templates.
38917 \begin_layout Section
38919 \begin_inset CommandInset label
38921 name "sec:Child-Documents"
38926 \begin_inset Index idx
38929 \begin_layout Plain Layout
38930 External Document Parts ! Child Documents
38936 \begin_inset Index idx
38939 \begin_layout Plain Layout
38948 \begin_layout Standard
38949 Child documents are used if you have a long document consisting of several
38950 larger parts or sections.
38951 For maintenance it is often useful and sometimes even required to split
38952 the document into several files that can be revised separately.
38953 The different documents are then the so called
38954 \begin_inset Quotes eld
38958 \begin_inset Quotes erd
38961 , and a master document connects them to print the full document or parts
38963 A child document inherits elements from its master, for example the \SpecialChar LaTeX
38965 the bibliography, and labels for cross-references.
38968 \begin_layout Standard
38969 To be able to work on child documents without the need to open their master,
38970 specify in the child document the master in the menu
38972 Document\SpecialChar menuseparator
38973 Settings\SpecialChar menuseparator
38975 \begin_inset space ~
38981 This master document will then be used in the background by \SpecialChar LyX
38983 the child document.
38986 \begin_layout Standard
38987 Included documents are displayed in \SpecialChar LyX
38988 as a box like this:
38989 \begin_inset Graphics
38990 filename clipart/ChildDocumentQt4.png
38992 scaleBeforeRotation
38996 To include child documents in a master document use the menu
38998 Insert\SpecialChar menuseparator
38999 File\SpecialChar menuseparator
39001 \begin_inset space ~
39007 A dialog pops up where you can choose between four include methods:
39010 \begin_layout Description
39011 Include You can include \SpecialChar LyX
39012 and \SpecialChar LaTeX
39022 dialog, the included document will be opened in \SpecialChar LyX
39023 in a new file tab so that
39025 \begin_inset Newline newline
39031 \begin_layout Standard
39032 Here is a child document inserted using
39037 \begin_inset CommandInset include
39038 LatexCommand include
39039 filename "DummyDocument1.lyx"
39046 \begin_layout Standard
39047 The section numbering includes the sections of the included files in the
39048 order they are inserted in the master document.
39049 The included example document has for example a subsection that is numbered
39050 as a subsection of this section.
39051 Labels of included documents can be referenced: Subsection
39052 \begin_inset space ~
39056 \begin_inset CommandInset ref
39058 reference "subsec:External-Subsection-1"
39065 \begin_layout Standard
39066 The preamble of the child document is ignored; only the preamble of the
39067 master document is used.
39068 Branches in child documents will be ignored by the master document when
39069 the master document does not have a branch with the same name.
39070 Included documents are inserted starting on a new page and ending with
39074 \begin_layout Standard
39075 \begin_inset Note Greyedout
39078 \begin_layout Plain Layout
39083 If you have included a \SpecialChar LyX
39084 or \SpecialChar LaTeX
39085 file, you are warned when you export/view the
39086 document in case the child document uses another document class than the
39087 master document as this will lead to unexpected outputs.
39095 \begin_layout Description
39096 Input This method is very similar to the Include method.
39097 The differences are:
39098 \begin_inset Separator parbreak
39105 \begin_layout Itemize
39106 Input files don't start with a new page and don't end with a page break.
39109 \begin_layout Itemize
39110 Input files can be previewed in \SpecialChar LyX
39114 \begin_inset space ~
39119 is enabled in \SpecialChar LyX
39120 's preferences under
39123 \begin_inset space ~
39127 \begin_inset space ~
39130 feel\SpecialChar menuseparator
39136 \begin_layout Itemize
39137 You cannot exclude Input files via the menu
39139 Document\SpecialChar menuseparator
39140 Settings\SpecialChar menuseparator
39147 \begin_layout Standard
39148 Here is a child document inserted using
39153 \begin_inset CommandInset include
39155 filename "DummyDocument2.lyx"
39162 \begin_layout Description
39163 Verbatim With this method any text file can be included.
39164 The file is shown in the output with its source code; no command used in
39165 the text is invoked.
39166 You can use the option
39168 Mark spaces in output
39170 that displays the character
39171 \begin_inset Quotes eld
39178 \begin_layout Plain Layout
39188 \begin_inset Quotes erd
39191 for every space character in the source code.
39192 The difference from the method via the menu
39194 Insert\SpecialChar menuseparator
39195 File\SpecialChar menuseparator
39197 \begin_inset space ~
39202 is that the document content is not shown in \SpecialChar LyX
39206 \begin_layout Standard
39207 Here is a child document inserted as Verbatim:
39208 \begin_inset CommandInset include
39209 LatexCommand verbatiminput
39210 filename "DummyTextDocument.txt"
39215 \begin_inset VSpace bigskip
39218 Here is a child document inserted as Verbatim using the
39220 Mark spaces in output
39223 \begin_inset CommandInset include
39224 LatexCommand verbatiminput*
39225 filename "DummyTextDocument.txt"
39232 \begin_layout Standard
39233 \begin_inset VSpace bigskip
39239 \begin_layout Standard
39240 \begin_inset Note Greyedout
39243 \begin_layout Plain Layout
39248 As you can see in the examples above, the text of the documents included
39253 is not broken at the end of the document lines.
39261 \begin_layout Description
39262 Listings This type is described in chapter
39263 \begin_inset space ~
39267 \begin_inset CommandInset ref
39269 reference "cha:Program-Code-Listings"
39276 \begin_layout Standard
39277 \begin_inset Note Greyedout
39280 \begin_layout Plain Layout
39285 Including the same document twice in a document using different methods
39286 could cause \SpecialChar LaTeX
39295 \begin_layout Standard
39296 If you want to view/export only selected children of your master document,
39297 either because you want to save compiling time or because you want to distribut
39298 e single chapters of the book you are just writing, you can exclude children
39300 This is done via the menu
39302 Document\SpecialChar menuseparator
39303 Settings\SpecialChar menuseparator
39307 You can exclude\SpecialChar breakableslash
39308 include children by double-clicking on the
39312 column of the respective child document in the list (note that this only
39313 works for documents embedded via
39314 \begin_inset Quotes eld
39318 \begin_inset Quotes erd
39322 \begin_inset Quotes eld
39326 \begin_inset Quotes erd
39332 Maintain counters and references
39334 is enabled, \SpecialChar LyX
39335 will assure that all page numbers, references etc.
39336 \begin_inset space ~
39339 are correct as if the whole document was processed.
39340 This is useful if you want the selected sub-documents to look exactly as
39341 in the context of the whole document.
39342 However, \SpecialChar LyX
39343 needs to process the whole document in the background for this
39345 So if you want to save compile time and if counters and references do not
39346 need to be correct, disable this checkbox.
39349 \begin_layout Standard
39350 Alternatively, you can put each included file into a branch.
39354 \begin_layout Plain Layout
39355 Branches are described in section
39359 of the \SpecialChar LyX
39369 By enabling\SpecialChar breakableslash
39370 disabling branches you can decide which included files will
39371 appear in the output.
39372 This has the advantage that it also works with Input'ed sub-documents.
39373 However, counters and references will not be maintained with this approach.
39376 \begin_layout Chapter
39377 Program Code Listings
39378 \begin_inset CommandInset label
39380 name "cha:Program-Code-Listings"
39385 \begin_inset Index idx
39388 \begin_layout Plain Layout
39395 \begin_inset Index idx
39398 \begin_layout Plain Layout
39405 \begin_inset Index idx
39408 \begin_layout Plain Layout
39417 \begin_layout Standard
39418 To include and typeset program code you can use the
39422 inset that can be inserted via the menu
39424 Insert\SpecialChar menuseparator
39428 The \SpecialChar LaTeX
39434 \begin_inset Index idx
39437 \begin_layout Plain Layout
39439 -packages ! listings
39444 provides a powerful and flexible way to insert program source code into
39448 \begin_layout Standard
39449 Right-clicking on a listings inset opens the context menu containing where
39450 you can set the listings format.
39453 \begin_layout Standard
39454 By default, a listing starts a new paragraph in the output.
39455 The placement option
39458 \begin_inset space ~
39463 prints the listing inline like this:
39464 \begin_inset listings
39465 lstparams "language={C++}"
39469 \begin_layout Plain Layout
39477 \begin_inset Newline newline
39484 creates a listings float where you can specify the placement options
39485 \begin_inset Quotes eld
39493 \begin_inset Quotes erd
39497 \begin_inset Quotes eld
39505 \begin_inset Quotes erd
39509 \begin_inset Quotes eld
39517 \begin_inset Quotes erd
39521 \begin_inset Quotes eld
39529 \begin_inset Quotes erd
39532 corresponding to the float placement options described in section
39533 \begin_inset space ~
39537 \begin_inset CommandInset ref
39539 reference "sec:Float-Placement"
39544 The placement options can be mixed and are inserted without any separation,
39546 \begin_inset space \thinspace{}
39550 \begin_inset space \space{}
39554 \begin_inset Quotes eld
39562 \begin_inset Quotes erd
39567 \begin_inset Quotes eld
39571 \begin_inset Quotes erd
39574 has sometimes no effect, but you don't need to use the
39578 option in this case as also non-float listings can have captions and be
39582 \begin_layout Standard
39583 You can add captions to listings with the menu
39585 Insert\SpecialChar menuseparator
39589 Listings can be referenced like floats: Listing
39590 \begin_inset space ~
39594 \begin_inset CommandInset ref
39596 reference "lst:Example-Listing"
39601 A list of listings which contains all listings with captions can be created
39604 Insert\SpecialChar menuseparator
39606 \begin_inset space ~
39610 \begin_inset space ~
39613 TOC\SpecialChar menuseparator
39617 The list entries are the listing caption and the listing number.
39620 \begin_layout Standard
39621 \begin_inset listings
39622 lstparams "language=Python"
39626 \begin_layout Plain Layout
39628 \begin_inset Caption Standard
39630 \begin_layout Plain Layout
39631 \begin_inset CommandInset label
39633 name "lst:Example-Listing"
39637 Example Listing float
39642 # Example listing float
39645 \begin_layout Plain Layout
39650 \begin_layout Plain Layout
39652 'this is a python function'
39655 \begin_layout Plain Layout
39665 \begin_layout Standard
39666 When you have set a programming language in the listings dialog, the keywords
39667 of this language will be recognized and specially typeset in the output.
39668 In the example listings the Python keyword
39669 \begin_inset Quotes eld
39673 \begin_inset Quotes erd
39676 is recognized and printed bold in the output.
39679 \begin_layout Standard
39680 \begin_inset Note Greyedout
39683 \begin_layout Plain Layout
39688 If you don't get bold keywords when using typewriter fonts, your
39692 font probably doesn't provide a bold shape.
39693 In this case select a different one in the menu
39695 Document\SpecialChar menuseparator
39696 Settings\SpecialChar menuseparator
39708 provide bold shapes.)
39716 \begin_layout Standard
39720 \begin_inset space ~
39725 of the listings dialog you can specify the line numbering style.
39726 You can insert a number to specify which lines are numbered in the field
39733 \begin_inset space \thinspace{}
39737 \begin_inset space \space{}
39741 \begin_inset Quotes eld
39745 \begin_inset Quotes erd
39748 , only every 3rd line will be numbered.
39751 \begin_layout Standard
39752 You can furthermore specify a range of lines; only these will then appear
39756 Extended character table
39758 should be used when you use national characters like the German umlauts
39760 \begin_inset Newline newline
39763 Here is an example listing with left line numbering, step
39764 \begin_inset Quotes eld
39768 \begin_inset Quotes erd
39772 \begin_inset Quotes eld
39776 \begin_inset Quotes erd
39780 \begin_inset Quotes eld
39783 Extended character table
39784 \begin_inset Quotes erd
39788 \begin_inset Quotes eld
39792 \begin_inset space ~
39796 \begin_inset space ~
39800 \begin_inset Quotes erd
39804 \begin_inset space \thinspace{}
39808 \begin_inset space \thinspace{}
39814 \begin_layout Standard
39815 \begin_inset listings
39816 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39820 \begin_layout Plain Layout
39825 \begin_layout Plain Layout
39827 'this is a python function'
39830 \begin_layout Plain Layout
39835 \begin_layout Plain Layout
39840 \begin_layout Plain Layout
39842 'This is a German word: Tschüß'
39845 \begin_layout Plain Layout
39850 \begin_layout Plain Layout
39855 \begin_layout Plain Layout
39857 'this is a python function'
39860 \begin_layout Plain Layout
39870 \begin_layout Standard
39871 When you have tabulators in your listing, you can specify the number of
39872 characters that are spanned by a tabulator in the field
39875 \begin_inset space ~
39883 \begin_layout Standard
39884 \begin_inset Note Greyedout
39887 \begin_layout Plain Layout
39892 Due to a bug in the
39896 package the line numbering is shifted by a line by every previous listing.
39897 That's the reason why the lines 2 and 5 are numbered in the above listing
39898 and not the lines 3 and 6.
39906 \begin_layout Standard
39907 \begin_inset VSpace bigskip
39913 \begin_layout Standard
39914 It is also possible to print lines from a file as listing.
39915 To do this, use the menu
39917 Insert\SpecialChar menuseparator
39918 File\SpecialChar menuseparator
39921 and choose the type
39929 \begin_layout Plain Layout
39930 The other child document types are described in section
39931 \begin_inset space ~
39935 \begin_inset CommandInset ref
39937 reference "sec:Child-Documents"
39946 In the child document dialog you can specify the listing parameters in
39948 To show a list of all available parameters, type in a question mark
39949 \begin_inset Quotes eld
39953 \begin_inset Quotes erd
39959 \begin_layout Standard
39960 To reference child document listings, write a label text into the corresponding
39961 field of the child document dialog.
39962 The label can then be referenced using the menu
39964 Insert\SpecialChar menuseparator
39970 \begin_layout Standard
39972 \begin_inset space ~
39976 \begin_inset CommandInset ref
39978 reference "lst:file-listing"
39982 is an example for a listing of a file; there the lines 10
39983 \begin_inset space \thinspace{}
39987 \begin_inset space \thinspace{}
39990 15 of this \SpecialChar LyX
39994 \begin_layout Standard
39995 \begin_inset CommandInset include
39996 LatexCommand lstinputlisting
39997 filename "EmbeddedObjects.lyx"
39998 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40005 \begin_layout Standard
40006 \begin_inset VSpace bigskip
40012 \begin_layout Standard
40013 Inserting a formula into a listing can be done the following way:
40016 \begin_layout Enumerate
40017 Open the listings dialog and add
40018 \begin_inset Newline newline
40026 \begin_inset Newline newline
40029 to the field of the
40036 \begin_layout Enumerate
40037 Create a formula outside the listing
40040 \begin_layout Enumerate
40041 Copy the content of the formula (not the formula inset) to the clipboard
40051 \begin_layout Enumerate
40052 In the listing write
40053 \begin_inset Quotes eld
40061 \begin_inset Quotes erd
40064 and copy from the clipboard between the dollar-signs (shortcut
40073 \begin_layout Standard
40074 \begin_inset listings
40075 lstparams "language=Python,mathescape=true"
40079 \begin_layout Plain Layout
40081 \begin_inset Caption Standard
40083 \begin_layout Plain Layout
40084 Example Listing float containing a formula
40089 # Example listing float
40092 \begin_layout Plain Layout
40097 \begin_layout Plain Layout
40110 \begin_layout Plain Layout
40120 \begin_layout Standard
40121 \begin_inset VSpace bigskip
40127 \begin_layout Standard
40128 Global listings settings can be set in the
40130 Document\SpecialChar menuseparator
40131 Settings\SpecialChar menuseparator
40135 To get there a list of available options, type in a question mark
40136 \begin_inset Quotes eld
40140 \begin_inset Quotes erd
40146 \begin_layout Standard
40147 For more information about the
40151 package, we refer to its documentation
40152 \begin_inset CommandInset citation
40161 \begin_layout Standard
40162 \begin_inset Newpage newpage
40168 \begin_layout Chapter
40170 Units available in \SpecialChar LyX
40172 \begin_inset Index idx
40175 \begin_layout Plain Layout
40182 \begin_inset CommandInset label
40184 name "cha:Units-available-in"
40191 \begin_layout Standard
40192 To understand the units described in this documentation, Table
40193 \begin_inset space ~
40197 \begin_inset CommandInset ref
40199 reference "tab:Units"
40203 explains all units available in \SpecialChar LyX
40207 \begin_layout Standard
40208 \begin_inset Float table
40214 \begin_layout Plain Layout
40215 \begin_inset Caption Standard
40217 \begin_layout Plain Layout
40218 \begin_inset CommandInset label
40232 \begin_layout Plain Layout
40233 \begin_inset VSpace medskip
40239 \begin_layout Plain Layout
40241 \begin_inset Tabular
40242 <lyxtabular version="3" rows="20" columns="3">
40243 <features tabularvalignment="middle">
40244 <column alignment="center" valignment="top">
40245 <column alignment="center" valignment="top">
40246 <column alignment="center" valignment="top">
40248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40251 \begin_layout Plain Layout
40257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40260 \begin_layout Plain Layout
40266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40269 \begin_layout Plain Layout
40278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40281 \begin_layout Plain Layout
40287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40290 \begin_layout Plain Layout
40296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40299 \begin_layout Plain Layout
40307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40310 \begin_layout Plain Layout
40316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40319 \begin_layout Plain Layout
40325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40328 \begin_layout Plain Layout
40336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40339 \begin_layout Plain Layout
40345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40348 \begin_layout Plain Layout
40354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40357 \begin_layout Plain Layout
40365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40368 \begin_layout Plain Layout
40374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40377 \begin_layout Plain Layout
40379 \begin_inset space \thinspace{}
40383 \begin_inset space \thinspace{}
40391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40394 \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
40416 \begin_inset space \thinspace{}
40420 \begin_inset space \thinspace{}
40428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40431 \begin_layout Plain Layout
40439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40442 \begin_layout Plain Layout
40448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40451 \begin_layout Plain Layout
40452 scaled point (65536
40453 \begin_inset space \thinspace{}
40457 \begin_inset space \thinspace{}
40465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40468 \begin_layout Plain Layout
40476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40479 \begin_layout Plain Layout
40485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40488 \begin_layout Plain Layout
40490 \begin_inset space \thinspace{}
40494 \begin_inset space \thinspace{}
40502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40505 \begin_layout Plain Layout
40513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40516 \begin_layout Plain Layout
40522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40525 \begin_layout Plain Layout
40527 \begin_inset space \thinspace{}
40531 \begin_inset Formula $\approx$
40535 \begin_inset space \thinspace{}
40543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40546 \begin_layout Plain Layout
40554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40557 \begin_layout Plain Layout
40563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40566 \begin_layout Plain Layout
40568 \begin_inset space \thinspace{}
40572 \begin_inset space \thinspace{}
40580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40583 \begin_layout Plain Layout
40591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40594 \begin_layout Plain Layout
40600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40603 \begin_layout Plain Layout
40604 % of original image width
40609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40612 \begin_layout Plain Layout
40620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40623 \begin_layout Plain Layout
40629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40632 \begin_layout Plain Layout
40638 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40641 \begin_layout Plain Layout
40651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40654 \begin_layout Plain Layout
40660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40663 \begin_layout Plain Layout
40669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40672 \begin_layout Plain Layout
40682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40685 \begin_layout Plain Layout
40691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40694 \begin_layout Plain Layout
40700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40703 \begin_layout Plain Layout
40713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40716 \begin_layout Plain Layout
40722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40725 \begin_layout Plain Layout
40731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40734 \begin_layout Plain Layout
40744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40747 \begin_layout Plain Layout
40753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40756 \begin_layout Plain Layout
40762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40765 \begin_layout Plain Layout
40775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40778 \begin_layout Plain Layout
40784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40787 \begin_layout Plain Layout
40793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40796 \begin_layout Plain Layout
40806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40809 \begin_layout Plain Layout
40815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40818 \begin_layout Plain Layout
40828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40831 \begin_layout Plain Layout
40839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40842 \begin_layout Plain Layout
40848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40851 \begin_layout Plain Layout
40861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40864 \begin_layout Plain Layout
40872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40875 \begin_layout Plain Layout
40881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40884 \begin_layout Plain Layout
40886 \begin_inset space \thinspace{}
40890 \begin_inset space \thinspace{}
40898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40901 \begin_layout Plain Layout
40920 \begin_layout Chapter
40921 Output File Formats with Graphics
40922 \begin_inset CommandInset label
40924 name "cha:Output-File-Formats"
40931 \begin_layout Section
40933 \begin_inset Index idx
40936 \begin_layout Plain Layout
40943 \begin_inset Index idx
40946 \begin_layout Plain Layout
40951 \begin_layout Plain Layout
40962 \begin_layout Plain Layout
40977 \begin_layout Standard
40978 This file type has the extension
40979 \begin_inset Quotes eld
40987 \begin_inset Quotes erd
40992 \begin_inset Quotes eld
40996 \begin_inset Quotes erd
40999 (DVI), because it is completely portable; you can move them from one machine
41000 to another without needing to do any sort of conversion.
41001 At the time when this file-format was developed, this was no matter of
41003 DVIs are used for quick previews and as pre-stage for other output formats,
41007 \begin_layout Standard
41008 \begin_inset Note Greyedout
41011 \begin_layout Plain Layout
41016 DVI-files do not contain images; they will only be a linked.
41021 So don't forget this, if you move your
41025 file to another computer.
41026 This property can also slow down your computer when you view the DVI, because
41027 the DVI-viewer has to convert the image in the background to make it visible
41028 when you scroll in the DVI.
41029 So it is recommended that you use PDF for files with many images.
41032 \begin_layout Standard
41033 You can export your document to DVI by using the menu
41035 File\SpecialChar menuseparator
41036 Export\SpecialChar menuseparator
41040 You can view your document as DVI via the
41047 \begin_layout Section
41049 \begin_inset Index idx
41052 \begin_layout Plain Layout
41053 File Formats ! PostScript
41059 \begin_inset Index idx
41062 \begin_layout Plain Layout
41067 \begin_layout Plain Layout
41078 \begin_layout Plain Layout
41093 \begin_layout Standard
41094 This file type has the extension
41095 \begin_inset Quotes eld
41103 \begin_inset Quotes erd
41107 PostScript was developed by the company
41111 as a printer language.
41112 The file therefore contains commands that the printer uses to print the
41114 PostScript can be seen as a
41115 \begin_inset Quotes eld
41118 programming language
41119 \begin_inset Quotes erd
41122 ; you can calculate with it and draw diagrams and images
41126 \begin_layout Plain Layout
41127 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41134 \begin_inset CommandInset citation
41146 Due to this ability, the files are often bigger than PDFs.
41149 \begin_layout Standard
41150 PostScript can only contain images in the format
41151 \begin_inset Quotes eld
41154 Encapsulated PostScript
41155 \begin_inset Quotes erd
41158 (EPS, file extension
41159 \begin_inset Quotes eld
41167 \begin_inset Quotes erd
41171 As \SpecialChar LyX
41172 allows you to use any known image format in your document, it has to
41173 convert images in the background to EPS.
41175 \begin_inset space ~
41179 \begin_inset space ~
41182 images in your document, \SpecialChar LyX
41184 \begin_inset space ~
41187 conversions whenever you view or export your document.
41188 This will slow down your work flow with \SpecialChar LyX
41190 So if you plan to use PostScript, you can insert your images directly as
41191 EPS to avoid this problem.
41194 \begin_layout Standard
41195 You can export your document to PostScript using the menu
41197 File\SpecialChar menuseparator
41198 Export\SpecialChar menuseparator
41202 You can view your document as PostScript via the
41209 \begin_layout Section
41211 \begin_inset Index idx
41214 \begin_layout Plain Layout
41221 \begin_inset Index idx
41224 \begin_layout Plain Layout
41233 \begin_layout Standard
41234 This file type has the extension
41235 \begin_inset Quotes eld
41243 \begin_inset Quotes erd
41248 \begin_inset Quotes eld
41251 Portable Document Format
41252 \begin_inset Quotes erd
41255 (PDF) was developed by
41259 as a derivative of PostScript.
41260 It is more compressed and it uses fewer commands than PostScript.
41262 \begin_inset Quotes eld
41266 \begin_inset Quotes erd
41269 implies, it can be processed at any computer system and the printed output
41270 looks exactly the same.
41273 \begin_layout Standard
41274 PDF can contain images in its own PDF format, in the format
41275 \begin_inset Quotes eld
41278 Joint Photographic Experts Group
41279 \begin_inset Quotes erd
41282 (JPG, file extension
41283 \begin_inset Quotes eld
41291 \begin_inset Quotes erd
41295 \begin_inset Quotes eld
41303 \begin_inset Quotes erd
41306 ), and in the format
41307 \begin_inset Quotes eld
41310 Portable Network Graphics
41311 \begin_inset Quotes erd
41314 (PNG, file extension
41315 \begin_inset Quotes eld
41323 \begin_inset Quotes erd
41327 Nevertheless you can use any other image format, because \SpecialChar LyX
41329 in the background to one of these formats.
41330 But as described in the section about PostScript, the image conversion
41331 will slow down your work flow.
41332 So it is recommended that you use images in one of the three mentioned
41336 \begin_layout Standard
41337 You can export your document to PDF via the menu
41339 File\SpecialChar menuseparator
41342 in three different ways:
41345 \begin_layout Description
41347 \begin_inset space ~
41350 (ps2pdf) This uses the program
41354 that creates a PDF from a PostScript-version of your file.
41355 The PostScript-version is produced by the program
41359 which uses a DVI-version as intermediate step.
41360 So this export variant consists of three conversions.
41363 \begin_layout Description
41365 \begin_inset space ~
41368 (dvipdfm) This uses the program
41372 that converts your file in the background to DVI and in a second step to
41376 \begin_layout Description
41378 \begin_inset space ~
41381 (pdflatex) This uses the program
41385 that converts your file directly to PDF.
41388 \begin_layout Standard
41389 It is recommended that you use
41392 \begin_inset space ~
41401 supports all features of actual PDF-versions, is quick and works stable.
41406 is not under development and therefore a bit outdated.
41409 \begin_layout Standard
41410 You can view your document as PDF via the
41414 menu or by using a toolbar button.
41417 \begin_layout Chapter
41418 List of dvips color names
41419 \begin_inset CommandInset label
41421 name "chap:List-of-dvips-colornames"
41428 \begin_layout Standard
41429 \begin_inset Tabular
41430 <lyxtabular version="3" rows="17" columns="4">
41431 <features tabularvalignment="middle">
41432 <column alignment="left" valignment="top" width="0pt">
41433 <column alignment="left" valignment="top" width="0pt">
41434 <column alignment="left" valignment="top" width="0pt">
41435 <column alignment="left" valignment="top" width="0pt">
41437 <cell alignment="left" valignment="top" usebox="none">
41440 \begin_layout Plain Layout
41444 \begin_layout Plain Layout
41457 \begin_layout Plain Layout
41468 \begin_layout Plain Layout
41480 <cell alignment="left" valignment="top" usebox="none">
41483 \begin_layout Plain Layout
41487 \begin_layout Plain Layout
41500 \begin_layout Plain Layout
41511 \begin_layout Plain Layout
41523 <cell alignment="left" valignment="top" usebox="none">
41526 \begin_layout Plain Layout
41530 \begin_layout Plain Layout
41543 \begin_layout Plain Layout
41554 \begin_layout Plain Layout
41566 <cell alignment="left" valignment="top" usebox="none">
41569 \begin_layout Plain Layout
41573 \begin_layout Plain Layout
41586 \begin_layout Plain Layout
41597 \begin_layout Plain Layout
41611 <cell alignment="center" valignment="top" usebox="none">
41614 \begin_layout Plain Layout
41618 \begin_layout Plain Layout
41631 \begin_layout Plain Layout
41639 \begin_inset Phantom Phantom
41642 \begin_layout Plain Layout
41652 \begin_layout Plain Layout
41664 <cell alignment="center" valignment="top" usebox="none">
41667 \begin_layout Plain Layout
41671 \begin_layout Plain Layout
41684 \begin_layout Plain Layout
41692 \begin_inset Phantom Phantom
41695 \begin_layout Plain Layout
41705 \begin_layout Plain Layout
41717 <cell alignment="center" valignment="top" usebox="none">
41720 \begin_layout Plain Layout
41724 \begin_layout Plain Layout
41737 \begin_layout Plain Layout
41745 \begin_inset Phantom Phantom
41748 \begin_layout Plain Layout
41758 \begin_layout Plain Layout
41770 <cell alignment="center" valignment="top" usebox="none">
41773 \begin_layout Plain Layout
41777 \begin_layout Plain Layout
41790 \begin_layout Plain Layout
41798 \begin_inset Phantom Phantom
41801 \begin_layout Plain Layout
41811 \begin_layout Plain Layout
41825 <cell alignment="left" valignment="top" usebox="none">
41828 \begin_layout Plain Layout
41832 \begin_layout Plain Layout
41845 \begin_layout Plain Layout
41853 \begin_inset Phantom Phantom
41856 \begin_layout Plain Layout
41866 \begin_layout Plain Layout
41878 <cell alignment="left" valignment="top" usebox="none">
41881 \begin_layout Plain Layout
41885 \begin_layout Plain Layout
41898 \begin_layout Plain Layout
41906 \begin_inset Phantom Phantom
41909 \begin_layout Plain Layout
41919 \begin_layout Plain Layout
41931 <cell alignment="left" valignment="top" usebox="none">
41934 \begin_layout Plain Layout
41938 \begin_layout Plain Layout
41951 \begin_layout Plain Layout
41959 \begin_inset Phantom Phantom
41962 \begin_layout Plain Layout
41972 \begin_layout Plain Layout
41984 <cell alignment="left" valignment="top" usebox="none">
41987 \begin_layout Plain Layout
41991 \begin_layout Plain Layout
42004 \begin_layout Plain Layout
42012 \begin_inset Phantom Phantom
42015 \begin_layout Plain Layout
42025 \begin_layout Plain Layout
42039 <cell alignment="left" valignment="top" usebox="none">
42042 \begin_layout Plain Layout
42046 \begin_layout Plain Layout
42059 \begin_layout Plain Layout
42067 \begin_inset Phantom Phantom
42070 \begin_layout Plain Layout
42080 \begin_layout Plain Layout
42092 <cell alignment="left" valignment="top" usebox="none">
42095 \begin_layout Plain Layout
42099 \begin_layout Plain Layout
42112 \begin_layout Plain Layout
42120 \begin_inset Phantom Phantom
42123 \begin_layout Plain Layout
42133 \begin_layout Plain Layout
42145 <cell alignment="left" valignment="top" usebox="none">
42148 \begin_layout Plain Layout
42152 \begin_layout Plain Layout
42165 \begin_layout Plain Layout
42173 \begin_inset Phantom Phantom
42176 \begin_layout Plain Layout
42186 \begin_layout Plain Layout
42198 <cell alignment="left" valignment="top" usebox="none">
42201 \begin_layout Plain Layout
42205 \begin_layout Plain Layout
42218 \begin_layout Plain Layout
42226 \begin_inset Phantom Phantom
42229 \begin_layout Plain Layout
42239 \begin_layout Plain Layout
42253 <cell alignment="left" valignment="top" usebox="none">
42256 \begin_layout Plain Layout
42260 \begin_layout Plain Layout
42273 \begin_layout Plain Layout
42281 \begin_inset Phantom Phantom
42284 \begin_layout Plain Layout
42294 \begin_layout Plain Layout
42306 <cell alignment="left" valignment="top" usebox="none">
42309 \begin_layout Plain Layout
42313 \begin_layout Plain Layout
42326 \begin_layout Plain Layout
42334 \begin_inset Phantom Phantom
42337 \begin_layout Plain Layout
42347 \begin_layout Plain Layout
42359 <cell alignment="left" valignment="top" usebox="none">
42362 \begin_layout Plain Layout
42366 \begin_layout Plain Layout
42379 \begin_layout Plain Layout
42387 \begin_inset Phantom Phantom
42390 \begin_layout Plain Layout
42400 \begin_layout Plain Layout
42412 <cell alignment="left" valignment="top" usebox="none">
42415 \begin_layout Plain Layout
42419 \begin_layout Plain Layout
42432 \begin_layout Plain Layout
42440 \begin_inset Phantom Phantom
42443 \begin_layout Plain Layout
42453 \begin_layout Plain Layout
42467 <cell alignment="left" valignment="top" usebox="none">
42470 \begin_layout Plain Layout
42474 \begin_layout Plain Layout
42487 \begin_layout Plain Layout
42495 \begin_inset Phantom Phantom
42498 \begin_layout Plain Layout
42508 \begin_layout Plain Layout
42520 <cell alignment="left" valignment="top" usebox="none">
42523 \begin_layout Plain Layout
42527 \begin_layout Plain Layout
42540 \begin_layout Plain Layout
42548 \begin_inset Phantom Phantom
42551 \begin_layout Plain Layout
42561 \begin_layout Plain Layout
42573 <cell alignment="left" valignment="top" usebox="none">
42576 \begin_layout Plain Layout
42580 \begin_layout Plain Layout
42593 \begin_layout Plain Layout
42601 \begin_inset Phantom Phantom
42604 \begin_layout Plain Layout
42614 \begin_layout Plain Layout
42626 <cell alignment="left" valignment="top" usebox="none">
42629 \begin_layout Plain Layout
42633 \begin_layout Plain Layout
42646 \begin_layout Plain Layout
42654 \begin_inset Phantom Phantom
42657 \begin_layout Plain Layout
42667 \begin_layout Plain Layout
42681 <cell alignment="center" valignment="top" usebox="none">
42684 \begin_layout Plain Layout
42688 \begin_layout Plain Layout
42701 \begin_layout Plain Layout
42709 \begin_inset Phantom Phantom
42712 \begin_layout Plain Layout
42722 \begin_layout Plain Layout
42734 <cell alignment="center" valignment="top" usebox="none">
42737 \begin_layout Plain Layout
42741 \begin_layout Plain Layout
42754 \begin_layout Plain Layout
42762 \begin_inset Phantom Phantom
42765 \begin_layout Plain Layout
42775 \begin_layout Plain Layout
42787 <cell alignment="center" valignment="top" usebox="none">
42790 \begin_layout Plain Layout
42794 \begin_layout Plain Layout
42807 \begin_layout Plain Layout
42815 \begin_inset Phantom Phantom
42818 \begin_layout Plain Layout
42828 \begin_layout Plain Layout
42840 <cell alignment="center" valignment="top" usebox="none">
42843 \begin_layout Plain Layout
42847 \begin_layout Plain Layout
42860 \begin_layout Plain Layout
42868 \begin_inset Phantom Phantom
42871 \begin_layout Plain Layout
42881 \begin_layout Plain Layout
42895 <cell alignment="left" valignment="top" usebox="none">
42898 \begin_layout Plain Layout
42902 \begin_layout Plain Layout
42915 \begin_layout Plain Layout
42923 \begin_inset Phantom Phantom
42926 \begin_layout Plain Layout
42936 \begin_layout Plain Layout
42948 <cell alignment="left" valignment="top" usebox="none">
42951 \begin_layout Plain Layout
42955 \begin_layout Plain Layout
42968 \begin_layout Plain Layout
42976 \begin_inset Phantom Phantom
42979 \begin_layout Plain Layout
42989 \begin_layout Plain Layout
43001 <cell alignment="left" valignment="top" usebox="none">
43004 \begin_layout Plain Layout
43008 \begin_layout Plain Layout
43021 \begin_layout Plain Layout
43029 \begin_inset Phantom Phantom
43032 \begin_layout Plain Layout
43042 \begin_layout Plain Layout
43054 <cell alignment="left" valignment="top" usebox="none">
43057 \begin_layout Plain Layout
43061 \begin_layout Plain Layout
43074 \begin_layout Plain Layout
43082 \begin_inset Phantom Phantom
43085 \begin_layout Plain Layout
43095 \begin_layout Plain Layout
43109 <cell alignment="left" valignment="top" usebox="none">
43112 \begin_layout Plain Layout
43116 \begin_layout Plain Layout
43129 \begin_layout Plain Layout
43137 \begin_inset Phantom Phantom
43140 \begin_layout Plain Layout
43150 \begin_layout Plain Layout
43162 <cell alignment="left" valignment="top" usebox="none">
43165 \begin_layout Plain Layout
43169 \begin_layout Plain Layout
43182 \begin_layout Plain Layout
43190 \begin_inset Phantom Phantom
43193 \begin_layout Plain Layout
43203 \begin_layout Plain Layout
43215 <cell alignment="left" valignment="top" usebox="none">
43218 \begin_layout Plain Layout
43222 \begin_layout Plain Layout
43235 \begin_layout Plain Layout
43243 \begin_inset Phantom Phantom
43246 \begin_layout Plain Layout
43256 \begin_layout Plain Layout
43268 <cell alignment="left" valignment="top" usebox="none">
43271 \begin_layout Plain Layout
43275 \begin_layout Plain Layout
43288 \begin_layout Plain Layout
43296 \begin_inset Phantom Phantom
43299 \begin_layout Plain Layout
43309 \begin_layout Plain Layout
43323 <cell alignment="left" valignment="top" usebox="none">
43326 \begin_layout Plain Layout
43330 \begin_layout Plain Layout
43343 \begin_layout Plain Layout
43351 \begin_inset Phantom Phantom
43354 \begin_layout Plain Layout
43364 \begin_layout Plain Layout
43376 <cell alignment="left" valignment="top" usebox="none">
43379 \begin_layout Plain Layout
43383 \begin_layout Plain Layout
43396 \begin_layout Plain Layout
43404 \begin_inset Phantom Phantom
43407 \begin_layout Plain Layout
43417 \begin_layout Plain Layout
43429 <cell alignment="left" valignment="top" usebox="none">
43432 \begin_layout Plain Layout
43436 \begin_layout Plain Layout
43449 \begin_layout Plain Layout
43457 \begin_inset Phantom Phantom
43460 \begin_layout Plain Layout
43470 \begin_layout Plain Layout
43482 <cell alignment="left" valignment="top" usebox="none">
43485 \begin_layout Plain Layout
43489 \begin_layout Plain Layout
43502 \begin_layout Plain Layout
43510 \begin_inset Phantom Phantom
43513 \begin_layout Plain Layout
43523 \begin_layout Plain Layout
43537 <cell alignment="left" valignment="top" usebox="none">
43540 \begin_layout Plain Layout
43544 \begin_layout Plain Layout
43557 \begin_layout Plain Layout
43565 \begin_inset Phantom Phantom
43568 \begin_layout Plain Layout
43578 \begin_layout Plain Layout
43590 <cell alignment="left" valignment="top" usebox="none">
43593 \begin_layout Plain Layout
43597 \begin_layout Plain Layout
43610 \begin_layout Plain Layout
43618 \begin_inset Phantom Phantom
43621 \begin_layout Plain Layout
43631 \begin_layout Plain Layout
43643 <cell alignment="left" valignment="top" usebox="none">
43646 \begin_layout Plain Layout
43650 \begin_layout Plain Layout
43663 \begin_layout Plain Layout
43671 \begin_inset Phantom Phantom
43674 \begin_layout Plain Layout
43684 \begin_layout Plain Layout
43696 <cell alignment="left" valignment="top" usebox="none">
43699 \begin_layout Plain Layout
43703 \begin_layout Plain Layout
43716 \begin_layout Plain Layout
43724 \begin_inset Phantom Phantom
43727 \begin_layout Plain Layout
43737 \begin_layout Plain Layout
43751 <cell alignment="left" valignment="top" usebox="none">
43754 \begin_layout Plain Layout
43758 \begin_layout Plain Layout
43771 \begin_layout Plain Layout
43779 \begin_inset Phantom Phantom
43782 \begin_layout Plain Layout
43792 \begin_layout Plain Layout
43804 <cell alignment="left" valignment="top" usebox="none">
43807 \begin_layout Plain Layout
43811 \begin_layout Plain Layout
43824 \begin_layout Plain Layout
43832 \begin_inset Phantom Phantom
43835 \begin_layout Plain Layout
43845 \begin_layout Plain Layout
43857 <cell alignment="left" valignment="top" usebox="none">
43860 \begin_layout Plain Layout
43864 \begin_layout Plain Layout
43877 \begin_layout Plain Layout
43885 \begin_inset Phantom Phantom
43888 \begin_layout Plain Layout
43898 \begin_layout Plain Layout
43910 <cell alignment="left" valignment="top" usebox="none">
43913 \begin_layout Plain Layout
43917 \begin_layout Plain Layout
43930 \begin_layout Plain Layout
43938 \begin_inset Phantom Phantom
43941 \begin_layout Plain Layout
43951 \begin_layout Plain Layout
43965 <cell alignment="left" valignment="top" usebox="none">
43968 \begin_layout Plain Layout
43972 \begin_layout Plain Layout
43985 \begin_layout Plain Layout
43993 \begin_inset Phantom Phantom
43996 \begin_layout Plain Layout
44006 \begin_layout Plain Layout
44018 <cell alignment="left" valignment="top" usebox="none">
44021 \begin_layout Plain Layout
44025 \begin_layout Plain Layout
44038 \begin_layout Plain Layout
44046 \begin_inset Phantom Phantom
44049 \begin_layout Plain Layout
44059 \begin_layout Plain Layout
44071 <cell alignment="left" valignment="top" usebox="none">
44074 \begin_layout Plain Layout
44078 \begin_layout Plain Layout
44091 \begin_layout Plain Layout
44099 \begin_inset Phantom Phantom
44102 \begin_layout Plain Layout
44112 \begin_layout Plain Layout
44124 <cell alignment="left" valignment="top" usebox="none">
44127 \begin_layout Plain Layout
44131 \begin_layout Plain Layout
44144 \begin_layout Plain Layout
44152 \begin_inset Phantom Phantom
44155 \begin_layout Plain Layout
44165 \begin_layout Plain Layout
44179 <cell alignment="left" valignment="top" usebox="none">
44182 \begin_layout Plain Layout
44186 \begin_layout Plain Layout
44199 \begin_layout Plain Layout
44207 \begin_inset Phantom Phantom
44210 \begin_layout Plain Layout
44220 \begin_layout Plain Layout
44232 <cell alignment="left" valignment="top" usebox="none">
44235 \begin_layout Plain Layout
44239 \begin_layout Plain Layout
44252 \begin_layout Plain Layout
44260 \begin_inset Phantom Phantom
44263 \begin_layout Plain Layout
44273 \begin_layout Plain Layout
44285 <cell alignment="left" valignment="top" usebox="none">
44288 \begin_layout Plain Layout
44292 \begin_layout Plain Layout
44305 \begin_layout Plain Layout
44313 \begin_inset Phantom Phantom
44316 \begin_layout Plain Layout
44326 \begin_layout Plain Layout
44338 <cell alignment="left" valignment="top" usebox="none">
44341 \begin_layout Plain Layout
44345 \begin_layout Plain Layout
44358 \begin_layout Plain Layout
44366 \begin_inset Phantom Phantom
44369 \begin_layout Plain Layout
44379 \begin_layout Plain Layout
44393 <cell alignment="left" valignment="top" usebox="none">
44396 \begin_layout Plain Layout
44400 \begin_layout Plain Layout
44413 \begin_layout Plain Layout
44421 \begin_inset Phantom Phantom
44424 \begin_layout Plain Layout
44434 \begin_layout Plain Layout
44446 <cell alignment="left" valignment="top" usebox="none">
44449 \begin_layout Plain Layout
44453 \begin_layout Plain Layout
44466 \begin_layout Plain Layout
44474 \begin_inset Phantom Phantom
44477 \begin_layout Plain Layout
44487 \begin_layout Plain Layout
44499 <cell alignment="left" valignment="top" usebox="none">
44502 \begin_layout Plain Layout
44506 \begin_layout Plain Layout
44519 \begin_layout Plain Layout
44527 \begin_inset Phantom Phantom
44530 \begin_layout Plain Layout
44540 \begin_layout Plain Layout
44552 <cell alignment="left" valignment="top" usebox="none">
44555 \begin_layout Plain Layout
44559 \begin_layout Plain Layout
44572 \begin_layout Plain Layout
44580 \begin_inset Phantom Phantom
44583 \begin_layout Plain Layout
44593 \begin_layout Plain Layout
44607 <cell alignment="left" valignment="top" usebox="none">
44610 \begin_layout Plain Layout
44614 \begin_layout Plain Layout
44627 \begin_layout Plain Layout
44635 \begin_inset Phantom Phantom
44638 \begin_layout Plain Layout
44648 \begin_layout Plain Layout
44660 <cell alignment="left" valignment="top" usebox="none">
44663 \begin_layout Plain Layout
44667 \begin_layout Plain Layout
44680 \begin_layout Plain Layout
44688 \begin_inset Phantom Phantom
44691 \begin_layout Plain Layout
44701 \begin_layout Plain Layout
44713 <cell alignment="left" valignment="top" usebox="none">
44716 \begin_layout Plain Layout
44720 \begin_layout Plain Layout
44733 \begin_layout Plain Layout
44741 \begin_inset Phantom Phantom
44744 \begin_layout Plain Layout
44754 \begin_layout Plain Layout
44766 <cell alignment="left" valignment="top" usebox="none">
44769 \begin_layout Plain Layout
44773 \begin_layout Plain Layout
44786 \begin_layout Plain Layout
44794 \begin_inset Phantom Phantom
44797 \begin_layout Plain Layout
44807 \begin_layout Plain Layout
44821 <cell alignment="left" valignment="top" usebox="none">
44824 \begin_layout Plain Layout
44828 \begin_layout Plain Layout
44841 \begin_layout Plain Layout
44849 \begin_inset Phantom Phantom
44852 \begin_layout Plain Layout
44862 \begin_layout Plain Layout
44874 <cell alignment="left" valignment="top" usebox="none">
44877 \begin_layout Plain Layout
44883 <cell alignment="left" valignment="top" usebox="none">
44886 \begin_layout Plain Layout
44892 <cell alignment="left" valignment="top" usebox="none">
44895 \begin_layout Plain Layout
44909 \begin_layout Chapter
44910 Explanation of Equation
44911 \begin_inset space ~
44915 \begin_inset CommandInset ref
44922 \begin_inset CommandInset label
44924 name "cha:Explanation-of-Equation"
44931 \begin_layout Standard
44932 We can calculate the total width of
44937 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44941 \begin_inset Formula
44943 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44949 \begin_inset Formula $W_{g\,n}$
44952 is the given width of all cells,
44958 is the \SpecialChar LaTeX
44959 -length between the cell text and the cell border (its default value
44961 \begin_inset space \thinspace{}
44971 is the thickness of the cell border line, the default is 0.4
44972 \begin_inset space \thinspace{}
44978 \begin_layout Standard
44980 \begin_inset space ~
44984 \begin_inset CommandInset ref
44986 reference "eq:Wtot_n"
44990 , the total width of a multicolumn
44991 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
44995 \begin_inset Formula
44997 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45005 \begin_layout Standard
45006 By setting equation
45007 \begin_inset space ~
45011 \begin_inset CommandInset ref
45013 reference "eq:Wtot_n"
45018 \begin_inset CommandInset ref
45020 reference "eq:Wtot_mult"
45024 equal we can calculate the needed given width
45025 \begin_inset Formula $W_{g\,n}$
45032 columns are spanned, so that each column has a total width of
45033 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45037 \begin_inset Formula
45039 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45047 \begin_layout Bibliography
45048 \begin_inset CommandInset bibitem
45049 LatexCommand bibitem
45050 key "latexcompanion"
45054 Frank Mittelbach and Michel Goossens:
45056 The \SpecialChar LaTeX
45057 Companion Second Edition.
45060 Addison-Wesley, 2004
45063 \begin_layout Bibliography
45064 \begin_inset CommandInset bibitem
45065 LatexCommand bibitem
45070 Helmut Kopka and Patrick W.
45073 A Guide to \SpecialChar LaTeX
45077 Addison-Wesley, 2003
45080 \begin_layout Bibliography
45081 \begin_inset CommandInset bibitem
45082 LatexCommand bibitem
45090 : A Document Preparation System.
45093 Addison-Wesley, second edition, 1994
45096 \begin_layout Bibliography
45097 \begin_inset CommandInset bibitem
45098 LatexCommand bibitem
45103 Documentation of the \SpecialChar LaTeX
45107 \begin_inset CommandInset href
45110 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45117 \begin_inset Index idx
45120 \begin_layout Plain Layout
45122 -packages ! arydshln
45130 \begin_layout Bibliography
45131 \begin_inset CommandInset bibitem
45132 LatexCommand bibitem
45137 Documentation of the \SpecialChar LaTeX
45141 \begin_inset CommandInset href
45144 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45151 \begin_inset Index idx
45154 \begin_layout Plain Layout
45156 -packages ! booktabs
45164 \begin_layout Bibliography
45165 \begin_inset CommandInset bibitem
45166 LatexCommand bibitem
45171 Documentation of the \SpecialChar LaTeX
45175 \begin_inset CommandInset href
45178 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45185 \begin_inset Index idx
45188 \begin_layout Plain Layout
45190 -packages ! caption
45198 \begin_layout Bibliography
45199 \begin_inset CommandInset bibitem
45200 LatexCommand bibitem
45205 Documentation of the \SpecialChar LaTeX
45209 \begin_inset CommandInset href
45212 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45219 \begin_inset Index idx
45222 \begin_layout Plain Layout
45224 -packages ! diagbox
45232 \begin_layout Bibliography
45233 \begin_inset CommandInset bibitem
45234 LatexCommand bibitem
45239 Documentation of the \SpecialChar LaTeX
45243 \begin_inset CommandInset href
45246 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45253 \begin_inset Index idx
45256 \begin_layout Plain Layout
45258 -packages ! endfloat
45266 \begin_layout Bibliography
45267 \begin_inset CommandInset bibitem
45268 LatexCommand bibitem
45273 Documentation of the \SpecialChar LaTeX
45277 \begin_inset CommandInset href
45280 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45287 \begin_inset Index idx
45290 \begin_layout Plain Layout
45292 -packages ! footmisc
45300 \begin_layout Bibliography
45301 \begin_inset CommandInset bibitem
45302 LatexCommand bibitem
45307 Documentation of the \SpecialChar LaTeX
45311 \begin_inset CommandInset href
45314 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45321 \begin_inset Index idx
45324 \begin_layout Plain Layout
45326 -packages ! hyperref
45334 \begin_layout Bibliography
45335 \begin_inset CommandInset bibitem
45336 LatexCommand bibitem
45341 Documentation of the \SpecialChar LaTeX
45345 \begin_inset CommandInset href
45348 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45355 \begin_inset Index idx
45358 \begin_layout Plain Layout
45360 -packages ! hyperref
45368 \begin_layout Bibliography
45369 \begin_inset CommandInset bibitem
45370 LatexCommand bibitem
45375 Documentation of the \SpecialChar LaTeX
45379 \begin_inset CommandInset href
45382 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45389 \begin_inset Index idx
45392 \begin_layout Plain Layout
45394 -packages ! KOMA-Script
45402 \begin_layout Bibliography
45403 \begin_inset CommandInset bibitem
45404 LatexCommand bibitem
45409 Documentation of the \SpecialChar LaTeX
45413 \begin_inset CommandInset href
45416 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45423 \begin_inset CommandInset href
45426 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45431 \begin_inset Index idx
45434 \begin_layout Plain Layout
45436 -packages ! lettrine
45444 \begin_layout Bibliography
45445 \begin_inset CommandInset bibitem
45446 LatexCommand bibitem
45451 Documentation of the \SpecialChar LaTeX
45455 \begin_inset CommandInset href
45458 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45465 \begin_inset Index idx
45468 \begin_layout Plain Layout
45470 -packages ! listings
45478 \begin_layout Bibliography
45479 \begin_inset CommandInset bibitem
45480 LatexCommand bibitem
45485 Documentation of the \SpecialChar LaTeX
45489 \begin_inset CommandInset href
45492 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45499 \begin_inset Index idx
45502 \begin_layout Plain Layout
45504 -packages ! marginnote
45512 \begin_layout Bibliography
45513 \begin_inset CommandInset bibitem
45514 LatexCommand bibitem
45519 Documentation of the \SpecialChar LaTeX
45523 \begin_inset CommandInset href
45526 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45533 \begin_inset Index idx
45536 \begin_layout Plain Layout
45538 -packages ! pdfpages
45546 \begin_layout Bibliography
45547 \begin_inset CommandInset bibitem
45548 LatexCommand bibitem
45553 Documentation of the \SpecialChar LaTeX
45557 \begin_inset CommandInset href
45560 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45567 \begin_inset Index idx
45570 \begin_layout Plain Layout
45572 -packages ! prettyref
45580 \begin_layout Bibliography
45581 \begin_inset CommandInset bibitem
45582 LatexCommand bibitem
45587 Web page of the \SpecialChar LaTeX
45591 \begin_inset CommandInset href
45594 target "http://tug.org/PSTricks/"
45601 \begin_inset Index idx
45604 \begin_layout Plain Layout
45606 -packages ! PSTricks
45614 \begin_layout Bibliography
45615 \begin_inset CommandInset bibitem
45616 LatexCommand bibitem
45621 Documentation of the \SpecialChar LaTeX
45625 \begin_inset CommandInset href
45628 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45635 \begin_inset Index idx
45638 \begin_layout Plain Layout
45640 -packages ! refstyle
45648 \begin_layout Bibliography
45649 \begin_inset CommandInset bibitem
45650 LatexCommand bibitem
45655 Documentation of the \SpecialChar LaTeX
45659 \begin_inset CommandInset href
45662 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45669 \begin_inset Index idx
45672 \begin_layout Plain Layout
45674 -packages ! sidecap
45682 \begin_layout Bibliography
45683 \begin_inset CommandInset bibitem
45684 LatexCommand bibitem
45690 \begin_inset CommandInset href
45693 target "http://wiki.lyx.org/LyX/NewInLyX20"
45697 about new features in
45705 \begin_layout Standard
45706 \begin_inset CommandInset index_print
45707 LatexCommand printindex