1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for colored table rows
85 \usepackage[table]{xcolor}
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
154 \newboolean{lettrine}
155 \IfFileExists{lettrine.sty}
156 {\usepackage{lettrine}
157 \setboolean{lettrine}{true}}
158 {\setboolean{lettrine}{false}}
162 \IfFileExists{diagbox.sty}
163 {\usepackage{diagbox}
164 \setboolean{diagbox}{true}}
165 {\setboolean{diagbox}{false}}
167 % workaround for a bug in KOMA-script 3.10a
168 % remove this if a newer KOMA-script version is released!
169 \usepackage{everysel,sidecap}
171 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
172 \use_default_options false
176 \maintain_unincluded_children false
178 \language_package default
183 \font_typewriter default
184 \font_default_family default
185 \use_non_tex_fonts false
192 \default_output_format default
194 \bibtex_command default
195 \index_command default
199 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
200 \pdf_author "LyX Team, Uwe Stöhr"
201 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
202 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
204 \pdf_bookmarksnumbered true
205 \pdf_bookmarksopen true
206 \pdf_bookmarksopenlevel 1
207 \pdf_breaklinks false
211 \pdf_pdfusetitle false
212 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
222 \paperorientation portrait
225 \notefontcolor #0000ff
232 \paragraph_separation skip
234 \quotes_language english
237 \paperpagestyle default
241 \tracking_changes true
242 \output_changes false
245 \html_be_strict false
246 \author -195340706 "Georg Baum"
252 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
261 \begin_layout Plain Layout
263 If you have comments or error corrections, please send them to the LyX Documenta
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 LaTeX-packages
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 LyX.
477 \begin_inset Newline newline
481 \begin_inset Index idx
484 \begin_layout Plain Layout
490 Images can be scaled by using a percentage value or by setting the width
491 and height explicitly.
492 If you set only the width or only the height, the other size will be determined
494 If you set both, then the image will be transformed to the given size,
495 possibly distorting it.
496 To prevent the image from distortion, use the option
498 Maintain aspect ratio
501 The image will then be scaled so that its width and height don't exceed
502 the specified dimensions.
503 \begin_inset Newline newline
506 Images can be opened in a program of your choice by right-clicking on it
507 and choosing the entry
516 The program can be set for every image format in the file format settings
517 in LyX's preferences.
520 \begin_layout Description
525 Alternatively to the usage of scaling units it is possible to set image
526 coordinates to adjust the height and width of the image in the output.
527 The coordinates can also be calculated automatically by pressing the button
557 will only print the image region within the given coordinates.
558 Normally you don't need to worry about image coordinates and can ignore
562 \begin_layout Description
579 In this tab you can modify the appearance of the image within LyX and LaTeX
580 experts can specify additional LaTeX options.
581 \begin_inset Newline newline
592 makes the image appear in the output only as a frame with the size of the
594 \begin_inset Newline newline
613 option only affects zipped EPS-graphics, e.
614 \begin_inset space \thinspace{}
618 \begin_inset space \space{}
626 When the option is used the images will not be unzipped on export, since
627 LaTeX can handle them as they are.
628 \begin_inset Newline newline
631 Zipped EPS-graphics are useful to save disk space when you choose PostScript
632 as output format, see appendix
637 \begin_inset CommandInset ref
639 reference "sec:PostScript"
644 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
646 \begin_inset Newline newline
654 \begin_inset Newline newline
659 zgrep %%Bounding x.eps.gz > x.eps.bb
662 \begin_inset Newline newline
665 The second command creates the bounding box file
666 \begin_inset Quotes eld
670 \begin_inset Quotes erd
673 that is needed by LaTeX for zipped graphics.
674 \begin_inset Newline newline
685 you can define or join an image settings group.
686 \begin_inset Index idx
689 \begin_layout Plain Layout
690 Figures ! Settings grouping
695 Images within such a group share their settings, so adjusting one image
696 of the group automatically also adjusts all other images of the group in
698 So you can for example change the size for a bunch of images without the
699 need to manually change each of them.
700 Joining an existing group can also be done using the context menu of the
701 image by checking the name of the desired group.
704 \begin_layout Standard
705 \begin_inset VSpace bigskip
711 \begin_layout Standard
712 This is an example image in EPS format
716 \begin_layout Plain Layout
717 Image formats are explained in section
722 \begin_inset CommandInset ref
724 reference "sec:Image-Formats"
733 within a separate, horizontally centered paragraph:
736 \begin_layout Standard
738 \begin_inset Graphics
739 filename clipart/mobius.eps
749 \begin_layout Standard
750 This is the same image like the one above but in draft mode:
753 \begin_layout Standard
755 \begin_inset Graphics
756 filename clipart/mobius.eps
767 \begin_layout Standard
768 \begin_inset Newpage newpage
774 \begin_layout Section
776 \begin_inset CommandInset label
778 name "sec:Figure-Floats"
783 \begin_inset Index idx
786 \begin_layout Plain Layout
793 \begin_inset Index idx
796 \begin_layout Plain Layout
805 \begin_layout Standard
806 For general explanations about floats, have a look at section
811 \begin_inset CommandInset ref
813 reference "sec:FloatIntroduction"
820 \begin_layout Standard
824 arg "float-insert figure"
829 Insert\SpecialChar \menuseparator
830 Float\SpecialChar \menuseparator
833 inserts a float with a caption that has the label
834 \begin_inset Quotes eld
842 \begin_inset Quotes erd
845 (# is the actual number).
846 You can insert the image above the caption, like in Figure
851 \begin_inset CommandInset ref
853 reference "fig:kill-plat"
857 or below the caption, like in Figure
862 \begin_inset CommandInset ref
864 reference "fig:escher"
869 More about caption placement is described in section
874 \begin_inset CommandInset ref
876 reference "sec:Caption-Placement"
883 \begin_layout Standard
884 \begin_inset Float figure
889 \begin_layout Plain Layout
891 \begin_inset Graphics
892 filename clipart/platypus.eps
902 \begin_layout Plain Layout
905 \begin_layout Plain Layout
906 \begin_inset CommandInset label
912 A severely distorted platypus in a float.
925 \begin_layout Standard
926 \begin_inset Float figure
931 \begin_layout Plain Layout
934 \begin_layout Plain Layout
935 \begin_inset CommandInset label
950 \begin_layout Plain Layout
952 \begin_inset Graphics
953 filename clipart/escher-lsd.eps
968 \begin_layout Standard
969 \begin_inset Index idx
972 \begin_layout Plain Layout
973 References ! to Figures
983 \begin_inset CommandInset ref
985 reference "fig:kill-plat"
990 \begin_inset CommandInset ref
992 reference "fig:escher"
996 are examples of referenced figures.
997 Figures can be referenced in the text by referencing their label.
998 To do this insert a label in the caption using the menu
1000 Insert\SpecialChar \menuseparator
1003 or the toolbar button
1010 You can now refer to the label using the menu
1012 Insert\SpecialChar \menuseparator
1014 \begin_inset space ~
1019 or the toolbar button
1022 arg "dialog-show-new-inset ref"
1026 It is important to use references to floats, rather than using vague references
1028 \begin_inset Quotes eld
1032 \begin_inset Quotes erd
1035 , because LaTeX will reposition the floats in the final document and it
1037 \begin_inset Quotes eld
1041 \begin_inset Quotes erd
1045 \begin_inset Newline newline
1048 Referencing is explained in detail in section
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "sec:Referencing-Floats"
1062 \begin_layout Standard
1063 Normally only one image is inserted to a figure float, but sometimes you
1064 might want to use two images with separate subcaptions.
1065 This can be done by inserting image floats into existing image floats.
1066 Note that only the main caption of the float is added to the List of Figures.
1068 \begin_inset space ~
1072 \begin_inset CommandInset ref
1074 reference "fig:Two-distorted-images"
1078 is an example of a figure float with two images set side by side.
1079 You can also set the images one below the other.
1081 \begin_inset space ~
1085 \begin_inset CommandInset ref
1087 reference "fig:Undefinable-structure"
1092 \begin_inset CommandInset ref
1094 reference "fig:A-Platypus"
1101 \begin_layout Standard
1102 \begin_inset Float figure
1107 \begin_layout Plain Layout
1108 \begin_inset space \hfill{}
1112 \begin_inset Float figure
1117 \begin_layout Plain Layout
1118 \begin_inset Caption
1120 \begin_layout Plain Layout
1121 \begin_inset CommandInset label
1123 name "fig:Undefinable-structure"
1127 Undefinable structure.
1135 \begin_layout Plain Layout
1136 \begin_inset Graphics
1137 filename clipart/escher-lsd.eps
1150 \begin_inset space \hfill{}
1154 \begin_inset Float figure
1159 \begin_layout Plain Layout
1160 \begin_inset Caption
1162 \begin_layout Plain Layout
1163 \begin_inset CommandInset label
1165 name "fig:A-Platypus"
1177 \begin_layout Plain Layout
1178 \begin_inset Graphics
1179 filename clipart/platypus.eps
1192 \begin_inset space \hfill{}
1198 \begin_layout Plain Layout
1199 \begin_inset Caption
1201 \begin_layout Plain Layout
1202 \begin_inset CommandInset label
1204 name "fig:Two-distorted-images"
1209 \begin_inset CommandInset label
1211 name "fig2:Two-distorted-images-2"
1215 Two distorted images.
1216 Both images are in the image settings group named
1217 \begin_inset Quotes eld
1221 \begin_inset Quotes erd
1237 \begin_layout Standard
1238 \begin_inset Newpage newpage
1244 \begin_layout Section
1246 \begin_inset CommandInset label
1248 name "sec:Image-Formats"
1253 \begin_inset Index idx
1256 \begin_layout Plain Layout
1263 \begin_inset Index idx
1266 \begin_layout Plain Layout
1267 Figures ! Image Formats
1275 \begin_layout Standard
1276 You can insert images in any known file format.
1277 But as explained in appendix
1278 \begin_inset space ~
1282 \begin_inset CommandInset ref
1284 reference "cha:Output-File-Formats"
1288 , each output document format allows only a few image formats.
1289 LyX uses therefore the program
1293 in the background to convert the images to the right format.
1294 To increase your work flow by avoiding these conversions in the background,
1295 you could choose to use only the image formats that can directly be embedded
1296 in the output file format.
1297 The output file formats are explained in appendix
1298 \begin_inset space ~
1302 \begin_inset CommandInset ref
1304 reference "cha:Output-File-Formats"
1311 \begin_layout Standard
1312 Similar to fonts there are two types of image formats:
1315 \begin_layout Description
1317 \begin_inset space ~
1320 images consist of pixel values, often in a compressed form.
1321 They are therefore not fully scalable and look pixelated in large zooms.
1322 Well-known bitmap image formats are
1323 \begin_inset Quotes eld
1326 Graphics Interchange Format
1327 \begin_inset Quotes erd
1330 (GIF, file extension
1331 \begin_inset Quotes eld
1339 \begin_inset Quotes erd
1343 \begin_inset Index idx
1346 \begin_layout Plain Layout
1351 \begin_layout Plain Layout
1362 \begin_layout Plain Layout
1375 \begin_inset Quotes eld
1378 Portable Network Graphics
1379 \begin_inset Quotes erd
1382 (PNG, file extension
1383 \begin_inset Quotes eld
1391 \begin_inset Quotes erd
1395 \begin_inset Index idx
1398 \begin_layout Plain Layout
1403 \begin_layout Plain Layout
1414 \begin_layout Plain Layout
1427 \begin_inset Quotes eld
1430 Joint Photographic Experts Group
1431 \begin_inset Quotes erd
1434 (JPG, file extension
1435 \begin_inset Quotes eld
1443 \begin_inset Quotes erd
1447 \begin_inset Quotes eld
1455 \begin_inset Quotes erd
1459 \begin_inset Index idx
1462 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1478 \begin_layout Plain Layout
1493 \begin_layout Description
1495 \begin_inset space ~
1498 images consist of vectors and can therefore be scaled to any size without
1500 The scaling ability is necessary if you want to create presentations, because
1501 presentations are always scaled by the video projector.
1502 Scaling is also useful for online documents to let the user zoom into diagrams.
1503 \begin_inset Newline newline
1506 Well-known scalable image formats are
1507 \begin_inset Quotes eld
1510 Scalable Vector Graphics
1511 \begin_inset Quotes erd
1514 (SVG, file extension
1515 \begin_inset Quotes eld
1523 \begin_inset Quotes erd
1527 \begin_inset Index idx
1530 \begin_layout Plain Layout
1535 \begin_layout Plain Layout
1546 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1562 Encapsulated PostScript
1563 \begin_inset Quotes erd
1566 (EPS, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1614 Portable Document Format
1615 \begin_inset Quotes erd
1618 (PDF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1631 \begin_inset Index idx
1634 \begin_layout Plain Layout
1641 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1648 (WMF, file extension
1649 \begin_inset Quotes eld
1657 \begin_inset Quotes erd
1661 \begin_inset Index idx
1664 \begin_layout Plain Layout
1669 \begin_layout Plain Layout
1680 \begin_layout Plain Layout
1694 \begin_inset Quotes eld
1698 \begin_inset Quotes erd
1701 , because you can convert any bitmap image to a PDF or EPS-image and the
1702 result will still be a bitmap image.
1703 In such cases only a header with the image properties is added to the original
1708 \begin_layout Plain Layout
1709 In the case of PDF, the original image is additionally compressed.
1715 The PDF-files generated by
1719 are for example bitmap images.
1722 \begin_layout Standard
1723 Normally it is not possible to convert a bitmap image into a scalable one,
1725 Only the image formats PDF and EPS can directly be embedded to PDF and
1726 PostScript output files, respectively.
1727 SVG and WMF-images are recalculated to bitmaps when the output file is
1728 generated because there is currently no adequate WMF/SVG
1729 \begin_inset Formula $\to$
1732 PDF/EPS converter available.
1735 \begin_layout Chapter
1737 \begin_inset Index idx
1740 \begin_layout Plain Layout
1749 \begin_layout Section
1751 \begin_inset Index idx
1754 \begin_layout Plain Layout
1755 Table ! Introduction
1763 \begin_layout Standard
1764 You can insert a table using either the toolbar button
1767 arg "tabular-insert"
1772 Insert\SpecialChar \menuseparator
1776 The toolbar button offers you a graphical selection: move the mouse to
1777 set the column/row number of the table that should be created and then
1778 press a mouse button.
1779 When you use the menu to create a table, a dialog will appear, asking you
1780 for the number of rows and columns.
1781 \begin_inset Newline newline
1784 The default table has lines around any cell and the first row appears separated
1785 from the rest of the table.
1786 This separation occurs due to a double line: The cells of the first row
1787 have a line below them and the cells of the second row have a line above
1789 Here is an example table:
1792 \begin_layout Standard
1794 \begin_inset Tabular
1795 <lyxtabular version="3" rows="4" columns="4">
1796 <features tabularvalignment="middle">
1797 <column alignment="center" valignment="top" width="0">
1798 <column alignment="center" valignment="top" width="0">
1799 <column alignment="center" valignment="top" width="0">
1800 <column alignment="center" valignment="top" width="0">
1802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1805 \begin_layout Plain Layout
1811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1814 \begin_layout Plain Layout
1829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1832 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1841 \begin_layout Plain Layout
1849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1852 \begin_layout Plain Layout
1867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1870 \begin_layout Plain Layout
1876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1879 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1888 \begin_layout Plain Layout
1896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1899 \begin_layout Plain Layout
1914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1917 \begin_layout Plain Layout
1923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1926 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1935 \begin_layout Plain Layout
1943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1946 \begin_layout Plain Layout
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Plain Layout
1970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1973 \begin_layout Plain Layout
1979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1982 \begin_layout Plain Layout
1996 \begin_layout Section
1998 \begin_inset Index idx
2001 \begin_layout Plain Layout
2010 \begin_layout Standard
2011 You can alter a table by clicking on it with the right mouse button, which
2012 brings up the table dialog.
2013 Here you can adjust the settings of that cell and row/column respectively
2014 where the cursor is currently placed.
2015 Most of the dialog options also work on selections.
2016 This means if you select more cells, columns or rows, the action is done
2017 for the whole selection.
2018 Note that there is a difference between selecting the
2022 of the cell, and the cell itself.
2023 \begin_inset Newline newline
2026 With the dialog option
2029 \begin_inset space ~
2034 every change you make in the dialog is directly applied.
2035 If you move the cursor to another table cell the dialog will then also
2036 be updated with the parameters of the new cell.
2037 If you change length values in the dialog you must press return to get
2039 \begin_inset Newline newline
2042 You can alter tables with the following tabs of the table dialog:
2045 \begin_layout Description
2049 \begin_inset space ~
2054 Here you can set the table width
2055 \begin_inset Index idx
2058 \begin_layout Plain Layout
2064 , and the horizontal alignment and the width of the current column.
2068 \begin_inset space ~
2072 \begin_inset space ~
2077 is described in section
2078 \begin_inset space ~
2082 \begin_inset CommandInset ref
2084 reference "sub:Special-Cell-Alignment"
2089 When you have set a width you can also adjust the vertical alignment of
2091 A given width will allow the cell to have line breaks and multiple paragraphs
2093 \begin_inset space \thinspace{}
2097 \begin_inset CommandInset ref
2099 reference "sub:Multiple-Lines-in"
2104 If you set no width, the column is as wide as the content of its widest
2106 \begin_inset Newline newline
2109 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2111 \begin_inset space \thinspace{}
2115 \begin_inset CommandInset ref
2117 reference "sub:Multicolumns"
2121 or the cells of one column as multirow cell, see sec.
2122 \begin_inset space \thinspace{}
2126 \begin_inset CommandInset ref
2128 reference "sub:Multirows"
2133 \begin_inset Newline newline
2136 The rotate check boxes rotate the current cell, a selection, or the whole
2137 table counter-clockwise by 90
2138 \begin_inset space \thinspace{}
2142 The rotation is not shown within LyX, only in the output.
2143 For more information see sec.
2144 \begin_inset space \thinspace{}
2148 \begin_inset CommandInset ref
2150 reference "sec:Rotated-Table-Cells"
2155 \begin_inset Newline newline
2159 \begin_inset Note Greyedout
2162 \begin_layout Plain Layout
2167 Not all DVI-viewers are able to display rotations.
2173 \begin_inset Newline newline
2176 The table-wide vertical alignment is used for tables within text lines:
2177 \begin_inset Newline newline
2180 A line with tables with different alignments:
2181 \begin_inset Tabular
2182 <lyxtabular version="3" rows="2" columns="2">
2183 <features tabularvalignment="top">
2184 <column alignment="center" valignment="top" width="0pt">
2185 <column alignment="center" valignment="top" width="0">
2187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2190 \begin_layout Plain Layout
2196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2199 \begin_layout Plain Layout
2216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2219 \begin_layout Plain Layout
2234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2237 \begin_layout Plain Layout
2249 \begin_inset Tabular
2250 <lyxtabular version="3" rows="2" columns="2">
2251 <features tabularvalignment="middle">
2252 <column alignment="center" valignment="top" width="0">
2253 <column alignment="center" valignment="top" width="0">
2255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2258 \begin_layout Plain Layout
2264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2267 \begin_layout Plain Layout
2284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2287 \begin_layout Plain Layout
2302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2305 \begin_layout Plain Layout
2317 \begin_inset Tabular
2318 <lyxtabular version="3" rows="2" columns="2">
2319 <features tabularvalignment="bottom">
2320 <column alignment="center" valignment="top" width="0pt">
2321 <column alignment="center" valignment="top" width="0">
2323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2326 \begin_layout Plain Layout
2332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2335 \begin_layout Plain Layout
2352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2355 \begin_layout Plain Layout
2370 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2373 \begin_layout Plain Layout
2385 \begin_inset Newline newline
2388 It is also possible to enter a LaTeX-argument which is needed for special
2389 table formattings, see sec.
2390 \begin_inset space \thinspace{}
2394 \begin_inset CommandInset ref
2396 reference "sub:Multicolumn-Calculations"
2401 \begin_inset CommandInset ref
2403 reference "sec:Colored-Tables"
2410 \begin_layout Description
2415 In this tab you can add and delete border lines for the current row/column.
2416 \begin_inset Newline newline
2419 Using the style option
2423 will convert the table to a formal table as described in sec.
2424 \begin_inset space \thinspace{}
2428 \begin_inset CommandInset ref
2430 reference "sec:Formal-Tables"
2435 \begin_inset Newline newline
2438 You can also add space here to table rows as described in sec.
2439 \begin_inset space \thinspace{}
2443 \begin_inset CommandInset ref
2445 reference "sub:Row-Spacing"
2452 \begin_layout Description
2457 This tab is to make a table a so called
2458 \begin_inset Quotes eld
2466 \begin_inset Quotes erd
2469 that can run over several pages.
2471 \begin_inset space ~
2475 \begin_inset CommandInset ref
2477 reference "sec:Longtables"
2482 \begin_inset CommandInset ref
2484 reference "sec:Special-Longtable-Issues"
2488 describe the longtable features in detail.
2491 \begin_layout Section
2493 \begin_inset Index idx
2496 \begin_layout Plain Layout
2505 \begin_layout Standard
2506 The table toolbar is an alternative to the table dialog to be able to alter
2508 It should normally appear at the bottom of LyX's main window when the cursor
2510 You can alternatively switch it on to appear always, by right-clicking
2511 in LyX's main menu bar.
2514 \begin_layout Standard
2515 The toolbar has the following icons:
2518 \begin_layout Labeling
2519 \labelwidthstring 00.00.0000
2522 arg "inset-modify tabular append-row"
2525 adds a row below the current cell or selection
2528 \begin_layout Labeling
2529 \labelwidthstring 00.00.0000
2532 arg "inset-modify tabular append-column"
2535 adds a column right beside the current cell or selection
2538 \begin_layout Labeling
2539 \labelwidthstring 00.00.0000
2542 arg "inset-modify tabular delete-row"
2545 deletes the current row or selection
2548 \begin_layout Labeling
2549 \labelwidthstring 00.00.0000
2552 arg "inset-modify tabular delete-column"
2555 deletes the current column or selection
2558 \begin_layout Labeling
2559 \labelwidthstring 00.00.0000
2562 arg "inset-modify tabular toggle-line-top"
2565 adds a line at the top of the current cell / row or of a selection
2568 \begin_layout Labeling
2569 \labelwidthstring 00.00.0000
2572 arg "inset-modify tabular toggle-line-bottom"
2575 adds a line at the bottom of the current cell / row or of a selection
2578 \begin_layout Labeling
2579 \labelwidthstring 00.00.0000
2582 arg "inset-modify tabular toggle-line-left"
2585 adds a line at the left side of the current cell / row or of a selection
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2592 arg "inset-modify tabular toggle-line-right"
2595 adds a line at the right side of the current cell / row or of a selection
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2602 arg "inset-modify tabular set-all-lines"
2605 adds lines around the current or selected cells - if the current cell no
2606 multicolumn cell this also affects the current row and column
2609 \begin_layout Labeling
2610 \labelwidthstring 00.00.0000
2613 arg "inset-modify tabular unset-all-lines"
2616 deletes all lines of the current or selected cells - if the current cell
2617 no multicolumn cell this also affects the current row and column
2620 \begin_layout Labeling
2621 \labelwidthstring 00.00.0000
2624 arg "inset-modify tabular m-align-left"
2627 left-aligns the content of the current cell / column
2630 \begin_layout Labeling
2631 \labelwidthstring 00.00.0000
2634 arg "inset-modify tabular m-align-center"
2637 centers the content of the current cell / column horizontally
2640 \begin_layout Labeling
2641 \labelwidthstring 00.00.0000
2644 arg "inset-modify tabular m-align-right"
2647 right-aligns the content of the current cell / column
2650 \begin_layout Labeling
2651 \labelwidthstring 00.00.0000
2654 arg "inset-modify tabular align-decimal"
2657 aligns the content of the current column at a character
2660 \begin_layout Labeling
2661 \labelwidthstring 00.00.0000
2664 arg "inset-modify tabular m-valign-top"
2667 aligns the content of the current cell vertically to the top
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2674 arg "inset-modify tabular m-valign-middle"
2677 centers the content of the current cell vertically
2680 \begin_layout Labeling
2681 \labelwidthstring 00.00.0000
2684 arg "inset-modify tabular m-valign-bottom"
2687 aligns the content of the current cell vertically to the bottom
2690 \begin_layout Labeling
2691 \labelwidthstring 00.00.0000
2694 arg "inset-modify tabular set-rotate-cell"
2697 rotates the current cell or selection counter-clockwise by 90°
2700 \begin_layout Labeling
2701 \labelwidthstring 00.00.0000
2704 arg "inset-modify tabular set-rotate-tabular"
2707 rotates the whole table counter-clockwise by 90°
2710 \begin_layout Labeling
2711 \labelwidthstring 00.00.0000
2714 arg "inset-modify tabular multicolumn"
2717 sets the current cell or selection as a multicolumn
2720 \begin_layout Labeling
2721 \labelwidthstring 00.00.0000
2724 arg "inset-modify tabular multirow"
2727 sets the current cell or selection as a multirow
2730 \begin_layout Standard
2731 \begin_inset Note Greyedout
2734 \begin_layout Plain Layout
2739 For the output the vertical alignment of the first cell in a row is used
2740 for all following cells in the row.
2748 \begin_layout Section
2750 \begin_inset Index idx
2753 \begin_layout Plain Layout
2762 \begin_layout Standard
2763 In addition to the table dialog and toolbar, the menu
2765 Edit\SpecialChar \menuseparator
2768 allows you to add and delete border lines for the current row/column and
2769 to set the current selection as multicolumn.
2770 The menu is only available when the cursor is inside a table.
2773 \begin_layout Section
2775 \begin_inset CommandInset label
2777 name "sec:Table-Floats"
2782 \begin_inset Index idx
2785 \begin_layout Plain Layout
2792 \begin_inset Index idx
2795 \begin_layout Plain Layout
2804 \begin_layout Standard
2805 For general explanations about floats, have a look at section
2806 \begin_inset space ~
2810 \begin_inset CommandInset ref
2812 reference "sec:FloatIntroduction"
2819 \begin_layout Standard
2820 \begin_inset Float table
2826 \begin_layout Plain Layout
2827 \begin_inset Caption
2829 \begin_layout Plain Layout
2830 \begin_inset CommandInset label
2832 name "tab:a table float"
2844 \begin_layout Plain Layout
2846 \begin_inset Tabular
2847 <lyxtabular version="3" rows="3" columns="3">
2848 <features tabularvalignment="middle">
2849 <column alignment="center" valignment="top" width="0pt">
2850 <column alignment="center" valignment="top" width="0pt">
2851 <column alignment="center" valignment="top" width="0pt">
2853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2856 \begin_layout Plain Layout
2871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2874 \begin_layout Plain Layout
2889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2892 \begin_layout Plain Layout
2909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2912 \begin_layout Plain Layout
2927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2930 \begin_layout Plain Layout
2945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2948 \begin_layout Plain Layout
2965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2968 \begin_layout Plain Layout
2978 \begin_inset Formula $\int x^{2}dx$
2986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2989 \begin_layout Plain Layout
2999 \begin_inset Formula $\left[\begin{array}{cc}
3010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3013 \begin_layout Plain Layout
3023 \begin_inset Formula $1+1=2$
3044 \begin_layout Standard
3045 Table floats can be inserted using the menu
3047 Insert\SpecialChar \menuseparator
3048 Float\SpecialChar \menuseparator
3051 or the toolbar button
3054 arg "float-insert table"
3060 \begin_layout Standard
3061 The float appears as a collapsible box with a caption that has the label
3063 \begin_inset Quotes eld
3067 \begin_inset space ~
3071 \begin_inset Quotes erd
3074 (# is the actual table number).
3075 You can insert tables in the float above or below the caption.
3078 \begin_layout Standard
3080 \begin_inset space ~
3084 \begin_inset CommandInset ref
3086 reference "tab:a table float"
3090 is an example table within a table float.
3093 \begin_layout Standard
3094 Having the caption above the table is the common rule that is unfortunately
3095 not supported in LaTeX's standard classes.
3096 This means that, if you are using the document classes
3112 , there will be no space between the caption and the table.
3113 To insert the needed space, add the following option to the load command
3114 of the LaTeX-package
3119 \begin_inset Index idx
3122 \begin_layout Plain Layout
3123 LaTeX-packages ! caption
3128 in your document preamble
3132 \begin_layout Plain Layout
3133 For more information have a look at section
3134 \begin_inset space ~
3138 \begin_inset CommandInset ref
3140 reference "sec:Caption-Placement"
3152 \begin_layout Standard
3158 \begin_layout Standard
3163 , which is described in section
3164 \begin_inset space ~
3168 \begin_inset CommandInset ref
3170 reference "sec:Caption-Formatting"
3174 , is used to adjust the caption format.
3177 \begin_layout Standard
3178 \begin_inset Index idx
3181 \begin_layout Plain Layout
3182 References ! to Tables
3187 Tables can be cross-referenced in the text by referencing their label.
3188 To do this insert a label in the caption using the menu
3190 Insert\SpecialChar \menuseparator
3193 or the toolbar button
3200 You can now refer to the label using the menu
3202 Insert\SpecialChar \menuseparator
3204 \begin_inset space ~
3209 or the toolbar button
3212 arg "dialog-show-new-inset ref"
3216 \begin_inset Newline newline
3219 Referencing is explained in detail in section
3220 \begin_inset space ~
3224 \begin_inset CommandInset ref
3226 reference "sec:Referencing-Floats"
3233 \begin_layout Section
3235 \begin_inset CommandInset label
3237 name "sec:Longtables"
3242 \begin_inset Index idx
3245 \begin_layout Plain Layout
3252 \begin_inset Index idx
3255 \begin_layout Plain Layout
3264 \begin_layout Standard
3265 If the table is too long to fit on one page, you can use the option
3268 \begin_inset space ~
3272 \begin_inset space ~
3281 of the table dialog to split the table automatically over more pages.
3282 Doing this enables the following options:
3285 \begin_layout Description
3286 Header: The current row is defined to be a header row that appears on all
3287 pages of the longtable; except for the first page, if
3290 \begin_inset space ~
3296 This is therefore called the main header.
3299 \begin_layout Description
3301 \begin_inset space ~
3304 header: The current row is defined to be a header row that appears on the
3305 first page of the longtable.
3308 \begin_layout Description
3309 Footer: The current row is defined to be a footer row that appears on all
3310 pages of the longtable; except for the last page, if
3313 \begin_inset space ~
3321 \begin_layout Description
3323 \begin_inset space ~
3326 footer: The current row is defined to be a footer row that appears on the
3327 last page of the longtable.
3330 \begin_layout Description
3331 Caption: The current row contains the table caption.
3332 The row is reset as single column and a caption is inserted.
3333 More about longtable captions is explained in sec.
3334 \begin_inset space \thinspace{}
3338 \begin_inset CommandInset ref
3340 reference "sub:Longtable-Captions"
3347 \begin_layout Standard
3348 You can also specify a row where the table is split.
3349 See the following longtable to see how it works:
3352 \begin_layout Standard
3354 \begin_inset Tabular
3355 <lyxtabular version="3" rows="69" columns="3">
3356 <features islongtable="true" longtabularalignment="center">
3357 <column alignment="left" valignment="top" width="0cm">
3358 <column alignment="left" valignment="top" width="0pt">
3359 <column alignment="center" valignment="top" width="0pt">
3360 <row endfirsthead="true">
3361 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3364 \begin_layout Plain Layout
3367 Example Phone List (ignore the names)
3372 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3375 \begin_layout Plain Layout
3381 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3384 \begin_layout Plain Layout
3391 <row endfirsthead="true">
3392 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3395 \begin_layout Plain Layout
3403 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3406 \begin_layout Plain Layout
3412 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3415 \begin_layout Plain Layout
3424 <row endhead="true">
3425 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3428 \begin_layout Plain Layout
3436 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3439 \begin_layout Plain Layout
3445 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3448 \begin_layout Plain Layout
3455 <row endhead="true">
3456 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3459 \begin_layout Plain Layout
3467 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3470 \begin_layout Plain Layout
3476 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3479 \begin_layout Plain Layout
3488 <row endfoot="true">
3489 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3492 \begin_layout Plain Layout
3493 continued on next page
3498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3501 \begin_layout Plain Layout
3507 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3510 \begin_layout Plain Layout
3518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3521 \begin_layout Plain Layout
3529 <cell alignment="center" valignment="top" usebox="none">
3532 \begin_layout Plain Layout
3538 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3541 \begin_layout Plain Layout
3549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3552 \begin_layout Plain Layout
3560 <cell alignment="center" valignment="top" usebox="none">
3563 \begin_layout Plain Layout
3569 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3572 \begin_layout Plain Layout
3580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3583 \begin_layout Plain Layout
3591 <cell alignment="center" valignment="top" usebox="none">
3594 \begin_layout Plain Layout
3600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3603 \begin_layout Plain Layout
3611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3614 \begin_layout Plain Layout
3622 <cell alignment="center" valignment="top" usebox="none">
3625 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3634 \begin_layout Plain Layout
3642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3645 \begin_layout Plain Layout
3653 <cell alignment="center" valignment="top" usebox="none">
3656 \begin_layout Plain Layout
3662 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3665 \begin_layout Plain Layout
3673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3676 \begin_layout Plain Layout
3684 <cell alignment="center" valignment="top" usebox="none">
3687 \begin_layout Plain Layout
3693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3696 \begin_layout Plain Layout
3704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3707 \begin_layout Plain Layout
3715 <cell alignment="center" valignment="top" usebox="none">
3718 \begin_layout Plain Layout
3724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3727 \begin_layout Plain Layout
3735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3738 \begin_layout Plain Layout
3746 <cell alignment="center" valignment="top" usebox="none">
3749 \begin_layout Plain Layout
3755 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3758 \begin_layout Plain Layout
3766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3769 \begin_layout Plain Layout
3777 <cell alignment="center" valignment="top" usebox="none">
3780 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3789 \begin_layout Plain Layout
3797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3800 \begin_layout Plain Layout
3808 <cell alignment="center" valignment="top" usebox="none">
3811 \begin_layout Plain Layout
3817 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3820 \begin_layout Plain Layout
3828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3831 \begin_layout Plain Layout
3839 <cell alignment="center" valignment="top" usebox="none">
3842 \begin_layout Plain Layout
3848 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3851 \begin_layout Plain Layout
3859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3862 \begin_layout Plain Layout
3870 <cell alignment="center" valignment="top" usebox="none">
3873 \begin_layout Plain Layout
3879 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3882 \begin_layout Plain Layout
3890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3893 \begin_layout Plain Layout
3901 <cell alignment="center" valignment="top" usebox="none">
3904 \begin_layout Plain Layout
3910 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3913 \begin_layout Plain Layout
3921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3924 \begin_layout Plain Layout
3932 <cell alignment="center" valignment="top" usebox="none">
3935 \begin_layout Plain Layout
3941 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3944 \begin_layout Plain Layout
3952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3955 \begin_layout Plain Layout
3963 <cell alignment="center" valignment="top" usebox="none">
3966 \begin_layout Plain Layout
3972 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3975 \begin_layout Plain Layout
3983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3986 \begin_layout Plain Layout
3994 <cell alignment="center" valignment="top" usebox="none">
3997 \begin_layout Plain Layout
4003 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4006 \begin_layout Plain Layout
4014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4017 \begin_layout Plain Layout
4025 <cell alignment="center" valignment="top" usebox="none">
4028 \begin_layout Plain Layout
4034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4037 \begin_layout Plain Layout
4045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4048 \begin_layout Plain Layout
4056 <cell alignment="center" valignment="top" usebox="none">
4059 \begin_layout Plain Layout
4065 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4068 \begin_layout Plain Layout
4076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4079 \begin_layout Plain Layout
4087 <cell alignment="center" valignment="top" usebox="none">
4090 \begin_layout Plain Layout
4096 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4099 \begin_layout Plain Layout
4107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4110 \begin_layout Plain Layout
4118 <cell alignment="center" valignment="top" usebox="none">
4121 \begin_layout Plain Layout
4127 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4130 \begin_layout Plain Layout
4138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4141 \begin_layout Plain Layout
4149 <cell alignment="center" valignment="top" usebox="none">
4152 \begin_layout Plain Layout
4158 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4161 \begin_layout Plain Layout
4169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4172 \begin_layout Plain Layout
4180 <cell alignment="center" valignment="top" usebox="none">
4183 \begin_layout Plain Layout
4189 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4192 \begin_layout Plain Layout
4200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4203 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" usebox="none">
4214 \begin_layout Plain Layout
4220 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4223 \begin_layout Plain Layout
4231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4234 \begin_layout Plain Layout
4242 <cell alignment="center" valignment="top" usebox="none">
4245 \begin_layout Plain Layout
4251 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4254 \begin_layout Plain Layout
4262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4265 \begin_layout Plain Layout
4273 <cell alignment="center" valignment="top" usebox="none">
4276 \begin_layout Plain Layout
4282 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4285 \begin_layout Plain Layout
4293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4296 \begin_layout Plain Layout
4304 <cell alignment="center" valignment="top" usebox="none">
4307 \begin_layout Plain Layout
4313 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4316 \begin_layout Plain Layout
4324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4327 \begin_layout Plain Layout
4335 <cell alignment="center" valignment="top" usebox="none">
4338 \begin_layout Plain Layout
4344 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4347 \begin_layout Plain Layout
4355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4358 \begin_layout Plain Layout
4366 <cell alignment="center" valignment="top" usebox="none">
4369 \begin_layout Plain Layout
4375 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4378 \begin_layout Plain Layout
4386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4389 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" usebox="none">
4400 \begin_layout Plain Layout
4406 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4409 \begin_layout Plain Layout
4417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4420 \begin_layout Plain Layout
4428 <cell alignment="center" valignment="top" usebox="none">
4431 \begin_layout Plain Layout
4437 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4440 \begin_layout Plain Layout
4448 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4451 \begin_layout Plain Layout
4459 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4462 \begin_layout Plain Layout
4468 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4471 \begin_layout Plain Layout
4479 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4482 \begin_layout Plain Layout
4488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4491 \begin_layout Plain Layout
4497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4500 \begin_layout Plain Layout
4508 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4511 \begin_layout Plain Layout
4519 <cell alignment="center" valignment="top" usebox="none">
4522 \begin_layout Plain Layout
4528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4531 \begin_layout Plain Layout
4539 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4542 \begin_layout Plain Layout
4550 <cell alignment="center" valignment="top" usebox="none">
4553 \begin_layout Plain Layout
4559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4562 \begin_layout Plain Layout
4570 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4573 \begin_layout Plain Layout
4581 <cell alignment="center" valignment="top" usebox="none">
4584 \begin_layout Plain Layout
4590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4593 \begin_layout Plain Layout
4601 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4604 \begin_layout Plain Layout
4612 <cell alignment="center" valignment="top" usebox="none">
4615 \begin_layout Plain Layout
4621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4624 \begin_layout Plain Layout
4632 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4635 \begin_layout Plain Layout
4643 <cell alignment="center" valignment="top" usebox="none">
4646 \begin_layout Plain Layout
4652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4655 \begin_layout Plain Layout
4663 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4666 \begin_layout Plain Layout
4674 <cell alignment="center" valignment="top" usebox="none">
4677 \begin_layout Plain Layout
4683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4686 \begin_layout Plain Layout
4694 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4697 \begin_layout Plain Layout
4705 <cell alignment="center" valignment="top" usebox="none">
4708 \begin_layout Plain Layout
4714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4717 \begin_layout Plain Layout
4725 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4728 \begin_layout Plain Layout
4736 <cell alignment="center" valignment="top" usebox="none">
4739 \begin_layout Plain Layout
4745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4748 \begin_layout Plain Layout
4756 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4759 \begin_layout Plain Layout
4767 <cell alignment="center" valignment="top" usebox="none">
4770 \begin_layout Plain Layout
4776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4779 \begin_layout Plain Layout
4787 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4790 \begin_layout Plain Layout
4798 <cell alignment="center" valignment="top" usebox="none">
4801 \begin_layout Plain Layout
4807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4810 \begin_layout Plain Layout
4818 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4821 \begin_layout Plain Layout
4829 <cell alignment="center" valignment="top" usebox="none">
4832 \begin_layout Plain Layout
4838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4841 \begin_layout Plain Layout
4849 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4852 \begin_layout Plain Layout
4860 <cell alignment="center" valignment="top" usebox="none">
4863 \begin_layout Plain Layout
4869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4872 \begin_layout Plain Layout
4880 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4883 \begin_layout Plain Layout
4891 <cell alignment="center" valignment="top" usebox="none">
4894 \begin_layout Plain Layout
4900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4903 \begin_layout Plain Layout
4911 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4914 \begin_layout Plain Layout
4922 <cell alignment="center" valignment="top" usebox="none">
4925 \begin_layout Plain Layout
4931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4934 \begin_layout Plain Layout
4942 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4945 \begin_layout Plain Layout
4953 <cell alignment="center" valignment="top" usebox="none">
4956 \begin_layout Plain Layout
4962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4965 \begin_layout Plain Layout
4973 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4976 \begin_layout Plain Layout
4984 <cell alignment="center" valignment="top" usebox="none">
4987 \begin_layout Plain Layout
4993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4996 \begin_layout Plain Layout
5004 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5007 \begin_layout Plain Layout
5015 <cell alignment="center" valignment="top" usebox="none">
5018 \begin_layout Plain Layout
5024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5027 \begin_layout Plain Layout
5035 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5038 \begin_layout Plain Layout
5046 <cell alignment="center" valignment="top" usebox="none">
5049 \begin_layout Plain Layout
5055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5058 \begin_layout Plain Layout
5066 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5069 \begin_layout Plain Layout
5077 <cell alignment="center" valignment="top" usebox="none">
5080 \begin_layout Plain Layout
5086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5089 \begin_layout Plain Layout
5097 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5100 \begin_layout Plain Layout
5108 <cell alignment="center" valignment="top" usebox="none">
5111 \begin_layout Plain Layout
5117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5120 \begin_layout Plain Layout
5128 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5131 \begin_layout Plain Layout
5139 <cell alignment="center" valignment="top" usebox="none">
5142 \begin_layout Plain Layout
5148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5151 \begin_layout Plain Layout
5159 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5162 \begin_layout Plain Layout
5170 <cell alignment="center" valignment="top" usebox="none">
5173 \begin_layout Plain Layout
5179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5182 \begin_layout Plain Layout
5190 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5193 \begin_layout Plain Layout
5201 <cell alignment="center" valignment="top" usebox="none">
5204 \begin_layout Plain Layout
5210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5213 \begin_layout Plain Layout
5221 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5224 \begin_layout Plain Layout
5232 <cell alignment="center" valignment="top" usebox="none">
5235 \begin_layout Plain Layout
5241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5244 \begin_layout Plain Layout
5252 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5255 \begin_layout Plain Layout
5263 <cell alignment="center" valignment="top" usebox="none">
5266 \begin_layout Plain Layout
5272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5275 \begin_layout Plain Layout
5283 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5286 \begin_layout Plain Layout
5294 <cell alignment="center" valignment="top" usebox="none">
5297 \begin_layout Plain Layout
5303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5306 \begin_layout Plain Layout
5314 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5317 \begin_layout Plain Layout
5325 <cell alignment="center" valignment="top" usebox="none">
5328 \begin_layout Plain Layout
5334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5337 \begin_layout Plain Layout
5345 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5348 \begin_layout Plain Layout
5356 <cell alignment="center" valignment="top" usebox="none">
5359 \begin_layout Plain Layout
5365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5368 \begin_layout Plain Layout
5376 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5379 \begin_layout Plain Layout
5387 <cell alignment="center" valignment="top" usebox="none">
5390 \begin_layout Plain Layout
5396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5399 \begin_layout Plain Layout
5407 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5410 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5449 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5452 \begin_layout Plain Layout
5458 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5461 \begin_layout Plain Layout
5468 <row endlastfoot="true">
5469 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5472 \begin_layout Plain Layout
5478 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5481 \begin_layout Plain Layout
5487 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5490 \begin_layout Plain Layout
5505 \begin_layout Plain Layout
5509 addtocounter{table}{-1}
5515 \begin_inset Note Note
5518 \begin_layout Plain Layout
5519 See the first greyed-out note in section
5520 \begin_inset space ~
5524 \begin_inset CommandInset ref
5526 reference "sub:Longtable-Captions"
5530 for an explanation of this command.
5538 \begin_layout Subsection
5539 Footnotes in Longtables
5540 \begin_inset CommandInset label
5542 name "sub:Footnotes-in-Longtables"
5547 \begin_inset Index idx
5550 \begin_layout Plain Layout
5551 Longtables ! Footnotes
5559 \begin_layout Standard
5560 Footnotes can be inserted to every longtable cell.
5561 They appear at the bottom of the page where the table cell with the footnote
5564 \begin_inset space ~
5568 \begin_inset CommandInset ref
5570 reference "tab:DiffCaptions"
5574 has for example a footnote.
5577 \begin_layout Subsection
5579 \begin_inset Index idx
5582 \begin_layout Plain Layout
5583 Longtables ! Alignment
5591 \begin_layout Standard
5592 The horizontal alignment of longtables can be set in the table settings
5594 For left- and right-alignment the table will be directly at the page border.
5595 To add space between the table and the border one has to set the alignment
5596 to center and change the value of the LaTeX-lengths
5608 by inserting this line as TeX-Code before the longtable:
5611 \begin_layout Standard
5621 \begin_layout Standard
5622 The value can have any of the units listed in Table
5623 \begin_inset space ~
5627 \begin_inset CommandInset ref
5629 reference "tab:Units"
5640 controls the horizontal distance from the left page border to the longtable,
5647 the distance from the right side.
5648 The default value for both lengths is
5654 , which is in this case the same as an horizontal fill in LyX.
5657 \begin_layout Standard
5658 The following longtable was centered and
5674 \begin_layout Plain Layout
5690 \begin_layout Standard
5691 \begin_inset Tabular
5692 <lyxtabular version="3" rows="5" columns="5">
5693 <features islongtable="true" longtabularalignment="center">
5694 <column alignment="center" valignment="top" width="0">
5695 <column alignment="center" valignment="top" width="0pt">
5696 <column alignment="center" valignment="top" width="0">
5697 <column alignment="center" valignment="top" width="0">
5698 <column alignment="center" valignment="top" width="0">
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5703 \begin_layout Plain Layout
5709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5712 \begin_layout Plain Layout
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5721 \begin_layout Plain Layout
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5730 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5739 \begin_layout Plain Layout
5747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5750 \begin_layout Plain Layout
5756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5759 \begin_layout Plain Layout
5765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5768 \begin_layout Plain Layout
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5777 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5786 \begin_layout Plain Layout
5794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5797 \begin_layout Plain Layout
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Plain Layout
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5824 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5833 \begin_layout Plain Layout
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5844 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5853 \begin_layout Plain Layout
5859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5862 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5871 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5880 \begin_layout Plain Layout
5888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5891 \begin_layout Plain Layout
5897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5900 \begin_layout Plain Layout
5906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5909 \begin_layout Plain Layout
5915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5918 \begin_layout Plain Layout
5924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5927 \begin_layout Plain Layout
5942 \begin_layout Plain Layout
5959 \begin_layout Plain Layout
5963 addtocounter{table}{-1}
5969 \begin_inset Note Note
5972 \begin_layout Plain Layout
5973 See the first greyed-out note in section
5974 \begin_inset space ~
5978 \begin_inset CommandInset ref
5980 reference "sub:Longtable-Captions"
5984 for an explanation of this command.
5992 \begin_layout Subsection
5994 \begin_inset Index idx
5997 \begin_layout Plain Layout
5998 Longtables ! Captions
6004 \begin_inset CommandInset label
6006 name "sub:Longtable-Captions"
6013 \begin_layout Standard
6014 A longtable cannot be put into a table float because floats can only be
6016 But the caption environment of floats can also be used for longtables when
6017 you use the longtable option
6021 as described in sec.
6022 \begin_inset space \thinspace{}
6026 \begin_inset CommandInset ref
6028 reference "sec:Longtables"
6034 \change_inserted -195340706 1324242393
6035 A caption must be put into one of
6038 \begin_inset space ~
6054 \begin_inset space ~
6060 Each kind of footer and header may only contain one
6061 \change_deleted -195340706 1324242398
6062 Only one table row can contain the
6067 \begin_layout Standard
6068 Here is a short longtable to see how it works:
6071 \begin_layout Standard
6072 \begin_inset Tabular
6073 <lyxtabular version="3" rows="6" columns="5">
6074 <features islongtable="true" longtabularalignment="center">
6075 <column alignment="center" valignment="top" width="0">
6076 <column alignment="center" valignment="top" width="0">
6077 <column alignment="center" valignment="top" width="0">
6078 <column alignment="center" valignment="top" width="0">
6079 <column alignment="center" valignment="top" width="0">
6080 <row caption="true">
6081 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6084 \begin_layout Plain Layout
6085 \begin_inset Caption
6087 \begin_layout Plain Layout
6088 Longtable with caption
6089 \begin_inset Argument
6092 \begin_layout Plain Layout
6108 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6111 \begin_layout Plain Layout
6117 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6120 \begin_layout Plain Layout
6126 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6129 \begin_layout Plain Layout
6135 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6138 \begin_layout Plain Layout
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Plain Layout
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Plain Layout
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Plain Layout
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Plain Layout
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6185 \begin_layout Plain Layout
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Plain Layout
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Plain Layout
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Plain Layout
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6232 \begin_layout Plain Layout
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Plain Layout
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6252 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Plain Layout
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6270 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6279 \begin_layout Plain Layout
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6299 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6326 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6346 \begin_layout Plain Layout
6352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6355 \begin_layout Plain Layout
6361 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6364 \begin_layout Plain Layout
6370 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6373 \begin_layout Plain Layout
6387 \begin_layout Standard
6388 \begin_inset VSpace medskip
6392 \begin_inset Note Greyedout
6395 \begin_layout Plain Layout
6399 \begin_inset space ~
6404 The table number is increased for every longtable, even if you did not
6405 set a caption for it.
6406 For this reason you could have the case that e.
6407 \begin_inset space \thinspace{}
6411 \begin_inset space \space{}
6415 \begin_inset space ~
6419 \begin_inset space ~
6422 2.1 in the list of tables if there are two longtables without captions.
6423 To avoid this you can add the following command in TeX-Code after every
6424 longtable without a caption:
6427 \begin_layout Plain Layout
6432 addtocounter{table}{-1}
6435 \begin_layout Plain Layout
6436 This is not needed when none of your longtables has a caption and you add
6437 the following code to the document preamble:
6440 \begin_layout Plain Layout
6450 \begin_inset Newline newline
6461 addtocounter{table}{-1}}
6469 \begin_layout Standard
6470 \begin_inset Note Greyedout
6473 \begin_layout Plain Layout
6477 \begin_inset space ~
6487 \begin_inset Index idx
6490 \begin_layout Plain Layout
6491 LaTeX-packages ! hyperref
6504 dialog to link cross-references, the link to a longtable caption will always
6505 point to the beginning of the document.
6513 \begin_layout Subsubsection
6514 References to Longtables
6515 \begin_inset Index idx
6518 \begin_layout Plain Layout
6519 Longtables ! References
6527 \begin_layout Standard
6528 \begin_inset Tabular
6529 <lyxtabular version="3" rows="6" columns="5">
6530 <features islongtable="true" longtabularalignment="center">
6531 <column alignment="center" valignment="top" width="0">
6532 <column alignment="center" valignment="top" width="0">
6533 <column alignment="center" valignment="top" width="0">
6534 <column alignment="center" valignment="top" width="0">
6535 <column alignment="center" valignment="top" width="0">
6536 <row caption="true">
6537 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6540 \begin_layout Plain Layout
6541 \begin_inset Caption
6543 \begin_layout Plain Layout
6544 Referenced longtable
6545 \begin_inset CommandInset label
6547 name "tab:RefExample"
6561 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6564 \begin_layout Plain Layout
6570 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6573 \begin_layout Plain Layout
6579 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6582 \begin_layout Plain Layout
6588 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6591 \begin_layout Plain Layout
6599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6602 \begin_layout Plain Layout
6608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6611 \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" rightline="true" usebox="none">
6638 \begin_layout Plain Layout
6646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6649 \begin_layout Plain Layout
6655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6658 \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" rightline="true" usebox="none">
6685 \begin_layout Plain Layout
6693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6696 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6705 \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" rightline="true" usebox="none">
6732 \begin_layout Plain Layout
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6752 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6779 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6790 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6799 \begin_layout Plain Layout
6805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6808 \begin_layout Plain Layout
6814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6817 \begin_layout Plain Layout
6823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6826 \begin_layout Plain Layout
6840 \begin_layout Standard
6841 To reference a longtable, insert a label into the caption.
6844 \begin_layout Standard
6845 This is a reference to Table
6846 \begin_inset space ~
6850 \begin_inset CommandInset ref
6852 reference "tab:RefExample"
6859 \begin_layout Standard
6860 The caption layout can be set together with all other captions of your document
6861 using the LaTeX-package
6866 \begin_inset Index idx
6869 \begin_layout Plain Layout
6870 LaTeX-packages ! caption
6876 \begin_inset space ~
6880 \begin_inset CommandInset ref
6882 reference "sec:Caption-Formatting"
6889 \begin_layout Subsubsection
6891 \begin_inset Index idx
6894 \begin_layout Plain Layout
6895 Longtables ! Caption Width
6903 \begin_layout Standard
6904 The maximal width of caption lines is defined by the length
6911 Its default value is 4
6912 \begin_inset space \thinspace{}
6916 To change it add the following command to your document preamble or as
6917 TeX-Code into your document before the longtable that should be affected
6920 \begin_layout Standard
6930 \begin_layout Standard
6931 where the width could have one of the units listed in appendix
6932 \begin_inset space ~
6936 \begin_inset CommandInset ref
6938 reference "cha:Units-available-in"
6945 \begin_layout Standard
6946 The following tables show the difference:
6949 \begin_layout Standard
6950 \begin_inset Tabular
6951 <lyxtabular version="3" rows="6" columns="5">
6952 <features islongtable="true" longtabularalignment="center">
6953 <column alignment="center" valignment="top" width="0">
6954 <column alignment="center" valignment="top" width="0">
6955 <column alignment="center" valignment="top" width="0">
6956 <column alignment="center" valignment="top" width="0">
6957 <column alignment="center" valignment="top" width="0">
6958 <row caption="true">
6959 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6962 \begin_layout Plain Layout
6963 \begin_inset Caption
6965 \begin_layout Plain Layout
6966 long full title with default width long full title with default width long
6967 full title with default width
6968 \begin_inset Argument
6971 \begin_layout Plain Layout
6972 caption with default width
6987 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6990 \begin_layout Plain Layout
6996 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6999 \begin_layout Plain Layout
7005 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7008 \begin_layout Plain Layout
7014 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7017 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7028 \begin_layout Plain Layout
7034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7037 \begin_layout Plain Layout
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7046 \begin_layout Plain Layout
7052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7055 \begin_layout Plain Layout
7061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7064 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7075 \begin_layout Plain Layout
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7084 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7093 \begin_layout Plain Layout
7099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7102 \begin_layout Plain Layout
7108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7111 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7122 \begin_layout Plain Layout
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7131 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7140 \begin_layout Plain Layout
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7149 \begin_layout Plain Layout
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7158 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7169 \begin_layout Plain Layout
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7178 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7187 \begin_layout Plain Layout
7193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7196 \begin_layout Plain Layout
7202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7205 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7216 \begin_layout Plain Layout
7222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7225 \begin_layout Plain Layout
7231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7234 \begin_layout Plain Layout
7240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7243 \begin_layout Plain Layout
7249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7252 \begin_layout Plain Layout
7266 \begin_layout Standard
7270 \begin_layout Plain Layout
7282 \begin_inset Tabular
7283 <lyxtabular version="3" rows="6" columns="5">
7284 <features islongtable="true" longtabularalignment="center">
7285 <column alignment="center" valignment="top" width="0">
7286 <column alignment="center" valignment="top" width="0">
7287 <column alignment="center" valignment="top" width="0">
7288 <column alignment="center" valignment="top" width="0">
7289 <column alignment="center" valignment="top" width="0">
7290 <row caption="true">
7291 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7294 \begin_layout Plain Layout
7295 \begin_inset Caption
7297 \begin_layout Plain Layout
7298 long full title with width set to 5
7299 \begin_inset space \thinspace{}
7302 cm long full title with width set to 5
7303 \begin_inset space \thinspace{}
7306 cm long full title with width set to 5
7307 \begin_inset space \thinspace{}
7311 \begin_inset Argument
7314 \begin_layout Plain Layout
7316 \begin_inset space \thinspace{}
7320 \begin_inset space \thinspace{}
7324 \begin_inset space \thinspace{}
7342 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7345 \begin_layout Plain Layout
7351 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7354 \begin_layout Plain Layout
7360 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7363 \begin_layout Plain Layout
7369 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7372 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7383 \begin_layout Plain Layout
7389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7392 \begin_layout Plain Layout
7398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7401 \begin_layout Plain Layout
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7410 \begin_layout Plain Layout
7416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7419 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7430 \begin_layout Plain Layout
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7439 \begin_layout Plain Layout
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7448 \begin_layout Plain Layout
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Plain Layout
7463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7477 \begin_layout Plain Layout
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7486 \begin_layout Plain Layout
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7504 \begin_layout Plain Layout
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7513 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7533 \begin_layout Plain Layout
7539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7551 \begin_layout Plain Layout
7557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7560 \begin_layout Plain Layout
7568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7580 \begin_layout Plain Layout
7586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7589 \begin_layout Plain Layout
7595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7598 \begin_layout Plain Layout
7604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7607 \begin_layout Plain Layout
7621 \begin_layout Standard
7625 \begin_layout Plain Layout
7639 \begin_layout Standard
7640 \begin_inset Note Greyedout
7643 \begin_layout Plain Layout
7648 When the LaTeX-package
7653 \begin_inset Index idx
7656 \begin_layout Plain Layout
7657 LaTeX-packages ! caption
7662 is used, as in this document, the full page width is used for the caption
7663 when you use the default value of 4
7664 \begin_inset space \thinspace{}
7674 To get in this case exactly a 4
7675 \begin_inset space \thinspace{}
7678 in wide caption, you can either use a value slightly different from 4.0
7679 \begin_inset space \thinspace{}
7683 \begin_inset space \thinspace{}
7687 \begin_inset space \space{}
7691 \begin_inset space \thinspace{}
7694 in, or the LaTeX-command
7698 captionsetup{width=value}
7700 that is provided by the
7712 \begin_layout Subsubsection
7713 Different Captions for Table Pages
7714 \begin_inset Index idx
7717 \begin_layout Plain Layout
7718 Longtables ! Different Captions for Pages
7726 \begin_layout Standard
7727 When the table captions for the following pages should differ from the one
7728 of the first table page, insert a caption with the TeX-Code command
7731 \begin_layout Standard
7736 caption*{caption text}
7743 \begin_layout Standard
7744 in a dummy caption row that is marked as a header.
7746 \begin_inset space ~
7750 \begin_inset CommandInset ref
7752 reference "tab:DiffCaptions"
7756 is an example of a longtable with different heading where the second caption
7757 doesn't include the table number.
7760 \begin_layout Standard
7762 \begin_inset Tabular
7763 <lyxtabular version="3" rows="59" columns="3">
7764 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7765 <column alignment="left" valignment="top" width="0cm">
7766 <column alignment="left" valignment="top" width="0pt">
7767 <column alignment="center" valignment="top" width="0pt">
7768 <row caption="true">
7769 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7772 \begin_layout Plain Layout
7773 \begin_inset Caption
7775 \begin_layout Plain Layout
7777 \begin_inset CommandInset label
7779 name "tab:DiffCaptions"
7784 \begin_inset Argument
7787 \begin_layout Plain Layout
7803 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7806 \begin_layout Plain Layout
7812 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7815 \begin_layout Plain Layout
7822 <row endfirsthead="true">
7823 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7826 \begin_layout Plain Layout
7829 Example Phone List (ignore the names)
7834 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7837 \begin_layout Plain Layout
7843 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7846 \begin_layout Plain Layout
7853 <row endfirsthead="true">
7854 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7857 \begin_layout Plain Layout
7865 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7868 \begin_layout Plain Layout
7874 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7877 \begin_layout Plain Layout
7886 <row endhead="true">
7887 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7890 \begin_layout Plain Layout
7894 \begin_layout Plain Layout
7898 caption*{Continued Example Phone List}
7912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7915 \begin_layout Plain Layout
7921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7924 \begin_layout Plain Layout
7931 <row endhead="true">
7932 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7935 \begin_layout Plain Layout
7943 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7946 \begin_layout Plain Layout
7952 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7955 \begin_layout Plain Layout
7962 <row endhead="true">
7963 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7966 \begin_layout Plain Layout
7974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7977 \begin_layout Plain Layout
7983 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7986 \begin_layout Plain Layout
7995 <row endfoot="true">
7996 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7999 \begin_layout Plain Layout
8000 continued on next page
8005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8008 \begin_layout Plain Layout
8014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8017 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8028 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8039 \begin_layout Plain Layout
8045 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8048 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8059 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8070 \begin_layout Plain Layout
8076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8079 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8090 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8101 \begin_layout Plain Layout
8107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8110 \begin_layout Plain Layout
8118 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8121 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8132 \begin_layout Plain Layout
8138 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8141 \begin_layout Plain Layout
8149 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8152 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8163 \begin_layout Plain Layout
8169 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8172 \begin_layout Plain Layout
8180 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8183 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8194 \begin_layout Plain Layout
8200 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8203 \begin_layout Plain Layout
8211 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8214 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8225 \begin_layout Plain Layout
8231 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8234 \begin_layout Plain Layout
8242 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8245 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8256 \begin_layout Plain Layout
8262 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8265 \begin_layout Plain Layout
8273 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8276 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8287 \begin_layout Plain Layout
8293 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8296 \begin_layout Plain Layout
8304 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8307 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8318 \begin_layout Plain Layout
8324 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8327 \begin_layout Plain Layout
8335 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8338 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8349 \begin_layout Plain Layout
8355 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8358 \begin_layout Plain Layout
8366 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8369 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8380 \begin_layout Plain Layout
8386 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8389 \begin_layout Plain Layout
8397 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8400 \begin_layout Plain Layout
8408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8411 \begin_layout Plain Layout
8417 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8420 \begin_layout Plain Layout
8428 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8431 \begin_layout Plain Layout
8439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8442 \begin_layout Plain Layout
8448 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8451 \begin_layout Plain Layout
8459 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8462 \begin_layout Plain Layout
8471 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8485 \begin_layout Plain Layout
8491 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8494 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8505 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8516 \begin_layout Plain Layout
8522 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8525 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8536 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8547 \begin_layout Plain Layout
8553 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8556 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8567 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8578 \begin_layout Plain Layout
8584 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8587 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8598 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8609 \begin_layout Plain Layout
8615 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8618 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8629 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8640 \begin_layout Plain Layout
8646 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8649 \begin_layout Plain Layout
8657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8660 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8671 \begin_layout Plain Layout
8677 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8680 \begin_layout Plain Layout
8688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8691 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8702 \begin_layout Plain Layout
8708 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8711 \begin_layout Plain Layout
8719 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8722 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8733 \begin_layout Plain Layout
8739 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8742 \begin_layout Plain Layout
8750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8753 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8764 \begin_layout Plain Layout
8770 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8773 \begin_layout Plain Layout
8781 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8784 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8795 \begin_layout Plain Layout
8801 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8804 \begin_layout Plain Layout
8812 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8815 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8826 \begin_layout Plain Layout
8832 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8835 \begin_layout Plain Layout
8843 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8846 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8857 \begin_layout Plain Layout
8863 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8866 \begin_layout Plain Layout
8874 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8877 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8888 \begin_layout Plain Layout
8894 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8897 \begin_layout Plain Layout
8905 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8908 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8919 \begin_layout Plain Layout
8925 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8928 \begin_layout Plain Layout
8936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8939 \begin_layout Plain Layout
8947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8950 \begin_layout Plain Layout
8956 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8959 \begin_layout Plain Layout
8967 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8970 \begin_layout Plain Layout
8978 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8981 \begin_layout Plain Layout
8987 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9001 \begin_layout Plain Layout
9007 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9010 \begin_layout Plain Layout
9016 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9019 \begin_layout Plain Layout
9027 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9030 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9041 \begin_layout Plain Layout
9047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9050 \begin_layout Plain Layout
9058 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9061 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9072 \begin_layout Plain Layout
9078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9081 \begin_layout Plain Layout
9089 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9092 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9103 \begin_layout Plain Layout
9109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Plain Layout
9120 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9123 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9134 \begin_layout Plain Layout
9140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9143 \begin_layout Plain Layout
9151 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9154 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9165 \begin_layout Plain Layout
9171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9174 \begin_layout Plain Layout
9182 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9185 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9196 \begin_layout Plain Layout
9202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9205 \begin_layout Plain Layout
9213 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9216 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9227 \begin_layout Plain Layout
9233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9236 \begin_layout Plain Layout
9244 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9247 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9258 \begin_layout Plain Layout
9264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9267 \begin_layout Plain Layout
9275 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9278 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9289 \begin_layout Plain Layout
9295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9298 \begin_layout Plain Layout
9306 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9309 \begin_layout Plain Layout
9317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9320 \begin_layout Plain Layout
9326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9329 \begin_layout Plain Layout
9337 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9340 \begin_layout Plain Layout
9348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9351 \begin_layout Plain Layout
9357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9360 \begin_layout Plain Layout
9368 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9371 \begin_layout Plain Layout
9379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9382 \begin_layout Plain Layout
9388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9391 \begin_layout Plain Layout
9399 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9402 \begin_layout Plain Layout
9410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9413 \begin_layout Plain Layout
9419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9422 \begin_layout Plain Layout
9430 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9433 \begin_layout Plain Layout
9441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9444 \begin_layout Plain Layout
9450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9453 \begin_layout Plain Layout
9461 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9464 \begin_layout Plain Layout
9472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9475 \begin_layout Plain Layout
9481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9484 \begin_layout Plain Layout
9492 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9495 \begin_layout Plain Layout
9503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9506 \begin_layout Plain Layout
9512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9515 \begin_layout Plain Layout
9523 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9526 \begin_layout Plain Layout
9534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9537 \begin_layout Plain Layout
9543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9546 \begin_layout Plain Layout
9554 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9557 \begin_layout Plain Layout
9565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9568 \begin_layout Plain Layout
9574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9577 \begin_layout Plain Layout
9585 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9588 \begin_layout Plain Layout
9596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9599 \begin_layout Plain Layout
9605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9608 \begin_layout Plain Layout
9616 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9619 \begin_layout Plain Layout
9627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9630 \begin_layout Plain Layout
9636 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Plain Layout
9653 \begin_layout Section
9654 Special Longtable Issues
9655 \begin_inset CommandInset label
9657 name "sec:Special-Longtable-Issues"
9664 \begin_layout Subsection
9665 Longtable Calculation
9666 \begin_inset Index idx
9669 \begin_layout Plain Layout
9670 Longtables ! Calculation
9678 \begin_layout Standard
9679 LaTeX calculates the height of table pages and their page breaks using so
9681 Chunks are parts of tables that held at the same time in LaTeX's memory.
9682 The default value was historically set to only 20 table rows.
9683 If you are using longtables with many pages this may slow down the creation
9685 You can safely increase the chunk size to values of 100-1000 by adding
9686 this command line to your document preamble:
9689 \begin_layout Standard
9694 setcounter{LTchunksize}{100}
9697 \begin_layout Subsection
9698 Floats and Longtables
9699 \begin_inset Index idx
9702 \begin_layout Plain Layout
9711 \begin_layout Standard
9712 There might be problems when a float appears on the same page where a longtable
9714 To avoid such a situation, insert a
9715 \begin_inset Quotes eld
9719 \begin_inset Quotes erd
9724 Insert\SpecialChar \menuseparator
9725 Formatting\SpecialChar \menuseparator
9727 \begin_inset space ~
9732 ) before your longtable.
9735 \begin_layout Subsection
9737 \begin_inset Index idx
9740 \begin_layout Plain Layout
9741 Longtables ! Forced Page Breaks
9749 \begin_layout Standard
9750 By default tables are only broken between rows.
9751 If you have a cell with multiples lines and want to have a page break within
9752 the cell, insert the new line command
9753 \begin_inset Quotes eld
9765 \begin_inset Quotes erd
9768 as TeX-Code at the point of the cell where it can be broken.
9777 command you have to insert in TeX-Code as many
9778 \begin_inset Quotes eld
9786 \begin_inset Quotes erd
9789 characters as the number of the following table columns.
9794 is the character to separate table cells.
9795 Write in TeX-Code after each
9799 the content of the corresponding following cell and delete the content
9801 \begin_inset Newline newline
9812 command, insert as many
9816 characters as the number of table columns before the current column.
9818 \begin_inset space ~
9822 \begin_inset CommandInset ref
9824 reference "tab:ForcedPagebreak"
9828 the cell that should be broken is in the second column followed by another
9830 Therefore the following command was inserted in the cell as TeX-Code after
9832 \begin_inset Quotes eld
9840 \begin_inset Quotes erd
9846 \begin_layout Standard
9856 \begin_inset Newline newline
9862 \begin_layout Standard
9864 \begin_inset Quotes eld
9868 \begin_inset Quotes erd
9871 in the third column of the row was deleted.
9878 is only needed when a page break should definitely occur at this position,
9879 otherwise it would be a conditional break.
9880 If your footer row of the longtable has for a certain reason no upper line
9881 but you would have a horizontal line where the cell is broken, use this
9885 \begin_layout Standard
9893 \begin_inset Newline newline
9901 \begin_layout Standard
9902 When the cell to be broken is in the last column, the command
9905 \begin_layout Standard
9915 \begin_layout Standard
9916 must be inserted as TeX-Code at the beginning of the cell.
9917 This ensures that the part of the cell that will be displayed on the new
9918 page appears with the full width.
9921 \begin_layout Standard
9923 \begin_inset Tabular
9924 <lyxtabular version="3" rows="38" columns="3">
9925 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9926 <column alignment="left" valignment="top" width="0cm">
9927 <column alignment="left" valignment="top" width="3cm">
9928 <column alignment="center" valignment="top" width="0pt">
9929 <row caption="true">
9930 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9933 \begin_layout Plain Layout
9934 \begin_inset Caption
9936 \begin_layout Plain Layout
9937 Table with forced page break in table cell
9938 \begin_inset CommandInset label
9940 name "tab:ForcedPagebreak"
9945 \begin_inset Argument
9948 \begin_layout Plain Layout
9949 Table with forced page break in table cell
9964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9967 \begin_layout Plain Layout
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9983 <row endfirsthead="true">
9984 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9987 \begin_layout Plain Layout
9990 Example Phone List (ignore the names)
9995 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9998 \begin_layout Plain Layout
10004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10007 \begin_layout Plain Layout
10014 <row endfirsthead="true">
10015 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10018 \begin_layout Plain Layout
10026 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10029 \begin_layout Plain Layout
10035 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10038 \begin_layout Plain Layout
10047 <row endhead="true">
10048 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10051 \begin_layout Plain Layout
10055 \begin_layout Plain Layout
10059 caption*{Continued Example Phone List}
10073 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10076 \begin_layout Plain Layout
10082 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10085 \begin_layout Plain Layout
10092 <row endhead="true">
10093 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10096 \begin_layout Plain Layout
10104 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10107 \begin_layout Plain Layout
10113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10116 \begin_layout Plain Layout
10123 <row endhead="true">
10124 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10127 \begin_layout Plain Layout
10135 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10138 \begin_layout Plain Layout
10144 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10147 \begin_layout Plain Layout
10156 <row endfoot="true">
10157 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10160 \begin_layout Plain Layout
10161 continued on next page
10166 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10169 \begin_layout Plain Layout
10175 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10178 \begin_layout Plain Layout
10186 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10189 \begin_layout Plain Layout
10197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10200 \begin_layout Plain Layout
10206 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10209 \begin_layout Plain Layout
10217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10220 \begin_layout Plain Layout
10228 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10231 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10240 \begin_layout Plain Layout
10248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10251 \begin_layout Plain Layout
10259 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10262 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10271 \begin_layout Plain Layout
10279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10282 \begin_layout Plain Layout
10290 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10293 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10302 \begin_layout Plain Layout
10310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10313 \begin_layout Plain Layout
10321 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10324 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10333 \begin_layout Plain Layout
10341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10344 \begin_layout Plain Layout
10352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10355 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10364 \begin_layout Plain Layout
10372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10375 \begin_layout Plain Layout
10383 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10386 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10395 \begin_layout Plain Layout
10403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10406 \begin_layout Plain Layout
10414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10417 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10426 \begin_layout Plain Layout
10434 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10437 \begin_layout Plain Layout
10445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10448 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10457 \begin_layout Plain Layout
10465 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10468 \begin_layout Plain Layout
10476 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10479 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10488 \begin_layout Plain Layout
10496 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10499 \begin_layout Plain Layout
10507 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10510 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10519 \begin_layout Plain Layout
10527 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10530 \begin_layout Plain Layout
10538 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10541 \begin_layout Plain Layout
10547 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10550 \begin_layout Plain Layout
10558 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10561 \begin_layout Plain Layout
10569 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10572 \begin_layout Plain Layout
10578 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10581 \begin_layout Plain Layout
10589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10592 \begin_layout Plain Layout
10600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10603 \begin_layout Plain Layout
10609 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10612 \begin_layout Plain Layout
10620 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10623 \begin_layout Plain Layout
10631 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10634 \begin_layout Plain Layout
10640 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10643 \begin_layout Plain Layout
10651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10654 \begin_layout Plain Layout
10662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10665 \begin_layout Plain Layout
10671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10674 \begin_layout Plain Layout
10682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10685 \begin_layout Plain Layout
10693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10696 \begin_layout Plain Layout
10702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10705 \begin_layout Plain Layout
10713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10716 \begin_layout Plain Layout
10724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10727 \begin_layout Plain Layout
10733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10736 \begin_layout Plain Layout
10744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10747 \begin_layout Plain Layout
10755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10758 \begin_layout Plain Layout
10764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10767 \begin_layout Plain Layout
10775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10778 \begin_layout Plain Layout
10786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10789 \begin_layout Plain Layout
10795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10798 \begin_layout Plain Layout
10806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10809 \begin_layout Plain Layout
10817 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10820 \begin_layout Plain Layout
10826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10829 \begin_layout Plain Layout
10837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10840 \begin_layout Plain Layout
10848 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10851 \begin_layout Plain Layout
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10871 \begin_layout Plain Layout
10879 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10882 \begin_layout Plain Layout
10884 Fürst von Montecompatri, 11.
10885 Fürst von Sulmona und Vivaro, 10.
10886 Fürst von Rossano, 5.
10887 Herzog von Canemorte, 11.
10888 Herzog von Palombara, 5.
10889 Herzog von Castelchiodato,
10893 \begin_layout Plain Layout
10904 \begin_layout Plain Layout
10912 Herzog von Poggionativo, 11.
10913 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10914 Graf von Valinfreda, 11.
10915 Baron von Cropalati, 11.
10916 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10921 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10924 \begin_layout Plain Layout
10932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10935 \begin_layout Plain Layout
10943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10946 \begin_layout Plain Layout
10952 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10955 \begin_layout Plain Layout
10963 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10966 \begin_layout Plain Layout
10974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10977 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
10994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10997 \begin_layout Plain Layout
11005 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11008 \begin_layout Plain Layout
11014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11017 \begin_layout Plain Layout
11025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11028 \begin_layout Plain Layout
11036 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11039 \begin_layout Plain Layout
11045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11048 \begin_layout Plain Layout
11056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11059 \begin_layout Plain Layout
11067 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11070 \begin_layout Plain Layout
11076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11079 \begin_layout Plain Layout
11087 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11090 \begin_layout Plain Layout
11098 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11101 \begin_layout Plain Layout
11107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11110 \begin_layout Plain Layout
11118 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11121 \begin_layout Plain Layout
11129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11132 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11149 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11160 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11163 \begin_layout Plain Layout
11169 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11172 \begin_layout Plain Layout
11186 \begin_layout Section
11187 Multiple Lines, Columns and Rows
11190 \begin_layout Subsection
11191 Multiple Lines in Table Cells
11192 \begin_inset CommandInset label
11194 name "sub:Multiple-Lines-in"
11199 \begin_inset Index idx
11202 \begin_layout Plain Layout
11203 Multiple Lines in Table Cells
11209 \begin_inset Index idx
11212 \begin_layout Plain Layout
11221 \begin_layout Standard
11223 \begin_inset Float table
11229 \begin_layout Plain Layout
11230 \begin_inset Caption
11232 \begin_layout Plain Layout
11233 \begin_inset CommandInset label
11235 name "tab:Table-with-multiple"
11239 Table with multiple lines in cells
11247 \begin_layout Plain Layout
11249 \begin_inset Tabular
11250 <lyxtabular version="3" rows="3" columns="3">
11251 <features tabularvalignment="middle">
11252 <column alignment="center" valignment="middle" width="2.5cm">
11253 <column alignment="center" valignment="middle" width="0">
11254 <column alignment="center" valignment="middle" width="0">
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11259 \begin_layout Plain Layout
11261 \begin_inset Newline linebreak
11269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11272 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11281 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11292 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11310 \begin_layout Plain Layout
11318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11321 \begin_layout Plain Layout
11327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11330 \begin_layout Plain Layout
11336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11339 \begin_layout Plain Layout
11358 \begin_layout Standard
11359 Setting a fixed width for a column enables you to enter text as a paragraph
11360 with multiple lines and hyphenation.
11363 \begin_layout Standard
11365 \begin_inset space ~
11369 \begin_inset CommandInset ref
11371 reference "tab:Table-with-multiple"
11375 , create a 3×3 table, mark the first cell and right-click on it.
11376 In the appearing table dialog we set a cell width of 2.5
11377 \begin_inset space \thinspace{}
11380 cm and choose centered for the vertical and horizontal alignment.
11381 The vertical alignment is used for all cells of the row.
11382 As our text is smaller than 2.5
11383 \begin_inset space \thinspace{}
11386 cm, only one line will appear.
11387 To get two lines, a justified line break (shortcut
11390 arg "newline-insert linebreak"
11394 If the text is wider than the set cell width, it will automatically be
11395 broken to several lines.
11398 \begin_layout Standard
11399 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11400 by LaTeX if it is the first entry.
11401 Therefore you need to insert something to prevent the word not being the
11403 So add a horizontal space of 0
11404 \begin_inset space \thinspace{}
11407 pt before the word.
11408 As the space is zero, it doesn't change the output.
11410 \begin_inset space ~
11414 \begin_inset CommandInset ref
11416 reference "tab:Table-with-and"
11423 \begin_layout Standard
11424 \begin_inset Float table
11430 \begin_layout Plain Layout
11431 \begin_inset Caption
11433 \begin_layout Plain Layout
11434 \begin_inset CommandInset label
11436 name "tab:Table-with-and"
11440 Table with and without hyphenation
11448 \begin_layout Plain Layout
11449 \begin_inset space \hfill{}
11453 \begin_inset Tabular
11454 <lyxtabular version="3" rows="3" columns="3">
11455 <features tabularvalignment="middle">
11456 <column alignment="center" valignment="middle" width="2.5cm">
11457 <column alignment="center" valignment="middle" width="0">
11458 <column alignment="center" valignment="middle" width="0">
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11464 verylongtablecellword
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11510 \begin_layout Plain Layout
11518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11521 \begin_layout Plain Layout
11527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11530 \begin_layout Plain Layout
11536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11539 \begin_layout Plain Layout
11551 \begin_inset space \hfill{}
11555 \begin_inset Tabular
11556 <lyxtabular version="3" rows="3" columns="3">
11557 <features tabularvalignment="middle">
11558 <column alignment="center" valignment="middle" width="2.5cm">
11559 <column alignment="center" valignment="middle" width="0">
11560 <column alignment="center" valignment="middle" width="0">
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11565 \begin_layout Plain Layout
11566 \begin_inset space \hspace{}
11570 verylongtablecellword
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11578 \begin_layout Plain Layout
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11587 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11598 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11607 \begin_layout Plain Layout
11613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11616 \begin_layout Plain Layout
11624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11627 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11645 \begin_layout Plain Layout
11657 \begin_inset space \hfill{}
11668 \begin_layout Subsection
11670 \begin_inset CommandInset label
11672 name "sub:Multicolumns"
11677 \begin_inset Index idx
11680 \begin_layout Plain Layout
11687 \begin_inset Index idx
11690 \begin_layout Plain Layout
11691 Table ! Multicolumns
11699 \begin_layout Subsubsection
11703 \begin_layout Standard
11704 To merge cells over multiple columns, select as many cells within a row
11705 as you want to merge and use either the table-toolbar button
11708 arg "inset-modify tabular multicolumn"
11713 Edit\SpecialChar \menuseparator
11714 Table\SpecialChar \menuseparator
11717 , or right click on the marked cells and choose
11721 in the context menu.
11724 \begin_layout Standard
11725 Multicolumns have there own cell settings.
11726 That means changing cell borders, cell alignment, and the width only affects
11728 Here is an example table with a multicolumn cell in the first row and one
11729 in the last row without the upper border:
11732 \begin_layout Standard
11734 \begin_inset Tabular
11735 <lyxtabular version="3" rows="3" columns="4">
11736 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11737 <column alignment="center" valignment="top" width="0pt">
11738 <column alignment="center" valignment="middle" width="0">
11739 <column alignment="center" valignment="top" width="0in">
11740 <column alignment="center" valignment="top" width="0pt">
11742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11745 \begin_layout Plain Layout
11751 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11760 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11772 \begin_layout Plain Layout
11780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11783 \begin_layout Plain Layout
11798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11801 \begin_layout Plain Layout
11807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11819 \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 multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11857 \begin_layout Plain Layout
11871 \begin_layout Subsubsection
11872 Multicolumn Calculations
11873 \begin_inset CommandInset label
11875 name "sub:Multicolumn-Calculations"
11880 \begin_inset Index idx
11883 \begin_layout Plain Layout
11884 Multicolumns ! Calculations
11892 \begin_layout Standard
11893 LyX supports multicolumns directly, but we have to take account of the cell
11894 width of the columns spanned by the multicolumn cell.
11897 \begin_layout Standard
11898 \begin_inset Float table
11904 \begin_layout Plain Layout
11905 \begin_inset Caption
11907 \begin_layout Plain Layout
11908 \begin_inset CommandInset label
11910 name "tab:Table-with-centered"
11914 Table with centered multicolumn text above two columns that have exactly
11915 half the width of the multicolumn cell
11916 \begin_inset Argument
11919 \begin_layout Plain Layout
11920 Perfect multicolumn table
11933 \begin_layout Plain Layout
11935 \begin_inset Tabular
11936 <lyxtabular version="3" rows="3" columns="3">
11937 <features tabularvalignment="middle">
11938 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11939 <column alignment="center" valignment="middle" width="0">
11940 <column alignment="center" valignment="top" width="0">
11942 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11945 \begin_layout Plain Layout
11946 multiple lines multicolumn
11951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11954 \begin_layout Plain Layout
11960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11963 \begin_layout Plain Layout
11971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11974 \begin_layout Plain Layout
11980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11983 \begin_layout Plain Layout
11989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11992 \begin_layout Plain Layout
12000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12003 \begin_layout Plain Layout
12009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12012 \begin_layout Plain Layout
12018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12021 \begin_layout Plain Layout
12040 \begin_layout Standard
12041 To create for example Table
12042 \begin_inset space ~
12046 \begin_inset CommandInset ref
12048 reference "tab:Table-with-centered"
12052 , mark the first two cells in the first row of a 3×3 table and right-click
12054 Now choose for this cell
12063 \begin_inset space \thinspace{}
12066 cm in the table dialog.
12067 The merged columns should have exactly half the width of the multicolumn
12068 cell, so that you would set a width of 1.25
12069 \begin_inset space \thinspace{}
12072 cm for the first column.
12073 The second column has then automatically a width of 1.25
12074 \begin_inset space \thinspace{}
12077 cm (multicolumn width - width of first column).
12078 This was done for Table
12079 \begin_inset space ~
12083 \begin_inset CommandInset ref
12085 reference "tab:Table-without-half"
12092 \begin_layout Standard
12093 \begin_inset Float table
12098 \begin_layout Plain Layout
12099 \begin_inset Caption
12101 \begin_layout Plain Layout
12102 \begin_inset CommandInset label
12104 name "tab:Table-without-half"
12108 Table where the spanned table columns are not exactly half the width of
12109 the multicolumn cell
12110 \begin_inset Argument
12113 \begin_layout Plain Layout
12114 Imperfect multicolumn table
12127 \begin_layout Plain Layout
12129 \begin_inset Tabular
12130 <lyxtabular version="3" rows="3" columns="3">
12131 <features tabularvalignment="middle">
12132 <column alignment="center" valignment="top" width="1.25cm">
12133 <column alignment="center" valignment="top" width="0">
12134 <column alignment="center" valignment="top" width="0">
12136 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12139 \begin_layout Plain Layout
12140 multiple lines multicolumn
12145 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12148 \begin_layout Plain Layout
12154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12157 \begin_layout Plain Layout
12165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12168 \begin_layout Plain Layout
12174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12177 \begin_layout Plain Layout
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12186 \begin_layout Plain Layout
12194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12197 \begin_layout Plain Layout
12203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12206 \begin_layout Plain Layout
12212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12215 \begin_layout Plain Layout
12234 \begin_layout Standard
12235 You can see that the first column is not half the width of the multicolumn
12236 cell, it is a bit bigger.
12237 The reason is that the specified width of a cell
12238 \begin_inset Formula $W_{g}$
12241 is not its total width
12242 \begin_inset Formula $W_{\mathrm{tot}}$
12245 because a cell is always a bit larger than specified.
12247 \begin_inset space ~
12251 \begin_inset CommandInset ref
12253 reference "cha:Explanation-of-Equation"
12257 explains this in detail.
12260 \begin_layout Standard
12262 \begin_inset Formula $W_{g\, n}$
12265 which the user needs to set when
12269 columns are spanned can be calculated, so that each column has a total
12271 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12275 \begin_inset Formula
12277 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12285 \begin_layout Standard
12286 In our case we have
12287 \begin_inset Formula $n=2$
12291 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12294 cm and the default values for the lengths, so that equation
12295 \begin_inset CommandInset ref
12302 \begin_inset Formula
12304 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12312 \begin_layout Standard
12313 To enable calculations in LaTeX, the LaTeX-package
12317 must be loaded with the document preamble line
12318 \begin_inset Index idx
12321 \begin_layout Plain Layout
12322 LaTeX-packages ! calc
12330 \begin_layout Standard
12338 \begin_layout Standard
12339 LyX does not allow you to calculate lengths in the
12343 field of the table dialog.
12344 Therefore you have to format the column by inserting a LaTeX-argument in
12346 Here is an overview about the arguments:
12349 \begin_layout Itemize
12354 creates cell with a fixed width, its text is vertically top-aligned
12357 \begin_layout Itemize
12362 creates cell with a fixed width, its text is vertically centered
12365 \begin_layout Itemize
12370 creates cell with a fixed width, its text is vertically bottom-aligned
12373 \begin_layout Standard
12374 By entering a LaTeX-argument, all cell settings set in the table dialog
12378 \begin_layout Standard
12379 \begin_inset Note Greyedout
12382 \begin_layout Plain Layout
12387 Due to a bug, LyX shows the overwritten settings anyway.
12395 \begin_layout Standard
12396 As the text should be horizontally centered, the command
12403 You can now enter the following LaTeX-argument for the first spanned column:
12406 \begin_layout Standard
12411 centering}m{1.25cm-6.2pt}
12414 \begin_layout Standard
12419 means, that the commands inside the braces are applied before the cell
12423 \begin_layout Standard
12424 Although we have chosen centered alignment for the text of the multicolumn
12425 cell, it is still left aligned.
12426 This is because LyX only applies the alignment to single columns.
12427 So for the multicolumn cell we have to use the LaTeX-argument
12430 \begin_layout Standard
12438 \begin_layout Subsection
12440 \begin_inset CommandInset label
12442 name "sub:Multirows"
12447 \begin_inset Index idx
12450 \begin_layout Plain Layout
12457 \begin_inset Index idx
12460 \begin_layout Plain Layout
12469 \begin_layout Standard
12470 To merge cells over multiple rows, select as many cells within a column
12471 as you want to merge and use either the table-toolbar button
12474 arg "inset-modify tabular multirow"
12479 Edit\SpecialChar \menuseparator
12480 Table\SpecialChar \menuseparator
12483 , or right click on the marked cells and choose
12487 in the context menu.
12490 \begin_layout Standard
12491 Here is an example table with a multirow in the first column:
12494 \begin_layout Standard
12496 \begin_inset Tabular
12497 <lyxtabular version="3" rows="3" columns="3">
12498 <features tabularvalignment="middle">
12499 <column alignment="center" valignment="top" width="0pt">
12500 <column alignment="center" valignment="top" width="0">
12501 <column alignment="center" valignment="top" width="0">
12503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12515 \begin_layout Plain Layout
12521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12524 \begin_layout Plain Layout
12532 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12535 \begin_layout Plain Layout
12541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12544 \begin_layout Plain Layout
12550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12553 \begin_layout Plain Layout
12561 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12564 \begin_layout Plain Layout
12570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12582 \begin_layout Plain Layout
12596 \begin_layout Standard
12597 The width of multirow cells is set by setting the width and alignment for
12603 shifts the content of the multirow up/down if the offset is positive/negative.
12606 \begin_layout Standard
12607 If the column of a multirow cell has no explicit width, the multirow cell
12608 inherits the alignment of the column.
12609 Otherwise it is by default left-aligned.
12610 To override the default, renew the command
12619 \begin_layout Standard
12631 \begin_layout Standard
12632 in the document preamble.
12633 Then all entries of multirow cells in the document are centered.
12634 If centering is only needed for several tables, you can renew the command
12635 in a TeX-Code box just before the table instead of the preamble.
12636 If the text should be right-aligned, replace
12649 To return to left-alignment
12658 \begin_layout Standard
12659 This is an example table with a right-aligned multirow cell that has a vertical
12661 \begin_inset space \thinspace{}
12665 \begin_inset space \thinspace{}
12671 \begin_layout Standard
12677 \begin_layout Plain Layout
12691 \begin_inset Tabular
12692 <lyxtabular version="3" rows="4" columns="3">
12693 <features tabularvalignment="middle">
12694 <column alignment="center" valignment="top" width="3cm">
12695 <column alignment="center" valignment="top" width="0">
12696 <column alignment="center" valignment="top" width="0">
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12701 \begin_layout Plain Layout
12707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12710 \begin_layout Plain Layout
12716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12719 \begin_layout Plain Layout
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12730 \begin_layout Plain Layout
12736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12739 \begin_layout Plain Layout
12745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12748 \begin_layout Plain Layout
12756 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12777 \begin_layout Plain Layout
12785 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12806 \begin_layout Plain Layout
12821 \begin_layout Plain Layout
12837 \begin_layout Standard
12838 To start a new line in a multirow you can use a forced line break (shortcut
12842 arg "newline-insert newline"
12845 ) but this will not respect the cell lines as demonstrated in this table:
12848 \begin_layout Standard
12851 \begin_inset Tabular
12852 <lyxtabular version="3" rows="3" columns="2">
12853 <features tabularvalignment="middle">
12854 <column alignment="left" valignment="middle" width="2cm">
12855 <column alignment="center" valignment="top" width="0">
12857 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12860 \begin_layout Plain Layout
12862 \begin_inset Newline newline
12866 \begin_inset Newline newline
12874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12877 \begin_layout Plain Layout
12885 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12888 \begin_layout Plain Layout
12894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12897 \begin_layout Plain Layout
12905 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12908 \begin_layout Plain Layout
12914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12917 \begin_layout Plain Layout
12931 \begin_layout Standard
12932 Therefore be careful with forced line breaks.
12935 \begin_layout Subsection
12936 Cells with diagonal line(s)
12939 \begin_layout Standard
12940 To tell the reader what is meant by column and row headings in a table,
12941 it is helpful to split the first cell of the table by one or two diagonal
12943 This can be achieved by loading the LaTeX-package
12948 \begin_inset Index idx
12951 \begin_layout Plain Layout
12952 LaTeX-packages ! picinpar
12957 in the document preamble.
12958 The package provides the command
12964 that is inserted as TeX-Code and that can take 2 or 3
12965 \begin_inset space ~
12971 \begin_layout Standard
12976 diagbox[options]{lower left}{upper right}
12979 \begin_layout Standard
12984 diagbox[options]{lower left}{upper left}{upper right}
12987 \begin_layout Standard
12988 The first scheme divides the cell by a single diagonal line and the arguments
12989 are placed below and above this line.
12990 The second scheme divides the cell by 2
12991 \begin_inset space ~
12997 \begin_layout Standard
13001 \begin_layout Plain Layout
13011 \begin_inset Note Note
13014 \begin_layout Plain Layout
13015 The following section will only be displayed when the LaTeX-package
13027 \begin_layout Standard
13028 Here is an example table where
13034 is used in the 2-argument scheme in the first cell:
13035 \begin_inset VSpace medskip
13041 \begin_layout Standard
13043 \begin_inset Tabular
13044 <lyxtabular version="3" rows="4" columns="4">
13045 <features tabularvalignment="middle">
13046 <column alignment="center" valignment="top" width="0">
13047 <column alignment="center" valignment="top" width="0">
13048 <column alignment="center" valignment="top" width="0">
13049 <column alignment="center" valignment="top" width="0">
13051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13054 \begin_layout Plain Layout
13058 \begin_layout Plain Layout
13071 \begin_layout Plain Layout
13082 \begin_layout Plain Layout
13094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13097 \begin_layout Plain Layout
13103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13115 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13135 \begin_layout Plain Layout
13141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13144 \begin_layout Plain Layout
13150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13153 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13173 \begin_layout Plain Layout
13179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13182 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13191 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13202 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13229 \begin_layout Plain Layout
13241 \begin_inset VSpace medskip
13247 \begin_layout Standard
13248 The 3-argument scheme is for example useful for cross-tables of sports leagues
13252 \begin_layout Standard
13255 \begin_inset Tabular
13256 <lyxtabular version="3" rows="4" columns="4">
13257 <features tabularvalignment="middle">
13258 <column alignment="center" valignment="top" width="0pt">
13259 <column alignment="center" valignment="top" width="0">
13260 <column alignment="center" valignment="top" width="0">
13261 <column alignment="center" valignment="top" width="0">
13263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13266 \begin_layout Plain Layout
13270 \begin_layout Plain Layout
13283 \begin_layout Plain Layout
13294 \begin_layout Plain Layout
13305 \begin_layout Plain Layout
13317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13320 \begin_layout Plain Layout
13326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13329 \begin_layout Plain Layout
13335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13338 \begin_layout Plain Layout
13346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13349 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13367 \begin_layout Plain Layout
13373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13376 \begin_layout Plain Layout
13384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13387 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13405 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13414 \begin_layout Plain Layout
13422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13425 \begin_layout Plain Layout
13431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13434 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13443 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13452 \begin_layout Plain Layout
13466 \begin_layout Standard
13467 For larger cross-tables one might use split cells in 2 or every corner of
13468 the table like in this example:
13471 \begin_layout Standard
13474 \begin_inset Tabular
13475 <lyxtabular version="3" rows="5" columns="5">
13476 <features tabularvalignment="middle">
13477 <column alignment="center" valignment="top" width="0pt">
13478 <column alignment="center" valignment="top" width="0">
13479 <column alignment="center" valignment="top" width="0">
13480 <column alignment="center" valignment="top" width="0">
13481 <column alignment="center" valignment="top" width="0">
13483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13486 \begin_layout Plain Layout
13490 \begin_layout Plain Layout
13503 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13525 \begin_layout Plain Layout
13537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13540 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13549 \begin_layout Plain Layout
13555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13567 \begin_layout Plain Layout
13571 \begin_layout Plain Layout
13584 \begin_layout Plain Layout
13595 \begin_layout Plain Layout
13606 \begin_layout Plain Layout
13620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13623 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13632 \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" rightline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13659 \begin_layout Plain Layout
13667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13670 \begin_layout Plain Layout
13676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13679 \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" rightline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13706 \begin_layout Plain Layout
13714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13717 \begin_layout Plain Layout
13723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13726 \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" rightline="true" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13753 \begin_layout Plain Layout
13761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13764 \begin_layout Plain Layout
13768 \begin_layout Plain Layout
13781 \begin_layout Plain Layout
13792 \begin_layout Plain Layout
13803 \begin_layout Plain Layout
13815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13818 \begin_layout Plain Layout
13824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13827 \begin_layout Plain Layout
13833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13836 \begin_layout Plain Layout
13842 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13845 \begin_layout Plain Layout
13849 \begin_layout Plain Layout
13862 \begin_layout Plain Layout
13873 \begin_layout Plain Layout
13884 \begin_layout Plain Layout
13904 \begin_layout Standard
13905 To rotate the diagonal lines, the command option
13930 and represent a point of a compass.
13935 is for example the south-west corner.
13936 Thus in the lower left cell of the above table the command
13939 \begin_layout Standard
13944 diagbox[dir=SW]{Team home}{Result}{Team away}
13947 \begin_layout Standard
13949 If no direction is given, it will be NW.
13952 \begin_layout Standard
13953 The necessary width of split cells is automatically calculated.
13954 Thus if you set a fixed column width smaller than the calculated one, the
13955 cell's content will protrude the cell borders:
13958 \begin_layout Standard
13961 \begin_inset Tabular
13962 <lyxtabular version="3" rows="2" columns="2">
13963 <features tabularvalignment="middle">
13964 <column alignment="center" valignment="top" width="3cm">
13965 <column alignment="center" valignment="top" width="0">
13967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13970 \begin_layout Plain Layout
13974 \begin_layout Plain Layout
13987 \begin_layout Plain Layout
13998 \begin_layout Plain Layout
14010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14013 \begin_layout Plain Layout
14021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14024 \begin_layout Plain Layout
14030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14033 \begin_layout Plain Layout
14047 \begin_layout Standard
14048 If you need a certain width for columns with a split cell, use the command
14053 (replace '3cm' by the width you need).
14054 In the following table the width of the first column is set to 4
14055 \begin_inset space \thinspace{}
14066 \begin_inset space \thinspace{}
14070 \begin_inset space \thinspace{}
14075 tabcolsep is necessary because the overall width is the width for the text
14076 (in this case the 4
14077 \begin_inset space \thinspace{}
14080 cm) plus two times the separation of the text and the cell border.
14081 The calculation of the width cannot be done in the command option of
14087 so one needs to create a new length which can be used later.
14088 This is done with the TeX-Code commands
14091 \begin_layout Standard
14099 \begin_inset Newline newline
14111 \begin_layout Standard
14115 \begin_layout Plain Layout
14124 \begin_layout Plain Layout
14140 \begin_layout Standard
14141 To enable calculations in LaTeX one needs to load the package
14146 \begin_inset Index idx
14149 \begin_layout Plain Layout
14150 LaTeX-packages ! calc
14155 in the document preamble.
14158 \begin_layout Standard
14159 In this table you can now use the command
14162 \begin_layout Standard
14172 \begin_layout Standard
14176 \begin_layout Standard
14179 \begin_inset Tabular
14180 <lyxtabular version="3" rows="2" columns="2">
14181 <features tabularvalignment="middle">
14182 <column alignment="center" valignment="top" width="4cm">
14183 <column alignment="center" valignment="top" width="0">
14185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14188 \begin_layout Plain Layout
14192 \begin_layout Plain Layout
14207 \begin_layout Plain Layout
14218 \begin_layout Plain Layout
14230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14233 \begin_layout Plain Layout
14241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14244 \begin_layout Plain Layout
14250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14253 \begin_layout Plain Layout
14267 \begin_layout Standard
14268 Note that the split cell needs to be the widest one in the column.
14269 Otherwise the length of the diagonal line cannot be calculated correctly
14270 like in this table:
14273 \begin_layout Standard
14276 \begin_inset Tabular
14277 <lyxtabular version="3" rows="2" columns="2">
14278 <features tabularvalignment="middle">
14279 <column alignment="center" valignment="top" width="0pt">
14280 <column alignment="center" valignment="top" width="0">
14282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14285 \begin_layout Plain Layout
14289 \begin_layout Plain Layout
14302 \begin_layout Plain Layout
14313 \begin_layout Plain Layout
14325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14328 \begin_layout Plain Layout
14336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14339 \begin_layout Plain Layout
14345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14348 \begin_layout Plain Layout
14362 \begin_layout Standard
14363 In this case use the
14374 It is then not necessary to add 2
14376 tabcolsep because the cell width is now the width of the column.
14377 In this table a width of 3
14378 \begin_inset space \thinspace{}
14384 \begin_layout Standard
14387 \begin_inset Tabular
14388 <lyxtabular version="3" rows="2" columns="2">
14389 <features tabularvalignment="middle">
14390 <column alignment="center" valignment="top" width="0pt">
14391 <column alignment="center" valignment="top" width="0">
14393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14396 \begin_layout Plain Layout
14400 \begin_layout Plain Layout
14404 diagbox[width=3cm]{
14413 \begin_layout Plain Layout
14424 \begin_layout Plain Layout
14436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14439 \begin_layout Plain Layout
14447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14450 \begin_layout Plain Layout
14456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14459 \begin_layout Plain Layout
14473 \begin_layout Standard
14474 For multiple text lines in split cells one needs some extra height to fit
14475 the text to the cell.
14476 This can be achieved with the
14486 (replace '3cm' by the height you need).
14487 In the following table the command
14490 \begin_layout Standard
14495 diagbox[width=3cm,height=1.4cm]{A
14506 \begin_layout Standard
14507 is used in the first cell.
14516 creates hereby the line break.
14520 \begin_layout Plain Layout
14521 Breaking lines with
14525 is only possible when the column has a fixed width.
14533 \begin_layout Standard
14536 \begin_inset Tabular
14537 <lyxtabular version="3" rows="2" columns="2">
14538 <features tabularvalignment="middle">
14539 <column alignment="center" valignment="top" width="0">
14540 <column alignment="center" valignment="top" width="0">
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Plain Layout
14549 \begin_layout Plain Layout
14553 diagbox[width=3cm,height=1.4cm]{
14562 \begin_layout Plain Layout
14577 \begin_layout Plain Layout
14588 \begin_layout Plain Layout
14603 \begin_layout Plain Layout
14615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14618 \begin_layout Plain Layout
14626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14629 \begin_layout Plain Layout
14635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14638 \begin_layout Plain Layout
14652 \begin_layout Standard
14656 \begin_layout Plain Layout
14666 \begin_inset Note Note
14669 \begin_layout Plain Layout
14670 The following will be displayed when the LaTeX-package
14682 \begin_layout Standard
14683 You need to install the LaTeX-package
14687 to see the following part of this section in the output.
14690 \begin_layout Standard
14694 \begin_layout Plain Layout
14706 \begin_layout Standard
14707 For more info about the LaTeX-package
14711 , see its documentation,
14712 \begin_inset CommandInset citation
14721 \begin_layout Section
14723 \begin_inset CommandInset label
14725 name "sec:Formal-Tables"
14730 \begin_inset Index idx
14733 \begin_layout Plain Layout
14742 \begin_layout Standard
14743 Tables are often typeset in books similar to Table
14744 \begin_inset space ~
14748 \begin_inset CommandInset ref
14750 reference "tab:Example-booktabs-table"
14755 This kind of tables is called
14756 \begin_inset Quotes eld
14764 \begin_inset Quotes erd
14768 To make a table a formal table use the option
14776 tab of the table dialog.
14779 \begin_layout Standard
14780 \begin_inset Float table
14786 \begin_layout Plain Layout
14787 \begin_inset Caption
14789 \begin_layout Plain Layout
14790 \begin_inset CommandInset label
14792 name "tab:Example-booktabs-table"
14796 Example booktabs-table
14804 \begin_layout Plain Layout
14806 \begin_inset Tabular
14807 <lyxtabular version="3" rows="8" columns="4">
14808 <features booktabs="true" tabularvalignment="middle">
14809 <column alignment="center" valignment="top" width="0">
14810 <column alignment="center" valignment="top" width="0">
14811 <column alignment="center" valignment="top" width="0">
14812 <column alignment="center" valignment="top" width="0">
14814 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14817 \begin_layout Plain Layout
14823 <cell alignment="center" valignment="top" topline="true" usebox="none">
14826 \begin_layout Plain Layout
14828 \begin_inset space \thinspace{}
14836 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14839 \begin_layout Plain Layout
14841 \begin_inset space \thinspace{}
14849 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14852 \begin_layout Plain Layout
14860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14863 \begin_layout Plain Layout
14867 \begin_layout Plain Layout
14880 \begin_layout Plain Layout
14889 Detector thickness in µm
14894 <cell alignment="center" valignment="top" usebox="none">
14897 \begin_layout Plain Layout
14903 <cell alignment="center" valignment="top" usebox="none">
14906 \begin_layout Plain Layout
14912 <cell alignment="center" valignment="top" usebox="none">
14915 \begin_layout Plain Layout
14923 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14926 \begin_layout Plain Layout
14932 <cell alignment="center" valignment="top" topline="true" usebox="none">
14935 \begin_layout Plain Layout
14941 <cell alignment="center" valignment="top" topline="true" usebox="none">
14944 \begin_layout Plain Layout
14950 <cell alignment="center" valignment="top" topline="true" usebox="none">
14953 \begin_layout Plain Layout
14960 <row topspace="default">
14961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14964 \begin_layout Plain Layout
14965 Spatial resolution in µm
14970 <cell alignment="center" valignment="top" usebox="none">
14973 \begin_layout Plain Layout
14979 <cell alignment="center" valignment="top" usebox="none">
14982 \begin_layout Plain Layout
14988 <cell alignment="center" valignment="top" usebox="none">
14991 \begin_layout Plain Layout
14998 <row topspace="default">
14999 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15002 \begin_layout Plain Layout
15004 \begin_inset Formula $f_{\mathrm{max}}$
15012 <cell alignment="center" valignment="top" usebox="none">
15015 \begin_layout Plain Layout
15021 <cell alignment="center" valignment="top" usebox="none">
15024 \begin_layout Plain Layout
15030 <cell alignment="center" valignment="top" usebox="none">
15033 \begin_layout Plain Layout
15040 <row topspace="default">
15041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15044 \begin_layout Plain Layout
15048 \begin_layout Plain Layout
15052 cmidrule(l{10pt}){1-1}
15057 LSF-spatial resolution
15062 <cell alignment="center" valignment="top" usebox="none">
15065 \begin_layout Plain Layout
15071 <cell alignment="center" valignment="top" usebox="none">
15074 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15091 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15094 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15129 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15132 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15141 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15150 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15159 \begin_layout Plain Layout
15178 \begin_layout Standard
15179 Spaces to table rows can be added using the
15183 tab of the table dialog as described in section
15184 \begin_inset space ~
15188 \begin_inset CommandInset ref
15190 reference "sub:Row-Spacing"
15197 \begin_layout Standard
15198 Unlike normal tables, formal tables have no vertical table lines.
15199 The horizontal table lines can be set as for normal tables but they appear
15200 with different widths in the output:
15201 \begin_inset Newline newline
15204 The first and the last table line have a default width of 0.08
15205 \begin_inset space \thinspace{}
15208 em while the other lines have a default width of 0.05
15209 \begin_inset space \thinspace{}
15215 \begin_layout Standard
15216 The default widths can be changed with the following preamble lines
15219 \begin_layout Standard
15229 \begin_inset Newline newline
15241 \begin_layout Standard
15242 This example is for the first line, the so called
15247 If you want to change the width for the last line, replace
15256 To change the width for the other lines replace
15265 You can use all units listed in appendix
15266 \begin_inset space ~
15270 \begin_inset CommandInset ref
15272 reference "cha:Units-available-in"
15279 \begin_layout Standard
15280 Lines that do not span all table columns can be created by setting a table
15281 line for multicolumn cells.
15282 LyX will then internally use the command
15288 to create this line.
15292 \begin_layout Standard
15297 cmidrule[width](trim){startcol-endcol}
15300 \begin_layout Standard
15307 are currently not supported by LyX so you have to use TeX-Code to be able
15315 s can manually be created by inserting the command as TeX-Code as the first
15316 cell entry of the first cell of a row.
15317 The line is then drawn in the output above the current row.
15320 \begin_layout Standard
15321 The default for the width is 0.03
15322 \begin_inset space \thinspace{}
15326 Startcol is the number of the column where the line starts and endcol the
15327 column number where the line ends.
15328 The endcol always needs to be specified, also when the line should span
15330 The optional parameter trim could be either
15338 where the trimwidth is also optional.
15339 Using for example the parameter
15343 means that the line is trimmed from its left end by 2
15344 \begin_inset space \thinspace{}
15348 If you don't specify the trimwidth the lines are trimmed by the default
15350 \begin_inset space \thinspace{}
15356 \begin_layout Standard
15357 \begin_inset VSpace bigskip
15361 \begin_inset space ~
15365 \begin_inset CommandInset ref
15367 reference "tab:Example-booktabs-table"
15371 was created using the commands
15374 \begin_layout Standard
15384 \begin_layout Standard
15385 at the beginning of the second row and
15388 \begin_layout Standard
15393 cmidrule(l{10pt}){1-1}
15396 \begin_layout Standard
15400 \begin_layout Standard
15401 \begin_inset VSpace bigskip
15407 \begin_layout Standard
15408 You might want to have overlapping
15415 \begin_inset space ~
15419 \begin_inset CommandInset ref
15421 reference "tab:Special-booktabs-table"
15426 This can be achieved with the TeX-Code command
15429 \begin_layout Standard
15437 \begin_layout Standard
15438 The command that was used for the second row of Table
15439 \begin_inset space ~
15443 \begin_inset CommandInset ref
15445 reference "tab:Special-booktabs-table"
15452 \begin_layout Standard
15466 \begin_layout Standard
15467 The command for the sixth row is
15470 \begin_layout Standard
15482 \begin_layout Standard
15483 \begin_inset VSpace bigskip
15489 \begin_layout Standard
15490 If you are in any way not satisfied with the border line spacing, you can
15491 use the following command to produce lines that span over all table columns
15496 \begin_layout Standard
15501 specialrule{width}{space above}{space below}
15504 \begin_layout Standard
15505 For more information about these features, refer to the manual of the LaTeX-pack
15511 \begin_inset CommandInset citation
15518 \begin_inset Index idx
15521 \begin_layout Plain Layout
15522 LaTeX-packages ! booktabs
15530 \begin_layout Standard
15531 \begin_inset Float table
15537 \begin_layout Plain Layout
15538 \begin_inset Caption
15540 \begin_layout Plain Layout
15541 \begin_inset CommandInset label
15543 name "tab:Special-booktabs-table"
15547 Special booktabs-table
15555 \begin_layout Plain Layout
15557 \begin_inset Tabular
15558 <lyxtabular version="3" rows="8" columns="4">
15559 <features booktabs="true" tabularvalignment="middle">
15560 <column alignment="center" valignment="top" width="0">
15561 <column alignment="center" valignment="top" width="0">
15562 <column alignment="center" valignment="top" width="0">
15563 <column alignment="center" valignment="top" width="0">
15565 <cell alignment="center" valignment="top" topline="true" usebox="none">
15568 \begin_layout Plain Layout
15574 <cell alignment="center" valignment="top" topline="true" usebox="none">
15577 \begin_layout Plain Layout
15579 \begin_inset space \thinspace{}
15587 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15590 \begin_layout Plain Layout
15592 \begin_inset space \thinspace{}
15600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15603 \begin_layout Plain Layout
15611 <cell alignment="center" valignment="top" usebox="none">
15614 \begin_layout Plain Layout
15618 \begin_layout Plain Layout
15631 \begin_layout Plain Layout
15644 \begin_layout Plain Layout
15657 \begin_layout Plain Layout
15666 Detector thickness in µm
15671 <cell alignment="center" valignment="top" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" usebox="none">
15683 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" usebox="none">
15692 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" topline="true" usebox="none">
15703 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" usebox="none">
15712 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" usebox="none">
15730 \begin_layout Plain Layout
15737 <row topspace="default">
15738 <cell alignment="center" valignment="top" usebox="none">
15741 \begin_layout Plain Layout
15742 Spatial resolution 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
15775 <row topspace="default">
15776 <cell alignment="center" valignment="top" usebox="none">
15779 \begin_layout Plain Layout
15781 \begin_inset Formula $f_{\mathrm{max}}$
15789 <cell alignment="center" valignment="top" usebox="none">
15792 \begin_layout Plain Layout
15798 <cell alignment="center" valignment="top" usebox="none">
15801 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" usebox="none">
15810 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" usebox="none">
15821 \begin_layout Plain Layout
15825 \begin_layout Plain Layout
15838 \begin_layout Plain Layout
15847 LSF-spatial resolution
15852 <cell alignment="center" valignment="top" topline="true" usebox="none">
15855 \begin_layout Plain Layout
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" topline="true" usebox="none">
15873 \begin_layout Plain Layout
15881 <cell alignment="center" valignment="top" usebox="none">
15884 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" usebox="none">
15902 \begin_layout Plain Layout
15908 <cell alignment="center" valignment="top" usebox="none">
15911 \begin_layout Plain Layout
15919 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15922 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15937 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15940 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15949 \begin_layout Plain Layout
15968 \begin_layout Section
15969 Vertical Table Alignment
15970 \begin_inset Index idx
15973 \begin_layout Plain Layout
15982 \begin_layout Standard
15983 To align tables vertically in a text line, the table must be inside a box.
15984 The box can then be vertically aligned as described in section
15985 \begin_inset space ~
15989 \begin_inset CommandInset ref
15991 reference "sec:Box-Dialog"
15998 \begin_layout Standard
15999 In the following example the tables are inside a minipage
16003 \begin_layout Plain Layout
16004 Minipages are described in section
16005 \begin_inset space ~
16009 \begin_inset CommandInset ref
16011 reference "sec:Minipages"
16020 box that has a width of 15
16021 \begin_inset space \thinspace{}
16027 \begin_layout Itemize
16029 \begin_inset Box Frameless
16039 height_special "totalheight"
16042 \begin_layout Plain Layout
16043 \begin_inset Tabular
16044 <lyxtabular version="3" rows="3" columns="3">
16045 <features tabularvalignment="middle">
16046 <column alignment="center" valignment="top" width="0">
16047 <column alignment="center" valignment="top" width="0">
16048 <column alignment="center" valignment="top" width="0">
16050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16053 \begin_layout Plain Layout
16059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16062 \begin_layout Plain Layout
16068 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16071 \begin_layout Plain Layout
16079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16082 \begin_layout Plain Layout
16088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16091 \begin_layout Plain Layout
16097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16100 \begin_layout Plain Layout
16108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16111 \begin_layout Plain Layout
16117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16120 \begin_layout Plain Layout
16126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16129 \begin_layout Plain Layout
16149 \begin_layout Plain Layout
16161 \begin_inset Box Frameless
16171 height_special "totalheight"
16174 \begin_layout Plain Layout
16175 \begin_inset Tabular
16176 <lyxtabular version="3" rows="3" columns="3">
16177 <features tabularvalignment="middle">
16178 <column alignment="center" valignment="top" width="0">
16179 <column alignment="center" valignment="top" width="0">
16180 <column alignment="center" valignment="top" width="0">
16182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16185 \begin_layout Plain Layout
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16194 \begin_layout Plain Layout
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16203 \begin_layout Plain Layout
16211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16214 \begin_layout Plain Layout
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16223 \begin_layout Plain Layout
16229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16232 \begin_layout Plain Layout
16240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16243 \begin_layout Plain Layout
16249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16252 \begin_layout Plain Layout
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_layout Plain Layout
16281 \begin_layout Plain Layout
16291 \begin_layout Itemize
16293 \begin_inset Box Frameless
16303 height_special "totalheight"
16306 \begin_layout Plain Layout
16307 \begin_inset Tabular
16308 <lyxtabular version="3" rows="3" columns="3">
16309 <features tabularvalignment="middle">
16310 <column alignment="center" valignment="top" width="0">
16311 <column alignment="center" valignment="top" width="0">
16312 <column alignment="center" valignment="top" width="0">
16314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16317 \begin_layout Plain Layout
16323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16326 \begin_layout Plain Layout
16332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16335 \begin_layout Plain Layout
16343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16346 \begin_layout Plain Layout
16352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16355 \begin_layout Plain Layout
16361 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16364 \begin_layout Plain Layout
16372 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16375 \begin_layout Plain Layout
16381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16384 \begin_layout Plain Layout
16390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16393 \begin_layout Plain Layout
16412 \begin_layout Itemize
16414 \begin_inset Box Frameless
16424 height_special "totalheight"
16427 \begin_layout Plain Layout
16428 \begin_inset Tabular
16429 <lyxtabular version="3" rows="3" columns="3">
16430 <features tabularvalignment="middle">
16431 <column alignment="center" valignment="top" width="0">
16432 <column alignment="center" valignment="top" width="0">
16433 <column alignment="center" valignment="top" width="0">
16435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16438 \begin_layout Plain Layout
16444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16447 \begin_layout Plain Layout
16453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16456 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16467 \begin_layout Plain Layout
16473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16476 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16485 \begin_layout Plain Layout
16493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16496 \begin_layout Plain Layout
16502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16505 \begin_layout Plain Layout
16511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16514 \begin_layout Plain Layout
16534 \begin_layout Plain Layout
16546 \begin_inset Box Frameless
16556 height_special "totalheight"
16559 \begin_layout Plain Layout
16560 \begin_inset Tabular
16561 <lyxtabular version="3" rows="3" columns="3">
16562 <features tabularvalignment="middle">
16563 <column alignment="center" valignment="top" width="0">
16564 <column alignment="center" valignment="top" width="0">
16565 <column alignment="center" valignment="top" width="0">
16567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16570 \begin_layout Plain Layout
16576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16579 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16588 \begin_layout Plain Layout
16596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16599 \begin_layout Plain Layout
16605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16608 \begin_layout Plain Layout
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16617 \begin_layout Plain Layout
16625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16628 \begin_layout Plain Layout
16634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16637 \begin_layout Plain Layout
16643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16646 \begin_layout Plain Layout
16666 \begin_layout Plain Layout
16676 \begin_layout Standard
16677 As you will see, the content of the first and last table row is not correctly
16679 To get this alignment, the minipage box must be set into a raisebox
16683 \begin_layout Plain Layout
16684 Raiseboxes are described in section
16685 \begin_inset space ~
16689 \begin_inset CommandInset ref
16691 reference "sub:Vertical-Alignment"
16701 In the example above the second table in the first item is aligned using
16702 the TeX-Code-command
16705 \begin_layout Standard
16715 \begin_layout Standard
16717 After the box the closing brace
16721 is inserted as TeX-Code.
16722 For the second table in the last item the command
16725 \begin_layout Standard
16735 \begin_layout Standard
16739 \begin_layout Standard
16740 \begin_inset Note Greyedout
16743 \begin_layout Plain Layout
16748 The alignment of the table row content to the surrounding text line is
16750 The required value for the
16756 command for this alignment depends on the document font, the font size,
16757 and the table line thickness.
16765 \begin_layout Section
16767 \begin_inset CommandInset label
16769 name "sec:Colored-Tables"
16774 \begin_inset Index idx
16777 \begin_layout Plain Layout
16786 \begin_layout Subsection
16788 \begin_inset Index idx
16791 \begin_layout Plain Layout
16792 Table Color ! for Cells
16798 \begin_inset Index idx
16801 \begin_layout Plain Layout
16802 Color ! for Table Cells
16810 \begin_layout Standard
16811 \begin_inset Float table
16817 \begin_layout Plain Layout
16818 \begin_inset Caption
16820 \begin_layout Plain Layout
16821 \begin_inset CommandInset label
16823 name "tab:Table-colored-without"
16827 Table colored without using the package
16832 \begin_inset Argument
16835 \begin_layout Plain Layout
16836 Table without colortbl
16849 \begin_layout Plain Layout
16851 \begin_inset Tabular
16852 <lyxtabular version="3" rows="3" columns="3">
16853 <features tabularvalignment="middle">
16854 <column alignment="center" valignment="top" width="0">
16855 <column alignment="center" valignment="top" width="0">
16856 <column alignment="center" valignment="top" width="0">
16858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16861 \begin_layout Plain Layout
16869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16872 \begin_layout Plain Layout
16880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16883 \begin_layout Plain Layout
16893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16896 \begin_layout Plain Layout
16904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16907 \begin_layout Plain Layout
16915 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16918 \begin_layout Plain Layout
16928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16931 \begin_layout Plain Layout
16939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16942 \begin_layout Plain Layout
16950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16953 \begin_layout Plain Layout
16974 \begin_layout Standard
16975 If you only need colored text, mark the cells and choose a color in the
16979 \begin_inset space ~
16984 dialog (toolbar button
16987 arg "dialog-show character"
16991 This was used to create Table
16992 \begin_inset space ~
16996 \begin_inset CommandInset ref
16998 reference "tab:Table-colored-without"
17003 In any other case you have to use the LaTeX-package
17008 \begin_inset Index idx
17011 \begin_layout Plain Layout
17012 LaTeX-packages ! colortbl
17020 \begin_layout Standard
17024 \begin_layout Plain Layout
17034 \begin_inset Note Note
17037 \begin_layout Plain Layout
17038 The following section part will only be displayed when the LaTeX-package
17051 \begin_layout Standard
17052 To create colored tables,
17056 must be loaded in the preamble with the line
17059 \begin_layout Standard
17064 usepackage{colortbl}
17067 \begin_layout Standard
17068 The color of a column is adjusted with the command
17071 \begin_layout Standard
17076 columncolor{name of color}
17079 \begin_layout Standard
17085 More about the command
17089 is contained in section
17090 \begin_inset space ~
17094 \begin_inset CommandInset ref
17096 reference "sub:Multicolumn-Calculations"
17103 \begin_layout Standard
17104 The following color names are predefined:
17107 \begin_layout Standard
17141 \begin_layout Standard
17142 \begin_inset VSpace medskip
17148 \begin_layout Standard
17149 If you add the options
17152 \begin_layout Standard
17155 usenames,dvipsnames
17158 \begin_layout Standard
17159 to the document class options in the document settings, you can additionally
17161 \begin_inset space ~
17165 These colors are listed in appendix
17166 \begin_inset space ~
17170 \begin_inset CommandInset ref
17172 reference "chap:List-of-dvips-colornames"
17177 One of these colors,
17181 , is used as example in Table
17182 \begin_inset space ~
17186 \begin_inset CommandInset ref
17188 reference "tab:Table-colored-using"
17195 \begin_layout Standard
17196 \begin_inset VSpace medskip
17202 \begin_layout Standard
17203 You can also define your own color with the command
17206 \begin_layout Standard
17211 definecolor{color name}{color model}{color values}
17214 \begin_layout Standard
17215 The color model can be
17218 \begin_layout Labeling
17219 \labelwidthstring 00.00.0000
17220 cmyk: cyan, magenta, yellow, black
17223 \begin_layout Labeling
17224 \labelwidthstring 00.00.0000
17225 rgb: red, green blue
17228 \begin_layout Labeling
17229 \labelwidthstring 00.00.0000
17233 \begin_layout Standard
17234 and the color values are comma separated numbers between 0 and 1 describing
17235 the factor for the corresponding color of the color model.
17238 \begin_layout Standard
17240 \begin_inset space \thinspace{}
17244 \begin_inset space \space{}
17251 " in the preamble with
17254 \begin_layout Standard
17259 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17262 \begin_layout Standard
17270 \begin_layout Standard
17275 definecolor{lightgray}{gray}{0.8}
17278 \begin_layout Standard
17279 \begin_inset VSpace medskip
17285 \begin_layout Standard
17286 Lines are colored with the command
17289 \begin_layout Standard
17294 rowcolor{name of color}
17297 \begin_layout Standard
17298 and cells are colored with the command
17301 \begin_layout Standard
17306 cellcolor{name of color}
17309 \begin_layout Standard
17310 Both commands are inserted at the beginning of a cell as TeX-Code.
17313 \begin_layout Standard
17314 To color characters in the table, mark the cells and use the
17317 \begin_inset space ~
17323 If a cell contains TeX-Code mark only the characters, otherwise the colored
17324 TeX-Code will cause LaTeX-errors.
17327 \begin_layout Standard
17328 \begin_inset Note Greyedout
17331 \begin_layout Plain Layout
17336 Not all DVI-viewers are able to display self-defined colors.
17344 \begin_layout Standard
17345 \begin_inset VSpace bigskip
17351 \begin_layout Standard
17353 \begin_inset space ~
17357 \begin_inset CommandInset ref
17359 reference "tab:Table-colored-using"
17363 do the following: The color of the first column should be
17371 \begin_layout Standard
17376 columncolor{darkgreen}
17381 \begin_layout Standard
17382 as LaTeX-argument for this column.
17383 The first row should be light blue, therefore the TeX-Code command
17386 \begin_layout Standard
17394 \begin_layout Standard
17395 is inserted to the first cell of this row.
17396 Note that this overwrites the column color for the first cell.
17397 The last cell of the last row is colored maroon by inserting the TeX-Code
17401 \begin_layout Standard
17409 \begin_layout Standard
17410 The characters could now be colored using the menu
17412 Edit\SpecialChar \menuseparator
17414 \begin_inset space ~
17422 \begin_layout Standard
17423 \begin_inset Float table
17429 \begin_layout Plain Layout
17430 \begin_inset Caption
17432 \begin_layout Plain Layout
17433 \begin_inset CommandInset label
17435 name "tab:Table-colored-using"
17439 Table colored using the package
17444 \begin_inset Argument
17447 \begin_layout Plain Layout
17448 Table with colortbl
17461 \begin_layout Plain Layout
17463 \begin_inset Tabular
17464 <lyxtabular version="3" rows="3" columns="3">
17465 <features tabularvalignment="middle">
17466 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
17467 <column alignment="center" valignment="top" width="0">
17468 <column alignment="center" valignment="top" width="0">
17470 <cell alignment="center" valignment="top" usebox="none">
17473 \begin_layout Plain Layout
17477 \begin_layout Plain Layout
17493 <cell alignment="center" valignment="top" usebox="none">
17496 \begin_layout Plain Layout
17504 <cell alignment="center" valignment="top" usebox="none">
17507 \begin_layout Plain Layout
17517 <cell alignment="center" valignment="top" usebox="none">
17520 \begin_layout Plain Layout
17528 <cell alignment="center" valignment="top" usebox="none">
17531 \begin_layout Plain Layout
17539 <cell alignment="center" valignment="top" usebox="none">
17542 \begin_layout Plain Layout
17552 <cell alignment="center" valignment="top" usebox="none">
17555 \begin_layout Plain Layout
17563 <cell alignment="center" valignment="top" usebox="none">
17566 \begin_layout Plain Layout
17574 <cell alignment="center" valignment="top" usebox="none">
17577 \begin_layout Plain Layout
17581 \begin_layout Plain Layout
17610 \begin_layout Standard
17614 \begin_layout Plain Layout
17624 \begin_inset Note Note
17627 \begin_layout Plain Layout
17628 The following will be displayed when the LaTeX-package
17640 \begin_layout Standard
17641 You need to install the package
17645 to see the content of this section in the output.
17648 \begin_layout Standard
17652 \begin_layout Plain Layout
17664 \begin_layout Subsection
17666 \begin_inset Index idx
17669 \begin_layout Plain Layout
17670 Table Color ! for Rows
17676 \begin_inset Index idx
17679 \begin_layout Plain Layout
17680 Color ! for Table Rows
17688 \begin_layout Standard
17689 In case every second table row needs to be colored there is an alternative
17690 to the method described in the previous section: One loads the package
17696 \begin_inset Index idx
17699 \begin_layout Plain Layout
17700 LaTeX-packages ! xcolor
17704 \begin_layout Plain Layout
17718 in the document preamble with the command
17721 \begin_layout Standard
17726 usepackage[table]{xcolor}
17729 \begin_layout Standard
17734 automatically loads also the package
17739 \begin_inset Index idx
17742 \begin_layout Plain Layout
17743 LaTeX-packages ! colortbl
17752 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17755 \begin_layout Standard
17759 \begin_layout Plain Layout
17769 \begin_inset Note Note
17772 \begin_layout Plain Layout
17773 The following section part will only be displayed when the LaTeX-package
17786 \begin_layout Standard
17787 The table rows are colored with the command
17790 \begin_layout Standard
17795 rowcolors[commands]{row number}{odd row color}{even row color}
17798 \begin_layout Standard
17799 that is either inserted in the document preamble or as TeX-Code before the
17800 first table to be colored.
17802 \begin_inset space ~
17805 number is the number of the first row which should be colored according
17806 to the odd row color.
17807 commands can be additional commands that are executed before every table
17809 So for example the command
17812 \begin_layout Standard
17817 rowcolors{1}{white}{lightgray}
17820 \begin_layout Standard
17821 leads to the coloring scheme of Table
17822 \begin_inset space ~
17826 \begin_inset CommandInset ref
17828 reference "tab:Table-rowcolors"
17836 \begin_layout Standard
17843 hline]{1}{lightgray}{cyan}
17846 \begin_layout Standard
17847 leads to the coloring scheme of Table
17848 \begin_inset space ~
17852 \begin_inset CommandInset ref
17854 reference "tab:Table-rowcolors-2"
17860 \begin_inset space ~
17864 \begin_inset space ~
17868 \begin_inset space ~
17872 \begin_inset space ~
17875 color are left empty, no color will be used so that the command
17878 \begin_layout Standard
17886 \begin_layout Standard
17887 deletes all colors.
17894 affects all tables following that command.
17897 \begin_layout Standard
17901 \begin_layout Plain Layout
17905 rowcolors{1}{white}{lightgray}
17913 \begin_layout Standard
17914 \begin_inset Float table
17920 \begin_layout Plain Layout
17921 \begin_inset Caption
17923 \begin_layout Plain Layout
17924 \begin_inset CommandInset label
17926 name "tab:Table-rowcolors"
17930 Table where every second row is colored light gray.
17938 \begin_layout Plain Layout
17940 \begin_inset Tabular
17941 <lyxtabular version="3" rows="4" columns="3">
17942 <features tabularvalignment="middle">
17943 <column alignment="center" valignment="top" width="0">
17944 <column alignment="center" valignment="top" width="0pt">
17945 <column alignment="center" valignment="top" width="0pt">
17947 <cell alignment="center" valignment="top" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" usebox="none">
17959 \begin_layout Plain Layout
17965 <cell alignment="center" valignment="top" usebox="none">
17968 \begin_layout Plain Layout
17976 <cell alignment="center" valignment="top" usebox="none">
17979 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" usebox="none">
17997 \begin_layout Plain Layout
18005 <cell alignment="center" valignment="top" usebox="none">
18008 \begin_layout Plain Layout
18014 <cell alignment="center" valignment="top" usebox="none">
18017 \begin_layout Plain Layout
18023 <cell alignment="center" valignment="top" usebox="none">
18026 \begin_layout Plain Layout
18034 <cell alignment="center" valignment="top" usebox="none">
18037 \begin_layout Plain Layout
18043 <cell alignment="center" valignment="top" usebox="none">
18046 \begin_layout Plain Layout
18052 <cell alignment="center" valignment="top" usebox="none">
18055 \begin_layout Plain Layout
18074 \begin_layout Standard
18078 \begin_layout Plain Layout
18084 hline]{1}{lightgray}{cyan}
18092 \begin_layout Standard
18093 \begin_inset Float table
18099 \begin_layout Plain Layout
18100 \begin_inset Caption
18102 \begin_layout Plain Layout
18103 \begin_inset CommandInset label
18105 name "tab:Table-rowcolors-2"
18109 Table where every second row is colored cyan and at which there is a line
18118 \begin_layout Plain Layout
18120 \begin_inset Tabular
18121 <lyxtabular version="3" rows="4" columns="3">
18122 <features tabularvalignment="middle">
18123 <column alignment="center" valignment="top" width="0">
18124 <column alignment="center" valignment="top" width="0">
18125 <column alignment="center" valignment="top" width="0pt">
18127 <cell alignment="center" valignment="top" usebox="none">
18130 \begin_layout Plain Layout
18136 <cell alignment="center" valignment="top" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18156 <cell alignment="center" valignment="top" usebox="none">
18159 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" usebox="none">
18177 \begin_layout Plain Layout
18185 <cell alignment="center" valignment="top" usebox="none">
18188 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" usebox="none">
18206 \begin_layout Plain Layout
18214 <cell alignment="center" valignment="top" usebox="none">
18217 \begin_layout Plain Layout
18223 <cell alignment="center" valignment="top" usebox="none">
18226 \begin_layout Plain Layout
18232 <cell alignment="center" valignment="top" usebox="none">
18235 \begin_layout Plain Layout
18254 \begin_layout Standard
18258 \begin_layout Plain Layout
18268 \begin_inset Note Note
18271 \begin_layout Plain Layout
18272 turns off the row coloring
18280 \begin_layout Standard
18284 \begin_layout Plain Layout
18294 \begin_inset Note Note
18297 \begin_layout Plain Layout
18298 The following will be displayed when the LaTeX-package
18310 \begin_layout Standard
18311 You need to install the package
18315 to see the content of this section in the output.
18318 \begin_layout Standard
18322 \begin_layout Plain Layout
18334 \begin_layout Subsection
18336 \begin_inset Index idx
18339 \begin_layout Plain Layout
18340 Table Color ! for Lines
18346 \begin_inset Index idx
18349 \begin_layout Plain Layout
18350 Color ! for Table Lines
18358 \begin_layout Standard
18359 As described in section
18360 \begin_inset space ~
18364 \begin_inset CommandInset ref
18366 reference "sub:Line-Thickness"
18370 , the line thickness for all lines in a table can be adjusted with the length
18379 \begin_inset space \thinspace{}
18382 pt for all tables of this section.
18386 \begin_layout Plain Layout
18392 arrayrulewidth}{1.5pt}
18400 \begin_layout Standard
18401 To color vertical lines for example with green, create the following column
18402 format in the document preamble, according to the description in section
18403 \begin_inset space ~
18407 \begin_inset CommandInset ref
18409 reference "sub:Customized-Format"
18416 \begin_layout Standard
18421 newcolumntype{W}{!{
18428 \begin_layout Standard
18430 \begin_inset space ~
18434 \begin_inset CommandInset ref
18436 reference "tab:Table-with-vertical-colored"
18444 was used for the last column and
18448 for the other columns.
18451 \begin_layout Standard
18452 If you want to have several colors, define more column formats.
18455 \begin_layout Standard
18456 \begin_inset Float table
18462 \begin_layout Plain Layout
18463 \begin_inset Caption
18465 \begin_layout Plain Layout
18466 \begin_inset CommandInset label
18468 name "tab:Table-with-vertical-colored"
18472 Table with colored vertical lines
18480 \begin_layout Plain Layout
18482 \begin_inset Tabular
18483 <lyxtabular version="3" rows="3" columns="3">
18484 <features tabularvalignment="middle">
18485 <column alignment="center" valignment="top" width="0" special="Wc">
18486 <column alignment="center" valignment="top" width="0" special="Wc">
18487 <column alignment="center" valignment="top" width="0" special="WcW">
18489 <cell alignment="center" valignment="top" topline="true" usebox="none">
18492 \begin_layout Plain Layout
18498 <cell alignment="center" valignment="top" topline="true" usebox="none">
18501 \begin_layout Plain Layout
18507 <cell alignment="center" valignment="top" topline="true" usebox="none">
18510 \begin_layout Plain Layout
18518 <cell alignment="center" valignment="top" topline="true" usebox="none">
18521 \begin_layout Plain Layout
18527 <cell alignment="center" valignment="top" topline="true" usebox="none">
18530 \begin_layout Plain Layout
18536 <cell alignment="center" valignment="top" topline="true" usebox="none">
18539 \begin_layout Plain Layout
18547 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18550 \begin_layout Plain Layout
18556 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18559 \begin_layout Plain Layout
18565 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18568 \begin_layout Plain Layout
18587 \begin_layout Standard
18588 \begin_inset VSpace bigskip
18591 To color horizontal lines for example with red, as in Table
18592 \begin_inset space ~
18596 \begin_inset CommandInset ref
18598 reference "tab:Table-with-horizontal-colored"
18602 , insert these commands in TeX-Code before the table or table float:
18605 \begin_layout Standard
18615 \begin_inset Newline newline
18623 \begin_inset Newline newline
18627 \begin_inset Phantom HPhantom
18630 \begin_layout Plain Layout
18633 \begin_inset space ~
18643 arrayrulecolor{red}
18647 arrayrulecolor{black}}
18650 \begin_layout Standard
18654 \begin_layout Plain Layout
18665 \begin_layout Plain Layout
18674 \begin_layout Plain Layout
18678 arrayrulecolor{red}
18682 arrayrulecolor{black}}
18688 \begin_inset Float table
18694 \begin_layout Plain Layout
18695 \begin_inset Caption
18697 \begin_layout Plain Layout
18698 \begin_inset CommandInset label
18700 name "tab:Table-with-horizontal-colored"
18704 Table with colored horizontal lines
18712 \begin_layout Plain Layout
18714 \begin_inset Tabular
18715 <lyxtabular version="3" rows="3" columns="3">
18716 <features tabularvalignment="middle">
18717 <column alignment="center" valignment="top" width="0">
18718 <column alignment="center" valignment="top" width="0">
18719 <column alignment="center" valignment="top" width="0">
18721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18724 \begin_layout Plain Layout
18730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18742 \begin_layout Plain Layout
18750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18753 \begin_layout Plain Layout
18759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18771 \begin_layout Plain Layout
18779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18782 \begin_layout Plain Layout
18788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18791 \begin_layout Plain Layout
18797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18800 \begin_layout Plain Layout
18819 \begin_layout Standard
18820 To return to the default line color black, insert this command in TeX-Code
18821 after the table or table float:
18824 \begin_layout Standard
18836 \begin_layout Standard
18838 \begin_inset space ~
18842 \begin_inset CommandInset ref
18844 reference "tab:Table-with-colored"
18848 is an example with colored vertical and horizontal lines.
18851 \begin_layout Standard
18852 \begin_inset Float table
18858 \begin_layout Plain Layout
18859 \begin_inset Caption
18861 \begin_layout Plain Layout
18862 \begin_inset CommandInset label
18864 name "tab:Table-with-colored"
18868 Table with colored lines
18876 \begin_layout Plain Layout
18878 \begin_inset Tabular
18879 <lyxtabular version="3" rows="3" columns="3">
18880 <features tabularvalignment="middle">
18881 <column alignment="center" valignment="top" width="0" special="Wc">
18882 <column alignment="center" valignment="top" width="0" special="Wc">
18883 <column alignment="center" valignment="top" width="0" special="WcW">
18885 <cell alignment="center" valignment="top" topline="true" usebox="none">
18888 \begin_layout Plain Layout
18894 <cell alignment="center" valignment="top" topline="true" usebox="none">
18897 \begin_layout Plain Layout
18903 <cell alignment="center" valignment="top" topline="true" usebox="none">
18906 \begin_layout Plain Layout
18914 <cell alignment="center" valignment="top" topline="true" usebox="none">
18917 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" topline="true" usebox="none">
18926 \begin_layout Plain Layout
18932 <cell alignment="center" valignment="top" topline="true" usebox="none">
18935 \begin_layout Plain Layout
18942 <row topspace="default">
18943 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18946 \begin_layout Plain Layout
18952 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18955 \begin_layout Plain Layout
18961 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18964 \begin_layout Plain Layout
18983 \begin_layout Standard
18987 \begin_layout Plain Layout
19003 \begin_layout Standard
19007 \begin_layout Plain Layout
19013 arrayrulewidth}{0.4pt}
19021 \begin_layout Section
19022 Rotated Table Cells
19023 \begin_inset CommandInset label
19025 name "sec:Rotated-Table-Cells"
19030 \begin_inset Index idx
19033 \begin_layout Plain Layout
19034 Table ! Rotated Cells
19040 \begin_inset Index idx
19043 \begin_layout Plain Layout
19052 \begin_layout Standard
19053 \begin_inset Note Greyedout
19056 \begin_layout Plain Layout
19061 Not all DVI-viewers are able to display rotations.
19069 \begin_layout Standard
19070 Currently LyX only offers to rotate table cells by 90
19071 \begin_inset space \thinspace{}
19074 ° counter-clockwise.
19075 To rotate cells by an angle of your choice, you have to add this to the
19079 \begin_layout Standard
19084 @ifundefined{turnbox}{
19086 usepackage{rotating}}{}
19089 \begin_layout Standard
19090 In the table cell that should be rotated, add at the beginning this command
19094 \begin_layout Standard
19102 \begin_layout Standard
19103 where angle is the rotation angle in °.
19104 At the end of the cell the command
19107 \begin_layout Standard
19115 \begin_layout Standard
19116 is inserted as TeX-code.
19119 \begin_layout Standard
19121 \begin_inset space ~
19125 \begin_inset CommandInset ref
19127 reference "tab:Table-with-rotated-multi"
19131 is an example where 3
19132 \begin_inset space ~
19135 cells were rotated by 45
19136 \begin_inset space \thinspace{}
19142 \begin_layout Standard
19143 \begin_inset Float table
19148 \begin_layout Plain Layout
19149 \begin_inset Caption
19151 \begin_layout Plain Layout
19152 \begin_inset CommandInset label
19154 name "tab:Table-with-rotated"
19158 Table with rotated cells in the first row.
19166 \begin_layout Plain Layout
19169 \begin_inset Tabular
19170 <lyxtabular version="3" rows="2" columns="3">
19171 <features tabularvalignment="middle">
19172 <column alignment="center" valignment="top" width="0">
19173 <column alignment="center" valignment="top" width="0pt">
19174 <column alignment="center" valignment="top" width="0">
19176 <cell alignment="center" valignment="top" usebox="none">
19179 \begin_layout Plain Layout
19183 \begin_layout Plain Layout
19196 \begin_layout Plain Layout
19210 <cell alignment="center" valignment="top" usebox="none">
19213 \begin_layout Plain Layout
19217 \begin_layout Plain Layout
19230 \begin_layout Plain Layout
19244 <cell alignment="center" valignment="top" usebox="none">
19247 \begin_layout Plain Layout
19251 \begin_layout Plain Layout
19264 \begin_layout Plain Layout
19280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19283 \begin_layout Plain Layout
19289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19292 \begin_layout Plain Layout
19298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19301 \begin_layout Plain Layout
19320 \begin_layout Standard
19321 \begin_inset Note Greyedout
19324 \begin_layout Plain Layout
19329 Line breaks (shortcut
19332 arg "newline-insert newline"
19335 ) are not allowed in rotated cells.
19343 \begin_layout Standard
19344 If you want to rotate table cells containing line breaks, you have to put
19345 the cell content into a minipage or a parbox.
19349 \begin_layout Plain Layout
19350 For more about these boxes see sec.
19351 \begin_inset space \thinspace{}
19355 \begin_inset CommandInset ref
19357 reference "sec:Minipages"
19362 \begin_inset CommandInset ref
19364 reference "sec:Parboxes"
19373 If you rotate this cell by 90
19374 \begin_inset space \thinspace{}
19377 ° the width of the box is the height of the cell.
19379 \begin_inset space ~
19383 \begin_inset CommandInset ref
19385 reference "tab:Table-with-rotated-multi"
19389 is an example for a rotated multiline cell where the box width was set
19391 \begin_inset space \thinspace{}
19397 \begin_layout Standard
19398 \begin_inset Float table
19403 \begin_layout Plain Layout
19404 \begin_inset Caption
19406 \begin_layout Plain Layout
19407 \begin_inset CommandInset label
19409 name "tab:Table-with-rotated-multi"
19413 Table with rotated multiline cell.
19421 \begin_layout Plain Layout
19424 \begin_inset Tabular
19425 <lyxtabular version="3" rows="2" columns="3">
19426 <features tabularvalignment="middle">
19427 <column alignment="center" valignment="top" width="0">
19428 <column alignment="center" valignment="top" width="0pt">
19429 <column alignment="center" valignment="top" width="0">
19431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19434 \begin_layout Plain Layout
19440 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="true" usebox="none">
19443 \begin_layout Plain Layout
19444 \begin_inset Box Frameless
19454 height_special "totalheight"
19457 \begin_layout Plain Layout
19459 \begin_inset Newline newline
19472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19475 \begin_layout Plain Layout
19483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19486 \begin_layout Plain Layout
19492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19495 \begin_layout Plain Layout
19501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19504 \begin_layout Plain Layout
19523 \begin_layout Section
19524 Table Width Calculation
19525 \begin_inset CommandInset label
19527 name "sec:Table-Width-Calculation"
19534 \begin_layout Standard
19535 For wide tables it is sometimes difficult to assure that the table does
19536 not protrude over the page margin.
19537 Setting a fixed width for every column of the table is the solution, but
19538 what amount of space is needed for each column?
19541 \begin_layout Standard
19543 \begin_inset Formula $W_{\mathrm{table}}$
19546 can be calculated: Every column has the width of the specified column width
19548 \begin_inset Formula $W_{\mathrm{column}}$
19551 (that the content of the column can consume) plus two times the separation
19552 between the column content and the column border (LaTeX length
19559 \begin_inset space \thinspace{}
19562 pt) plus the width of a border line (LaTeX length
19569 \begin_inset space \thinspace{}
19573 \begin_inset Formula $n$
19577 \begin_inset space ~
19580 columns have the same width, the table width is
19581 \begin_inset Formula
19583 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19591 \begin_layout Standard
19592 The available width for a table is the space between the page margins or
19593 the width of a text column (for a two-column document) (LaTeX length
19600 If all table columns should have the same width and
19601 \begin_inset Formula $W_{\mathrm{table}}$
19605 \begin_inset space \thinspace{}
19611 \begin_inset Formula $W_{\mathrm{column}}$
19614 can easily be calculated.
19617 \begin_layout Standard
19618 To be able to perform calculations you need to load the LaTeX-package
19623 \begin_inset Index idx
19626 \begin_layout Plain Layout
19627 LaTeX-packages ! calc
19632 in the document preamble.
19633 To set the width in the table dialog you have to use the field
19638 The command scheme for this field is the same that is explained in section
19639 \begin_inset space ~
19643 \begin_inset CommandInset ref
19645 reference "sub:Multicolumn-Calculations"
19651 \begin_inset space \thinspace{}
19654 columns with an uniform width and centered text, enter there for each column
19658 \begin_layout Standard
19665 columnwidth-62.4pt)/5}
19668 \begin_layout Standard
19670 \begin_inset space \thinspace{}
19673 columns where 2 should have 0.75
19674 \begin_inset space ~
19677 times the width than the 3 others, the calculation is
19678 \begin_inset Formula
19680 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19681 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19682 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19683 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19691 \begin_layout Standard
19692 In the table therefore the command
19695 \begin_layout Standard
19702 columnwidth-62.4pt)/
19707 \begin_layout Standard
19708 is used for the wider columns and
19711 \begin_layout Standard
19718 columnwidth-62.4pt)/
19725 \begin_layout Standard
19726 for the smaller ones:
19729 \begin_layout Standard
19730 \begin_inset Tabular
19731 <lyxtabular version="3" rows="2" columns="5">
19732 <features tabularvalignment="middle">
19733 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19734 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19735 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19736 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19737 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19742 \begin_layout Plain Layout
19748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19751 \begin_layout Plain Layout
19757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19760 \begin_layout Plain Layout
19766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19769 \begin_layout Plain Layout
19775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19778 \begin_layout Plain Layout
19786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19789 \begin_layout Plain Layout
19790 111111 1111111 111111 111111111 11111 11111 1111
19795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19798 \begin_layout Plain Layout
19804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19807 \begin_layout Plain Layout
19808 2222 22222 222222 222222222 2222222 22 22222
19813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19816 \begin_layout Plain Layout
19822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19825 \begin_layout Plain Layout
19826 333333 333333 333333 33333 3333333 333
19839 \begin_layout Section
19840 Table Customization
19841 \begin_inset Index idx
19844 \begin_layout Plain Layout
19845 Table Customization
19851 \begin_inset Index idx
19854 \begin_layout Plain Layout
19855 Table ! Customization
19863 \begin_layout Subsection
19865 \begin_inset CommandInset label
19867 name "sub:Row-Spacing"
19872 \begin_inset Index idx
19875 \begin_layout Plain Layout
19876 Table Customization ! Row Spacing
19884 \begin_layout Standard
19885 You can add vertical space to table rows in the
19889 tab of the table dialog.
19890 You find there three possibilities:
19893 \begin_layout Description
19895 \begin_inset space ~
19899 \begin_inset space ~
19902 row will add space above the characters of the table row.
19903 If the table is a formal table
19907 \begin_layout Plain Layout
19908 Formal tables are explained in section
19909 \begin_inset space ~
19913 \begin_inset CommandInset ref
19915 reference "sec:Formal-Tables"
19924 LyX will insert as default 0.5
19925 \begin_inset space \thinspace{}
19929 For normal tables the inserted space will unfortunately destroy the vertical
19930 table lines as in the following table:
19931 \begin_inset VSpace medskip
19935 \begin_inset Newline newline
19939 \begin_inset space \hspace*{}
19944 \begin_inset space \hfill{}
19948 \begin_inset Tabular
19949 <lyxtabular version="3" rows="3" columns="1">
19950 <features tabularvalignment="middle">
19951 <column alignment="center" valignment="top" width="0">
19953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19956 \begin_layout Plain Layout
19963 <row topspace="3mm">
19964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19967 \begin_layout Plain Layout
19969 \begin_inset space \thinspace{}
19972 mm space top of row
19979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19982 \begin_layout Plain Layout
19994 \begin_inset space \hfill{}
19998 \begin_inset space \hspace*{}
20003 \begin_inset VSpace medskip
20007 \begin_inset Newline newline
20010 So inserting space in the top of row for normal tables is only useful when
20011 you don't have vertical lines.
20014 \begin_layout Description
20016 \begin_inset space ~
20020 \begin_inset space ~
20023 row will add space below the characters of the table row.
20024 If the table is a formal table LyX will insert as default 0.5
20025 \begin_inset space \thinspace{}
20028 em space, for normal tables the default size is 2
20029 \begin_inset space \thinspace{}
20035 \begin_layout Description
20037 \begin_inset space ~
20040 rows adds space between the current and the following row.
20041 If the table is a formal table LyX will insert as default 0.5
20042 \begin_inset space \thinspace{}
20046 For normal tables the inserted space will unfortunately destroy the vertical
20047 table lines as in the following table:
20048 \begin_inset VSpace medskip
20052 \begin_inset Newline newline
20056 \begin_inset space \hspace*{}
20061 \begin_inset space \hfill{}
20065 \begin_inset Tabular
20066 <lyxtabular version="3" rows="3" columns="1">
20067 <features tabularvalignment="middle">
20068 <column alignment="center" valignment="top" width="0">
20070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20073 \begin_layout Plain Layout
20080 <row interlinespace="3mm">
20081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20084 \begin_layout Plain Layout
20085 \begin_inset Formula $\downarrow$
20089 \begin_inset space \thinspace{}
20092 mm space between row
20093 \begin_inset Formula $\downarrow$
20103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20106 \begin_layout Plain Layout
20107 \begin_inset Formula $\uparrow$
20111 \begin_inset space \thinspace{}
20114 mm space between row
20115 \begin_inset Formula $\uparrow$
20129 \begin_inset space \hfill{}
20133 \begin_inset space \hspace*{}
20138 \begin_inset VSpace medskip
20142 \begin_inset Newline newline
20145 So inserting space between rows for normal tables is only useful when you
20146 don't have vertical lines.
20149 \begin_layout Standard
20150 \begin_inset VSpace bigskip
20153 When you want to add extra height to all cells of all tables, you can do
20154 this with the following preamble lines:
20157 \begin_layout Standard
20162 @ifundefined{extrarowheight}
20163 \begin_inset Newline newline
20167 \begin_inset Phantom HPhantom
20170 \begin_layout Plain Layout
20173 \begin_inset space ~
20183 usepackage{array}}{}
20184 \begin_inset Newline newline
20191 extrarowheight}{height}
20194 \begin_layout Standard
20195 But this has the disadvantage that the cell texts are no longer exactly
20196 vertically centered.
20201 will be loaded automatically by LyX when you use self defined table formats.
20202 To avoid that it being loaded twice the command
20208 is used in the above command.)
20211 \begin_layout Standard
20212 If you are using font sizes larger than the normal size, the table borders
20213 are often too close to the letters.
20214 This can be corrected by inserting the command
20220 in TeX-Code at the beginning of a table row.
20222 \begin_inset space ~
20226 \begin_inset CommandInset ref
20228 reference "tab:Vertical-alignment-of"
20232 illustrates the effect.
20235 \begin_layout Standard
20237 \begin_inset Float table
20243 \begin_layout Plain Layout
20244 \begin_inset Caption
20246 \begin_layout Plain Layout
20247 \begin_inset CommandInset label
20249 name "tab:Vertical-alignment-of"
20253 Vertical alignment of text with large font sizes.
20261 \begin_layout Plain Layout
20262 \begin_inset space \hfill{}
20266 \begin_inset Float table
20271 \begin_layout Plain Layout
20272 \begin_inset Caption
20274 \begin_layout Plain Layout
20283 \begin_layout Plain Layout
20286 \begin_inset Tabular
20287 <lyxtabular version="3" rows="6" columns="1">
20288 <features tabularvalignment="middle">
20289 <column alignment="left" valignment="top" width="0">
20291 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20294 \begin_layout Plain Layout
20302 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20305 \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" bottomline="true" leftline="true" rightline="true" usebox="none">
20357 \begin_layout Plain Layout
20376 \begin_inset space \hfill{}
20380 \begin_inset Float table
20385 \begin_layout Plain Layout
20386 \begin_inset Caption
20388 \begin_layout Plain Layout
20389 Table using the command
20403 \begin_layout Plain Layout
20406 \begin_inset Tabular
20407 <lyxtabular version="3" rows="6" columns="1">
20408 <features tabularvalignment="middle">
20409 <column alignment="left" valignment="top" width="0">
20411 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20414 \begin_layout Plain Layout
20422 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20425 \begin_layout Plain Layout
20431 \begin_layout Plain Layout
20447 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20450 \begin_layout Plain Layout
20456 \begin_layout Plain Layout
20472 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20475 \begin_layout Plain Layout
20481 \begin_layout Plain Layout
20497 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20500 \begin_layout Plain Layout
20506 \begin_layout Plain Layout
20522 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20525 \begin_layout Plain Layout
20531 \begin_layout Plain Layout
20558 \begin_inset space \hfill{}
20569 \begin_layout Subsection
20570 Special Cell Alignment
20571 \begin_inset CommandInset label
20573 name "sub:Special-Cell-Alignment"
20578 \begin_inset Index idx
20581 \begin_layout Plain Layout
20582 Table Customization ! Special Cell Alignment
20590 \begin_layout Standard
20591 Sometimes it looks better when the cell entries of a column are aligned
20592 with a special character, e.
20593 \begin_inset space \thinspace{}
20597 \begin_inset space \space{}
20600 with the decimal separator as in Table
20601 \begin_inset space ~
20605 \begin_inset CommandInset ref
20607 reference "tab:Table-cells-align"
20612 This alignment is achieved by setting the cursor into the column and then
20613 either pressing the toolbar button
20616 arg "inset-modify tabular align-decimal"
20619 or setting the alignment in the table settings to
20622 \begin_inset space ~
20626 \begin_inset space ~
20632 The alignment character can be a character of your choice and is specified
20633 in the table settings.
20636 \begin_layout Standard
20637 \begin_inset Float table
20643 \begin_layout Plain Layout
20644 \begin_inset Caption
20646 \begin_layout Plain Layout
20647 \begin_inset CommandInset label
20649 name "tab:Table-cells-align"
20653 Table cells of a column aligned with the decimal separator.
20661 \begin_layout Plain Layout
20663 \begin_inset Tabular
20664 <lyxtabular version="3" rows="4" columns="1">
20665 <features booktabs="true" tabularvalignment="middle">
20666 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20668 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20671 \begin_layout Plain Layout
20679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20682 \begin_layout Plain Layout
20690 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20693 \begin_layout Plain Layout
20701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20704 \begin_layout Plain Layout
20723 \begin_layout Standard
20724 \begin_inset Float table
20730 \begin_layout Plain Layout
20731 \begin_inset Caption
20733 \begin_layout Plain Layout
20734 \begin_inset CommandInset label
20736 name "tab:Table-align-operator"
20740 Table cells of a column aligned with the operators.
20748 \begin_layout Plain Layout
20750 \begin_inset Tabular
20751 <lyxtabular version="3" rows="4" columns="2">
20752 <features booktabs="true" tabularvalignment="middle">
20753 <column alignment="right" valignment="top" width="0pt">
20754 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20756 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20759 \begin_layout Plain Layout
20765 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20768 \begin_layout Plain Layout
20776 <cell alignment="center" valignment="top" usebox="none">
20779 \begin_layout Plain Layout
20780 \begin_inset Formula $12\,+$
20788 <cell alignment="center" valignment="top" usebox="none">
20791 \begin_layout Plain Layout
20792 \begin_inset Formula $\,6$
20802 <cell alignment="center" valignment="top" usebox="none">
20805 \begin_layout Plain Layout
20806 \begin_inset Formula $0\,-$
20814 <cell alignment="center" valignment="top" usebox="none">
20817 \begin_layout Plain Layout
20818 \begin_inset Formula $\,68$
20828 <cell alignment="center" valignment="top" usebox="none">
20831 \begin_layout Plain Layout
20832 \begin_inset Formula $-123\,/$
20840 <cell alignment="center" valignment="top" usebox="none">
20843 \begin_layout Plain Layout
20844 \begin_inset Formula $\,0$
20865 \begin_layout Standard
20866 For alignments at characters in formulas this method does not work because
20867 the field to specify the alignment character does not allow formulas.
20868 In this case one need to use the method from Table
20869 \begin_inset space ~
20873 \begin_inset CommandInset ref
20875 reference "tab:Table-align-operator"
20880 This table was created with a 4×2 table.
20881 The heading is a centered multicolumn.
20882 The first column is right-aligned and contains the first part including
20884 The second column is left aligned and contains the rest.
20885 A small space was added at the beginning of each cell of the second column
20886 to get the space that is usually around operators.
20887 To omit the space that is normally between two table columns, the following
20888 LaTeX-argument was used for the second column:
20891 \begin_layout Standard
20897 \begin_layout Standard
20899 \begin_inset space ~
20903 \begin_inset CommandInset ref
20905 reference "tab:Several-table-cell"
20909 shows some example alignments.
20910 For the alignment with the relation sign, a small space was added like
20911 for the second column of Table
20912 \begin_inset space ~
20916 \begin_inset CommandInset ref
20918 reference "tab:Table-align-operator"
20925 \begin_layout Standard
20926 \begin_inset Float table
20932 \begin_layout Plain Layout
20933 \begin_inset Caption
20935 \begin_layout Plain Layout
20936 \begin_inset CommandInset label
20938 name "tab:Several-table-cell"
20942 Several table cell alignments.
20950 \begin_layout Plain Layout
20952 \begin_inset Tabular
20953 <lyxtabular version="3" rows="4" columns="6">
20954 <features tabularvalignment="middle">
20955 <column alignment="right" valignment="top" width="0">
20956 <column alignment="left" valignment="top" width="0" special="@{}l">
20957 <column alignment="right" valignment="top" width="0">
20958 <column alignment="left" valignment="top" width="0" special="@{}l">
20959 <column alignment="right" valignment="top" width="0">
20960 <column alignment="left" valignment="top" width="0" special="@{}l">
20962 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20965 \begin_layout Plain Layout
20971 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20974 \begin_layout Plain Layout
20980 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20983 \begin_layout Plain Layout
20989 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20992 \begin_layout Plain Layout
20998 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21001 \begin_layout Plain Layout
21007 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21010 \begin_layout Plain Layout
21018 <cell alignment="center" valignment="top" usebox="none">
21021 \begin_layout Plain Layout
21027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21030 \begin_layout Plain Layout
21032 \begin_inset space \thinspace{}
21040 <cell alignment="center" valignment="top" usebox="none">
21043 \begin_layout Plain Layout
21044 \begin_inset Formula $10\cdot$
21052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21055 \begin_layout Plain Layout
21056 \begin_inset Formula $10^{\mbox{-}17}$
21064 <cell alignment="center" valignment="top" usebox="none">
21067 \begin_layout Plain Layout
21068 \begin_inset Formula $\Gamma(t)\propto$
21076 <cell alignment="center" valignment="top" usebox="none">
21079 \begin_layout Plain Layout
21080 \begin_inset Formula $\:\Upsilon(t)$
21090 <cell alignment="center" valignment="top" usebox="none">
21093 \begin_layout Plain Layout
21099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21102 \begin_layout Plain Layout
21104 \begin_inset space \thinspace{}
21112 <cell alignment="center" valignment="top" usebox="none">
21115 \begin_layout Plain Layout
21116 \begin_inset Formula $5.78\cdot$
21124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21127 \begin_layout Plain Layout
21128 \begin_inset Formula $10^{7}$
21136 <cell alignment="center" valignment="top" usebox="none">
21139 \begin_layout Plain Layout
21140 \begin_inset Formula $A\ne$
21148 <cell alignment="center" valignment="top" usebox="none">
21151 \begin_layout Plain Layout
21152 \begin_inset Formula $\: B_{\mathrm{red}}$
21162 <cell alignment="center" valignment="top" usebox="none">
21165 \begin_layout Plain Layout
21171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21174 \begin_layout Plain Layout
21176 \begin_inset space \thinspace{}
21184 <cell alignment="center" valignment="top" usebox="none">
21187 \begin_layout Plain Layout
21189 \begin_inset Formula $33.5\cdot$
21197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21200 \begin_layout Plain Layout
21201 \begin_inset Formula $10^{4}$
21209 <cell alignment="center" valignment="top" usebox="none">
21212 \begin_layout Plain Layout
21213 \begin_inset Formula $\sin(\alpha)\ge$
21221 <cell alignment="center" valignment="top" usebox="none">
21224 \begin_layout Plain Layout
21225 \begin_inset Formula $\:\sin(\beta)$
21246 \begin_layout Subsection
21247 Customized Cell/Column Format
21248 \begin_inset CommandInset label
21250 name "sub:Customized-Format"
21255 \begin_inset Index idx
21258 \begin_layout Plain Layout
21259 Table Customization ! Cell/Column Format
21267 \begin_layout Standard
21268 Calculating the required width for normal columns as described in section
21269 \begin_inset space ~
21273 \begin_inset CommandInset ref
21275 reference "sec:Table-Width-Calculation"
21279 or for spanned columns as described in section
21280 \begin_inset space ~
21284 \begin_inset CommandInset ref
21286 reference "sub:Multicolumn-Calculations"
21290 is very annoying if you have several tables where a calculation is necessary.
21291 To make life easier, you can define a cell/column format in the preamble,
21292 that can be used in all tables of the document.
21293 The format is defined with the command
21296 \begin_layout Standard
21301 newcolumntype{name of format}[number of arguments]{commands}
21304 \begin_layout Standard
21305 The format name may only consist of one letter.
21330 are predefined and cannot be used.
21331 But all letters are allowed as capitals.
21334 \begin_layout Standard
21335 \begin_inset VSpace medskip
21341 \begin_layout Standard
21342 For vertically and horizontally centered multicolumn cells with a fixed
21343 width you can define the cell format
21346 \begin_layout Standard
21351 newcolumntype{M}[1]{>{
21358 \begin_layout Standard
21365 avoids the problem of hyphenating the first word, as described in section
21366 \begin_inset space ~
21370 \begin_inset CommandInset ref
21372 reference "sub:Multiple-Lines-in"
21377 Now you can simply enter
21380 \begin_layout Standard
21386 \begin_layout Standard
21391 in the table dialog to create a multicolumn.
21394 \begin_layout Standard
21395 \begin_inset VSpace bigskip
21401 \begin_layout Standard
21402 For cells spanned by a multicolumn cell, you can define the format
21405 \begin_layout Standard
21410 newcolumntype{S}[2]{>{
21415 \begin_inset Newline newline
21419 \begin_inset Phantom HPhantom
21422 \begin_layout Plain Layout
21436 arrayrulewidth)*(1-#2))/#2}}
21439 \begin_layout Standard
21440 This format uses equation
21441 \begin_inset CommandInset ref
21447 to calculate the required width so that each spanned cell has the same
21451 \begin_layout Standard
21455 \begin_layout Standard
21458 S{width of multicolumn cell}{number of spanned columns}
21461 \begin_layout Standard
21462 as LaTeX-argument of the column.
21465 \begin_layout Standard
21466 \begin_inset VSpace bigskip
21472 \begin_layout Standard
21473 For colored columns, you can define
21476 \begin_layout Standard
21481 newcolumntype{K}[1]{>{
21488 \begin_layout Standard
21490 \begin_inset Quotes eld
21494 \begin_inset Quotes erd
21497 at the end creates a column with a flexible width whose text is horizontally
21502 \begin_layout Standard
21508 \begin_layout Standard
21512 \begin_layout Standard
21513 \begin_inset VSpace bigskip
21519 \begin_layout Standard
21521 \begin_inset space ~
21525 \begin_inset CommandInset ref
21527 reference "tab:Table-using-user-defined"
21531 use the LaTeX-arguments
21534 \begin_layout Standard
21540 \begin_layout Standard
21541 for the first column and the multicolumn,
21544 \begin_layout Standard
21550 \begin_layout Standard
21551 for the last column, and
21554 \begin_layout Standard
21560 \begin_layout Standard
21561 for the cells in the second column.
21564 \begin_layout Standard
21565 \begin_inset Float table
21571 \begin_layout Plain Layout
21572 \begin_inset Caption
21574 \begin_layout Plain Layout
21575 \begin_inset CommandInset label
21577 name "tab:Table-using-user-defined"
21581 Table using user-defined table formats
21589 \begin_layout Plain Layout
21591 \begin_inset Tabular
21592 <lyxtabular version="3" rows="3" columns="4">
21593 <features tabularvalignment="middle">
21594 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21595 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
21596 <column alignment="center" valignment="middle" width="0">
21597 <column alignment="center" valignment="middle" width="0" special="K{red}">
21599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21602 \begin_layout Plain Layout
21603 verylongtablecellword
21608 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21611 \begin_layout Plain Layout
21612 multiple lines multicolumn
21617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21620 \begin_layout Plain Layout
21626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21629 \begin_layout Plain Layout
21637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21640 \begin_layout Plain Layout
21646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21649 \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" rightline="true" usebox="none">
21667 \begin_layout Plain Layout
21675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21678 \begin_layout Plain Layout
21684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21687 \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" rightline="true" usebox="none">
21705 \begin_layout Plain Layout
21724 \begin_layout Subsection
21726 \begin_inset CommandInset label
21728 name "sub:Line-Thickness"
21733 \begin_inset Index idx
21736 \begin_layout Plain Layout
21737 Table Customization ! Line Thickness
21745 \begin_layout Standard
21746 The line thickness for all lines in a table can be adjusted with the length
21754 To set for example a line thickness of 1.5
21755 \begin_inset space \thinspace{}
21759 \begin_inset space ~
21763 \begin_inset CommandInset ref
21765 reference "tab:Table-with-1.5"
21769 , insert the command
21772 \begin_layout Standard
21779 arrayrulewidth}{1.5pt}
21782 \begin_layout Standard
21783 in TeX-Code before the table or table float.
21784 The changed thickness is valid for all subsequent tables.
21785 To use the default value again, set
21792 \begin_inset space \thinspace{}
21795 pt in TeX-Code after the table or table float.
21798 \begin_layout Standard
21802 \begin_layout Plain Layout
21808 arrayrulewidth}{1.5pt}
21814 \begin_inset Float table
21819 \begin_layout Plain Layout
21820 \begin_inset Caption
21822 \begin_layout Plain Layout
21823 \begin_inset CommandInset label
21825 name "tab:Table-with-1.5"
21830 \begin_inset space \thinspace{}
21841 \begin_layout Plain Layout
21843 \begin_inset Tabular
21844 <lyxtabular version="3" rows="3" columns="3">
21845 <features tabularvalignment="middle">
21846 <column alignment="center" valignment="top" width="0">
21847 <column alignment="center" valignment="top" width="0">
21848 <column alignment="center" valignment="top" width="0">
21850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21853 \begin_layout Plain Layout
21859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21862 \begin_layout Plain Layout
21868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21871 \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" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21900 \begin_layout Plain Layout
21908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21911 \begin_layout Plain Layout
21917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21920 \begin_layout Plain Layout
21926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21929 \begin_layout Plain Layout
21949 \begin_layout Plain Layout
21955 arrayrulewidth}{0.4pt}
21963 \begin_layout Standard
21964 \begin_inset VSpace bigskip
21967 To set the line thickness to 1.5
21968 \begin_inset space \thinspace{}
21971 pt only for horizontal lines, as in Table
21972 \begin_inset space ~
21976 \begin_inset CommandInset ref
21978 reference "tab:Table-with-horizontal"
21982 , insert these commands in TeX-Code before the table or table float:
21985 \begin_layout Standard
21995 \begin_inset Newline newline
22003 \begin_inset Newline newline
22012 arrayrulewidth 1.5pt}
22013 \begin_inset Newline newline
22024 arrayrulewidth 0.4pt}}
22027 \begin_layout Standard
22028 To return to the default line thickness, insert this command in TeX-Code
22029 after the table or table float:
22032 \begin_layout Standard
22044 \begin_layout Standard
22048 \begin_layout Plain Layout
22059 \begin_layout Plain Layout
22068 \begin_layout Plain Layout
22076 arrayrulewidth 1.5pt}
22079 \begin_layout Plain Layout
22089 arrayrulewidth 0.4pt}}
22095 \begin_inset Float table
22100 \begin_layout Plain Layout
22101 \begin_inset Caption
22103 \begin_layout Plain Layout
22104 \begin_inset CommandInset label
22106 name "tab:Table-with-horizontal"
22111 \begin_inset space \thinspace{}
22114 pt thick horizontal lines
22122 \begin_layout Plain Layout
22124 \begin_inset Tabular
22125 <lyxtabular version="3" rows="3" columns="3">
22126 <features tabularvalignment="middle">
22127 <column alignment="center" valignment="top" width="0">
22128 <column alignment="center" valignment="top" width="0">
22129 <column alignment="center" valignment="top" width="0">
22131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22134 \begin_layout Plain Layout
22140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22143 \begin_layout Plain Layout
22149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22152 \begin_layout Plain Layout
22160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22163 \begin_layout Plain Layout
22169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22172 \begin_layout Plain Layout
22178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22181 \begin_layout Plain Layout
22189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22192 \begin_layout Plain Layout
22198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22201 \begin_layout Plain Layout
22207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22210 \begin_layout Plain Layout
22230 \begin_layout Plain Layout
22246 \begin_layout Standard
22247 \begin_inset VSpace bigskip
22250 To set the line thickness to 1.5
22251 \begin_inset space \thinspace{}
22254 pt only for vertical lines, create the following column format in the document
22255 preamble, according to the description in section
22256 \begin_inset space ~
22260 \begin_inset CommandInset ref
22262 reference "sub:Customized-Format"
22269 \begin_layout Standard
22274 newcolumntype{V}{!{
22276 vrule width 1.5pt}}
22279 \begin_layout Standard
22281 \begin_inset space ~
22285 \begin_inset CommandInset ref
22287 reference "tab:Table-with-vertical"
22294 \begin_layout Standard
22300 \begin_layout Standard
22301 was used for the last column and
22304 \begin_layout Standard
22310 \begin_layout Standard
22311 for the other columns.
22314 \begin_layout Standard
22315 \begin_inset Float table
22320 \begin_layout Plain Layout
22321 \begin_inset Caption
22323 \begin_layout Plain Layout
22324 \begin_inset CommandInset label
22326 name "tab:Table-with-vertical"
22331 \begin_inset space \thinspace{}
22334 pt thick vertical lines
22342 \begin_layout Plain Layout
22344 \begin_inset Tabular
22345 <lyxtabular version="3" rows="3" columns="3">
22346 <features tabularvalignment="middle">
22347 <column alignment="center" valignment="top" width="0" special="Vc">
22348 <column alignment="center" valignment="top" width="0" special="Vc">
22349 <column alignment="center" valignment="top" width="0" special="VcV">
22351 <cell alignment="center" valignment="top" topline="true" usebox="none">
22354 \begin_layout Plain Layout
22360 <cell alignment="center" valignment="top" topline="true" usebox="none">
22363 \begin_layout Plain Layout
22369 <cell alignment="center" valignment="top" topline="true" usebox="none">
22372 \begin_layout Plain Layout
22380 <cell alignment="center" valignment="top" topline="true" usebox="none">
22383 \begin_layout Plain Layout
22389 <cell alignment="center" valignment="top" topline="true" usebox="none">
22392 \begin_layout Plain Layout
22398 <cell alignment="center" valignment="top" topline="true" usebox="none">
22401 \begin_layout Plain Layout
22409 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22412 \begin_layout Plain Layout
22418 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22421 \begin_layout Plain Layout
22427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22430 \begin_layout Plain Layout
22449 \begin_layout Subsection
22451 \begin_inset Index idx
22454 \begin_layout Plain Layout
22455 Table Customization ! Dashed Lines
22463 \begin_layout Standard
22467 \begin_layout Plain Layout
22477 \begin_inset Note Note
22480 \begin_layout Plain Layout
22481 The following section will only be displayed when the LaTeX-package
22493 \begin_layout Standard
22494 \begin_inset Float table
22500 \begin_layout Plain Layout
22501 \begin_inset Caption
22503 \begin_layout Plain Layout
22504 \begin_inset CommandInset label
22506 name "tab:Table-with-dashed"
22510 Table with dashed lines
22518 \begin_layout Plain Layout
22520 \begin_inset Tabular
22521 <lyxtabular version="3" rows="5" columns="5">
22522 <features tabularvalignment="middle">
22523 <column alignment="center" valignment="top" width="0">
22524 <column alignment="center" valignment="top" width="0">
22525 <column alignment="center" valignment="top" width="0" special=":c">
22526 <column alignment="center" valignment="top" width="0">
22527 <column alignment="center" valignment="top" width="0">
22529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22532 \begin_layout Plain Layout
22538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22541 \begin_layout Plain Layout
22547 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22550 \begin_layout Plain Layout
22556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22559 \begin_layout Plain Layout
22565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22568 \begin_layout Plain Layout
22576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22579 \begin_layout Plain Layout
22585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22588 \begin_layout Plain Layout
22594 <cell alignment="center" valignment="top" topline="true" usebox="none">
22597 \begin_layout Plain Layout
22603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22606 \begin_layout Plain Layout
22612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22615 \begin_layout Plain Layout
22623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22626 \begin_layout Plain Layout
22630 \begin_layout Plain Layout
22644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22647 \begin_layout Plain Layout
22653 <cell alignment="center" valignment="top" usebox="none">
22656 \begin_layout Plain Layout
22662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22665 \begin_layout Plain Layout
22671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22674 \begin_layout Plain Layout
22682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22685 \begin_layout Plain Layout
22689 \begin_layout Plain Layout
22703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22706 \begin_layout Plain Layout
22712 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22715 \begin_layout Plain Layout
22721 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22724 \begin_layout Plain Layout
22730 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22733 \begin_layout Plain Layout
22741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22744 \begin_layout Plain Layout
22750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22753 \begin_layout Plain Layout
22759 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22762 \begin_layout Plain Layout
22768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22771 \begin_layout Plain Layout
22777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22780 \begin_layout Plain Layout
22799 \begin_layout Standard
22800 LyX does not natively support dashed lines, so you have to use TeX-Code.
22801 As a prerequisite the LaTeX-package
22806 \begin_inset Index idx
22809 \begin_layout Plain Layout
22810 LaTeX-packages ! arydshln
22815 must be loaded in the document preamble with the command
22818 \begin_layout Standard
22823 usepackage{arydshln}
22826 \begin_layout Standard
22827 To make a vertical line dashed, enter the colon
22828 \begin_inset Quotes eld
22832 \begin_inset Quotes erd
22835 together with the character for the horizontal alignment as LaTeX-argument
22836 in the table cell dialog.
22839 \begin_layout Standard
22840 For a horizontal dashed line add the command
22843 \begin_layout Standard
22851 \begin_layout Standard
22852 in TeX-Code as first element of the first cell in the table row.
22855 \begin_layout Standard
22856 For dashed multicolumn lines use the command
22859 \begin_layout Standard
22864 cdashline{line number
22869 \begin_layout Standard
22870 in TeX-Code as the first element of the first cell in the table row.
22871 If you have for example a multicolumn spanning columns 2 to 4 and you want
22872 to have a dashed line above, add the command
22875 \begin_layout Standard
22883 \begin_layout Standard
22884 as the first element of the first cell in the row of the multicolumn.
22887 \begin_layout Standard
22888 \begin_inset VSpace bigskip
22894 \begin_layout Standard
22896 \begin_inset space ~
22900 \begin_inset CommandInset ref
22902 reference "tab:Table-with-dashed"
22907 \begin_inset Quotes eld
22915 \begin_inset Quotes erd
22918 as LaTeX-argument of the third column.
22919 The TeX-Code command
22925 was inserted in the first cell of the third row and the TeX-Code command
22926 \begin_inset Newline newline
22935 was inserted in the first cell of the fourth row.
22938 \begin_layout Standard
22939 \begin_inset VSpace bigskip
22945 \begin_layout Standard
22946 Tables with dashed lines can also be colored as shown by Table
22947 \begin_inset space ~
22951 \begin_inset CommandInset ref
22953 reference "tab:Colored-table-with"
22960 \begin_layout Standard
22964 \begin_layout Plain Layout
22970 arrayrulewidth}{1pt}
22976 \begin_inset Note Note
22979 \begin_layout Plain Layout
22980 thicker lines for better visualization of the line color
22988 \begin_layout Standard
22992 \begin_layout Plain Layout
22996 dashgapcolor{green}
23002 \begin_inset Note Note
23005 \begin_layout Plain Layout
23006 color gaps between dashes green
23014 \begin_layout Standard
23018 \begin_layout Plain Layout
23029 \begin_layout Plain Layout
23038 \begin_layout Plain Layout
23042 arrayrulecolor{red}
23046 arrayrulecolor{black}}
23052 \begin_inset Note Note
23055 \begin_layout Plain Layout
23056 color horizontal, dashed lines red
23064 \begin_layout Standard
23068 \begin_layout Plain Layout
23079 \begin_layout Plain Layout
23088 \begin_layout Plain Layout
23092 arrayrulecolor{yellow}
23096 arrayrulecolor{black}}
23102 \begin_inset Note Note
23105 \begin_layout Plain Layout
23106 color partial horizontal, dashed lines yellow
23114 \begin_layout Standard
23115 \begin_inset Float table
23121 \begin_layout Plain Layout
23122 \begin_inset Caption
23124 \begin_layout Plain Layout
23125 \begin_inset CommandInset label
23127 name "tab:Colored-table-with"
23131 Colored table with dashed lines
23139 \begin_layout Plain Layout
23141 \begin_inset Tabular
23142 <lyxtabular version="3" rows="5" columns="5">
23143 <features tabularvalignment="middle">
23144 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23145 <column alignment="center" valignment="top" width="0pt">
23146 <column alignment="center" valignment="top" width="0pt" special=":c">
23147 <column alignment="center" valignment="top" width="0">
23148 <column alignment="center" valignment="top" width="0">
23150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23153 \begin_layout Plain Layout
23159 <cell alignment="center" valignment="top" topline="true" usebox="none">
23162 \begin_layout Plain Layout
23168 <cell alignment="center" valignment="top" topline="true" usebox="none">
23171 \begin_layout Plain Layout
23177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23180 \begin_layout Plain Layout
23186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23189 \begin_layout Plain Layout
23197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23200 \begin_layout Plain Layout
23206 <cell alignment="center" valignment="top" topline="true" usebox="none">
23209 \begin_layout Plain Layout
23215 <cell alignment="center" valignment="top" topline="true" usebox="none">
23218 \begin_layout Plain Layout
23224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23227 \begin_layout Plain Layout
23233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23236 \begin_layout Plain Layout
23244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23247 \begin_layout Plain Layout
23251 \begin_layout Plain Layout
23264 \begin_layout Plain Layout
23278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23281 \begin_layout Plain Layout
23287 <cell alignment="center" valignment="top" usebox="none">
23290 \begin_layout Plain Layout
23296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23299 \begin_layout Plain Layout
23305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23308 \begin_layout Plain Layout
23316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23319 \begin_layout Plain Layout
23323 \begin_layout Plain Layout
23337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23340 \begin_layout Plain Layout
23346 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23349 \begin_layout Plain Layout
23355 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23358 \begin_layout Plain Layout
23364 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23367 \begin_layout Plain Layout
23375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23378 \begin_layout Plain Layout
23384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23387 \begin_layout Plain Layout
23393 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23396 \begin_layout Plain Layout
23402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23405 \begin_layout Plain Layout
23411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23414 \begin_layout Plain Layout
23418 \begin_layout Plain Layout
23445 \begin_layout Standard
23449 \begin_layout Plain Layout
23463 \begin_inset Note Note
23466 \begin_layout Plain Layout
23475 \begin_layout Standard
23479 \begin_layout Plain Layout
23493 \begin_inset Note Note
23496 \begin_layout Plain Layout
23505 \begin_layout Standard
23509 \begin_layout Plain Layout
23519 \begin_inset Note Note
23522 \begin_layout Plain Layout
23531 \begin_layout Standard
23535 \begin_layout Plain Layout
23541 arrayrulewidth}{0.4pt}
23547 \begin_inset Note Note
23550 \begin_layout Plain Layout
23559 \begin_layout Standard
23560 The coloring of lines, columns and lines works as decribed in section
23561 \begin_inset space ~
23565 \begin_inset CommandInset ref
23567 reference "sec:Colored-Tables"
23572 Coloring horizontal lines works analogically as described there as well,
23573 one only needs to replace in the commands
23597 ; so one uses the command
23600 \begin_layout Standard
23610 \begin_inset Newline newline
23618 \begin_inset Newline newline
23622 \begin_inset Phantom HPhantom
23625 \begin_layout Plain Layout
23626 \begin_inset space ~
23636 arrayrulecolor{red}
23640 arrayrulecolor{black}}
23643 \begin_layout Standard
23653 \begin_layout Standard
23663 \begin_inset Newline newline
23671 \begin_inset Newline newline
23675 \begin_inset Phantom HPhantom
23678 \begin_layout Plain Layout
23679 \begin_inset space ~
23689 arrayrulecolor{red}
23693 arrayrulecolor{black}}
23696 \begin_layout Standard
23697 To get back the black line color, one needs to insert the following commands
23698 as TeX-Code behind the table:
23701 \begin_layout Standard
23709 \begin_layout Standard
23721 \begin_layout Standard
23729 \begin_layout Standard
23741 \begin_layout Standard
23742 To color the gaps between the dashes the command
23745 \begin_layout Standard
23750 dashgapcolor{color}
23753 \begin_layout Standard
23754 can be used in front of a table as TeX-Code.
23755 color is hereby the name of a defined color.
23759 \begin_layout Standard
23767 \begin_layout Standard
23768 unsets the changes made by
23777 \begin_layout Standard
23778 \begin_inset Note Greyedout
23781 \begin_layout Plain Layout
23787 : If there are multiple commands in a cell, the command of
23791 needs to be the first one in the cell.
23797 \begin_inset space ~
23801 \begin_inset CommandInset ref
23803 reference "tab:Colored-table-with"
23827 \begin_layout Standard
23828 \begin_inset Note Greyedout
23831 \begin_layout Plain Layout
23841 must be loaded in the document preamble before the LaTeX-package
23846 \begin_inset Index idx
23849 \begin_layout Plain Layout
23850 LaTeX-packages ! colortbl
23863 \begin_layout Standard
23867 \begin_layout Plain Layout
23877 \begin_inset Note Note
23880 \begin_layout Plain Layout
23881 The following will be displayed when the LaTeX-package
23893 \begin_layout Standard
23894 You need to install the package
23898 to see the content of this section in the output.
23901 \begin_layout Standard
23905 \begin_layout Plain Layout
23917 \begin_layout Standard
23918 For more information about dashed lines see the documentation of
23923 \begin_inset CommandInset citation
23932 \begin_layout Chapter
23934 \begin_inset CommandInset label
23941 \begin_inset Index idx
23944 \begin_layout Plain Layout
23953 \begin_layout Section
23955 \begin_inset CommandInset label
23957 name "sec:FloatIntroduction"
23962 \begin_inset Index idx
23965 \begin_layout Plain Layout
23966 Floats ! Introduction
23974 \begin_layout Standard
23975 A float is a block of text associated with some sort of label, which doesn't
23976 have a fixed location.
23978 \begin_inset Quotes eld
23982 \begin_inset Quotes erd
23985 forward or backward a page or two, to wherever it fits best.
23993 \begin_inset space ~
23998 are also floats because they can float to the next page when there are
23999 too many notes on the page.
24002 \begin_layout Standard
24003 Floats allow a high quality layout.
24004 Images and tables can be spread evenly among the pages to avoid white space
24005 and pages without text.
24006 As the floating often destroys the context between the text and the image/table
24007 , every float can be referenced in the text.
24008 Floats are therefore numbered.
24009 Referencing is described in section
24010 \begin_inset space ~
24014 \begin_inset CommandInset ref
24016 reference "sec:Referencing-Floats"
24023 \begin_layout Standard
24024 To insert a float, use the menu
24026 Insert\SpecialChar \menuseparator
24032 arg "float-insert figure"
24038 arg "float-insert table"
24046 inset, a box with a label.
24047 The label will automatically be translated to the document language in
24049 After the label you can insert the caption text.
24050 The image or table is inserted above or below the caption in a separate
24051 paragraph within the float.
24052 More about the caption placement is contained in section
24053 \begin_inset space ~
24057 \begin_inset CommandInset ref
24059 reference "sec:Caption-Placement"
24064 To keep your LyX-document readable, you can open and close the float box
24065 by left-clicking on the box label.
24066 A closed float box looks like this:
24067 \begin_inset Graphics
24068 filename clipart/floatQt4.png
24070 scaleBeforeRotation
24074 – a gray button with a red label.
24077 \begin_layout Standard
24078 It is recommended that you insert floats as separate standard paragraphs
24079 to avoid possible LaTeX-errors that can occur when the surrounding text
24080 is specially formatted.
24083 \begin_layout Standard
24084 Existing figures or tables can be put into a float by highlighting them
24085 and then pressing the corresponding toolbar button for a new float.
24088 \begin_layout Section
24092 \begin_layout Standard
24093 Besides figure and table floats that are described in sections
24094 \begin_inset space ~
24098 \begin_inset CommandInset ref
24100 reference "sec:Figure-Floats"
24105 \begin_inset CommandInset ref
24107 reference "sec:Table-Floats"
24111 respectively, LyX offers the float types
24120 The latter are explained in sec.
24121 \begin_inset space \thinspace{}
24125 \begin_inset CommandInset ref
24127 reference "sec:Wrap-Floats"
24134 \begin_layout Subsection
24136 \begin_inset Index idx
24139 \begin_layout Plain Layout
24140 Floats ! Algorithms
24148 \begin_layout Standard
24149 \begin_inset Float algorithm
24155 \begin_layout Plain Layout
24156 \begin_inset Caption
24158 \begin_layout Plain Layout
24159 \begin_inset CommandInset label
24161 name "alg:Example-Algorithm-float"
24165 Example Algorithm float
24173 \begin_layout LyX-Code
24175 \begin_inset Newline newline
24178 Sum:= Sum + A(I); /*comment*/
24179 \begin_inset Newline newline
24183 \begin_inset VSpace -4mm
24194 \begin_layout Standard
24195 This float type is inserted with the menu
24197 Insert\SpecialChar \menuseparator
24198 Float\SpecialChar \menuseparator
24202 It is used for program codes and descriptions of algorithms and can be
24203 seen as an alternative to program code listings that are explained in chapter
24204 \begin_inset space ~
24208 \begin_inset CommandInset ref
24210 reference "cha:Program-Code-Listings"
24215 A possible environment for algorithms is the
24219 , described in LyX's
24225 \begin_inset space ~
24229 \begin_inset CommandInset ref
24231 reference "alg:Example-Algorithm-float"
24235 is an example of an algorithm float where -4
24236 \begin_inset space \thinspace{}
24239 mm vertical space was added at the end of the float to have the bottom rule
24240 exactly below the last text line.
24243 \begin_layout Standard
24244 The float label is not automatically translated into the document language.
24245 If your document is not in English, you have to do this manually by adding
24246 the following line to the document preamble
24251 \begin_layout Standard
24256 floatname{algorithm}{your
24257 \begin_inset space ~
24263 \begin_layout Standard
24267 \begin_inset space ~
24273 \begin_inset Quotes eld
24281 \begin_inset Quotes erd
24287 \begin_layout Standard
24288 To insert the list of algorithms you can use the menu
24290 Insert\SpecialChar \menuseparator
24292 \begin_inset space \thinspace{}
24296 \begin_inset space \thinspace{}
24299 TOC\SpecialChar \menuseparator
24302 when your document has the same language as LyX's menu names.
24303 In other cases use this command in TeX-Code instead:
24306 \begin_layout Standard
24311 listof{algorithm}{your
24312 \begin_inset space ~
24318 \begin_layout Standard
24322 \begin_inset space ~
24328 \begin_inset Quotes eld
24336 \begin_inset Quotes erd
24342 \begin_layout Standard
24343 Algorithm floats are not by default numbered in the scheme
24344 \begin_inset Quotes eld
24348 \begin_inset Quotes erd
24351 as is the case for table and figure floats in many document-classes.
24352 To number algorithm floats in the same scheme, add this command to your
24356 \begin_layout Standard
24361 numberwithin{algorithm}{chapter}
24364 \begin_layout Standard
24365 To be able to use the command
24374 \begin_inset space ~
24379 in the document settings the option
24382 \begin_inset space ~
24386 \begin_inset space ~
24390 \begin_inset space ~
24398 \begin_layout Section
24400 \begin_inset Index idx
24403 \begin_layout Plain Layout
24412 \begin_layout Standard
24413 Floats are usually numbered either independently from the sections the floats
24414 are in, or in the scheme
24415 \begin_inset Quotes eld
24419 \begin_inset Quotes erd
24423 \begin_inset Quotes eld
24427 \begin_inset Quotes erd
24431 This depends on the document class used.
24434 \begin_layout Standard
24435 To change section-independent numbering, you can use this command in the
24439 \begin_layout Standard
24451 \begin_layout Standard
24458 is the command that prints the table number.
24459 For figure floats, the command would be
24472 in the command above prints the table number as a small roman number.
24475 \begin_layout Standard
24476 To change the numbering scheme for example to
24477 \begin_inset Quotes eld
24481 \begin_inset Quotes erd
24484 , use this command in the preamble:
24487 \begin_layout Standard
24492 numberwithin{table}{subsection}
24495 \begin_layout Standard
24496 To be able to use the command
24505 \begin_inset space ~
24510 in the document settings the option
24513 \begin_inset space ~
24517 \begin_inset space ~
24521 \begin_inset space ~
24529 \begin_layout Standard
24530 Please also have a look at section
24531 \begin_inset space ~
24535 \begin_inset CommandInset ref
24537 reference "sub:Footnote-Numbering"
24541 for the details and important notes about the numbering commands.
24544 \begin_layout Section
24546 \begin_inset CommandInset label
24548 name "sec:Referencing-Floats"
24553 \begin_inset Index idx
24556 \begin_layout Plain Layout
24557 Floats ! References
24563 \begin_inset Index idx
24566 \begin_layout Plain Layout
24567 References ! to Floats
24575 \begin_layout Standard
24576 To reference a float, insert a label into its caption using the menu
24578 Insert\SpecialChar \menuseparator
24581 or the toolbar button
24588 A grey label box like this one:
24589 \begin_inset Graphics
24590 filename clipart/labelQt4.png
24592 scaleBeforeRotation
24596 will be inserted and the label window pops up asking for the label text.
24597 LyX offers as text the first words of the caption with a prefix.
24598 The prefix depends on the float type, e.
24599 \begin_inset space \thinspace{}
24603 \begin_inset space \space{}
24606 for figure floats the prefix will be "
24613 \begin_layout Standard
24614 The label is used as anchor and name for the reference.
24615 You can refer to the label using the menu
24617 Insert\SpecialChar \menuseparator
24620 or the toolbar button
24623 arg "dialog-show-new-inset ref"
24627 The cross-reference window appears showing all labels of the document.
24628 If you have multiple LyX-documents opened, choose the one you are working
24629 on from the drop-list at the top of the dialog.
24630 You can now sort the labels alphabetically and then choose one.
24631 A grey cross-reference box like this one:
24632 \begin_inset Graphics
24633 filename clipart/referenceQt4.png
24635 scaleBeforeRotation
24640 At the position of the cross-reference box the float number will appear
24644 \begin_layout Standard
24645 It is recommended that you use a protected space between the cross-reference
24646 name and its number to avoid line breaks between them.
24647 If a cross-reference refers to a non-existing label, you will see two question
24648 marks in the output instead of the reference.
24651 \begin_layout Standard
24652 You can change labels at any time by clicking on the label box.
24653 References to the changed label will automatically update their links to
24654 the new label text.
24657 \begin_layout Standard
24661 \begin_inset space ~
24665 \begin_inset space ~
24670 in the cross-reference window sets the cursor before the referred label.
24671 The button text changes then to Go
24672 \begin_inset space ~
24675 Back and you can use it to set the cursor back to the cross-reference.
24678 \begin_layout Subsection
24679 Cross-Reference Formats
24680 \begin_inset CommandInset label
24682 name "sub:Cross-Reference-Formats"
24687 \begin_inset Index idx
24690 \begin_layout Plain Layout
24691 References ! Formats
24699 \begin_layout Standard
24700 There are six varieties of cross-references:
24703 \begin_layout Description
24704 <reference>: prints the float number, this is the default:
24705 \begin_inset CommandInset ref
24707 reference "fig:Two-distorted-images"
24714 \begin_layout Description
24715 (<reference>): prints the float number within two parentheses, this is the
24716 style normally used to reference formulas, especially when the reference
24718 \begin_inset Quotes eld
24722 \begin_inset Quotes erd
24726 \begin_inset CommandInset ref
24735 \begin_layout Description
24736 <page>: prints the page number: Page
24737 \begin_inset space ~
24741 \begin_inset CommandInset ref
24742 LatexCommand pageref
24743 reference "fig:Two-distorted-images"
24750 \begin_layout Description
24752 \begin_inset space ~
24756 \begin_inset space ~
24759 <page>: prints the text "on page" and the page number:
24760 \begin_inset CommandInset ref
24761 LatexCommand vpageref
24762 reference "fig:Two-distorted-images"
24769 \begin_layout Description
24771 \begin_inset space ~
24775 \begin_inset space ~
24779 \begin_inset space ~
24782 <page>: prints the float number, the text "on page", and the page number:
24784 \begin_inset CommandInset ref
24786 reference "fig:Two-distorted-images"
24793 \begin_layout Description
24795 \begin_inset space ~
24798 reference: prints a self-defined cross-reference format.
24799 \begin_inset Newline newline
24803 \begin_inset Note Greyedout
24806 \begin_layout Plain Layout
24811 This feature is only available when you have the LaTeX-package
24820 \begin_inset Index idx
24823 \begin_layout Plain Layout
24824 LaTeX-packages ! prettyref
24830 \begin_inset Index idx
24833 \begin_layout Plain Layout
24834 LaTeX-packages ! refstyle
24845 \begin_inset Newline newline
24848 You can select which LaTeX-package should be used for this feature by setting
24851 Use refstyle (not prettyref) for cross-references
24855 Document\SpecialChar \menuseparator
24856 Settings\SpecialChar \menuseparator
24860 The format is specified by adding the command
24872 (refstyle) to the preamble of the document.
24873 For example redefining all references to figures (which have the label
24875 \begin_inset Quotes eld
24883 \begin_inset Quotes erd
24886 ) can be done with this command
24887 \begin_inset Newline newline
24894 newref{fig}{refcmd={Image on page
24899 \begin_inset Newline newline
24902 For more information about the format, have a look at the package documentations
24904 \begin_inset CommandInset citation
24906 key "prettyref,refstyle"
24913 \begin_layout Description
24915 \begin_inset space ~
24918 reference: prints the caption of the reference:
24919 \begin_inset CommandInset ref
24920 LatexCommand nameref
24921 reference "fig:Two-distorted-images"
24928 \begin_layout Standard
24933 will not print the page number if the label is on the previous, the same,
24936 \begin_inset space \thinspace{}
24940 \begin_inset space \space{}
24944 \begin_inset Quotes eld
24952 \begin_inset Quotes erd
24958 <reference> on page <page>
24960 will not print anything about the page if the label is on the same page.
24963 \begin_layout Standard
24964 The number and current page of the part of the document referred to in the
24965 output is automatically calculated by LaTeX.
24966 The varieties are adjusted in the field
24970 of the cross-reference window that appears when you click on the cross-referenc
24974 \begin_layout Standard
24975 \begin_inset Note Greyedout
24978 \begin_layout Plain Layout
24983 It is recommended to use the LaTeX-package
24988 \begin_inset Index idx
24991 \begin_layout Plain Layout
24992 LaTeX-packages ! refstyle
25002 \begin_inset Index idx
25005 \begin_layout Plain Layout
25006 LaTeX-packages ! prettyref
25011 does not know all of LyX's possible label shortcuts
25015 \begin_layout Plain Layout
25016 \begin_inset Quotes eld
25020 \begin_inset Quotes erd
25023 is for example LyX's shortcut for labels in figure captions.
25028 and is not internationalized.
25036 \begin_layout Standard
25037 \begin_inset Note Greyedout
25040 \begin_layout Plain Layout
25045 Due to a bug in the LaTeX-package
25049 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25050 languages that make the period character active (like French).
25051 For a workaround, see
25052 \begin_inset Newline newline
25056 \begin_inset CommandInset href
25058 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25070 \begin_layout Subsection
25071 Automatic Reference Naming
25072 \begin_inset Index idx
25075 \begin_layout Plain Layout
25076 References ! Automatic Reference Naming
25084 \begin_layout Standard
25090 \begin_inset Index idx
25093 \begin_layout Plain Layout
25094 LaTeX-packages ! hyperref
25099 , that is enabled in the
25107 dialog, provides a very useful feature that cross-references automatically
25108 include the name of the referenced floats (or text parts like
25113 So you will save having to write e.
25114 \begin_inset space \thinspace{}
25118 \begin_inset space \space{}
25122 \begin_inset Quotes eld
25126 \begin_inset Quotes erd
25129 before every reference to a figure.
25130 To use this feature, enable
25134 and insert this line to the LaTeX preamble:
25137 \begin_layout Standard
25153 \begin_layout Standard
25154 When you prefer other reference names than the default ones, for example
25155 you want instead of
25156 \begin_inset Quotes eld
25160 \begin_inset Quotes erd
25164 \begin_inset Quotes eld
25168 \begin_inset space \thinspace{}
25172 \begin_inset Quotes eld
25175 , you can redefine the name by inserting this in the preamble:
25178 \begin_layout Standard
25189 sectionautorefname}
25190 \begin_inset Newline newline
25194 \begin_inset Phantom HPhantom
25197 \begin_layout Plain Layout
25200 \begin_inset space ~
25213 \begin_layout Standard
25214 When you are using another document language than English, replace
25215 \begin_inset Newline newline
25230 , where *** is the name of the language used.
25233 \begin_layout Standard
25234 To get automatic names, but not for certain reference types, for example
25235 not for equations, use this preamble code:
25238 \begin_layout Standard
25249 equationautorefname}[1]{}}
25252 \begin_layout Standard
25253 More about this topic can be found in
25258 \begin_inset CommandInset citation
25267 \begin_layout Standard
25268 \begin_inset Note Greyedout
25271 \begin_layout Plain Layout
25276 Automatic reference naming cannot be used when you use cross-references
25280 \begin_inset space ~
25285 style, as described in section
25286 \begin_inset space ~
25290 \begin_inset CommandInset ref
25292 reference "sub:Cross-Reference-Formats"
25304 \begin_layout Standard
25309 manual is an example where automatic reference naming is used.
25312 \begin_layout Subsection
25314 \begin_inset CommandInset label
25316 name "sub:Reference-Position"
25321 \begin_inset Index idx
25324 \begin_layout Plain Layout
25325 References ! Reference Position
25333 \begin_layout Standard
25339 \begin_inset Index idx
25342 \begin_layout Plain Layout
25343 LaTeX-packages ! hyperref
25356 dialog to link cross-references in the output, you will see that clicking
25357 on an image float reference jumps to the image label.
25358 The caption will be the first text part on the screen, so that you cannot
25359 see the image without scrolling.
25360 This is because the reference link anchor is placed at the position of
25362 With the use of the package
25367 \begin_inset Index idx
25370 \begin_layout Plain Layout
25371 LaTeX-packages ! hypcap
25376 , which is part of the LaTeX-package
25381 \begin_inset Index idx
25384 \begin_layout Plain Layout
25385 LaTeX-packages ! oberdiek
25390 , the link anchor is placed at the beginning of a float.
25391 To use this feature for figure floats, load
25395 in the document preamble with the line
25398 \begin_layout Standard
25403 usepackage[figure]{hypcap}
25406 \begin_layout Standard
25411 for all float types but this is not recommended for stability reasons.
25412 For more information, have a look at
25417 \begin_inset CommandInset citation
25426 \begin_layout Standard
25427 \begin_inset Note Greyedout
25430 \begin_layout Plain Layout
25439 has no effect on references to subfigures.
25447 \begin_layout Section
25449 \begin_inset CommandInset label
25451 name "sec:Float-Placement"
25456 \begin_inset Index idx
25459 \begin_layout Plain Layout
25468 \begin_layout Standard
25469 Right-clicking on a float-box and clicking on
25473 opens a dialog where you can alter the placement options that LaTeX uses
25474 for positioning the float.
25475 \begin_inset Newline newline
25481 \begin_inset space ~
25486 is only useful for two-column documents: If you select it, the float will
25487 span both columns on the page instead of being confined to just one.
25488 \begin_inset Newline newline
25494 \begin_inset space ~
25499 is used to rotate floats, see section
25500 \begin_inset CommandInset ref
25502 reference "sec:Rotated-Floats"
25509 \begin_layout Standard
25510 You can use one or more of the following options in the float dialog to
25511 set the placement for a particular float when you uncheck the option
25514 \begin_inset space ~
25518 \begin_inset space ~
25526 \begin_layout Description
25528 \begin_inset space ~
25532 \begin_inset space ~
25535 possible try to place the float on the position where it has been inserted
25538 \begin_layout Description
25540 \begin_inset space ~
25544 \begin_inset space ~
25547 page try to place the float at the top of the current page
25550 \begin_layout Description
25552 \begin_inset space ~
25556 \begin_inset space ~
25559 page try to place the float at the bottom of the current page
25562 \begin_layout Description
25564 \begin_inset space ~
25568 \begin_inset space ~
25571 floats try to place the float on its own page
25574 \begin_layout Standard
25575 The order of the above option is
25580 That means, if you use the default placement, LaTeX will first try out
25584 \begin_inset space ~
25588 \begin_inset space ~
25596 \begin_inset space ~
25600 \begin_inset space ~
25605 , and then the others.
25606 If you do not use the default, LaTeX will try only the checked options
25607 but in the same order.
25609 \begin_inset space ~
25612 placements is possible the procedure is internally repeated trying to put
25613 the float on the following page.
25616 \begin_layout Standard
25617 By default, each option has its own rules:
25620 \begin_layout Labeling
25621 \labelwidthstring 00.00.0000
25625 \begin_inset space ~
25629 \begin_inset space ~
25634 only floats occupying less than 70
25635 \begin_inset space \thinspace{}
25638 % of the page can be placed at the top of a page (
25647 \begin_layout Labeling
25648 \labelwidthstring 00.00.0000
25652 \begin_inset space ~
25656 \begin_inset space ~
25661 : only floats occupying less than 30
25662 \begin_inset space \thinspace{}
25665 % of the page can be placed at the bottom of a page.
25675 \begin_layout Labeling
25676 \labelwidthstring 00.00.0000
25680 \begin_inset space ~
25684 \begin_inset space ~
25689 : only if more than 50
25690 \begin_inset space \thinspace{}
25693 % of the page is occupied by floats, several floats can be set together
25704 \begin_layout Standard
25705 If you don't like these rules, you can ignore them by using the additional
25709 \begin_inset space ~
25713 \begin_inset space ~
25719 \begin_inset Newline newline
25722 You can also redefine the rules with LaTeX-commands that are given in parenthese
25723 s after the rules description above.
25724 To increase for example the often too small default of the bottom-rule
25726 \begin_inset space \thinspace{}
25729 % of the page, add this line to your document preamble:
25732 \begin_layout Standard
25739 bottomfraction}{0.5}
25742 \begin_layout Standard
25743 Sometimes you might need, under all circumstances, a float to be placed
25744 exactly at the position where it is inserted.
25745 For this case you can use the option
25748 \begin_inset space ~
25754 Use this option very rarely and only if the document is almost ready to
25755 be printed, because the float is then no longer able to
25756 \begin_inset Quotes eld
25760 \begin_inset Quotes erd
25763 when you change your document and this will often destroy the page layout.
25766 \begin_layout Standard
25767 There are no placement options for text wrap floats, because they are always
25768 surrounded by the text of a certain paragraph.
25769 \begin_inset VSpace bigskip
25775 \begin_layout Standard
25776 Sometimes you have the problem that a float is placed at the top of a page
25777 while its corresponding section starts at the middle of the page, so that
25778 the reader could think the float is part of the previous section.
25779 To avoid this the LaTeX-command
25786 It suppresses a given float placement for the page where it is inserted
25787 and can therefore be used to avoid floats being set before a section starts.
25788 To get this, add these commands to your document preamble:
25791 \begin_layout Standard
25801 \begin_inset Newline newline
25815 \begin_layout Standard
25816 You can define the same for all section headings, like chapters and subsections.
25817 This definition is not recommended to be used for small text parts like
25818 subsubsections because LaTeX may then have problems finding a suitable
25822 \begin_layout Standard
25823 \begin_inset VSpace bigskip
25826 In some cases it is required to have all figures/tables at the end of the
25828 For this purpose the LaTeX-package
25833 \begin_inset Index idx
25836 \begin_layout Plain Layout
25837 LaTeX-packages ! endfloat
25843 It puts all figure and table floats at the end of the document into their
25845 At the original float position a text hint like
25846 \begin_inset Quotes eld
25852 \begin_inset space ~
25858 \begin_inset Quotes erd
25862 The endfloat-package is loaded in the preamble with the line
25865 \begin_layout Standard
25870 usepackage[options]{endfloat}
25873 \begin_layout Standard
25874 There are various package options to format the created figure/table sections.
25875 For more information we refer you to the
25880 \begin_inset CommandInset citation
25887 \begin_inset Newline newline
25891 \begin_inset Note Greyedout
25894 \begin_layout Plain Layout
25899 doesn't provide an automatic translation for the text hint, you have to
25900 do this manually, see section
25901 \begin_inset space ~
25905 \begin_inset CommandInset citation
25917 \begin_inset Newline newline
25921 \begin_inset Note Greyedout
25924 \begin_layout Plain Layout
25929 There is currently a bug in
25933 when the caption contains a German
25934 \begin_inset Quotes eld
25938 \begin_inset Quotes erd
25942 Use in this case the command
25943 \begin_inset Quotes eld
25953 \begin_inset Quotes erd
25956 in TeX-Code instead of
25957 \begin_inset Quotes eld
25961 \begin_inset Quotes erd
25972 \begin_layout Standard
25973 \begin_inset VSpace bigskip
25976 For more details about float placements, have a look at LaTeX books,
25977 \begin_inset CommandInset citation
25979 key "latexcompanion,latexguide,latexbook"
25986 \begin_layout Section
25988 \begin_inset CommandInset label
25990 name "sec:Rotated-Floats"
25995 \begin_inset Index idx
25998 \begin_layout Plain Layout
26007 \begin_layout Standard
26008 Especially for wide tables you might have floats rotated.
26009 To rotate a whole float including the caption, right-click on the float-box
26013 \begin_inset space ~
26021 \begin_layout Standard
26022 Rotated floats are always placed on a page of their own (or column of their
26023 own; in case you have a multi-column document).
26024 You can let them span several columns using the float settings option
26027 \begin_inset space ~
26033 Floats are rotated so that you can read them from the outside margin.
26034 To force a certain rotation direction for all pages, you can add either
26043 to the document class options.
26046 \begin_layout Standard
26047 Referencing rotated floats is the same as for normal floats, the caption
26048 format is also the same: Table
26049 \begin_inset space ~
26053 \begin_inset CommandInset ref
26055 reference "tab:Rotated-table"
26059 is an example of a rotated table float.
26062 \begin_layout Standard
26063 \begin_inset Note Greyedout
26066 \begin_layout Plain Layout
26071 Not all DVI-viewers are able to display rotated floats.
26079 \begin_layout Standard
26080 \begin_inset Float table
26085 \begin_layout Plain Layout
26086 \begin_inset Caption
26088 \begin_layout Plain Layout
26089 \begin_inset CommandInset label
26091 name "tab:Rotated-table"
26103 \begin_layout Plain Layout
26105 \begin_inset Tabular
26106 <lyxtabular version="3" rows="1" columns="5">
26107 <features tabularvalignment="middle">
26108 <column alignment="center" valignment="top" width="0">
26109 <column alignment="center" valignment="top" width="0">
26110 <column alignment="center" valignment="top" width="0">
26111 <column alignment="center" valignment="top" width="0">
26112 <column alignment="center" valignment="top" width="0">
26114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26117 \begin_layout Plain Layout
26123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26126 \begin_layout Plain Layout
26132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26135 \begin_layout Plain Layout
26141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26144 \begin_layout Plain Layout
26150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26153 \begin_layout Plain Layout
26172 \begin_layout Section
26174 \begin_inset Index idx
26177 \begin_layout Plain Layout
26186 \begin_layout Standard
26187 Subfloats are for example used when a figure consists of several images.
26188 They are created by inserting a float into an existing float.
26189 The placement of the subfloats can be controlled in the same way as for
26190 paragraphs as shown in table
26191 \begin_inset space ~
26195 \begin_inset CommandInset ref
26197 reference "tab:Two-subtables-side"
26202 \begin_inset CommandInset ref
26204 reference "tab:Two-subtables-upon"
26211 \begin_layout Standard
26212 Referencing subfloats works as for normal floats: Table
26213 \begin_inset space ~
26217 \begin_inset CommandInset ref
26219 reference "tab:This-is-subtable-a"
26224 \begin_inset CommandInset ref
26226 reference "tab:This-is-subtable-b"
26230 are subtables of table
26231 \begin_inset space ~
26235 \begin_inset CommandInset ref
26237 reference "tab:Two-subtables-side"
26244 \begin_layout Standard
26245 \begin_inset Float table
26250 \begin_layout Plain Layout
26251 \begin_inset Caption
26253 \begin_layout Plain Layout
26254 \begin_inset CommandInset label
26256 name "tab:Two-subtables-side"
26260 Two subtables placed side by side.
26268 \begin_layout Plain Layout
26270 \begin_inset space \hfill{}
26274 \begin_inset Float table
26279 \begin_layout Plain Layout
26280 \begin_inset Caption
26282 \begin_layout Plain Layout
26283 \begin_inset CommandInset label
26285 name "tab:This-is-subtable-a"
26289 This is subtable a.
26297 \begin_layout Plain Layout
26299 \begin_inset Tabular
26300 <lyxtabular version="3" rows="1" columns="5">
26301 <features tabularvalignment="middle">
26302 <column alignment="center" valignment="top" width="0">
26303 <column alignment="center" valignment="top" width="0">
26304 <column alignment="center" valignment="top" width="0">
26305 <column alignment="center" valignment="top" width="0">
26306 <column alignment="center" valignment="top" width="0">
26308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26311 \begin_layout Plain Layout
26317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26320 \begin_layout Plain Layout
26326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26329 \begin_layout Plain Layout
26335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26338 \begin_layout Plain Layout
26344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26347 \begin_layout Plain Layout
26364 \begin_inset space \hfill{}
26368 \begin_inset Float table
26373 \begin_layout Plain Layout
26374 \begin_inset Caption
26376 \begin_layout Plain Layout
26377 \begin_inset CommandInset label
26379 name "tab:This-is-subtable-b"
26383 This is subtable b.
26391 \begin_layout Plain Layout
26393 \begin_inset Tabular
26394 <lyxtabular version="3" rows="1" columns="5">
26395 <features tabularvalignment="middle">
26396 <column alignment="center" valignment="top" width="0">
26397 <column alignment="center" valignment="top" width="0">
26398 <column alignment="center" valignment="top" width="0">
26399 <column alignment="center" valignment="top" width="0">
26400 <column alignment="center" valignment="top" width="0">
26402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26405 \begin_layout Plain Layout
26411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26414 \begin_layout Plain Layout
26420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26423 \begin_layout Plain Layout
26429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26432 \begin_layout Plain Layout
26438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26441 \begin_layout Plain Layout
26458 \begin_inset space \hfill{}
26469 \begin_layout Standard
26470 \begin_inset Float table
26475 \begin_layout Plain Layout
26476 \begin_inset Caption
26478 \begin_layout Plain Layout
26479 \begin_inset CommandInset label
26481 name "tab:Two-subtables-upon"
26485 Two subtables placed one above the other.
26486 (a) table with 4 cells, (b) table with 5 cells.
26494 \begin_layout Plain Layout
26496 \begin_inset Float table
26501 \begin_layout Plain Layout
26502 \begin_inset Caption
26504 \begin_layout Plain Layout
26513 \begin_layout Plain Layout
26515 \begin_inset Tabular
26516 <lyxtabular version="3" rows="1" columns="4">
26517 <features tabularvalignment="middle">
26518 <column alignment="center" valignment="top" width="0">
26519 <column alignment="center" valignment="top" width="0">
26520 <column alignment="center" valignment="top" width="0">
26521 <column alignment="center" valignment="top" width="0">
26523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26526 \begin_layout Plain Layout
26532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26535 \begin_layout Plain Layout
26541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26544 \begin_layout Plain Layout
26550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26553 \begin_layout Plain Layout
26572 \begin_layout Plain Layout
26574 \begin_inset Float table
26579 \begin_layout Plain Layout
26580 \begin_inset Caption
26582 \begin_layout Plain Layout
26591 \begin_layout Plain Layout
26593 \begin_inset Tabular
26594 <lyxtabular version="3" rows="1" columns="5">
26595 <features tabularvalignment="middle">
26596 <column alignment="center" valignment="top" width="0">
26597 <column alignment="center" valignment="top" width="0">
26598 <column alignment="center" valignment="top" width="0">
26599 <column alignment="center" valignment="top" width="0">
26600 <column alignment="center" valignment="top" width="0">
26602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26605 \begin_layout Plain Layout
26611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26614 \begin_layout Plain Layout
26620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26623 \begin_layout Plain Layout
26629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26632 \begin_layout Plain Layout
26638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26641 \begin_layout Plain Layout
26665 \begin_layout Section
26666 Floats Side by Side
26667 \begin_inset Index idx
26670 \begin_layout Plain Layout
26671 Floats ! Side by side
26679 \begin_layout Standard
26680 To place floats side by side, as in Figures
26681 \begin_inset space ~
26685 \begin_inset CommandInset ref
26687 reference "fig:Float-left"
26692 \begin_inset CommandInset ref
26694 reference "fig:Float-right"
26703 In it two minipage boxes are inserted.
26707 \begin_layout Plain Layout
26708 Minipages are explained in section
26709 \begin_inset space ~
26713 \begin_inset CommandInset ref
26715 reference "sec:Minipages"
26724 The width is set to 45
26725 \begin_inset space \thinspace{}
26729 \begin_inset space \thinspace{}
26732 column% and the box alignment to
26737 The minipage boxes contain the image and the caption in the same way as
26738 they are in a float.
26739 The only difference is that the image unit
26742 \begin_inset space ~
26746 \begin_inset space ~
26751 is now calculated according to the width of the minipage boxes.
26754 \begin_layout Standard
26755 \begin_inset Float figure
26760 \begin_layout Plain Layout
26761 \begin_inset Box Frameless
26771 height_special "totalheight"
26774 \begin_layout Plain Layout
26776 \begin_inset Graphics
26777 filename clipart/mobius.eps
26780 scaleBeforeRotation
26787 \begin_layout Plain Layout
26788 \begin_inset Caption
26790 \begin_layout Plain Layout
26791 \begin_inset CommandInset label
26793 name "fig:Float-left"
26797 Float on the left side.
26808 \begin_inset space \hfill{}
26812 \begin_inset Box Frameless
26822 height_special "totalheight"
26825 \begin_layout Plain Layout
26827 \begin_inset Graphics
26828 filename clipart/platypus.eps
26831 scaleBeforeRotation
26838 \begin_layout Plain Layout
26839 \begin_inset Caption
26841 \begin_layout Plain Layout
26842 \begin_inset CommandInset label
26844 name "fig:Float-right"
26848 Float on the right side.
26861 \begin_layout Plain Layout
26870 \begin_layout Section
26872 \begin_inset Index idx
26875 \begin_layout Plain Layout
26876 Caption ! Formatting
26882 \begin_inset Index idx
26885 \begin_layout Plain Layout
26886 Floats ! Caption Formatting
26892 \begin_inset CommandInset label
26894 name "sec:Caption-Formatting"
26901 \begin_layout Standard
26906 environment is the default paragraph environment for
26911 On the LyX screen captions appear as a label, e.
26912 \begin_inset space \thinspace{}
26916 \begin_inset space \space{}
26920 \begin_inset Quotes eld
26928 \begin_inset Quotes erd
26931 followed by the caption text.
26933 \begin_inset Quotes eld
26937 \begin_inset Quotes erd
26940 is the actual reference number.
26941 By default the label and the number are in the same font as the caption
26942 text and a colon follows the number to divide the label from the text.
26943 This caption format is not suitable for all document formats.
26947 \begin_layout Standard
26948 To change the default caption format, load the LaTeX-package
26953 \begin_inset Index idx
26956 \begin_layout Plain Layout
26957 LaTeX-packages ! caption
26962 in the document preamble with this line:
26965 \begin_layout Standard
26970 usepackage[format definition]{caption}
26973 \begin_layout Standard
26974 To have for example the label and the number in sans-serif bold font and
26975 the table captions always above the table as in this document, use the
26979 \begin_layout Standard
26984 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26987 \begin_layout Standard
26988 You can also define different caption formats for the different float types.
26989 In this case load the
26993 package without format specific options and define the different formats
26994 with the help of the command
26997 \begin_layout Standard
27002 captionsetup[float type]{format definition}
27005 \begin_layout Standard
27006 in the document preamble.
27007 For example the caption formats of Figure
27008 \begin_inset space ~
27012 \begin_inset CommandInset ref
27014 reference "fig:This-is-an-fig"
27019 \begin_inset space ~
27023 \begin_inset CommandInset ref
27025 reference "tab:This-is-an-tab"
27029 can be created using these commands in the document preamble:
27032 \begin_layout Standard
27037 usepackage[tableposition=top]{caption}
27040 \begin_inset Newline newline
27047 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27048 \begin_inset Newline newline
27052 \begin_inset Phantom HPhantom
27055 \begin_layout Plain Layout
27060 captionsetup[figure]{
27066 \begin_inset Newline newline
27071 captionsetup[table]{labelfont={bf,sf}}
27074 \begin_layout Standard
27075 \begin_inset Note Greyedout
27078 \begin_layout Plain Layout
27087 has no effect when a
27092 \begin_inset Index idx
27095 \begin_layout Plain Layout
27096 LaTeX-packages ! KOMA-Script
27101 document class is used.
27102 In this case the document class option
27104 captions=tableheading
27114 \begin_layout Standard
27115 For more information about the package
27119 we refer to its documentation
27120 \begin_inset CommandInset citation
27129 \begin_layout Standard
27130 To change the label name from e.
27131 \begin_inset space \thinspace{}
27135 \begin_inset space \space{}
27139 \begin_inset Quotes eld
27143 \begin_inset Quotes erd
27147 \begin_inset Quotes eld
27151 \begin_inset Quotes erd
27154 use this preamble command:
27157 \begin_layout Standard
27164 fnum@figure}{Image~
27169 \begin_layout Standard
27176 inserts the figure number and
27179 \begin_inset Quotes eld
27185 \begin_inset Quotes erd
27188 creates a protected space.
27191 \begin_layout Standard
27192 \begin_inset VSpace bigskip
27200 \begin_inset Index idx
27203 \begin_layout Plain Layout
27204 LaTeX-packages ! KOMA-Script
27211 article (KOMA-Script)
27219 letter (KOMA-Script)
27223 report (KOMA-Script)
27226 \begin_inset space \thinspace{}
27229 ), you can alternatively to the
27237 's built-in command
27244 For example, to have the caption label in bold, add this command to your
27248 \begin_layout Standard
27253 setkomafont{captionlabel}{
27258 \begin_layout Standard
27259 For more information about
27270 \begin_inset CommandInset citation
27279 \begin_layout Standard
27283 \begin_layout Plain Layout
27287 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27294 \begin_inset Note Note
27297 \begin_layout Plain Layout
27298 The caption format is changed only for this example.
27306 \begin_layout Standard
27307 \begin_inset Float figure
27313 \begin_layout Plain Layout
27315 \begin_inset Graphics
27316 filename clipart/mobius.eps
27319 scaleBeforeRotation
27326 \begin_layout Plain Layout
27327 \begin_inset Caption
27329 \begin_layout Plain Layout
27330 \begin_inset CommandInset label
27332 name "fig:This-is-an-fig"
27336 This is an example figure caption that is longer than one line to show the
27337 different caption format.
27338 Here a self-defined caption format is used.
27351 \begin_layout Standard
27355 \begin_layout Plain Layout
27359 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27368 \begin_layout Standard
27369 \begin_inset Float table
27375 \begin_layout Plain Layout
27376 \begin_inset Caption
27378 \begin_layout Plain Layout
27379 \begin_inset CommandInset label
27381 name "tab:This-is-an-tab"
27385 This is an example table caption that is longer than one line to show the
27386 different caption format.
27387 Here the standard caption format for tables in this document is used.
27395 \begin_layout Plain Layout
27397 \begin_inset Tabular
27398 <lyxtabular version="3" rows="1" columns="5">
27399 <features tabularvalignment="middle">
27400 <column alignment="center" valignment="top" width="0">
27401 <column alignment="center" valignment="top" width="0">
27402 <column alignment="center" valignment="top" width="0">
27403 <column alignment="center" valignment="top" width="0">
27404 <column alignment="center" valignment="top" width="0">
27406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27409 \begin_layout Plain Layout
27415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27418 \begin_layout Plain Layout
27424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27427 \begin_layout Plain Layout
27433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27436 \begin_layout Plain Layout
27442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27445 \begin_layout Plain Layout
27464 \begin_layout Section
27466 \begin_inset Index idx
27469 \begin_layout Plain Layout
27470 Caption ! Placement
27476 \begin_inset Index idx
27479 \begin_layout Plain Layout
27480 Floats ! Caption Placement
27486 \begin_inset CommandInset label
27488 name "sec:Caption-Placement"
27495 \begin_layout Standard
27496 The common caption placement rule is:
27499 \begin_layout Description
27500 Figure: Caption is set below the figure
27503 \begin_layout Description
27504 Table: Caption is set above the table
27507 \begin_layout Standard
27508 Having the caption above the table is unfortunately not supported in LaTeX's
27510 That means if you are using the document classes
27526 there will be no space between the caption and the table.
27527 To insert the necessary space, add the following option to the load command
27528 of the LaTeX-package
27532 in your document preamble
27536 \begin_layout Plain Layout
27538 \begin_inset space ~
27542 \begin_inset CommandInset ref
27544 reference "sec:Caption-Formatting"
27548 for more information of the package
27560 \begin_layout Standard
27566 \begin_layout Standard
27572 \begin_inset Index idx
27575 \begin_layout Plain Layout
27576 LaTeX-packages ! KOMA-Script
27583 article (KOMA-Script)
27591 letter (KOMA-Script)
27595 report (KOMA-Script)
27598 \begin_inset space \thinspace{}
27601 ), you can alternatively to the
27605 package set the document class option
27607 captions=tableheading
27612 \begin_layout Standard
27613 \begin_inset VSpace bigskip
27616 It is also possible to set the caption beside a figure or table.
27617 To get this the LaTeX-package
27622 \begin_inset Index idx
27625 \begin_layout Plain Layout
27626 LaTeX-packages ! sidecap
27631 has to be loaded in the document preamble with the line
27634 \begin_layout Standard
27639 usepackage[option]{sidecap}
27642 \begin_layout Standard
27643 If you set no option, the caption is placed on the side of the outer page
27644 margin – to the right on odd pages, to the left on even pages.
27645 You can change the placement to inner margin with the option
27650 To force the placement always to the right or left, use the option
27661 \begin_layout Standard
27665 \begin_layout Plain Layout
27675 \begin_inset Note Note
27678 \begin_layout Plain Layout
27679 The following section will only be displayed when the LaTeX-package
27691 \begin_layout Standard
27692 To place in LyX the caption of a float on the side, it is necessary to add
27693 these commands to the document preamble:
27696 \begin_layout Standard
27697 \begin_inset Newpage pagebreak
27703 \begin_layout Standard
27705 \begin_inset CommandInset line
27716 \begin_layout Standard
27723 TabBesBeg}[1][1.0]{%
27724 \begin_inset Newline newline
27728 \begin_inset Phantom HPhantom
27731 \begin_layout Plain Layout
27732 \begin_inset space ~
27747 \begin_inset Newline newline
27751 \begin_inset Phantom HPhantom
27754 \begin_layout Plain Layout
27757 \begin_inset space ~
27772 \begin_inset Newline newline
27776 \begin_inset Phantom HPhantom
27779 \begin_layout Plain Layout
27782 \begin_inset space ~
27792 renewenvironment{table}[1]{
27794 begin{SCtable}[#1]##1}{
27799 \begin_layout Standard
27807 \begin_inset Newline newline
27811 \begin_inset Phantom HPhantom
27814 \begin_layout Plain Layout
27815 \begin_inset space ~
27830 \begin_inset Newline newline
27834 \begin_inset Phantom HPhantom
27837 \begin_layout Plain Layout
27838 \begin_inset space ~
27855 \begin_layout Standard
27862 FigBesBeg}[1][1.0]{%
27863 \begin_inset Newline newline
27867 \begin_inset Phantom HPhantom
27870 \begin_layout Plain Layout
27871 \begin_inset space ~
27886 \begin_inset Newline newline
27890 \begin_inset Phantom HPhantom
27893 \begin_layout Plain Layout
27894 \begin_inset space ~
27909 \begin_inset Newline newline
27913 \begin_inset Phantom HPhantom
27916 \begin_layout Plain Layout
27917 \begin_inset space ~
27927 renewenvironment{figure}[1]{
27929 begin{SCfigure}[#1]##1}{
27934 \begin_layout Standard
27942 \begin_inset Newline newline
27946 \begin_inset Phantom HPhantom
27949 \begin_layout Plain Layout
27950 \begin_inset space ~
27965 \begin_inset Newline newline
27969 \begin_inset Phantom HPhantom
27972 \begin_layout Plain Layout
27973 \begin_inset space ~
27990 \begin_layout Standard
27992 \begin_inset CommandInset line
28003 \begin_layout Standard
28004 The commands allow you to redefine the floats so that the caption is set
28006 For figure floats use the command
28009 \begin_layout Standard
28017 \begin_layout Standard
28018 in TeX-Code before the float.
28019 And insert the command
28022 \begin_layout Standard
28030 \begin_layout Standard
28031 in TeX-Code at the point where you want to get back to the original float
28035 \begin_layout Standard
28036 For table floats use the corresponding commands
28039 \begin_layout Standard
28053 \begin_layout Standard
28055 \begin_inset space ~
28059 \begin_inset CommandInset ref
28061 reference "fig:cap-beside-fig"
28066 \begin_inset space ~
28070 \begin_inset CommandInset ref
28072 reference "tab:cap-beside-tab"
28076 are examples where the caption is set beside.
28079 \begin_layout Standard
28080 You can see in the examples that the caption text appears at the top of
28081 the floats for table floats and at the bottom for figure floats.
28082 To change this, you can use the command
28085 \begin_layout Standard
28090 sidecaptionvpos{float type}{placement}
28093 \begin_layout Standard
28094 in the document preamble or in TeX-Code before the float.
28095 The float type is either
28103 , the placement can be
28104 \begin_inset Quotes eld
28112 \begin_inset Quotes erd
28116 \begin_inset Quotes eld
28124 \begin_inset Quotes erd
28128 \begin_inset Quotes eld
28136 \begin_inset Quotes erd
28140 To have for example the caption of figure floats vertically centered, use
28144 \begin_layout Standard
28149 sidecaptionvpos{figure}{c}
28152 \begin_layout Standard
28153 This was used for Figure
28154 \begin_inset space ~
28158 \begin_inset CommandInset ref
28160 reference "fig:cap-beside-fig-2"
28167 \begin_layout Standard
28168 \begin_inset VSpace medskip
28174 \begin_layout Standard
28175 The default caption width is the width of the image/table.
28176 For thin image/tables, like in Table
28177 \begin_inset space ~
28181 \begin_inset CommandInset ref
28183 reference "tab:cap-beside-tab"
28187 , this leads to captions that are too thin.
28188 You can increase the width by specifying a factor that will be multiplied
28189 with the image/table width to get the caption width.
28190 The caption width will automatically be recalculated in case it would protrude
28191 over the page or column margin due to the specified width.
28196 can either be given as optional argument for
28205 \begin_layout Standard
28213 \begin_layout Standard
28214 or in the definition of
28224 with another value.
28225 If you do the latter, your factor will be the default if
28231 is used without an argument.
28233 \begin_inset space ~
28237 \begin_inset CommandInset ref
28239 reference "tab:cap-beside-tab-wider"
28243 the factor 5 was used.
28246 \begin_layout Standard
28247 \begin_inset Note Greyedout
28250 \begin_layout Plain Layout
28255 For floats with captions set beside, you cannot use the float placement
28259 \begin_inset space ~
28264 because it is not supported by
28276 \begin_layout Standard
28277 \begin_inset VSpace medskip
28280 For more information about the package
28284 we refer to its documentation
28285 \begin_inset CommandInset citation
28294 \begin_layout Standard
28295 \begin_inset Note Greyedout
28298 \begin_layout Plain Layout
28308 \begin_inset Index idx
28311 \begin_layout Plain Layout
28312 LaTeX-packages ! hypcap
28317 , described in section
28318 \begin_inset space ~
28322 \begin_inset CommandInset ref
28324 reference "sub:Reference-Position"
28328 , has no effect on floats with the caption set beside.
28336 \begin_layout Standard
28340 \begin_layout Plain Layout
28352 \begin_layout Standard
28353 \begin_inset Float figure
28358 \begin_layout Plain Layout
28359 \begin_inset Graphics
28360 filename clipart/escher-lsd.eps
28362 scaleBeforeRotation
28369 \begin_layout Plain Layout
28370 \begin_inset Caption
28372 \begin_layout Plain Layout
28373 \begin_inset CommandInset label
28375 name "fig:cap-beside-fig"
28379 This is a caption beside a figure.
28392 \begin_layout Standard
28396 \begin_layout Plain Layout
28408 \begin_layout Standard
28412 \begin_layout Plain Layout
28424 \begin_layout Standard
28425 \begin_inset Float table
28430 \begin_layout Plain Layout
28431 \begin_inset Caption
28433 \begin_layout Plain Layout
28434 \begin_inset CommandInset label
28436 name "tab:cap-beside-tab"
28440 This is a caption beside a table.
28448 \begin_layout Plain Layout
28449 \begin_inset Tabular
28450 <lyxtabular version="3" rows="4" columns="5">
28451 <features tabularvalignment="middle">
28452 <column alignment="center" valignment="top" width="0">
28453 <column alignment="center" valignment="top" width="0">
28454 <column alignment="center" valignment="top" width="0">
28455 <column alignment="center" valignment="top" width="0">
28456 <column alignment="center" valignment="top" width="0">
28458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28461 \begin_layout Plain Layout
28467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28470 \begin_layout Plain Layout
28476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28479 \begin_layout Plain Layout
28485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28488 \begin_layout Plain Layout
28494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28497 \begin_layout Plain Layout
28505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28508 \begin_layout Plain Layout
28514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28517 \begin_layout Plain Layout
28523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28526 \begin_layout Plain Layout
28532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28535 \begin_layout Plain Layout
28541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28544 \begin_layout Plain Layout
28552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28555 \begin_layout Plain Layout
28561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28564 \begin_layout Plain Layout
28570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28573 \begin_layout Plain Layout
28579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28582 \begin_layout Plain Layout
28588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28591 \begin_layout Plain Layout
28599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28602 \begin_layout Plain Layout
28608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28611 \begin_layout Plain Layout
28617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28620 \begin_layout Plain Layout
28626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28629 \begin_layout Plain Layout
28635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28638 \begin_layout Plain Layout
28657 \begin_layout Standard
28661 \begin_layout Plain Layout
28673 \begin_layout Standard
28677 \begin_layout Plain Layout
28681 sidecaptionvpos{figure}{c}
28687 \begin_inset Float figure
28692 \begin_layout Plain Layout
28693 \begin_inset Graphics
28694 filename clipart/escher-lsd.eps
28696 scaleBeforeRotation
28703 \begin_layout Plain Layout
28704 \begin_inset Caption
28706 \begin_layout Plain Layout
28707 \begin_inset CommandInset label
28709 name "fig:cap-beside-fig-2"
28713 This is a vertically centered caption beside a figure.
28726 \begin_layout Standard
28730 \begin_layout Plain Layout
28742 \begin_layout Standard
28746 \begin_layout Plain Layout
28758 \begin_layout Standard
28759 \begin_inset Float table
28764 \begin_layout Plain Layout
28765 \begin_inset Caption
28767 \begin_layout Plain Layout
28768 \begin_inset CommandInset label
28770 name "tab:cap-beside-tab-wider"
28774 This is a caption is wider than the one in Table
28775 \begin_inset space ~
28779 \begin_inset CommandInset ref
28781 reference "tab:cap-beside-tab"
28793 \begin_layout Plain Layout
28794 \begin_inset Tabular
28795 <lyxtabular version="3" rows="4" columns="5">
28796 <features tabularvalignment="middle">
28797 <column alignment="center" valignment="top" width="0">
28798 <column alignment="center" valignment="top" width="0">
28799 <column alignment="center" valignment="top" width="0">
28800 <column alignment="center" valignment="top" width="0">
28801 <column alignment="center" valignment="top" width="0">
28803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28806 \begin_layout Plain Layout
28812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28815 \begin_layout Plain Layout
28821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28824 \begin_layout Plain Layout
28830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28833 \begin_layout Plain Layout
28839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28842 \begin_layout Plain Layout
28850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28853 \begin_layout Plain Layout
28859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28862 \begin_layout Plain Layout
28868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28871 \begin_layout Plain Layout
28877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28880 \begin_layout Plain Layout
28886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28889 \begin_layout Plain Layout
28897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28900 \begin_layout Plain Layout
28906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28909 \begin_layout Plain Layout
28915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28918 \begin_layout Plain Layout
28924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28927 \begin_layout Plain Layout
28933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28936 \begin_layout Plain Layout
28944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28947 \begin_layout Plain Layout
28953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28956 \begin_layout Plain Layout
28962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28965 \begin_layout Plain Layout
28971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28974 \begin_layout Plain Layout
28980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28983 \begin_layout Plain Layout
29002 \begin_layout Standard
29006 \begin_layout Plain Layout
29018 \begin_layout Standard
29022 \begin_layout Plain Layout
29032 \begin_inset Note Note
29035 \begin_layout Plain Layout
29036 The following will be displayed when the LaTeX-package
29048 \begin_layout Standard
29049 You need to install the LaTeX-package
29053 to see the following part of this section in the output.
29056 \begin_layout Standard
29060 \begin_layout Plain Layout
29072 \begin_layout Section
29074 \begin_inset Index idx
29077 \begin_layout Plain Layout
29078 Floats ! Float Lists
29086 \begin_layout Standard
29087 Similar to the table of contents where the sections of the document are
29088 listed, there are listings for all float types, like the figures of the
29090 You can insert them via the
29092 Insert\SpecialChar \menuseparator
29094 \begin_inset space ~
29098 \begin_inset space ~
29106 \begin_layout Standard
29107 The list entries are the float captions or its short title, the float number,
29108 and the page number where they appear in the document.
29111 \begin_layout Standard
29112 You can find the list of figures and tables at the end of this document.
29115 \begin_layout Chapter
29119 \begin_layout Section
29121 \begin_inset Index idx
29124 \begin_layout Plain Layout
29133 \begin_layout Standard
29134 Notes are inserted with the toolbar button
29142 Insert\SpecialChar \menuseparator
29146 There are three types of notes:
29149 \begin_layout Description
29151 \begin_inset space ~
29154 Note This note type is for internal notes that won't appear in the output.
29155 Its note-box looks like this:
29156 \begin_inset Newline newline
29160 \begin_inset Newline newline
29164 \begin_inset Graphics
29165 filename clipart/LyXNoteImageQt4.png
29168 scaleBeforeRotation
29173 \begin_inset Note Note
29176 \begin_layout Plain Layout
29177 This is text in a note box that doesn't appear in the output.
29185 \begin_layout Description
29186 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29187 ent, when you export the document to LaTeX via the menu
29189 File\SpecialChar \menuseparator
29190 Export\SpecialChar \menuseparator
29191 LaTeX (pdflatex) / (plain)
29194 Its note-box looks like this:
29195 \begin_inset Newline newline
29199 \begin_inset Newline newline
29203 \begin_inset Graphics
29204 filename clipart/CommentNoteImageQt4.png
29207 scaleBeforeRotation
29212 \begin_inset Note Comment
29215 \begin_layout Plain Layout
29216 This is text in a note box that only appears as comment in LaTeX-files.
29224 \begin_layout Description
29226 \begin_inset space ~
29229 Out This note will appear in the output as grey text.
29230 Its note-box looks like this:
29231 \begin_inset Newline newline
29235 \begin_inset Newline newline
29239 \begin_inset Graphics
29240 filename clipart/GreyedOutNoteImageQt4.png
29243 scaleBeforeRotation
29248 \begin_inset Newline newline
29255 \begin_layout Plain Layout
29259 renewenvironment{lyxgreyedout}
29262 \begin_layout Plain Layout
29266 textcolor[gray]{0.8}
29276 \begin_inset Note Greyedout
29279 \begin_layout Plain Layout
29284 \begin_layout Plain Layout
29285 This is an example footnote within a greyed out note.
29290 of a comment that appears in the output as grey text.
29299 \begin_layout Plain Layout
29303 renewenvironment{lyxgreyedout}
29306 \begin_layout Plain Layout
29320 \begin_inset Note Note
29323 \begin_layout Plain Layout
29324 The greyed out note is here redefined to show it with the original LyX definitio
29325 n because greyed out notes are redefined in the preamble of this document,
29326 as described below, to have blue text.
29332 \begin_inset Newline newline
29336 \begin_inset Newline newline
29339 As you can see in the example, the first line of greyed out notes is a bit
29340 indented and greyed out notes can have footnotes.
29343 \begin_layout Standard
29344 \begin_inset VSpace bigskip
29347 When you use the toolbar button
29356 \begin_inset space ~
29362 You can switch between the three note types by right-clicking on the note-box.
29367 If you want to turn existing text into a note, mark it and click on the
29381 To change a note to text, press the backspace key when the cursor is in
29382 the first position of a note, or press the delete key when the cursor is
29383 in the very last position of the note, respectively.
29386 \begin_layout Standard
29387 \begin_inset VSpace bigskip
29390 You can change the text color of the greyed out notes in the menu
29392 Document\SpecialChar \menuseparator
29393 Settings\SpecialChar \menuseparator
29399 \begin_layout Section
29401 \begin_inset CommandInset label
29403 name "sec:Footnotes"
29408 \begin_inset Index idx
29411 \begin_layout Plain Layout
29418 \begin_inset Index idx
29421 \begin_layout Plain Layout
29430 \begin_layout Standard
29431 Footnotes can be inserted using the toolbar button
29434 arg "footnote-insert"
29439 Insert\SpecialChar \menuseparator
29443 You will then see the following footnote-box:
29444 \begin_inset Graphics
29445 filename clipart/footnoteQt4.png
29447 scaleBeforeRotation
29455 where you can enter the footnote text.
29456 If you want to turn existing text into a footnote, mark it and click on
29482 key when the cursor is in the first position of a
29494 key when the cursor is in the very last position of the
29505 \begin_layout Standard
29506 Here is an example footnote:
29514 \begin_layout Plain Layout
29515 \begin_inset CommandInset label
29517 name "foot:This-is-an"
29521 This is an example footnote.
29534 \begin_layout Plain Layout
29538 newcounter{MyRepeatFoot}
29541 \begin_layout Plain Layout
29545 setcounter{MyRepeatFoot}{
29555 \begin_layout Standard
29556 The footnote will appear in the output as a superscript number at the text
29557 position where the footnote box is placed.
29558 The footnote text is placed at the bottom of the current page.
29559 The footnote number is calculated by LaTeX; the numbers are consecutive.
29560 Whether the footnote number is reset for every chapter depends on your
29564 \begin_layout Standard
29565 Footnotes can be referenced like floats: Insert a label into the footnote
29566 and cross-reference this label in the text as described in section
29567 \begin_inset space ~
29571 \begin_inset CommandInset ref
29573 reference "sec:Referencing-Floats"
29578 \begin_inset Newline newline
29581 This is a cross-reference of Footnote
29582 \begin_inset space ~
29586 \begin_inset CommandInset ref
29588 reference "foot:This-is-an"
29595 \begin_layout Standard
29596 \begin_inset VSpace defskip
29599 Footnotes in tables are not printed by LaTeX due to technical reasons.
29600 However there exists another method to print them: Instead of the footnote
29607 is inserted as TeX-code.
29608 The text of the footnote is entered as an argument of the TeX-code command
29616 \begin_inset Newline newline
29619 This was done for the following table with the command
29622 \begin_layout Standard
29629 Printed table footnote.
29634 \begin_layout Standard
29635 \begin_inset Tabular
29636 <lyxtabular version="3" rows="2" columns="1">
29637 <features tabularvalignment="middle">
29638 <column alignment="center" valignment="top" width="0">
29640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29643 \begin_layout Plain Layout
29644 This an example text.
29648 \begin_layout Plain Layout
29649 This footnote will not be printed!
29661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29664 \begin_layout Plain Layout
29665 This an example text.
29669 \begin_layout Plain Layout
29692 \begin_layout Plain Layout
29701 Printed table footnote.
29705 \begin_layout Plain Layout
29715 \begin_layout Standard
29716 Footnotes in longtables are described in section
29717 \begin_inset space ~
29721 \begin_inset CommandInset ref
29723 reference "sub:Footnotes-in-Longtables"
29730 \begin_layout Standard
29731 Footnotes in minipage boxes are printed, but inside the box and with a different
29732 numbering because a minipage box is like a page inside a page.
29733 (For more about minipages, see section
29734 \begin_inset space ~
29738 \begin_inset CommandInset ref
29740 reference "sec:Minipages"
29744 .) To get a footnote in the minipage that is output at the bottom of the
29745 page like normal footnotes, also use the method of
29760 \begin_layout Standard
29761 \begin_inset Box Frameless
29771 height_special "totalheight"
29774 \begin_layout Plain Layout
29775 This an example text in a minipage.
29779 \begin_layout Plain Layout
29780 Footnote in the minipage.
29788 \begin_layout Plain Layout
29789 This an example text in a minipage.
29793 \begin_layout Plain Layout
29810 \begin_layout Standard
29814 \begin_layout Plain Layout
29823 Footnote outside the minipage.
29827 \begin_layout Plain Layout
29837 \begin_layout Standard
29838 \begin_inset VSpace defskip
29844 \begin_layout Standard
29845 To refer to the same footnote several times without printing the footnote
29846 text every time, use the command
29850 footnotemark[number]
29853 \begin_inset Newline newline
29856 As you do not know the number of the repeating footnote while you are writing
29857 the text, you have to store its number.
29858 For the following footnote mark example, these commands were inserted in
29859 TeX-code after Footnote
29860 \begin_inset space ~
29864 \begin_inset CommandInset ref
29866 reference "foot:This-is-an"
29870 to store the footnote number:
29873 \begin_layout Standard
29878 newcounter{MyRepeatFoot}
29879 \begin_inset Newline newline
29884 setcounter{MyRepeatFoot}{
29889 \begin_layout Standard
29890 The footnote mark was then created with this command:
29893 \begin_layout Standard
29903 \begin_layout Standard
29904 Here is a repeated footnote:
29912 \begin_layout Plain Layout
29926 \begin_layout Standard
29927 If you want to repeat the previous footnote, you can omit the storage of
29928 the footnote number and just use this command instead:
29931 \begin_layout Standard
29941 \begin_layout Standard
29942 Here is another repeated footnote:
29950 \begin_layout Plain Layout
29964 \begin_layout Subsection
29966 \begin_inset CommandInset label
29968 name "sub:Footnote-Numbering"
29973 \begin_inset Index idx
29976 \begin_layout Plain Layout
29977 Footnotes ! Numbering
29985 \begin_layout Standard
29986 To reset the footnote number back to 1 after each section
29988 , add this command to your document preamble:
29991 \begin_layout Standard
29996 @addtoreset{footnote}{section}
29999 \begin_layout Standard
30000 \begin_inset VSpace bigskip
30003 The following preamble command changes the footnote numbering style to small
30007 \begin_layout Standard
30019 \begin_layout Standard
30023 \begin_layout Plain Layout
30036 This is a footnote with roman numbering:
30040 \begin_layout Plain Layout
30041 This is an example footnote with roman numbering.
30049 \begin_layout Standard
30050 To change the numbering style to capital roman numerals replace in the command
30065 \begin_inset Quotes eld
30069 \begin_inset Quotes erd
30072 footnotes with capital or small Latin letters use
30086 \begin_inset Quotes eld
30090 \begin_inset Quotes erd
30093 footnotes with symbols use
30102 \begin_layout Standard
30103 \begin_inset Note Greyedout
30106 \begin_layout Plain Layout
30111 You can only number 26 footnotes with Latin letters, because this numbering
30112 is limited to single letters.
30118 \begin_inset Newline newline
30122 \begin_inset Note Greyedout
30125 \begin_layout Plain Layout
30130 You can only number 9 footnotes with symbols.
30138 \begin_layout Standard
30139 To return to the default numbering style after you have changed to another
30152 in the command above.
30156 \begin_layout Plain Layout
30172 \begin_layout Standard
30173 \begin_inset VSpace bigskip
30179 \begin_layout Standard
30180 If you want to have footnotes numbered in the scheme
30181 \begin_inset Quotes eld
30185 \begin_inset Quotes erd
30188 , add the following command to your document preamble:
30191 \begin_layout Standard
30196 numberwithin{footnote}{chapter}
30199 \begin_layout Standard
30200 To be able to use the command
30209 \begin_inset space ~
30214 in the document settings the option
30217 \begin_inset space ~
30221 \begin_inset space ~
30225 \begin_inset space ~
30233 \begin_layout Standard
30237 \begin_layout Plain Layout
30241 numberwithin{footnote}{chapter}
30246 This is another example footnote:
30252 \begin_layout Plain Layout
30253 This is a footnote numbered in the scheme
30254 \begin_inset Quotes eld
30258 \begin_inset Quotes erd
30272 \begin_layout Plain Layout
30288 \begin_layout Standard
30289 \begin_inset Note Greyedout
30292 \begin_layout Plain Layout
30303 always prints out the footnote number as arabic number; previous redefinitions
30304 to get non-arabic numbers are overwritten.
30312 \begin_layout Standard
30313 So to get for example the scheme
30314 \begin_inset Quotes eld
30320 \begin_inset Quotes erd
30323 , use this command instead of
30332 \begin_layout Standard
30346 \begin_layout Subsection
30348 \begin_inset Index idx
30351 \begin_layout Plain Layout
30352 Footnotes ! Placement
30360 \begin_layout Standard
30361 If you have several footnotes in one page, they appear without vertical
30362 space between them at the bottom of the page.
30363 To make them more readable you can e.
30364 \begin_inset space \thinspace{}
30368 \begin_inset space \space{}
30372 \begin_inset space \thinspace{}
30375 mm space with the following preamble command:
30378 \begin_layout Standard
30388 \begin_inset Newline newline
30402 \begin_layout Standard
30403 \begin_inset VSpace bigskip
30406 In a two-column document the footnotes appear at the bottom of every column,
30408 \begin_inset space ~
30412 \begin_inset CommandInset ref
30414 reference "fig:Standard-footnote-placement"
30419 If the footnotes should only appear at the bottom of the right column,
30421 \begin_inset space ~
30425 \begin_inset CommandInset ref
30427 reference "fig:Footnote-placement-in"
30431 , use the LaTeX-package
30436 \begin_inset Index idx
30439 \begin_layout Plain Layout
30440 LaTeX-packages ! ftnright
30445 with this command in the document preamble:
30448 \begin_layout Standard
30453 usepackage{ftnright}
30456 \begin_layout Standard
30457 \begin_inset Float figure
30463 \begin_layout Plain Layout
30467 \begin_layout Plain Layout
30477 \begin_inset Graphics
30478 filename clipart/without_fntright.pdf
30480 scaleBeforeRotation
30488 \begin_layout Plain Layout
30498 \begin_layout Plain Layout
30499 \begin_inset Caption
30501 \begin_layout Plain Layout
30502 \begin_inset CommandInset label
30504 name "fig:Standard-footnote-placement"
30508 Standard footnote placement in two-column documents.
30521 \begin_layout Standard
30522 \begin_inset Float figure
30528 \begin_layout Plain Layout
30532 \begin_layout Plain Layout
30542 \begin_inset Graphics
30543 filename clipart/with_fntright.pdf
30545 scaleBeforeRotation
30553 \begin_layout Plain Layout
30563 \begin_layout Plain Layout
30564 \begin_inset Caption
30566 \begin_layout Plain Layout
30567 \begin_inset CommandInset label
30569 name "fig:Footnote-placement-in"
30573 Footnote placement in two-column documents when the LaTeX-package
30590 \begin_layout Standard
30591 \begin_inset VSpace bigskip
30594 In some scientific literature it is usual to collect the footnotes and print
30595 them in a separate paragraph at the end of a section, as in Figure
30596 \begin_inset space ~
30600 \begin_inset CommandInset ref
30602 reference "fig:Endnotes"
30607 They are then called
30608 \begin_inset Quotes eld
30612 \begin_inset Quotes erd
30616 \begin_inset Index idx
30619 \begin_layout Plain Layout
30625 To use endnotes instead of footnotes in your document, load in the menu
30628 Document\SpecialChar \menuseparator
30629 Settings\SpecialChar \menuseparator
30635 \begin_inset space ~
30639 \begin_inset space ~
30645 To insert the collected footnotes, insert the command
30648 \begin_layout Standard
30656 \begin_layout Standard
30657 in TeX-Code at the end of a section or chapter.
30660 \begin_layout Standard
30661 \begin_inset Float figure
30666 \begin_layout Plain Layout
30671 \begin_layout Plain Layout
30681 \begin_inset Graphics
30682 filename clipart/endnotes.pdf
30683 scaleBeforeRotation
30691 \begin_layout Plain Layout
30701 \begin_layout Plain Layout
30702 \begin_inset Caption
30704 \begin_layout Plain Layout
30705 \begin_inset CommandInset label
30707 name "fig:Endnotes"
30711 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30725 \begin_layout Standard
30726 \begin_inset VSpace medskip
30729 The paragraph heading for the endnotes isn't automatically translated into
30730 the document language, this must be done manually.
30731 The following preamble command translates the default English
30732 \begin_inset Quotes eld
30736 \begin_inset Quotes erd
30740 \begin_inset Quotes eld
30744 \begin_inset Quotes erd
30750 \begin_layout Standard
30757 notesname}{Anmerkungen}
30760 \begin_layout Standard
30761 \begin_inset VSpace medskip
30764 The numbering of endnotes can be changed like the footnote numbering as
30765 described in section
30766 \begin_inset space ~
30770 \begin_inset CommandInset ref
30772 reference "sub:Footnote-Numbering"
30776 ; just replace the command
30789 To reset the endnote number use the command
30795 as described in section
30796 \begin_inset space ~
30800 \begin_inset CommandInset ref
30802 reference "sub:Footnote-Numbering"
30806 and replace the command parameter
30817 \begin_layout Standard
30818 For endnotes there is the command
30822 endnotemark[number]
30824 similar to the command
30830 , that is described in section
30831 \begin_inset space ~
30835 \begin_inset CommandInset ref
30837 reference "sec:Footnotes"
30844 \begin_layout Standard
30845 \begin_inset VSpace bigskip
30848 Footnotes can also be placed in the page margin and the footnote text alignment
30849 can be changed, see the LaTeX-package
30854 \begin_inset Index idx
30857 \begin_layout Plain Layout
30858 LaTeX-packages ! footmisc
30864 \begin_inset CommandInset citation
30870 for more information about this.
30873 \begin_layout Standard
30874 For various further footnote formatting issues have a look at LaTeX-books,
30876 \begin_inset CommandInset citation
30878 key "latexcompanion,latexguide,latexbook"
30888 \begin_inset Index idx
30891 \begin_layout Plain Layout
30892 LaTeX-packages ! KOMA-Script
30897 document class, you can adjust all footnote settings using class-specific
30899 \begin_inset CommandInset citation
30908 \begin_layout Section
30910 \begin_inset Index idx
30913 \begin_layout Plain Layout
30914 Notes ! Margin Notes
30922 \begin_layout Standard
30923 Margin notes look and behave in LyX like footnotes.
30924 They are inserted via the menu
30926 Insert\SpecialChar \menuseparator
30928 \begin_inset space ~
30933 or the toolbar button
30936 arg "marginalnote-insert"
30950 \begin_inset Quotes eld
30954 \begin_inset Quotes erd
30957 appears where you can enter the text of the margin note.
30960 \begin_layout Standard
30961 At the side is an example margin note.
30966 \begin_inset Marginal
30969 \begin_layout Plain Layout
30970 This is a margin note.
30978 \begin_layout Standard
30979 Margin notes appear at the right side in single-sided documents.
30980 In double-sided documents they appear in the outer margin – left on even
30981 pages, right on odd pages.
30982 The text of margin notes is aligned opposite to the outer margin – right-aligne
30983 d when the note appears in the left margin.
30984 The first line of the margin note is placed at the position of the text
30985 line where it is inserted in the document.
30988 \begin_layout Standard
30989 \begin_inset VSpace bigskip
30992 To place the margin note in the inner margin, add the command
30995 \begin_layout Standard
31003 \begin_layout Standard
31004 in TeX-Code before a margin note.
31005 The new placement is valid for all subsequent margin notes.
31010 \begin_layout Plain Layout
31020 \begin_inset Marginal
31023 \begin_layout Plain Layout
31024 This is a margin note in the inner margin.
31032 \begin_inset Newline newline
31038 \begin_inset Note Greyedout
31041 \begin_layout Plain Layout
31046 There is often not enough space in the inner margin so that the notes are
31047 not correctly displayed in the output.
31055 \begin_layout Standard
31056 To return to the default placement insert the command
31059 \begin_layout Standard
31067 \begin_layout Standard
31072 \begin_layout Plain Layout
31082 \begin_inset Note Greyedout
31085 \begin_layout Plain Layout
31090 The command is ignored when it is within a paragraph where also the command
31105 \begin_layout Standard
31106 \begin_inset VSpace bigskip
31113 \begin_inset Marginal
31116 \begin_layout Plain Layout
31117 AVeryLongMarginParWord that isn't hyphenated.
31125 Similar to the case described in section
31126 \begin_inset space ~
31130 \begin_inset CommandInset ref
31132 reference "sub:Multiple-Lines-in"
31136 , long words cannot be hyphenated when they are the first word in a margin
31138 To avoid this, insert 0
31139 \begin_inset space \thinspace{}
31142 pt horizontal space before the word
31147 \begin_inset Marginal
31150 \begin_layout Plain Layout
31151 \begin_inset space \hspace*{}
31155 AVeryLongMarginParWord that is hyphenated.
31163 \begin_layout Standard
31164 \begin_inset VSpace bigskip
31170 \begin_layout Standard
31171 \begin_inset Note Greyedout
31174 \begin_layout Plain Layout
31179 Margin notes can normally not be used inside tables, floats, and footnotes.
31187 \begin_layout Standard
31188 \begin_inset VSpace bigskip
31194 \begin_layout Standard
31198 \begin_layout Plain Layout
31208 \begin_inset Note Note
31211 \begin_layout Plain Layout
31212 The following section will only be displayed when the LaTeX-package
31224 \begin_layout Standard
31225 This restriction can be evaded by using the LaTeX-package
31230 \begin_inset Index idx
31233 \begin_layout Plain Layout
31234 LaTeX-packages ! marginnote
31240 By adding these two lines to your document preamble, the command used by
31241 LyX for margin notes is redefined to use the command provided by the
31248 \begin_layout Standard
31253 usepackage{marginnote}
31254 \begin_inset Newline newline
31266 \begin_layout Standard
31267 This is also used in this document because
31271 has another useful feature: You can set a vertical offset for the note.
31272 This is often needed when too many margin notes are too close together
31273 or for a better page layout.
31274 The offset is set in LyX as TeX-Code directly after the margin note in
31278 \begin_layout Standard
31284 \begin_layout Standard
31285 where the offset is a length with one of the units listed in Table
31286 \begin_inset space ~
31290 \begin_inset CommandInset ref
31292 reference "tab:Units"
31297 A negative value shifts the note up, a positive value shifts it down.
31301 For example the margin note beside this text line is shifted up 1.5
31302 \begin_inset space \thinspace{}
31305 cm with the TeX-Code-command
31306 \begin_inset Quotes eld
31316 \begin_inset Quotes erd
31320 \begin_inset Marginal
31323 \begin_layout Plain Layout
31324 This margin note is shifted up 1.5
31325 \begin_inset space \thinspace{}
31328 cm from its original position.
31340 \begin_layout Plain Layout
31350 \begin_layout Standard
31351 \begin_inset VSpace medskip
31358 you can also change the alignment of the text in the margin note.
31359 For example the commands
31362 \begin_layout Standard
31369 raggedleftmarginnote}{
31372 \begin_inset Newline newline
31379 raggedrightmarginnote}{
31384 \begin_layout Standard
31385 set the alignment to centered.
31390 raggedleftmarginnote
31392 denotes margin notes that appear at the left side.
31399 \begin_layout Plain Layout
31405 raggedleftmarginnote}{
31410 \begin_layout Plain Layout
31416 raggedrightmarginnote}{
31424 \begin_inset Marginal
31427 \begin_layout Plain Layout
31428 The text of this margin note is centered.
31439 \begin_layout Standard
31446 raggedleftmarginnote}{
31449 \begin_inset Newline newline
31456 raggedrightmarginnote}{
31465 \begin_layout Plain Layout
31471 raggedleftmarginnote}{
31476 \begin_layout Plain Layout
31482 raggedrightmarginnote}{
31492 \begin_layout Standard
31493 \begin_inset VSpace medskip
31496 For the other features of
31500 refer to its documentation
31501 \begin_inset CommandInset citation
31510 \begin_layout Standard
31511 \begin_inset VSpace bigskip
31514 You can adjust the layout of margin notes by changing its definition.
31515 To create for example a header for all margin notes with the underlined,
31516 sans-serif, and bold header text
31517 \begin_inset Quotes eld
31529 \begin_inset Quotes erd
31532 , add this to your document preamble:
31535 \begin_layout Standard
31545 \begin_inset Newline newline
31555 \begin_inset Newline newline
31559 \begin_inset Phantom HPhantom
31562 \begin_layout Plain Layout
31565 \begin_inset space ~
31581 underbar{Attention!}}}%
31582 \begin_inset Newline newline
31586 \begin_inset Phantom HPhantom
31589 \begin_layout Plain Layout
31592 \begin_inset space ~
31609 \begin_layout Standard
31616 \begin_layout Plain Layout
31627 \begin_layout Plain Layout
31638 \begin_layout Plain Layout
31646 underbar{Attention!}}}%
31649 \begin_layout Plain Layout
31663 \begin_inset Marginal
31666 \begin_layout Plain Layout
31667 This is a margin note with a defined heading.
31679 \begin_layout Plain Layout
31693 \begin_layout Plain Layout
31710 \begin_inset Note Note
31713 \begin_layout Plain Layout
31714 The margin note format is changed only for this example.
31722 \begin_layout Standard
31726 \begin_layout Plain Layout
31736 \begin_inset Note Note
31739 \begin_layout Plain Layout
31740 The following will be displayed when the LaTeX-package
31752 \begin_layout Standard
31753 You need to install the LaTeX-package
31757 to see the following part of this section in the output.
31760 \begin_layout Standard
31764 \begin_layout Plain Layout
31776 \begin_layout Chapter
31780 \begin_layout Section
31782 \begin_inset Index idx
31785 \begin_layout Plain Layout
31786 Boxes ! Introduction
31794 \begin_layout Standard
31795 Boxes are used to format a block of text.
31796 Boxes can be used to write documents with multiple languages, see section
31797 \begin_inset space ~
31801 \begin_inset CommandInset ref
31803 reference "sec:Minipages"
31807 , to frame texts, see section
31808 \begin_inset space ~
31812 \begin_inset CommandInset ref
31814 reference "sec:Decoration"
31818 , to prevent words from being hyphenated, see section
31819 \begin_inset space ~
31823 \begin_inset CommandInset ref
31825 reference "sec:Prevent-Hyphenation"
31829 , to align text, see section
31830 \begin_inset space ~
31834 \begin_inset CommandInset ref
31836 reference "sub:Vertical-Alignment"
31840 , or to set the background color of texts, see section
31841 \begin_inset space ~
31845 \begin_inset CommandInset ref
31847 reference "sec:Colored-Boxes"
31854 \begin_layout Standard
31855 Boxes can be inserted with the menu
31857 Insert\SpecialChar \menuseparator
31860 or the toolbar button
31863 arg "box-insert Frameless"
31867 A grey box with the label
31872 \begin_inset Graphics
31873 filename clipart/BoxInsetDefaultQt4.png
31875 scaleBeforeRotation
31880 The box type can be specified by right-clicking on the box and selecting
31886 The box dialog offers the
31889 \begin_inset space ~
31911 is the default for new boxes and is explained in section
31912 \begin_inset space ~
31916 \begin_inset CommandInset ref
31918 reference "sec:Minipages"
31926 is described in section
31927 \begin_inset space ~
31931 \begin_inset CommandInset ref
31933 reference "sec:Parboxes"
31942 \begin_inset CommandInset ref
31944 reference "sec:Prevent-Hyphenation"
31951 \begin_layout Standard
31952 Boxes are not numbered and can therefore not be referenced like floats or
31956 \begin_layout Standard
31957 \begin_inset Note Greyedout
31960 \begin_layout Plain Layout
31965 Boxes must not be the item in an
31981 \begin_layout Standard
31982 \begin_inset Note Greyedout
31985 \begin_layout Plain Layout
31990 For an unknown reason you can only set the
31993 \begin_inset space ~
32002 when you use a framed box.
32006 \begin_inset space ~
32011 type and without frames are explained in section
32012 \begin_inset space ~
32016 \begin_inset CommandInset ref
32018 reference "sec:Prevent-Hyphenation"
32030 \begin_layout Section
32032 \begin_inset CommandInset label
32034 name "sec:Box-Dialog"
32039 \begin_inset Index idx
32042 \begin_layout Plain Layout
32051 \begin_layout Subsection
32053 \begin_inset Index idx
32056 \begin_layout Plain Layout
32065 \begin_layout Standard
32066 In the box dialog you can adjust the box geometry in the fields
32075 The available units for the geometry are explained in Table
32076 \begin_inset space ~
32080 \begin_inset CommandInset ref
32082 reference "tab:Units"
32091 offers the following additional sizes:
32094 \begin_layout Description
32095 Depth This is the plain text
32096 \begin_inset Quotes eld
32100 \begin_inset Quotes erd
32104 It ignores the total depth when there are multiple text lines in the box:
32105 \begin_inset Newline newline
32109 \begin_inset Newline newline
32113 \begin_inset Newline newline
32117 \begin_inset Box Boxed
32127 height_special "depth"
32130 \begin_layout Plain Layout
32132 Box height set to 1
32133 \begin_inset space \thinspace{}
32142 \begin_inset Newline newline
32146 \begin_inset Newline newline
32152 \begin_layout Description
32153 Height This is the height of the text that is inside the box.
32155 \begin_inset space \thinspace{}
32159 \begin_inset space \space{}
32162 2 for this size will set the box height to 2
32163 \begin_inset space ~
32166 times the text height:
32167 \begin_inset Box Boxed
32177 height_special "height"
32180 \begin_layout Plain Layout
32182 Box height set to 2
32183 \begin_inset space \thinspace{}
32194 \begin_layout Description
32196 \begin_inset space ~
32199 Height This is the Height
32200 \begin_inset space \thinspace{}
32204 \begin_inset space \thinspace{}
32208 \begin_inset Box Boxed
32218 height_special "totalheight"
32221 \begin_layout Plain Layout
32223 Box height set to 1
32224 \begin_inset space \thinspace{}
32228 \begin_inset space ~
32239 \begin_layout Description
32240 Width This sets the width of the box as height:
32241 \begin_inset Box Boxed
32251 height_special "width"
32254 \begin_layout Plain Layout
32256 Box height set to 1
32257 \begin_inset space \thinspace{}
32268 \begin_layout Subsection
32270 \begin_inset Index idx
32273 \begin_layout Plain Layout
32282 \begin_layout Standard
32283 When you have chosen an
32286 \begin_inset space ~
32291 , the vertical box alignment can be:
32294 \begin_layout Description
32295 Top This is an example text line.
32297 \begin_inset Box Boxed
32307 height_special "totalheight"
32310 \begin_layout Plain Layout
32312 This box is top-aligned.
32317 This is an example text line.
32320 \begin_layout Description
32321 Middle This is an example text line.
32323 \begin_inset Box Boxed
32333 height_special "totalheight"
32336 \begin_layout Plain Layout
32338 This box is middle-aligned.
32343 This is an example text line.
32346 \begin_layout Description
32347 Bottom This is an example text line.
32349 \begin_inset Box Boxed
32359 height_special "totalheight"
32362 \begin_layout Plain Layout
32364 This box is bottom-aligned.
32369 This is an example text line.
32372 \begin_layout Standard
32373 \begin_inset Note Greyedout
32376 \begin_layout Plain Layout
32381 The vertical box alignment can be lost in the output when you have two
32382 boxes in a line and one has e.
32383 \begin_inset space \thinspace{}
32387 \begin_inset space \space{}
32390 a shadow and the other one not.
32398 \begin_layout Standard
32399 The horizontal box alignment can be set via LyX's paragraph dialog when
32400 you set the box into its own paragraph.
32403 \begin_layout Standard
32404 \begin_inset VSpace bigskip
32407 When you have chosen an
32410 \begin_inset space ~
32415 , the box content can be aligned vertically to:
32418 \begin_layout Description
32419 top This is an example text line.
32421 \begin_inset Box Boxed
32431 height_special "totalheight"
32434 \begin_layout Plain Layout
32436 This box text is top-aligned.
32441 This is an example text line.
32444 \begin_layout Description
32445 middle This is an example text line.
32447 \begin_inset Box Boxed
32457 height_special "totalheight"
32460 \begin_layout Plain Layout
32462 This box text is middle-aligned.
32467 This is an example text line.
32470 \begin_layout Description
32471 bottom This is an example text line.
32473 \begin_inset Box Boxed
32483 height_special "totalheight"
32486 \begin_layout Plain Layout
32488 This box text is bottom-aligned.
32493 This is an example text line.
32496 \begin_layout Description
32497 stretch This is an example text line.
32499 \begin_inset Box Boxed
32509 height_special "totalheight"
32512 \begin_layout Plain Layout
32517 \begin_layout Plain Layout
32522 \begin_layout Plain Layout
32529 This is an example text line.
32532 \begin_layout Standard
32533 To stretch the box content, it must consist of more than one paragraph.
32534 In the example above every text line is in an own paragraph.
32537 \begin_layout Standard
32538 \begin_inset VSpace bigskip
32541 To align the box content horizontally you can use LyX's paragraph dialog
32542 when you have chosen an
32545 \begin_inset space ~
32553 \begin_layout Standard
32555 \begin_inset Box Boxed
32565 height_special "totalheight"
32568 \begin_layout Plain Layout
32573 \begin_layout Plain Layout
32578 \begin_layout Plain Layout
32588 \begin_layout Standard
32589 If you have not set an
32592 \begin_inset space ~
32597 , you can align the box content horizontally in the box dialog.
32600 \begin_layout Standard
32602 \begin_inset Box Boxed
32612 height_special "totalheight"
32615 \begin_layout Plain Layout
32616 This box text is horizontally stretched.
32624 \begin_layout Subsection
32626 \begin_inset CommandInset label
32628 name "sec:Decoration"
32633 \begin_inset Index idx
32636 \begin_layout Plain Layout
32645 \begin_layout Standard
32646 The type of the box can be specified in the box dialog in the drop-down
32652 The following types are possible:
32655 \begin_layout Description
32657 \begin_inset space ~
32660 frame Nothing is drawn.
32663 \begin_layout Description
32665 \begin_inset space ~
32669 \begin_inset space ~
32672 frame This draws a rectangular frame around the box.
32673 The frame line thickness has the size of
32681 \begin_inset Box Boxed
32691 height_special "totalheight"
32694 \begin_layout Plain Layout
32704 \begin_layout Description
32706 \begin_inset space ~
32710 \begin_inset space ~
32713 thin This draws an oval frame around the box.
32714 The frame line thickness has the size 0.4
32715 \begin_inset space \thinspace{}
32720 \begin_inset Box ovalbox
32730 height_special "totalheight"
32733 \begin_layout Plain Layout
32743 \begin_layout Description
32745 \begin_inset space ~
32749 \begin_inset space ~
32752 thick This draws an oval frame around the box.
32753 The frame line thickness has the size 0.8
32754 \begin_inset space \thinspace{}
32759 \begin_inset Box Ovalbox
32769 height_special "totalheight"
32772 \begin_layout Plain Layout
32782 \begin_layout Description
32784 \begin_inset space ~
32787 shadow This draws a rectangular frame with a shadow around the box.
32788 The frame line thickness has the size of
32794 , the shadow has a width of 4
32795 \begin_inset space \thinspace{}
32800 \begin_inset Box Shadowbox
32810 height_special "totalheight"
32813 \begin_layout Plain Layout
32823 \begin_layout Description
32825 \begin_inset space ~
32828 background This draws a box with a red background.
32829 Unlike colored boxes
32833 \begin_layout Plain Layout
32835 \begin_inset space \thinspace{}
32839 \begin_inset CommandInset ref
32841 reference "sec:Colored-Boxes"
32850 , it always uses the whole column width and the box is set as its own paragraph.
32852 \begin_inset Box Shaded
32862 height_special "totalheight"
32865 \begin_layout Plain Layout
32866 Shaded background box
32874 \begin_layout Description
32876 \begin_inset space ~
32880 \begin_inset space ~
32883 frame This draws a double-line rectangular frame around the box.
32884 The line thickness of the inner frame is 0.75
32885 \begin_inset space \thinspace{}
32894 , the thickness of the outer frame is 1.5
32895 \begin_inset space \thinspace{}
32905 The distance between the lines is 1.5
32906 \begin_inset space \thinspace{}
32916 \begin_inset space \thinspace{}
32920 \begin_inset space \thinspace{}
32924 \begin_inset space \thinspace{}
32929 \begin_inset Box Doublebox
32939 height_special "totalheight"
32942 \begin_layout Plain Layout
32944 Double rectangular box
32952 \begin_layout Standard
32953 \begin_inset VSpace bigskip
32956 LyX's box label will reflect the different frame types.
32957 To be able to use all types, the LaTeX-package
32962 \begin_inset Index idx
32965 \begin_layout Plain Layout
32966 LaTeX-packages ! fancybox
32974 \begin_layout Standard
32975 \begin_inset VSpace bigskip
32978 When you use the decoration
32980 simple rectangular frame
32982 and no inner box, you can allow page breaks within a box.
32983 Note that then, unlike other framed boxes, the frame always uses the whole
32984 column width, the box is set as its own paragraph, and
32996 have no effect on this box type.
32997 The frame line thickness has the size of
33005 \begin_inset Box Framed
33015 height_special "totalheight"
33018 \begin_layout Plain Layout
33019 Allow page break box
33027 \begin_layout Section
33029 \begin_inset Index idx
33032 \begin_layout Plain Layout
33033 Boxes ! Customization
33041 \begin_layout Standard
33042 The default value for the size
33049 \begin_inset space \thinspace{}
33053 It can be changed with the following command in TeX-code to e.
33054 \begin_inset space \thinspace{}
33058 \begin_inset space \space{}
33062 \begin_inset space \thinspace{}
33068 \begin_layout Standard
33078 \begin_layout Standard
33082 \begin_layout Plain Layout
33094 \begin_inset Box Boxed
33104 height_special "totalheight"
33107 \begin_layout Plain Layout
33109 Rectangular box with
33116 \begin_inset space \thinspace{}
33120 \begin_inset space \thinspace{}
33124 \begin_inset space \thinspace{}
33136 \begin_layout Plain Layout
33150 \begin_layout Standard
33151 \begin_inset VSpace bigskip
33154 The space between the frame and the box content is for all frame styles
33156 \begin_inset space \thinspace{}
33160 You can change it by setting the length
33167 For example the command
33170 \begin_layout Standard
33180 \begin_layout Standard
33181 sets the value to 10
33182 \begin_inset space \thinspace{}
33185 pt, as with the following box:
33188 \begin_layout Standard
33192 \begin_layout Plain Layout
33204 \begin_inset Box Boxed
33214 height_special "totalheight"
33217 \begin_layout Plain Layout
33219 Rectangular box with
33226 \begin_inset space \thinspace{}
33230 \begin_inset space \thinspace{}
33234 \begin_inset space \thinspace{}
33246 \begin_layout Plain Layout
33260 \begin_layout Standard
33261 \begin_inset VSpace bigskip
33264 The diameter of the round corners of the oval boxes can be set with the
33275 \begin_layout Standard
33283 \begin_layout Standard
33284 sets the diameter to 1
33285 \begin_inset space \thinspace{}
33292 \begin_layout Standard
33300 \begin_layout Standard
33301 sets the diameter to
33304 \begin_inset space \thinspace{}
33308 \begin_inset space \thinspace{}
33311 minimum(width and height of box)
33323 \begin_layout Standard
33327 \begin_layout Plain Layout
33337 \begin_inset Box Ovalbox
33347 height_special "totalheight"
33350 \begin_layout Plain Layout
33359 \begin_inset space \thinspace{}
33363 \begin_inset space \thinspace{}
33367 \begin_inset space \thinspace{}
33379 \begin_layout Plain Layout
33391 \begin_layout Standard
33392 \begin_inset VSpace bigskip
33395 The size of the shadow can be adjusted by changing the length
33403 \begin_inset space \thinspace{}
33406 pt for the following box by this command:
33409 \begin_layout Standard
33419 \begin_layout Standard
33423 \begin_layout Plain Layout
33435 \begin_inset Box Shadowbox
33445 height_special "totalheight"
33448 \begin_layout Plain Layout
33457 \begin_inset space \thinspace{}
33461 \begin_inset space \thinspace{}
33465 \begin_inset space \thinspace{}
33477 \begin_layout Plain Layout
33491 \begin_layout Standard
33492 \begin_inset VSpace bigskip
33498 \begin_layout Standard
33499 The default value for the size
33506 \begin_inset space \thinspace{}
33510 The default space between the note content and the frame is 9
33511 \begin_inset space \thinspace{}
33514 pt and can be changed with the value of
33521 For example the frame appearance of the following
33525 is set with the TeX-Code commands
33528 \begin_layout Standard
33536 \begin_inset Newline newline
33546 \begin_layout Standard
33550 \begin_layout Plain Layout
33559 \begin_layout Plain Layout
33571 \begin_inset Box Framed
33581 height_special "totalheight"
33584 \begin_layout Plain Layout
33598 \begin_layout Plain Layout
33607 \begin_layout Plain Layout
33621 \begin_layout Standard
33622 \begin_inset VSpace bigskip
33628 \begin_layout Standard
33633 boxes the default space between the box content and the box border is 3
33634 \begin_inset space \thinspace{}
33637 pt and can be changed with the value of
33644 The default background color red can either be changed locally with the
33649 definecolor{shadecolor}
33651 or globally with the menu
33653 Tools\SpecialChar \menuseparator
33654 Preferences\SpecialChar \menuseparator
33655 Colors\SpecialChar \menuseparator
33657 \begin_inset space ~
33669 command is explained in section
33670 \begin_inset space ~
33674 \begin_inset CommandInset ref
33676 reference "sec:Colored-Tables"
33684 \begin_layout Plain Layout
33691 requires the LaTeX-package
33695 in the preamble, see section
33696 \begin_inset space ~
33700 \begin_inset CommandInset ref
33702 reference "sec:Colored-Boxes"
33711 For example the appearance of the following shaded background box is set
33712 with the TeX-Code commands
33715 \begin_layout Standard
33725 \begin_inset Newline newline
33732 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33735 \begin_layout Standard
33739 \begin_layout Plain Layout
33748 \begin_layout Plain Layout
33752 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33758 \begin_inset Box Shaded
33768 height_special "totalheight"
33771 \begin_layout Plain Layout
33774 This is yellow text in a
33784 box with dark green background.
33793 \begin_layout Plain Layout
33802 \begin_layout Plain Layout
33806 definecolor{shadecolor}{rgb}{1,0,0}
33814 \begin_layout Standard
33815 \begin_inset VSpace bigskip
33818 Changed lengths and widths are valid for all boxes following the commands
33822 \begin_layout Section
33824 \begin_inset CommandInset label
33826 name "sec:Minipages"
33831 \begin_inset Index idx
33834 \begin_layout Plain Layout
33843 \begin_layout Standard
33844 Minipages are treated by LaTeX as pages within pages and can therefore for
33845 example have their own footnotes.
33848 \begin_layout Standard
33849 Minipages are useful when you write documents with different languages.
33852 \begin_layout Standard
33853 Below are two example minipages side by side.
33854 Their width is set to 45
33855 \begin_inset space \thinspace{}
33858 col% and they are separated by a horizontal fill, that was inserted via
33861 Insert\SpecialChar \menuseparator
33863 \begin_inset space ~
33866 Formatting\SpecialChar \menuseparator
33868 \begin_inset space ~
33874 \begin_inset Newpage newpage
33880 \begin_layout Standard
33881 \begin_inset Box Frameless
33891 height_special "totalheight"
33894 \begin_layout Plain Layout
33897 Dies ist ein deutscher Text.
33898 Dies ist ein deutscher Text.
33899 Dies ist ein deutscher Text.
33900 Dies ist ein deutscher Text.
33901 Dies ist ein deutscher Text.
33902 Dies ist ein deutscher Text.
33903 Dies ist ein deutscher Text.
33904 Dies ist ein deutscher Text.
33905 Dies ist ein deutscher Text.
33906 Dies ist ein deutscher Text.
33907 Dies ist ein deutscher Text.
33908 Dies ist ein deutscher Text.
33909 Dies ist ein deutscher Text
33913 \begin_layout Plain Layout
33916 Dies ist eine deutsche Fußnote.
33922 Dies ist ein deutscher Text.
33923 Dies ist ein deutscher Text.
33929 \begin_inset space \hfill{}
33933 \begin_inset Box Frameless
33943 height_special "totalheight"
33946 \begin_layout Plain Layout
33947 This is an English Text.
33948 This is an English Text.
33949 This is an English Text.
33950 This is an English Text.
33951 This is an English Text.
33952 This is an English Text.
33953 This is an English Text.
33954 This is an English Text.
33955 This is an English Text.
33956 This is an English Text.
33957 This is an English Text.
33958 This is an English Text.
33959 This is an English Text.
33960 This is an English Text.
33961 This is an English Text.
33962 This is an English Text.
33966 \begin_layout Plain Layout
33967 This is an English footnote.
33972 This is an English Text.
33980 \begin_layout Standard
33981 \begin_inset VSpace bigskip
33984 The document-wide paragraph settings are ignored within minipages.
33985 That means that there will be no space between paragraphs in minipages
33986 although you set it to e.
33987 \begin_inset space \thinspace{}
33991 \begin_inset space \space{}
33998 in the document settings.
34001 \begin_layout Standard
34002 Minipages can also be used to set a background color for text parts, see
34004 \begin_inset space ~
34008 \begin_inset CommandInset ref
34010 reference "sub:Color-for-Paragraphs"
34017 \begin_layout Standard
34018 \begin_inset Note Greyedout
34021 \begin_layout Plain Layout
34026 You cannot have floats or margin notes inside minipages but minipages can
34027 be used inside tables, floats, and other boxes.
34035 \begin_layout Section
34037 \begin_inset CommandInset label
34039 name "sec:Parboxes"
34044 \begin_inset Index idx
34047 \begin_layout Plain Layout
34056 \begin_layout Standard
34057 Parboxes are very similar to minipages with the difference that they cannot
34061 \begin_layout Standard
34063 \begin_inset Box Frameless
34073 height_special "totalheight"
34076 \begin_layout Plain Layout
34077 This a text within a parbox.
34078 This a text within a parbox.
34081 \begin_layout Plain Layout
34082 This footnote won't appear:
34086 \begin_layout Plain Layout
34087 This footnote is inside a parbox and will therefore not appear.
34100 \begin_layout Section
34101 Boxes for Words and Characters
34102 \begin_inset Index idx
34105 \begin_layout Plain Layout
34106 Boxes ! for Characters
34114 \begin_layout Subsection
34115 Prevent Hyphenation
34116 \begin_inset CommandInset label
34118 name "sec:Prevent-Hyphenation"
34123 \begin_inset Index idx
34126 \begin_layout Plain Layout
34127 Boxes ! to Prevent Hyphenation
34135 \begin_layout Standard
34136 You can use the box type
34140 to prevent words or text from being hyphenated.
34141 \begin_inset Newline newline
34144 Here is an example text:
34147 \begin_layout Standard
34148 This line is an example to show how you can prevent the hyphenation of
34149 \begin_inset Quotes eld
34153 \begin_inset Quotes erd
34159 \begin_layout Standard
34160 To prevent the hyphenation of the word
34161 \begin_inset Quotes eld
34165 \begin_inset Quotes erd
34168 , put the word into a box, set the
34171 \begin_inset space ~
34181 \begin_inset space \thinspace{}
34187 \begin_layout Standard
34188 This is the result:
34191 \begin_layout Standard
34192 This line is an example to show how you can prevent the hyphenation of
34193 \begin_inset Box Frameless
34203 height_special "totalheight"
34206 \begin_layout Plain Layout
34207 \begin_inset Quotes eld
34211 \begin_inset Quotes erd
34222 \begin_layout Standard
34223 You can alternatively set the command
34224 \begin_inset Quotes eld
34234 \begin_inset Quotes grd
34237 as TeX-Code directly before the word:
34240 \begin_layout Standard
34241 This line is an example to show how you can prevent the hyphenation of
34242 \begin_inset Quotes eld
34249 \begin_layout Plain Layout
34259 \begin_inset Quotes erd
34265 \begin_layout Standard
34266 Of course the word now protrudes over the side margin.
34267 To avoid this, add via the menu
34269 Insert\SpecialChar \menuseparator
34270 Formatting\SpecialChar \menuseparator
34272 \begin_inset space ~
34276 \begin_inset space ~
34284 arg "newline-insert newline"
34287 ) a line break before the word:
34290 \begin_layout Standard
34291 This line is an example to show how you can prevent the hyphenation of
34292 \begin_inset Newline newline
34296 \begin_inset Box Frameless
34306 height_special "totalheight"
34309 \begin_layout Plain Layout
34310 \begin_inset Quotes eld
34314 \begin_inset Quotes erd
34325 \begin_layout Subsection
34327 \begin_inset CommandInset label
34329 name "sub:Vertical-Alignment"
34334 \begin_inset Index idx
34337 \begin_layout Plain Layout
34338 Boxes ! for Vertical Alignment
34344 \begin_inset Index idx
34347 \begin_layout Plain Layout
34356 \begin_layout Standard
34357 With the help of the command
34363 you can align words, characters or other boxes vertically relative to the
34371 is used with the following scheme:
34374 \begin_layout Standard
34379 raisebox{lift}[height][depth]{box content}
34382 \begin_layout Standard
34383 The lift can be a positive value to raise the box or a negative value to
34387 \begin_layout Standard
34388 To align for example the word
34389 \begin_inset Quotes eld
34393 \begin_inset Quotes erd
34396 so that the bottom of the
34397 \begin_inset Quotes eld
34401 \begin_inset Quotes erd
34405 \begin_inset Quotes eld
34409 \begin_inset Quotes erd
34412 is at the baseline, insert the command
34415 \begin_layout Standard
34425 \begin_layout Standard
34426 in TeX-Code before the word.
34427 After the word insert a closing brace
34428 \begin_inset Quotes eld
34436 \begin_inset Quotes erd
34440 \begin_inset Newline newline
34443 This is the result:
34446 \begin_layout Standard
34447 This is a text line with the word
34451 \begin_layout Plain Layout
34463 \begin_inset Quotes eld
34467 \begin_inset Quotes erd
34474 \begin_layout Plain Layout
34484 \begin_layout Standard
34485 \begin_inset VSpace bigskip
34488 When you raise or lower characters in a line, the line distance will be
34492 \begin_layout Standard
34493 This is a text line with the word
34497 \begin_layout Plain Layout
34509 \begin_inset Quotes eld
34513 \begin_inset Quotes erd
34520 \begin_layout Plain Layout
34528 \begin_inset Newline newline
34531 This is a text line with the word
34535 \begin_layout Plain Layout
34545 \begin_inset Quotes eld
34549 \begin_inset Quotes erd
34556 \begin_layout Plain Layout
34566 \begin_layout Standard
34567 If you want to prevent this for a certain reason, set the box height to
34572 \begin_layout Standard
34582 \begin_layout Standard
34583 This is a text line with the word
34587 \begin_layout Plain Layout
34599 \begin_inset Quotes eld
34603 \begin_inset Quotes erd
34610 \begin_layout Plain Layout
34618 \begin_inset Newline newline
34621 This is a text line with the word
34625 \begin_layout Plain Layout
34629 raisebox{0.5cm}[0pt]{
34635 \begin_inset Quotes eld
34639 \begin_inset Quotes erd
34646 \begin_layout Plain Layout
34656 \begin_layout Section
34658 \begin_inset CommandInset label
34660 name "sec:Colored-Boxes"
34665 \begin_inset Index idx
34668 \begin_layout Plain Layout
34677 \begin_layout Subsection
34679 \begin_inset Index idx
34682 \begin_layout Plain Layout
34691 \begin_layout Standard
34692 To color the background of text the text must be put into a so called
34693 \begin_inset Quotes eld
34697 \begin_inset Quotes erd
34701 This requires that the LaTeX-package
34706 \begin_inset Index idx
34709 \begin_layout Plain Layout
34710 LaTeX-packages ! color
34715 is loaded in the document preamble with the command
34718 \begin_layout Standard
34723 @ifundefined{textcolor}
34724 \begin_inset Newline newline
34728 \begin_inset Phantom HPhantom
34731 \begin_layout Plain Layout
34734 \begin_inset space ~
34744 usepackage{color}}{}
34747 \begin_layout Standard
34752 will be loaded automatically by LyX when you color text.
34756 \begin_layout Plain Layout
34757 To avoid it being loaded twice the command
34771 \begin_layout Standard
34772 \begin_inset VSpace medskip
34775 Colorboxes are created with the command
34782 This will be used with the following scheme:
34785 \begin_layout Standard
34790 colorbox{color}{box content}
34793 \begin_layout Standard
34794 The box content can also be a box and colorboxes can also be within other
34798 \begin_layout Standard
34799 The following colors are predefined:
34800 \begin_inset Newline newline
34839 \begin_inset Newline newline
34842 You can also define your own color as described in section
34843 \begin_inset space ~
34847 \begin_inset CommandInset ref
34849 reference "sec:Colored-Tables"
34856 \begin_layout Standard
34858 \begin_inset space \thinspace{}
34862 \begin_inset space \space{}
34865 a red background for a word, insert the command
34868 \begin_layout Standard
34876 \begin_layout Standard
34877 before the word in TeX-Code.
34878 After the word insert a closing brace
34879 \begin_inset Quotes eld
34887 \begin_inset Quotes erd
34891 \begin_inset Newline newline
34894 This is the result:
34897 \begin_layout Standard
34898 This is a line where the word
34902 \begin_layout Plain Layout
34912 \begin_inset Quotes eld
34916 \begin_inset Quotes erd
34923 \begin_layout Plain Layout
34930 has a red background.
34933 \begin_layout Standard
34934 \begin_inset VSpace bigskip
34937 If you would like the box frame in a different color, you can use the command
34944 with the following scheme:
34947 \begin_layout Standard
34952 fcolorbox{frame color}{box color}{box content}
34955 \begin_layout Standard
34969 The frame thickness and the space between the frame and the box content
34970 can be adjusted with the lengths
34982 , respectively, as described in section
34983 \begin_inset space ~
34987 \begin_inset CommandInset ref
34989 reference "sec:Decoration"
34996 \begin_layout Standard
34997 For the following example the command
35000 \begin_layout Standard
35005 fcolorbox{cyan}{magenta}{
35008 \begin_layout Standard
35012 \begin_layout Standard
35013 Here is an example where the frame line thickness was set to 1
35014 \begin_inset space \thinspace{}
35018 \begin_inset Newline newline
35025 \begin_layout Plain Layout
35040 \begin_layout Plain Layout
35044 fcolorbox{cyan}{magenta}{
35049 This is text within a colored, framed box.
35053 \begin_layout Plain Layout
35063 \begin_layout Standard
35064 \begin_inset VSpace bigskip
35067 Of course you can also have colored text inside a colorbox:
35068 \begin_inset Newline newline
35075 \begin_layout Plain Layout
35079 fcolorbox{cyan}{magenta}{
35086 This is colored text within a colored, framed box.
35092 \begin_layout Plain Layout
35103 \begin_layout Plain Layout
35117 \begin_layout Standard
35118 \begin_inset VSpace medskip
35124 \begin_layout Standard
35125 \begin_inset Note Greyedout
35128 \begin_layout Plain Layout
35133 Text in colorboxes cannot have line breaks.
35134 To color multiple text lines or paragraphs, use a box inside a colorbox
35135 as described in the following.
35143 \begin_layout Subsection
35144 Color for Paragraphs
35145 \begin_inset CommandInset label
35147 name "sub:Color-for-Paragraphs"
35152 \begin_inset Index idx
35155 \begin_layout Plain Layout
35156 Color ! for Paragraphs
35164 \begin_layout Standard
35165 To set the background color for more than one text line, put the text into
35167 Before the minipage insert the
35176 \begin_layout Standard
35184 \begin_layout Standard
35186 After the minipage insert a closing brace
35187 \begin_inset Quotes eld
35195 \begin_inset Quotes erd
35201 \begin_layout Standard
35205 \begin_layout Plain Layout
35209 colorbox{lightgrey}{
35215 \begin_inset Box Frameless
35225 height_special "totalheight"
35228 \begin_layout Plain Layout
35229 This is text with background color.
35230 This is text with background color.
35233 \begin_layout Plain Layout
35234 \begin_inset VSpace defskip
35237 The text can have footnotes
35241 \begin_layout Plain Layout
35242 Another example footnote
35247 and can include tables and figures.
35250 \begin_layout Plain Layout
35252 \begin_inset Tabular
35253 <lyxtabular version="3" rows="3" columns="3">
35254 <features tabularvalignment="middle">
35255 <column alignment="center" valignment="top" width="0">
35256 <column alignment="center" valignment="top" width="0">
35257 <column alignment="center" valignment="top" width="0">
35259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35262 \begin_layout Plain Layout
35268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35271 \begin_layout Plain Layout
35277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35280 \begin_layout Plain Layout
35288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35291 \begin_layout Plain Layout
35297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35300 \begin_layout Plain Layout
35302 \begin_inset Quotes erd
35310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35313 \begin_layout Plain Layout
35321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35324 \begin_layout Plain Layout
35330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35333 \begin_layout Plain Layout
35339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35342 \begin_layout Plain Layout
35362 \begin_layout Plain Layout
35372 \begin_layout Section
35373 Rotated and Scaled Boxes
35376 \begin_layout Standard
35377 To use the commands described in this section, the LaTeX-package
35382 \begin_inset Index idx
35385 \begin_layout Plain Layout
35386 LaTeX-packages ! graphicx
35391 needs to be loaded in the document preamble with the command
35394 \begin_layout Standard
35399 @ifundefined{rotatebox}
35400 \begin_inset Newline newline
35404 \begin_inset Phantom HPhantom
35407 \begin_layout Plain Layout
35410 \begin_inset space ~
35420 usepackage{graphicx}}{}
35423 \begin_layout Standard
35424 \begin_inset Note Greyedout
35427 \begin_layout Plain Layout
35432 Not all DVI-viewers are able to display rotated or scaled material.
35440 \begin_layout Standard
35441 \begin_inset Note Greyedout
35444 \begin_layout Plain Layout
35449 Floats are not allowed inside a rotated or scaled box.
35457 \begin_layout Subsection
35459 \begin_inset Index idx
35462 \begin_layout Plain Layout
35469 \begin_inset Index idx
35472 \begin_layout Plain Layout
35481 \begin_layout Standard
35482 To rotate material, you can put it into a rotated box.
35483 Such a box is created using the command
35489 in TeX-Code with the following scheme:
35492 \begin_layout Standard
35497 rotatebox[rotation origin]{rotation angle}{box content}
35500 \begin_layout Standard
35501 The rotation origin is specified in the form
35506 The following positions are possible:
35526 (top), along with meaningful combinations of the four base positions.
35531 means that the rotation origin is at the top left corner of the box.
35532 When no rotation origin is specified, the position
35537 The rotation angle is a number that can be negative that specifies the
35539 The rotation direction is counterclockwise.
35542 \begin_layout Standard
35543 In the following example the command
35547 rotatebox[origin=c]{60}{
35549 was inserted as TeX-Code before the text
35550 \begin_inset Quotes eld
35554 \begin_inset Quotes erd
35557 ; after the text the box was closed by a closing brace
35564 \begin_layout Standard
35569 \begin_layout Plain Layout
35573 rotatebox[origin=c]{60}{
35582 \begin_layout Plain Layout
35592 \begin_layout Standard
35593 The box content can also be another box or an inline formula:
35596 \begin_layout Standard
35601 \begin_layout Plain Layout
35605 rotatebox[origin=r]{-60}{
35611 \begin_inset Box Doublebox
35621 height_special "totalheight"
35624 \begin_layout Plain Layout
35634 \begin_layout Plain Layout
35645 \begin_layout Plain Layout
35649 rotatebox[origin=lb]{60}{
35655 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35662 \begin_layout Plain Layout
35672 \begin_layout Standard
35673 or an image or table:
35676 \begin_layout Standard
35681 \begin_layout Plain Layout
35685 rotatebox[origin=lb]{90}{
35691 \begin_inset Graphics
35692 filename clipart/platypus.eps
35702 \begin_layout Plain Layout
35709 with a rotated image
35713 \begin_layout Plain Layout
35717 rotatebox[origin=l]{-90}{
35723 \begin_inset Tabular
35724 <lyxtabular version="3" rows="2" columns="2">
35725 <features tabularvalignment="middle">
35726 <column alignment="center" valignment="top" width="0">
35727 <column alignment="center" valignment="top" width="0">
35729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35732 \begin_layout Plain Layout
35738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35741 \begin_layout Plain Layout
35749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35752 \begin_layout Plain Layout
35758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35761 \begin_layout Plain Layout
35776 \begin_layout Plain Layout
35784 \begin_inset Index idx
35787 \begin_layout Plain Layout
35794 \begin_inset Index idx
35797 \begin_layout Plain Layout
35798 Table Customization ! Rotating
35806 \begin_layout Subsection
35808 \begin_inset Index idx
35811 \begin_layout Plain Layout
35818 \begin_inset Index idx
35821 \begin_layout Plain Layout
35830 \begin_layout Standard
35831 To scale material the commands
35843 can be used as TeX-Code.
35846 \begin_layout Standard
35853 is used with the following scheme:
35856 \begin_layout Standard
35861 scalebox{horizontal}[vertical]{box content}
35864 \begin_layout Standard
35865 Horizontal and vertical are the corresponding scaling factors.
35866 If no vertical scaling factor is given, the horizontal factor will also
35867 be used as the vertical one.
35870 \begin_layout Standard
35877 creates for example a double size
35881 \begin_layout Plain Layout
35894 \begin_layout Plain Layout
35901 , compared with the document text size.
35904 \begin_layout Standard
35909 scalebox{2}[1]{Hello}
35911 on the other hand distorts the
35915 \begin_layout Plain Layout
35928 \begin_layout Plain Layout
35938 \begin_layout Standard
35939 If the scaling factor is negative, the box content will be mirrored.
35940 Therefore the command
35944 scalebox{-1}[1]{Hello}
35946 can be used to create mirror writing:
35950 \begin_layout Plain Layout
35963 \begin_layout Plain Layout
35973 \begin_layout Standard
35978 scalebox{1}[-1]{Hello}
35984 \begin_layout Plain Layout
35997 \begin_layout Plain Layout
36007 \begin_layout Standard
36012 scalebox{-1}[1]{box content}
36014 there exists the command
36015 \begin_inset Newline newline
36022 reflectbox{box content}
36027 \begin_layout Standard
36028 \begin_inset VSpace bigskip
36037 is used to scale the box to a defined width and height.
36038 The command scheme is:
36041 \begin_layout Standard
36046 resizebox{width}{height}{box content}
36049 \begin_layout Standard
36050 If one of the two command arguments given is an exclamation mark
36054 , the size is set so that the aspect ratio of the box content is kept.
36057 \begin_layout Standard
36062 resizebox{2cm}{1cm}{Hello}
36068 \begin_layout Plain Layout
36072 resizebox{2cm}{1cm}{
36081 \begin_layout Plain Layout
36089 \begin_inset Newline newline
36096 resizebox{2cm}{!}{Hello}
36102 \begin_layout Plain Layout
36115 \begin_layout Plain Layout
36125 \begin_layout Standard
36126 \begin_inset VSpace bigskip
36130 \begin_inset Note Greyedout
36133 \begin_layout Plain Layout
36150 are set to zero, no LaTeX-errors occur when exporting the document but
36151 the exported files can not or only partly be displayed.
36159 \begin_layout Standard
36160 \begin_inset VSpace bigskip
36166 \begin_layout Standard
36167 The boxes can be combined in any order.
36169 \begin_inset space \thinspace{}
36173 \begin_inset space \space{}
36177 \begin_inset Newline newline
36184 rotatebox[origin=c]{-45}{
36188 reflectbox{Hello}}}
36189 \begin_inset Newline newline
36197 \begin_layout Standard
36202 \begin_layout Plain Layout
36206 rotatebox[origin=c]{-45}{
36219 \begin_layout Plain Layout
36229 \begin_layout Standard
36231 Images, tables, and inline formulas are allowed as box content:
36234 \begin_layout Standard
36239 \begin_layout Plain Layout
36243 rotatebox[origin=c]{-30}{
36253 \begin_inset Graphics
36254 filename clipart/platypus.eps
36264 \begin_layout Plain Layout
36275 \begin_layout Plain Layout
36279 rotatebox[origin=c]{-45}{
36289 \begin_inset Tabular
36290 <lyxtabular version="3" rows="2" columns="2">
36291 <features tabularvalignment="middle">
36292 <column alignment="center" valignment="top" width="0">
36293 <column alignment="center" valignment="top" width="0">
36295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36298 \begin_layout Plain Layout
36304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36307 \begin_layout Plain Layout
36315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36318 \begin_layout Plain Layout
36324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36327 \begin_layout Plain Layout
36342 \begin_layout Plain Layout
36353 \begin_layout Plain Layout
36357 rotatebox[origin=c]{-45}{
36367 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36374 \begin_layout Plain Layout
36382 \begin_inset Index idx
36385 \begin_layout Plain Layout
36392 \begin_inset Index idx
36395 \begin_layout Plain Layout
36396 Table Customization ! Scaling
36404 \begin_layout Standard
36405 When the global formula style
36409 is used in the document
36413 \begin_layout Plain Layout
36415 \begin_inset Quotes eld
36419 \begin_inset Quotes erd
36422 is added to the document class options.
36427 , display style formulas can also be scaled.
36430 \begin_layout Chapter
36431 Objects Surrounded by Text
36432 \begin_inset Index idx
36435 \begin_layout Plain Layout
36444 \begin_layout Section
36446 \begin_inset CommandInset label
36448 name "sec:Wrap-Floats"
36453 \begin_inset Index idx
36456 \begin_layout Plain Layout
36457 Floats ! Wrap Floats
36463 \begin_inset Index idx
36466 \begin_layout Plain Layout
36467 Surrounded by text ! Wrap Floats
36475 \begin_layout Standard
36476 \begin_inset Wrap figure
36483 \begin_layout Plain Layout
36484 \begin_inset Graphics
36485 filename clipart/mobius.eps
36487 scaleBeforeRotation
36488 rotateOrigin center
36495 \begin_layout Plain Layout
36496 \begin_inset Caption
36498 \begin_layout Plain Layout
36499 \begin_inset CommandInset label
36501 name "fig:This-is-a"
36505 This is a figure wrap float.
36515 This float type is used if you want to wrap text around a figure or table
36516 so that it only occupies some fraction of the column width.
36517 It can be inserted using the menu
36519 Insert\SpecialChar \menuseparator
36520 Floats\SpecialChar \menuseparator
36522 \begin_inset space ~
36526 \begin_inset space ~
36534 \begin_inset space ~
36538 \begin_inset space ~
36543 if the LaTeX-package
36548 \begin_inset Index idx
36551 \begin_layout Plain Layout
36552 LaTeX-packages ! wrapfig
36561 \begin_layout Plain Layout
36562 Installing a LaTeX-package is explained it in the
36565 \begin_inset space ~
36575 The settings of the float can be modified by right-clicking on the float
36577 The mandatory settings are the float
36590 that specifies how much the float is set into the paragraph
36591 \begin_inset space \thinspace{}
36595 \begin_inset space \thinspace{}
36598 page margin, and the
36601 \begin_inset space ~
36606 that specifies how many text lines the float will approximately need.
36607 The line span is often hard to approximate; so it is better only to use
36608 it when you encounter float placement problems.
36609 You can furthermore decide if LaTeX is allowed to let the float float within
36610 the paragraph or to surrounding paragraphs.
36612 \begin_inset space ~
36616 \begin_inset CommandInset ref
36618 reference "fig:This-is-a"
36622 is an example text wrap float with a width of 40
36623 \begin_inset space \thinspace{}
36627 \begin_inset space \thinspace{}
36630 cm overhang, set to the left.
36633 \begin_layout Standard
36634 \begin_inset Note Greyedout
36637 \begin_layout Plain Layout
36643 \begin_inset space ~
36646 wrap float floats are fragile! E.
36647 \begin_inset space \thinspace{}
36651 \begin_inset space \space{}
36654 having a figure too close to the bottom of the page can mess things up in
36655 such a way that the float does not appear in the output or that it is placed
36656 over some other text.
36664 \begin_layout Standard
36665 In general, the following applies for wrap floats:
36668 \begin_layout Itemize
36669 They should not be placed in paragraphs that run over a page break.
36670 That means that wrap floats are better inserted in their exact place when
36671 the document is almost finished and you are able to estimate where page
36672 breaks will appear.
36675 \begin_layout Itemize
36676 They should either be placed in their own paragraph before the paragraph
36677 where they should wrap into or within a paragraph.
36680 \begin_layout Itemize
36681 In consecutive paragraphs they may cause troubles, so ensure that there
36682 is a text paragraph between them as separator.
36685 \begin_layout Itemize
36686 They are not allowed in section headings or tables.
36689 \begin_layout Itemize
36690 Their numbering and referencing works as described in chap.
36691 \begin_inset space \thinspace{}
36695 \begin_inset CommandInset ref
36697 reference "chap:Floats"
36704 \begin_layout Section
36705 Surrounded Fixed Objects
36706 \begin_inset Index idx
36709 \begin_layout Plain Layout
36710 Surrounded by text ! Fixed objects
36718 \begin_layout Standard
36719 The wrap floats described in sec.
36720 \begin_inset space \thinspace{}
36724 \begin_inset CommandInset ref
36726 reference "sec:Wrap-Floats"
36730 have these positions in the paragraph:
36733 \begin_layout Standard
36736 \begin_inset Tabular
36737 <lyxtabular version="3" rows="2" columns="2">
36738 <features tabularvalignment="middle">
36739 <column alignment="center" valignment="top" width="0">
36740 <column alignment="center" valignment="top" width="0">
36742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36745 \begin_layout Plain Layout
36746 \begin_inset Graphics
36747 filename ../images/dialog-show-new-inset_graphics.png
36749 scaleBeforeRotation
36758 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36761 \begin_layout Plain Layout
36769 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36772 \begin_layout Plain Layout
36778 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36781 \begin_layout Plain Layout
36793 \begin_inset Tabular
36794 <lyxtabular version="3" rows="2" columns="2">
36795 <features tabularvalignment="middle">
36796 <column alignment="center" valignment="top" width="0">
36797 <column alignment="center" valignment="top" width="0">
36799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36802 \begin_layout Plain Layout
36808 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36811 \begin_layout Plain Layout
36812 \begin_inset Graphics
36813 filename ../images/dialog-show-new-inset_graphics.png
36815 scaleBeforeRotation
36826 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36829 \begin_layout Plain Layout
36835 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36838 \begin_layout Plain Layout
36852 \begin_layout Standard
36853 To get an object exactly at the position where it is inserted, for example
36854 to get one of these positions:
36855 \begin_inset VSpace defskip
36861 \begin_layout Standard
36864 \begin_inset Tabular
36865 <lyxtabular version="3" rows="2" columns="2">
36866 <features tabularvalignment="middle">
36867 <column alignment="center" valignment="top" width="0">
36868 <column alignment="center" valignment="top" width="0">
36870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36873 \begin_layout Plain Layout
36879 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36882 \begin_layout Plain Layout
36890 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36893 \begin_layout Plain Layout
36894 \begin_inset Graphics
36895 filename ../images/dialog-show-new-inset_graphics.png
36897 scaleBeforeRotation
36906 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36909 \begin_layout Plain Layout
36921 \begin_inset Tabular
36922 <lyxtabular version="3" rows="2" columns="2">
36923 <features tabularvalignment="middle">
36924 <column alignment="center" valignment="top" width="0">
36925 <column alignment="center" valignment="top" width="0">
36927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36930 \begin_layout Plain Layout
36936 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36939 \begin_layout Plain Layout
36947 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36950 \begin_layout Plain Layout
36956 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36959 \begin_layout Plain Layout
36960 \begin_inset Graphics
36961 filename ../images/dialog-show-new-inset_graphics.png
36963 scaleBeforeRotation
36978 \begin_inset Tabular
36979 <lyxtabular version="3" rows="2" columns="3">
36980 <features tabularvalignment="middle">
36981 <column alignment="center" valignment="top" width="0">
36982 <column alignment="center" valignment="top" width="0">
36983 <column alignment="center" valignment="top" width="0">
36985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36988 \begin_layout Plain Layout
36994 <cell alignment="center" valignment="top" topline="true" usebox="none">
36997 \begin_layout Plain Layout
36998 \begin_inset Graphics
36999 filename ../images/dialog-show-new-inset_graphics.png
37001 scaleBeforeRotation
37010 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37013 \begin_layout Plain Layout
37021 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37024 \begin_layout Plain Layout
37030 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37033 \begin_layout Plain Layout
37039 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37042 \begin_layout Plain Layout
37054 \begin_inset Tabular
37055 <lyxtabular version="3" rows="2" columns="3">
37056 <features tabularvalignment="middle">
37057 <column alignment="center" valignment="top" width="0">
37058 <column alignment="center" valignment="top" width="0">
37059 <column alignment="center" valignment="top" width="0">
37061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37064 \begin_layout Plain Layout
37070 <cell alignment="center" valignment="top" topline="true" usebox="none">
37073 \begin_layout Plain Layout
37079 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37082 \begin_layout Plain Layout
37090 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37093 \begin_layout Plain Layout
37099 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37102 \begin_layout Plain Layout
37103 \begin_inset Graphics
37104 filename ../images/dialog-show-new-inset_graphics.png
37106 scaleBeforeRotation
37115 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37118 \begin_layout Plain Layout
37132 \begin_layout Standard
37135 \begin_inset Tabular
37136 <lyxtabular version="3" rows="3" columns="2">
37137 <features tabularvalignment="middle">
37138 <column alignment="center" valignment="top" width="0">
37139 <column alignment="center" valignment="top" width="0">
37141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37144 \begin_layout Plain Layout
37150 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37153 \begin_layout Plain Layout
37161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37164 \begin_layout Plain Layout
37165 \begin_inset Graphics
37166 filename ../images/dialog-show-new-inset_graphics.png
37168 scaleBeforeRotation
37177 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37180 \begin_layout Plain Layout
37188 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37191 \begin_layout Plain Layout
37197 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37200 \begin_layout Plain Layout
37212 \begin_inset Tabular
37213 <lyxtabular version="3" rows="3" columns="3">
37214 <features tabularvalignment="middle">
37215 <column alignment="center" valignment="top" width="0">
37216 <column alignment="center" valignment="top" width="0">
37217 <column alignment="center" valignment="top" width="0">
37219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37222 \begin_layout Plain Layout
37228 <cell alignment="center" valignment="top" topline="true" usebox="none">
37231 \begin_layout Plain Layout
37237 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37240 \begin_layout Plain Layout
37248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37251 \begin_layout Plain Layout
37257 <cell alignment="center" valignment="top" usebox="none">
37260 \begin_layout Plain Layout
37261 \begin_inset Graphics
37262 filename ../images/dialog-show-new-inset_graphics.png
37264 scaleBeforeRotation
37273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37276 \begin_layout Plain Layout
37284 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37287 \begin_layout Plain Layout
37293 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37296 \begin_layout Plain Layout
37302 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37305 \begin_layout Plain Layout
37317 \begin_inset Tabular
37318 <lyxtabular version="3" rows="3" columns="2">
37319 <features tabularvalignment="middle">
37320 <column alignment="center" valignment="top" width="0">
37321 <column alignment="center" valignment="top" width="0">
37323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37326 \begin_layout Plain Layout
37332 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37335 \begin_layout Plain Layout
37343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37346 \begin_layout Plain Layout
37352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37355 \begin_layout Plain Layout
37356 \begin_inset Graphics
37357 filename ../images/dialog-show-new-inset_graphics.png
37359 scaleBeforeRotation
37370 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37373 \begin_layout Plain Layout
37379 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37382 \begin_layout Plain Layout
37396 \begin_layout Standard
37398 you can use the LaTeX-package
37403 \begin_inset Index idx
37406 \begin_layout Plain Layout
37407 LaTeX-packages ! picinpar
37413 Here is an example:
37416 \begin_layout Standard
37420 \begin_layout Plain Layout
37430 \begin_inset Note Note
37433 \begin_layout Plain Layout
37434 The following section will only be displayed when the LaTeX-package
37446 \begin_layout Standard
37450 \begin_layout Plain Layout
37454 begin{window}[2,c,{
37460 \begin_inset Graphics
37461 filename clipart/mobius.eps
37464 scaleBeforeRotation
37465 rotateOrigin center
37473 \begin_layout Plain Layout
37478 \begin_layout Plain Layout
37487 It was in the spring of the year 1894 that all London was interested, and
37488 the fashionable world dismayed, by the murder of the Honourable Ronald
37489 Adair under most unusual and inexplicable circumstances.
37490 The public has already learned those particulars of the crime which
37496 \begin_layout Plain Layout
37507 came out in the police investigation, but a good deal was suppressed upon
37508 that occasion, since the case for the prosecution was so overwhelmingly
37509 strong that it was not necessary to bring forward all the facts.
37510 Only now, at the end of nearly ten years, am I allowed to supply those
37511 missing links which make up the whole of that remarkable chain.
37517 \begin_layout Plain Layout
37529 \begin_layout Standard
37533 \begin_layout Plain Layout
37542 Footnote of the paragraph with the fixed object.
37546 \begin_layout Plain Layout
37556 \begin_layout Standard
37557 Surrounded fixed objects are used to let text float around them, at which
37558 the object's position in the paragraph can be determined by the number
37560 In contrary to floats is it not possible to have a numbered caption.
37563 \begin_layout Standard
37564 A fixed object is inserted by adding the command
37567 \begin_layout Standard
37572 begin{window}[2,c,{
37575 \begin_layout Standard
37576 as TeX-Code at the beginning of the paragraph.
37577 The first parameter in the bracket, here '2', defines the number of lines
37578 above the object, the second, here 'c', the position of the object.
37579 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37580 Behind the command you insert the object.
37581 In this example an image with a width of 40
37582 \begin_inset space \thinspace{}
37585 % of the text column width was inserted.
37586 The object can also be a table, a box or an equation.
37587 Behind the object the command
37590 \begin_layout Standard
37593 },description text]
37594 \begin_inset Newline newline
37600 \begin_layout Standard
37603 \begin_inset Quotes eld
37611 \begin_inset Quotes erd
37614 is in the second line.
37615 The description text is optional.
37616 The text surrounding the object must be in the same paragraph as the object,
37617 so it must begin directly after the
37622 At the end of the paragraph insert the command:
37625 \begin_layout Standard
37633 \begin_layout Standard
37634 Within a paragraph with a fixed object, you cannot insert footnotes in the
37636 You have to use instead the command
37642 inside the paragraph and outside the command
37648 as described in sec.
37649 \begin_inset space \thinspace{}
37653 \begin_inset CommandInset ref
37655 reference "sec:Footnotes"
37662 \begin_layout Standard
37666 \begin_layout Plain Layout
37676 \begin_inset Note Note
37679 \begin_layout Plain Layout
37680 The following will be displayed when the LaTeX-package
37692 \begin_layout Standard
37693 You need to install the LaTeX-package
37697 to see the following part of this section in the output.
37700 \begin_layout Standard
37704 \begin_layout Plain Layout
37716 \begin_layout Section
37718 \begin_inset Index idx
37721 \begin_layout Plain Layout
37728 \begin_inset Index idx
37731 \begin_layout Plain Layout
37732 Surrounded by text ! Initials
37740 \begin_layout Standard
37741 To use initials, you must have the LaTeX-package
37746 \begin_inset Index idx
37749 \begin_layout Plain Layout
37750 LaTeX-packages ! lettrine
37755 installed and use the module
37759 in your document (menu
37761 Document\SpecialChar \menuseparator
37762 Settings\SpecialChar \menuseparator
37766 To insert an initial, use the style
37771 This style has a mandatory and an optional argument.
37772 The mandatory argument is inserted via the menu
37774 Insert\SpecialChar \menuseparator
37776 \begin_inset space ~
37781 and contains the letter that is the initial.
37782 To use also the optional argument, insert another argument in front of
37783 the mandatory argument.
37784 This one contains parameters to modify the initial.
37785 For more information about the possible parameters see the documentation
37791 \begin_inset CommandInset citation
37798 The style itself contains the text that is surrounding the initial.
37799 The usual style is hereby that the word whose first letter is the initial,
37805 To tell LaTeX where this word is finished, add a closing brace '
37809 ' as TeX-Code behind it.
37810 At the end of the style there must be an opening brace '
37817 \begin_layout Standard
37818 Here are some examples:
37821 \begin_layout Standard
37825 \begin_layout Plain Layout
37835 \begin_inset Note Note
37838 \begin_layout Plain Layout
37839 The following section will only be displayed when the LaTeX-package
37851 \begin_layout Enumerate
37852 No optional argument, the initial is the letter 'I' in the math font
37853 \begin_inset Formula $\mathfrak{Fraktur}$
37860 \begin_layout Initial
37861 \begin_inset Argument
37864 \begin_layout Plain Layout
37865 \begin_inset Formula $\mathfrak{I}$
37877 \begin_layout Plain Layout
37884 was in the spring of the year 1894 that all London was interested, and
37885 the fashionable world dismayed, by the murder of the Honourable Ronald
37886 Adair under most unusual and inexplicable circumstances.
37887 The public has already learned those particulars of the crime which came
37888 out in the police investigation, but a good deal was suppressed upon that
37889 occasion, since the case for the prosecution was so overwhelmingly strong
37890 that it was not necessary to bring forward all the facts.
37894 \begin_layout Plain Layout
37902 \begin_inset Newpage newpage
37909 \begin_layout Enumerate
37910 Only one line is surrounding the initial, which is formed by two letters
37911 in standard font and no text is printed in small caps:
37915 \begin_layout Initial
37916 \begin_inset Argument
37919 \begin_layout Plain Layout
37926 \begin_inset Argument
37929 \begin_layout Plain Layout
37939 \begin_layout Plain Layout
37946 was in the spring of the year 1894 that all London was interested, and
37947 the fashionable world dismayed, by the murder of the Honourable Ronald
37948 Adair under most unusual and inexplicable circumstances.
37949 The public has already learned those particulars of the crime which came
37950 out in the police investigation, but a good deal was suppressed upon that
37951 occasion, since the case for the prosecution was so overwhelmingly strong
37952 that it was not necessary to bring forward all the facts.
37956 \begin_layout Plain Layout
37967 \begin_layout Enumerate
37968 Magenta, hanging initial over 3
37969 \begin_inset space ~
37972 lines in the math font
37973 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37977 \begin_inset Quotes eld
37980 t was in the spring
37981 \begin_inset Quotes erd
37988 ; to color the initial, you must insert this command before the initial:
37989 \begin_inset Newline newline
38003 \begin_inset Newline newline
38011 \begin_inset Quotes eld
38015 \begin_inset Quotes erd
38019 \begin_inset Quotes eld
38023 \begin_inset Quotes erd
38027 \begin_inset Quotes eld
38031 \begin_inset Quotes erd
38035 \begin_inset Quotes eld
38039 \begin_inset Quotes erd
38043 \begin_inset Quotes eld
38047 \begin_inset Quotes erd
38051 \begin_inset Quotes eld
38055 \begin_inset Quotes erd
38059 \begin_inset Quotes eld
38063 \begin_inset Quotes erd
38067 \begin_inset Quotes eld
38071 \begin_inset Quotes erd
38074 , and add this command to the document preamble:
38075 \begin_inset Newline newline
38082 @ifundefined{textcolor}
38083 \begin_inset Newline newline
38087 \begin_inset space ~
38092 usepackage{color}}{}
38096 \begin_layout Standard
38100 \begin_layout Plain Layout
38114 \begin_inset Note Note
38117 \begin_layout Plain Layout
38118 makes the initial magenta
38126 \begin_layout Initial
38127 \begin_inset Argument
38130 \begin_layout Plain Layout
38131 lines=3, lhang=0.33, loversize=0.25
38137 \begin_inset Argument
38140 \begin_layout Plain Layout
38141 \begin_inset Formula $\mathcal{I}$
38149 t was in the spring
38153 \begin_layout Plain Layout
38160 of the year 1894 that all London was interested, and the fashionable world
38161 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38162 and inexplicable circumstances.
38163 The public has already learned those particulars of the crime which came
38164 out in the police investigation, but a good deal was suppressed upon that
38165 occasion, since the case for the prosecution was so overwhelmingly strong
38166 that it was not necessary to bring forward all the facts.
38170 \begin_layout Plain Layout
38181 \begin_layout Standard
38185 \begin_layout Plain Layout
38195 \begin_inset Note Note
38198 \begin_layout Plain Layout
38199 The following will be displayed when the LaTeX-package
38211 \begin_layout Standard
38212 You need to install the LaTeX-package
38216 to see the following part of this section in the output.
38219 \begin_layout Standard
38223 \begin_layout Plain Layout
38235 \begin_layout Chapter
38236 External Document Parts
38237 \begin_inset Index idx
38240 \begin_layout Plain Layout
38241 External Document Parts
38249 \begin_layout Standard
38252 Insert\SpecialChar \menuseparator
38255 you can insert external material into your document.
38259 \begin_layout Description
38261 \begin_inset space ~
38264 Document Another LyX document; its content is directly inserted to your
38268 \begin_layout Description
38270 \begin_inset space ~
38273 Text A text document; each line is inserted in your document as a separate
38277 \begin_layout Description
38279 \begin_inset space ~
38283 \begin_inset space ~
38287 \begin_inset space ~
38290 Lines A text document; text lines are inserted in your document continuously
38291 but an empty text line creates a new paragraph.
38294 \begin_layout Description
38296 \begin_inset space ~
38299 Material Files in various formats.
38302 \begin_layout Description
38304 \begin_inset space ~
38307 Document LyX or LaTeX-documents.
38310 \begin_layout Section
38312 \begin_inset Index idx
38315 \begin_layout Plain Layout
38316 External Document Parts ! External Material
38324 \begin_layout Standard
38325 The external material feature allows you to insert files into your document
38326 without converting them to a format that can be read by the document output
38328 LyX takes care of the necessary conversions.
38329 This is similar to images that can be inserted in various image formats
38331 When you have enabled Instant Preview in LyX's preferences under
38334 \begin_inset space ~
38338 \begin_inset space ~
38341 feel\SpecialChar \menuseparator
38344 , the external material types Dia and Xfig are directly shown in LyX.
38347 \begin_layout Standard
38348 External material can be inserted via the
38352 dialog that is accessible with the menu
38354 Insert\SpecialChar \menuseparator
38355 File\SpecialChar \menuseparator
38357 \begin_inset space ~
38363 Currently the following file types (
38370 \begin_layout Description
38371 ChessDiagram This template supports chess position diagrams made with the
38375 \begin_inset CommandInset href
38378 target "http://en.wikipedia.org/wiki/XBoard"
38387 \begin_layout Description
38388 Date This inserts the date in the form
38393 This is a date inserted as external material:
38394 \begin_inset External
38401 \begin_inset space ~
38405 \begin_inset Note Note
38408 \begin_layout Plain Layout
38409 Remove the protected space when bug 4398 is fixed!
38415 \begin_inset Newline newline
38418 The date is not shown within LyX, only in the output.
38419 There are two other methods of inserting a date: Via menu
38421 Insert\SpecialChar \menuseparator
38424 and with the LaTeX command
38431 The different methods are compared in Table
38432 \begin_inset space ~
38436 \begin_inset CommandInset ref
38438 reference "tab:Comparison-of-the"
38445 \begin_layout Description
38446 Dia This template supports diagrams created with the program
38449 \begin_inset CommandInset href
38452 target "http://en.wikipedia.org/wiki/Dia_(software)"
38461 \begin_layout Description
38462 GnumericSpreadsheet With this template you can insert spreadsheets
38463 \begin_inset space \thinspace{}
38467 \begin_inset space \thinspace{}
38470 tables in the format of
38473 \begin_inset CommandInset href
38476 target "http://en.wikipedia.org/wiki/Gnumeric"
38483 \begin_inset CommandInset href
38485 name "OpenDocument"
38486 target "http://en.wikipedia.org/wiki/OpenDocument"
38491 \begin_inset CommandInset href
38493 name "Microsoft Office XML"
38494 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38499 \begin_inset CommandInset href
38501 name "Office Open XML"
38502 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38507 For this feature LyX must have found the program
38511 during its configuration.
38512 This program is part of Gnumeric, so that you must have Gnumeric installed,
38513 also if you don't have tables in the Gnumeric format.
38514 For examples and possible limitations have a look at LyX's example file
38522 \begin_layout Description
38523 LilyPond This template is used for music notation typeset with the program
38524 \begin_inset Newline linebreak
38530 \begin_inset CommandInset href
38533 target "http://en.wikipedia.org/wiki/LilyPond"
38540 For LyX's extended support for LilyPond have a look at LyX's example file
38548 \begin_layout Description
38549 PDFPages With this template you can insert PDF documents to your document.
38550 To specify the range of pages that should be included, use the option
38560 LaTeX and LyX options
38563 The argument of this option is a comma separated list, containing page
38564 numbers (insert as option
38568 ), ranges of page numbers (
38572 ) or any combination.
38573 To insert empty pages use {}.
38575 \begin_inset space \thinspace{}
38579 \begin_inset space ~
38584 pages={3,{},8-11,15}
38586 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38587 Page ranges are specified in the syntax
38596 This selects all pages from
38609 defaults to the first page; omitting
38613 defaults to the last page of the document.
38614 The last page can also be selected with the keyword
38619 (This is only permitted in a page range.) So
38623 will insert all pages of the document and
38627 will insert all pages in reverse order.
38628 If the pages option is not specified, only the first page of the PDF is
38630 \begin_inset Newline newline
38637 inserts the pages with their original size, if this option is not given,
38638 the pages will be resized to fith the width of the page of your document.
38643 you can specify the width and height of the input pages and their rotation.
38644 If another width than 100
38645 \begin_inset space \thinspace{}
38648 Scale% is used, the option
38652 will be overwritten.
38653 For more info and possible options, have a look into the documentation
38654 of the LaTeX-package
38659 \begin_inset CommandInset citation
38666 \begin_inset Index idx
38669 \begin_layout Plain Layout
38670 LaTeX-packages ! pdfpages
38676 \begin_inset Newline newline
38679 To use this template in a
38683 presentation you need to first insert an
38687 environment and in a subsequent paragraph a TeX-Code box containing the
38692 setbeamertemplate{background canvas}{}
38695 Then you can insert as many paragraphs containing the PDFPages template
38697 Behind the included PDF pages you can resume the Beamer presentation by
38698 beginning a new frame or by starting a new section.
38699 To avoid stray blank pages prior to the PDF pages, make sure to use the
38704 alignment for the paragraph containing the template.
38705 \begin_inset Newline newline
38708 Here is an included PDF which is rotated by -5°:
38709 \begin_inset External
38711 filename clipart/Abstract.pdf
38712 extra LaTeX "noautoscale, pages=-"
38714 rotateOrigin bottomleft
38721 \begin_layout Description
38722 RasterImage This can be used for bitmap images.
38723 The image can be treated in the
38727 dialog like the images that are usually included via the
38731 dialog as described in section
38732 \begin_inset space ~
38736 \begin_inset CommandInset ref
38738 reference "sec:Graphics-Dialog"
38743 The difference to the normal image input is that only raster images are
38744 allowed; that means that PDF and EPS-images are not supported.
38745 Here is an inserted raster image:
38746 \begin_inset External
38747 template RasterImage
38748 filename clipart/ToolbarEnvBox.png
38755 \begin_layout Description
38756 XFig This template supports images created with the program
38759 \begin_inset CommandInset href
38762 target "http://en.wikipedia.org/wiki/Xfig"
38771 \begin_layout Standard
38772 \begin_inset Float table
38778 \begin_layout Plain Layout
38779 \begin_inset Caption
38781 \begin_layout Plain Layout
38782 \begin_inset CommandInset label
38784 name "tab:Comparison-of-the"
38788 Comparison of the date input methods.
38796 \begin_layout Plain Layout
38798 \begin_inset Tabular
38799 <lyxtabular version="3" rows="4" columns="4">
38800 <features tabularvalignment="middle">
38801 <column alignment="center" valignment="top" width="0">
38802 <column alignment="center" valignment="top" width="0">
38803 <column alignment="center" valignment="top" width="0">
38804 <column alignment="center" valignment="top" width="0">
38806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38809 \begin_layout Plain Layout
38815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38818 \begin_layout Plain Layout
38821 External Material\SpecialChar \menuseparator
38827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38830 \begin_layout Plain Layout
38833 Insert\SpecialChar \menuseparator
38839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38842 \begin_layout Plain Layout
38854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38857 \begin_layout Plain Layout
38863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38866 \begin_layout Plain Layout
38872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38875 \begin_layout Plain Layout
38881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38884 \begin_layout Plain Layout
38885 as TeX-Code inset box
38892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38895 \begin_layout Plain Layout
38901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38904 \begin_layout Plain Layout
38910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38913 \begin_layout Plain Layout
38919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38922 \begin_layout Plain Layout
38930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38933 \begin_layout Plain Layout
38939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38942 \begin_layout Plain Layout
38948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38951 \begin_layout Plain Layout
38957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38960 \begin_layout Plain Layout
38979 \begin_layout Standard
38980 When you use the option
38992 dialog, only the path to the inserted file is shown in the output.
38993 \begin_inset Newline newline
38996 External material is displayed in LyX either as a box like this:
38997 \begin_inset Graphics
38998 filename clipart/ExternalMaterialQt4.png
39000 scaleBeforeRotation
39004 or as image, depending on the option
39010 LaTeX and LyX options
39015 \begin_layout Standard
39022 manual explains how you can define your own templates.
39025 \begin_layout Section
39027 \begin_inset CommandInset label
39029 name "sec:Child-Documents"
39034 \begin_inset Index idx
39037 \begin_layout Plain Layout
39038 External Document Parts ! Child Documents
39044 \begin_inset Index idx
39047 \begin_layout Plain Layout
39056 \begin_layout Standard
39057 Child documents are used if you have a long document consisting of several
39058 larger parts or sections.
39059 For maintenance it is often useful and sometimes even required to split
39060 the document into several files that can be revised separately.
39061 The different documents are then the so called
39062 \begin_inset Quotes eld
39066 \begin_inset Quotes erd
39069 , and a master document connects them to print the full document or parts
39071 A child document inherits elements from its master, for example the LaTeX
39072 preamble, the bibliography, and labels for cross-references.
39075 \begin_layout Standard
39076 To be able to work on child documents without the need to open their master,
39077 specify in the child document the master in the menu
39079 Document\SpecialChar \menuseparator
39080 Settings\SpecialChar \menuseparator
39082 \begin_inset space ~
39088 This master document will then be used in the background by LyX when you
39089 edit the child document.
39092 \begin_layout Standard
39093 Included documents are displayed in LyX as a box like this:
39094 \begin_inset Graphics
39095 filename clipart/ChildDocumentQt4.png
39097 scaleBeforeRotation
39101 To include child documents in a master document use the menu
39103 Insert\SpecialChar \menuseparator
39104 File\SpecialChar \menuseparator
39106 \begin_inset space ~
39112 A dialog pops up where you can choose between four include methods:
39115 \begin_layout Description
39116 Include You can include LyX- and LaTeX-documents.
39125 dialog, the included document will be opened in LyX in a new file tab so
39126 that you can modify it.
39127 \begin_inset Newline newline
39133 \begin_layout Standard
39134 Here is a child document inserted using
39139 \begin_inset CommandInset include
39140 LatexCommand include
39141 filename "DummyDocument1.lyx"
39148 \begin_layout Standard
39149 The section numbering includes the sections of the included files in the
39150 order they are inserted in the master document.
39151 The included example document has for example a subsection that is numbered
39152 as a subsection of this section.
39153 Labels of included documents can be referenced: Subsection
39154 \begin_inset space ~
39158 \begin_inset CommandInset ref
39160 reference "sub:External-Subsection-1"
39167 \begin_layout Standard
39168 The preamble of the child document is ignored; only the preamble of the
39169 master document is used.
39170 Branches in child documents will be ignored by the master document when
39171 the master document does not have a branch with the same name.
39172 Included documents are inserted starting on a new page and ending with
39176 \begin_layout Standard
39177 \begin_inset Note Greyedout
39180 \begin_layout Plain Layout
39185 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39186 the document in case the child document uses another document class than
39187 the master document as this will lead to unexpected outputs.
39195 \begin_layout Description
39196 Input This method is very similar to the Include method.
39197 The differences are:
39201 \begin_layout Itemize
39202 Input files don't start with a new page and don't end with a page break.
39205 \begin_layout Itemize
39206 Input files can be previewed in LyX when
39209 \begin_inset space ~
39214 is enabled in LyX's preferences under
39217 \begin_inset space ~
39221 \begin_inset space ~
39224 feel\SpecialChar \menuseparator
39230 \begin_layout Itemize
39231 You cannot exclude Input files via the menu
39233 Document\SpecialChar \menuseparator
39234 Settings\SpecialChar \menuseparator
39241 \begin_layout Standard
39242 Here is a child document inserted using
39247 \begin_inset CommandInset include
39249 filename "DummyDocument2.lyx"
39256 \begin_layout Description
39257 Verbatim With this method any text file can be included.
39258 The file is shown in the output with its source code; no command used in
39259 the text is invoked.
39260 You can use the option
39262 Mark spaces in output
39264 that displays the character
39265 \begin_inset Quotes eld
39272 \begin_layout Plain Layout
39282 \begin_inset Quotes erd
39285 for every space character in the source code.
39286 The difference from the method via the menu
39288 Insert\SpecialChar \menuseparator
39289 File\SpecialChar \menuseparator
39291 \begin_inset space ~
39296 is that the document content is not shown in LyX.
39299 \begin_layout Standard
39300 Here is a child document inserted as Verbatim:
39301 \begin_inset CommandInset include
39302 LatexCommand verbatiminput
39303 filename "DummyTextDocument.txt"
39308 \begin_inset VSpace bigskip
39311 Here is a child document inserted as Verbatim using the
39313 Mark spaces in output
39316 \begin_inset CommandInset include
39317 LatexCommand verbatiminput*
39318 filename "DummyTextDocument.txt"
39325 \begin_layout Standard
39326 \begin_inset VSpace bigskip
39332 \begin_layout Standard
39333 \begin_inset Note Greyedout
39336 \begin_layout Plain Layout
39341 As you can see in the examples above, the text of the documents included
39346 is not broken at the end of the document lines.
39354 \begin_layout Description
39355 Listings This type is described in chapter
39356 \begin_inset space ~
39360 \begin_inset CommandInset ref
39362 reference "cha:Program-Code-Listings"
39369 \begin_layout Standard
39370 \begin_inset Note Greyedout
39373 \begin_layout Plain Layout
39378 Including the same document twice in a document using different methods
39379 could cause LaTeX-problems.
39387 \begin_layout Standard
39388 If you want to view/export only selected children of your master document,
39389 either because you want to save compiling time or because you want to distribut
39390 e single chapters of the book you are just writing, you can exclude children
39392 This is done via the menu
39394 Document\SpecialChar \menuseparator
39395 Settings\SpecialChar \menuseparator
39399 You can exclude\SpecialChar \slash{}
39400 include children by double-clicking on the
39404 column of the respective child document in the list (note that this only
39405 works for documents embedded via
39406 \begin_inset Quotes eld
39410 \begin_inset Quotes erd
39414 \begin_inset Quotes eld
39418 \begin_inset Quotes erd
39424 Maintain counters and references
39426 is enabled, LyX will assure that all page numbers, references etc.
39427 \begin_inset space ~
39430 are correct as if the whole document was processed.
39431 This is useful if you want the selected sub-documents to look exactly as
39432 in the context of the whole document.
39433 However, LyX needs to process the whole document in the background for
39435 So if you want to save compile time and if counters and references do not
39436 need to be correct, disable this checkbox.
39439 \begin_layout Standard
39440 Alternatively, you can put each included file into a branch.
39444 \begin_layout Plain Layout
39445 Branches are described in section
39458 By enabling\SpecialChar \slash{}
39459 disabling branches you can decide which included files will
39460 appear in the output.
39461 This has the advantage that it also works with Input'ed sub-documents.
39462 However, counters and references will not be maintained with this approach.
39465 \begin_layout Chapter
39466 Program Code Listings
39467 \begin_inset CommandInset label
39469 name "cha:Program-Code-Listings"
39474 \begin_inset Index idx
39477 \begin_layout Plain Layout
39484 \begin_inset Index idx
39487 \begin_layout Plain Layout
39494 \begin_inset Index idx
39497 \begin_layout Plain Layout
39506 \begin_layout Standard
39507 To include and typeset program code you can use the
39511 inset that can be inserted via the menu
39513 Insert\SpecialChar \menuseparator
39522 \begin_inset Index idx
39525 \begin_layout Plain Layout
39526 LaTeX-packages ! listings
39531 provides a powerful and flexible way to insert program source code into
39535 \begin_layout Standard
39536 Right-clicking on a listings inset opens the context menu containing where
39537 you can set the listings format.
39540 \begin_layout Standard
39541 By default, a listing starts a new paragraph in the output.
39542 The placement option
39545 \begin_inset space ~
39550 prints the listing inline like this:
39551 \begin_inset listings
39552 lstparams "language={C++}"
39556 \begin_layout Plain Layout
39564 \begin_inset Newline newline
39571 creates a listings float where you can specify the placement options
39572 \begin_inset Quotes eld
39580 \begin_inset Quotes erd
39584 \begin_inset Quotes eld
39592 \begin_inset Quotes erd
39596 \begin_inset Quotes eld
39604 \begin_inset Quotes erd
39608 \begin_inset Quotes eld
39616 \begin_inset Quotes erd
39619 corresponding to the float placement options described in section
39620 \begin_inset space ~
39624 \begin_inset CommandInset ref
39626 reference "sec:Float-Placement"
39631 The placement options can be mixed and are inserted without any separation,
39633 \begin_inset space \thinspace{}
39637 \begin_inset space \space{}
39641 \begin_inset Quotes eld
39649 \begin_inset Quotes erd
39654 \begin_inset Quotes eld
39658 \begin_inset Quotes erd
39661 has sometimes no effect, but you don't need to use the
39665 option in this case as also non-float listings can have captions and be
39669 \begin_layout Standard
39670 You can add captions to listings with the menu
39672 Insert\SpecialChar \menuseparator
39676 Listings can be referenced like floats: Listing
39677 \begin_inset space ~
39681 \begin_inset CommandInset ref
39683 reference "lst:Example-Listing"
39688 \change_inserted -195340706 1334604968
39690 A list of listings which contains all listings with captions can be created
39693 Insert\SpecialChar \menuseparator
39695 \begin_inset space ~
39699 \begin_inset space ~
39702 TOC\SpecialChar \menuseparator
39706 The list entries are the listing caption and the listing number.
39711 \begin_layout Standard
39712 \begin_inset listings
39713 lstparams "language=Python"
39717 \begin_layout Plain Layout
39719 \begin_inset Caption
39721 \begin_layout Plain Layout
39722 \begin_inset CommandInset label
39724 name "lst:Example-Listing"
39728 Example Listing float
39733 # Example listing float
39736 \begin_layout Plain Layout
39741 \begin_layout Plain Layout
39743 'this is a python function'
39746 \begin_layout Plain Layout
39756 \begin_layout Standard
39757 When you have set a programming language in the listings dialog, the keywords
39758 of this language will be recognized and specially typeset in the output.
39759 In the example listings the Python keyword
39760 \begin_inset Quotes eld
39764 \begin_inset Quotes erd
39767 is recognized and printed bold in the output.
39770 \begin_layout Standard
39771 \begin_inset Note Greyedout
39774 \begin_layout Plain Layout
39779 If you don't get bold keywords when using typewriter fonts, your
39783 font probably doesn't provide a bold shape.
39784 In this case select a different one in the menu
39786 Document\SpecialChar \menuseparator
39787 Settings\SpecialChar \menuseparator
39799 provide bold shapes.)
39807 \begin_layout Standard
39811 \begin_inset space ~
39816 of the listings dialog you can specify the line numbering style.
39817 You can insert a number to specify which lines are numbered in the field
39824 \begin_inset space \thinspace{}
39828 \begin_inset space \space{}
39832 \begin_inset Quotes eld
39836 \begin_inset Quotes erd
39839 , only every 3rd line will be numbered.
39842 \begin_layout Standard
39843 You can furthermore specify a range of lines; only these will then appear
39847 Extended character table
39849 should be used when you use national characters like the German umlauts
39851 \begin_inset Newline newline
39854 Here is an example listing with left line numbering, step
39855 \begin_inset Quotes eld
39859 \begin_inset Quotes erd
39863 \begin_inset Quotes eld
39867 \begin_inset Quotes erd
39871 \begin_inset Quotes eld
39874 Extended character table
39875 \begin_inset Quotes erd
39879 \begin_inset Quotes eld
39883 \begin_inset space ~
39887 \begin_inset space ~
39891 \begin_inset Quotes erd
39895 \begin_inset space \thinspace{}
39899 \begin_inset space \thinspace{}
39905 \begin_layout Standard
39906 \begin_inset listings
39907 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39911 \begin_layout Plain Layout
39916 \begin_layout Plain Layout
39918 'this is a python function'
39921 \begin_layout Plain Layout
39926 \begin_layout Plain Layout
39931 \begin_layout Plain Layout
39933 'This is a German word: Tschüß'
39936 \begin_layout Plain Layout
39941 \begin_layout Plain Layout
39946 \begin_layout Plain Layout
39948 'this is a python function'
39951 \begin_layout Plain Layout
39961 \begin_layout Standard
39962 When you have tabulators in your listing, you can specify the number of
39963 characters that are spanned by a tabulator in the field
39966 \begin_inset space ~
39974 \begin_layout Standard
39975 \begin_inset Note Greyedout
39978 \begin_layout Plain Layout
39983 Due to a bug in the
39987 package the line numbering is shifted by a line by every previous listing.
39988 That's the reason why the lines 2 and 5 are numbered in the above listing
39989 and not the lines 3 and 6.
39997 \begin_layout Standard
39998 \begin_inset VSpace bigskip
40004 \begin_layout Standard
40005 It is also possible to print lines from a file as listing.
40006 To do this, use the menu
40008 Insert\SpecialChar \menuseparator
40009 File\SpecialChar \menuseparator
40012 and choose the type
40020 \begin_layout Plain Layout
40021 The other child document types are described in section
40022 \begin_inset space ~
40026 \begin_inset CommandInset ref
40028 reference "sec:Child-Documents"
40037 In the child document dialog you can specify the listing parameters in
40039 To show a list of all available parameters, type in a question mark
40040 \begin_inset Quotes eld
40044 \begin_inset Quotes erd
40050 \begin_layout Standard
40051 To reference child document listings, write a label text into the corresponding
40052 field of the child document dialog.
40053 The label can then be referenced using the menu
40055 Insert\SpecialChar \menuseparator
40061 \begin_layout Standard
40063 \begin_inset space ~
40067 \begin_inset CommandInset ref
40069 reference "lst:file-listing"
40073 is an example for a listing of a file; there the lines 10
40074 \begin_inset space \thinspace{}
40078 \begin_inset space \thinspace{}
40081 15 of this LyX file are listed.
40084 \begin_layout Standard
40085 \begin_inset CommandInset include
40086 LatexCommand lstinputlisting
40087 filename "EmbeddedObjects.lyx"
40088 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40095 \begin_layout Standard
40096 \begin_inset VSpace bigskip
40102 \begin_layout Standard
40103 Inserting a formula into a listing can be done the following way:
40106 \begin_layout Enumerate
40107 Open the listings dialog and add
40108 \begin_inset Newline newline
40116 \begin_inset Newline newline
40119 to the field of the
40126 \begin_layout Enumerate
40127 Create a formula outside the listing
40130 \begin_layout Enumerate
40131 Copy the content of the formula (not the formula inset) to the clipboard
40141 \begin_layout Enumerate
40142 In the listing write
40143 \begin_inset Quotes eld
40151 \begin_inset Quotes erd
40154 and copy from the clipboard between the dollar-signs (shortcut
40163 \begin_layout Standard
40164 \begin_inset listings
40165 lstparams "language=Python,mathescape=true"
40169 \begin_layout Plain Layout
40171 \begin_inset Caption
40173 \begin_layout Plain Layout
40174 Example Listing float containing a formula
40179 # Example listing float
40182 \begin_layout Plain Layout
40187 \begin_layout Plain Layout
40200 \begin_layout Plain Layout
40210 \begin_layout Standard
40211 \begin_inset VSpace bigskip
40217 \begin_layout Standard
40218 Global listings settings can be set in the
40220 Document\SpecialChar \menuseparator
40221 Settings\SpecialChar \menuseparator
40225 To get there a list of available options, type in a question mark
40226 \begin_inset Quotes eld
40230 \begin_inset Quotes erd
40236 \begin_layout Standard
40237 For more information about the
40241 package, we refer to its documentation
40242 \begin_inset CommandInset citation
40251 \begin_layout Standard
40252 \begin_inset Newpage newpage
40258 \begin_layout Chapter
40260 Units available in LyX
40261 \begin_inset Index idx
40264 \begin_layout Plain Layout
40271 \begin_inset CommandInset label
40273 name "cha:Units-available-in"
40280 \begin_layout Standard
40281 To understand the units described in this documentation, Table
40282 \begin_inset space ~
40286 \begin_inset CommandInset ref
40288 reference "tab:Units"
40292 explains all units available in LyX.
40295 \begin_layout Standard
40296 \begin_inset Float table
40302 \begin_layout Plain Layout
40303 \begin_inset Caption
40305 \begin_layout Plain Layout
40306 \begin_inset CommandInset label
40320 \begin_layout Plain Layout
40321 \begin_inset VSpace medskip
40327 \begin_layout Plain Layout
40329 \begin_inset Tabular
40330 <lyxtabular version="3" rows="20" columns="2">
40331 <features tabularvalignment="middle">
40332 <column alignment="center" valignment="top" width="0">
40333 <column alignment="center" valignment="top" width="0">
40335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40338 \begin_layout Plain Layout
40344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40347 \begin_layout Plain Layout
40355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40358 \begin_layout Plain Layout
40364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40367 \begin_layout Plain Layout
40375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40378 \begin_layout Plain Layout
40384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40387 \begin_layout Plain Layout
40395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40398 \begin_layout Plain Layout
40404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40407 \begin_layout Plain Layout
40415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40418 \begin_layout Plain Layout
40424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40427 \begin_layout Plain Layout
40429 \begin_inset space \thinspace{}
40433 \begin_inset space \thinspace{}
40443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40446 \begin_layout Plain Layout
40452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40455 \begin_layout Plain Layout
40457 \begin_inset space \thinspace{}
40461 \begin_inset space \thinspace{}
40471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40474 \begin_layout Plain Layout
40480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40483 \begin_layout Plain Layout
40484 scaled point (65536
40485 \begin_inset space \thinspace{}
40489 \begin_inset space \thinspace{}
40499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40502 \begin_layout Plain Layout
40508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40511 \begin_layout Plain Layout
40513 \begin_inset space \thinspace{}
40517 \begin_inset space \thinspace{}
40527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40530 \begin_layout Plain Layout
40536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40539 \begin_layout Plain Layout
40541 \begin_inset space \thinspace{}
40545 \begin_inset Formula $\approx$
40549 \begin_inset space \thinspace{}
40559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40562 \begin_layout Plain Layout
40568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40571 \begin_layout Plain Layout
40573 \begin_inset space \thinspace{}
40577 \begin_inset space \thinspace{}
40587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40590 \begin_layout Plain Layout
40596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40599 \begin_layout Plain Layout
40600 % of original image width
40607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40610 \begin_layout Plain Layout
40616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40619 \begin_layout Plain Layout
40627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40630 \begin_layout Plain Layout
40636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40639 \begin_layout Plain Layout
40647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40650 \begin_layout Plain Layout
40656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40659 \begin_layout Plain Layout
40667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40670 \begin_layout Plain Layout
40676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40679 \begin_layout Plain Layout
40687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40690 \begin_layout Plain Layout
40696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40699 \begin_layout Plain Layout
40707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40710 \begin_layout Plain Layout
40716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40719 \begin_layout Plain Layout
40727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40730 \begin_layout Plain Layout
40736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40739 \begin_layout Plain Layout
40751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40754 \begin_layout Plain Layout
40760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40763 \begin_layout Plain Layout
40775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40778 \begin_layout Plain Layout
40784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40787 \begin_layout Plain Layout
40789 \begin_inset space \thinspace{}
40793 \begin_inset space \thinspace{}
40814 \begin_layout Chapter
40815 Output File Formats with Graphics
40816 \begin_inset CommandInset label
40818 name "cha:Output-File-Formats"
40825 \begin_layout Section
40827 \begin_inset Index idx
40830 \begin_layout Plain Layout
40837 \begin_inset Index idx
40840 \begin_layout Plain Layout
40845 \begin_layout Plain Layout
40856 \begin_layout Plain Layout
40871 \begin_layout Standard
40872 This file type has the extension
40873 \begin_inset Quotes eld
40881 \begin_inset Quotes erd
40886 \begin_inset Quotes eld
40890 \begin_inset Quotes erd
40893 (DVI), because it is completely portable; you can move them from one machine
40894 to another without needing to do any sort of conversion.
40895 At the time when this file-format was developed, this was no matter of
40897 DVIs are used for quick previews and as pre-stage for other output formats,
40901 \begin_layout Standard
40902 \begin_inset Note Greyedout
40905 \begin_layout Plain Layout
40910 DVI-files do not contain images; they will only be a linked.
40915 So don't forget this, if you move your
40919 file to another computer.
40920 This property can also slow down your computer when you view the DVI, because
40921 the DVI-viewer has to convert the image in the background to make it visible
40922 when you scroll in the DVI.
40923 So it is recommended that you use PDF for files with many images.
40926 \begin_layout Standard
40927 You can export your document to DVI by using the menu
40929 File\SpecialChar \menuseparator
40930 Export\SpecialChar \menuseparator
40934 You can view your document as DVI via the
40941 \begin_layout Section
40943 \begin_inset CommandInset label
40945 name "sec:PostScript"
40950 \begin_inset Index idx
40953 \begin_layout Plain Layout
40954 File Formats ! PostScript
40960 \begin_inset Index idx
40963 \begin_layout Plain Layout
40968 \begin_layout Plain Layout
40979 \begin_layout Plain Layout
40994 \begin_layout Standard
40995 This file type has the extension
40996 \begin_inset Quotes eld
41004 \begin_inset Quotes erd
41008 PostScript was developed by the company
41012 as a printer language.
41013 The file therefore contains commands that the printer uses to print the
41015 PostScript can be seen as a
41016 \begin_inset Quotes eld
41019 programming language
41020 \begin_inset Quotes erd
41023 ; you can calculate with it and draw diagrams and images
41027 \begin_layout Plain Layout
41028 If you are interested to learn more about this, have a look at the LaTeX-package
41034 \begin_inset CommandInset citation
41046 Due to this ability, the files are often bigger than PDFs.
41049 \begin_layout Standard
41050 PostScript can only contain images in the format
41051 \begin_inset Quotes eld
41054 Encapsulated PostScript
41055 \begin_inset Quotes erd
41058 (EPS, file extension
41059 \begin_inset Quotes eld
41067 \begin_inset Quotes erd
41071 As LyX allows you to use any known image format in your document, it has
41072 to convert images in the background to EPS.
41074 \begin_inset space ~
41078 \begin_inset space ~
41081 images in your document, LyX has to do 50
41082 \begin_inset space ~
41085 conversions whenever you view or export your document.
41086 This will slow down your work flow with LyX drastically.
41087 So if you plan to use PostScript, you can insert your images directly as
41088 EPS to avoid this problem.
41091 \begin_layout Standard
41092 You can export your document to PostScript using the menu
41094 File\SpecialChar \menuseparator
41095 Export\SpecialChar \menuseparator
41099 You can view your document as PostScript via the
41106 \begin_layout Section
41108 \begin_inset Index idx
41111 \begin_layout Plain Layout
41118 \begin_inset Index idx
41121 \begin_layout Plain Layout
41130 \begin_layout Standard
41131 This file type has the extension
41132 \begin_inset Quotes eld
41140 \begin_inset Quotes erd
41145 \begin_inset Quotes eld
41148 Portable Document Format
41149 \begin_inset Quotes erd
41152 (PDF) was developed by
41156 as a derivative of PostScript.
41157 It is more compressed and it uses fewer commands than PostScript.
41159 \begin_inset Quotes eld
41163 \begin_inset Quotes erd
41166 implies, it can be processed at any computer system and the printed output
41167 looks exactly the same.
41170 \begin_layout Standard
41171 PDF can contain images in its own PDF format, in the format
41172 \begin_inset Quotes eld
41175 Joint Photographic Experts Group
41176 \begin_inset Quotes erd
41179 (JPG, file extension
41180 \begin_inset Quotes eld
41188 \begin_inset Quotes erd
41192 \begin_inset Quotes eld
41200 \begin_inset Quotes erd
41203 ), and in the format
41204 \begin_inset Quotes eld
41207 Portable Network Graphics
41208 \begin_inset Quotes erd
41211 (PNG, file extension
41212 \begin_inset Quotes eld
41220 \begin_inset Quotes erd
41224 Nevertheless you can use any other image format, because LyX converts them
41225 in the background to one of these formats.
41226 But as described in the section about PostScript, the image conversion
41227 will slow down your work flow.
41228 So it is recommended that you use images in one of the three mentioned
41232 \begin_layout Standard
41233 You can export your document to PDF via the menu
41235 File\SpecialChar \menuseparator
41238 in three different ways:
41241 \begin_layout Description
41243 \begin_inset space ~
41246 (ps2pdf) This uses the program
41250 that creates a PDF from a PostScript-version of your file.
41251 The PostScript-version is produced by the program
41255 which uses a DVI-version as intermediate step.
41256 So this export variant consists of three conversions.
41259 \begin_layout Description
41261 \begin_inset space ~
41264 (dvipdfm) This uses the program
41268 that converts your file in the background to DVI and in a second step to
41272 \begin_layout Description
41274 \begin_inset space ~
41277 (pdflatex) This uses the program
41281 that converts your file directly to PDF.
41284 \begin_layout Standard
41285 It is recommended that you use
41288 \begin_inset space ~
41297 supports all features of actual PDF-versions, is quick and works stable.
41302 is not under development and therefore a bit outdated.
41305 \begin_layout Standard
41306 You can view your document as PDF via the
41310 menu or by using a toolbar button.
41313 \begin_layout Chapter
41314 List of dvips color names
41315 \begin_inset CommandInset label
41317 name "chap:List-of-dvips-colornames"
41324 \begin_layout Standard
41325 \begin_inset Tabular
41326 <lyxtabular version="3" rows="17" columns="4">
41327 <features tabularvalignment="middle">
41328 <column alignment="left" valignment="top" width="0pt">
41329 <column alignment="left" valignment="top" width="0pt">
41330 <column alignment="left" valignment="top" width="0pt">
41331 <column alignment="left" valignment="top" width="0pt">
41333 <cell alignment="left" valignment="top" usebox="none">
41336 \begin_layout Plain Layout
41340 \begin_layout Plain Layout
41353 \begin_layout Plain Layout
41364 \begin_layout Plain Layout
41376 <cell alignment="left" valignment="top" usebox="none">
41379 \begin_layout Plain Layout
41383 \begin_layout Plain Layout
41396 \begin_layout Plain Layout
41407 \begin_layout Plain Layout
41419 <cell alignment="left" valignment="top" usebox="none">
41422 \begin_layout Plain Layout
41426 \begin_layout Plain Layout
41439 \begin_layout Plain Layout
41450 \begin_layout Plain Layout
41462 <cell alignment="left" valignment="top" usebox="none">
41465 \begin_layout Plain Layout
41469 \begin_layout Plain Layout
41482 \begin_layout Plain Layout
41493 \begin_layout Plain Layout
41507 <cell alignment="center" valignment="top" usebox="none">
41510 \begin_layout Plain Layout
41514 \begin_layout Plain Layout
41527 \begin_layout Plain Layout
41535 \begin_inset Phantom Phantom
41538 \begin_layout Plain Layout
41548 \begin_layout Plain Layout
41560 <cell alignment="center" valignment="top" usebox="none">
41563 \begin_layout Plain Layout
41567 \begin_layout Plain Layout
41580 \begin_layout Plain Layout
41588 \begin_inset Phantom Phantom
41591 \begin_layout Plain Layout
41601 \begin_layout Plain Layout
41613 <cell alignment="center" valignment="top" usebox="none">
41616 \begin_layout Plain Layout
41620 \begin_layout Plain Layout
41633 \begin_layout Plain Layout
41641 \begin_inset Phantom Phantom
41644 \begin_layout Plain Layout
41654 \begin_layout Plain Layout
41666 <cell alignment="center" valignment="top" usebox="none">
41669 \begin_layout Plain Layout
41673 \begin_layout Plain Layout
41686 \begin_layout Plain Layout
41694 \begin_inset Phantom Phantom
41697 \begin_layout Plain Layout
41707 \begin_layout Plain Layout
41721 <cell alignment="left" valignment="top" usebox="none">
41724 \begin_layout Plain Layout
41728 \begin_layout Plain Layout
41741 \begin_layout Plain Layout
41749 \begin_inset Phantom Phantom
41752 \begin_layout Plain Layout
41762 \begin_layout Plain Layout
41774 <cell alignment="left" valignment="top" usebox="none">
41777 \begin_layout Plain Layout
41781 \begin_layout Plain Layout
41794 \begin_layout Plain Layout
41802 \begin_inset Phantom Phantom
41805 \begin_layout Plain Layout
41815 \begin_layout Plain Layout
41827 <cell alignment="left" valignment="top" usebox="none">
41830 \begin_layout Plain Layout
41834 \begin_layout Plain Layout
41847 \begin_layout Plain Layout
41855 \begin_inset Phantom Phantom
41858 \begin_layout Plain Layout
41868 \begin_layout Plain Layout
41880 <cell alignment="left" valignment="top" usebox="none">
41883 \begin_layout Plain Layout
41887 \begin_layout Plain Layout
41900 \begin_layout Plain Layout
41908 \begin_inset Phantom Phantom
41911 \begin_layout Plain Layout
41921 \begin_layout Plain Layout
41935 <cell alignment="left" valignment="top" usebox="none">
41938 \begin_layout Plain Layout
41942 \begin_layout Plain Layout
41955 \begin_layout Plain Layout
41963 \begin_inset Phantom Phantom
41966 \begin_layout Plain Layout
41976 \begin_layout Plain Layout
41988 <cell alignment="left" valignment="top" usebox="none">
41991 \begin_layout Plain Layout
41995 \begin_layout Plain Layout
42008 \begin_layout Plain Layout
42016 \begin_inset Phantom Phantom
42019 \begin_layout Plain Layout
42029 \begin_layout Plain Layout
42041 <cell alignment="left" valignment="top" usebox="none">
42044 \begin_layout Plain Layout
42048 \begin_layout Plain Layout
42061 \begin_layout Plain Layout
42069 \begin_inset Phantom Phantom
42072 \begin_layout Plain Layout
42082 \begin_layout Plain Layout
42094 <cell alignment="left" valignment="top" usebox="none">
42097 \begin_layout Plain Layout
42101 \begin_layout Plain Layout
42114 \begin_layout Plain Layout
42122 \begin_inset Phantom Phantom
42125 \begin_layout Plain Layout
42135 \begin_layout Plain Layout
42149 <cell alignment="left" valignment="top" usebox="none">
42152 \begin_layout Plain Layout
42156 \begin_layout Plain Layout
42169 \begin_layout Plain Layout
42177 \begin_inset Phantom Phantom
42180 \begin_layout Plain Layout
42190 \begin_layout Plain Layout
42202 <cell alignment="left" valignment="top" usebox="none">
42205 \begin_layout Plain Layout
42209 \begin_layout Plain Layout
42222 \begin_layout Plain Layout
42230 \begin_inset Phantom Phantom
42233 \begin_layout Plain Layout
42243 \begin_layout Plain Layout
42255 <cell alignment="left" valignment="top" usebox="none">
42258 \begin_layout Plain Layout
42262 \begin_layout Plain Layout
42275 \begin_layout Plain Layout
42283 \begin_inset Phantom Phantom
42286 \begin_layout Plain Layout
42296 \begin_layout Plain Layout
42308 <cell alignment="left" valignment="top" usebox="none">
42311 \begin_layout Plain Layout
42315 \begin_layout Plain Layout
42328 \begin_layout Plain Layout
42336 \begin_inset Phantom Phantom
42339 \begin_layout Plain Layout
42349 \begin_layout Plain Layout
42363 <cell alignment="left" valignment="top" usebox="none">
42366 \begin_layout Plain Layout
42370 \begin_layout Plain Layout
42383 \begin_layout Plain Layout
42391 \begin_inset Phantom Phantom
42394 \begin_layout Plain Layout
42404 \begin_layout Plain Layout
42416 <cell alignment="left" valignment="top" usebox="none">
42419 \begin_layout Plain Layout
42423 \begin_layout Plain Layout
42436 \begin_layout Plain Layout
42444 \begin_inset Phantom Phantom
42447 \begin_layout Plain Layout
42457 \begin_layout Plain Layout
42469 <cell alignment="left" valignment="top" usebox="none">
42472 \begin_layout Plain Layout
42476 \begin_layout Plain Layout
42489 \begin_layout Plain Layout
42497 \begin_inset Phantom Phantom
42500 \begin_layout Plain Layout
42510 \begin_layout Plain Layout
42522 <cell alignment="left" valignment="top" usebox="none">
42525 \begin_layout Plain Layout
42529 \begin_layout Plain Layout
42542 \begin_layout Plain Layout
42550 \begin_inset Phantom Phantom
42553 \begin_layout Plain Layout
42563 \begin_layout Plain Layout
42577 <cell alignment="center" valignment="top" usebox="none">
42580 \begin_layout Plain Layout
42584 \begin_layout Plain Layout
42597 \begin_layout Plain Layout
42605 \begin_inset Phantom Phantom
42608 \begin_layout Plain Layout
42618 \begin_layout Plain Layout
42630 <cell alignment="center" valignment="top" usebox="none">
42633 \begin_layout Plain Layout
42637 \begin_layout Plain Layout
42650 \begin_layout Plain Layout
42658 \begin_inset Phantom Phantom
42661 \begin_layout Plain Layout
42671 \begin_layout Plain Layout
42683 <cell alignment="center" valignment="top" usebox="none">
42686 \begin_layout Plain Layout
42690 \begin_layout Plain Layout
42703 \begin_layout Plain Layout
42711 \begin_inset Phantom Phantom
42714 \begin_layout Plain Layout
42724 \begin_layout Plain Layout
42736 <cell alignment="center" valignment="top" usebox="none">
42739 \begin_layout Plain Layout
42743 \begin_layout Plain Layout
42756 \begin_layout Plain Layout
42764 \begin_inset Phantom Phantom
42767 \begin_layout Plain Layout
42777 \begin_layout Plain Layout
42791 <cell alignment="left" valignment="top" usebox="none">
42794 \begin_layout Plain Layout
42798 \begin_layout Plain Layout
42811 \begin_layout Plain Layout
42819 \begin_inset Phantom Phantom
42822 \begin_layout Plain Layout
42832 \begin_layout Plain Layout
42844 <cell alignment="left" valignment="top" usebox="none">
42847 \begin_layout Plain Layout
42851 \begin_layout Plain Layout
42864 \begin_layout Plain Layout
42872 \begin_inset Phantom Phantom
42875 \begin_layout Plain Layout
42885 \begin_layout Plain Layout
42897 <cell alignment="left" valignment="top" usebox="none">
42900 \begin_layout Plain Layout
42904 \begin_layout Plain Layout
42917 \begin_layout Plain Layout
42925 \begin_inset Phantom Phantom
42928 \begin_layout Plain Layout
42938 \begin_layout Plain Layout
42950 <cell alignment="left" valignment="top" usebox="none">
42953 \begin_layout Plain Layout
42957 \begin_layout Plain Layout
42970 \begin_layout Plain Layout
42978 \begin_inset Phantom Phantom
42981 \begin_layout Plain Layout
42991 \begin_layout Plain Layout
43005 <cell alignment="left" valignment="top" usebox="none">
43008 \begin_layout Plain Layout
43012 \begin_layout Plain Layout
43025 \begin_layout Plain Layout
43033 \begin_inset Phantom Phantom
43036 \begin_layout Plain Layout
43046 \begin_layout Plain Layout
43058 <cell alignment="left" valignment="top" usebox="none">
43061 \begin_layout Plain Layout
43065 \begin_layout Plain Layout
43078 \begin_layout Plain Layout
43086 \begin_inset Phantom Phantom
43089 \begin_layout Plain Layout
43099 \begin_layout Plain Layout
43111 <cell alignment="left" valignment="top" usebox="none">
43114 \begin_layout Plain Layout
43118 \begin_layout Plain Layout
43131 \begin_layout Plain Layout
43139 \begin_inset Phantom Phantom
43142 \begin_layout Plain Layout
43152 \begin_layout Plain Layout
43164 <cell alignment="left" valignment="top" usebox="none">
43167 \begin_layout Plain Layout
43171 \begin_layout Plain Layout
43184 \begin_layout Plain Layout
43192 \begin_inset Phantom Phantom
43195 \begin_layout Plain Layout
43205 \begin_layout Plain Layout
43219 <cell alignment="left" valignment="top" usebox="none">
43222 \begin_layout Plain Layout
43226 \begin_layout Plain Layout
43239 \begin_layout Plain Layout
43247 \begin_inset Phantom Phantom
43250 \begin_layout Plain Layout
43260 \begin_layout Plain Layout
43272 <cell alignment="left" valignment="top" usebox="none">
43275 \begin_layout Plain Layout
43279 \begin_layout Plain Layout
43292 \begin_layout Plain Layout
43300 \begin_inset Phantom Phantom
43303 \begin_layout Plain Layout
43313 \begin_layout Plain Layout
43325 <cell alignment="left" valignment="top" usebox="none">
43328 \begin_layout Plain Layout
43332 \begin_layout Plain Layout
43345 \begin_layout Plain Layout
43353 \begin_inset Phantom Phantom
43356 \begin_layout Plain Layout
43366 \begin_layout Plain Layout
43378 <cell alignment="left" valignment="top" usebox="none">
43381 \begin_layout Plain Layout
43385 \begin_layout Plain Layout
43398 \begin_layout Plain Layout
43406 \begin_inset Phantom Phantom
43409 \begin_layout Plain Layout
43419 \begin_layout Plain Layout
43433 <cell alignment="left" valignment="top" usebox="none">
43436 \begin_layout Plain Layout
43440 \begin_layout Plain Layout
43453 \begin_layout Plain Layout
43461 \begin_inset Phantom Phantom
43464 \begin_layout Plain Layout
43474 \begin_layout Plain Layout
43486 <cell alignment="left" valignment="top" usebox="none">
43489 \begin_layout Plain Layout
43493 \begin_layout Plain Layout
43506 \begin_layout Plain Layout
43514 \begin_inset Phantom Phantom
43517 \begin_layout Plain Layout
43527 \begin_layout Plain Layout
43539 <cell alignment="left" valignment="top" usebox="none">
43542 \begin_layout Plain Layout
43546 \begin_layout Plain Layout
43559 \begin_layout Plain Layout
43567 \begin_inset Phantom Phantom
43570 \begin_layout Plain Layout
43580 \begin_layout Plain Layout
43592 <cell alignment="left" valignment="top" usebox="none">
43595 \begin_layout Plain Layout
43599 \begin_layout Plain Layout
43612 \begin_layout Plain Layout
43620 \begin_inset Phantom Phantom
43623 \begin_layout Plain Layout
43633 \begin_layout Plain Layout
43647 <cell alignment="left" valignment="top" usebox="none">
43650 \begin_layout Plain Layout
43654 \begin_layout Plain Layout
43667 \begin_layout Plain Layout
43675 \begin_inset Phantom Phantom
43678 \begin_layout Plain Layout
43688 \begin_layout Plain Layout
43700 <cell alignment="left" valignment="top" usebox="none">
43703 \begin_layout Plain Layout
43707 \begin_layout Plain Layout
43720 \begin_layout Plain Layout
43728 \begin_inset Phantom Phantom
43731 \begin_layout Plain Layout
43741 \begin_layout Plain Layout
43753 <cell alignment="left" valignment="top" usebox="none">
43756 \begin_layout Plain Layout
43760 \begin_layout Plain Layout
43773 \begin_layout Plain Layout
43781 \begin_inset Phantom Phantom
43784 \begin_layout Plain Layout
43794 \begin_layout Plain Layout
43806 <cell alignment="left" valignment="top" usebox="none">
43809 \begin_layout Plain Layout
43813 \begin_layout Plain Layout
43826 \begin_layout Plain Layout
43834 \begin_inset Phantom Phantom
43837 \begin_layout Plain Layout
43847 \begin_layout Plain Layout
43861 <cell alignment="left" valignment="top" usebox="none">
43864 \begin_layout Plain Layout
43868 \begin_layout Plain Layout
43881 \begin_layout Plain Layout
43889 \begin_inset Phantom Phantom
43892 \begin_layout Plain Layout
43902 \begin_layout Plain Layout
43914 <cell alignment="left" valignment="top" usebox="none">
43917 \begin_layout Plain Layout
43921 \begin_layout Plain Layout
43934 \begin_layout Plain Layout
43942 \begin_inset Phantom Phantom
43945 \begin_layout Plain Layout
43955 \begin_layout Plain Layout
43967 <cell alignment="left" valignment="top" usebox="none">
43970 \begin_layout Plain Layout
43974 \begin_layout Plain Layout
43987 \begin_layout Plain Layout
43995 \begin_inset Phantom Phantom
43998 \begin_layout Plain Layout
44008 \begin_layout Plain Layout
44020 <cell alignment="left" valignment="top" usebox="none">
44023 \begin_layout Plain Layout
44027 \begin_layout Plain Layout
44040 \begin_layout Plain Layout
44048 \begin_inset Phantom Phantom
44051 \begin_layout Plain Layout
44061 \begin_layout Plain Layout
44075 <cell alignment="left" valignment="top" usebox="none">
44078 \begin_layout Plain Layout
44082 \begin_layout Plain Layout
44095 \begin_layout Plain Layout
44103 \begin_inset Phantom Phantom
44106 \begin_layout Plain Layout
44116 \begin_layout Plain Layout
44128 <cell alignment="left" valignment="top" usebox="none">
44131 \begin_layout Plain Layout
44135 \begin_layout Plain Layout
44148 \begin_layout Plain Layout
44156 \begin_inset Phantom Phantom
44159 \begin_layout Plain Layout
44169 \begin_layout Plain Layout
44181 <cell alignment="left" valignment="top" usebox="none">
44184 \begin_layout Plain Layout
44188 \begin_layout Plain Layout
44201 \begin_layout Plain Layout
44209 \begin_inset Phantom Phantom
44212 \begin_layout Plain Layout
44222 \begin_layout Plain Layout
44234 <cell alignment="left" valignment="top" usebox="none">
44237 \begin_layout Plain Layout
44241 \begin_layout Plain Layout
44254 \begin_layout Plain Layout
44262 \begin_inset Phantom Phantom
44265 \begin_layout Plain Layout
44275 \begin_layout Plain Layout
44289 <cell alignment="left" valignment="top" usebox="none">
44292 \begin_layout Plain Layout
44296 \begin_layout Plain Layout
44309 \begin_layout Plain Layout
44317 \begin_inset Phantom Phantom
44320 \begin_layout Plain Layout
44330 \begin_layout Plain Layout
44342 <cell alignment="left" valignment="top" usebox="none">
44345 \begin_layout Plain Layout
44349 \begin_layout Plain Layout
44362 \begin_layout Plain Layout
44370 \begin_inset Phantom Phantom
44373 \begin_layout Plain Layout
44383 \begin_layout Plain Layout
44395 <cell alignment="left" valignment="top" usebox="none">
44398 \begin_layout Plain Layout
44402 \begin_layout Plain Layout
44415 \begin_layout Plain Layout
44423 \begin_inset Phantom Phantom
44426 \begin_layout Plain Layout
44436 \begin_layout Plain Layout
44448 <cell alignment="left" valignment="top" usebox="none">
44451 \begin_layout Plain Layout
44455 \begin_layout Plain Layout
44468 \begin_layout Plain Layout
44476 \begin_inset Phantom Phantom
44479 \begin_layout Plain Layout
44489 \begin_layout Plain Layout
44503 <cell alignment="left" valignment="top" usebox="none">
44506 \begin_layout Plain Layout
44510 \begin_layout Plain Layout
44523 \begin_layout Plain Layout
44531 \begin_inset Phantom Phantom
44534 \begin_layout Plain Layout
44544 \begin_layout Plain Layout
44556 <cell alignment="left" valignment="top" usebox="none">
44559 \begin_layout Plain Layout
44563 \begin_layout Plain Layout
44576 \begin_layout Plain Layout
44584 \begin_inset Phantom Phantom
44587 \begin_layout Plain Layout
44597 \begin_layout Plain Layout
44609 <cell alignment="left" valignment="top" usebox="none">
44612 \begin_layout Plain Layout
44616 \begin_layout Plain Layout
44629 \begin_layout Plain Layout
44637 \begin_inset Phantom Phantom
44640 \begin_layout Plain Layout
44650 \begin_layout Plain Layout
44662 <cell alignment="left" valignment="top" usebox="none">
44665 \begin_layout Plain Layout
44669 \begin_layout Plain Layout
44682 \begin_layout Plain Layout
44690 \begin_inset Phantom Phantom
44693 \begin_layout Plain Layout
44703 \begin_layout Plain Layout
44717 <cell alignment="left" valignment="top" usebox="none">
44720 \begin_layout Plain Layout
44724 \begin_layout Plain Layout
44737 \begin_layout Plain Layout
44745 \begin_inset Phantom Phantom
44748 \begin_layout Plain Layout
44758 \begin_layout Plain Layout
44770 <cell alignment="left" valignment="top" usebox="none">
44773 \begin_layout Plain Layout
44779 <cell alignment="left" valignment="top" usebox="none">
44782 \begin_layout Plain Layout
44788 <cell alignment="left" valignment="top" usebox="none">
44791 \begin_layout Plain Layout
44805 \begin_layout Chapter
44806 Explanation of Equation
44807 \begin_inset space ~
44811 \begin_inset CommandInset ref
44818 \begin_inset CommandInset label
44820 name "cha:Explanation-of-Equation"
44827 \begin_layout Standard
44828 We can calculate the total width of
44833 \begin_inset Formula $W_{\mathrm{tot\, n}}$
44837 \begin_inset Formula
44839 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44845 \begin_inset Formula $W_{g\, n}$
44848 is the given width of all cells,
44854 is the LaTeX-length between the cell text and the cell border (its default
44856 \begin_inset space \thinspace{}
44866 is the thickness of the cell border line, the default is 0.4
44867 \begin_inset space \thinspace{}
44873 \begin_layout Standard
44875 \begin_inset space ~
44879 \begin_inset CommandInset ref
44881 reference "eq:Wtot_n"
44885 , the total width of a multicolumn
44886 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
44890 \begin_inset Formula
44892 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44900 \begin_layout Standard
44901 By setting equation
44902 \begin_inset space ~
44906 \begin_inset CommandInset ref
44908 reference "eq:Wtot_n"
44913 \begin_inset CommandInset ref
44915 reference "eq:Wtot_mult"
44919 equal we can calculate the needed given width
44920 \begin_inset Formula $W_{g\, n}$
44927 columns are spanned, so that each column has a total width of
44928 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
44932 \begin_inset Formula
44934 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44942 \begin_layout Bibliography
44943 \begin_inset CommandInset bibitem
44944 LatexCommand bibitem
44945 key "latexcompanion"
44949 Frank Mittelbach and Michel Goossens:
44951 The LaTeX Companion Second Edition.
44954 Addison-Wesley, 2004
44957 \begin_layout Bibliography
44958 \begin_inset CommandInset bibitem
44959 LatexCommand bibitem
44964 Helmut Kopka and Patrick W.
44967 A Guide to LaTeX Fourth Edition.
44970 Addison-Wesley, 2003
44973 \begin_layout Bibliography
44974 \begin_inset CommandInset bibitem
44975 LatexCommand bibitem
44982 LaTeX: A Document Preparation System.
44985 Addison-Wesley, second edition, 1994
44988 \begin_layout Bibliography
44989 \begin_inset CommandInset bibitem
44990 LatexCommand bibitem
44995 Documentation of the LaTeX-package
44998 \begin_inset CommandInset href
45001 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45008 \begin_inset Index idx
45011 \begin_layout Plain Layout
45012 LaTeX-packages ! arydshln
45020 \begin_layout Bibliography
45021 \begin_inset CommandInset bibitem
45022 LatexCommand bibitem
45027 Documentation of the LaTeX-package
45030 \begin_inset CommandInset href
45033 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45040 \begin_inset Index idx
45043 \begin_layout Plain Layout
45044 LaTeX-packages ! booktabs
45052 \begin_layout Bibliography
45053 \begin_inset CommandInset bibitem
45054 LatexCommand bibitem
45059 Documentation of the LaTeX-package
45062 \begin_inset CommandInset href
45065 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
45072 \begin_inset Index idx
45075 \begin_layout Plain Layout
45076 LaTeX-packages ! caption
45084 \begin_layout Bibliography
45085 \begin_inset CommandInset bibitem
45086 LatexCommand bibitem
45091 Documentation of the LaTeX-package
45094 \begin_inset CommandInset href
45097 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45104 \begin_inset Index idx
45107 \begin_layout Plain Layout
45108 LaTeX-packages ! diagbox
45116 \begin_layout Bibliography
45117 \begin_inset CommandInset bibitem
45118 LatexCommand bibitem
45123 Documentation of the LaTeX-package
45126 \begin_inset CommandInset href
45129 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45136 \begin_inset Index idx
45139 \begin_layout Plain Layout
45140 LaTeX-packages ! endfloat
45148 \begin_layout Bibliography
45149 \begin_inset CommandInset bibitem
45150 LatexCommand bibitem
45155 Documentation of the LaTeX-package
45158 \begin_inset CommandInset href
45161 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45168 \begin_inset Index idx
45171 \begin_layout Plain Layout
45172 LaTeX-packages ! footmisc
45180 \begin_layout Bibliography
45181 \begin_inset CommandInset bibitem
45182 LatexCommand bibitem
45187 Documentation of the LaTeX-package
45190 \begin_inset CommandInset href
45193 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45200 \begin_inset Index idx
45203 \begin_layout Plain Layout
45204 LaTeX-packages ! hyperref
45212 \begin_layout Bibliography
45213 \begin_inset CommandInset bibitem
45214 LatexCommand bibitem
45219 Documentation of the LaTeX-package
45222 \begin_inset CommandInset href
45225 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45232 \begin_inset Index idx
45235 \begin_layout Plain Layout
45236 LaTeX-packages ! hyperref
45244 \begin_layout Bibliography
45245 \begin_inset CommandInset bibitem
45246 LatexCommand bibitem
45251 Documentation of the LaTeX-package
45254 \begin_inset CommandInset href
45257 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
45264 \begin_inset Index idx
45267 \begin_layout Plain Layout
45268 LaTeX-packages ! KOMA-Script
45276 \begin_layout Bibliography
45277 \begin_inset CommandInset bibitem
45278 LatexCommand bibitem
45283 Documentation of the LaTeX-package
45286 \begin_inset CommandInset href
45289 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45296 \begin_inset CommandInset href
45299 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45304 \begin_inset Index idx
45307 \begin_layout Plain Layout
45308 LaTeX-packages ! lettrine
45316 \begin_layout Bibliography
45317 \begin_inset CommandInset bibitem
45318 LatexCommand bibitem
45323 Documentation of the LaTeX-package
45326 \begin_inset CommandInset href
45329 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45336 \begin_inset Index idx
45339 \begin_layout Plain Layout
45340 LaTeX-packages ! listings
45348 \begin_layout Bibliography
45349 \begin_inset CommandInset bibitem
45350 LatexCommand bibitem
45355 Documentation of the LaTeX-package
45358 \begin_inset CommandInset href
45361 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45368 \begin_inset Index idx
45371 \begin_layout Plain Layout
45372 LaTeX-packages ! marginnote
45380 \begin_layout Bibliography
45381 \begin_inset CommandInset bibitem
45382 LatexCommand bibitem
45387 Documentation of the LaTeX-package
45390 \begin_inset CommandInset href
45393 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45400 \begin_inset Index idx
45403 \begin_layout Plain Layout
45404 LaTeX-packages ! pdfpages
45412 \begin_layout Bibliography
45413 \begin_inset CommandInset bibitem
45414 LatexCommand bibitem
45419 Documentation of the LaTeX-package
45422 \begin_inset CommandInset href
45425 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45432 \begin_inset Index idx
45435 \begin_layout Plain Layout
45436 LaTeX-packages ! prettyref
45444 \begin_layout Bibliography
45445 \begin_inset CommandInset bibitem
45446 LatexCommand bibitem
45451 Web page of the LaTeX-package
45454 \begin_inset CommandInset href
45457 target "http://tug.org/PSTricks/"
45464 \begin_inset Index idx
45467 \begin_layout Plain Layout
45468 LaTeX-packages ! PSTricks
45476 \begin_layout Bibliography
45477 \begin_inset CommandInset bibitem
45478 LatexCommand bibitem
45483 Documentation of the LaTeX-package
45486 \begin_inset CommandInset href
45489 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45496 \begin_inset Index idx
45499 \begin_layout Plain Layout
45500 LaTeX-packages ! refstyle
45508 \begin_layout Bibliography
45509 \begin_inset CommandInset bibitem
45510 LatexCommand bibitem
45515 Documentation of the LaTeX-package
45518 \begin_inset CommandInset href
45521 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45528 \begin_inset Index idx
45531 \begin_layout Plain Layout
45532 LaTeX-packages ! sidecap
45540 \begin_layout Bibliography
45541 \begin_inset CommandInset bibitem
45542 LatexCommand bibitem
45548 \begin_inset CommandInset href
45551 target "http://wiki.lyx.org/LyX/NewInLyX20"
45555 about new features in
45562 \begin_layout Standard
45563 \begin_inset CommandInset index_print
45564 LatexCommand printindex