1 #LyX 2.1 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
185 \font_default_family default
186 \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"
215 \use_package amsmath 2
216 \use_package amssymb 2
218 \use_package mathdots 1
219 \use_package mathtools 0
220 \use_package mhchem 1
221 \use_package stackrel 0
222 \use_package stmaryrd 0
223 \use_package undertilde 0
225 \cite_engine_type numerical
229 \paperorientation portrait
233 \notefontcolor #0000ff
240 \paragraph_separation skip
242 \quotes_language english
245 \paperpagestyle default
246 \tracking_changes true
247 \output_changes false
250 \html_be_strict false
251 \author -195340706 "Georg Baum"
257 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
266 \begin_layout Plain Layout
268 If you have comments or error corrections, please send them to the LyX Documenta
270 \begin_inset CommandInset href
272 name "lyx-docs@lists.lyx.org"
273 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
284 \begin_inset Note Note
287 \begin_layout Plain Layout
294 \begin_inset Newline newline
298 \begin_inset Newline newline
306 \begin_layout Standard
307 \begin_inset CommandInset toc
308 LatexCommand tableofcontents
315 \begin_layout Standard
316 \begin_inset Note Note
319 \begin_layout Plain Layout
320 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
331 diagbox, lettrine, marginnote, picinpar
338 If they are not installed you can export the document anyway but the sections
339 where the packages are required won't appear in the output.
342 \begin_layout Plain Layout
343 The latest PDF-version of this document can be found here:
344 \begin_inset Newline newline
349 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
357 \begin_layout Chapter
359 \begin_inset Index idx
362 \begin_layout Plain Layout
369 \begin_inset Index idx
372 \begin_layout Plain Layout
377 \begin_layout Plain Layout
388 \begin_layout Plain Layout
403 \begin_layout Section
405 \begin_inset Index idx
408 \begin_layout Plain Layout
409 Figures ! Graphics Dialog
415 \begin_inset CommandInset label
417 name "sec:Graphics-Dialog"
424 \begin_layout Standard
425 To insert an image into your document, place the cursor at the text position
426 you want and click on the toolbar icon
429 arg "dialog-show-new-inset graphics"
434 Insert\SpecialChar \menuseparator
438 Then a dialog will appear to choose the file to load.
439 The image will appear in the output exactly at the position where it is
443 \begin_layout Standard
444 The graphics dialog can be called at any time by clicking on an image.
445 This dialog has three tabs:
448 \begin_layout Description
453 Here you can choose an image file and adjust its appearance in the output.
454 The available units for the image size are explained in appendix
459 \begin_inset CommandInset ref
461 reference "cha:Units-available-in"
466 \begin_inset Newline newline
470 \begin_inset Index idx
473 \begin_layout Plain Layout
479 You can rotate images counter-clockwise by setting a rotation angle and
481 The image will also be rotated inside LyX.
482 \begin_inset Newline newline
486 \begin_inset Index idx
489 \begin_layout Plain Layout
495 Images can be scaled by using a percentage value or by setting the width
496 and height explicitly.
497 If you set only the width or only the height, the other size will be determined
499 If you set both, then the image will be transformed to the given size,
500 possibly distorting it.
501 To prevent the image from distortion, use the option
503 Maintain aspect ratio
506 The image will then be scaled so that its width and height don't exceed
507 the specified dimensions.
508 \begin_inset Newline newline
511 Images can be opened in a program of your choice by right-clicking on it
512 and choosing the entry
521 The program can be set for every image format in the file format settings
522 in LyX's preferences.
525 \begin_layout Description
530 Alternatively to the usage of scaling units it is possible to set image
531 coordinates to adjust the height and width of the image in the output.
532 The coordinates can also be calculated automatically by pressing the button
562 will only print the image region within the given coordinates.
563 Normally you don't need to worry about image coordinates and can ignore
567 \begin_layout Description
584 In this tab you can modify the appearance of the image within LyX and LaTeX
585 experts can specify additional LaTeX options.
586 \begin_inset Newline newline
597 makes the image appear in the output only as a frame with the size of the
599 \begin_inset Newline newline
618 option only affects zipped EPS-graphics, e.
619 \begin_inset space \thinspace{}
623 \begin_inset space \space{}
631 When the option is used the images will not be unzipped on export, since
632 LaTeX can handle them as they are.
633 \begin_inset Newline newline
636 Zipped EPS-graphics are useful to save disk space when you choose PostScript
637 as output format, see appendix
642 \begin_inset CommandInset ref
644 reference "sec:PostScript"
649 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
651 \begin_inset Newline newline
659 \begin_inset Newline newline
664 zgrep %%Bounding x.eps.gz > x.eps.bb
667 \begin_inset Newline newline
670 The second command creates the bounding box file
671 \begin_inset Quotes eld
675 \begin_inset Quotes erd
678 that is needed by LaTeX for zipped graphics.
679 \begin_inset Newline newline
690 you can define or join an image settings group.
691 \begin_inset Index idx
694 \begin_layout Plain Layout
695 Figures ! Settings grouping
700 Images within such a group share their settings, so adjusting one image
701 of the group automatically also adjusts all other images of the group in
703 So you can for example change the size for a bunch of images without the
704 need to manually change each of them.
705 Joining an existing group can also be done using the context menu of the
706 image by checking the name of the desired group.
709 \begin_layout Standard
710 \begin_inset VSpace bigskip
716 \begin_layout Standard
717 This is an example image in EPS format
721 \begin_layout Plain Layout
722 Image formats are explained in section
727 \begin_inset CommandInset ref
729 reference "sec:Image-Formats"
738 within a separate, horizontally centered paragraph:
741 \begin_layout Standard
743 \begin_inset Graphics
744 filename clipart/mobius.eps
754 \begin_layout Standard
755 This is the same image like the one above but in draft mode:
758 \begin_layout Standard
760 \begin_inset Graphics
761 filename clipart/mobius.eps
772 \begin_layout Standard
773 \begin_inset Newpage newpage
779 \begin_layout Section
781 \begin_inset CommandInset label
783 name "sec:Figure-Floats"
788 \begin_inset Index idx
791 \begin_layout Plain Layout
798 \begin_inset Index idx
801 \begin_layout Plain Layout
810 \begin_layout Standard
811 For general explanations about floats, have a look at section
816 \begin_inset CommandInset ref
818 reference "sec:FloatIntroduction"
825 \begin_layout Standard
829 arg "float-insert figure"
834 Insert\SpecialChar \menuseparator
835 Float\SpecialChar \menuseparator
838 inserts a float with a caption that has the label
839 \begin_inset Quotes eld
847 \begin_inset Quotes erd
850 (# is the actual number).
851 You can insert the image above the caption, like in Figure
856 \begin_inset CommandInset ref
858 reference "fig:kill-plat"
862 or below the caption, like in Figure
867 \begin_inset CommandInset ref
869 reference "fig:escher"
874 More about caption placement is described in section
879 \begin_inset CommandInset ref
881 reference "sec:Caption-Placement"
888 \begin_layout Standard
889 \begin_inset Float figure
894 \begin_layout Plain Layout
896 \begin_inset Graphics
897 filename clipart/platypus.eps
907 \begin_layout Plain Layout
908 \begin_inset Caption Standard
910 \begin_layout Plain Layout
911 \begin_inset CommandInset label
917 A severely distorted platypus in a float.
930 \begin_layout Standard
931 \begin_inset Float figure
936 \begin_layout Plain Layout
937 \begin_inset Caption Standard
939 \begin_layout Plain Layout
940 \begin_inset CommandInset label
955 \begin_layout Plain Layout
957 \begin_inset Graphics
958 filename clipart/escher-lsd.eps
973 \begin_layout Standard
974 \begin_inset Index idx
977 \begin_layout Plain Layout
978 References ! to Figures
988 \begin_inset CommandInset ref
990 reference "fig:kill-plat"
995 \begin_inset CommandInset ref
997 reference "fig:escher"
1001 are examples of referenced figures.
1002 Figures can be referenced in the text by referencing their label.
1003 To do this insert a label in the caption using the menu
1005 Insert\SpecialChar \menuseparator
1008 or the toolbar button
1015 You can now refer to the label using the menu
1017 Insert\SpecialChar \menuseparator
1019 \begin_inset space ~
1024 or the toolbar button
1027 arg "dialog-show-new-inset ref"
1031 It is important to use references to floats, rather than using vague references
1033 \begin_inset Quotes eld
1037 \begin_inset Quotes erd
1040 , because LaTeX will reposition the floats in the final document and it
1042 \begin_inset Quotes eld
1046 \begin_inset Quotes erd
1050 \begin_inset Newline newline
1053 Referencing is explained in detail in section
1054 \begin_inset space ~
1058 \begin_inset CommandInset ref
1060 reference "sec:Referencing-Floats"
1067 \begin_layout Standard
1068 Normally only one image is inserted to a figure float, but sometimes you
1069 might want to use two images with separate subcaptions.
1070 This can be done by inserting image floats into existing image floats.
1071 Note that only the main caption of the float is added to the List of Figures.
1073 \begin_inset space ~
1077 \begin_inset CommandInset ref
1079 reference "fig:Two-distorted-images"
1083 is an example of a figure float with two images set side by side.
1084 You can also set the images one below the other.
1086 \begin_inset space ~
1090 \begin_inset CommandInset ref
1092 reference "fig:Undefinable-structure"
1097 \begin_inset CommandInset ref
1099 reference "fig:A-Platypus"
1106 \begin_layout Standard
1107 \begin_inset Float figure
1112 \begin_layout Plain Layout
1113 \begin_inset space \hfill{}
1117 \begin_inset Float figure
1122 \begin_layout Plain Layout
1123 \begin_inset Caption Standard
1125 \begin_layout Plain Layout
1126 \begin_inset CommandInset label
1128 name "fig:Undefinable-structure"
1132 Undefinable structure.
1140 \begin_layout Plain Layout
1141 \begin_inset Graphics
1142 filename clipart/escher-lsd.eps
1155 \begin_inset space \hfill{}
1159 \begin_inset Float figure
1164 \begin_layout Plain Layout
1165 \begin_inset Caption Standard
1167 \begin_layout Plain Layout
1168 \begin_inset CommandInset label
1170 name "fig:A-Platypus"
1182 \begin_layout Plain Layout
1183 \begin_inset Graphics
1184 filename clipart/platypus.eps
1197 \begin_inset space \hfill{}
1203 \begin_layout Plain Layout
1204 \begin_inset Caption Standard
1206 \begin_layout Plain Layout
1207 \begin_inset CommandInset label
1209 name "fig:Two-distorted-images"
1214 \begin_inset CommandInset label
1216 name "fig2:Two-distorted-images-2"
1220 Two distorted images.
1221 Both images are in the image settings group named
1222 \begin_inset Quotes eld
1226 \begin_inset Quotes erd
1242 \begin_layout Standard
1243 \begin_inset Newpage newpage
1249 \begin_layout Section
1251 \begin_inset CommandInset label
1253 name "sec:Image-Formats"
1258 \begin_inset Index idx
1261 \begin_layout Plain Layout
1268 \begin_inset Index idx
1271 \begin_layout Plain Layout
1272 Figures ! Image Formats
1280 \begin_layout Standard
1281 You can insert images in any known file format.
1282 But as explained in appendix
1283 \begin_inset space ~
1287 \begin_inset CommandInset ref
1289 reference "cha:Output-File-Formats"
1293 , each output document format allows only a few image formats.
1294 LyX uses therefore the program
1298 in the background to convert the images to the right format.
1299 To increase your work flow by avoiding these conversions in the background,
1300 you could choose to use only the image formats that can directly be embedded
1301 in the output file format.
1302 The output file formats are explained in appendix
1303 \begin_inset space ~
1307 \begin_inset CommandInset ref
1309 reference "cha:Output-File-Formats"
1316 \begin_layout Standard
1317 Similar to fonts there are two types of image formats:
1320 \begin_layout Description
1322 \begin_inset space ~
1325 images consist of pixel values, often in a compressed form.
1326 They are therefore not fully scalable and look pixelated in large zooms.
1327 Well-known bitmap image formats are
1328 \begin_inset Quotes eld
1331 Graphics Interchange Format
1332 \begin_inset Quotes erd
1335 (GIF, file extension
1336 \begin_inset Quotes eld
1344 \begin_inset Quotes erd
1348 \begin_inset Index idx
1351 \begin_layout Plain Layout
1356 \begin_layout Plain Layout
1367 \begin_layout Plain Layout
1380 \begin_inset Quotes eld
1383 Portable Network Graphics
1384 \begin_inset Quotes erd
1387 (PNG, file extension
1388 \begin_inset Quotes eld
1396 \begin_inset Quotes erd
1400 \begin_inset Index idx
1403 \begin_layout Plain Layout
1408 \begin_layout Plain Layout
1419 \begin_layout Plain Layout
1432 \begin_inset Quotes eld
1435 Joint Photographic Experts Group
1436 \begin_inset Quotes erd
1439 (JPG, file extension
1440 \begin_inset Quotes eld
1448 \begin_inset Quotes erd
1452 \begin_inset Quotes eld
1460 \begin_inset Quotes erd
1464 \begin_inset Index idx
1467 \begin_layout Plain Layout
1472 \begin_layout Plain Layout
1483 \begin_layout Plain Layout
1498 \begin_layout Description
1500 \begin_inset space ~
1503 images consist of vectors and can therefore be scaled to any size without
1505 The scaling ability is necessary if you want to create presentations, because
1506 presentations are always scaled by the video projector.
1507 Scaling is also useful for online documents to let the user zoom into diagrams.
1508 \begin_inset Newline newline
1511 Well-known scalable image formats are
1512 \begin_inset Quotes eld
1515 Scalable Vector Graphics
1516 \begin_inset Quotes erd
1519 (SVG, file extension
1520 \begin_inset Quotes eld
1528 \begin_inset Quotes erd
1532 \begin_inset Index idx
1535 \begin_layout Plain Layout
1540 \begin_layout Plain Layout
1551 \begin_layout Plain Layout
1564 \begin_inset Quotes eld
1567 Encapsulated PostScript
1568 \begin_inset Quotes erd
1571 (EPS, file extension
1572 \begin_inset Quotes eld
1580 \begin_inset Quotes erd
1584 \begin_inset Index idx
1587 \begin_layout Plain Layout
1592 \begin_layout Plain Layout
1603 \begin_layout Plain Layout
1616 \begin_inset Quotes eld
1619 Portable Document Format
1620 \begin_inset Quotes erd
1623 (PDF, file extension
1624 \begin_inset Quotes eld
1632 \begin_inset Quotes erd
1636 \begin_inset Index idx
1639 \begin_layout Plain Layout
1646 \begin_inset Quotes eld
1650 \begin_inset Quotes erd
1653 (WMF, file extension
1654 \begin_inset Quotes eld
1662 \begin_inset Quotes erd
1666 \begin_inset Index idx
1669 \begin_layout Plain Layout
1674 \begin_layout Plain Layout
1685 \begin_layout Plain Layout
1699 \begin_inset Quotes eld
1703 \begin_inset Quotes erd
1706 , because you can convert any bitmap image to a PDF or EPS-image and the
1707 result will still be a bitmap image.
1708 In such cases only a header with the image properties is added to the original
1713 \begin_layout Plain Layout
1714 In the case of PDF, the original image is additionally compressed.
1720 The PDF-files generated by
1724 are for example bitmap images.
1727 \begin_layout Standard
1728 Normally it is not possible to convert a bitmap image into a scalable one,
1730 Only the image formats PDF and EPS can directly be embedded to PDF and
1731 PostScript output files, respectively.
1732 SVG and WMF-images are recalculated to bitmaps when the output file is
1733 generated because there is currently no adequate WMF/SVG
1734 \begin_inset Formula $\to$
1737 PDF/EPS converter available.
1740 \begin_layout Chapter
1742 \begin_inset Index idx
1745 \begin_layout Plain Layout
1754 \begin_layout Section
1756 \begin_inset Index idx
1759 \begin_layout Plain Layout
1760 Table ! Introduction
1768 \begin_layout Standard
1769 You can insert a table using either the toolbar button
1772 arg "tabular-insert"
1777 Insert\SpecialChar \menuseparator
1781 The toolbar button offers you a graphical selection: move the mouse to
1782 set the column/row number of the table that should be created and then
1783 press a mouse button.
1784 When you use the menu to create a table, a dialog will appear, asking you
1785 for the number of rows and columns.
1786 \begin_inset Newline newline
1789 The default table has lines around any cell and the first row appears separated
1790 from the rest of the table.
1791 This separation occurs due to a double line: The cells of the first row
1792 have a line below them and the cells of the second row have a line above
1794 Here is an example table:
1797 \begin_layout Standard
1799 \begin_inset Tabular
1800 <lyxtabular version="3" rows="4" columns="4">
1801 <features rotate="0" tabularvalignment="middle">
1802 <column alignment="center" valignment="top" width="0">
1803 <column alignment="center" valignment="top" width="0">
1804 <column alignment="center" valignment="top" width="0">
1805 <column alignment="center" valignment="top" width="0">
1807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1810 \begin_layout Plain Layout
1816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1819 \begin_layout Plain Layout
1834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1837 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1846 \begin_layout Plain Layout
1854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1857 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1884 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1893 \begin_layout Plain Layout
1901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1904 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1931 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1940 \begin_layout Plain Layout
1948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1951 \begin_layout Plain Layout
1966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1969 \begin_layout Plain Layout
1975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1978 \begin_layout Plain Layout
1984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1987 \begin_layout Plain Layout
2001 \begin_layout Section
2003 \begin_inset Index idx
2006 \begin_layout Plain Layout
2015 \begin_layout Standard
2016 You can alter a table by clicking on it with the right mouse button, which
2017 brings up the table dialog.
2018 Here you can adjust the settings of that cell and row/column respectively
2019 where the cursor is currently placed.
2020 Most of the dialog options also work on selections.
2021 This means if you select more cells, columns or rows, the action is done
2022 for the whole selection.
2023 Note that there is a difference between selecting the
2027 of the cell, and the cell itself.
2028 \begin_inset Newline newline
2031 With the dialog option
2034 \begin_inset space ~
2039 every change you make in the dialog is directly applied.
2040 If you move the cursor to another table cell the dialog will then also
2041 be updated with the parameters of the new cell.
2042 If you change length values in the dialog you must press return to get
2044 \begin_inset Newline newline
2047 You can alter tables with the following tabs of the table dialog:
2050 \begin_layout Description
2054 \begin_inset space ~
2059 Here you can set the table width
2060 \begin_inset Index idx
2063 \begin_layout Plain Layout
2069 , and the horizontal alignment and the width of the current column.
2073 \begin_inset space ~
2077 \begin_inset space ~
2082 is described in section
2083 \begin_inset space ~
2087 \begin_inset CommandInset ref
2089 reference "sub:Special-Cell-Alignment"
2094 When you have set a width you can also adjust the vertical alignment of
2096 A given width will allow the cell to have line breaks and multiple paragraphs
2098 \begin_inset space \thinspace{}
2102 \begin_inset CommandInset ref
2104 reference "sub:Multiple-Lines-in"
2109 If you set no width, the column is as wide as the content of its widest
2111 \begin_inset Newline newline
2114 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2116 \begin_inset space \thinspace{}
2120 \begin_inset CommandInset ref
2122 reference "sub:Multicolumns"
2126 or the cells of one column as multirow cell, see sec.
2127 \begin_inset space \thinspace{}
2131 \begin_inset CommandInset ref
2133 reference "sub:Multirows"
2138 \begin_inset Newline newline
2141 The rotate check boxes rotate the current cell, a selection, or the whole
2142 table counter-clockwise by 90
2143 \begin_inset space \thinspace{}
2147 The rotation is not shown within LyX, only in the output.
2148 For more information see sec.
2149 \begin_inset space \thinspace{}
2153 \begin_inset CommandInset ref
2155 reference "sec:Rotated-Table-Cells"
2160 \begin_inset Newline newline
2164 \begin_inset Note Greyedout
2167 \begin_layout Plain Layout
2172 Not all DVI-viewers are able to display rotations.
2178 \begin_inset Newline newline
2181 The table-wide vertical alignment is used for tables within text lines:
2182 \begin_inset Newline newline
2185 A line with tables with different alignments:
2186 \begin_inset Tabular
2187 <lyxtabular version="3" rows="2" columns="2">
2188 <features rotate="0" tabularvalignment="top">
2189 <column alignment="center" valignment="top" width="0pt">
2190 <column alignment="center" valignment="top" width="0">
2192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2195 \begin_layout Plain Layout
2201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2204 \begin_layout Plain Layout
2221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2224 \begin_layout Plain Layout
2239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2242 \begin_layout Plain Layout
2254 \begin_inset Tabular
2255 <lyxtabular version="3" rows="2" columns="2">
2256 <features rotate="0" tabularvalignment="middle">
2257 <column alignment="center" valignment="top" width="0">
2258 <column alignment="center" valignment="top" width="0">
2260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2263 \begin_layout Plain Layout
2269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2272 \begin_layout Plain Layout
2289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2292 \begin_layout Plain Layout
2307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2310 \begin_layout Plain Layout
2322 \begin_inset Tabular
2323 <lyxtabular version="3" rows="2" columns="2">
2324 <features rotate="0" tabularvalignment="bottom">
2325 <column alignment="center" valignment="top" width="0pt">
2326 <column alignment="center" valignment="top" width="0">
2328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2331 \begin_layout Plain Layout
2337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2340 \begin_layout Plain Layout
2357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2360 \begin_layout Plain Layout
2375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2378 \begin_layout Plain Layout
2390 \begin_inset Newline newline
2393 It is also possible to enter a LaTeX-argument which is needed for special
2394 table formattings, see sec.
2395 \begin_inset space \thinspace{}
2399 \begin_inset CommandInset ref
2401 reference "sub:Multicolumn-Calculations"
2406 \begin_inset CommandInset ref
2408 reference "sec:Colored-Tables"
2415 \begin_layout Description
2420 In this tab you can add and delete border lines for the current row/column.
2421 \begin_inset Newline newline
2424 Using the style option
2428 will convert the table to a formal table as described in sec.
2429 \begin_inset space \thinspace{}
2433 \begin_inset CommandInset ref
2435 reference "sec:Formal-Tables"
2440 \begin_inset Newline newline
2443 You can also add space here to table rows as described in sec.
2444 \begin_inset space \thinspace{}
2448 \begin_inset CommandInset ref
2450 reference "sub:Row-Spacing"
2457 \begin_layout Description
2462 This tab is to make a table a so called
2463 \begin_inset Quotes eld
2471 \begin_inset Quotes erd
2474 that can run over several pages.
2476 \begin_inset space ~
2480 \begin_inset CommandInset ref
2482 reference "sec:Longtables"
2487 \begin_inset CommandInset ref
2489 reference "sec:Special-Longtable-Issues"
2493 describe the longtable features in detail.
2496 \begin_layout Section
2498 \begin_inset Index idx
2501 \begin_layout Plain Layout
2510 \begin_layout Standard
2511 The table toolbar is an alternative to the table dialog to be able to alter
2513 It should normally appear at the bottom of LyX's main window when the cursor
2515 You can alternatively switch it on to appear always, by right-clicking
2516 in LyX's main menu bar.
2519 \begin_layout Standard
2520 The toolbar has the following icons:
2523 \begin_layout Labeling
2524 \labelwidthstring 00.00.0000
2527 arg "inset-modify tabular append-row"
2530 adds a row below the current cell or selection
2533 \begin_layout Labeling
2534 \labelwidthstring 00.00.0000
2537 arg "inset-modify tabular append-column"
2540 adds a column right beside the current cell or selection
2543 \begin_layout Labeling
2544 \labelwidthstring 00.00.0000
2547 arg "inset-modify tabular delete-row"
2550 deletes the current row or selection
2553 \begin_layout Labeling
2554 \labelwidthstring 00.00.0000
2557 arg "inset-modify tabular delete-column"
2560 deletes the current column or selection
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2567 arg "inset-modify tabular toggle-line-top"
2570 adds a line at the top of the current cell / row or of a selection
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2577 arg "inset-modify tabular toggle-line-bottom"
2580 adds a line at the bottom of the current cell / row or of a selection
2583 \begin_layout Labeling
2584 \labelwidthstring 00.00.0000
2587 arg "inset-modify tabular toggle-line-left"
2590 adds a line at the left side of the current cell / row or of a selection
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2597 arg "inset-modify tabular toggle-line-right"
2600 adds a line at the right side of the current cell / row or of a selection
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2607 arg "inset-modify tabular set-all-lines"
2610 adds lines around the current or selected cells - if the current cell no
2611 multicolumn cell this also affects the current row and column
2614 \begin_layout Labeling
2615 \labelwidthstring 00.00.0000
2618 arg "inset-modify tabular unset-all-lines"
2621 deletes all lines of the current or selected cells - if the current cell
2622 no multicolumn cell this also affects the current row and column
2625 \begin_layout Labeling
2626 \labelwidthstring 00.00.0000
2629 arg "inset-modify tabular m-align-left"
2632 left-aligns the content of the current cell / column
2635 \begin_layout Labeling
2636 \labelwidthstring 00.00.0000
2639 arg "inset-modify tabular m-align-center"
2642 centers the content of the current cell / column horizontally
2645 \begin_layout Labeling
2646 \labelwidthstring 00.00.0000
2649 arg "inset-modify tabular m-align-right"
2652 right-aligns the content of the current cell / column
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2659 arg "inset-modify tabular align-decimal"
2662 aligns the content of the current column at a character
2665 \begin_layout Labeling
2666 \labelwidthstring 00.00.0000
2669 arg "inset-modify tabular m-valign-top"
2672 aligns the content of the current cell vertically to the top
2675 \begin_layout Labeling
2676 \labelwidthstring 00.00.0000
2679 arg "inset-modify tabular m-valign-middle"
2682 centers the content of the current cell vertically
2685 \begin_layout Labeling
2686 \labelwidthstring 00.00.0000
2689 arg "inset-modify tabular m-valign-bottom"
2692 aligns the content of the current cell vertically to the bottom
2695 \begin_layout Labeling
2696 \labelwidthstring 00.00.0000
2699 arg "inset-modify tabular set-rotate-cell"
2702 rotates the current cell or selection counter-clockwise by 90°
2705 \begin_layout Labeling
2706 \labelwidthstring 00.00.0000
2709 arg "inset-modify tabular set-rotate-tabular"
2712 rotates the whole table counter-clockwise by 90°
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2719 arg "inset-modify tabular multicolumn"
2722 sets the current cell or selection as a multicolumn
2725 \begin_layout Labeling
2726 \labelwidthstring 00.00.0000
2729 arg "inset-modify tabular multirow"
2732 sets the current cell or selection as a multirow
2735 \begin_layout Standard
2736 \begin_inset Note Greyedout
2739 \begin_layout Plain Layout
2744 For the output the vertical alignment of the first cell in a row is used
2745 for all following cells in the row.
2753 \begin_layout Section
2755 \begin_inset Index idx
2758 \begin_layout Plain Layout
2767 \begin_layout Standard
2768 In addition to the table dialog and toolbar, the menu
2770 Edit\SpecialChar \menuseparator
2773 allows you to add and delete border lines for the current row/column and
2774 to set the current selection as multicolumn.
2775 The menu is only available when the cursor is inside a table.
2778 \begin_layout Section
2780 \begin_inset CommandInset label
2782 name "sec:Table-Floats"
2787 \begin_inset Index idx
2790 \begin_layout Plain Layout
2797 \begin_inset Index idx
2800 \begin_layout Plain Layout
2809 \begin_layout Standard
2810 For general explanations about floats, have a look at section
2811 \begin_inset space ~
2815 \begin_inset CommandInset ref
2817 reference "sec:FloatIntroduction"
2824 \begin_layout Standard
2825 \begin_inset Float table
2831 \begin_layout Plain Layout
2832 \begin_inset Caption Standard
2834 \begin_layout Plain Layout
2835 \begin_inset CommandInset label
2837 name "tab:a table float"
2849 \begin_layout Plain Layout
2851 \begin_inset Tabular
2852 <lyxtabular version="3" rows="3" columns="3">
2853 <features rotate="0" tabularvalignment="middle">
2854 <column alignment="center" valignment="top" width="0pt">
2855 <column alignment="center" valignment="top" width="0pt">
2856 <column alignment="center" valignment="top" width="0pt">
2858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2861 \begin_layout Plain Layout
2876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2879 \begin_layout Plain Layout
2894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2897 \begin_layout Plain Layout
2914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2917 \begin_layout Plain Layout
2932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2935 \begin_layout Plain Layout
2950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2953 \begin_layout Plain Layout
2970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2973 \begin_layout Plain Layout
2983 \begin_inset Formula $\int x^{2}dx$
2991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2994 \begin_layout Plain Layout
3004 \begin_inset Formula $\left[\begin{array}{cc}
3015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3018 \begin_layout Plain Layout
3028 \begin_inset Formula $1+1=2$
3049 \begin_layout Standard
3050 Table floats can be inserted using the menu
3052 Insert\SpecialChar \menuseparator
3053 Float\SpecialChar \menuseparator
3056 or the toolbar button
3059 arg "float-insert table"
3065 \begin_layout Standard
3066 The float appears as a collapsible box with a caption that has the label
3068 \begin_inset Quotes eld
3072 \begin_inset space ~
3076 \begin_inset Quotes erd
3079 (# is the actual table number).
3080 You can insert tables in the float above or below the caption.
3083 \begin_layout Standard
3085 \begin_inset space ~
3089 \begin_inset CommandInset ref
3091 reference "tab:a table float"
3095 is an example table within a table float.
3098 \begin_layout Standard
3099 Having the caption above the table is the common rule that is unfortunately
3100 not supported in LaTeX's standard classes.
3101 This means that, if you are using the document classes
3117 , there will be no space between the caption and the table.
3118 To insert the needed space, add the following option to the load command
3119 of the LaTeX-package
3124 \begin_inset Index idx
3127 \begin_layout Plain Layout
3128 LaTeX-packages ! caption
3133 in your document preamble
3137 \begin_layout Plain Layout
3138 For more information have a look at section
3139 \begin_inset space ~
3143 \begin_inset CommandInset ref
3145 reference "sec:Caption-Placement"
3157 \begin_layout Standard
3163 \begin_layout Standard
3168 , which is described in section
3169 \begin_inset space ~
3173 \begin_inset CommandInset ref
3175 reference "sec:Caption-Formatting"
3179 , is used to adjust the caption format.
3182 \begin_layout Standard
3183 \begin_inset Index idx
3186 \begin_layout Plain Layout
3187 References ! to Tables
3192 Tables can be cross-referenced in the text by referencing their label.
3193 To do this insert a label in the caption using the menu
3195 Insert\SpecialChar \menuseparator
3198 or the toolbar button
3205 You can now refer to the label using the menu
3207 Insert\SpecialChar \menuseparator
3209 \begin_inset space ~
3214 or the toolbar button
3217 arg "dialog-show-new-inset ref"
3221 \begin_inset Newline newline
3224 Referencing is explained in detail in section
3225 \begin_inset space ~
3229 \begin_inset CommandInset ref
3231 reference "sec:Referencing-Floats"
3238 \begin_layout Section
3240 \begin_inset CommandInset label
3242 name "sec:Longtables"
3247 \begin_inset Index idx
3250 \begin_layout Plain Layout
3257 \begin_inset Index idx
3260 \begin_layout Plain Layout
3269 \begin_layout Standard
3270 If the table is too long to fit on one page, you can use the option
3273 \begin_inset space ~
3277 \begin_inset space ~
3286 of the table dialog to split the table automatically over more pages.
3287 Doing this enables the following options:
3290 \begin_layout Description
3291 Header: The current row is defined to be a header row that appears on all
3292 pages of the longtable; except for the first page, if
3295 \begin_inset space ~
3301 This is therefore called the main header.
3304 \begin_layout Description
3306 \begin_inset space ~
3309 header: The current row is defined to be a header row that appears on the
3310 first page of the longtable.
3313 \begin_layout Description
3314 Footer: The current row is defined to be a footer row that appears on all
3315 pages of the longtable; except for the last page, if
3318 \begin_inset space ~
3326 \begin_layout Description
3328 \begin_inset space ~
3331 footer: The current row is defined to be a footer row that appears on the
3332 last page of the longtable.
3335 \begin_layout Description
3336 Caption: The current row contains the table caption.
3337 The row is reset as single column and a caption is inserted.
3338 More about longtable captions is explained in sec.
3339 \begin_inset space \thinspace{}
3343 \begin_inset CommandInset ref
3345 reference "sub:Longtable-Captions"
3352 \begin_layout Standard
3353 You can also specify a row where the table is split.
3354 See the following longtable to see how it works:
3357 \begin_layout Standard
3359 \begin_inset Tabular
3360 <lyxtabular version="3" rows="69" columns="3">
3361 <features rotate="0" islongtable="true" longtabularalignment="center">
3362 <column alignment="left" valignment="top" width="0cm">
3363 <column alignment="left" valignment="top" width="0pt">
3364 <column alignment="center" valignment="top" width="0pt">
3365 <row endfirsthead="true">
3366 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3369 \begin_layout Plain Layout
3372 Example Phone List (ignore the names)
3377 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3380 \begin_layout Plain Layout
3386 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3389 \begin_layout Plain Layout
3396 <row endfirsthead="true">
3397 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3400 \begin_layout Plain Layout
3408 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3411 \begin_layout Plain Layout
3417 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3420 \begin_layout Plain Layout
3429 <row endhead="true">
3430 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3460 <row endhead="true">
3461 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3493 <row endfoot="true">
3494 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3497 \begin_layout Plain Layout
3498 continued on next page
3503 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4177 \begin_layout Plain Layout
4185 <cell alignment="center" valignment="top" usebox="none">
4188 \begin_layout Plain Layout
4194 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4197 \begin_layout Plain Layout
4205 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4208 \begin_layout Plain Layout
4216 <cell alignment="center" valignment="top" usebox="none">
4219 \begin_layout Plain Layout
4225 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4228 \begin_layout Plain Layout
4236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4239 \begin_layout Plain Layout
4247 <cell alignment="center" valignment="top" usebox="none">
4250 \begin_layout Plain Layout
4256 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4259 \begin_layout Plain Layout
4267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4270 \begin_layout Plain Layout
4278 <cell alignment="center" valignment="top" usebox="none">
4281 \begin_layout Plain Layout
4287 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4290 \begin_layout Plain Layout
4298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4301 \begin_layout Plain Layout
4309 <cell alignment="center" valignment="top" usebox="none">
4312 \begin_layout Plain Layout
4318 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4321 \begin_layout Plain Layout
4329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4332 \begin_layout Plain Layout
4340 <cell alignment="center" valignment="top" usebox="none">
4343 \begin_layout Plain Layout
4349 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4352 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4363 \begin_layout Plain Layout
4371 <cell alignment="center" valignment="top" usebox="none">
4374 \begin_layout Plain Layout
4380 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4383 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4394 \begin_layout Plain Layout
4402 <cell alignment="center" valignment="top" usebox="none">
4405 \begin_layout Plain Layout
4411 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4414 \begin_layout Plain Layout
4422 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4425 \begin_layout Plain Layout
4433 <cell alignment="center" valignment="top" usebox="none">
4436 \begin_layout Plain Layout
4442 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4445 \begin_layout Plain Layout
4453 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4456 \begin_layout Plain Layout
4464 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4467 \begin_layout Plain Layout
4473 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4476 \begin_layout Plain Layout
4484 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4487 \begin_layout Plain Layout
4493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5164 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5167 \begin_layout Plain Layout
5175 <cell alignment="center" valignment="top" usebox="none">
5178 \begin_layout Plain Layout
5184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5187 \begin_layout Plain Layout
5195 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5198 \begin_layout Plain Layout
5206 <cell alignment="center" valignment="top" usebox="none">
5209 \begin_layout Plain Layout
5215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5218 \begin_layout Plain Layout
5226 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5229 \begin_layout Plain Layout
5237 <cell alignment="center" valignment="top" usebox="none">
5240 \begin_layout Plain Layout
5246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5249 \begin_layout Plain Layout
5257 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5260 \begin_layout Plain Layout
5268 <cell alignment="center" valignment="top" usebox="none">
5271 \begin_layout Plain Layout
5277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5280 \begin_layout Plain Layout
5288 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5291 \begin_layout Plain Layout
5299 <cell alignment="center" valignment="top" usebox="none">
5302 \begin_layout Plain Layout
5308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5311 \begin_layout Plain Layout
5319 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5322 \begin_layout Plain Layout
5330 <cell alignment="center" valignment="top" usebox="none">
5333 \begin_layout Plain Layout
5339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5342 \begin_layout Plain Layout
5350 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5353 \begin_layout Plain Layout
5361 <cell alignment="center" valignment="top" usebox="none">
5364 \begin_layout Plain Layout
5370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5373 \begin_layout Plain Layout
5381 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5384 \begin_layout Plain Layout
5392 <cell alignment="center" valignment="top" usebox="none">
5395 \begin_layout Plain Layout
5401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5404 \begin_layout Plain Layout
5412 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5415 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" usebox="none">
5426 \begin_layout Plain Layout
5432 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5435 \begin_layout Plain Layout
5443 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5446 \begin_layout Plain Layout
5454 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5457 \begin_layout Plain Layout
5463 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5466 \begin_layout Plain Layout
5473 <row endlastfoot="true">
5474 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5477 \begin_layout Plain Layout
5483 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5486 \begin_layout Plain Layout
5492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5495 \begin_layout Plain Layout
5510 \begin_layout Plain Layout
5514 addtocounter{table}{-1}
5520 \begin_inset Note Note
5523 \begin_layout Plain Layout
5524 See the first greyed-out note in section
5525 \begin_inset space ~
5529 \begin_inset CommandInset ref
5531 reference "sub:Longtable-Captions"
5535 for an explanation of this command.
5543 \begin_layout Subsection
5544 Footnotes in Longtables
5545 \begin_inset CommandInset label
5547 name "sub:Footnotes-in-Longtables"
5552 \begin_inset Index idx
5555 \begin_layout Plain Layout
5556 Longtables ! Footnotes
5564 \begin_layout Standard
5565 Footnotes can be inserted to every longtable cell.
5566 They appear at the bottom of the page where the table cell with the footnote
5569 \begin_inset space ~
5573 \begin_inset CommandInset ref
5575 reference "tab:DiffCaptions"
5579 has for example a footnote.
5582 \begin_layout Subsection
5584 \begin_inset Index idx
5587 \begin_layout Plain Layout
5588 Longtables ! Alignment
5596 \begin_layout Standard
5597 The horizontal alignment of longtables can be set in the table settings
5599 For left- and right-alignment the table will be directly at the page border.
5600 To add space between the table and the border one has to set the alignment
5601 to center and change the value of the LaTeX-lengths
5613 by inserting this line as TeX-Code before the longtable:
5616 \begin_layout Standard
5626 \begin_layout Standard
5627 The value can have any of the units listed in Table
5628 \begin_inset space ~
5632 \begin_inset CommandInset ref
5634 reference "tab:Units"
5645 controls the horizontal distance from the left page border to the longtable,
5652 the distance from the right side.
5653 The default value for both lengths is
5659 , which is in this case the same as an horizontal fill in LyX.
5662 \begin_layout Standard
5663 The following longtable was centered and
5679 \begin_layout Plain Layout
5695 \begin_layout Standard
5696 \begin_inset Tabular
5697 <lyxtabular version="3" rows="5" columns="5">
5698 <features rotate="0" islongtable="true" longtabularalignment="center">
5699 <column alignment="center" valignment="top" width="0">
5700 <column alignment="center" valignment="top" width="0pt">
5701 <column alignment="center" valignment="top" width="0">
5702 <column alignment="center" valignment="top" width="0">
5703 <column alignment="center" valignment="top" width="0">
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5708 \begin_layout Plain Layout
5714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5717 \begin_layout Plain Layout
5723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_layout Plain Layout
5732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5735 \begin_layout Plain Layout
5741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5744 \begin_layout Plain Layout
5752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5755 \begin_layout Plain Layout
5761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5764 \begin_layout Plain Layout
5770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5773 \begin_layout Plain Layout
5779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5782 \begin_layout Plain Layout
5788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5791 \begin_layout Plain Layout
5799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5802 \begin_layout Plain Layout
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5811 \begin_layout Plain Layout
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5820 \begin_layout Plain Layout
5826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5829 \begin_layout Plain Layout
5835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5838 \begin_layout Plain Layout
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5849 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5858 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5867 \begin_layout Plain Layout
5873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5876 \begin_layout Plain Layout
5882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5885 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5896 \begin_layout Plain Layout
5902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5905 \begin_layout Plain Layout
5911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5914 \begin_layout Plain Layout
5920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5923 \begin_layout Plain Layout
5929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5932 \begin_layout Plain Layout
5947 \begin_layout Plain Layout
5964 \begin_layout Plain Layout
5968 addtocounter{table}{-1}
5974 \begin_inset Note Note
5977 \begin_layout Plain Layout
5978 See the first greyed-out note in section
5979 \begin_inset space ~
5983 \begin_inset CommandInset ref
5985 reference "sub:Longtable-Captions"
5989 for an explanation of this command.
5997 \begin_layout Subsection
5999 \begin_inset Index idx
6002 \begin_layout Plain Layout
6003 Longtables ! Captions
6009 \begin_inset CommandInset label
6011 name "sub:Longtable-Captions"
6018 \begin_layout Standard
6019 A longtable cannot be put into a table float because floats can only be
6021 But the caption environment of floats can also be used for longtables when
6022 you use the longtable option
6026 as described in sec.
6027 \begin_inset space \thinspace{}
6031 \begin_inset CommandInset ref
6033 reference "sec:Longtables"
6039 \change_inserted -195340706 1324242393
6040 A caption must be put into one of
6043 \begin_inset space ~
6059 \begin_inset space ~
6065 Each kind of footer and header may only contain one
6066 \change_deleted -195340706 1324242398
6067 Only one table row can contain the
6072 \begin_layout Standard
6073 Here is a short longtable to see how it works:
6076 \begin_layout Standard
6077 \begin_inset Tabular
6078 <lyxtabular version="3" rows="6" columns="5">
6079 <features rotate="0" islongtable="true" longtabularalignment="center">
6080 <column alignment="center" valignment="top" width="0">
6081 <column alignment="center" valignment="top" width="0">
6082 <column alignment="center" valignment="top" width="0">
6083 <column alignment="center" valignment="top" width="0">
6084 <column alignment="center" valignment="top" width="0">
6085 <row endfirsthead="true" caption="true">
6086 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6089 \begin_layout Plain Layout
6090 \begin_inset Caption Standard
6092 \begin_layout Plain Layout
6093 Longtable with caption
6094 \begin_inset Argument 1
6097 \begin_layout Plain Layout
6113 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6116 \begin_layout Plain Layout
6122 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6125 \begin_layout Plain Layout
6131 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6134 \begin_layout Plain Layout
6140 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6143 \begin_layout Plain Layout
6151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6154 \begin_layout Plain Layout
6160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6163 \begin_layout Plain Layout
6169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6172 \begin_layout Plain Layout
6178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6181 \begin_layout Plain Layout
6187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6190 \begin_layout Plain Layout
6198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6201 \begin_layout Plain Layout
6207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6210 \begin_layout Plain Layout
6216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6219 \begin_layout Plain Layout
6225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6228 \begin_layout Plain Layout
6234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6237 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6257 \begin_layout Plain Layout
6263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6266 \begin_layout Plain Layout
6272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6275 \begin_layout Plain Layout
6281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6284 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6304 \begin_layout Plain Layout
6310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6313 \begin_layout Plain Layout
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6322 \begin_layout Plain Layout
6328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6331 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6342 \begin_layout Plain Layout
6348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6351 \begin_layout Plain Layout
6357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6360 \begin_layout Plain Layout
6366 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6369 \begin_layout Plain Layout
6375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6378 \begin_layout Plain Layout
6392 \begin_layout Standard
6393 \begin_inset VSpace medskip
6397 \begin_inset Note Greyedout
6400 \begin_layout Plain Layout
6404 \begin_inset space ~
6409 The table number is increased for every longtable, even if you did not
6410 set a caption for it.
6411 For this reason you could have the case that e.
6412 \begin_inset space \thinspace{}
6416 \begin_inset space \space{}
6420 \begin_inset space ~
6424 \begin_inset space ~
6427 2.1 in the list of tables if there are two longtables without captions.
6428 To avoid this you can add the following command in TeX-Code after every
6429 longtable without a caption:
6432 \begin_layout Plain Layout
6437 addtocounter{table}{-1}
6440 \begin_layout Plain Layout
6441 This is not needed when none of your longtables has a caption and you add
6442 the following code to the document preamble:
6445 \begin_layout Plain Layout
6455 \begin_inset Newline newline
6466 addtocounter{table}{-1}}
6474 \begin_layout Standard
6475 \begin_inset Note Greyedout
6478 \begin_layout Plain Layout
6482 \begin_inset space ~
6492 \begin_inset Index idx
6495 \begin_layout Plain Layout
6496 LaTeX-packages ! hyperref
6509 dialog to link cross-references, the link to a longtable caption will always
6510 point to the beginning of the document.
6518 \begin_layout Subsubsection
6519 References to Longtables
6520 \begin_inset Index idx
6523 \begin_layout Plain Layout
6524 Longtables ! References
6532 \begin_layout Standard
6533 \begin_inset Tabular
6534 <lyxtabular version="3" rows="6" columns="5">
6535 <features rotate="0" islongtable="true" longtabularalignment="center">
6536 <column alignment="center" valignment="top" width="0">
6537 <column alignment="center" valignment="top" width="0">
6538 <column alignment="center" valignment="top" width="0">
6539 <column alignment="center" valignment="top" width="0">
6540 <column alignment="center" valignment="top" width="0">
6541 <row endfirsthead="true" caption="true">
6542 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6545 \begin_layout Plain Layout
6546 \begin_inset Caption Standard
6548 \begin_layout Plain Layout
6549 Referenced longtable
6550 \begin_inset CommandInset label
6552 name "tab:RefExample"
6566 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6569 \begin_layout Plain Layout
6575 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6578 \begin_layout Plain Layout
6584 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6587 \begin_layout Plain Layout
6593 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6596 \begin_layout Plain Layout
6604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6607 \begin_layout Plain Layout
6613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6616 \begin_layout Plain Layout
6622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6625 \begin_layout Plain Layout
6631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6634 \begin_layout Plain Layout
6640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6643 \begin_layout Plain Layout
6651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6654 \begin_layout Plain Layout
6660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6663 \begin_layout Plain Layout
6669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6672 \begin_layout Plain Layout
6678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6681 \begin_layout Plain Layout
6687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6690 \begin_layout Plain Layout
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Plain Layout
6707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6710 \begin_layout Plain Layout
6716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6719 \begin_layout Plain Layout
6725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6728 \begin_layout Plain Layout
6734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6737 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6748 \begin_layout Plain Layout
6754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6757 \begin_layout Plain Layout
6763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6766 \begin_layout Plain Layout
6772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6775 \begin_layout Plain Layout
6781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6784 \begin_layout Plain Layout
6792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6795 \begin_layout Plain Layout
6801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6804 \begin_layout Plain Layout
6810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6813 \begin_layout Plain Layout
6819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6822 \begin_layout Plain Layout
6828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6831 \begin_layout Plain Layout
6845 \begin_layout Standard
6846 To reference a longtable, insert a label into the caption.
6849 \begin_layout Standard
6850 This is a reference to Table
6851 \begin_inset space ~
6855 \begin_inset CommandInset ref
6857 reference "tab:RefExample"
6864 \begin_layout Standard
6865 The caption layout can be set together with all other captions of your document
6866 using the LaTeX-package
6871 \begin_inset Index idx
6874 \begin_layout Plain Layout
6875 LaTeX-packages ! caption
6881 \begin_inset space ~
6885 \begin_inset CommandInset ref
6887 reference "sec:Caption-Formatting"
6894 \begin_layout Subsubsection
6896 \begin_inset Index idx
6899 \begin_layout Plain Layout
6900 Longtables ! Caption Width
6908 \begin_layout Standard
6909 The maximal width of caption lines is defined by the length
6916 Its default value is 4
6917 \begin_inset space \thinspace{}
6921 To change it add the following command to your document preamble or as
6922 TeX-Code into your document before the longtable that should be affected
6925 \begin_layout Standard
6935 \begin_layout Standard
6936 where the width could have one of the units listed in appendix
6937 \begin_inset space ~
6941 \begin_inset CommandInset ref
6943 reference "cha:Units-available-in"
6950 \begin_layout Standard
6951 The following tables show the difference:
6954 \begin_layout Standard
6955 \begin_inset Tabular
6956 <lyxtabular version="3" rows="6" columns="5">
6957 <features rotate="0" islongtable="true" longtabularalignment="center">
6958 <column alignment="center" valignment="top" width="0">
6959 <column alignment="center" valignment="top" width="0">
6960 <column alignment="center" valignment="top" width="0">
6961 <column alignment="center" valignment="top" width="0">
6962 <column alignment="center" valignment="top" width="0">
6963 <row endfirsthead="true" caption="true">
6964 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6967 \begin_layout Plain Layout
6968 \begin_inset Caption Standard
6970 \begin_layout Plain Layout
6971 long full title with default width long full title with default width long
6972 full title with default width
6973 \begin_inset Argument 1
6976 \begin_layout Plain Layout
6977 caption with default width
6992 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6995 \begin_layout Plain Layout
7001 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7004 \begin_layout Plain Layout
7010 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7013 \begin_layout Plain Layout
7019 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7022 \begin_layout Plain Layout
7030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7033 \begin_layout Plain Layout
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7042 \begin_layout Plain Layout
7048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7051 \begin_layout Plain Layout
7057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7060 \begin_layout Plain Layout
7066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7069 \begin_layout Plain Layout
7077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7080 \begin_layout Plain Layout
7086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7089 \begin_layout Plain Layout
7095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7098 \begin_layout Plain Layout
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7107 \begin_layout Plain Layout
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7116 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7127 \begin_layout Plain Layout
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7136 \begin_layout Plain Layout
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7145 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7154 \begin_layout Plain Layout
7160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7163 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Plain Layout
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Plain Layout
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Plain Layout
7198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7201 \begin_layout Plain Layout
7207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7210 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7221 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7230 \begin_layout Plain Layout
7236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7239 \begin_layout Plain Layout
7245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7248 \begin_layout Plain Layout
7254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7257 \begin_layout Plain Layout
7271 \begin_layout Standard
7275 \begin_layout Plain Layout
7287 \begin_inset Tabular
7288 <lyxtabular version="3" rows="6" columns="5">
7289 <features rotate="0" islongtable="true" longtabularalignment="center">
7290 <column alignment="center" valignment="top" width="0">
7291 <column alignment="center" valignment="top" width="0">
7292 <column alignment="center" valignment="top" width="0">
7293 <column alignment="center" valignment="top" width="0">
7294 <column alignment="center" valignment="top" width="0">
7295 <row endfirsthead="true" caption="true">
7296 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7299 \begin_layout Plain Layout
7300 \begin_inset Caption Standard
7302 \begin_layout Plain Layout
7303 long full title with width set to 5
7304 \begin_inset space \thinspace{}
7307 cm long full title with width set to 5
7308 \begin_inset space \thinspace{}
7311 cm long full title with width set to 5
7312 \begin_inset space \thinspace{}
7316 \begin_inset Argument 1
7319 \begin_layout Plain Layout
7321 \begin_inset space \thinspace{}
7325 \begin_inset space \thinspace{}
7329 \begin_inset space \thinspace{}
7347 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7350 \begin_layout Plain Layout
7356 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7359 \begin_layout Plain Layout
7365 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7368 \begin_layout Plain Layout
7374 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7377 \begin_layout Plain Layout
7385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7388 \begin_layout Plain Layout
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7397 \begin_layout Plain Layout
7403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7406 \begin_layout Plain Layout
7412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7415 \begin_layout Plain Layout
7421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7424 \begin_layout Plain Layout
7432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7435 \begin_layout Plain Layout
7441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7444 \begin_layout Plain Layout
7450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7453 \begin_layout Plain Layout
7459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7462 \begin_layout Plain Layout
7468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7471 \begin_layout Plain Layout
7479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7482 \begin_layout Plain Layout
7488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7491 \begin_layout Plain Layout
7497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7500 \begin_layout Plain Layout
7506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7509 \begin_layout Plain Layout
7515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7518 \begin_layout Plain Layout
7526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7529 \begin_layout Plain Layout
7535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7538 \begin_layout Plain Layout
7544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7547 \begin_layout Plain Layout
7553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7556 \begin_layout Plain Layout
7562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7565 \begin_layout Plain Layout
7573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7576 \begin_layout Plain Layout
7582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7585 \begin_layout Plain Layout
7591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7594 \begin_layout Plain Layout
7600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7603 \begin_layout Plain Layout
7609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Plain Layout
7626 \begin_layout Standard
7630 \begin_layout Plain Layout
7644 \begin_layout Standard
7645 \begin_inset Note Greyedout
7648 \begin_layout Plain Layout
7653 When the LaTeX-package
7658 \begin_inset Index idx
7661 \begin_layout Plain Layout
7662 LaTeX-packages ! caption
7667 is used, as in this document, the full page width is used for the caption
7668 when you use the default value of 4
7669 \begin_inset space \thinspace{}
7679 To get in this case exactly a 4
7680 \begin_inset space \thinspace{}
7683 in wide caption, you can either use a value slightly different from 4.0
7684 \begin_inset space \thinspace{}
7688 \begin_inset space \thinspace{}
7692 \begin_inset space \space{}
7696 \begin_inset space \thinspace{}
7699 in, or the LaTeX-command
7703 captionsetup{width=value}
7705 that is provided by the
7717 \begin_layout Subsubsection
7718 Different Captions for Table Pages
7719 \begin_inset Index idx
7722 \begin_layout Plain Layout
7723 Longtables ! Different Captions for Pages
7731 \begin_layout Standard
7732 When the table captions for the following pages should differ from the one
7733 of the first table page, insert a caption with the TeX-Code command
7736 \begin_layout Standard
7741 caption*{caption text}
7748 \begin_layout Standard
7749 in a dummy caption row that is marked as a header.
7751 \begin_inset space ~
7755 \begin_inset CommandInset ref
7757 reference "tab:DiffCaptions"
7761 is an example of a longtable with different heading where the second caption
7762 doesn't include the table number.
7765 \begin_layout Standard
7767 \begin_inset Tabular
7768 <lyxtabular version="3" rows="59" columns="3">
7769 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7770 <column alignment="left" valignment="top" width="0cm">
7771 <column alignment="left" valignment="top" width="0pt">
7772 <column alignment="center" valignment="top" width="0pt">
7773 <row endfirsthead="true" caption="true">
7774 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7777 \begin_layout Plain Layout
7778 \begin_inset Caption Standard
7780 \begin_layout Plain Layout
7782 \begin_inset CommandInset label
7784 name "tab:DiffCaptions"
7789 \begin_inset Argument 1
7792 \begin_layout Plain Layout
7808 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7811 \begin_layout Plain Layout
7817 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7820 \begin_layout Plain Layout
7827 <row endfirsthead="true">
7828 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7831 \begin_layout Plain Layout
7834 Example Phone List (ignore the names)
7839 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7842 \begin_layout Plain Layout
7848 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7851 \begin_layout Plain Layout
7858 <row endfirsthead="true">
7859 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7862 \begin_layout Plain Layout
7870 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7873 \begin_layout Plain Layout
7879 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7882 \begin_layout Plain Layout
7891 <row endhead="true">
7892 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7899 \begin_layout Plain Layout
7903 caption*{Continued Example Phone List}
7917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7920 \begin_layout Plain Layout
7926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7929 \begin_layout Plain Layout
7936 <row endhead="true">
7937 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7940 \begin_layout Plain Layout
7948 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7951 \begin_layout Plain Layout
7957 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7960 \begin_layout Plain Layout
7967 <row endhead="true">
7968 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7971 \begin_layout Plain Layout
7979 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7982 \begin_layout Plain Layout
7988 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7991 \begin_layout Plain Layout
8000 <row endfoot="true">
8001 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8004 \begin_layout Plain Layout
8005 continued on next page
8010 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8013 \begin_layout Plain Layout
8019 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8022 \begin_layout Plain Layout
8030 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8033 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8044 \begin_layout Plain Layout
8050 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8053 \begin_layout Plain Layout
8061 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8064 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8075 \begin_layout Plain Layout
8081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8084 \begin_layout Plain Layout
8092 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8095 \begin_layout Plain Layout
8103 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8106 \begin_layout Plain Layout
8112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8115 \begin_layout Plain Layout
8123 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8126 \begin_layout Plain Layout
8134 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8137 \begin_layout Plain Layout
8143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8146 \begin_layout Plain Layout
8154 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8157 \begin_layout Plain Layout
8165 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8168 \begin_layout Plain Layout
8174 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8177 \begin_layout Plain Layout
8185 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8188 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8199 \begin_layout Plain Layout
8205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8208 \begin_layout Plain Layout
8216 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8219 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8230 \begin_layout Plain Layout
8236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8239 \begin_layout Plain Layout
8247 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8250 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8261 \begin_layout Plain Layout
8267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8270 \begin_layout Plain Layout
8278 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8281 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8292 \begin_layout Plain Layout
8298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8301 \begin_layout Plain Layout
8309 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8312 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8323 \begin_layout Plain Layout
8329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8332 \begin_layout Plain Layout
8340 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8343 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8354 \begin_layout Plain Layout
8360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8363 \begin_layout Plain Layout
8371 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8374 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8385 \begin_layout Plain Layout
8391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8394 \begin_layout Plain Layout
8402 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8405 \begin_layout Plain Layout
8413 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8416 \begin_layout Plain Layout
8422 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8425 \begin_layout Plain Layout
8433 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8436 \begin_layout Plain Layout
8444 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8447 \begin_layout Plain Layout
8453 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8456 \begin_layout Plain Layout
8464 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8467 \begin_layout Plain Layout
8476 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8490 \begin_layout Plain Layout
8496 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8499 \begin_layout Plain Layout
8507 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8510 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8521 \begin_layout Plain Layout
8527 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8530 \begin_layout Plain Layout
8538 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8541 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8552 \begin_layout Plain Layout
8558 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8561 \begin_layout Plain Layout
8569 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8572 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8583 \begin_layout Plain Layout
8589 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8592 \begin_layout Plain Layout
8600 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8603 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8614 \begin_layout Plain Layout
8620 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8623 \begin_layout Plain Layout
8631 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8634 \begin_layout Plain Layout
8642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8645 \begin_layout Plain Layout
8651 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8654 \begin_layout Plain Layout
8662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8665 \begin_layout Plain Layout
8673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8676 \begin_layout Plain Layout
8682 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8685 \begin_layout Plain Layout
8693 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8696 \begin_layout Plain Layout
8704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8707 \begin_layout Plain Layout
8713 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8716 \begin_layout Plain Layout
8724 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8727 \begin_layout Plain Layout
8735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8738 \begin_layout Plain Layout
8744 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8747 \begin_layout Plain Layout
8755 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8758 \begin_layout Plain Layout
8766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8769 \begin_layout Plain Layout
8775 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8778 \begin_layout Plain Layout
8786 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8789 \begin_layout Plain Layout
8797 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8800 \begin_layout Plain Layout
8806 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8809 \begin_layout Plain Layout
8817 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8820 \begin_layout Plain Layout
8828 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8831 \begin_layout Plain Layout
8837 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8840 \begin_layout Plain Layout
8848 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8851 \begin_layout Plain Layout
8859 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8862 \begin_layout Plain Layout
8868 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8871 \begin_layout Plain Layout
8879 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8882 \begin_layout Plain Layout
8890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8893 \begin_layout Plain Layout
8899 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8902 \begin_layout Plain Layout
8910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8913 \begin_layout Plain Layout
8921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8924 \begin_layout Plain Layout
8930 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8933 \begin_layout Plain Layout
8941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8944 \begin_layout Plain Layout
8952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8955 \begin_layout Plain Layout
8961 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8964 \begin_layout Plain Layout
8972 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8992 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8995 \begin_layout Plain Layout
9003 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9012 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9015 \begin_layout Plain Layout
9021 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9024 \begin_layout Plain Layout
9032 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9035 \begin_layout Plain Layout
9043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9046 \begin_layout Plain Layout
9052 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9055 \begin_layout Plain Layout
9063 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9066 \begin_layout Plain Layout
9074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9077 \begin_layout Plain Layout
9083 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9086 \begin_layout Plain Layout
9094 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9097 \begin_layout Plain Layout
9105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9108 \begin_layout Plain Layout
9114 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9117 \begin_layout Plain Layout
9125 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9128 \begin_layout Plain Layout
9136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9139 \begin_layout Plain Layout
9145 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9148 \begin_layout Plain Layout
9156 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9159 \begin_layout Plain Layout
9167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9170 \begin_layout Plain Layout
9176 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9179 \begin_layout Plain Layout
9187 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9190 \begin_layout Plain Layout
9198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9201 \begin_layout Plain Layout
9207 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9210 \begin_layout Plain Layout
9218 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9221 \begin_layout Plain Layout
9229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9232 \begin_layout Plain Layout
9238 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9241 \begin_layout Plain Layout
9249 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9252 \begin_layout Plain Layout
9260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9263 \begin_layout Plain Layout
9269 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9272 \begin_layout Plain Layout
9280 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9283 \begin_layout Plain Layout
9291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9294 \begin_layout Plain Layout
9300 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9303 \begin_layout Plain Layout
9311 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9314 \begin_layout Plain Layout
9322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9325 \begin_layout Plain Layout
9331 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9334 \begin_layout Plain Layout
9342 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9345 \begin_layout Plain Layout
9353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9356 \begin_layout Plain Layout
9362 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9365 \begin_layout Plain Layout
9373 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9376 \begin_layout Plain Layout
9384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9387 \begin_layout Plain Layout
9393 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9396 \begin_layout Plain Layout
9404 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9407 \begin_layout Plain Layout
9415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9418 \begin_layout Plain Layout
9424 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9427 \begin_layout Plain Layout
9435 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9438 \begin_layout Plain Layout
9446 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9449 \begin_layout Plain Layout
9455 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9458 \begin_layout Plain Layout
9466 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9469 \begin_layout Plain Layout
9477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9480 \begin_layout Plain Layout
9486 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9489 \begin_layout Plain Layout
9497 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9500 \begin_layout Plain Layout
9508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9511 \begin_layout Plain Layout
9517 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9520 \begin_layout Plain Layout
9528 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9531 \begin_layout Plain Layout
9539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9542 \begin_layout Plain Layout
9548 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9551 \begin_layout Plain Layout
9559 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9562 \begin_layout Plain Layout
9570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9573 \begin_layout Plain Layout
9579 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9582 \begin_layout Plain Layout
9590 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9593 \begin_layout Plain Layout
9601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9604 \begin_layout Plain Layout
9610 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9613 \begin_layout Plain Layout
9621 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9624 \begin_layout Plain Layout
9632 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9635 \begin_layout Plain Layout
9641 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9644 \begin_layout Plain Layout
9658 \begin_layout Section
9659 Special Longtable Issues
9660 \begin_inset CommandInset label
9662 name "sec:Special-Longtable-Issues"
9669 \begin_layout Subsection
9670 Longtable Calculation
9671 \begin_inset Index idx
9674 \begin_layout Plain Layout
9675 Longtables ! Calculation
9683 \begin_layout Standard
9684 LaTeX calculates the height of table pages and their page breaks using so
9686 Chunks are parts of tables that held at the same time in LaTeX's memory.
9687 The default value was historically set to only 20 table rows.
9688 If you are using longtables with many pages this may slow down the creation
9690 You can safely increase the chunk size to values of 100-1000 by adding
9691 this command line to your document preamble:
9694 \begin_layout Standard
9699 setcounter{LTchunksize}{100}
9702 \begin_layout Subsection
9703 Floats and Longtables
9704 \begin_inset Index idx
9707 \begin_layout Plain Layout
9716 \begin_layout Standard
9717 There might be problems when a float appears on the same page where a longtable
9719 To avoid such a situation, insert a
9720 \begin_inset Quotes eld
9724 \begin_inset Quotes erd
9729 Insert\SpecialChar \menuseparator
9730 Formatting\SpecialChar \menuseparator
9732 \begin_inset space ~
9737 ) before your longtable.
9740 \begin_layout Subsection
9742 \begin_inset Index idx
9745 \begin_layout Plain Layout
9746 Longtables ! Forced Page Breaks
9754 \begin_layout Standard
9755 By default tables are only broken between rows.
9756 If you have a cell with multiples lines and want to have a page break within
9757 the cell, insert the new line command
9758 \begin_inset Quotes eld
9770 \begin_inset Quotes erd
9773 as TeX-Code at the point of the cell where it can be broken.
9782 command you have to insert in TeX-Code as many
9783 \begin_inset Quotes eld
9791 \begin_inset Quotes erd
9794 characters as the number of the following table columns.
9799 is the character to separate table cells.
9800 Write in TeX-Code after each
9804 the content of the corresponding following cell and delete the content
9806 \begin_inset Newline newline
9817 command, insert as many
9821 characters as the number of table columns before the current column.
9823 \begin_inset space ~
9827 \begin_inset CommandInset ref
9829 reference "tab:ForcedPagebreak"
9833 the cell that should be broken is in the second column followed by another
9835 Therefore the following command was inserted in the cell as TeX-Code after
9837 \begin_inset Quotes eld
9845 \begin_inset Quotes erd
9851 \begin_layout Standard
9861 \begin_inset Newline newline
9867 \begin_layout Standard
9869 \begin_inset Quotes eld
9873 \begin_inset Quotes erd
9876 in the third column of the row was deleted.
9883 is only needed when a page break should definitely occur at this position,
9884 otherwise it would be a conditional break.
9885 If your footer row of the longtable has for a certain reason no upper line
9886 but you would have a horizontal line where the cell is broken, use this
9890 \begin_layout Standard
9898 \begin_inset Newline newline
9906 \begin_layout Standard
9907 When the cell to be broken is in the last column, the command
9910 \begin_layout Standard
9920 \begin_layout Standard
9921 must be inserted as TeX-Code at the beginning of the cell.
9922 This ensures that the part of the cell that will be displayed on the new
9923 page appears with the full width.
9926 \begin_layout Standard
9928 \begin_inset Tabular
9929 <lyxtabular version="3" rows="38" columns="3">
9930 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9931 <column alignment="left" valignment="top" width="0cm">
9932 <column alignment="left" valignment="top" width="3cm">
9933 <column alignment="center" valignment="top" width="0pt">
9934 <row endfirsthead="true" caption="true">
9935 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9938 \begin_layout Plain Layout
9939 \begin_inset Caption Standard
9941 \begin_layout Plain Layout
9942 Table with forced page break in table cell
9943 \begin_inset CommandInset label
9945 name "tab:ForcedPagebreak"
9950 \begin_inset Argument 1
9953 \begin_layout Plain Layout
9954 Table with forced page break in table cell
9969 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9972 \begin_layout Plain Layout
9978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9981 \begin_layout Plain Layout
9988 <row endfirsthead="true">
9989 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9992 \begin_layout Plain Layout
9995 Example Phone List (ignore the names)
10000 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10003 \begin_layout Plain Layout
10009 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10012 \begin_layout Plain Layout
10019 <row endfirsthead="true">
10020 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10023 \begin_layout Plain Layout
10031 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10034 \begin_layout Plain Layout
10040 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10052 <row endhead="true">
10053 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10056 \begin_layout Plain Layout
10060 \begin_layout Plain Layout
10064 caption*{Continued Example Phone List}
10078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10081 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10097 <row endhead="true">
10098 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10101 \begin_layout Plain Layout
10109 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10112 \begin_layout Plain Layout
10118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10128 <row endhead="true">
10129 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10132 \begin_layout Plain Layout
10140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10143 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10161 <row endfoot="true">
10162 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10165 \begin_layout Plain Layout
10166 continued on next page
10171 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10174 \begin_layout Plain Layout
10180 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10194 \begin_layout Plain Layout
10202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10205 \begin_layout Plain Layout
10211 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10225 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10236 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10256 \begin_layout Plain Layout
10264 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10267 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10287 \begin_layout Plain Layout
10295 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10298 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10318 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10329 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10349 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10360 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10380 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10391 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10411 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10422 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10442 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10453 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10473 \begin_layout Plain Layout
10481 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10484 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10493 \begin_layout Plain Layout
10501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10504 \begin_layout Plain Layout
10512 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10515 \begin_layout Plain Layout
10521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10524 \begin_layout Plain Layout
10532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10535 \begin_layout Plain Layout
10543 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10546 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10566 \begin_layout Plain Layout
10574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10577 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10586 \begin_layout Plain Layout
10594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10597 \begin_layout Plain Layout
10605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10608 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10617 \begin_layout Plain Layout
10625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10628 \begin_layout Plain Layout
10636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10639 \begin_layout Plain Layout
10645 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10648 \begin_layout Plain Layout
10656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10670 \begin_layout Plain Layout
10676 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10679 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10701 \begin_layout Plain Layout
10707 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10710 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10732 \begin_layout Plain Layout
10738 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10741 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10763 \begin_layout Plain Layout
10769 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10772 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10783 \begin_layout Plain Layout
10791 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10794 \begin_layout Plain Layout
10800 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10803 \begin_layout Plain Layout
10811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10814 \begin_layout Plain Layout
10822 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10825 \begin_layout Plain Layout
10831 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10834 \begin_layout Plain Layout
10842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10845 \begin_layout Plain Layout
10853 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10856 \begin_layout Plain Layout
10862 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10865 \begin_layout Plain Layout
10873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10876 \begin_layout Plain Layout
10884 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10887 \begin_layout Plain Layout
10889 Fürst von Montecompatri, 11.
10890 Fürst von Sulmona und Vivaro, 10.
10891 Fürst von Rossano, 5.
10892 Herzog von Canemorte, 11.
10893 Herzog von Palombara, 5.
10894 Herzog von Castelchiodato,
10898 \begin_layout Plain Layout
10909 \begin_layout Plain Layout
10917 Herzog von Poggionativo, 11.
10918 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10919 Graf von Valinfreda, 11.
10920 Baron von Cropalati, 11.
10921 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10926 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10948 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10951 \begin_layout Plain Layout
10957 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10960 \begin_layout Plain Layout
10968 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10971 \begin_layout Plain Layout
10979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10982 \begin_layout Plain Layout
10988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10991 \begin_layout Plain Layout
10999 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11002 \begin_layout Plain Layout
11010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11013 \begin_layout Plain Layout
11019 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11022 \begin_layout Plain Layout
11030 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11033 \begin_layout Plain Layout
11041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11044 \begin_layout Plain Layout
11050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11053 \begin_layout Plain Layout
11061 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11064 \begin_layout Plain Layout
11072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11075 \begin_layout Plain Layout
11081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11084 \begin_layout Plain Layout
11092 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11095 \begin_layout Plain Layout
11103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11106 \begin_layout Plain Layout
11112 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11115 \begin_layout Plain Layout
11123 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11126 \begin_layout Plain Layout
11134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11137 \begin_layout Plain Layout
11143 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11146 \begin_layout Plain Layout
11154 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11157 \begin_layout Plain Layout
11165 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11168 \begin_layout Plain Layout
11174 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11177 \begin_layout Plain Layout
11191 \begin_layout Section
11192 Multiple Lines, Columns and Rows
11195 \begin_layout Subsection
11196 Multiple Lines in Table Cells
11197 \begin_inset CommandInset label
11199 name "sub:Multiple-Lines-in"
11204 \begin_inset Index idx
11207 \begin_layout Plain Layout
11208 Multiple Lines in Table Cells
11214 \begin_inset Index idx
11217 \begin_layout Plain Layout
11226 \begin_layout Standard
11228 \begin_inset Float table
11234 \begin_layout Plain Layout
11235 \begin_inset Caption Standard
11237 \begin_layout Plain Layout
11238 \begin_inset CommandInset label
11240 name "tab:Table-with-multiple"
11244 Table with multiple lines in cells
11252 \begin_layout Plain Layout
11254 \begin_inset Tabular
11255 <lyxtabular version="3" rows="3" columns="3">
11256 <features rotate="0" tabularvalignment="middle">
11257 <column alignment="center" valignment="middle" width="2.5cm">
11258 <column alignment="center" valignment="middle" width="0">
11259 <column alignment="center" valignment="middle" width="0">
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11264 \begin_layout Plain Layout
11266 \begin_inset Newline linebreak
11274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11277 \begin_layout Plain Layout
11283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11286 \begin_layout Plain Layout
11294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11297 \begin_layout Plain Layout
11303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11306 \begin_layout Plain Layout
11312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11315 \begin_layout Plain Layout
11323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11326 \begin_layout Plain Layout
11332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11335 \begin_layout Plain Layout
11341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11344 \begin_layout Plain Layout
11363 \begin_layout Standard
11364 Setting a fixed width for a column enables you to enter text as a paragraph
11365 with multiple lines and hyphenation.
11368 \begin_layout Standard
11370 \begin_inset space ~
11374 \begin_inset CommandInset ref
11376 reference "tab:Table-with-multiple"
11380 , create a 3×3 table, mark the first cell and right-click on it.
11381 In the appearing table dialog we set a cell width of 2.5
11382 \begin_inset space \thinspace{}
11385 cm and choose centered for the vertical and horizontal alignment.
11386 The vertical alignment is used for all cells of the row.
11387 As our text is smaller than 2.5
11388 \begin_inset space \thinspace{}
11391 cm, only one line will appear.
11392 To get two lines, a justified line break (shortcut
11395 arg "newline-insert linebreak"
11399 If the text is wider than the set cell width, it will automatically be
11400 broken to several lines.
11403 \begin_layout Standard
11404 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11405 by LaTeX if it is the first entry.
11406 Therefore you need to insert something to prevent the word not being the
11408 So add a horizontal space of 0
11409 \begin_inset space \thinspace{}
11412 pt before the word.
11413 As the space is zero, it doesn't change the output.
11415 \begin_inset space ~
11419 \begin_inset CommandInset ref
11421 reference "tab:Table-with-and"
11428 \begin_layout Standard
11429 \begin_inset Float table
11435 \begin_layout Plain Layout
11436 \begin_inset Caption Standard
11438 \begin_layout Plain Layout
11439 \begin_inset CommandInset label
11441 name "tab:Table-with-and"
11445 Table with and without hyphenation
11453 \begin_layout Plain Layout
11454 \begin_inset space \hfill{}
11458 \begin_inset Tabular
11459 <lyxtabular version="3" rows="3" columns="3">
11460 <features rotate="0" tabularvalignment="middle">
11461 <column alignment="center" valignment="middle" width="2.5cm">
11462 <column alignment="center" valignment="middle" width="0">
11463 <column alignment="center" valignment="middle" width="0">
11465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11468 \begin_layout Plain Layout
11469 verylongtablecellword
11474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11486 \begin_layout Plain Layout
11494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11497 \begin_layout Plain Layout
11503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11506 \begin_layout Plain Layout
11512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11515 \begin_layout Plain Layout
11523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11526 \begin_layout Plain Layout
11532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11535 \begin_layout Plain Layout
11541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11544 \begin_layout Plain Layout
11556 \begin_inset space \hfill{}
11560 \begin_inset Tabular
11561 <lyxtabular version="3" rows="3" columns="3">
11562 <features rotate="0" tabularvalignment="middle">
11563 <column alignment="center" valignment="middle" width="2.5cm">
11564 <column alignment="center" valignment="middle" width="0">
11565 <column alignment="center" valignment="middle" width="0">
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11570 \begin_layout Plain Layout
11571 \begin_inset space \hspace{}
11575 verylongtablecellword
11580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11583 \begin_layout Plain Layout
11589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11592 \begin_layout Plain Layout
11600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11603 \begin_layout Plain Layout
11609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11612 \begin_layout Plain Layout
11618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11621 \begin_layout Plain Layout
11629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11632 \begin_layout Plain Layout
11638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11641 \begin_layout Plain Layout
11647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11650 \begin_layout Plain Layout
11662 \begin_inset space \hfill{}
11673 \begin_layout Subsection
11675 \begin_inset CommandInset label
11677 name "sub:Multicolumns"
11682 \begin_inset Index idx
11685 \begin_layout Plain Layout
11692 \begin_inset Index idx
11695 \begin_layout Plain Layout
11696 Table ! Multicolumns
11704 \begin_layout Subsubsection
11708 \begin_layout Standard
11709 To merge cells over multiple columns, select as many cells within a row
11710 as you want to merge and use either the table-toolbar button
11713 arg "inset-modify tabular multicolumn"
11718 Edit\SpecialChar \menuseparator
11719 Table\SpecialChar \menuseparator
11722 , or right click on the marked cells and choose
11726 in the context menu.
11729 \begin_layout Standard
11730 Multicolumns have there own cell settings.
11731 That means changing cell borders, cell alignment, and the width only affects
11733 Here is an example table with a multicolumn cell in the first row and one
11734 in the last row without the upper border:
11737 \begin_layout Standard
11739 \begin_inset Tabular
11740 <lyxtabular version="3" rows="3" columns="4">
11741 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11742 <column alignment="center" valignment="top" width="0pt">
11743 <column alignment="center" valignment="middle" width="0">
11744 <column alignment="center" valignment="top" width="0in">
11745 <column alignment="center" valignment="top" width="0pt">
11747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11750 \begin_layout Plain Layout
11756 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11759 \begin_layout Plain Layout
11765 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11768 \begin_layout Plain Layout
11774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11777 \begin_layout Plain Layout
11785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11788 \begin_layout Plain Layout
11803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11806 \begin_layout Plain Layout
11812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11824 \begin_layout Plain Layout
11832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11835 \begin_layout Plain Layout
11841 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11844 \begin_layout Plain Layout
11850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11853 \begin_layout Plain Layout
11859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11862 \begin_layout Plain Layout
11876 \begin_layout Subsubsection
11877 Multicolumn Calculations
11878 \begin_inset CommandInset label
11880 name "sub:Multicolumn-Calculations"
11885 \begin_inset Index idx
11888 \begin_layout Plain Layout
11889 Multicolumns ! Calculations
11897 \begin_layout Standard
11898 LyX supports multicolumns directly, but we have to take account of the cell
11899 width of the columns spanned by the multicolumn cell.
11902 \begin_layout Standard
11903 \begin_inset Float table
11909 \begin_layout Plain Layout
11910 \begin_inset Caption Standard
11912 \begin_layout Plain Layout
11913 \begin_inset CommandInset label
11915 name "tab:Table-with-centered"
11919 Table with centered multicolumn text above two columns that have exactly
11920 half the width of the multicolumn cell
11921 \begin_inset Argument 1
11924 \begin_layout Plain Layout
11925 Perfect multicolumn table
11938 \begin_layout Plain Layout
11940 \begin_inset Tabular
11941 <lyxtabular version="3" rows="3" columns="3">
11942 <features rotate="0" tabularvalignment="middle">
11943 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11944 <column alignment="center" valignment="middle" width="0">
11945 <column alignment="center" valignment="top" width="0">
11947 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11950 \begin_layout Plain Layout
11951 multiple lines multicolumn
11956 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11959 \begin_layout Plain Layout
11965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11968 \begin_layout Plain Layout
11976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11979 \begin_layout Plain Layout
11985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11988 \begin_layout Plain Layout
11994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11997 \begin_layout Plain Layout
12005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12008 \begin_layout Plain Layout
12014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12017 \begin_layout Plain Layout
12023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12026 \begin_layout Plain Layout
12045 \begin_layout Standard
12046 To create for example Table
12047 \begin_inset space ~
12051 \begin_inset CommandInset ref
12053 reference "tab:Table-with-centered"
12057 , mark the first two cells in the first row of a 3×3 table and right-click
12059 Now choose for this cell
12068 \begin_inset space \thinspace{}
12071 cm in the table dialog.
12072 The merged columns should have exactly half the width of the multicolumn
12073 cell, so that you would set a width of 1.25
12074 \begin_inset space \thinspace{}
12077 cm for the first column.
12078 The second column has then automatically a width of 1.25
12079 \begin_inset space \thinspace{}
12082 cm (multicolumn width - width of first column).
12083 This was done for Table
12084 \begin_inset space ~
12088 \begin_inset CommandInset ref
12090 reference "tab:Table-without-half"
12097 \begin_layout Standard
12098 \begin_inset Float table
12103 \begin_layout Plain Layout
12104 \begin_inset Caption Standard
12106 \begin_layout Plain Layout
12107 \begin_inset CommandInset label
12109 name "tab:Table-without-half"
12113 Table where the spanned table columns are not exactly half the width of
12114 the multicolumn cell
12115 \begin_inset Argument 1
12118 \begin_layout Plain Layout
12119 Imperfect multicolumn table
12132 \begin_layout Plain Layout
12134 \begin_inset Tabular
12135 <lyxtabular version="3" rows="3" columns="3">
12136 <features rotate="0" tabularvalignment="middle">
12137 <column alignment="center" valignment="top" width="1.25cm">
12138 <column alignment="center" valignment="top" width="0">
12139 <column alignment="center" valignment="top" width="0">
12141 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12144 \begin_layout Plain Layout
12145 multiple lines multicolumn
12150 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12153 \begin_layout Plain Layout
12159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12162 \begin_layout Plain Layout
12170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12173 \begin_layout Plain Layout
12179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12182 \begin_layout Plain Layout
12188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12191 \begin_layout Plain Layout
12199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12202 \begin_layout Plain Layout
12208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12211 \begin_layout Plain Layout
12217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12220 \begin_layout Plain Layout
12239 \begin_layout Standard
12240 You can see that the first column is not half the width of the multicolumn
12241 cell, it is a bit bigger.
12242 The reason is that the specified width of a cell
12243 \begin_inset Formula $W_{g}$
12246 is not its total width
12247 \begin_inset Formula $W_{\mathrm{tot}}$
12250 because a cell is always a bit larger than specified.
12252 \begin_inset space ~
12256 \begin_inset CommandInset ref
12258 reference "cha:Explanation-of-Equation"
12262 explains this in detail.
12265 \begin_layout Standard
12267 \begin_inset Formula $W_{g\, n}$
12270 which the user needs to set when
12274 columns are spanned can be calculated, so that each column has a total
12276 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12280 \begin_inset Formula
12282 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12290 \begin_layout Standard
12291 In our case we have
12292 \begin_inset Formula $n=2$
12296 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12299 cm and the default values for the lengths, so that equation
12300 \begin_inset CommandInset ref
12307 \begin_inset Formula
12309 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12317 \begin_layout Standard
12318 To enable calculations in LaTeX, the LaTeX-package
12322 must be loaded with the document preamble line
12323 \begin_inset Index idx
12326 \begin_layout Plain Layout
12327 LaTeX-packages ! calc
12335 \begin_layout Standard
12343 \begin_layout Standard
12344 LyX does not allow you to calculate lengths in the
12348 field of the table dialog.
12349 Therefore you have to format the column by inserting a LaTeX-argument in
12351 Here is an overview about the arguments:
12354 \begin_layout Itemize
12359 creates cell with a fixed width, its text is vertically top-aligned
12362 \begin_layout Itemize
12367 creates cell with a fixed width, its text is vertically centered
12370 \begin_layout Itemize
12375 creates cell with a fixed width, its text is vertically bottom-aligned
12378 \begin_layout Standard
12379 By entering a LaTeX-argument, all cell settings set in the table dialog
12383 \begin_layout Standard
12384 \begin_inset Note Greyedout
12387 \begin_layout Plain Layout
12392 Due to a bug, LyX shows the overwritten settings anyway.
12400 \begin_layout Standard
12401 As the text should be horizontally centered, the command
12408 You can now enter the following LaTeX-argument for the first spanned column:
12411 \begin_layout Standard
12416 centering}m{1.25cm-6.2pt}
12419 \begin_layout Standard
12424 means, that the commands inside the braces are applied before the cell
12428 \begin_layout Standard
12429 Although we have chosen centered alignment for the text of the multicolumn
12430 cell, it is still left aligned.
12431 This is because LyX only applies the alignment to single columns.
12432 So for the multicolumn cell we have to use the LaTeX-argument
12435 \begin_layout Standard
12443 \begin_layout Subsection
12445 \begin_inset CommandInset label
12447 name "sub:Multirows"
12452 \begin_inset Index idx
12455 \begin_layout Plain Layout
12462 \begin_inset Index idx
12465 \begin_layout Plain Layout
12474 \begin_layout Standard
12475 To merge cells over multiple rows, select as many cells within a column
12476 as you want to merge and use either the table-toolbar button
12479 arg "inset-modify tabular multirow"
12484 Edit\SpecialChar \menuseparator
12485 Table\SpecialChar \menuseparator
12488 , or right click on the marked cells and choose
12492 in the context menu.
12495 \begin_layout Standard
12496 Here is an example table with a multirow in the first column:
12499 \begin_layout Standard
12501 \begin_inset Tabular
12502 <lyxtabular version="3" rows="3" columns="3">
12503 <features rotate="0" tabularvalignment="middle">
12504 <column alignment="center" valignment="top" width="0pt">
12505 <column alignment="center" valignment="top" width="0">
12506 <column alignment="center" valignment="top" width="0">
12508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12511 \begin_layout Plain Layout
12517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12529 \begin_layout Plain Layout
12537 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12540 \begin_layout Plain Layout
12546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12549 \begin_layout Plain Layout
12555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12558 \begin_layout Plain Layout
12566 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12569 \begin_layout Plain Layout
12575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12578 \begin_layout Plain Layout
12584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12587 \begin_layout Plain Layout
12601 \begin_layout Standard
12602 The width of multirow cells is set by setting the width and alignment for
12608 shifts the content of the multirow up/down if the offset is positive/negative.
12611 \begin_layout Standard
12612 If the column of a multirow cell has no explicit width, the multirow cell
12613 inherits the alignment of the column.
12614 Otherwise it is by default left-aligned.
12615 To override the default, renew the command
12624 \begin_layout Standard
12636 \begin_layout Standard
12637 in the document preamble.
12638 Then all entries of multirow cells in the document are centered.
12639 If centering is only needed for several tables, you can renew the command
12640 in a TeX-Code box just before the table instead of the preamble.
12641 If the text should be right-aligned, replace
12654 To return to left-alignment
12663 \begin_layout Standard
12664 This is an example table with a right-aligned multirow cell that has a vertical
12666 \begin_inset space \thinspace{}
12670 \begin_inset space \thinspace{}
12676 \begin_layout Standard
12682 \begin_layout Plain Layout
12696 \begin_inset Tabular
12697 <lyxtabular version="3" rows="4" columns="3">
12698 <features rotate="0" tabularvalignment="middle">
12699 <column alignment="center" valignment="top" width="3cm">
12700 <column alignment="center" valignment="top" width="0">
12701 <column alignment="center" valignment="top" width="0">
12703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12706 \begin_layout Plain Layout
12712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12715 \begin_layout Plain Layout
12721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12724 \begin_layout Plain Layout
12732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12735 \begin_layout Plain Layout
12741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12744 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12753 \begin_layout Plain Layout
12761 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12764 \begin_layout Plain Layout
12770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12773 \begin_layout Plain Layout
12779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12782 \begin_layout Plain Layout
12790 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12793 \begin_layout Plain Layout
12799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12802 \begin_layout Plain Layout
12808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12811 \begin_layout Plain Layout
12826 \begin_layout Plain Layout
12842 \begin_layout Standard
12843 To start a new line in a multirow you can use a forced line break (shortcut
12847 arg "newline-insert newline"
12850 ) but this will not respect the cell lines as demonstrated in this table:
12853 \begin_layout Standard
12856 \begin_inset Tabular
12857 <lyxtabular version="3" rows="3" columns="2">
12858 <features rotate="0" tabularvalignment="middle">
12859 <column alignment="left" valignment="middle" width="2cm">
12860 <column alignment="center" valignment="top" width="0">
12862 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12865 \begin_layout Plain Layout
12867 \begin_inset Newline newline
12871 \begin_inset Newline newline
12879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12882 \begin_layout Plain Layout
12890 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12893 \begin_layout Plain Layout
12899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12902 \begin_layout Plain Layout
12910 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12913 \begin_layout Plain Layout
12919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12922 \begin_layout Plain Layout
12936 \begin_layout Standard
12937 Therefore be careful with forced line breaks.
12940 \begin_layout Subsection
12941 Cells with diagonal line(s)
12944 \begin_layout Standard
12945 To tell the reader what is meant by column and row headings in a table,
12946 it is helpful to split the first cell of the table by one or two diagonal
12948 This can be achieved by loading the LaTeX-package
12953 \begin_inset Index idx
12956 \begin_layout Plain Layout
12957 LaTeX-packages ! picinpar
12962 in the document preamble.
12963 The package provides the command
12969 that is inserted as TeX-Code and that can take 2 or 3
12970 \begin_inset space ~
12976 \begin_layout Standard
12981 diagbox[options]{lower left}{upper right}
12984 \begin_layout Standard
12989 diagbox[options]{lower left}{upper left}{upper right}
12992 \begin_layout Standard
12993 The first scheme divides the cell by a single diagonal line and the arguments
12994 are placed below and above this line.
12995 The second scheme divides the cell by 2
12996 \begin_inset space ~
13002 \begin_layout Standard
13006 \begin_layout Plain Layout
13016 \begin_inset Note Note
13019 \begin_layout Plain Layout
13020 The following section will only be displayed when the LaTeX-package
13032 \begin_layout Standard
13033 Here is an example table where
13039 is used in the 2-argument scheme in the first cell:
13040 \begin_inset VSpace medskip
13046 \begin_layout Standard
13048 \begin_inset Tabular
13049 <lyxtabular version="3" rows="4" columns="4">
13050 <features rotate="0" tabularvalignment="middle">
13051 <column alignment="center" valignment="top" width="0">
13052 <column alignment="center" valignment="top" width="0">
13053 <column alignment="center" valignment="top" width="0">
13054 <column alignment="center" valignment="top" width="0">
13056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13059 \begin_layout Plain Layout
13063 \begin_layout Plain Layout
13076 \begin_layout Plain Layout
13087 \begin_layout Plain Layout
13099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13102 \begin_layout Plain Layout
13108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13111 \begin_layout Plain Layout
13117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13120 \begin_layout Plain Layout
13128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13131 \begin_layout Plain Layout
13137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13140 \begin_layout Plain Layout
13146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13149 \begin_layout Plain Layout
13155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13158 \begin_layout Plain Layout
13166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13169 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13187 \begin_layout Plain Layout
13193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13196 \begin_layout Plain Layout
13204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13207 \begin_layout Plain Layout
13213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13216 \begin_layout Plain Layout
13222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13225 \begin_layout Plain Layout
13231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13234 \begin_layout Plain Layout
13246 \begin_inset VSpace medskip
13252 \begin_layout Standard
13253 The 3-argument scheme is for example useful for cross-tables of sports leagues
13257 \begin_layout Standard
13260 \begin_inset Tabular
13261 <lyxtabular version="3" rows="4" columns="4">
13262 <features rotate="0" tabularvalignment="middle">
13263 <column alignment="center" valignment="top" width="0pt">
13264 <column alignment="center" valignment="top" width="0">
13265 <column alignment="center" valignment="top" width="0">
13266 <column alignment="center" valignment="top" width="0">
13268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13271 \begin_layout Plain Layout
13275 \begin_layout Plain Layout
13288 \begin_layout Plain Layout
13299 \begin_layout Plain Layout
13310 \begin_layout Plain Layout
13322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13325 \begin_layout Plain Layout
13331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13334 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13343 \begin_layout Plain Layout
13351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13354 \begin_layout Plain Layout
13360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13363 \begin_layout Plain Layout
13369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13372 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13381 \begin_layout Plain Layout
13389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13392 \begin_layout Plain Layout
13398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13401 \begin_layout Plain Layout
13407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13410 \begin_layout Plain Layout
13416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13419 \begin_layout Plain Layout
13427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13430 \begin_layout Plain Layout
13436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13439 \begin_layout Plain Layout
13445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13448 \begin_layout Plain Layout
13454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13457 \begin_layout Plain Layout
13471 \begin_layout Standard
13472 For larger cross-tables one might use split cells in 2 or every corner of
13473 the table like in this example:
13476 \begin_layout Standard
13479 \begin_inset Tabular
13480 <lyxtabular version="3" rows="5" columns="5">
13481 <features rotate="0" tabularvalignment="middle">
13482 <column alignment="center" valignment="top" width="0pt">
13483 <column alignment="center" valignment="top" width="0">
13484 <column alignment="center" valignment="top" width="0">
13485 <column alignment="center" valignment="top" width="0">
13486 <column alignment="center" valignment="top" width="0">
13488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13491 \begin_layout Plain Layout
13495 \begin_layout Plain Layout
13508 \begin_layout Plain Layout
13519 \begin_layout Plain Layout
13530 \begin_layout Plain Layout
13542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13545 \begin_layout Plain Layout
13551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13554 \begin_layout Plain Layout
13560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13563 \begin_layout Plain Layout
13569 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13572 \begin_layout Plain Layout
13576 \begin_layout Plain Layout
13589 \begin_layout Plain Layout
13600 \begin_layout Plain Layout
13611 \begin_layout Plain Layout
13625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13628 \begin_layout Plain Layout
13634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13637 \begin_layout Plain Layout
13643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13646 \begin_layout Plain Layout
13652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13655 \begin_layout Plain Layout
13661 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13664 \begin_layout Plain Layout
13672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13675 \begin_layout Plain Layout
13681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13684 \begin_layout Plain Layout
13690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13693 \begin_layout Plain Layout
13699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13702 \begin_layout Plain Layout
13708 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13711 \begin_layout Plain Layout
13719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13722 \begin_layout Plain Layout
13728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13731 \begin_layout Plain Layout
13737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13740 \begin_layout Plain Layout
13746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13749 \begin_layout Plain Layout
13755 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13758 \begin_layout Plain Layout
13766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13769 \begin_layout Plain Layout
13773 \begin_layout Plain Layout
13786 \begin_layout Plain Layout
13797 \begin_layout Plain Layout
13808 \begin_layout Plain Layout
13820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13823 \begin_layout Plain Layout
13829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13832 \begin_layout Plain Layout
13838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13841 \begin_layout Plain Layout
13847 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13850 \begin_layout Plain Layout
13854 \begin_layout Plain Layout
13867 \begin_layout Plain Layout
13878 \begin_layout Plain Layout
13889 \begin_layout Plain Layout
13909 \begin_layout Standard
13910 To rotate the diagonal lines, the command option
13935 and represent a point of a compass.
13940 is for example the south-west corner.
13941 Thus in the lower left cell of the above table the command
13944 \begin_layout Standard
13949 diagbox[dir=SW]{Team home}{Result}{Team away}
13952 \begin_layout Standard
13954 If no direction is given, it will be NW.
13957 \begin_layout Standard
13958 The necessary width of split cells is automatically calculated.
13959 Thus if you set a fixed column width smaller than the calculated one, the
13960 cell's content will protrude the cell borders:
13963 \begin_layout Standard
13966 \begin_inset Tabular
13967 <lyxtabular version="3" rows="2" columns="2">
13968 <features rotate="0" tabularvalignment="middle">
13969 <column alignment="center" valignment="top" width="3cm">
13970 <column alignment="center" valignment="top" width="0">
13972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13975 \begin_layout Plain Layout
13979 \begin_layout Plain Layout
13992 \begin_layout Plain Layout
14003 \begin_layout Plain Layout
14015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14018 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14029 \begin_layout Plain Layout
14035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14038 \begin_layout Plain Layout
14052 \begin_layout Standard
14053 If you need a certain width for columns with a split cell, use the command
14058 (replace '3cm' by the width you need).
14059 In the following table the width of the first column is set to 4
14060 \begin_inset space \thinspace{}
14071 \begin_inset space \thinspace{}
14075 \begin_inset space \thinspace{}
14080 tabcolsep is necessary because the overall width is the width for the text
14081 (in this case the 4
14082 \begin_inset space \thinspace{}
14085 cm) plus two times the separation of the text and the cell border.
14086 The calculation of the width cannot be done in the command option of
14092 so one needs to create a new length which can be used later.
14093 This is done with the TeX-Code commands
14096 \begin_layout Standard
14104 \begin_inset Newline newline
14116 \begin_layout Standard
14120 \begin_layout Plain Layout
14129 \begin_layout Plain Layout
14145 \begin_layout Standard
14146 To enable calculations in LaTeX one needs to load the package
14151 \begin_inset Index idx
14154 \begin_layout Plain Layout
14155 LaTeX-packages ! calc
14160 in the document preamble.
14163 \begin_layout Standard
14164 In this table you can now use the command
14167 \begin_layout Standard
14177 \begin_layout Standard
14181 \begin_layout Standard
14184 \begin_inset Tabular
14185 <lyxtabular version="3" rows="2" columns="2">
14186 <features rotate="0" tabularvalignment="middle">
14187 <column alignment="center" valignment="top" width="4cm">
14188 <column alignment="center" valignment="top" width="0">
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Plain Layout
14197 \begin_layout Plain Layout
14212 \begin_layout Plain Layout
14223 \begin_layout Plain Layout
14235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14238 \begin_layout Plain Layout
14246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14249 \begin_layout Plain Layout
14255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14258 \begin_layout Plain Layout
14272 \begin_layout Standard
14273 Note that the split cell needs to be the widest one in the column.
14274 Otherwise the length of the diagonal line cannot be calculated correctly
14275 like in this table:
14278 \begin_layout Standard
14281 \begin_inset Tabular
14282 <lyxtabular version="3" rows="2" columns="2">
14283 <features rotate="0" tabularvalignment="middle">
14284 <column alignment="center" valignment="top" width="0pt">
14285 <column alignment="center" valignment="top" width="0">
14287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14290 \begin_layout Plain Layout
14294 \begin_layout Plain Layout
14307 \begin_layout Plain Layout
14318 \begin_layout Plain Layout
14330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14333 \begin_layout Plain Layout
14341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14344 \begin_layout Plain Layout
14350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14353 \begin_layout Plain Layout
14367 \begin_layout Standard
14368 In this case use the
14379 It is then not necessary to add 2
14381 tabcolsep because the cell width is now the width of the column.
14382 In this table a width of 3
14383 \begin_inset space \thinspace{}
14389 \begin_layout Standard
14392 \begin_inset Tabular
14393 <lyxtabular version="3" rows="2" columns="2">
14394 <features rotate="0" tabularvalignment="middle">
14395 <column alignment="center" valignment="top" width="0pt">
14396 <column alignment="center" valignment="top" width="0">
14398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14401 \begin_layout Plain Layout
14405 \begin_layout Plain Layout
14409 diagbox[width=3cm]{
14418 \begin_layout Plain Layout
14429 \begin_layout Plain Layout
14441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14444 \begin_layout Plain Layout
14452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14455 \begin_layout Plain Layout
14461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14464 \begin_layout Plain Layout
14478 \begin_layout Standard
14479 For multiple text lines in split cells one needs some extra height to fit
14480 the text to the cell.
14481 This can be achieved with the
14491 (replace '3cm' by the height you need).
14492 In the following table the command
14495 \begin_layout Standard
14500 diagbox[width=3cm,height=1.4cm]{A
14511 \begin_layout Standard
14512 is used in the first cell.
14521 creates hereby the line break.
14525 \begin_layout Plain Layout
14526 Breaking lines with
14530 is only possible when the column has a fixed width.
14538 \begin_layout Standard
14541 \begin_inset Tabular
14542 <lyxtabular version="3" rows="2" columns="2">
14543 <features rotate="0" tabularvalignment="middle">
14544 <column alignment="center" valignment="top" width="0">
14545 <column alignment="center" valignment="top" width="0">
14547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14550 \begin_layout Plain Layout
14554 \begin_layout Plain Layout
14558 diagbox[width=3cm,height=1.4cm]{
14567 \begin_layout Plain Layout
14582 \begin_layout Plain Layout
14593 \begin_layout Plain Layout
14608 \begin_layout Plain Layout
14620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14623 \begin_layout Plain Layout
14631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14634 \begin_layout Plain Layout
14640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14643 \begin_layout Plain Layout
14657 \begin_layout Standard
14661 \begin_layout Plain Layout
14671 \begin_inset Note Note
14674 \begin_layout Plain Layout
14675 The following will be displayed when the LaTeX-package
14687 \begin_layout Standard
14688 You need to install the LaTeX-package
14692 to see the following part of this section in the output.
14695 \begin_layout Standard
14699 \begin_layout Plain Layout
14711 \begin_layout Standard
14712 For more info about the LaTeX-package
14716 , see its documentation,
14717 \begin_inset CommandInset citation
14726 \begin_layout Section
14728 \begin_inset CommandInset label
14730 name "sec:Formal-Tables"
14735 \begin_inset Index idx
14738 \begin_layout Plain Layout
14747 \begin_layout Standard
14748 Tables are often typeset in books similar to Table
14749 \begin_inset space ~
14753 \begin_inset CommandInset ref
14755 reference "tab:Example-booktabs-table"
14760 This kind of tables is called
14761 \begin_inset Quotes eld
14769 \begin_inset Quotes erd
14773 To make a table a formal table use the option
14781 tab of the table dialog.
14784 \begin_layout Standard
14785 \begin_inset Float table
14791 \begin_layout Plain Layout
14792 \begin_inset Caption Standard
14794 \begin_layout Plain Layout
14795 \begin_inset CommandInset label
14797 name "tab:Example-booktabs-table"
14801 Example booktabs-table
14809 \begin_layout Plain Layout
14811 \begin_inset Tabular
14812 <lyxtabular version="3" rows="8" columns="4">
14813 <features rotate="0" booktabs="true" tabularvalignment="middle">
14814 <column alignment="center" valignment="top" width="0">
14815 <column alignment="center" valignment="top" width="0">
14816 <column alignment="center" valignment="top" width="0">
14817 <column alignment="center" valignment="top" width="0">
14819 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14822 \begin_layout Plain Layout
14828 <cell alignment="center" valignment="top" topline="true" usebox="none">
14831 \begin_layout Plain Layout
14833 \begin_inset space \thinspace{}
14841 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14844 \begin_layout Plain Layout
14846 \begin_inset space \thinspace{}
14854 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14857 \begin_layout Plain Layout
14865 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14868 \begin_layout Plain Layout
14872 \begin_layout Plain Layout
14885 \begin_layout Plain Layout
14894 Detector thickness in µm
14899 <cell alignment="center" valignment="top" usebox="none">
14902 \begin_layout Plain Layout
14908 <cell alignment="center" valignment="top" usebox="none">
14911 \begin_layout Plain Layout
14917 <cell alignment="center" valignment="top" usebox="none">
14920 \begin_layout Plain Layout
14928 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14931 \begin_layout Plain Layout
14937 <cell alignment="center" valignment="top" topline="true" usebox="none">
14940 \begin_layout Plain Layout
14946 <cell alignment="center" valignment="top" topline="true" usebox="none">
14949 \begin_layout Plain Layout
14955 <cell alignment="center" valignment="top" topline="true" usebox="none">
14958 \begin_layout Plain Layout
14965 <row topspace="default">
14966 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14969 \begin_layout Plain Layout
14970 Spatial resolution in µm
14975 <cell alignment="center" valignment="top" usebox="none">
14978 \begin_layout Plain Layout
14984 <cell alignment="center" valignment="top" usebox="none">
14987 \begin_layout Plain Layout
14993 <cell alignment="center" valignment="top" usebox="none">
14996 \begin_layout Plain Layout
15003 <row topspace="default">
15004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15007 \begin_layout Plain Layout
15009 \begin_inset Formula $f_{\mathrm{max}}$
15017 <cell alignment="center" valignment="top" usebox="none">
15020 \begin_layout Plain Layout
15026 <cell alignment="center" valignment="top" usebox="none">
15029 \begin_layout Plain Layout
15035 <cell alignment="center" valignment="top" usebox="none">
15038 \begin_layout Plain Layout
15045 <row topspace="default">
15046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15049 \begin_layout Plain Layout
15053 \begin_layout Plain Layout
15057 cmidrule(l{10pt}){1-1}
15062 LSF-spatial resolution
15067 <cell alignment="center" valignment="top" usebox="none">
15070 \begin_layout Plain Layout
15076 <cell alignment="center" valignment="top" usebox="none">
15079 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" usebox="none">
15088 \begin_layout Plain Layout
15096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15099 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" usebox="none">
15108 \begin_layout Plain Layout
15114 <cell alignment="center" valignment="top" usebox="none">
15117 \begin_layout Plain Layout
15123 <cell alignment="center" valignment="top" usebox="none">
15126 \begin_layout Plain Layout
15134 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15137 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15146 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15155 \begin_layout Plain Layout
15161 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15164 \begin_layout Plain Layout
15183 \begin_layout Standard
15184 Spaces to table rows can be added using the
15188 tab of the table dialog as described in section
15189 \begin_inset space ~
15193 \begin_inset CommandInset ref
15195 reference "sub:Row-Spacing"
15202 \begin_layout Standard
15203 Unlike normal tables, formal tables have no vertical table lines.
15204 The horizontal table lines can be set as for normal tables but they appear
15205 with different widths in the output:
15206 \begin_inset Newline newline
15209 The first and the last table line have a default width of 0.08
15210 \begin_inset space \thinspace{}
15213 em while the other lines have a default width of 0.05
15214 \begin_inset space \thinspace{}
15220 \begin_layout Standard
15221 The default widths can be changed with the following preamble lines
15224 \begin_layout Standard
15234 \begin_inset Newline newline
15246 \begin_layout Standard
15247 This example is for the first line, the so called
15252 If you want to change the width for the last line, replace
15261 To change the width for the other lines replace
15270 You can use all units listed in appendix
15271 \begin_inset space ~
15275 \begin_inset CommandInset ref
15277 reference "cha:Units-available-in"
15284 \begin_layout Standard
15285 Lines that do not span all table columns can be created by setting a table
15286 line for multicolumn cells.
15287 LyX will then internally use the command
15293 to create this line.
15297 \begin_layout Standard
15302 cmidrule[width](trim){startcol-endcol}
15305 \begin_layout Standard
15312 are currently not supported by LyX so you have to use TeX-Code to be able
15320 s can manually be created by inserting the command as TeX-Code as the first
15321 cell entry of the first cell of a row.
15322 The line is then drawn in the output above the current row.
15325 \begin_layout Standard
15326 The default for the width is 0.03
15327 \begin_inset space \thinspace{}
15331 Startcol is the number of the column where the line starts and endcol the
15332 column number where the line ends.
15333 The endcol always needs to be specified, also when the line should span
15335 The optional parameter trim could be either
15343 where the trimwidth is also optional.
15344 Using for example the parameter
15348 means that the line is trimmed from its left end by 2
15349 \begin_inset space \thinspace{}
15353 If you don't specify the trimwidth the lines are trimmed by the default
15355 \begin_inset space \thinspace{}
15361 \begin_layout Standard
15362 \begin_inset VSpace bigskip
15366 \begin_inset space ~
15370 \begin_inset CommandInset ref
15372 reference "tab:Example-booktabs-table"
15376 was created using the commands
15379 \begin_layout Standard
15389 \begin_layout Standard
15390 at the beginning of the second row and
15393 \begin_layout Standard
15398 cmidrule(l{10pt}){1-1}
15401 \begin_layout Standard
15405 \begin_layout Standard
15406 \begin_inset VSpace bigskip
15412 \begin_layout Standard
15413 You might want to have overlapping
15420 \begin_inset space ~
15424 \begin_inset CommandInset ref
15426 reference "tab:Special-booktabs-table"
15431 This can be achieved with the TeX-Code command
15434 \begin_layout Standard
15442 \begin_layout Standard
15443 The command that was used for the second row of Table
15444 \begin_inset space ~
15448 \begin_inset CommandInset ref
15450 reference "tab:Special-booktabs-table"
15457 \begin_layout Standard
15471 \begin_layout Standard
15472 The command for the sixth row is
15475 \begin_layout Standard
15487 \begin_layout Standard
15488 \begin_inset VSpace bigskip
15494 \begin_layout Standard
15495 If you are in any way not satisfied with the border line spacing, you can
15496 use the following command to produce lines that span over all table columns
15501 \begin_layout Standard
15506 specialrule{width}{space above}{space below}
15509 \begin_layout Standard
15510 For more information about these features, refer to the manual of the LaTeX-pack
15516 \begin_inset CommandInset citation
15523 \begin_inset Index idx
15526 \begin_layout Plain Layout
15527 LaTeX-packages ! booktabs
15535 \begin_layout Standard
15536 \begin_inset Float table
15542 \begin_layout Plain Layout
15543 \begin_inset Caption Standard
15545 \begin_layout Plain Layout
15546 \begin_inset CommandInset label
15548 name "tab:Special-booktabs-table"
15552 Special booktabs-table
15560 \begin_layout Plain Layout
15562 \begin_inset Tabular
15563 <lyxtabular version="3" rows="8" columns="4">
15564 <features rotate="0" booktabs="true" tabularvalignment="middle">
15565 <column alignment="center" valignment="top" width="0">
15566 <column alignment="center" valignment="top" width="0">
15567 <column alignment="center" valignment="top" width="0">
15568 <column alignment="center" valignment="top" width="0">
15570 <cell alignment="center" valignment="top" topline="true" usebox="none">
15573 \begin_layout Plain Layout
15579 <cell alignment="center" valignment="top" topline="true" usebox="none">
15582 \begin_layout Plain Layout
15584 \begin_inset space \thinspace{}
15592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15595 \begin_layout Plain Layout
15597 \begin_inset space \thinspace{}
15605 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15608 \begin_layout Plain Layout
15616 <cell alignment="center" valignment="top" usebox="none">
15619 \begin_layout Plain Layout
15623 \begin_layout Plain Layout
15636 \begin_layout Plain Layout
15649 \begin_layout Plain Layout
15662 \begin_layout Plain Layout
15671 Detector thickness in µm
15676 <cell alignment="center" valignment="top" usebox="none">
15679 \begin_layout Plain Layout
15685 <cell alignment="center" valignment="top" usebox="none">
15688 \begin_layout Plain Layout
15694 <cell alignment="center" valignment="top" usebox="none">
15697 \begin_layout Plain Layout
15705 <cell alignment="center" valignment="top" topline="true" usebox="none">
15708 \begin_layout Plain Layout
15714 <cell alignment="center" valignment="top" topline="true" usebox="none">
15717 \begin_layout Plain Layout
15723 <cell alignment="center" valignment="top" topline="true" usebox="none">
15726 \begin_layout Plain Layout
15732 <cell alignment="center" valignment="top" topline="true" usebox="none">
15735 \begin_layout Plain Layout
15742 <row topspace="default">
15743 <cell alignment="center" valignment="top" usebox="none">
15746 \begin_layout Plain Layout
15747 Spatial resolution in µm
15752 <cell alignment="center" valignment="top" usebox="none">
15755 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" usebox="none">
15764 \begin_layout Plain Layout
15770 <cell alignment="center" valignment="top" usebox="none">
15773 \begin_layout Plain Layout
15780 <row topspace="default">
15781 <cell alignment="center" valignment="top" usebox="none">
15784 \begin_layout Plain Layout
15786 \begin_inset Formula $f_{\mathrm{max}}$
15794 <cell alignment="center" valignment="top" usebox="none">
15797 \begin_layout Plain Layout
15803 <cell alignment="center" valignment="top" usebox="none">
15806 \begin_layout Plain Layout
15812 <cell alignment="center" valignment="top" usebox="none">
15815 \begin_layout Plain Layout
15823 <cell alignment="center" valignment="top" topline="true" usebox="none">
15826 \begin_layout Plain Layout
15830 \begin_layout Plain Layout
15843 \begin_layout Plain Layout
15852 LSF-spatial resolution
15857 <cell alignment="center" valignment="top" topline="true" usebox="none">
15860 \begin_layout Plain Layout
15866 <cell alignment="center" valignment="top" topline="true" usebox="none">
15869 \begin_layout Plain Layout
15875 <cell alignment="center" valignment="top" topline="true" usebox="none">
15878 \begin_layout Plain Layout
15886 <cell alignment="center" valignment="top" usebox="none">
15889 \begin_layout Plain Layout
15895 <cell alignment="center" valignment="top" usebox="none">
15898 \begin_layout Plain Layout
15904 <cell alignment="center" valignment="top" usebox="none">
15907 \begin_layout Plain Layout
15913 <cell alignment="center" valignment="top" usebox="none">
15916 \begin_layout Plain Layout
15924 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15927 \begin_layout Plain Layout
15933 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15936 \begin_layout Plain Layout
15942 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15945 \begin_layout Plain Layout
15951 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15954 \begin_layout Plain Layout
15973 \begin_layout Section
15974 Vertical Table Alignment
15975 \begin_inset Index idx
15978 \begin_layout Plain Layout
15987 \begin_layout Standard
15988 To align tables vertically in a text line, the table must be inside a box.
15989 The box can then be vertically aligned as described in section
15990 \begin_inset space ~
15994 \begin_inset CommandInset ref
15996 reference "sec:Box-Dialog"
16003 \begin_layout Standard
16004 In the following example the tables are inside a minipage
16008 \begin_layout Plain Layout
16009 Minipages are described in section
16010 \begin_inset space ~
16014 \begin_inset CommandInset ref
16016 reference "sec:Minipages"
16025 box that has a width of 15
16026 \begin_inset space \thinspace{}
16032 \begin_layout Itemize
16034 \begin_inset Box Frameless
16044 height_special "totalheight"
16047 \begin_layout Plain Layout
16048 \begin_inset Tabular
16049 <lyxtabular version="3" rows="3" columns="3">
16050 <features rotate="0" tabularvalignment="middle">
16051 <column alignment="center" valignment="top" width="0">
16052 <column alignment="center" valignment="top" width="0">
16053 <column alignment="center" valignment="top" width="0">
16055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16058 \begin_layout Plain Layout
16064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16067 \begin_layout Plain Layout
16073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16076 \begin_layout Plain Layout
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16087 \begin_layout Plain Layout
16093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16096 \begin_layout Plain Layout
16102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16116 \begin_layout Plain Layout
16122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16125 \begin_layout Plain Layout
16131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16134 \begin_layout Plain Layout
16154 \begin_layout Plain Layout
16166 \begin_inset Box Frameless
16176 height_special "totalheight"
16179 \begin_layout Plain Layout
16180 \begin_inset Tabular
16181 <lyxtabular version="3" rows="3" columns="3">
16182 <features rotate="0" tabularvalignment="middle">
16183 <column alignment="center" valignment="top" width="0">
16184 <column alignment="center" valignment="top" width="0">
16185 <column alignment="center" valignment="top" width="0">
16187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16190 \begin_layout Plain Layout
16196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16199 \begin_layout Plain Layout
16205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16208 \begin_layout Plain Layout
16216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16219 \begin_layout Plain Layout
16225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16228 \begin_layout Plain Layout
16234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16237 \begin_layout Plain Layout
16245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16248 \begin_layout Plain Layout
16254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16257 \begin_layout Plain Layout
16263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16266 \begin_layout Plain Layout
16286 \begin_layout Plain Layout
16296 \begin_layout Itemize
16298 \begin_inset Box Frameless
16308 height_special "totalheight"
16311 \begin_layout Plain Layout
16312 \begin_inset Tabular
16313 <lyxtabular version="3" rows="3" columns="3">
16314 <features rotate="0" tabularvalignment="middle">
16315 <column alignment="center" valignment="top" width="0">
16316 <column alignment="center" valignment="top" width="0">
16317 <column alignment="center" valignment="top" width="0">
16319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16322 \begin_layout Plain Layout
16328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16331 \begin_layout Plain Layout
16337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16340 \begin_layout Plain Layout
16348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16351 \begin_layout Plain Layout
16357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16360 \begin_layout Plain Layout
16366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16369 \begin_layout Plain Layout
16377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16380 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16398 \begin_layout Plain Layout
16417 \begin_layout Itemize
16419 \begin_inset Box Frameless
16429 height_special "totalheight"
16432 \begin_layout Plain Layout
16433 \begin_inset Tabular
16434 <lyxtabular version="3" rows="3" columns="3">
16435 <features rotate="0" tabularvalignment="middle">
16436 <column alignment="center" valignment="top" width="0">
16437 <column alignment="center" valignment="top" width="0">
16438 <column alignment="center" valignment="top" width="0">
16440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16443 \begin_layout Plain Layout
16449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16452 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16461 \begin_layout Plain Layout
16469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16472 \begin_layout Plain Layout
16478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16481 \begin_layout Plain Layout
16487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16490 \begin_layout Plain Layout
16498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16501 \begin_layout Plain Layout
16507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16510 \begin_layout Plain Layout
16516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16519 \begin_layout Plain Layout
16539 \begin_layout Plain Layout
16551 \begin_inset Box Frameless
16561 height_special "totalheight"
16564 \begin_layout Plain Layout
16565 \begin_inset Tabular
16566 <lyxtabular version="3" rows="3" columns="3">
16567 <features rotate="0" tabularvalignment="middle">
16568 <column alignment="center" valignment="top" width="0">
16569 <column alignment="center" valignment="top" width="0">
16570 <column alignment="center" valignment="top" width="0">
16572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16575 \begin_layout Plain Layout
16581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16593 \begin_layout Plain Layout
16601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16604 \begin_layout Plain Layout
16610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16613 \begin_layout Plain Layout
16619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16622 \begin_layout Plain Layout
16630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16633 \begin_layout Plain Layout
16639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16642 \begin_layout Plain Layout
16648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16651 \begin_layout Plain Layout
16671 \begin_layout Plain Layout
16681 \begin_layout Standard
16682 As you will see, the content of the first and last table row is not correctly
16684 To get this alignment, the minipage box must be set into a raisebox
16688 \begin_layout Plain Layout
16689 Raiseboxes are described in section
16690 \begin_inset space ~
16694 \begin_inset CommandInset ref
16696 reference "sub:Vertical-Alignment"
16706 In the example above the second table in the first item is aligned using
16707 the TeX-Code-command
16710 \begin_layout Standard
16720 \begin_layout Standard
16722 After the box the closing brace
16726 is inserted as TeX-Code.
16727 For the second table in the last item the command
16730 \begin_layout Standard
16740 \begin_layout Standard
16744 \begin_layout Standard
16745 \begin_inset Note Greyedout
16748 \begin_layout Plain Layout
16753 The alignment of the table row content to the surrounding text line is
16755 The required value for the
16761 command for this alignment depends on the document font, the font size,
16762 and the table line thickness.
16770 \begin_layout Section
16772 \begin_inset CommandInset label
16774 name "sec:Colored-Tables"
16779 \begin_inset Index idx
16782 \begin_layout Plain Layout
16791 \begin_layout Subsection
16793 \begin_inset Index idx
16796 \begin_layout Plain Layout
16797 Table Color ! for Cells
16803 \begin_inset Index idx
16806 \begin_layout Plain Layout
16807 Color ! for Table Cells
16815 \begin_layout Standard
16816 \begin_inset Float table
16822 \begin_layout Plain Layout
16823 \begin_inset Caption Standard
16825 \begin_layout Plain Layout
16826 \begin_inset CommandInset label
16828 name "tab:Table-colored-without"
16832 Table colored without using the package
16837 \begin_inset Argument 1
16840 \begin_layout Plain Layout
16841 Table without colortbl
16854 \begin_layout Plain Layout
16856 \begin_inset Tabular
16857 <lyxtabular version="3" rows="3" columns="3">
16858 <features rotate="0" tabularvalignment="middle">
16859 <column alignment="center" valignment="top" width="0">
16860 <column alignment="center" valignment="top" width="0">
16861 <column alignment="center" valignment="top" width="0">
16863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16866 \begin_layout Plain Layout
16874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16877 \begin_layout Plain Layout
16885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16888 \begin_layout Plain Layout
16898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16901 \begin_layout Plain Layout
16909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16912 \begin_layout Plain Layout
16920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16923 \begin_layout Plain Layout
16933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16936 \begin_layout Plain Layout
16944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16947 \begin_layout Plain Layout
16955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16979 \begin_layout Standard
16980 If you only need colored text, mark the cells and choose a color in the
16984 \begin_inset space ~
16989 dialog (toolbar button
16992 arg "dialog-show character"
16996 This was used to create Table
16997 \begin_inset space ~
17001 \begin_inset CommandInset ref
17003 reference "tab:Table-colored-without"
17008 In any other case you have to use the LaTeX-package
17013 \begin_inset Index idx
17016 \begin_layout Plain Layout
17017 LaTeX-packages ! colortbl
17025 \begin_layout Standard
17029 \begin_layout Plain Layout
17039 \begin_inset Note Note
17042 \begin_layout Plain Layout
17043 The following section part will only be displayed when the LaTeX-package
17056 \begin_layout Standard
17057 To create colored tables,
17061 must be loaded in the preamble with the line
17064 \begin_layout Standard
17069 usepackage{colortbl}
17072 \begin_layout Standard
17073 The color of a column is adjusted with the command
17076 \begin_layout Standard
17081 columncolor{name of color}
17084 \begin_layout Standard
17090 More about the command
17094 is contained in section
17095 \begin_inset space ~
17099 \begin_inset CommandInset ref
17101 reference "sub:Multicolumn-Calculations"
17108 \begin_layout Standard
17109 The following color names are predefined:
17112 \begin_layout Standard
17146 \begin_layout Standard
17147 \begin_inset VSpace medskip
17153 \begin_layout Standard
17154 If you add the options
17157 \begin_layout Standard
17160 usenames,dvipsnames
17163 \begin_layout Standard
17164 to the document class options in the document settings, you can additionally
17166 \begin_inset space ~
17170 These colors are listed in appendix
17171 \begin_inset space ~
17175 \begin_inset CommandInset ref
17177 reference "chap:List-of-dvips-colornames"
17182 One of these colors,
17186 , is used as example in Table
17187 \begin_inset space ~
17191 \begin_inset CommandInset ref
17193 reference "tab:Table-colored-using"
17200 \begin_layout Standard
17201 \begin_inset VSpace medskip
17207 \begin_layout Standard
17208 You can also define your own color with the command
17211 \begin_layout Standard
17216 definecolor{color name}{color model}{color values}
17219 \begin_layout Standard
17220 The color model can be
17223 \begin_layout Labeling
17224 \labelwidthstring 00.00.0000
17225 cmyk: cyan, magenta, yellow, black
17228 \begin_layout Labeling
17229 \labelwidthstring 00.00.0000
17230 rgb: red, green blue
17233 \begin_layout Labeling
17234 \labelwidthstring 00.00.0000
17238 \begin_layout Standard
17239 and the color values are comma separated numbers between 0 and 1 describing
17240 the factor for the corresponding color of the color model.
17243 \begin_layout Standard
17245 \begin_inset space \thinspace{}
17249 \begin_inset space \space{}
17256 " in the preamble with
17259 \begin_layout Standard
17264 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17267 \begin_layout Standard
17275 \begin_layout Standard
17280 definecolor{lightgray}{gray}{0.8}
17283 \begin_layout Standard
17284 \begin_inset VSpace medskip
17290 \begin_layout Standard
17291 Lines are colored with the command
17294 \begin_layout Standard
17299 rowcolor{name of color}
17302 \begin_layout Standard
17303 and cells are colored with the command
17306 \begin_layout Standard
17311 cellcolor{name of color}
17314 \begin_layout Standard
17315 Both commands are inserted at the beginning of a cell as TeX-Code.
17318 \begin_layout Standard
17319 To color characters in the table, mark the cells and use the
17322 \begin_inset space ~
17328 If a cell contains TeX-Code mark only the characters, otherwise the colored
17329 TeX-Code will cause LaTeX-errors.
17332 \begin_layout Standard
17333 \begin_inset Note Greyedout
17336 \begin_layout Plain Layout
17341 Not all DVI-viewers are able to display self-defined colors.
17349 \begin_layout Standard
17350 \begin_inset VSpace bigskip
17356 \begin_layout Standard
17358 \begin_inset space ~
17362 \begin_inset CommandInset ref
17364 reference "tab:Table-colored-using"
17368 do the following: The color of the first column should be
17376 \begin_layout Standard
17381 columncolor{darkgreen}
17386 \begin_layout Standard
17387 as LaTeX-argument for this column.
17388 The first row should be light blue, therefore the TeX-Code command
17391 \begin_layout Standard
17399 \begin_layout Standard
17400 is inserted to the first cell of this row.
17401 Note that this overwrites the column color for the first cell.
17402 The last cell of the last row is colored maroon by inserting the TeX-Code
17406 \begin_layout Standard
17414 \begin_layout Standard
17415 The characters could now be colored using the menu
17417 Edit\SpecialChar \menuseparator
17419 \begin_inset space ~
17427 \begin_layout Standard
17428 \begin_inset Float table
17434 \begin_layout Plain Layout
17435 \begin_inset Caption Standard
17437 \begin_layout Plain Layout
17438 \begin_inset CommandInset label
17440 name "tab:Table-colored-using"
17444 Table colored using the package
17449 \begin_inset Argument 1
17452 \begin_layout Plain Layout
17453 Table with colortbl
17466 \begin_layout Plain Layout
17468 \begin_inset Tabular
17469 <lyxtabular version="3" rows="3" columns="3">
17470 <features rotate="0" tabularvalignment="middle">
17471 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
17472 <column alignment="center" valignment="top" width="0">
17473 <column alignment="center" valignment="top" width="0">
17475 <cell alignment="center" valignment="top" usebox="none">
17478 \begin_layout Plain Layout
17482 \begin_layout Plain Layout
17498 <cell alignment="center" valignment="top" usebox="none">
17501 \begin_layout Plain Layout
17509 <cell alignment="center" valignment="top" usebox="none">
17512 \begin_layout Plain Layout
17522 <cell alignment="center" valignment="top" usebox="none">
17525 \begin_layout Plain Layout
17533 <cell alignment="center" valignment="top" usebox="none">
17536 \begin_layout Plain Layout
17544 <cell alignment="center" valignment="top" usebox="none">
17547 \begin_layout Plain Layout
17557 <cell alignment="center" valignment="top" usebox="none">
17560 \begin_layout Plain Layout
17568 <cell alignment="center" valignment="top" usebox="none">
17571 \begin_layout Plain Layout
17579 <cell alignment="center" valignment="top" usebox="none">
17582 \begin_layout Plain Layout
17586 \begin_layout Plain Layout
17615 \begin_layout Standard
17619 \begin_layout Plain Layout
17629 \begin_inset Note Note
17632 \begin_layout Plain Layout
17633 The following will be displayed when the LaTeX-package
17645 \begin_layout Standard
17646 You need to install the package
17650 to see the content of this section in the output.
17653 \begin_layout Standard
17657 \begin_layout Plain Layout
17669 \begin_layout Subsection
17671 \begin_inset Index idx
17674 \begin_layout Plain Layout
17675 Table Color ! for Rows
17681 \begin_inset Index idx
17684 \begin_layout Plain Layout
17685 Color ! for Table Rows
17693 \begin_layout Standard
17694 In case every second table row needs to be colored there is an alternative
17695 to the method described in the previous section: One loads the package
17701 \begin_inset Index idx
17704 \begin_layout Plain Layout
17705 LaTeX-packages ! xcolor
17709 \begin_layout Plain Layout
17723 in the document preamble with the command
17726 \begin_layout Standard
17731 usepackage[table]{xcolor}
17734 \begin_layout Standard
17739 automatically loads also the package
17744 \begin_inset Index idx
17747 \begin_layout Plain Layout
17748 LaTeX-packages ! colortbl
17757 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17760 \begin_layout Standard
17764 \begin_layout Plain Layout
17774 \begin_inset Note Note
17777 \begin_layout Plain Layout
17778 The following section part will only be displayed when the LaTeX-package
17791 \begin_layout Standard
17792 The table rows are colored with the command
17795 \begin_layout Standard
17800 rowcolors[commands]{row number}{odd row color}{even row color}
17803 \begin_layout Standard
17804 that is either inserted in the document preamble or as TeX-Code before the
17805 first table to be colored.
17807 \begin_inset space ~
17810 number is the number of the first row which should be colored according
17811 to the odd row color.
17812 commands can be additional commands that are executed before every table
17814 So for example the command
17817 \begin_layout Standard
17822 rowcolors{1}{white}{lightgray}
17825 \begin_layout Standard
17826 leads to the coloring scheme of Table
17827 \begin_inset space ~
17831 \begin_inset CommandInset ref
17833 reference "tab:Table-rowcolors"
17841 \begin_layout Standard
17848 hline]{1}{lightgray}{cyan}
17851 \begin_layout Standard
17852 leads to the coloring scheme of Table
17853 \begin_inset space ~
17857 \begin_inset CommandInset ref
17859 reference "tab:Table-rowcolors-2"
17865 \begin_inset space ~
17869 \begin_inset space ~
17873 \begin_inset space ~
17877 \begin_inset space ~
17880 color are left empty, no color will be used so that the command
17883 \begin_layout Standard
17891 \begin_layout Standard
17892 deletes all colors.
17899 affects all tables following that command.
17902 \begin_layout Standard
17906 \begin_layout Plain Layout
17910 rowcolors{1}{white}{lightgray}
17918 \begin_layout Standard
17919 \begin_inset Float table
17925 \begin_layout Plain Layout
17926 \begin_inset Caption Standard
17928 \begin_layout Plain Layout
17929 \begin_inset CommandInset label
17931 name "tab:Table-rowcolors"
17935 Table where every second row is colored light gray.
17943 \begin_layout Plain Layout
17945 \begin_inset Tabular
17946 <lyxtabular version="3" rows="4" columns="3">
17947 <features rotate="0" tabularvalignment="middle">
17948 <column alignment="center" valignment="top" width="0">
17949 <column alignment="center" valignment="top" width="0pt">
17950 <column alignment="center" valignment="top" width="0pt">
17952 <cell alignment="center" valignment="top" usebox="none">
17955 \begin_layout Plain Layout
17961 <cell alignment="center" valignment="top" usebox="none">
17964 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" usebox="none">
17973 \begin_layout Plain Layout
17981 <cell alignment="center" valignment="top" usebox="none">
17984 \begin_layout Plain Layout
17990 <cell alignment="center" valignment="top" usebox="none">
17993 \begin_layout Plain Layout
17999 <cell alignment="center" valignment="top" usebox="none">
18002 \begin_layout Plain Layout
18010 <cell alignment="center" valignment="top" usebox="none">
18013 \begin_layout Plain Layout
18019 <cell alignment="center" valignment="top" usebox="none">
18022 \begin_layout Plain Layout
18028 <cell alignment="center" valignment="top" usebox="none">
18031 \begin_layout Plain Layout
18039 <cell alignment="center" valignment="top" usebox="none">
18042 \begin_layout Plain Layout
18048 <cell alignment="center" valignment="top" usebox="none">
18051 \begin_layout Plain Layout
18057 <cell alignment="center" valignment="top" usebox="none">
18060 \begin_layout Plain Layout
18079 \begin_layout Standard
18083 \begin_layout Plain Layout
18089 hline]{1}{lightgray}{cyan}
18097 \begin_layout Standard
18098 \begin_inset Float table
18104 \begin_layout Plain Layout
18105 \begin_inset Caption Standard
18107 \begin_layout Plain Layout
18108 \begin_inset CommandInset label
18110 name "tab:Table-rowcolors-2"
18114 Table where every second row is colored cyan and at which there is a line
18123 \begin_layout Plain Layout
18125 \begin_inset Tabular
18126 <lyxtabular version="3" rows="4" columns="3">
18127 <features rotate="0" tabularvalignment="middle">
18128 <column alignment="center" valignment="top" width="0">
18129 <column alignment="center" valignment="top" width="0">
18130 <column alignment="center" valignment="top" width="0pt">
18132 <cell alignment="center" valignment="top" usebox="none">
18135 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" usebox="none">
18153 \begin_layout Plain Layout
18161 <cell alignment="center" valignment="top" usebox="none">
18164 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" usebox="none">
18182 \begin_layout Plain Layout
18190 <cell alignment="center" valignment="top" usebox="none">
18193 \begin_layout Plain Layout
18199 <cell alignment="center" valignment="top" usebox="none">
18202 \begin_layout Plain Layout
18208 <cell alignment="center" valignment="top" usebox="none">
18211 \begin_layout Plain Layout
18219 <cell alignment="center" valignment="top" usebox="none">
18222 \begin_layout Plain Layout
18228 <cell alignment="center" valignment="top" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" usebox="none">
18240 \begin_layout Plain Layout
18259 \begin_layout Standard
18263 \begin_layout Plain Layout
18273 \begin_inset Note Note
18276 \begin_layout Plain Layout
18277 turns off the row coloring
18285 \begin_layout Standard
18289 \begin_layout Plain Layout
18299 \begin_inset Note Note
18302 \begin_layout Plain Layout
18303 The following will be displayed when the LaTeX-package
18315 \begin_layout Standard
18316 You need to install the package
18320 to see the content of this section in the output.
18323 \begin_layout Standard
18327 \begin_layout Plain Layout
18339 \begin_layout Subsection
18341 \begin_inset Index idx
18344 \begin_layout Plain Layout
18345 Table Color ! for Lines
18351 \begin_inset Index idx
18354 \begin_layout Plain Layout
18355 Color ! for Table Lines
18363 \begin_layout Standard
18364 As described in section
18365 \begin_inset space ~
18369 \begin_inset CommandInset ref
18371 reference "sub:Line-Thickness"
18375 , the line thickness for all lines in a table can be adjusted with the length
18384 \begin_inset space \thinspace{}
18387 pt for all tables of this section.
18391 \begin_layout Plain Layout
18397 arrayrulewidth}{1.5pt}
18405 \begin_layout Standard
18406 To color vertical lines for example with green, create the following column
18407 format in the document preamble, according to the description in section
18408 \begin_inset space ~
18412 \begin_inset CommandInset ref
18414 reference "sub:Customized-Format"
18421 \begin_layout Standard
18426 newcolumntype{W}{!{
18433 \begin_layout Standard
18435 \begin_inset space ~
18439 \begin_inset CommandInset ref
18441 reference "tab:Table-with-vertical-colored"
18449 was used for the last column and
18453 for the other columns.
18456 \begin_layout Standard
18457 If you want to have several colors, define more column formats.
18460 \begin_layout Standard
18461 \begin_inset Float table
18467 \begin_layout Plain Layout
18468 \begin_inset Caption Standard
18470 \begin_layout Plain Layout
18471 \begin_inset CommandInset label
18473 name "tab:Table-with-vertical-colored"
18477 Table with colored vertical lines
18485 \begin_layout Plain Layout
18487 \begin_inset Tabular
18488 <lyxtabular version="3" rows="3" columns="3">
18489 <features rotate="0" tabularvalignment="middle">
18490 <column alignment="center" valignment="top" width="0" special="Wc">
18491 <column alignment="center" valignment="top" width="0" special="Wc">
18492 <column alignment="center" valignment="top" width="0" special="WcW">
18494 <cell alignment="center" valignment="top" topline="true" usebox="none">
18497 \begin_layout Plain Layout
18503 <cell alignment="center" valignment="top" topline="true" usebox="none">
18506 \begin_layout Plain Layout
18512 <cell alignment="center" valignment="top" topline="true" usebox="none">
18515 \begin_layout Plain Layout
18523 <cell alignment="center" valignment="top" topline="true" usebox="none">
18526 \begin_layout Plain Layout
18532 <cell alignment="center" valignment="top" topline="true" usebox="none">
18535 \begin_layout Plain Layout
18541 <cell alignment="center" valignment="top" topline="true" usebox="none">
18544 \begin_layout Plain Layout
18552 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18555 \begin_layout Plain Layout
18561 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18564 \begin_layout Plain Layout
18570 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18573 \begin_layout Plain Layout
18592 \begin_layout Standard
18593 \begin_inset VSpace bigskip
18596 To color horizontal lines for example with red, as in Table
18597 \begin_inset space ~
18601 \begin_inset CommandInset ref
18603 reference "tab:Table-with-horizontal-colored"
18607 , insert these commands in TeX-Code before the table or table float:
18610 \begin_layout Standard
18620 \begin_inset Newline newline
18628 \begin_inset Newline newline
18632 \begin_inset Phantom HPhantom
18635 \begin_layout Plain Layout
18638 \begin_inset space ~
18648 arrayrulecolor{red}
18652 arrayrulecolor{black}}
18655 \begin_layout Standard
18659 \begin_layout Plain Layout
18670 \begin_layout Plain Layout
18679 \begin_layout Plain Layout
18683 arrayrulecolor{red}
18687 arrayrulecolor{black}}
18693 \begin_inset Float table
18699 \begin_layout Plain Layout
18700 \begin_inset Caption Standard
18702 \begin_layout Plain Layout
18703 \begin_inset CommandInset label
18705 name "tab:Table-with-horizontal-colored"
18709 Table with colored horizontal lines
18717 \begin_layout Plain Layout
18719 \begin_inset Tabular
18720 <lyxtabular version="3" rows="3" columns="3">
18721 <features rotate="0" tabularvalignment="middle">
18722 <column alignment="center" valignment="top" width="0">
18723 <column alignment="center" valignment="top" width="0">
18724 <column alignment="center" valignment="top" width="0">
18726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18729 \begin_layout Plain Layout
18735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18738 \begin_layout Plain Layout
18744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18747 \begin_layout Plain Layout
18755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18758 \begin_layout Plain Layout
18764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18767 \begin_layout Plain Layout
18773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18776 \begin_layout Plain Layout
18784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18787 \begin_layout Plain Layout
18793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18796 \begin_layout Plain Layout
18802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18805 \begin_layout Plain Layout
18824 \begin_layout Standard
18825 To return to the default line color black, insert this command in TeX-Code
18826 after the table or table float:
18829 \begin_layout Standard
18841 \begin_layout Standard
18843 \begin_inset space ~
18847 \begin_inset CommandInset ref
18849 reference "tab:Table-with-colored"
18853 is an example with colored vertical and horizontal lines.
18856 \begin_layout Standard
18857 \begin_inset Float table
18863 \begin_layout Plain Layout
18864 \begin_inset Caption Standard
18866 \begin_layout Plain Layout
18867 \begin_inset CommandInset label
18869 name "tab:Table-with-colored"
18873 Table with colored lines
18881 \begin_layout Plain Layout
18883 \begin_inset Tabular
18884 <lyxtabular version="3" rows="3" columns="3">
18885 <features rotate="0" tabularvalignment="middle">
18886 <column alignment="center" valignment="top" width="0" special="Wc">
18887 <column alignment="center" valignment="top" width="0" special="Wc">
18888 <column alignment="center" valignment="top" width="0" special="WcW">
18890 <cell alignment="center" valignment="top" topline="true" usebox="none">
18893 \begin_layout Plain Layout
18899 <cell alignment="center" valignment="top" topline="true" usebox="none">
18902 \begin_layout Plain Layout
18908 <cell alignment="center" valignment="top" topline="true" usebox="none">
18911 \begin_layout Plain Layout
18919 <cell alignment="center" valignment="top" topline="true" usebox="none">
18922 \begin_layout Plain Layout
18928 <cell alignment="center" valignment="top" topline="true" usebox="none">
18931 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" topline="true" usebox="none">
18940 \begin_layout Plain Layout
18947 <row topspace="default">
18948 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18951 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18969 \begin_layout Plain Layout
18988 \begin_layout Standard
18992 \begin_layout Plain Layout
19008 \begin_layout Standard
19012 \begin_layout Plain Layout
19018 arrayrulewidth}{0.4pt}
19026 \begin_layout Section
19027 Rotated Table Cells
19028 \begin_inset CommandInset label
19030 name "sec:Rotated-Table-Cells"
19035 \begin_inset Index idx
19038 \begin_layout Plain Layout
19039 Table ! Rotated Cells
19045 \begin_inset Index idx
19048 \begin_layout Plain Layout
19057 \begin_layout Standard
19058 \begin_inset Note Greyedout
19061 \begin_layout Plain Layout
19066 Not all DVI-viewers are able to display rotations.
19074 \begin_layout Standard
19075 Currently LyX only offers to rotate table cells by 90
19076 \begin_inset space \thinspace{}
19079 ° counter-clockwise.
19080 To rotate cells by an angle of your choice, you have to add this to the
19084 \begin_layout Standard
19089 @ifundefined{turnbox}{
19091 usepackage{rotating}}{}
19094 \begin_layout Standard
19095 In the table cell that should be rotated, add at the beginning this command
19099 \begin_layout Standard
19107 \begin_layout Standard
19108 where angle is the rotation angle in °.
19109 At the end of the cell the command
19112 \begin_layout Standard
19120 \begin_layout Standard
19121 is inserted as TeX-code.
19124 \begin_layout Standard
19126 \begin_inset space ~
19130 \begin_inset CommandInset ref
19132 reference "tab:Table-with-rotated-multi"
19136 is an example where 3
19137 \begin_inset space ~
19140 cells were rotated by 45
19141 \begin_inset space \thinspace{}
19147 \begin_layout Standard
19148 \begin_inset Float table
19153 \begin_layout Plain Layout
19154 \begin_inset Caption Standard
19156 \begin_layout Plain Layout
19157 \begin_inset CommandInset label
19159 name "tab:Table-with-rotated"
19163 Table with rotated cells in the first row.
19171 \begin_layout Plain Layout
19174 \begin_inset Tabular
19175 <lyxtabular version="3" rows="2" columns="3">
19176 <features rotate="0" tabularvalignment="middle">
19177 <column alignment="center" valignment="top" width="0">
19178 <column alignment="center" valignment="top" width="0pt">
19179 <column alignment="center" valignment="top" width="0">
19181 <cell alignment="center" valignment="top" usebox="none">
19184 \begin_layout Plain Layout
19188 \begin_layout Plain Layout
19201 \begin_layout Plain Layout
19215 <cell alignment="center" valignment="top" usebox="none">
19218 \begin_layout Plain Layout
19222 \begin_layout Plain Layout
19235 \begin_layout Plain Layout
19249 <cell alignment="center" valignment="top" usebox="none">
19252 \begin_layout Plain Layout
19256 \begin_layout Plain Layout
19269 \begin_layout Plain Layout
19285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19288 \begin_layout Plain Layout
19294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19297 \begin_layout Plain Layout
19303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19306 \begin_layout Plain Layout
19325 \begin_layout Standard
19326 \begin_inset Note Greyedout
19329 \begin_layout Plain Layout
19334 Line breaks (shortcut
19337 arg "newline-insert newline"
19340 ) are not allowed in rotated cells.
19348 \begin_layout Standard
19349 If you want to rotate table cells containing line breaks, you have to put
19350 the cell content into a minipage or a parbox.
19354 \begin_layout Plain Layout
19355 For more about these boxes see sec.
19356 \begin_inset space \thinspace{}
19360 \begin_inset CommandInset ref
19362 reference "sec:Minipages"
19367 \begin_inset CommandInset ref
19369 reference "sec:Parboxes"
19378 If you rotate this cell by 90
19379 \begin_inset space \thinspace{}
19382 ° the width of the box is the height of the cell.
19384 \begin_inset space ~
19388 \begin_inset CommandInset ref
19390 reference "tab:Table-with-rotated-multi"
19394 is an example for a rotated multiline cell where the box width was set
19396 \begin_inset space \thinspace{}
19402 \begin_layout Standard
19403 \begin_inset Float table
19408 \begin_layout Plain Layout
19409 \begin_inset Caption Standard
19411 \begin_layout Plain Layout
19412 \begin_inset CommandInset label
19414 name "tab:Table-with-rotated-multi"
19418 Table with rotated multiline cell.
19426 \begin_layout Plain Layout
19429 \begin_inset Tabular
19430 <lyxtabular version="3" rows="2" columns="3">
19431 <features rotate="0" tabularvalignment="middle">
19432 <column alignment="center" valignment="top" width="0">
19433 <column alignment="center" valignment="top" width="0pt">
19434 <column alignment="center" valignment="top" width="0">
19436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19439 \begin_layout Plain Layout
19445 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19448 \begin_layout Plain Layout
19449 \begin_inset Box Frameless
19459 height_special "totalheight"
19462 \begin_layout Plain Layout
19464 \begin_inset Newline newline
19477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19480 \begin_layout Plain Layout
19488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19491 \begin_layout Plain Layout
19497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19500 \begin_layout Plain Layout
19506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19509 \begin_layout Plain Layout
19528 \begin_layout Section
19529 Table Width Calculation
19530 \begin_inset CommandInset label
19532 name "sec:Table-Width-Calculation"
19539 \begin_layout Standard
19540 For wide tables it is sometimes difficult to assure that the table does
19541 not protrude over the page margin.
19542 Setting a fixed width for every column of the table is the solution, but
19543 what amount of space is needed for each column?
19546 \begin_layout Standard
19548 \begin_inset Formula $W_{\mathrm{table}}$
19551 can be calculated: Every column has the width of the specified column width
19553 \begin_inset Formula $W_{\mathrm{column}}$
19556 (that the content of the column can consume) plus two times the separation
19557 between the column content and the column border (LaTeX length
19564 \begin_inset space \thinspace{}
19567 pt) plus the width of a border line (LaTeX length
19574 \begin_inset space \thinspace{}
19578 \begin_inset Formula $n$
19582 \begin_inset space ~
19585 columns have the same width, the table width is
19586 \begin_inset Formula
19588 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19596 \begin_layout Standard
19597 The available width for a table is the space between the page margins or
19598 the width of a text column (for a two-column document) (LaTeX length
19605 If all table columns should have the same width and
19606 \begin_inset Formula $W_{\mathrm{table}}$
19610 \begin_inset space \thinspace{}
19616 \begin_inset Formula $W_{\mathrm{column}}$
19619 can easily be calculated.
19622 \begin_layout Standard
19623 To be able to perform calculations you need to load the LaTeX-package
19628 \begin_inset Index idx
19631 \begin_layout Plain Layout
19632 LaTeX-packages ! calc
19637 in the document preamble.
19638 To set the width in the table dialog you have to use the field
19643 The command scheme for this field is the same that is explained in section
19644 \begin_inset space ~
19648 \begin_inset CommandInset ref
19650 reference "sub:Multicolumn-Calculations"
19656 \begin_inset space \thinspace{}
19659 columns with an uniform width and centered text, enter there for each column
19663 \begin_layout Standard
19670 columnwidth-62.4pt)/5}
19673 \begin_layout Standard
19675 \begin_inset space \thinspace{}
19678 columns where 2 should have 0.75
19679 \begin_inset space ~
19682 times the width than the 3 others, the calculation is
19683 \begin_inset Formula
19685 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19686 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19687 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19688 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19696 \begin_layout Standard
19697 In the table therefore the command
19700 \begin_layout Standard
19707 columnwidth-62.4pt)/
19712 \begin_layout Standard
19713 is used for the wider columns and
19716 \begin_layout Standard
19723 columnwidth-62.4pt)/
19730 \begin_layout Standard
19731 for the smaller ones:
19734 \begin_layout Standard
19735 \begin_inset Tabular
19736 <lyxtabular version="3" rows="2" columns="5">
19737 <features rotate="0" tabularvalignment="middle">
19738 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19739 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19740 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19741 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19742 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19747 \begin_layout Plain Layout
19753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19756 \begin_layout Plain Layout
19762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19765 \begin_layout Plain Layout
19771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19774 \begin_layout Plain Layout
19780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19783 \begin_layout Plain Layout
19791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19794 \begin_layout Plain Layout
19795 111111 1111111 111111 111111111 11111 11111 1111
19800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19803 \begin_layout Plain Layout
19809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19812 \begin_layout Plain Layout
19813 2222 22222 222222 222222222 2222222 22 22222
19818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19821 \begin_layout Plain Layout
19827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19830 \begin_layout Plain Layout
19831 333333 333333 333333 33333 3333333 333
19844 \begin_layout Section
19845 Table Customization
19846 \begin_inset Index idx
19849 \begin_layout Plain Layout
19850 Table Customization
19856 \begin_inset Index idx
19859 \begin_layout Plain Layout
19860 Table ! Customization
19868 \begin_layout Subsection
19870 \begin_inset CommandInset label
19872 name "sub:Row-Spacing"
19877 \begin_inset Index idx
19880 \begin_layout Plain Layout
19881 Table Customization ! Row Spacing
19889 \begin_layout Standard
19890 You can add vertical space to table rows in the
19894 tab of the table dialog.
19895 You find there three possibilities:
19898 \begin_layout Description
19900 \begin_inset space ~
19904 \begin_inset space ~
19907 row will add space above the characters of the table row.
19908 If the table is a formal table
19912 \begin_layout Plain Layout
19913 Formal tables are explained in section
19914 \begin_inset space ~
19918 \begin_inset CommandInset ref
19920 reference "sec:Formal-Tables"
19929 LyX will insert as default 0.5
19930 \begin_inset space \thinspace{}
19934 For normal tables the inserted space will unfortunately destroy the vertical
19935 table lines as in the following table:
19936 \begin_inset VSpace medskip
19940 \begin_inset Newline newline
19944 \begin_inset space \hspace*{}
19949 \begin_inset space \hfill{}
19953 \begin_inset Tabular
19954 <lyxtabular version="3" rows="3" columns="1">
19955 <features rotate="0" tabularvalignment="middle">
19956 <column alignment="center" valignment="top" width="0">
19958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19961 \begin_layout Plain Layout
19968 <row topspace="3mm">
19969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19972 \begin_layout Plain Layout
19974 \begin_inset space \thinspace{}
19977 mm space top of row
19984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19987 \begin_layout Plain Layout
19999 \begin_inset space \hfill{}
20003 \begin_inset space \hspace*{}
20008 \begin_inset VSpace medskip
20012 \begin_inset Newline newline
20015 So inserting space in the top of row for normal tables is only useful when
20016 you don't have vertical lines.
20019 \begin_layout Description
20021 \begin_inset space ~
20025 \begin_inset space ~
20028 row will add space below the characters of the table row.
20029 If the table is a formal table LyX will insert as default 0.5
20030 \begin_inset space \thinspace{}
20033 em space, for normal tables the default size is 2
20034 \begin_inset space \thinspace{}
20040 \begin_layout Description
20042 \begin_inset space ~
20045 rows adds space between the current and the following row.
20046 If the table is a formal table LyX will insert as default 0.5
20047 \begin_inset space \thinspace{}
20051 For normal tables the inserted space will unfortunately destroy the vertical
20052 table lines as in the following table:
20053 \begin_inset VSpace medskip
20057 \begin_inset Newline newline
20061 \begin_inset space \hspace*{}
20066 \begin_inset space \hfill{}
20070 \begin_inset Tabular
20071 <lyxtabular version="3" rows="3" columns="1">
20072 <features rotate="0" tabularvalignment="middle">
20073 <column alignment="center" valignment="top" width="0">
20075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20078 \begin_layout Plain Layout
20085 <row interlinespace="3mm">
20086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20089 \begin_layout Plain Layout
20090 \begin_inset Formula $\downarrow$
20094 \begin_inset space \thinspace{}
20097 mm space between row
20098 \begin_inset Formula $\downarrow$
20108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20111 \begin_layout Plain Layout
20112 \begin_inset Formula $\uparrow$
20116 \begin_inset space \thinspace{}
20119 mm space between row
20120 \begin_inset Formula $\uparrow$
20134 \begin_inset space \hfill{}
20138 \begin_inset space \hspace*{}
20143 \begin_inset VSpace medskip
20147 \begin_inset Newline newline
20150 So inserting space between rows for normal tables is only useful when you
20151 don't have vertical lines.
20154 \begin_layout Standard
20155 \begin_inset VSpace bigskip
20158 When you want to add extra height to all cells of all tables, you can do
20159 this with the following preamble lines:
20162 \begin_layout Standard
20167 @ifundefined{extrarowheight}
20168 \begin_inset Newline newline
20172 \begin_inset Phantom HPhantom
20175 \begin_layout Plain Layout
20178 \begin_inset space ~
20188 usepackage{array}}{}
20189 \begin_inset Newline newline
20196 extrarowheight}{height}
20199 \begin_layout Standard
20200 But this has the disadvantage that the cell texts are no longer exactly
20201 vertically centered.
20206 will be loaded automatically by LyX when you use self defined table formats.
20207 To avoid that it being loaded twice the command
20213 is used in the above command.)
20216 \begin_layout Standard
20217 If you are using font sizes larger than the normal size, the table borders
20218 are often too close to the letters.
20219 This can be corrected by inserting the command
20225 in TeX-Code at the beginning of a table row.
20227 \begin_inset space ~
20231 \begin_inset CommandInset ref
20233 reference "tab:Vertical-alignment-of"
20237 illustrates the effect.
20240 \begin_layout Standard
20242 \begin_inset Float table
20248 \begin_layout Plain Layout
20249 \begin_inset Caption Standard
20251 \begin_layout Plain Layout
20252 \begin_inset CommandInset label
20254 name "tab:Vertical-alignment-of"
20258 Vertical alignment of text with large font sizes.
20266 \begin_layout Plain Layout
20267 \begin_inset space \hfill{}
20271 \begin_inset Float table
20276 \begin_layout Plain Layout
20277 \begin_inset Caption Standard
20279 \begin_layout Plain Layout
20288 \begin_layout Plain Layout
20291 \begin_inset Tabular
20292 <lyxtabular version="3" rows="6" columns="1">
20293 <features rotate="0" tabularvalignment="middle">
20294 <column alignment="left" valignment="top" width="0">
20296 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20299 \begin_layout Plain Layout
20307 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20310 \begin_layout Plain Layout
20320 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20323 \begin_layout Plain Layout
20333 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20336 \begin_layout Plain Layout
20346 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20349 \begin_layout Plain Layout
20359 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20362 \begin_layout Plain Layout
20381 \begin_inset space \hfill{}
20385 \begin_inset Float table
20390 \begin_layout Plain Layout
20391 \begin_inset Caption Standard
20393 \begin_layout Plain Layout
20394 Table using the command
20408 \begin_layout Plain Layout
20411 \begin_inset Tabular
20412 <lyxtabular version="3" rows="6" columns="1">
20413 <features rotate="0" tabularvalignment="middle">
20414 <column alignment="left" valignment="top" width="0">
20416 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20419 \begin_layout Plain Layout
20427 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20430 \begin_layout Plain Layout
20436 \begin_layout Plain Layout
20452 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20455 \begin_layout Plain Layout
20461 \begin_layout Plain Layout
20477 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20480 \begin_layout Plain Layout
20486 \begin_layout Plain Layout
20502 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20505 \begin_layout Plain Layout
20511 \begin_layout Plain Layout
20527 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20530 \begin_layout Plain Layout
20536 \begin_layout Plain Layout
20563 \begin_inset space \hfill{}
20574 \begin_layout Subsection
20575 Special Cell Alignment
20576 \begin_inset CommandInset label
20578 name "sub:Special-Cell-Alignment"
20583 \begin_inset Index idx
20586 \begin_layout Plain Layout
20587 Table Customization ! Special Cell Alignment
20595 \begin_layout Standard
20596 Sometimes it looks better when the cell entries of a column are aligned
20597 with a special character, e.
20598 \begin_inset space \thinspace{}
20602 \begin_inset space \space{}
20605 with the decimal separator as in Table
20606 \begin_inset space ~
20610 \begin_inset CommandInset ref
20612 reference "tab:Table-cells-align"
20617 This alignment is achieved by setting the cursor into the column and then
20618 either pressing the toolbar button
20621 arg "inset-modify tabular align-decimal"
20624 or setting the alignment in the table settings to
20627 \begin_inset space ~
20631 \begin_inset space ~
20637 The alignment character can be a character of your choice and is specified
20638 in the table settings.
20641 \begin_layout Standard
20642 \begin_inset Float table
20648 \begin_layout Plain Layout
20649 \begin_inset Caption Standard
20651 \begin_layout Plain Layout
20652 \begin_inset CommandInset label
20654 name "tab:Table-cells-align"
20658 Table cells of a column aligned with the decimal separator.
20666 \begin_layout Plain Layout
20668 \begin_inset Tabular
20669 <lyxtabular version="3" rows="4" columns="1">
20670 <features rotate="0" booktabs="true" tabularvalignment="middle">
20671 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20676 \begin_layout Plain Layout
20684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20687 \begin_layout Plain Layout
20695 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20698 \begin_layout Plain Layout
20706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20709 \begin_layout Plain Layout
20728 \begin_layout Standard
20729 \begin_inset Float table
20735 \begin_layout Plain Layout
20736 \begin_inset Caption Standard
20738 \begin_layout Plain Layout
20739 \begin_inset CommandInset label
20741 name "tab:Table-align-operator"
20745 Table cells of a column aligned with the operators.
20753 \begin_layout Plain Layout
20755 \begin_inset Tabular
20756 <lyxtabular version="3" rows="4" columns="2">
20757 <features rotate="0" booktabs="true" tabularvalignment="middle">
20758 <column alignment="right" valignment="top" width="0pt">
20759 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20761 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20764 \begin_layout Plain Layout
20770 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20773 \begin_layout Plain Layout
20781 <cell alignment="center" valignment="top" usebox="none">
20784 \begin_layout Plain Layout
20785 \begin_inset Formula $12\,+$
20793 <cell alignment="center" valignment="top" usebox="none">
20796 \begin_layout Plain Layout
20797 \begin_inset Formula $\,6$
20807 <cell alignment="center" valignment="top" usebox="none">
20810 \begin_layout Plain Layout
20811 \begin_inset Formula $0\,-$
20819 <cell alignment="center" valignment="top" usebox="none">
20822 \begin_layout Plain Layout
20823 \begin_inset Formula $\,68$
20833 <cell alignment="center" valignment="top" usebox="none">
20836 \begin_layout Plain Layout
20837 \begin_inset Formula $-123\,/$
20845 <cell alignment="center" valignment="top" usebox="none">
20848 \begin_layout Plain Layout
20849 \begin_inset Formula $\,0$
20870 \begin_layout Standard
20871 For alignments at characters in formulas this method does not work because
20872 the field to specify the alignment character does not allow formulas.
20873 In this case one need to use the method from Table
20874 \begin_inset space ~
20878 \begin_inset CommandInset ref
20880 reference "tab:Table-align-operator"
20885 This table was created with a 4×2 table.
20886 The heading is a centered multicolumn.
20887 The first column is right-aligned and contains the first part including
20889 The second column is left aligned and contains the rest.
20890 A small space was added at the beginning of each cell of the second column
20891 to get the space that is usually around operators.
20892 To omit the space that is normally between two table columns, the following
20893 LaTeX-argument was used for the second column:
20896 \begin_layout Standard
20902 \begin_layout Standard
20904 \begin_inset space ~
20908 \begin_inset CommandInset ref
20910 reference "tab:Several-table-cell"
20914 shows some example alignments.
20915 For the alignment with the relation sign, a small space was added like
20916 for the second column of Table
20917 \begin_inset space ~
20921 \begin_inset CommandInset ref
20923 reference "tab:Table-align-operator"
20930 \begin_layout Standard
20931 \begin_inset Float table
20937 \begin_layout Plain Layout
20938 \begin_inset Caption Standard
20940 \begin_layout Plain Layout
20941 \begin_inset CommandInset label
20943 name "tab:Several-table-cell"
20947 Several table cell alignments.
20955 \begin_layout Plain Layout
20957 \begin_inset Tabular
20958 <lyxtabular version="3" rows="4" columns="6">
20959 <features rotate="0" tabularvalignment="middle">
20960 <column alignment="right" valignment="top" width="0">
20961 <column alignment="left" valignment="top" width="0" special="@{}l">
20962 <column alignment="right" valignment="top" width="0">
20963 <column alignment="left" valignment="top" width="0" special="@{}l">
20964 <column alignment="right" valignment="top" width="0">
20965 <column alignment="left" valignment="top" width="0" special="@{}l">
20967 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20970 \begin_layout Plain Layout
20976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20979 \begin_layout Plain Layout
20985 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20988 \begin_layout Plain Layout
20994 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20997 \begin_layout Plain Layout
21003 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21006 \begin_layout Plain Layout
21012 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21015 \begin_layout Plain Layout
21023 <cell alignment="center" valignment="top" usebox="none">
21026 \begin_layout Plain Layout
21032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21035 \begin_layout Plain Layout
21037 \begin_inset space \thinspace{}
21045 <cell alignment="center" valignment="top" usebox="none">
21048 \begin_layout Plain Layout
21049 \begin_inset Formula $10\cdot$
21057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21060 \begin_layout Plain Layout
21061 \begin_inset Formula $10^{\mbox{-}17}$
21069 <cell alignment="center" valignment="top" usebox="none">
21072 \begin_layout Plain Layout
21073 \begin_inset Formula $\Gamma(t)\propto$
21081 <cell alignment="center" valignment="top" usebox="none">
21084 \begin_layout Plain Layout
21085 \begin_inset Formula $\:\Upsilon(t)$
21095 <cell alignment="center" valignment="top" usebox="none">
21098 \begin_layout Plain Layout
21104 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21107 \begin_layout Plain Layout
21109 \begin_inset space \thinspace{}
21117 <cell alignment="center" valignment="top" usebox="none">
21120 \begin_layout Plain Layout
21121 \begin_inset Formula $5.78\cdot$
21129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21132 \begin_layout Plain Layout
21133 \begin_inset Formula $10^{7}$
21141 <cell alignment="center" valignment="top" usebox="none">
21144 \begin_layout Plain Layout
21145 \begin_inset Formula $A\ne$
21153 <cell alignment="center" valignment="top" usebox="none">
21156 \begin_layout Plain Layout
21157 \begin_inset Formula $\: B_{\mathrm{red}}$
21167 <cell alignment="center" valignment="top" usebox="none">
21170 \begin_layout Plain Layout
21176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21179 \begin_layout Plain Layout
21181 \begin_inset space \thinspace{}
21189 <cell alignment="center" valignment="top" usebox="none">
21192 \begin_layout Plain Layout
21194 \begin_inset Formula $33.5\cdot$
21202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21205 \begin_layout Plain Layout
21206 \begin_inset Formula $10^{4}$
21214 <cell alignment="center" valignment="top" usebox="none">
21217 \begin_layout Plain Layout
21218 \begin_inset Formula $\sin(\alpha)\ge$
21226 <cell alignment="center" valignment="top" usebox="none">
21229 \begin_layout Plain Layout
21230 \begin_inset Formula $\:\sin(\beta)$
21251 \begin_layout Subsection
21252 Customized Cell/Column Format
21253 \begin_inset CommandInset label
21255 name "sub:Customized-Format"
21260 \begin_inset Index idx
21263 \begin_layout Plain Layout
21264 Table Customization ! Cell/Column Format
21272 \begin_layout Standard
21273 Calculating the required width for normal columns as described in section
21274 \begin_inset space ~
21278 \begin_inset CommandInset ref
21280 reference "sec:Table-Width-Calculation"
21284 or for spanned columns as described in section
21285 \begin_inset space ~
21289 \begin_inset CommandInset ref
21291 reference "sub:Multicolumn-Calculations"
21295 is very annoying if you have several tables where a calculation is necessary.
21296 To make life easier, you can define a cell/column format in the preamble,
21297 that can be used in all tables of the document.
21298 The format is defined with the command
21301 \begin_layout Standard
21306 newcolumntype{name of format}[number of arguments]{commands}
21309 \begin_layout Standard
21310 The format name may only consist of one letter.
21335 are predefined and cannot be used.
21336 But all letters are allowed as capitals.
21339 \begin_layout Standard
21340 \begin_inset VSpace medskip
21346 \begin_layout Standard
21347 For vertically and horizontally centered multicolumn cells with a fixed
21348 width you can define the cell format
21351 \begin_layout Standard
21356 newcolumntype{M}[1]{>{
21363 \begin_layout Standard
21370 avoids the problem of hyphenating the first word, as described in section
21371 \begin_inset space ~
21375 \begin_inset CommandInset ref
21377 reference "sub:Multiple-Lines-in"
21382 Now you can simply enter
21385 \begin_layout Standard
21391 \begin_layout Standard
21396 in the table dialog to create a multicolumn.
21399 \begin_layout Standard
21400 \begin_inset VSpace bigskip
21406 \begin_layout Standard
21407 For cells spanned by a multicolumn cell, you can define the format
21410 \begin_layout Standard
21415 newcolumntype{S}[2]{>{
21420 \begin_inset Newline newline
21424 \begin_inset Phantom HPhantom
21427 \begin_layout Plain Layout
21441 arrayrulewidth)*(1-#2))/#2}}
21444 \begin_layout Standard
21445 This format uses equation
21446 \begin_inset CommandInset ref
21452 to calculate the required width so that each spanned cell has the same
21456 \begin_layout Standard
21460 \begin_layout Standard
21463 S{width of multicolumn cell}{number of spanned columns}
21466 \begin_layout Standard
21467 as LaTeX-argument of the column.
21470 \begin_layout Standard
21471 \begin_inset VSpace bigskip
21477 \begin_layout Standard
21478 For colored columns, you can define
21481 \begin_layout Standard
21486 newcolumntype{K}[1]{>{
21493 \begin_layout Standard
21495 \begin_inset Quotes eld
21499 \begin_inset Quotes erd
21502 at the end creates a column with a flexible width whose text is horizontally
21507 \begin_layout Standard
21513 \begin_layout Standard
21517 \begin_layout Standard
21518 \begin_inset VSpace bigskip
21524 \begin_layout Standard
21526 \begin_inset space ~
21530 \begin_inset CommandInset ref
21532 reference "tab:Table-using-user-defined"
21536 use the LaTeX-arguments
21539 \begin_layout Standard
21545 \begin_layout Standard
21546 for the first column and the multicolumn,
21549 \begin_layout Standard
21555 \begin_layout Standard
21556 for the last column, and
21559 \begin_layout Standard
21565 \begin_layout Standard
21566 for the cells in the second column.
21569 \begin_layout Standard
21570 \begin_inset Float table
21576 \begin_layout Plain Layout
21577 \begin_inset Caption Standard
21579 \begin_layout Plain Layout
21580 \begin_inset CommandInset label
21582 name "tab:Table-using-user-defined"
21586 Table using user-defined table formats
21594 \begin_layout Plain Layout
21596 \begin_inset Tabular
21597 <lyxtabular version="3" rows="3" columns="4">
21598 <features rotate="0" tabularvalignment="middle">
21599 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21600 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
21601 <column alignment="center" valignment="middle" width="0">
21602 <column alignment="center" valignment="middle" width="0" special="K{red}">
21604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21607 \begin_layout Plain Layout
21608 verylongtablecellword
21613 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21616 \begin_layout Plain Layout
21617 multiple lines multicolumn
21622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21625 \begin_layout Plain Layout
21631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21634 \begin_layout Plain Layout
21642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21645 \begin_layout Plain Layout
21651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21654 \begin_layout Plain Layout
21660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21663 \begin_layout Plain Layout
21669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21672 \begin_layout Plain Layout
21680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21683 \begin_layout Plain Layout
21689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21692 \begin_layout Plain Layout
21698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21701 \begin_layout Plain Layout
21707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21710 \begin_layout Plain Layout
21729 \begin_layout Subsection
21731 \begin_inset CommandInset label
21733 name "sub:Line-Thickness"
21738 \begin_inset Index idx
21741 \begin_layout Plain Layout
21742 Table Customization ! Line Thickness
21750 \begin_layout Standard
21751 The line thickness for all lines in a table can be adjusted with the length
21759 To set for example a line thickness of 1.5
21760 \begin_inset space \thinspace{}
21764 \begin_inset space ~
21768 \begin_inset CommandInset ref
21770 reference "tab:Table-with-1.5"
21774 , insert the command
21777 \begin_layout Standard
21784 arrayrulewidth}{1.5pt}
21787 \begin_layout Standard
21788 in TeX-Code before the table or table float.
21789 The changed thickness is valid for all subsequent tables.
21790 To use the default value again, set
21797 \begin_inset space \thinspace{}
21800 pt in TeX-Code after the table or table float.
21803 \begin_layout Standard
21807 \begin_layout Plain Layout
21813 arrayrulewidth}{1.5pt}
21819 \begin_inset Float table
21824 \begin_layout Plain Layout
21825 \begin_inset Caption Standard
21827 \begin_layout Plain Layout
21828 \begin_inset CommandInset label
21830 name "tab:Table-with-1.5"
21835 \begin_inset space \thinspace{}
21846 \begin_layout Plain Layout
21848 \begin_inset Tabular
21849 <lyxtabular version="3" rows="3" columns="3">
21850 <features rotate="0" tabularvalignment="middle">
21851 <column alignment="center" valignment="top" width="0">
21852 <column alignment="center" valignment="top" width="0">
21853 <column alignment="center" valignment="top" width="0">
21855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21858 \begin_layout Plain Layout
21864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21867 \begin_layout Plain Layout
21873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21876 \begin_layout Plain Layout
21884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21887 \begin_layout Plain Layout
21893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21896 \begin_layout Plain Layout
21902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21905 \begin_layout Plain Layout
21913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21916 \begin_layout Plain Layout
21922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21925 \begin_layout Plain Layout
21931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21934 \begin_layout Plain Layout
21954 \begin_layout Plain Layout
21960 arrayrulewidth}{0.4pt}
21968 \begin_layout Standard
21969 \begin_inset VSpace bigskip
21972 To set the line thickness to 1.5
21973 \begin_inset space \thinspace{}
21976 pt only for horizontal lines, as in Table
21977 \begin_inset space ~
21981 \begin_inset CommandInset ref
21983 reference "tab:Table-with-horizontal"
21987 , insert these commands in TeX-Code before the table or table float:
21990 \begin_layout Standard
22000 \begin_inset Newline newline
22008 \begin_inset Newline newline
22017 arrayrulewidth 1.5pt}
22018 \begin_inset Newline newline
22029 arrayrulewidth 0.4pt}}
22032 \begin_layout Standard
22033 To return to the default line thickness, insert this command in TeX-Code
22034 after the table or table float:
22037 \begin_layout Standard
22049 \begin_layout Standard
22053 \begin_layout Plain Layout
22064 \begin_layout Plain Layout
22073 \begin_layout Plain Layout
22081 arrayrulewidth 1.5pt}
22084 \begin_layout Plain Layout
22094 arrayrulewidth 0.4pt}}
22100 \begin_inset Float table
22105 \begin_layout Plain Layout
22106 \begin_inset Caption Standard
22108 \begin_layout Plain Layout
22109 \begin_inset CommandInset label
22111 name "tab:Table-with-horizontal"
22116 \begin_inset space \thinspace{}
22119 pt thick horizontal lines
22127 \begin_layout Plain Layout
22129 \begin_inset Tabular
22130 <lyxtabular version="3" rows="3" columns="3">
22131 <features rotate="0" tabularvalignment="middle">
22132 <column alignment="center" valignment="top" width="0">
22133 <column alignment="center" valignment="top" width="0">
22134 <column alignment="center" valignment="top" width="0">
22136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22139 \begin_layout Plain Layout
22145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22148 \begin_layout Plain Layout
22154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22157 \begin_layout Plain Layout
22165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22168 \begin_layout Plain Layout
22174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22177 \begin_layout Plain Layout
22183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22186 \begin_layout Plain Layout
22194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22197 \begin_layout Plain Layout
22203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22206 \begin_layout Plain Layout
22212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22215 \begin_layout Plain Layout
22235 \begin_layout Plain Layout
22251 \begin_layout Standard
22252 \begin_inset VSpace bigskip
22255 To set the line thickness to 1.5
22256 \begin_inset space \thinspace{}
22259 pt only for vertical lines, create the following column format in the document
22260 preamble, according to the description in section
22261 \begin_inset space ~
22265 \begin_inset CommandInset ref
22267 reference "sub:Customized-Format"
22274 \begin_layout Standard
22279 newcolumntype{V}{!{
22281 vrule width 1.5pt}}
22284 \begin_layout Standard
22286 \begin_inset space ~
22290 \begin_inset CommandInset ref
22292 reference "tab:Table-with-vertical"
22299 \begin_layout Standard
22305 \begin_layout Standard
22306 was used for the last column and
22309 \begin_layout Standard
22315 \begin_layout Standard
22316 for the other columns.
22319 \begin_layout Standard
22320 \begin_inset Float table
22325 \begin_layout Plain Layout
22326 \begin_inset Caption Standard
22328 \begin_layout Plain Layout
22329 \begin_inset CommandInset label
22331 name "tab:Table-with-vertical"
22336 \begin_inset space \thinspace{}
22339 pt thick vertical lines
22347 \begin_layout Plain Layout
22349 \begin_inset Tabular
22350 <lyxtabular version="3" rows="3" columns="3">
22351 <features rotate="0" tabularvalignment="middle">
22352 <column alignment="center" valignment="top" width="0" special="Vc">
22353 <column alignment="center" valignment="top" width="0" special="Vc">
22354 <column alignment="center" valignment="top" width="0" special="VcV">
22356 <cell alignment="center" valignment="top" topline="true" usebox="none">
22359 \begin_layout Plain Layout
22365 <cell alignment="center" valignment="top" topline="true" usebox="none">
22368 \begin_layout Plain Layout
22374 <cell alignment="center" valignment="top" topline="true" usebox="none">
22377 \begin_layout Plain Layout
22385 <cell alignment="center" valignment="top" topline="true" usebox="none">
22388 \begin_layout Plain Layout
22394 <cell alignment="center" valignment="top" topline="true" usebox="none">
22397 \begin_layout Plain Layout
22403 <cell alignment="center" valignment="top" topline="true" usebox="none">
22406 \begin_layout Plain Layout
22414 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22417 \begin_layout Plain Layout
22423 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22426 \begin_layout Plain Layout
22432 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22435 \begin_layout Plain Layout
22454 \begin_layout Subsection
22456 \begin_inset Index idx
22459 \begin_layout Plain Layout
22460 Table Customization ! Dashed Lines
22468 \begin_layout Standard
22472 \begin_layout Plain Layout
22482 \begin_inset Note Note
22485 \begin_layout Plain Layout
22486 The following section will only be displayed when the LaTeX-package
22498 \begin_layout Standard
22499 \begin_inset Float table
22505 \begin_layout Plain Layout
22506 \begin_inset Caption Standard
22508 \begin_layout Plain Layout
22509 \begin_inset CommandInset label
22511 name "tab:Table-with-dashed"
22515 Table with dashed lines
22523 \begin_layout Plain Layout
22525 \begin_inset Tabular
22526 <lyxtabular version="3" rows="5" columns="5">
22527 <features rotate="0" tabularvalignment="middle">
22528 <column alignment="center" valignment="top" width="0">
22529 <column alignment="center" valignment="top" width="0">
22530 <column alignment="center" valignment="top" width="0" special=":c">
22531 <column alignment="center" valignment="top" width="0">
22532 <column alignment="center" valignment="top" width="0">
22534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22537 \begin_layout Plain Layout
22543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22546 \begin_layout Plain Layout
22552 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22555 \begin_layout Plain Layout
22561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22564 \begin_layout Plain Layout
22570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22573 \begin_layout Plain Layout
22581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22584 \begin_layout Plain Layout
22590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22593 \begin_layout Plain Layout
22599 <cell alignment="center" valignment="top" topline="true" usebox="none">
22602 \begin_layout Plain Layout
22608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22611 \begin_layout Plain Layout
22617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22620 \begin_layout Plain Layout
22628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22631 \begin_layout Plain Layout
22635 \begin_layout Plain Layout
22649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22652 \begin_layout Plain Layout
22658 <cell alignment="center" valignment="top" usebox="none">
22661 \begin_layout Plain Layout
22667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22670 \begin_layout Plain Layout
22676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22679 \begin_layout Plain Layout
22687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22690 \begin_layout Plain Layout
22694 \begin_layout Plain Layout
22708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22711 \begin_layout Plain Layout
22717 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22720 \begin_layout Plain Layout
22726 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22729 \begin_layout Plain Layout
22735 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22738 \begin_layout Plain Layout
22746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22749 \begin_layout Plain Layout
22755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22758 \begin_layout Plain Layout
22764 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22767 \begin_layout Plain Layout
22773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22776 \begin_layout Plain Layout
22782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22785 \begin_layout Plain Layout
22804 \begin_layout Standard
22805 LyX does not natively support dashed lines, so you have to use TeX-Code.
22806 As a prerequisite the LaTeX-package
22811 \begin_inset Index idx
22814 \begin_layout Plain Layout
22815 LaTeX-packages ! arydshln
22820 must be loaded in the document preamble with the command
22823 \begin_layout Standard
22828 usepackage{arydshln}
22831 \begin_layout Standard
22832 To make a vertical line dashed, enter the colon
22833 \begin_inset Quotes eld
22837 \begin_inset Quotes erd
22840 together with the character for the horizontal alignment as LaTeX-argument
22841 in the table cell dialog.
22844 \begin_layout Standard
22845 For a horizontal dashed line add the command
22848 \begin_layout Standard
22856 \begin_layout Standard
22857 in TeX-Code as first element of the first cell in the table row.
22860 \begin_layout Standard
22861 For dashed multicolumn lines use the command
22864 \begin_layout Standard
22869 cdashline{line number
22874 \begin_layout Standard
22875 in TeX-Code as the first element of the first cell in the table row.
22876 If you have for example a multicolumn spanning columns 2 to 4 and you want
22877 to have a dashed line above, add the command
22880 \begin_layout Standard
22888 \begin_layout Standard
22889 as the first element of the first cell in the row of the multicolumn.
22892 \begin_layout Standard
22893 \begin_inset VSpace bigskip
22899 \begin_layout Standard
22901 \begin_inset space ~
22905 \begin_inset CommandInset ref
22907 reference "tab:Table-with-dashed"
22912 \begin_inset Quotes eld
22920 \begin_inset Quotes erd
22923 as LaTeX-argument of the third column.
22924 The TeX-Code command
22930 was inserted in the first cell of the third row and the TeX-Code command
22931 \begin_inset Newline newline
22940 was inserted in the first cell of the fourth row.
22943 \begin_layout Standard
22944 \begin_inset VSpace bigskip
22950 \begin_layout Standard
22951 Tables with dashed lines can also be colored as shown by Table
22952 \begin_inset space ~
22956 \begin_inset CommandInset ref
22958 reference "tab:Colored-table-with"
22965 \begin_layout Standard
22969 \begin_layout Plain Layout
22975 arrayrulewidth}{1pt}
22981 \begin_inset Note Note
22984 \begin_layout Plain Layout
22985 thicker lines for better visualization of the line color
22993 \begin_layout Standard
22997 \begin_layout Plain Layout
23001 dashgapcolor{green}
23007 \begin_inset Note Note
23010 \begin_layout Plain Layout
23011 color gaps between dashes green
23019 \begin_layout Standard
23023 \begin_layout Plain Layout
23034 \begin_layout Plain Layout
23043 \begin_layout Plain Layout
23047 arrayrulecolor{red}
23051 arrayrulecolor{black}}
23057 \begin_inset Note Note
23060 \begin_layout Plain Layout
23061 color horizontal, dashed lines red
23069 \begin_layout Standard
23073 \begin_layout Plain Layout
23084 \begin_layout Plain Layout
23093 \begin_layout Plain Layout
23097 arrayrulecolor{yellow}
23101 arrayrulecolor{black}}
23107 \begin_inset Note Note
23110 \begin_layout Plain Layout
23111 color partial horizontal, dashed lines yellow
23119 \begin_layout Standard
23120 \begin_inset Float table
23126 \begin_layout Plain Layout
23127 \begin_inset Caption Standard
23129 \begin_layout Plain Layout
23130 \begin_inset CommandInset label
23132 name "tab:Colored-table-with"
23136 Colored table with dashed lines
23144 \begin_layout Plain Layout
23146 \begin_inset Tabular
23147 <lyxtabular version="3" rows="5" columns="5">
23148 <features rotate="0" tabularvalignment="middle">
23149 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23150 <column alignment="center" valignment="top" width="0pt">
23151 <column alignment="center" valignment="top" width="0pt" special=":c">
23152 <column alignment="center" valignment="top" width="0">
23153 <column alignment="center" valignment="top" width="0">
23155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23158 \begin_layout Plain Layout
23164 <cell alignment="center" valignment="top" topline="true" usebox="none">
23167 \begin_layout Plain Layout
23173 <cell alignment="center" valignment="top" topline="true" usebox="none">
23176 \begin_layout Plain Layout
23182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23185 \begin_layout Plain Layout
23191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23194 \begin_layout Plain Layout
23202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23205 \begin_layout Plain Layout
23211 <cell alignment="center" valignment="top" topline="true" usebox="none">
23214 \begin_layout Plain Layout
23220 <cell alignment="center" valignment="top" topline="true" usebox="none">
23223 \begin_layout Plain Layout
23229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23232 \begin_layout Plain Layout
23238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23241 \begin_layout Plain Layout
23249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23252 \begin_layout Plain Layout
23256 \begin_layout Plain Layout
23269 \begin_layout Plain Layout
23283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23286 \begin_layout Plain Layout
23292 <cell alignment="center" valignment="top" usebox="none">
23295 \begin_layout Plain Layout
23301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23304 \begin_layout Plain Layout
23310 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23313 \begin_layout Plain Layout
23321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23324 \begin_layout Plain Layout
23328 \begin_layout Plain Layout
23342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23345 \begin_layout Plain Layout
23351 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23354 \begin_layout Plain Layout
23360 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23363 \begin_layout Plain Layout
23369 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23372 \begin_layout Plain Layout
23380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23383 \begin_layout Plain Layout
23389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23392 \begin_layout Plain Layout
23398 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23401 \begin_layout Plain Layout
23407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23410 \begin_layout Plain Layout
23416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23419 \begin_layout Plain Layout
23423 \begin_layout Plain Layout
23450 \begin_layout Standard
23454 \begin_layout Plain Layout
23468 \begin_inset Note Note
23471 \begin_layout Plain Layout
23480 \begin_layout Standard
23484 \begin_layout Plain Layout
23498 \begin_inset Note Note
23501 \begin_layout Plain Layout
23510 \begin_layout Standard
23514 \begin_layout Plain Layout
23524 \begin_inset Note Note
23527 \begin_layout Plain Layout
23536 \begin_layout Standard
23540 \begin_layout Plain Layout
23546 arrayrulewidth}{0.4pt}
23552 \begin_inset Note Note
23555 \begin_layout Plain Layout
23564 \begin_layout Standard
23565 The coloring of lines, columns and lines works as decribed in section
23566 \begin_inset space ~
23570 \begin_inset CommandInset ref
23572 reference "sec:Colored-Tables"
23577 Coloring horizontal lines works analogically as described there as well,
23578 one only needs to replace in the commands
23602 ; so one uses the command
23605 \begin_layout Standard
23615 \begin_inset Newline newline
23623 \begin_inset Newline newline
23627 \begin_inset Phantom HPhantom
23630 \begin_layout Plain Layout
23631 \begin_inset space ~
23641 arrayrulecolor{red}
23645 arrayrulecolor{black}}
23648 \begin_layout Standard
23658 \begin_layout Standard
23668 \begin_inset Newline newline
23676 \begin_inset Newline newline
23680 \begin_inset Phantom HPhantom
23683 \begin_layout Plain Layout
23684 \begin_inset space ~
23694 arrayrulecolor{red}
23698 arrayrulecolor{black}}
23701 \begin_layout Standard
23702 To get back the black line color, one needs to insert the following commands
23703 as TeX-Code behind the table:
23706 \begin_layout Standard
23714 \begin_layout Standard
23726 \begin_layout Standard
23734 \begin_layout Standard
23746 \begin_layout Standard
23747 To color the gaps between the dashes the command
23750 \begin_layout Standard
23755 dashgapcolor{color}
23758 \begin_layout Standard
23759 can be used in front of a table as TeX-Code.
23760 color is hereby the name of a defined color.
23764 \begin_layout Standard
23772 \begin_layout Standard
23773 unsets the changes made by
23782 \begin_layout Standard
23783 \begin_inset Note Greyedout
23786 \begin_layout Plain Layout
23792 : If there are multiple commands in a cell, the command of
23796 needs to be the first one in the cell.
23802 \begin_inset space ~
23806 \begin_inset CommandInset ref
23808 reference "tab:Colored-table-with"
23832 \begin_layout Standard
23833 \begin_inset Note Greyedout
23836 \begin_layout Plain Layout
23846 must be loaded in the document preamble before the LaTeX-package
23851 \begin_inset Index idx
23854 \begin_layout Plain Layout
23855 LaTeX-packages ! colortbl
23868 \begin_layout Standard
23872 \begin_layout Plain Layout
23882 \begin_inset Note Note
23885 \begin_layout Plain Layout
23886 The following will be displayed when the LaTeX-package
23898 \begin_layout Standard
23899 You need to install the package
23903 to see the content of this section in the output.
23906 \begin_layout Standard
23910 \begin_layout Plain Layout
23922 \begin_layout Standard
23923 For more information about dashed lines see the documentation of
23928 \begin_inset CommandInset citation
23937 \begin_layout Chapter
23939 \begin_inset CommandInset label
23946 \begin_inset Index idx
23949 \begin_layout Plain Layout
23958 \begin_layout Section
23960 \begin_inset CommandInset label
23962 name "sec:FloatIntroduction"
23967 \begin_inset Index idx
23970 \begin_layout Plain Layout
23971 Floats ! Introduction
23979 \begin_layout Standard
23980 A float is a block of text associated with some sort of label, which doesn't
23981 have a fixed location.
23983 \begin_inset Quotes eld
23987 \begin_inset Quotes erd
23990 forward or backward a page or two, to wherever it fits best.
23998 \begin_inset space ~
24003 are also floats because they can float to the next page when there are
24004 too many notes on the page.
24007 \begin_layout Standard
24008 Floats allow a high quality layout.
24009 Images and tables can be spread evenly among the pages to avoid white space
24010 and pages without text.
24011 As the floating often destroys the context between the text and the image/table
24012 , every float can be referenced in the text.
24013 Floats are therefore numbered.
24014 Referencing is described in section
24015 \begin_inset space ~
24019 \begin_inset CommandInset ref
24021 reference "sec:Referencing-Floats"
24028 \begin_layout Standard
24029 To insert a float, use the menu
24031 Insert\SpecialChar \menuseparator
24037 arg "float-insert figure"
24043 arg "float-insert table"
24051 inset, a box with a label.
24052 The label will automatically be translated to the document language in
24054 After the label you can insert the caption text.
24055 The image or table is inserted above or below the caption in a separate
24056 paragraph within the float.
24057 More about the caption placement is contained in section
24058 \begin_inset space ~
24062 \begin_inset CommandInset ref
24064 reference "sec:Caption-Placement"
24069 To keep your LyX-document readable, you can open and close the float box
24070 by left-clicking on the box label.
24071 A closed float box looks like this:
24072 \begin_inset Graphics
24073 filename clipart/floatQt4.png
24075 scaleBeforeRotation
24079 – a gray button with a red label.
24082 \begin_layout Standard
24083 It is recommended that you insert floats as separate standard paragraphs
24084 to avoid possible LaTeX-errors that can occur when the surrounding text
24085 is specially formatted.
24088 \begin_layout Standard
24089 Existing figures or tables can be put into a float by highlighting them
24090 and then pressing the corresponding toolbar button for a new float.
24093 \begin_layout Section
24097 \begin_layout Standard
24098 Besides figure and table floats that are described in sections
24099 \begin_inset space ~
24103 \begin_inset CommandInset ref
24105 reference "sec:Figure-Floats"
24110 \begin_inset CommandInset ref
24112 reference "sec:Table-Floats"
24116 respectively, LyX offers the float types
24125 The latter are explained in sec.
24126 \begin_inset space \thinspace{}
24130 \begin_inset CommandInset ref
24132 reference "sec:Wrap-Floats"
24139 \begin_layout Subsection
24141 \begin_inset Index idx
24144 \begin_layout Plain Layout
24145 Floats ! Algorithms
24153 \begin_layout Standard
24154 \begin_inset Float algorithm
24160 \begin_layout Plain Layout
24161 \begin_inset Caption Standard
24163 \begin_layout Plain Layout
24164 \begin_inset CommandInset label
24166 name "alg:Example-Algorithm-float"
24170 Example Algorithm float
24178 \begin_layout LyX-Code
24180 \begin_inset Newline newline
24183 Sum:= Sum + A(I); /*comment*/
24184 \begin_inset Newline newline
24188 \begin_inset VSpace -4mm
24199 \begin_layout Standard
24200 This float type is inserted with the menu
24202 Insert\SpecialChar \menuseparator
24203 Float\SpecialChar \menuseparator
24207 It is used for program codes and descriptions of algorithms and can be
24208 seen as an alternative to program code listings that are explained in chapter
24209 \begin_inset space ~
24213 \begin_inset CommandInset ref
24215 reference "cha:Program-Code-Listings"
24220 A possible environment for algorithms is the
24224 , described in LyX's
24230 \begin_inset space ~
24234 \begin_inset CommandInset ref
24236 reference "alg:Example-Algorithm-float"
24240 is an example of an algorithm float where -4
24241 \begin_inset space \thinspace{}
24244 mm vertical space was added at the end of the float to have the bottom rule
24245 exactly below the last text line.
24248 \begin_layout Standard
24249 The float label is not automatically translated into the document language.
24250 If your document is not in English, you have to do this manually by adding
24251 the following line to the document preamble
24256 \begin_layout Standard
24261 floatname{algorithm}{your
24262 \begin_inset space ~
24268 \begin_layout Standard
24272 \begin_inset space ~
24278 \begin_inset Quotes eld
24286 \begin_inset Quotes erd
24292 \begin_layout Standard
24293 To insert the list of algorithms you can use the menu
24295 Insert\SpecialChar \menuseparator
24297 \begin_inset space \thinspace{}
24301 \begin_inset space \thinspace{}
24304 TOC\SpecialChar \menuseparator
24307 when your document has the same language as LyX's menu names.
24308 In other cases use this command in TeX-Code instead:
24311 \begin_layout Standard
24316 listof{algorithm}{your
24317 \begin_inset space ~
24323 \begin_layout Standard
24327 \begin_inset space ~
24333 \begin_inset Quotes eld
24341 \begin_inset Quotes erd
24347 \begin_layout Standard
24348 Algorithm floats are not by default numbered in the scheme
24349 \begin_inset Quotes eld
24353 \begin_inset Quotes erd
24356 as is the case for table and figure floats in many document-classes.
24357 To number algorithm floats in the same scheme, add this command to your
24361 \begin_layout Standard
24366 numberwithin{algorithm}{chapter}
24369 \begin_layout Standard
24370 To be able to use the command
24379 \begin_inset space ~
24384 in the document settings the option
24387 \begin_inset space ~
24391 \begin_inset space ~
24395 \begin_inset space ~
24403 \begin_layout Section
24405 \begin_inset Index idx
24408 \begin_layout Plain Layout
24417 \begin_layout Standard
24418 Floats are usually numbered either independently from the sections the floats
24419 are in, or in the scheme
24420 \begin_inset Quotes eld
24424 \begin_inset Quotes erd
24428 \begin_inset Quotes eld
24432 \begin_inset Quotes erd
24436 This depends on the document class used.
24439 \begin_layout Standard
24440 To change section-independent numbering, you can use this command in the
24444 \begin_layout Standard
24456 \begin_layout Standard
24463 is the command that prints the table number.
24464 For figure floats, the command would be
24477 in the command above prints the table number as a small roman number.
24480 \begin_layout Standard
24481 To change the numbering scheme for example to
24482 \begin_inset Quotes eld
24486 \begin_inset Quotes erd
24489 , use this command in the preamble:
24492 \begin_layout Standard
24497 numberwithin{table}{subsection}
24500 \begin_layout Standard
24501 To be able to use the command
24510 \begin_inset space ~
24515 in the document settings the option
24518 \begin_inset space ~
24522 \begin_inset space ~
24526 \begin_inset space ~
24534 \begin_layout Standard
24535 Please also have a look at section
24536 \begin_inset space ~
24540 \begin_inset CommandInset ref
24542 reference "sub:Footnote-Numbering"
24546 for the details and important notes about the numbering commands.
24549 \begin_layout Section
24551 \begin_inset CommandInset label
24553 name "sec:Referencing-Floats"
24558 \begin_inset Index idx
24561 \begin_layout Plain Layout
24562 Floats ! References
24568 \begin_inset Index idx
24571 \begin_layout Plain Layout
24572 References ! to Floats
24580 \begin_layout Standard
24581 To reference a float, insert a label into its caption using the menu
24583 Insert\SpecialChar \menuseparator
24586 or the toolbar button
24593 A grey label box like this one:
24594 \begin_inset Graphics
24595 filename clipart/labelQt4.png
24597 scaleBeforeRotation
24601 will be inserted and the label window pops up asking for the label text.
24602 LyX offers as text the first words of the caption with a prefix.
24603 The prefix depends on the float type, e.
24604 \begin_inset space \thinspace{}
24608 \begin_inset space \space{}
24611 for figure floats the prefix will be "
24618 \begin_layout Standard
24619 The label is used as anchor and name for the reference.
24620 You can refer to the label using the menu
24622 Insert\SpecialChar \menuseparator
24625 or the toolbar button
24628 arg "dialog-show-new-inset ref"
24632 The cross-reference window appears showing all labels of the document.
24633 If you have multiple LyX-documents opened, choose the one you are working
24634 on from the drop-list at the top of the dialog.
24635 You can now sort the labels alphabetically and then choose one.
24636 A grey cross-reference box like this one:
24637 \begin_inset Graphics
24638 filename clipart/referenceQt4.png
24640 scaleBeforeRotation
24645 At the position of the cross-reference box the float number will appear
24649 \begin_layout Standard
24650 It is recommended that you use a protected space between the cross-reference
24651 name and its number to avoid line breaks between them.
24652 If a cross-reference refers to a non-existing label, you will see two question
24653 marks in the output instead of the reference.
24656 \begin_layout Standard
24657 You can change labels at any time by clicking on the label box.
24658 References to the changed label will automatically update their links to
24659 the new label text.
24662 \begin_layout Standard
24666 \begin_inset space ~
24670 \begin_inset space ~
24675 in the cross-reference window sets the cursor before the referred label.
24676 The button text changes then to Go
24677 \begin_inset space ~
24680 Back and you can use it to set the cursor back to the cross-reference.
24683 \begin_layout Subsection
24684 Cross-Reference Formats
24685 \begin_inset CommandInset label
24687 name "sub:Cross-Reference-Formats"
24692 \begin_inset Index idx
24695 \begin_layout Plain Layout
24696 References ! Formats
24704 \begin_layout Standard
24705 There are six varieties of cross-references:
24708 \begin_layout Description
24709 <reference>: prints the float number, this is the default:
24710 \begin_inset CommandInset ref
24712 reference "fig:Two-distorted-images"
24719 \begin_layout Description
24720 (<reference>): prints the float number within two parentheses, this is the
24721 style normally used to reference formulas, especially when the reference
24723 \begin_inset Quotes eld
24727 \begin_inset Quotes erd
24731 \begin_inset CommandInset ref
24740 \begin_layout Description
24741 <page>: prints the page number: Page
24742 \begin_inset space ~
24746 \begin_inset CommandInset ref
24747 LatexCommand pageref
24748 reference "fig:Two-distorted-images"
24755 \begin_layout Description
24757 \begin_inset space ~
24761 \begin_inset space ~
24764 <page>: prints the text "on page" and the page number:
24765 \begin_inset CommandInset ref
24766 LatexCommand vpageref
24767 reference "fig:Two-distorted-images"
24774 \begin_layout Description
24776 \begin_inset space ~
24780 \begin_inset space ~
24784 \begin_inset space ~
24787 <page>: prints the float number, the text "on page", and the page number:
24789 \begin_inset CommandInset ref
24791 reference "fig:Two-distorted-images"
24798 \begin_layout Description
24800 \begin_inset space ~
24803 reference: prints a self-defined cross-reference format.
24804 \begin_inset Newline newline
24808 \begin_inset Note Greyedout
24811 \begin_layout Plain Layout
24816 This feature is only available when you have the LaTeX-package
24825 \begin_inset Index idx
24828 \begin_layout Plain Layout
24829 LaTeX-packages ! prettyref
24835 \begin_inset Index idx
24838 \begin_layout Plain Layout
24839 LaTeX-packages ! refstyle
24850 \begin_inset Newline newline
24853 You can select which LaTeX-package should be used for this feature by setting
24856 Use refstyle (not prettyref) for cross-references
24860 Document\SpecialChar \menuseparator
24861 Settings\SpecialChar \menuseparator
24865 The format is specified by adding the command
24877 (refstyle) to the preamble of the document.
24878 For example redefining all references to figures (which have the label
24880 \begin_inset Quotes eld
24888 \begin_inset Quotes erd
24891 ) can be done with this command
24892 \begin_inset Newline newline
24899 newref{fig}{refcmd={Image on page
24904 \begin_inset Newline newline
24907 For more information about the format, have a look at the package documentations
24909 \begin_inset CommandInset citation
24911 key "prettyref,refstyle"
24918 \begin_layout Description
24920 \begin_inset space ~
24923 reference: prints the caption of the reference:
24924 \begin_inset CommandInset ref
24925 LatexCommand nameref
24926 reference "fig:Two-distorted-images"
24933 \begin_layout Standard
24938 will not print the page number if the label is on the previous, the same,
24941 \begin_inset space \thinspace{}
24945 \begin_inset space \space{}
24949 \begin_inset Quotes eld
24957 \begin_inset Quotes erd
24963 <reference> on page <page>
24965 will not print anything about the page if the label is on the same page.
24968 \begin_layout Standard
24969 The number and current page of the part of the document referred to in the
24970 output is automatically calculated by LaTeX.
24971 The varieties are adjusted in the field
24975 of the cross-reference window that appears when you click on the cross-referenc
24979 \begin_layout Standard
24980 \begin_inset Note Greyedout
24983 \begin_layout Plain Layout
24988 It is recommended to use the LaTeX-package
24993 \begin_inset Index idx
24996 \begin_layout Plain Layout
24997 LaTeX-packages ! refstyle
25007 \begin_inset Index idx
25010 \begin_layout Plain Layout
25011 LaTeX-packages ! prettyref
25016 does not know all of LyX's possible label shortcuts
25020 \begin_layout Plain Layout
25021 \begin_inset Quotes eld
25025 \begin_inset Quotes erd
25028 is for example LyX's shortcut for labels in figure captions.
25033 and is not internationalized.
25041 \begin_layout Standard
25042 \begin_inset Note Greyedout
25045 \begin_layout Plain Layout
25050 Due to a bug in the LaTeX-package
25054 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25055 languages that make the period character active (like French).
25056 For a workaround, see
25057 \begin_inset Newline newline
25061 \begin_inset CommandInset href
25063 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25075 \begin_layout Subsection
25076 Automatic Reference Naming
25077 \begin_inset Index idx
25080 \begin_layout Plain Layout
25081 References ! Automatic Reference Naming
25089 \begin_layout Standard
25095 \begin_inset Index idx
25098 \begin_layout Plain Layout
25099 LaTeX-packages ! hyperref
25104 , that is enabled in the
25112 dialog, provides a very useful feature that cross-references automatically
25113 include the name of the referenced floats (or text parts like
25118 So you will save having to write e.
25119 \begin_inset space \thinspace{}
25123 \begin_inset space \space{}
25127 \begin_inset Quotes eld
25131 \begin_inset Quotes erd
25134 before every reference to a figure.
25135 To use this feature, enable
25139 and insert this line to the LaTeX preamble:
25142 \begin_layout Standard
25158 \begin_layout Standard
25159 When you prefer other reference names than the default ones, for example
25160 you want instead of
25161 \begin_inset Quotes eld
25165 \begin_inset Quotes erd
25169 \begin_inset Quotes eld
25173 \begin_inset space \thinspace{}
25177 \begin_inset Quotes eld
25180 , you can redefine the name by inserting this in the preamble:
25183 \begin_layout Standard
25194 sectionautorefname}
25195 \begin_inset Newline newline
25199 \begin_inset Phantom HPhantom
25202 \begin_layout Plain Layout
25205 \begin_inset space ~
25218 \begin_layout Standard
25219 When you are using another document language than English, replace
25220 \begin_inset Newline newline
25235 , where *** is the name of the language used.
25238 \begin_layout Standard
25239 To get automatic names, but not for certain reference types, for example
25240 not for equations, use this preamble code:
25243 \begin_layout Standard
25254 equationautorefname}[1]{}}
25257 \begin_layout Standard
25258 More about this topic can be found in
25263 \begin_inset CommandInset citation
25272 \begin_layout Standard
25273 \begin_inset Note Greyedout
25276 \begin_layout Plain Layout
25281 Automatic reference naming cannot be used when you use cross-references
25285 \begin_inset space ~
25290 style, as described in section
25291 \begin_inset space ~
25295 \begin_inset CommandInset ref
25297 reference "sub:Cross-Reference-Formats"
25309 \begin_layout Standard
25314 manual is an example where automatic reference naming is used.
25317 \begin_layout Subsection
25319 \begin_inset CommandInset label
25321 name "sub:Reference-Position"
25326 \begin_inset Index idx
25329 \begin_layout Plain Layout
25330 References ! Reference Position
25338 \begin_layout Standard
25344 \begin_inset Index idx
25347 \begin_layout Plain Layout
25348 LaTeX-packages ! hyperref
25361 dialog to link cross-references in the output, you will see that clicking
25362 on an image float reference jumps to the image label.
25363 The caption will be the first text part on the screen, so that you cannot
25364 see the image without scrolling.
25365 This is because the reference link anchor is placed at the position of
25367 With the use of the package
25372 \begin_inset Index idx
25375 \begin_layout Plain Layout
25376 LaTeX-packages ! hypcap
25381 , which is part of the LaTeX-package
25386 \begin_inset Index idx
25389 \begin_layout Plain Layout
25390 LaTeX-packages ! oberdiek
25395 , the link anchor is placed at the beginning of a float.
25396 To use this feature for figure floats, load
25400 in the document preamble with the line
25403 \begin_layout Standard
25408 usepackage[figure]{hypcap}
25411 \begin_layout Standard
25416 for all float types but this is not recommended for stability reasons.
25417 For more information, have a look at
25422 \begin_inset CommandInset citation
25431 \begin_layout Standard
25432 \begin_inset Note Greyedout
25435 \begin_layout Plain Layout
25444 has no effect on references to subfigures.
25452 \begin_layout Section
25454 \begin_inset CommandInset label
25456 name "sec:Float-Placement"
25461 \begin_inset Index idx
25464 \begin_layout Plain Layout
25473 \begin_layout Standard
25474 Right-clicking on a float-box and clicking on
25478 opens a dialog where you can alter the placement options that LaTeX uses
25479 for positioning the float.
25480 \begin_inset Newline newline
25486 \begin_inset space ~
25491 is only useful for two-column documents: If you select it, the float will
25492 span both columns on the page instead of being confined to just one.
25493 \begin_inset Newline newline
25499 \begin_inset space ~
25504 is used to rotate floats, see section
25505 \begin_inset CommandInset ref
25507 reference "sec:Rotated-Floats"
25514 \begin_layout Standard
25515 You can use one or more of the following options in the float dialog to
25516 set the placement for a particular float when you uncheck the option
25519 \begin_inset space ~
25523 \begin_inset space ~
25531 \begin_layout Description
25533 \begin_inset space ~
25537 \begin_inset space ~
25540 possible try to place the float on the position where it has been inserted
25543 \begin_layout Description
25545 \begin_inset space ~
25549 \begin_inset space ~
25552 page try to place the float at the top of the current page
25555 \begin_layout Description
25557 \begin_inset space ~
25561 \begin_inset space ~
25564 page try to place the float at the bottom of the current page
25567 \begin_layout Description
25569 \begin_inset space ~
25573 \begin_inset space ~
25576 floats try to place the float on its own page
25579 \begin_layout Standard
25580 The order of the above option is
25585 That means, if you use the default placement, LaTeX will first try out
25589 \begin_inset space ~
25593 \begin_inset space ~
25601 \begin_inset space ~
25605 \begin_inset space ~
25610 , and then the others.
25611 If you do not use the default, LaTeX will try only the checked options
25612 but in the same order.
25614 \begin_inset space ~
25617 placements is possible the procedure is internally repeated trying to put
25618 the float on the following page.
25621 \begin_layout Standard
25622 By default, each option has its own rules:
25625 \begin_layout Labeling
25626 \labelwidthstring 00.00.0000
25630 \begin_inset space ~
25634 \begin_inset space ~
25639 only floats occupying less than 70
25640 \begin_inset space \thinspace{}
25643 % of the page can be placed at the top of a page (
25652 \begin_layout Labeling
25653 \labelwidthstring 00.00.0000
25657 \begin_inset space ~
25661 \begin_inset space ~
25666 : only floats occupying less than 30
25667 \begin_inset space \thinspace{}
25670 % of the page can be placed at the bottom of a page.
25680 \begin_layout Labeling
25681 \labelwidthstring 00.00.0000
25685 \begin_inset space ~
25689 \begin_inset space ~
25694 : only if more than 50
25695 \begin_inset space \thinspace{}
25698 % of the page is occupied by floats, several floats can be set together
25709 \begin_layout Standard
25710 If you don't like these rules, you can ignore them by using the additional
25714 \begin_inset space ~
25718 \begin_inset space ~
25724 \begin_inset Newline newline
25727 You can also redefine the rules with LaTeX-commands that are given in parenthese
25728 s after the rules description above.
25729 To increase for example the often too small default of the bottom-rule
25731 \begin_inset space \thinspace{}
25734 % of the page, add this line to your document preamble:
25737 \begin_layout Standard
25744 bottomfraction}{0.5}
25747 \begin_layout Standard
25748 Sometimes you might need, under all circumstances, a float to be placed
25749 exactly at the position where it is inserted.
25750 For this case you can use the option
25753 \begin_inset space ~
25759 Use this option very rarely and only if the document is almost ready to
25760 be printed, because the float is then no longer able to
25761 \begin_inset Quotes eld
25765 \begin_inset Quotes erd
25768 when you change your document and this will often destroy the page layout.
25771 \begin_layout Standard
25772 There are no placement options for text wrap floats, because they are always
25773 surrounded by the text of a certain paragraph.
25774 \begin_inset VSpace bigskip
25780 \begin_layout Standard
25781 Sometimes you have the problem that a float is placed at the top of a page
25782 while its corresponding section starts at the middle of the page, so that
25783 the reader could think the float is part of the previous section.
25784 To avoid this the LaTeX-command
25791 It suppresses a given float placement for the page where it is inserted
25792 and can therefore be used to avoid floats being set before a section starts.
25793 To get this, add these commands to your document preamble:
25796 \begin_layout Standard
25806 \begin_inset Newline newline
25820 \begin_layout Standard
25821 You can define the same for all section headings, like chapters and subsections.
25822 This definition is not recommended to be used for small text parts like
25823 subsubsections because LaTeX may then have problems finding a suitable
25827 \begin_layout Standard
25828 \begin_inset VSpace bigskip
25831 In some cases it is required to have all figures/tables at the end of the
25833 For this purpose the LaTeX-package
25838 \begin_inset Index idx
25841 \begin_layout Plain Layout
25842 LaTeX-packages ! endfloat
25848 It puts all figure and table floats at the end of the document into their
25850 At the original float position a text hint like
25851 \begin_inset Quotes eld
25857 \begin_inset space ~
25863 \begin_inset Quotes erd
25867 The endfloat-package is loaded in the preamble with the line
25870 \begin_layout Standard
25875 usepackage[options]{endfloat}
25878 \begin_layout Standard
25879 There are various package options to format the created figure/table sections.
25880 For more information we refer you to the
25885 \begin_inset CommandInset citation
25892 \begin_inset Newline newline
25896 \begin_inset Note Greyedout
25899 \begin_layout Plain Layout
25904 doesn't provide an automatic translation for the text hint, you have to
25905 do this manually, see section
25906 \begin_inset space ~
25910 \begin_inset CommandInset citation
25922 \begin_inset Newline newline
25926 \begin_inset Note Greyedout
25929 \begin_layout Plain Layout
25934 There is currently a bug in
25938 when the caption contains a German
25939 \begin_inset Quotes eld
25943 \begin_inset Quotes erd
25947 Use in this case the command
25948 \begin_inset Quotes eld
25958 \begin_inset Quotes erd
25961 in TeX-Code instead of
25962 \begin_inset Quotes eld
25966 \begin_inset Quotes erd
25977 \begin_layout Standard
25978 \begin_inset VSpace bigskip
25981 For more details about float placements, have a look at LaTeX books,
25982 \begin_inset CommandInset citation
25984 key "latexcompanion,latexguide,latexbook"
25991 \begin_layout Section
25993 \begin_inset CommandInset label
25995 name "sec:Rotated-Floats"
26000 \begin_inset Index idx
26003 \begin_layout Plain Layout
26012 \begin_layout Standard
26013 Especially for wide tables you might have floats rotated.
26014 To rotate a whole float including the caption, right-click on the float-box
26018 \begin_inset space ~
26026 \begin_layout Standard
26027 Rotated floats are always placed on a page of their own (or column of their
26028 own; in case you have a multi-column document).
26029 You can let them span several columns using the float settings option
26032 \begin_inset space ~
26038 Floats are rotated so that you can read them from the outside margin.
26039 To force a certain rotation direction for all pages, you can add either
26048 to the document class options.
26051 \begin_layout Standard
26052 Referencing rotated floats is the same as for normal floats, the caption
26053 format is also the same: Table
26054 \begin_inset space ~
26058 \begin_inset CommandInset ref
26060 reference "tab:Rotated-table"
26064 is an example of a rotated table float.
26067 \begin_layout Standard
26068 \begin_inset Note Greyedout
26071 \begin_layout Plain Layout
26076 Not all DVI-viewers are able to display rotated floats.
26084 \begin_layout Standard
26085 \begin_inset Float table
26090 \begin_layout Plain Layout
26091 \begin_inset Caption Standard
26093 \begin_layout Plain Layout
26094 \begin_inset CommandInset label
26096 name "tab:Rotated-table"
26108 \begin_layout Plain Layout
26110 \begin_inset Tabular
26111 <lyxtabular version="3" rows="1" columns="5">
26112 <features rotate="0" tabularvalignment="middle">
26113 <column alignment="center" valignment="top" width="0">
26114 <column alignment="center" valignment="top" width="0">
26115 <column alignment="center" valignment="top" width="0">
26116 <column alignment="center" valignment="top" width="0">
26117 <column alignment="center" valignment="top" width="0">
26119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26122 \begin_layout Plain Layout
26128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26131 \begin_layout Plain Layout
26137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26140 \begin_layout Plain Layout
26146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26149 \begin_layout Plain Layout
26155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26158 \begin_layout Plain Layout
26177 \begin_layout Section
26179 \begin_inset Index idx
26182 \begin_layout Plain Layout
26191 \begin_layout Standard
26192 Subfloats are for example used when a figure consists of several images.
26193 They are created by inserting a float into an existing float.
26194 The placement of the subfloats can be controlled in the same way as for
26195 paragraphs as shown in table
26196 \begin_inset space ~
26200 \begin_inset CommandInset ref
26202 reference "tab:Two-subtables-side"
26207 \begin_inset CommandInset ref
26209 reference "tab:Two-subtables-upon"
26216 \begin_layout Standard
26217 Referencing subfloats works as for normal floats: Table
26218 \begin_inset space ~
26222 \begin_inset CommandInset ref
26224 reference "tab:This-is-subtable-a"
26229 \begin_inset CommandInset ref
26231 reference "tab:This-is-subtable-b"
26235 are subtables of table
26236 \begin_inset space ~
26240 \begin_inset CommandInset ref
26242 reference "tab:Two-subtables-side"
26249 \begin_layout Standard
26250 \begin_inset Float table
26255 \begin_layout Plain Layout
26256 \begin_inset Caption Standard
26258 \begin_layout Plain Layout
26259 \begin_inset CommandInset label
26261 name "tab:Two-subtables-side"
26265 Two subtables placed side by side.
26273 \begin_layout Plain Layout
26275 \begin_inset space \hfill{}
26279 \begin_inset Float table
26284 \begin_layout Plain Layout
26285 \begin_inset Caption Standard
26287 \begin_layout Plain Layout
26288 \begin_inset CommandInset label
26290 name "tab:This-is-subtable-a"
26294 This is subtable a.
26302 \begin_layout Plain Layout
26304 \begin_inset Tabular
26305 <lyxtabular version="3" rows="1" columns="5">
26306 <features rotate="0" tabularvalignment="middle">
26307 <column alignment="center" valignment="top" width="0">
26308 <column alignment="center" valignment="top" width="0">
26309 <column alignment="center" valignment="top" width="0">
26310 <column alignment="center" valignment="top" width="0">
26311 <column alignment="center" valignment="top" width="0">
26313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26316 \begin_layout Plain Layout
26322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26325 \begin_layout Plain Layout
26331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26334 \begin_layout Plain Layout
26340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26343 \begin_layout Plain Layout
26349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26352 \begin_layout Plain Layout
26369 \begin_inset space \hfill{}
26373 \begin_inset Float table
26378 \begin_layout Plain Layout
26379 \begin_inset Caption Standard
26381 \begin_layout Plain Layout
26382 \begin_inset CommandInset label
26384 name "tab:This-is-subtable-b"
26388 This is subtable b.
26396 \begin_layout Plain Layout
26398 \begin_inset Tabular
26399 <lyxtabular version="3" rows="1" columns="5">
26400 <features rotate="0" tabularvalignment="middle">
26401 <column alignment="center" valignment="top" width="0">
26402 <column alignment="center" valignment="top" width="0">
26403 <column alignment="center" valignment="top" width="0">
26404 <column alignment="center" valignment="top" width="0">
26405 <column alignment="center" valignment="top" width="0">
26407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26410 \begin_layout Plain Layout
26416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26419 \begin_layout Plain Layout
26425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26428 \begin_layout Plain Layout
26434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26437 \begin_layout Plain Layout
26443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26446 \begin_layout Plain Layout
26463 \begin_inset space \hfill{}
26474 \begin_layout Standard
26475 \begin_inset Float table
26480 \begin_layout Plain Layout
26481 \begin_inset Caption Standard
26483 \begin_layout Plain Layout
26484 \begin_inset CommandInset label
26486 name "tab:Two-subtables-upon"
26490 Two subtables placed one above the other.
26491 (a) table with 4 cells, (b) table with 5 cells.
26499 \begin_layout Plain Layout
26501 \begin_inset Float table
26506 \begin_layout Plain Layout
26507 \begin_inset Caption Standard
26509 \begin_layout Plain Layout
26518 \begin_layout Plain Layout
26520 \begin_inset Tabular
26521 <lyxtabular version="3" rows="1" columns="4">
26522 <features rotate="0" tabularvalignment="middle">
26523 <column alignment="center" valignment="top" width="0">
26524 <column alignment="center" valignment="top" width="0">
26525 <column alignment="center" valignment="top" width="0">
26526 <column alignment="center" valignment="top" width="0">
26528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26531 \begin_layout Plain Layout
26537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26540 \begin_layout Plain Layout
26546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26549 \begin_layout Plain Layout
26555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26558 \begin_layout Plain Layout
26577 \begin_layout Plain Layout
26579 \begin_inset Float table
26584 \begin_layout Plain Layout
26585 \begin_inset Caption Standard
26587 \begin_layout Plain Layout
26596 \begin_layout Plain Layout
26598 \begin_inset Tabular
26599 <lyxtabular version="3" rows="1" columns="5">
26600 <features rotate="0" tabularvalignment="middle">
26601 <column alignment="center" valignment="top" width="0">
26602 <column alignment="center" valignment="top" width="0">
26603 <column alignment="center" valignment="top" width="0">
26604 <column alignment="center" valignment="top" width="0">
26605 <column alignment="center" valignment="top" width="0">
26607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26610 \begin_layout Plain Layout
26616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26619 \begin_layout Plain Layout
26625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26628 \begin_layout Plain Layout
26634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26637 \begin_layout Plain Layout
26643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26646 \begin_layout Plain Layout
26670 \begin_layout Section
26671 Floats Side by Side
26672 \begin_inset Index idx
26675 \begin_layout Plain Layout
26676 Floats ! Side by side
26684 \begin_layout Standard
26685 To place floats side by side, as in Figures
26686 \begin_inset space ~
26690 \begin_inset CommandInset ref
26692 reference "fig:Float-left"
26697 \begin_inset CommandInset ref
26699 reference "fig:Float-right"
26708 In it two minipage boxes are inserted.
26712 \begin_layout Plain Layout
26713 Minipages are explained in section
26714 \begin_inset space ~
26718 \begin_inset CommandInset ref
26720 reference "sec:Minipages"
26729 The width is set to 45
26730 \begin_inset space \thinspace{}
26734 \begin_inset space \thinspace{}
26737 column% and the box alignment to
26742 The minipage boxes contain the image and the caption in the same way as
26743 they are in a float.
26744 The only difference is that the image unit
26747 \begin_inset space ~
26751 \begin_inset space ~
26756 is now calculated according to the width of the minipage boxes.
26759 \begin_layout Standard
26760 \begin_inset Float figure
26765 \begin_layout Plain Layout
26766 \begin_inset Box Frameless
26776 height_special "totalheight"
26779 \begin_layout Plain Layout
26781 \begin_inset Graphics
26782 filename clipart/mobius.eps
26785 scaleBeforeRotation
26792 \begin_layout Plain Layout
26793 \begin_inset Caption Standard
26795 \begin_layout Plain Layout
26796 \begin_inset CommandInset label
26798 name "fig:Float-left"
26802 Float on the left side.
26813 \begin_inset space \hfill{}
26817 \begin_inset Box Frameless
26827 height_special "totalheight"
26830 \begin_layout Plain Layout
26832 \begin_inset Graphics
26833 filename clipart/platypus.eps
26836 scaleBeforeRotation
26843 \begin_layout Plain Layout
26844 \begin_inset Caption Standard
26846 \begin_layout Plain Layout
26847 \begin_inset CommandInset label
26849 name "fig:Float-right"
26853 Float on the right side.
26866 \begin_layout Plain Layout
26875 \begin_layout Section
26877 \begin_inset Index idx
26880 \begin_layout Plain Layout
26881 Caption ! Formatting
26887 \begin_inset Index idx
26890 \begin_layout Plain Layout
26891 Floats ! Caption Formatting
26897 \begin_inset CommandInset label
26899 name "sec:Caption-Formatting"
26906 \begin_layout Standard
26911 environment is the default paragraph environment for
26916 On the LyX screen captions appear as a label, e.
26917 \begin_inset space \thinspace{}
26921 \begin_inset space \space{}
26925 \begin_inset Quotes eld
26933 \begin_inset Quotes erd
26936 followed by the caption text.
26938 \begin_inset Quotes eld
26942 \begin_inset Quotes erd
26945 is the actual reference number.
26946 By default the label and the number are in the same font as the caption
26947 text and a colon follows the number to divide the label from the text.
26948 This caption format is not suitable for all document formats.
26952 \begin_layout Standard
26953 To change the default caption format, load the LaTeX-package
26958 \begin_inset Index idx
26961 \begin_layout Plain Layout
26962 LaTeX-packages ! caption
26967 in the document preamble with this line:
26970 \begin_layout Standard
26975 usepackage[format definition]{caption}
26978 \begin_layout Standard
26979 To have for example the label and the number in sans-serif bold font and
26980 the table captions always above the table as in this document, use the
26984 \begin_layout Standard
26989 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26992 \begin_layout Standard
26993 You can also define different caption formats for the different float types.
26994 In this case load the
26998 package without format specific options and define the different formats
26999 with the help of the command
27002 \begin_layout Standard
27007 captionsetup[float type]{format definition}
27010 \begin_layout Standard
27011 in the document preamble.
27012 For example the caption formats of Figure
27013 \begin_inset space ~
27017 \begin_inset CommandInset ref
27019 reference "fig:This-is-an-fig"
27024 \begin_inset space ~
27028 \begin_inset CommandInset ref
27030 reference "tab:This-is-an-tab"
27034 can be created using these commands in the document preamble:
27037 \begin_layout Standard
27042 usepackage[tableposition=top]{caption}
27045 \begin_inset Newline newline
27052 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27053 \begin_inset Newline newline
27057 \begin_inset Phantom HPhantom
27060 \begin_layout Plain Layout
27065 captionsetup[figure]{
27071 \begin_inset Newline newline
27076 captionsetup[table]{labelfont={bf,sf}}
27079 \begin_layout Standard
27080 \begin_inset Note Greyedout
27083 \begin_layout Plain Layout
27092 has no effect when a
27097 \begin_inset Index idx
27100 \begin_layout Plain Layout
27101 LaTeX-packages ! KOMA-Script
27106 document class is used.
27107 In this case the document class option
27109 captions=tableheading
27119 \begin_layout Standard
27120 For more information about the package
27124 we refer to its documentation
27125 \begin_inset CommandInset citation
27134 \begin_layout Standard
27135 To change the label name from e.
27136 \begin_inset space \thinspace{}
27140 \begin_inset space \space{}
27144 \begin_inset Quotes eld
27148 \begin_inset Quotes erd
27152 \begin_inset Quotes eld
27156 \begin_inset Quotes erd
27159 use this preamble command:
27162 \begin_layout Standard
27169 fnum@figure}{Image~
27174 \begin_layout Standard
27181 inserts the figure number and
27184 \begin_inset Quotes eld
27190 \begin_inset Quotes erd
27193 creates a protected space.
27196 \begin_layout Standard
27197 \begin_inset VSpace bigskip
27205 \begin_inset Index idx
27208 \begin_layout Plain Layout
27209 LaTeX-packages ! KOMA-Script
27216 article (KOMA-Script)
27224 letter (KOMA-Script)
27228 report (KOMA-Script)
27231 \begin_inset space \thinspace{}
27234 ), you can alternatively to the
27242 's built-in command
27249 For example, to have the caption label in bold, add this command to your
27253 \begin_layout Standard
27258 setkomafont{captionlabel}{
27263 \begin_layout Standard
27264 For more information about
27275 \begin_inset CommandInset citation
27284 \begin_layout Standard
27288 \begin_layout Plain Layout
27292 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27299 \begin_inset Note Note
27302 \begin_layout Plain Layout
27303 The caption format is changed only for this example.
27311 \begin_layout Standard
27312 \begin_inset Float figure
27318 \begin_layout Plain Layout
27320 \begin_inset Graphics
27321 filename clipart/mobius.eps
27324 scaleBeforeRotation
27331 \begin_layout Plain Layout
27332 \begin_inset Caption Standard
27334 \begin_layout Plain Layout
27335 \begin_inset CommandInset label
27337 name "fig:This-is-an-fig"
27341 This is an example figure caption that is longer than one line to show the
27342 different caption format.
27343 Here a self-defined caption format is used.
27356 \begin_layout Standard
27360 \begin_layout Plain Layout
27364 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27373 \begin_layout Standard
27374 \begin_inset Float table
27380 \begin_layout Plain Layout
27381 \begin_inset Caption Standard
27383 \begin_layout Plain Layout
27384 \begin_inset CommandInset label
27386 name "tab:This-is-an-tab"
27390 This is an example table caption that is longer than one line to show the
27391 different caption format.
27392 Here the standard caption format for tables in this document is used.
27400 \begin_layout Plain Layout
27402 \begin_inset Tabular
27403 <lyxtabular version="3" rows="1" columns="5">
27404 <features rotate="0" tabularvalignment="middle">
27405 <column alignment="center" valignment="top" width="0">
27406 <column alignment="center" valignment="top" width="0">
27407 <column alignment="center" valignment="top" width="0">
27408 <column alignment="center" valignment="top" width="0">
27409 <column alignment="center" valignment="top" width="0">
27411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27414 \begin_layout Plain Layout
27420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27423 \begin_layout Plain Layout
27429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27432 \begin_layout Plain Layout
27438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27441 \begin_layout Plain Layout
27447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27450 \begin_layout Plain Layout
27469 \begin_layout Section
27471 \begin_inset Index idx
27474 \begin_layout Plain Layout
27475 Caption ! Placement
27481 \begin_inset Index idx
27484 \begin_layout Plain Layout
27485 Floats ! Caption Placement
27491 \begin_inset CommandInset label
27493 name "sec:Caption-Placement"
27500 \begin_layout Standard
27501 The common caption placement rule is:
27504 \begin_layout Description
27505 Figure: Caption is set below the figure
27508 \begin_layout Description
27509 Table: Caption is set above the table
27512 \begin_layout Standard
27513 Having the caption above the table is unfortunately not supported in LaTeX's
27515 That means if you are using the document classes
27531 there will be no space between the caption and the table.
27532 To insert the necessary space, add the following option to the load command
27533 of the LaTeX-package
27537 in your document preamble
27541 \begin_layout Plain Layout
27543 \begin_inset space ~
27547 \begin_inset CommandInset ref
27549 reference "sec:Caption-Formatting"
27553 for more information of the package
27565 \begin_layout Standard
27571 \begin_layout Standard
27577 \begin_inset Index idx
27580 \begin_layout Plain Layout
27581 LaTeX-packages ! KOMA-Script
27588 article (KOMA-Script)
27596 letter (KOMA-Script)
27600 report (KOMA-Script)
27603 \begin_inset space \thinspace{}
27606 ), you can alternatively to the
27610 package set the document class option
27612 captions=tableheading
27617 \begin_layout Standard
27618 \begin_inset VSpace bigskip
27621 It is also possible to set the caption beside a figure or table.
27622 To get this the LaTeX-package
27627 \begin_inset Index idx
27630 \begin_layout Plain Layout
27631 LaTeX-packages ! sidecap
27636 has to be loaded in the document preamble with the line
27639 \begin_layout Standard
27644 usepackage[option]{sidecap}
27647 \begin_layout Standard
27648 If you set no option, the caption is placed on the side of the outer page
27649 margin – to the right on odd pages, to the left on even pages.
27650 You can change the placement to inner margin with the option
27655 To force the placement always to the right or left, use the option
27666 \begin_layout Standard
27670 \begin_layout Plain Layout
27680 \begin_inset Note Note
27683 \begin_layout Plain Layout
27684 The following section will only be displayed when the LaTeX-package
27696 \begin_layout Standard
27697 To place in LyX the caption of a float on the side, it is necessary to add
27698 these commands to the document preamble:
27701 \begin_layout Standard
27702 \begin_inset Newpage pagebreak
27708 \begin_layout Standard
27710 \begin_inset CommandInset line
27721 \begin_layout Standard
27728 TabBesBeg}[1][1.0]{%
27729 \begin_inset Newline newline
27733 \begin_inset Phantom HPhantom
27736 \begin_layout Plain Layout
27737 \begin_inset space ~
27752 \begin_inset Newline newline
27756 \begin_inset Phantom HPhantom
27759 \begin_layout Plain Layout
27762 \begin_inset space ~
27777 \begin_inset Newline newline
27781 \begin_inset Phantom HPhantom
27784 \begin_layout Plain Layout
27787 \begin_inset space ~
27797 renewenvironment{table}[1]{
27799 begin{SCtable}[#1]##1}{
27804 \begin_layout Standard
27812 \begin_inset Newline newline
27816 \begin_inset Phantom HPhantom
27819 \begin_layout Plain Layout
27820 \begin_inset space ~
27835 \begin_inset Newline newline
27839 \begin_inset Phantom HPhantom
27842 \begin_layout Plain Layout
27843 \begin_inset space ~
27860 \begin_layout Standard
27867 FigBesBeg}[1][1.0]{%
27868 \begin_inset Newline newline
27872 \begin_inset Phantom HPhantom
27875 \begin_layout Plain Layout
27876 \begin_inset space ~
27891 \begin_inset Newline newline
27895 \begin_inset Phantom HPhantom
27898 \begin_layout Plain Layout
27899 \begin_inset space ~
27914 \begin_inset Newline newline
27918 \begin_inset Phantom HPhantom
27921 \begin_layout Plain Layout
27922 \begin_inset space ~
27932 renewenvironment{figure}[1]{
27934 begin{SCfigure}[#1]##1}{
27939 \begin_layout Standard
27947 \begin_inset Newline newline
27951 \begin_inset Phantom HPhantom
27954 \begin_layout Plain Layout
27955 \begin_inset space ~
27970 \begin_inset Newline newline
27974 \begin_inset Phantom HPhantom
27977 \begin_layout Plain Layout
27978 \begin_inset space ~
27995 \begin_layout Standard
27997 \begin_inset CommandInset line
28008 \begin_layout Standard
28009 The commands allow you to redefine the floats so that the caption is set
28011 For figure floats use the command
28014 \begin_layout Standard
28022 \begin_layout Standard
28023 in TeX-Code before the float.
28024 And insert the command
28027 \begin_layout Standard
28035 \begin_layout Standard
28036 in TeX-Code at the point where you want to get back to the original float
28040 \begin_layout Standard
28041 For table floats use the corresponding commands
28044 \begin_layout Standard
28058 \begin_layout Standard
28060 \begin_inset space ~
28064 \begin_inset CommandInset ref
28066 reference "fig:cap-beside-fig"
28071 \begin_inset space ~
28075 \begin_inset CommandInset ref
28077 reference "tab:cap-beside-tab"
28081 are examples where the caption is set beside.
28084 \begin_layout Standard
28085 You can see in the examples that the caption text appears at the top of
28086 the floats for table floats and at the bottom for figure floats.
28087 To change this, you can use the command
28090 \begin_layout Standard
28095 sidecaptionvpos{float type}{placement}
28098 \begin_layout Standard
28099 in the document preamble or in TeX-Code before the float.
28100 The float type is either
28108 , the placement can be
28109 \begin_inset Quotes eld
28117 \begin_inset Quotes erd
28121 \begin_inset Quotes eld
28129 \begin_inset Quotes erd
28133 \begin_inset Quotes eld
28141 \begin_inset Quotes erd
28145 To have for example the caption of figure floats vertically centered, use
28149 \begin_layout Standard
28154 sidecaptionvpos{figure}{c}
28157 \begin_layout Standard
28158 This was used for Figure
28159 \begin_inset space ~
28163 \begin_inset CommandInset ref
28165 reference "fig:cap-beside-fig-2"
28172 \begin_layout Standard
28173 \begin_inset VSpace medskip
28179 \begin_layout Standard
28180 The default caption width is the width of the image/table.
28181 For thin image/tables, like in Table
28182 \begin_inset space ~
28186 \begin_inset CommandInset ref
28188 reference "tab:cap-beside-tab"
28192 , this leads to captions that are too thin.
28193 You can increase the width by specifying a factor that will be multiplied
28194 with the image/table width to get the caption width.
28195 The caption width will automatically be recalculated in case it would protrude
28196 over the page or column margin due to the specified width.
28201 can either be given as optional argument for
28210 \begin_layout Standard
28218 \begin_layout Standard
28219 or in the definition of
28229 with another value.
28230 If you do the latter, your factor will be the default if
28236 is used without an argument.
28238 \begin_inset space ~
28242 \begin_inset CommandInset ref
28244 reference "tab:cap-beside-tab-wider"
28248 the factor 5 was used.
28251 \begin_layout Standard
28252 \begin_inset Note Greyedout
28255 \begin_layout Plain Layout
28260 For floats with captions set beside, you cannot use the float placement
28264 \begin_inset space ~
28269 because it is not supported by
28281 \begin_layout Standard
28282 \begin_inset VSpace medskip
28285 For more information about the package
28289 we refer to its documentation
28290 \begin_inset CommandInset citation
28299 \begin_layout Standard
28300 \begin_inset Note Greyedout
28303 \begin_layout Plain Layout
28313 \begin_inset Index idx
28316 \begin_layout Plain Layout
28317 LaTeX-packages ! hypcap
28322 , described in section
28323 \begin_inset space ~
28327 \begin_inset CommandInset ref
28329 reference "sub:Reference-Position"
28333 , has no effect on floats with the caption set beside.
28341 \begin_layout Standard
28345 \begin_layout Plain Layout
28357 \begin_layout Standard
28358 \begin_inset Float figure
28363 \begin_layout Plain Layout
28364 \begin_inset Graphics
28365 filename clipart/escher-lsd.eps
28367 scaleBeforeRotation
28374 \begin_layout Plain Layout
28375 \begin_inset Caption Standard
28377 \begin_layout Plain Layout
28378 \begin_inset CommandInset label
28380 name "fig:cap-beside-fig"
28384 This is a caption beside a figure.
28397 \begin_layout Standard
28401 \begin_layout Plain Layout
28413 \begin_layout Standard
28417 \begin_layout Plain Layout
28429 \begin_layout Standard
28430 \begin_inset Float table
28435 \begin_layout Plain Layout
28436 \begin_inset Caption Standard
28438 \begin_layout Plain Layout
28439 \begin_inset CommandInset label
28441 name "tab:cap-beside-tab"
28445 This is a caption beside a table.
28453 \begin_layout Plain Layout
28454 \begin_inset Tabular
28455 <lyxtabular version="3" rows="4" columns="5">
28456 <features rotate="0" tabularvalignment="middle">
28457 <column alignment="center" valignment="top" width="0">
28458 <column alignment="center" valignment="top" width="0">
28459 <column alignment="center" valignment="top" width="0">
28460 <column alignment="center" valignment="top" width="0">
28461 <column alignment="center" valignment="top" width="0">
28463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28466 \begin_layout Plain Layout
28472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28475 \begin_layout Plain Layout
28481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28484 \begin_layout Plain Layout
28490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28493 \begin_layout Plain Layout
28499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28502 \begin_layout Plain Layout
28510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28513 \begin_layout Plain Layout
28519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28522 \begin_layout Plain Layout
28528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28531 \begin_layout Plain Layout
28537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28540 \begin_layout Plain Layout
28546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28549 \begin_layout Plain Layout
28557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28560 \begin_layout Plain Layout
28566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28569 \begin_layout Plain Layout
28575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28578 \begin_layout Plain Layout
28584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28587 \begin_layout Plain Layout
28593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28596 \begin_layout Plain Layout
28604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28607 \begin_layout Plain Layout
28613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28616 \begin_layout Plain Layout
28622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28625 \begin_layout Plain Layout
28631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28634 \begin_layout Plain Layout
28640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28643 \begin_layout Plain Layout
28662 \begin_layout Standard
28666 \begin_layout Plain Layout
28678 \begin_layout Standard
28682 \begin_layout Plain Layout
28686 sidecaptionvpos{figure}{c}
28692 \begin_inset Float figure
28697 \begin_layout Plain Layout
28698 \begin_inset Graphics
28699 filename clipart/escher-lsd.eps
28701 scaleBeforeRotation
28708 \begin_layout Plain Layout
28709 \begin_inset Caption Standard
28711 \begin_layout Plain Layout
28712 \begin_inset CommandInset label
28714 name "fig:cap-beside-fig-2"
28718 This is a vertically centered caption beside a figure.
28731 \begin_layout Standard
28735 \begin_layout Plain Layout
28747 \begin_layout Standard
28751 \begin_layout Plain Layout
28763 \begin_layout Standard
28764 \begin_inset Float table
28769 \begin_layout Plain Layout
28770 \begin_inset Caption Standard
28772 \begin_layout Plain Layout
28773 \begin_inset CommandInset label
28775 name "tab:cap-beside-tab-wider"
28779 This is a caption is wider than the one in Table
28780 \begin_inset space ~
28784 \begin_inset CommandInset ref
28786 reference "tab:cap-beside-tab"
28798 \begin_layout Plain Layout
28799 \begin_inset Tabular
28800 <lyxtabular version="3" rows="4" columns="5">
28801 <features rotate="0" tabularvalignment="middle">
28802 <column alignment="center" valignment="top" width="0">
28803 <column alignment="center" valignment="top" width="0">
28804 <column alignment="center" valignment="top" width="0">
28805 <column alignment="center" valignment="top" width="0">
28806 <column alignment="center" valignment="top" width="0">
28808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28811 \begin_layout Plain Layout
28817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28820 \begin_layout Plain Layout
28826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28829 \begin_layout Plain Layout
28835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28838 \begin_layout Plain Layout
28844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28847 \begin_layout Plain Layout
28855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28858 \begin_layout Plain Layout
28864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28867 \begin_layout Plain Layout
28873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28876 \begin_layout Plain Layout
28882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28885 \begin_layout Plain Layout
28891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28894 \begin_layout Plain Layout
28902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28905 \begin_layout Plain Layout
28911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28914 \begin_layout Plain Layout
28920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28923 \begin_layout Plain Layout
28929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28932 \begin_layout Plain Layout
28938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28941 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28961 \begin_layout Plain Layout
28967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28970 \begin_layout Plain Layout
28976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28979 \begin_layout Plain Layout
28985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28988 \begin_layout Plain Layout
29007 \begin_layout Standard
29011 \begin_layout Plain Layout
29023 \begin_layout Standard
29027 \begin_layout Plain Layout
29037 \begin_inset Note Note
29040 \begin_layout Plain Layout
29041 The following will be displayed when the LaTeX-package
29053 \begin_layout Standard
29054 You need to install the LaTeX-package
29058 to see the following part of this section in the output.
29061 \begin_layout Standard
29065 \begin_layout Plain Layout
29077 \begin_layout Section
29079 \begin_inset Index idx
29082 \begin_layout Plain Layout
29083 Floats ! Float Lists
29091 \begin_layout Standard
29092 Similar to the table of contents where the sections of the document are
29093 listed, there are listings for all float types, like the figures of the
29095 You can insert them via the
29097 Insert\SpecialChar \menuseparator
29099 \begin_inset space ~
29103 \begin_inset space ~
29111 \begin_layout Standard
29112 The list entries are the float captions or its short title, the float number,
29113 and the page number where they appear in the document.
29116 \begin_layout Standard
29117 You can find the list of figures and tables at the end of this document.
29120 \begin_layout Chapter
29124 \begin_layout Section
29126 \begin_inset Index idx
29129 \begin_layout Plain Layout
29138 \begin_layout Standard
29139 Notes are inserted with the toolbar button
29147 Insert\SpecialChar \menuseparator
29151 There are three types of notes:
29154 \begin_layout Description
29156 \begin_inset space ~
29159 Note This note type is for internal notes that won't appear in the output.
29160 Its note-box looks like this:
29161 \begin_inset Newline newline
29165 \begin_inset Newline newline
29169 \begin_inset Graphics
29170 filename clipart/LyXNoteImageQt4.png
29173 scaleBeforeRotation
29178 \begin_inset Note Note
29181 \begin_layout Plain Layout
29182 This is text in a note box that doesn't appear in the output.
29190 \begin_layout Description
29191 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29192 ent, when you export the document to LaTeX via the menu
29194 File\SpecialChar \menuseparator
29195 Export\SpecialChar \menuseparator
29196 LaTeX (pdflatex) / (plain)
29199 Its note-box looks like this:
29200 \begin_inset Newline newline
29204 \begin_inset Newline newline
29208 \begin_inset Graphics
29209 filename clipart/CommentNoteImageQt4.png
29212 scaleBeforeRotation
29217 \begin_inset Note Comment
29220 \begin_layout Plain Layout
29221 This is text in a note box that only appears as comment in LaTeX-files.
29229 \begin_layout Description
29231 \begin_inset space ~
29234 Out This note will appear in the output as grey text.
29235 Its note-box looks like this:
29236 \begin_inset Newline newline
29240 \begin_inset Newline newline
29244 \begin_inset Graphics
29245 filename clipart/GreyedOutNoteImageQt4.png
29248 scaleBeforeRotation
29253 \begin_inset Newline newline
29260 \begin_layout Plain Layout
29264 renewenvironment{lyxgreyedout}
29267 \begin_layout Plain Layout
29271 textcolor[gray]{0.8}
29281 \begin_inset Note Greyedout
29284 \begin_layout Plain Layout
29289 \begin_layout Plain Layout
29290 This is an example footnote within a greyed out note.
29295 of a comment that appears in the output as grey text.
29304 \begin_layout Plain Layout
29308 renewenvironment{lyxgreyedout}
29311 \begin_layout Plain Layout
29325 \begin_inset Note Note
29328 \begin_layout Plain Layout
29329 The greyed out note is here redefined to show it with the original LyX definitio
29330 n because greyed out notes are redefined in the preamble of this document,
29331 as described below, to have blue text.
29337 \begin_inset Newline newline
29341 \begin_inset Newline newline
29344 As you can see in the example, the first line of greyed out notes is a bit
29345 indented and greyed out notes can have footnotes.
29348 \begin_layout Standard
29349 \begin_inset VSpace bigskip
29352 When you use the toolbar button
29361 \begin_inset space ~
29367 You can switch between the three note types by right-clicking on the note-box.
29372 If you want to turn existing text into a note, mark it and click on the
29386 To change a note to text, press the backspace key when the cursor is in
29387 the first position of a note, or press the delete key when the cursor is
29388 in the very last position of the note, respectively.
29391 \begin_layout Standard
29392 \begin_inset VSpace bigskip
29395 You can change the text color of the greyed out notes in the menu
29397 Document\SpecialChar \menuseparator
29398 Settings\SpecialChar \menuseparator
29404 \begin_layout Section
29406 \begin_inset CommandInset label
29408 name "sec:Footnotes"
29413 \begin_inset Index idx
29416 \begin_layout Plain Layout
29423 \begin_inset Index idx
29426 \begin_layout Plain Layout
29435 \begin_layout Standard
29436 Footnotes can be inserted using the toolbar button
29439 arg "footnote-insert"
29444 Insert\SpecialChar \menuseparator
29448 You will then see the following footnote-box:
29449 \begin_inset Graphics
29450 filename clipart/footnoteQt4.png
29452 scaleBeforeRotation
29460 where you can enter the footnote text.
29461 If you want to turn existing text into a footnote, mark it and click on
29487 key when the cursor is in the first position of a
29499 key when the cursor is in the very last position of the
29510 \begin_layout Standard
29511 Here is an example footnote:
29519 \begin_layout Plain Layout
29520 \begin_inset CommandInset label
29522 name "foot:This-is-an"
29526 This is an example footnote.
29539 \begin_layout Plain Layout
29543 newcounter{MyRepeatFoot}
29546 \begin_layout Plain Layout
29550 setcounter{MyRepeatFoot}{
29560 \begin_layout Standard
29561 The footnote will appear in the output as a superscript number at the text
29562 position where the footnote box is placed.
29563 The footnote text is placed at the bottom of the current page.
29564 The footnote number is calculated by LaTeX; the numbers are consecutive.
29565 Whether the footnote number is reset for every chapter depends on your
29569 \begin_layout Standard
29570 Footnotes can be referenced like floats: Insert a label into the footnote
29571 and cross-reference this label in the text as described in section
29572 \begin_inset space ~
29576 \begin_inset CommandInset ref
29578 reference "sec:Referencing-Floats"
29583 \begin_inset Newline newline
29586 This is a cross-reference of Footnote
29587 \begin_inset space ~
29591 \begin_inset CommandInset ref
29593 reference "foot:This-is-an"
29600 \begin_layout Standard
29601 \begin_inset VSpace defskip
29604 Footnotes in tables are not printed by LaTeX due to technical reasons.
29605 However there exists another method to print them: Instead of the footnote
29612 is inserted as TeX-code.
29613 The text of the footnote is entered as an argument of the TeX-code command
29621 \begin_inset Newline newline
29624 This was done for the following table with the command
29627 \begin_layout Standard
29634 Printed table footnote.
29639 \begin_layout Standard
29640 \begin_inset Tabular
29641 <lyxtabular version="3" rows="2" columns="1">
29642 <features rotate="0" tabularvalignment="middle">
29643 <column alignment="center" valignment="top" width="0">
29645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29648 \begin_layout Plain Layout
29649 This an example text.
29653 \begin_layout Plain Layout
29654 This footnote will not be printed!
29666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29669 \begin_layout Plain Layout
29670 This an example text.
29674 \begin_layout Plain Layout
29697 \begin_layout Plain Layout
29706 Printed table footnote.
29710 \begin_layout Plain Layout
29720 \begin_layout Standard
29721 Footnotes in longtables are described in section
29722 \begin_inset space ~
29726 \begin_inset CommandInset ref
29728 reference "sub:Footnotes-in-Longtables"
29735 \begin_layout Standard
29736 Footnotes in minipage boxes are printed, but inside the box and with a different
29737 numbering because a minipage box is like a page inside a page.
29738 (For more about minipages, see section
29739 \begin_inset space ~
29743 \begin_inset CommandInset ref
29745 reference "sec:Minipages"
29749 .) To get a footnote in the minipage that is output at the bottom of the
29750 page like normal footnotes, also use the method of
29765 \begin_layout Standard
29766 \begin_inset Box Frameless
29776 height_special "totalheight"
29779 \begin_layout Plain Layout
29780 This an example text in a minipage.
29784 \begin_layout Plain Layout
29785 Footnote in the minipage.
29793 \begin_layout Plain Layout
29794 This an example text in a minipage.
29798 \begin_layout Plain Layout
29815 \begin_layout Standard
29819 \begin_layout Plain Layout
29828 Footnote outside the minipage.
29832 \begin_layout Plain Layout
29842 \begin_layout Standard
29843 \begin_inset VSpace defskip
29849 \begin_layout Standard
29850 To refer to the same footnote several times without printing the footnote
29851 text every time, use the command
29855 footnotemark[number]
29858 \begin_inset Newline newline
29861 As you do not know the number of the repeating footnote while you are writing
29862 the text, you have to store its number.
29863 For the following footnote mark example, these commands were inserted in
29864 TeX-code after Footnote
29865 \begin_inset space ~
29869 \begin_inset CommandInset ref
29871 reference "foot:This-is-an"
29875 to store the footnote number:
29878 \begin_layout Standard
29883 newcounter{MyRepeatFoot}
29884 \begin_inset Newline newline
29889 setcounter{MyRepeatFoot}{
29894 \begin_layout Standard
29895 The footnote mark was then created with this command:
29898 \begin_layout Standard
29908 \begin_layout Standard
29909 Here is a repeated footnote:
29917 \begin_layout Plain Layout
29931 \begin_layout Standard
29932 If you want to repeat the previous footnote, you can omit the storage of
29933 the footnote number and just use this command instead:
29936 \begin_layout Standard
29946 \begin_layout Standard
29947 Here is another repeated footnote:
29955 \begin_layout Plain Layout
29969 \begin_layout Subsection
29971 \begin_inset CommandInset label
29973 name "sub:Footnote-Numbering"
29978 \begin_inset Index idx
29981 \begin_layout Plain Layout
29982 Footnotes ! Numbering
29990 \begin_layout Standard
29991 To reset the footnote number back to 1 after each section
29993 , add this command to your document preamble:
29996 \begin_layout Standard
30001 @addtoreset{footnote}{section}
30004 \begin_layout Standard
30005 \begin_inset VSpace bigskip
30008 The following preamble command changes the footnote numbering style to small
30012 \begin_layout Standard
30024 \begin_layout Standard
30028 \begin_layout Plain Layout
30041 This is a footnote with roman numbering:
30045 \begin_layout Plain Layout
30046 This is an example footnote with roman numbering.
30054 \begin_layout Standard
30055 To change the numbering style to capital roman numerals replace in the command
30070 \begin_inset Quotes eld
30074 \begin_inset Quotes erd
30077 footnotes with capital or small Latin letters use
30091 \begin_inset Quotes eld
30095 \begin_inset Quotes erd
30098 footnotes with symbols use
30107 \begin_layout Standard
30108 \begin_inset Note Greyedout
30111 \begin_layout Plain Layout
30116 You can only number 26 footnotes with Latin letters, because this numbering
30117 is limited to single letters.
30123 \begin_inset Newline newline
30127 \begin_inset Note Greyedout
30130 \begin_layout Plain Layout
30135 You can only number 9 footnotes with symbols.
30143 \begin_layout Standard
30144 To return to the default numbering style after you have changed to another
30157 in the command above.
30161 \begin_layout Plain Layout
30177 \begin_layout Standard
30178 \begin_inset VSpace bigskip
30184 \begin_layout Standard
30185 If you want to have footnotes numbered in the scheme
30186 \begin_inset Quotes eld
30190 \begin_inset Quotes erd
30193 , add the following command to your document preamble:
30196 \begin_layout Standard
30201 numberwithin{footnote}{chapter}
30204 \begin_layout Standard
30205 To be able to use the command
30214 \begin_inset space ~
30219 in the document settings the option
30222 \begin_inset space ~
30226 \begin_inset space ~
30230 \begin_inset space ~
30238 \begin_layout Standard
30242 \begin_layout Plain Layout
30246 numberwithin{footnote}{chapter}
30251 This is another example footnote:
30257 \begin_layout Plain Layout
30258 This is a footnote numbered in the scheme
30259 \begin_inset Quotes eld
30263 \begin_inset Quotes erd
30277 \begin_layout Plain Layout
30293 \begin_layout Standard
30294 \begin_inset Note Greyedout
30297 \begin_layout Plain Layout
30308 always prints out the footnote number as arabic number; previous redefinitions
30309 to get non-arabic numbers are overwritten.
30317 \begin_layout Standard
30318 So to get for example the scheme
30319 \begin_inset Quotes eld
30325 \begin_inset Quotes erd
30328 , use this command instead of
30337 \begin_layout Standard
30351 \begin_layout Subsection
30353 \begin_inset Index idx
30356 \begin_layout Plain Layout
30357 Footnotes ! Placement
30365 \begin_layout Standard
30366 If you have several footnotes in one page, they appear without vertical
30367 space between them at the bottom of the page.
30368 To make them more readable you can e.
30369 \begin_inset space \thinspace{}
30373 \begin_inset space \space{}
30377 \begin_inset space \thinspace{}
30380 mm space with the following preamble command:
30383 \begin_layout Standard
30393 \begin_inset Newline newline
30407 \begin_layout Standard
30408 \begin_inset VSpace bigskip
30411 In a two-column document the footnotes appear at the bottom of every column,
30413 \begin_inset space ~
30417 \begin_inset CommandInset ref
30419 reference "fig:Standard-footnote-placement"
30424 If the footnotes should only appear at the bottom of the right column,
30426 \begin_inset space ~
30430 \begin_inset CommandInset ref
30432 reference "fig:Footnote-placement-in"
30436 , use the LaTeX-package
30441 \begin_inset Index idx
30444 \begin_layout Plain Layout
30445 LaTeX-packages ! ftnright
30450 with this command in the document preamble:
30453 \begin_layout Standard
30458 usepackage{ftnright}
30461 \begin_layout Standard
30462 \begin_inset Float figure
30468 \begin_layout Plain Layout
30472 \begin_layout Plain Layout
30482 \begin_inset Graphics
30483 filename clipart/without_fntright.pdf
30485 scaleBeforeRotation
30493 \begin_layout Plain Layout
30503 \begin_layout Plain Layout
30504 \begin_inset Caption Standard
30506 \begin_layout Plain Layout
30507 \begin_inset CommandInset label
30509 name "fig:Standard-footnote-placement"
30513 Standard footnote placement in two-column documents.
30526 \begin_layout Standard
30527 \begin_inset Float figure
30533 \begin_layout Plain Layout
30537 \begin_layout Plain Layout
30547 \begin_inset Graphics
30548 filename clipart/with_fntright.pdf
30550 scaleBeforeRotation
30558 \begin_layout Plain Layout
30568 \begin_layout Plain Layout
30569 \begin_inset Caption Standard
30571 \begin_layout Plain Layout
30572 \begin_inset CommandInset label
30574 name "fig:Footnote-placement-in"
30578 Footnote placement in two-column documents when the LaTeX-package
30595 \begin_layout Standard
30596 \begin_inset VSpace bigskip
30599 In some scientific literature it is usual to collect the footnotes and print
30600 them in a separate paragraph at the end of a section, as in Figure
30601 \begin_inset space ~
30605 \begin_inset CommandInset ref
30607 reference "fig:Endnotes"
30612 They are then called
30613 \begin_inset Quotes eld
30617 \begin_inset Quotes erd
30621 \begin_inset Index idx
30624 \begin_layout Plain Layout
30630 To use endnotes instead of footnotes in your document, load in the menu
30633 Document\SpecialChar \menuseparator
30634 Settings\SpecialChar \menuseparator
30640 \begin_inset space ~
30644 \begin_inset space ~
30650 To insert the collected footnotes, insert the command
30653 \begin_layout Standard
30661 \begin_layout Standard
30662 in TeX-Code at the end of a section or chapter.
30665 \begin_layout Standard
30666 \begin_inset Float figure
30671 \begin_layout Plain Layout
30676 \begin_layout Plain Layout
30686 \begin_inset Graphics
30687 filename clipart/endnotes.pdf
30688 scaleBeforeRotation
30696 \begin_layout Plain Layout
30706 \begin_layout Plain Layout
30707 \begin_inset Caption Standard
30709 \begin_layout Plain Layout
30710 \begin_inset CommandInset label
30712 name "fig:Endnotes"
30716 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30730 \begin_layout Standard
30731 \begin_inset VSpace medskip
30734 The paragraph heading for the endnotes isn't automatically translated into
30735 the document language, this must be done manually.
30736 The following preamble command translates the default English
30737 \begin_inset Quotes eld
30741 \begin_inset Quotes erd
30745 \begin_inset Quotes eld
30749 \begin_inset Quotes erd
30755 \begin_layout Standard
30762 notesname}{Anmerkungen}
30765 \begin_layout Standard
30766 \begin_inset VSpace medskip
30769 The numbering of endnotes can be changed like the footnote numbering as
30770 described in section
30771 \begin_inset space ~
30775 \begin_inset CommandInset ref
30777 reference "sub:Footnote-Numbering"
30781 ; just replace the command
30794 To reset the endnote number use the command
30800 as described in section
30801 \begin_inset space ~
30805 \begin_inset CommandInset ref
30807 reference "sub:Footnote-Numbering"
30811 and replace the command parameter
30822 \begin_layout Standard
30823 For endnotes there is the command
30827 endnotemark[number]
30829 similar to the command
30835 , that is described in section
30836 \begin_inset space ~
30840 \begin_inset CommandInset ref
30842 reference "sec:Footnotes"
30849 \begin_layout Standard
30850 \begin_inset VSpace bigskip
30853 Footnotes can also be placed in the page margin and the footnote text alignment
30854 can be changed, see the LaTeX-package
30859 \begin_inset Index idx
30862 \begin_layout Plain Layout
30863 LaTeX-packages ! footmisc
30869 \begin_inset CommandInset citation
30875 for more information about this.
30878 \begin_layout Standard
30879 For various further footnote formatting issues have a look at LaTeX-books,
30881 \begin_inset CommandInset citation
30883 key "latexcompanion,latexguide,latexbook"
30893 \begin_inset Index idx
30896 \begin_layout Plain Layout
30897 LaTeX-packages ! KOMA-Script
30902 document class, you can adjust all footnote settings using class-specific
30904 \begin_inset CommandInset citation
30913 \begin_layout Section
30915 \begin_inset Index idx
30918 \begin_layout Plain Layout
30919 Notes ! Margin Notes
30927 \begin_layout Standard
30928 Margin notes look and behave in LyX like footnotes.
30929 They are inserted via the menu
30931 Insert\SpecialChar \menuseparator
30933 \begin_inset space ~
30938 or the toolbar button
30941 arg "marginalnote-insert"
30955 \begin_inset Quotes eld
30959 \begin_inset Quotes erd
30962 appears where you can enter the text of the margin note.
30965 \begin_layout Standard
30966 At the side is an example margin note.
30971 \begin_inset Marginal
30974 \begin_layout Plain Layout
30975 This is a margin note.
30983 \begin_layout Standard
30984 Margin notes appear at the right side in single-sided documents.
30985 In double-sided documents they appear in the outer margin – left on even
30986 pages, right on odd pages.
30987 The text of margin notes is aligned opposite to the outer margin – right-aligne
30988 d when the note appears in the left margin.
30989 The first line of the margin note is placed at the position of the text
30990 line where it is inserted in the document.
30993 \begin_layout Standard
30994 \begin_inset VSpace bigskip
30997 To place the margin note in the inner margin, add the command
31000 \begin_layout Standard
31008 \begin_layout Standard
31009 in TeX-Code before a margin note.
31010 The new placement is valid for all subsequent margin notes.
31015 \begin_layout Plain Layout
31025 \begin_inset Marginal
31028 \begin_layout Plain Layout
31029 This is a margin note in the inner margin.
31037 \begin_inset Newline newline
31043 \begin_inset Note Greyedout
31046 \begin_layout Plain Layout
31051 There is often not enough space in the inner margin so that the notes are
31052 not correctly displayed in the output.
31060 \begin_layout Standard
31061 To return to the default placement insert the command
31064 \begin_layout Standard
31072 \begin_layout Standard
31077 \begin_layout Plain Layout
31087 \begin_inset Note Greyedout
31090 \begin_layout Plain Layout
31095 The command is ignored when it is within a paragraph where also the command
31110 \begin_layout Standard
31111 \begin_inset VSpace bigskip
31118 \begin_inset Marginal
31121 \begin_layout Plain Layout
31122 AVeryLongMarginParWord that isn't hyphenated.
31130 Similar to the case described in section
31131 \begin_inset space ~
31135 \begin_inset CommandInset ref
31137 reference "sub:Multiple-Lines-in"
31141 , long words cannot be hyphenated when they are the first word in a margin
31143 To avoid this, insert 0
31144 \begin_inset space \thinspace{}
31147 pt horizontal space before the word
31152 \begin_inset Marginal
31155 \begin_layout Plain Layout
31156 \begin_inset space \hspace*{}
31160 AVeryLongMarginParWord that is hyphenated.
31168 \begin_layout Standard
31169 \begin_inset VSpace bigskip
31175 \begin_layout Standard
31176 \begin_inset Note Greyedout
31179 \begin_layout Plain Layout
31184 Margin notes can normally not be used inside tables, floats, and footnotes.
31192 \begin_layout Standard
31193 \begin_inset VSpace bigskip
31199 \begin_layout Standard
31203 \begin_layout Plain Layout
31213 \begin_inset Note Note
31216 \begin_layout Plain Layout
31217 The following section will only be displayed when the LaTeX-package
31229 \begin_layout Standard
31230 This restriction can be evaded by using the LaTeX-package
31235 \begin_inset Index idx
31238 \begin_layout Plain Layout
31239 LaTeX-packages ! marginnote
31245 By adding these two lines to your document preamble, the command used by
31246 LyX for margin notes is redefined to use the command provided by the
31253 \begin_layout Standard
31258 usepackage{marginnote}
31259 \begin_inset Newline newline
31271 \begin_layout Standard
31272 This is also used in this document because
31276 has another useful feature: You can set a vertical offset for the note.
31277 This is often needed when too many margin notes are too close together
31278 or for a better page layout.
31279 The offset is set in LyX as TeX-Code directly after the margin note in
31283 \begin_layout Standard
31289 \begin_layout Standard
31290 where the offset is a length with one of the units listed in Table
31291 \begin_inset space ~
31295 \begin_inset CommandInset ref
31297 reference "tab:Units"
31302 A negative value shifts the note up, a positive value shifts it down.
31306 For example the margin note beside this text line is shifted up 1.5
31307 \begin_inset space \thinspace{}
31310 cm with the TeX-Code-command
31311 \begin_inset Quotes eld
31321 \begin_inset Quotes erd
31325 \begin_inset Marginal
31328 \begin_layout Plain Layout
31329 This margin note is shifted up 1.5
31330 \begin_inset space \thinspace{}
31333 cm from its original position.
31345 \begin_layout Plain Layout
31355 \begin_layout Standard
31356 \begin_inset VSpace medskip
31363 you can also change the alignment of the text in the margin note.
31364 For example the commands
31367 \begin_layout Standard
31374 raggedleftmarginnote}{
31377 \begin_inset Newline newline
31384 raggedrightmarginnote}{
31389 \begin_layout Standard
31390 set the alignment to centered.
31395 raggedleftmarginnote
31397 denotes margin notes that appear at the left side.
31404 \begin_layout Plain Layout
31410 raggedleftmarginnote}{
31415 \begin_layout Plain Layout
31421 raggedrightmarginnote}{
31429 \begin_inset Marginal
31432 \begin_layout Plain Layout
31433 The text of this margin note is centered.
31444 \begin_layout Standard
31451 raggedleftmarginnote}{
31454 \begin_inset Newline newline
31461 raggedrightmarginnote}{
31470 \begin_layout Plain Layout
31476 raggedleftmarginnote}{
31481 \begin_layout Plain Layout
31487 raggedrightmarginnote}{
31497 \begin_layout Standard
31498 \begin_inset VSpace medskip
31501 For the other features of
31505 refer to its documentation
31506 \begin_inset CommandInset citation
31515 \begin_layout Standard
31516 \begin_inset VSpace bigskip
31519 You can adjust the layout of margin notes by changing its definition.
31520 To create for example a header for all margin notes with the underlined,
31521 sans-serif, and bold header text
31522 \begin_inset Quotes eld
31534 \begin_inset Quotes erd
31537 , add this to your document preamble:
31540 \begin_layout Standard
31550 \begin_inset Newline newline
31560 \begin_inset Newline newline
31564 \begin_inset Phantom HPhantom
31567 \begin_layout Plain Layout
31570 \begin_inset space ~
31586 underbar{Attention!}}}%
31587 \begin_inset Newline newline
31591 \begin_inset Phantom HPhantom
31594 \begin_layout Plain Layout
31597 \begin_inset space ~
31614 \begin_layout Standard
31621 \begin_layout Plain Layout
31632 \begin_layout Plain Layout
31643 \begin_layout Plain Layout
31651 underbar{Attention!}}}%
31654 \begin_layout Plain Layout
31668 \begin_inset Marginal
31671 \begin_layout Plain Layout
31672 This is a margin note with a defined heading.
31684 \begin_layout Plain Layout
31698 \begin_layout Plain Layout
31715 \begin_inset Note Note
31718 \begin_layout Plain Layout
31719 The margin note format is changed only for this example.
31727 \begin_layout Standard
31731 \begin_layout Plain Layout
31741 \begin_inset Note Note
31744 \begin_layout Plain Layout
31745 The following will be displayed when the LaTeX-package
31757 \begin_layout Standard
31758 You need to install the LaTeX-package
31762 to see the following part of this section in the output.
31765 \begin_layout Standard
31769 \begin_layout Plain Layout
31781 \begin_layout Chapter
31785 \begin_layout Section
31787 \begin_inset Index idx
31790 \begin_layout Plain Layout
31791 Boxes ! Introduction
31799 \begin_layout Standard
31800 Boxes are used to format a block of text.
31801 Boxes can be used to write documents with multiple languages, see section
31802 \begin_inset space ~
31806 \begin_inset CommandInset ref
31808 reference "sec:Minipages"
31812 , to frame texts, see section
31813 \begin_inset space ~
31817 \begin_inset CommandInset ref
31819 reference "sec:Decoration"
31823 , to prevent words from being hyphenated, see section
31824 \begin_inset space ~
31828 \begin_inset CommandInset ref
31830 reference "sec:Prevent-Hyphenation"
31834 , to align text, see section
31835 \begin_inset space ~
31839 \begin_inset CommandInset ref
31841 reference "sub:Vertical-Alignment"
31845 , or to set the background color of texts, see section
31846 \begin_inset space ~
31850 \begin_inset CommandInset ref
31852 reference "sec:Colored-Boxes"
31859 \begin_layout Standard
31860 Boxes can be inserted with the menu
31862 Insert\SpecialChar \menuseparator
31865 or the toolbar button
31868 arg "box-insert Frameless"
31872 A grey box with the label
31877 \begin_inset Graphics
31878 filename clipart/BoxInsetDefaultQt4.png
31880 scaleBeforeRotation
31885 The box type can be specified by right-clicking on the box and selecting
31891 The box dialog offers the
31894 \begin_inset space ~
31916 is the default for new boxes and is explained in section
31917 \begin_inset space ~
31921 \begin_inset CommandInset ref
31923 reference "sec:Minipages"
31931 is described in section
31932 \begin_inset space ~
31936 \begin_inset CommandInset ref
31938 reference "sec:Parboxes"
31947 \begin_inset CommandInset ref
31949 reference "sec:Prevent-Hyphenation"
31956 \begin_layout Standard
31957 Boxes are not numbered and can therefore not be referenced like floats or
31961 \begin_layout Standard
31962 \begin_inset Note Greyedout
31965 \begin_layout Plain Layout
31970 Boxes must not be the item in an
31986 \begin_layout Standard
31987 \begin_inset Note Greyedout
31990 \begin_layout Plain Layout
31995 For an unknown reason you can only set the
31998 \begin_inset space ~
32007 when you use a framed box.
32011 \begin_inset space ~
32016 type and without frames are explained in section
32017 \begin_inset space ~
32021 \begin_inset CommandInset ref
32023 reference "sec:Prevent-Hyphenation"
32035 \begin_layout Section
32037 \begin_inset CommandInset label
32039 name "sec:Box-Dialog"
32044 \begin_inset Index idx
32047 \begin_layout Plain Layout
32056 \begin_layout Subsection
32058 \begin_inset Index idx
32061 \begin_layout Plain Layout
32070 \begin_layout Standard
32071 In the box dialog you can adjust the box geometry in the fields
32080 The available units for the geometry are explained in Table
32081 \begin_inset space ~
32085 \begin_inset CommandInset ref
32087 reference "tab:Units"
32096 offers the following additional sizes:
32099 \begin_layout Description
32100 Depth This is the plain text
32101 \begin_inset Quotes eld
32105 \begin_inset Quotes erd
32109 It ignores the total depth when there are multiple text lines in the box:
32110 \begin_inset Newline newline
32114 \begin_inset Newline newline
32118 \begin_inset Newline newline
32122 \begin_inset Box Boxed
32132 height_special "depth"
32135 \begin_layout Plain Layout
32137 Box height set to 1
32138 \begin_inset space \thinspace{}
32147 \begin_inset Newline newline
32151 \begin_inset Newline newline
32157 \begin_layout Description
32158 Height This is the height of the text that is inside the box.
32160 \begin_inset space \thinspace{}
32164 \begin_inset space \space{}
32167 2 for this size will set the box height to 2
32168 \begin_inset space ~
32171 times the text height:
32172 \begin_inset Box Boxed
32182 height_special "height"
32185 \begin_layout Plain Layout
32187 Box height set to 2
32188 \begin_inset space \thinspace{}
32199 \begin_layout Description
32201 \begin_inset space ~
32204 Height This is the Height
32205 \begin_inset space \thinspace{}
32209 \begin_inset space \thinspace{}
32213 \begin_inset Box Boxed
32223 height_special "totalheight"
32226 \begin_layout Plain Layout
32228 Box height set to 1
32229 \begin_inset space \thinspace{}
32233 \begin_inset space ~
32244 \begin_layout Description
32245 Width This sets the width of the box as height:
32246 \begin_inset Box Boxed
32256 height_special "width"
32259 \begin_layout Plain Layout
32261 Box height set to 1
32262 \begin_inset space \thinspace{}
32273 \begin_layout Subsection
32275 \begin_inset Index idx
32278 \begin_layout Plain Layout
32287 \begin_layout Standard
32288 When you have chosen an
32291 \begin_inset space ~
32296 , the vertical box alignment can be:
32299 \begin_layout Description
32300 Top This is an example text line.
32302 \begin_inset Box Boxed
32312 height_special "totalheight"
32315 \begin_layout Plain Layout
32317 This box is top-aligned.
32322 This is an example text line.
32325 \begin_layout Description
32326 Middle This is an example text line.
32328 \begin_inset Box Boxed
32338 height_special "totalheight"
32341 \begin_layout Plain Layout
32343 This box is middle-aligned.
32348 This is an example text line.
32351 \begin_layout Description
32352 Bottom This is an example text line.
32354 \begin_inset Box Boxed
32364 height_special "totalheight"
32367 \begin_layout Plain Layout
32369 This box is bottom-aligned.
32374 This is an example text line.
32377 \begin_layout Standard
32378 \begin_inset Note Greyedout
32381 \begin_layout Plain Layout
32386 The vertical box alignment can be lost in the output when you have two
32387 boxes in a line and one has e.
32388 \begin_inset space \thinspace{}
32392 \begin_inset space \space{}
32395 a shadow and the other one not.
32403 \begin_layout Standard
32404 The horizontal box alignment can be set via LyX's paragraph dialog when
32405 you set the box into its own paragraph.
32408 \begin_layout Standard
32409 \begin_inset VSpace bigskip
32412 When you have chosen an
32415 \begin_inset space ~
32420 , the box content can be aligned vertically to:
32423 \begin_layout Description
32424 top This is an example text line.
32426 \begin_inset Box Boxed
32436 height_special "totalheight"
32439 \begin_layout Plain Layout
32441 This box text is top-aligned.
32446 This is an example text line.
32449 \begin_layout Description
32450 middle This is an example text line.
32452 \begin_inset Box Boxed
32462 height_special "totalheight"
32465 \begin_layout Plain Layout
32467 This box text is middle-aligned.
32472 This is an example text line.
32475 \begin_layout Description
32476 bottom This is an example text line.
32478 \begin_inset Box Boxed
32488 height_special "totalheight"
32491 \begin_layout Plain Layout
32493 This box text is bottom-aligned.
32498 This is an example text line.
32501 \begin_layout Description
32502 stretch This is an example text line.
32504 \begin_inset Box Boxed
32514 height_special "totalheight"
32517 \begin_layout Plain Layout
32522 \begin_layout Plain Layout
32527 \begin_layout Plain Layout
32534 This is an example text line.
32537 \begin_layout Standard
32538 To stretch the box content, it must consist of more than one paragraph.
32539 In the example above every text line is in an own paragraph.
32542 \begin_layout Standard
32543 \begin_inset VSpace bigskip
32546 To align the box content horizontally you can use LyX's paragraph dialog
32547 when you have chosen an
32550 \begin_inset space ~
32558 \begin_layout Standard
32560 \begin_inset Box Boxed
32570 height_special "totalheight"
32573 \begin_layout Plain Layout
32578 \begin_layout Plain Layout
32583 \begin_layout Plain Layout
32593 \begin_layout Standard
32594 If you have not set an
32597 \begin_inset space ~
32602 , you can align the box content horizontally in the box dialog.
32605 \begin_layout Standard
32607 \begin_inset Box Boxed
32617 height_special "totalheight"
32620 \begin_layout Plain Layout
32621 This box text is horizontally stretched.
32629 \begin_layout Subsection
32631 \begin_inset CommandInset label
32633 name "sec:Decoration"
32638 \begin_inset Index idx
32641 \begin_layout Plain Layout
32650 \begin_layout Standard
32651 The type of the box can be specified in the box dialog in the drop-down
32657 The following types are possible:
32660 \begin_layout Description
32662 \begin_inset space ~
32665 frame Nothing is drawn.
32668 \begin_layout Description
32670 \begin_inset space ~
32674 \begin_inset space ~
32677 frame This draws a rectangular frame around the box.
32678 The frame line thickness has the size of
32686 \begin_inset Box Boxed
32696 height_special "totalheight"
32699 \begin_layout Plain Layout
32709 \begin_layout Description
32711 \begin_inset space ~
32715 \begin_inset space ~
32718 thin This draws an oval frame around the box.
32719 The frame line thickness has the size 0.4
32720 \begin_inset space \thinspace{}
32725 \begin_inset Box ovalbox
32735 height_special "totalheight"
32738 \begin_layout Plain Layout
32748 \begin_layout Description
32750 \begin_inset space ~
32754 \begin_inset space ~
32757 thick This draws an oval frame around the box.
32758 The frame line thickness has the size 0.8
32759 \begin_inset space \thinspace{}
32764 \begin_inset Box Ovalbox
32774 height_special "totalheight"
32777 \begin_layout Plain Layout
32787 \begin_layout Description
32789 \begin_inset space ~
32792 shadow This draws a rectangular frame with a shadow around the box.
32793 The frame line thickness has the size of
32799 , the shadow has a width of 4
32800 \begin_inset space \thinspace{}
32805 \begin_inset Box Shadowbox
32815 height_special "totalheight"
32818 \begin_layout Plain Layout
32828 \begin_layout Description
32830 \begin_inset space ~
32833 background This draws a box with a red background.
32834 Unlike colored boxes
32838 \begin_layout Plain Layout
32840 \begin_inset space \thinspace{}
32844 \begin_inset CommandInset ref
32846 reference "sec:Colored-Boxes"
32855 , it always uses the whole column width and the box is set as its own paragraph.
32857 \begin_inset Box Shaded
32867 height_special "totalheight"
32870 \begin_layout Plain Layout
32871 Shaded background box
32879 \begin_layout Description
32881 \begin_inset space ~
32885 \begin_inset space ~
32888 frame This draws a double-line rectangular frame around the box.
32889 The line thickness of the inner frame is 0.75
32890 \begin_inset space \thinspace{}
32899 , the thickness of the outer frame is 1.5
32900 \begin_inset space \thinspace{}
32910 The distance between the lines is 1.5
32911 \begin_inset space \thinspace{}
32921 \begin_inset space \thinspace{}
32925 \begin_inset space \thinspace{}
32929 \begin_inset space \thinspace{}
32934 \begin_inset Box Doublebox
32944 height_special "totalheight"
32947 \begin_layout Plain Layout
32949 Double rectangular box
32957 \begin_layout Standard
32958 \begin_inset VSpace bigskip
32961 LyX's box label will reflect the different frame types.
32962 To be able to use all types, the LaTeX-package
32967 \begin_inset Index idx
32970 \begin_layout Plain Layout
32971 LaTeX-packages ! fancybox
32979 \begin_layout Standard
32980 \begin_inset VSpace bigskip
32983 When you use the decoration
32985 simple rectangular frame
32987 and no inner box, you can allow page breaks within a box.
32988 Note that then, unlike other framed boxes, the frame always uses the whole
32989 column width, the box is set as its own paragraph, and
33001 have no effect on this box type.
33002 The frame line thickness has the size of
33010 \begin_inset Box Framed
33020 height_special "totalheight"
33023 \begin_layout Plain Layout
33024 Allow page break box
33032 \begin_layout Section
33034 \begin_inset Index idx
33037 \begin_layout Plain Layout
33038 Boxes ! Customization
33046 \begin_layout Standard
33047 The default value for the size
33054 \begin_inset space \thinspace{}
33058 It can be changed with the following command in TeX-code to e.
33059 \begin_inset space \thinspace{}
33063 \begin_inset space \space{}
33067 \begin_inset space \thinspace{}
33073 \begin_layout Standard
33083 \begin_layout Standard
33087 \begin_layout Plain Layout
33099 \begin_inset Box Boxed
33109 height_special "totalheight"
33112 \begin_layout Plain Layout
33114 Rectangular box with
33121 \begin_inset space \thinspace{}
33125 \begin_inset space \thinspace{}
33129 \begin_inset space \thinspace{}
33141 \begin_layout Plain Layout
33155 \begin_layout Standard
33156 \begin_inset VSpace bigskip
33159 The space between the frame and the box content is for all frame styles
33161 \begin_inset space \thinspace{}
33165 You can change it by setting the length
33172 For example the command
33175 \begin_layout Standard
33185 \begin_layout Standard
33186 sets the value to 10
33187 \begin_inset space \thinspace{}
33190 pt, as with the following box:
33193 \begin_layout Standard
33197 \begin_layout Plain Layout
33209 \begin_inset Box Boxed
33219 height_special "totalheight"
33222 \begin_layout Plain Layout
33224 Rectangular box with
33231 \begin_inset space \thinspace{}
33235 \begin_inset space \thinspace{}
33239 \begin_inset space \thinspace{}
33251 \begin_layout Plain Layout
33265 \begin_layout Standard
33266 \begin_inset VSpace bigskip
33269 The diameter of the round corners of the oval boxes can be set with the
33280 \begin_layout Standard
33288 \begin_layout Standard
33289 sets the diameter to 1
33290 \begin_inset space \thinspace{}
33297 \begin_layout Standard
33305 \begin_layout Standard
33306 sets the diameter to
33309 \begin_inset space \thinspace{}
33313 \begin_inset space \thinspace{}
33316 minimum(width and height of box)
33328 \begin_layout Standard
33332 \begin_layout Plain Layout
33342 \begin_inset Box Ovalbox
33352 height_special "totalheight"
33355 \begin_layout Plain Layout
33364 \begin_inset space \thinspace{}
33368 \begin_inset space \thinspace{}
33372 \begin_inset space \thinspace{}
33384 \begin_layout Plain Layout
33396 \begin_layout Standard
33397 \begin_inset VSpace bigskip
33400 The size of the shadow can be adjusted by changing the length
33408 \begin_inset space \thinspace{}
33411 pt for the following box by this command:
33414 \begin_layout Standard
33424 \begin_layout Standard
33428 \begin_layout Plain Layout
33440 \begin_inset Box Shadowbox
33450 height_special "totalheight"
33453 \begin_layout Plain Layout
33462 \begin_inset space \thinspace{}
33466 \begin_inset space \thinspace{}
33470 \begin_inset space \thinspace{}
33482 \begin_layout Plain Layout
33496 \begin_layout Standard
33497 \begin_inset VSpace bigskip
33503 \begin_layout Standard
33504 The default value for the size
33511 \begin_inset space \thinspace{}
33515 The default space between the note content and the frame is 9
33516 \begin_inset space \thinspace{}
33519 pt and can be changed with the value of
33526 For example the frame appearance of the following
33530 is set with the TeX-Code commands
33533 \begin_layout Standard
33541 \begin_inset Newline newline
33551 \begin_layout Standard
33555 \begin_layout Plain Layout
33564 \begin_layout Plain Layout
33576 \begin_inset Box Framed
33586 height_special "totalheight"
33589 \begin_layout Plain Layout
33603 \begin_layout Plain Layout
33612 \begin_layout Plain Layout
33626 \begin_layout Standard
33627 \begin_inset VSpace bigskip
33633 \begin_layout Standard
33638 boxes the default space between the box content and the box border is 3
33639 \begin_inset space \thinspace{}
33642 pt and can be changed with the value of
33649 The default background color red can either be changed locally with the
33654 definecolor{shadecolor}
33656 or globally with the menu
33658 Tools\SpecialChar \menuseparator
33659 Preferences\SpecialChar \menuseparator
33660 Colors\SpecialChar \menuseparator
33662 \begin_inset space ~
33674 command is explained in section
33675 \begin_inset space ~
33679 \begin_inset CommandInset ref
33681 reference "sec:Colored-Tables"
33689 \begin_layout Plain Layout
33696 requires the LaTeX-package
33700 in the preamble, see section
33701 \begin_inset space ~
33705 \begin_inset CommandInset ref
33707 reference "sec:Colored-Boxes"
33716 For example the appearance of the following shaded background box is set
33717 with the TeX-Code commands
33720 \begin_layout Standard
33730 \begin_inset Newline newline
33737 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33740 \begin_layout Standard
33744 \begin_layout Plain Layout
33753 \begin_layout Plain Layout
33757 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33763 \begin_inset Box Shaded
33773 height_special "totalheight"
33776 \begin_layout Plain Layout
33779 This is yellow text in a
33789 box with dark green background.
33798 \begin_layout Plain Layout
33807 \begin_layout Plain Layout
33811 definecolor{shadecolor}{rgb}{1,0,0}
33819 \begin_layout Standard
33820 \begin_inset VSpace bigskip
33823 Changed lengths and widths are valid for all boxes following the commands
33827 \begin_layout Section
33829 \begin_inset CommandInset label
33831 name "sec:Minipages"
33836 \begin_inset Index idx
33839 \begin_layout Plain Layout
33848 \begin_layout Standard
33849 Minipages are treated by LaTeX as pages within pages and can therefore for
33850 example have their own footnotes.
33853 \begin_layout Standard
33854 Minipages are useful when you write documents with different languages.
33857 \begin_layout Standard
33858 Below are two example minipages side by side.
33859 Their width is set to 45
33860 \begin_inset space \thinspace{}
33863 col% and they are separated by a horizontal fill, that was inserted via
33866 Insert\SpecialChar \menuseparator
33868 \begin_inset space ~
33871 Formatting\SpecialChar \menuseparator
33873 \begin_inset space ~
33879 \begin_inset Newpage newpage
33885 \begin_layout Standard
33886 \begin_inset Box Frameless
33896 height_special "totalheight"
33899 \begin_layout Plain Layout
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.
33910 Dies ist ein deutscher Text.
33911 Dies ist ein deutscher Text.
33912 Dies ist ein deutscher Text.
33913 Dies ist ein deutscher Text.
33914 Dies ist ein deutscher Text
33918 \begin_layout Plain Layout
33921 Dies ist eine deutsche Fußnote.
33927 Dies ist ein deutscher Text.
33928 Dies ist ein deutscher Text.
33934 \begin_inset space \hfill{}
33938 \begin_inset Box Frameless
33948 height_special "totalheight"
33951 \begin_layout Plain Layout
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.
33963 This is an English Text.
33964 This is an English Text.
33965 This is an English Text.
33966 This is an English Text.
33967 This is an English Text.
33971 \begin_layout Plain Layout
33972 This is an English footnote.
33977 This is an English Text.
33985 \begin_layout Standard
33986 \begin_inset VSpace bigskip
33989 The document-wide paragraph settings are ignored within minipages.
33990 That means that there will be no space between paragraphs in minipages
33991 although you set it to e.
33992 \begin_inset space \thinspace{}
33996 \begin_inset space \space{}
34003 in the document settings.
34006 \begin_layout Standard
34007 Minipages can also be used to set a background color for text parts, see
34009 \begin_inset space ~
34013 \begin_inset CommandInset ref
34015 reference "sub:Color-for-Paragraphs"
34022 \begin_layout Standard
34023 \begin_inset Note Greyedout
34026 \begin_layout Plain Layout
34031 You cannot have floats or margin notes inside minipages but minipages can
34032 be used inside tables, floats, and other boxes.
34040 \begin_layout Section
34042 \begin_inset CommandInset label
34044 name "sec:Parboxes"
34049 \begin_inset Index idx
34052 \begin_layout Plain Layout
34061 \begin_layout Standard
34062 Parboxes are very similar to minipages with the difference that they cannot
34066 \begin_layout Standard
34068 \begin_inset Box Frameless
34078 height_special "totalheight"
34081 \begin_layout Plain Layout
34082 This a text within a parbox.
34083 This a text within a parbox.
34086 \begin_layout Plain Layout
34087 This footnote won't appear:
34091 \begin_layout Plain Layout
34092 This footnote is inside a parbox and will therefore not appear.
34105 \begin_layout Section
34106 Boxes for Words and Characters
34107 \begin_inset Index idx
34110 \begin_layout Plain Layout
34111 Boxes ! for Characters
34119 \begin_layout Subsection
34120 Prevent Hyphenation
34121 \begin_inset CommandInset label
34123 name "sec:Prevent-Hyphenation"
34128 \begin_inset Index idx
34131 \begin_layout Plain Layout
34132 Boxes ! to Prevent Hyphenation
34140 \begin_layout Standard
34141 You can use the box type
34145 to prevent words or text from being hyphenated.
34146 \begin_inset Newline newline
34149 Here is an example text:
34152 \begin_layout Standard
34153 This line is an example to show how you can prevent the hyphenation of
34154 \begin_inset Quotes eld
34158 \begin_inset Quotes erd
34164 \begin_layout Standard
34165 To prevent the hyphenation of the word
34166 \begin_inset Quotes eld
34170 \begin_inset Quotes erd
34173 , put the word into a box, set the
34176 \begin_inset space ~
34186 \begin_inset space \thinspace{}
34192 \begin_layout Standard
34193 This is the result:
34196 \begin_layout Standard
34197 This line is an example to show how you can prevent the hyphenation of
34198 \begin_inset Box Frameless
34208 height_special "totalheight"
34211 \begin_layout Plain Layout
34212 \begin_inset Quotes eld
34216 \begin_inset Quotes erd
34227 \begin_layout Standard
34228 You can alternatively set the command
34229 \begin_inset Quotes eld
34239 \begin_inset Quotes grd
34242 as TeX-Code directly before the word:
34245 \begin_layout Standard
34246 This line is an example to show how you can prevent the hyphenation of
34247 \begin_inset Quotes eld
34254 \begin_layout Plain Layout
34264 \begin_inset Quotes erd
34270 \begin_layout Standard
34271 Of course the word now protrudes over the side margin.
34272 To avoid this, add via the menu
34274 Insert\SpecialChar \menuseparator
34275 Formatting\SpecialChar \menuseparator
34277 \begin_inset space ~
34281 \begin_inset space ~
34289 arg "newline-insert newline"
34292 ) a line break before the word:
34295 \begin_layout Standard
34296 This line is an example to show how you can prevent the hyphenation of
34297 \begin_inset Newline newline
34301 \begin_inset Box Frameless
34311 height_special "totalheight"
34314 \begin_layout Plain Layout
34315 \begin_inset Quotes eld
34319 \begin_inset Quotes erd
34330 \begin_layout Subsection
34332 \begin_inset CommandInset label
34334 name "sub:Vertical-Alignment"
34339 \begin_inset Index idx
34342 \begin_layout Plain Layout
34343 Boxes ! for Vertical Alignment
34349 \begin_inset Index idx
34352 \begin_layout Plain Layout
34361 \begin_layout Standard
34362 With the help of the command
34368 you can align words, characters or other boxes vertically relative to the
34376 is used with the following scheme:
34379 \begin_layout Standard
34384 raisebox{lift}[height][depth]{box content}
34387 \begin_layout Standard
34388 The lift can be a positive value to raise the box or a negative value to
34392 \begin_layout Standard
34393 To align for example the word
34394 \begin_inset Quotes eld
34398 \begin_inset Quotes erd
34401 so that the bottom of the
34402 \begin_inset Quotes eld
34406 \begin_inset Quotes erd
34410 \begin_inset Quotes eld
34414 \begin_inset Quotes erd
34417 is at the baseline, insert the command
34420 \begin_layout Standard
34430 \begin_layout Standard
34431 in TeX-Code before the word.
34432 After the word insert a closing brace
34433 \begin_inset Quotes eld
34441 \begin_inset Quotes erd
34445 \begin_inset Newline newline
34448 This is the result:
34451 \begin_layout Standard
34452 This is a text line with the word
34456 \begin_layout Plain Layout
34468 \begin_inset Quotes eld
34472 \begin_inset Quotes erd
34479 \begin_layout Plain Layout
34489 \begin_layout Standard
34490 \begin_inset VSpace bigskip
34493 When you raise or lower characters in a line, the line distance will be
34497 \begin_layout Standard
34498 This is a text line with the word
34502 \begin_layout Plain Layout
34514 \begin_inset Quotes eld
34518 \begin_inset Quotes erd
34525 \begin_layout Plain Layout
34533 \begin_inset Newline newline
34536 This is a text line with the word
34540 \begin_layout Plain Layout
34550 \begin_inset Quotes eld
34554 \begin_inset Quotes erd
34561 \begin_layout Plain Layout
34571 \begin_layout Standard
34572 If you want to prevent this for a certain reason, set the box height to
34577 \begin_layout Standard
34587 \begin_layout Standard
34588 This is a text line with the word
34592 \begin_layout Plain Layout
34604 \begin_inset Quotes eld
34608 \begin_inset Quotes erd
34615 \begin_layout Plain Layout
34623 \begin_inset Newline newline
34626 This is a text line with the word
34630 \begin_layout Plain Layout
34634 raisebox{0.5cm}[0pt]{
34640 \begin_inset Quotes eld
34644 \begin_inset Quotes erd
34651 \begin_layout Plain Layout
34661 \begin_layout Section
34663 \begin_inset CommandInset label
34665 name "sec:Colored-Boxes"
34670 \begin_inset Index idx
34673 \begin_layout Plain Layout
34682 \begin_layout Subsection
34684 \begin_inset Index idx
34687 \begin_layout Plain Layout
34696 \begin_layout Standard
34697 To color the background of text the text must be put into a so called
34698 \begin_inset Quotes eld
34702 \begin_inset Quotes erd
34706 This requires that the LaTeX-package
34711 \begin_inset Index idx
34714 \begin_layout Plain Layout
34715 LaTeX-packages ! color
34720 is loaded in the document preamble with the command
34723 \begin_layout Standard
34728 @ifundefined{textcolor}
34729 \begin_inset Newline newline
34733 \begin_inset Phantom HPhantom
34736 \begin_layout Plain Layout
34739 \begin_inset space ~
34749 usepackage{color}}{}
34752 \begin_layout Standard
34757 will be loaded automatically by LyX when you color text.
34761 \begin_layout Plain Layout
34762 To avoid it being loaded twice the command
34776 \begin_layout Standard
34777 \begin_inset VSpace medskip
34780 Colorboxes are created with the command
34787 This will be used with the following scheme:
34790 \begin_layout Standard
34795 colorbox{color}{box content}
34798 \begin_layout Standard
34799 The box content can also be a box and colorboxes can also be within other
34803 \begin_layout Standard
34804 The following colors are predefined:
34805 \begin_inset Newline newline
34844 \begin_inset Newline newline
34847 You can also define your own color as described in section
34848 \begin_inset space ~
34852 \begin_inset CommandInset ref
34854 reference "sec:Colored-Tables"
34861 \begin_layout Standard
34863 \begin_inset space \thinspace{}
34867 \begin_inset space \space{}
34870 a red background for a word, insert the command
34873 \begin_layout Standard
34881 \begin_layout Standard
34882 before the word in TeX-Code.
34883 After the word insert a closing brace
34884 \begin_inset Quotes eld
34892 \begin_inset Quotes erd
34896 \begin_inset Newline newline
34899 This is the result:
34902 \begin_layout Standard
34903 This is a line where the word
34907 \begin_layout Plain Layout
34917 \begin_inset Quotes eld
34921 \begin_inset Quotes erd
34928 \begin_layout Plain Layout
34935 has a red background.
34938 \begin_layout Standard
34939 \begin_inset VSpace bigskip
34942 If you would like the box frame in a different color, you can use the command
34949 with the following scheme:
34952 \begin_layout Standard
34957 fcolorbox{frame color}{box color}{box content}
34960 \begin_layout Standard
34974 The frame thickness and the space between the frame and the box content
34975 can be adjusted with the lengths
34987 , respectively, as described in section
34988 \begin_inset space ~
34992 \begin_inset CommandInset ref
34994 reference "sec:Decoration"
35001 \begin_layout Standard
35002 For the following example the command
35005 \begin_layout Standard
35010 fcolorbox{cyan}{magenta}{
35013 \begin_layout Standard
35017 \begin_layout Standard
35018 Here is an example where the frame line thickness was set to 1
35019 \begin_inset space \thinspace{}
35023 \begin_inset Newline newline
35030 \begin_layout Plain Layout
35045 \begin_layout Plain Layout
35049 fcolorbox{cyan}{magenta}{
35054 This is text within a colored, framed box.
35058 \begin_layout Plain Layout
35068 \begin_layout Standard
35069 \begin_inset VSpace bigskip
35072 Of course you can also have colored text inside a colorbox:
35073 \begin_inset Newline newline
35080 \begin_layout Plain Layout
35084 fcolorbox{cyan}{magenta}{
35091 This is colored text within a colored, framed box.
35097 \begin_layout Plain Layout
35108 \begin_layout Plain Layout
35122 \begin_layout Standard
35123 \begin_inset VSpace medskip
35129 \begin_layout Standard
35130 \begin_inset Note Greyedout
35133 \begin_layout Plain Layout
35138 Text in colorboxes cannot have line breaks.
35139 To color multiple text lines or paragraphs, use a box inside a colorbox
35140 as described in the following.
35148 \begin_layout Subsection
35149 Color for Paragraphs
35150 \begin_inset CommandInset label
35152 name "sub:Color-for-Paragraphs"
35157 \begin_inset Index idx
35160 \begin_layout Plain Layout
35161 Color ! for Paragraphs
35169 \begin_layout Standard
35170 To set the background color for more than one text line, put the text into
35172 Before the minipage insert the
35181 \begin_layout Standard
35189 \begin_layout Standard
35191 After the minipage insert a closing brace
35192 \begin_inset Quotes eld
35200 \begin_inset Quotes erd
35206 \begin_layout Standard
35210 \begin_layout Plain Layout
35214 colorbox{lightgrey}{
35220 \begin_inset Box Frameless
35230 height_special "totalheight"
35233 \begin_layout Plain Layout
35234 This is text with background color.
35235 This is text with background color.
35238 \begin_layout Plain Layout
35239 \begin_inset VSpace defskip
35242 The text can have footnotes
35246 \begin_layout Plain Layout
35247 Another example footnote
35252 and can include tables and figures.
35255 \begin_layout Plain Layout
35257 \begin_inset Tabular
35258 <lyxtabular version="3" rows="3" columns="3">
35259 <features rotate="0" tabularvalignment="middle">
35260 <column alignment="center" valignment="top" width="0">
35261 <column alignment="center" valignment="top" width="0">
35262 <column alignment="center" valignment="top" width="0">
35264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35267 \begin_layout Plain Layout
35273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35276 \begin_layout Plain Layout
35282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35285 \begin_layout Plain Layout
35293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35296 \begin_layout Plain Layout
35302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35305 \begin_layout Plain Layout
35307 \begin_inset Quotes erd
35315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35318 \begin_layout Plain Layout
35326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35329 \begin_layout Plain Layout
35335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35338 \begin_layout Plain Layout
35344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35347 \begin_layout Plain Layout
35367 \begin_layout Plain Layout
35377 \begin_layout Section
35378 Rotated and Scaled Boxes
35381 \begin_layout Standard
35382 To use the commands described in this section, the LaTeX-package
35387 \begin_inset Index idx
35390 \begin_layout Plain Layout
35391 LaTeX-packages ! graphicx
35396 needs to be loaded in the document preamble with the command
35399 \begin_layout Standard
35404 @ifundefined{rotatebox}
35405 \begin_inset Newline newline
35409 \begin_inset Phantom HPhantom
35412 \begin_layout Plain Layout
35415 \begin_inset space ~
35425 usepackage{graphicx}}{}
35428 \begin_layout Standard
35429 \begin_inset Note Greyedout
35432 \begin_layout Plain Layout
35437 Not all DVI-viewers are able to display rotated or scaled material.
35445 \begin_layout Standard
35446 \begin_inset Note Greyedout
35449 \begin_layout Plain Layout
35454 Floats are not allowed inside a rotated or scaled box.
35462 \begin_layout Subsection
35464 \begin_inset Index idx
35467 \begin_layout Plain Layout
35474 \begin_inset Index idx
35477 \begin_layout Plain Layout
35486 \begin_layout Standard
35487 To rotate material, you can put it into a rotated box.
35488 Such a box is created using the command
35494 in TeX-Code with the following scheme:
35497 \begin_layout Standard
35502 rotatebox[rotation origin]{rotation angle}{box content}
35505 \begin_layout Standard
35506 The rotation origin is specified in the form
35511 The following positions are possible:
35531 (top), along with meaningful combinations of the four base positions.
35536 means that the rotation origin is at the top left corner of the box.
35537 When no rotation origin is specified, the position
35542 The rotation angle is a number that can be negative that specifies the
35544 The rotation direction is counterclockwise.
35547 \begin_layout Standard
35548 In the following example the command
35552 rotatebox[origin=c]{60}{
35554 was inserted as TeX-Code before the text
35555 \begin_inset Quotes eld
35559 \begin_inset Quotes erd
35562 ; after the text the box was closed by a closing brace
35569 \begin_layout Standard
35574 \begin_layout Plain Layout
35578 rotatebox[origin=c]{60}{
35587 \begin_layout Plain Layout
35597 \begin_layout Standard
35598 The box content can also be another box or an inline formula:
35601 \begin_layout Standard
35606 \begin_layout Plain Layout
35610 rotatebox[origin=r]{-60}{
35616 \begin_inset Box Doublebox
35626 height_special "totalheight"
35629 \begin_layout Plain Layout
35639 \begin_layout Plain Layout
35650 \begin_layout Plain Layout
35654 rotatebox[origin=lb]{60}{
35660 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35667 \begin_layout Plain Layout
35677 \begin_layout Standard
35678 or an image or table:
35681 \begin_layout Standard
35686 \begin_layout Plain Layout
35690 rotatebox[origin=lb]{90}{
35696 \begin_inset Graphics
35697 filename clipart/platypus.eps
35707 \begin_layout Plain Layout
35714 with a rotated image
35718 \begin_layout Plain Layout
35722 rotatebox[origin=l]{-90}{
35728 \begin_inset Tabular
35729 <lyxtabular version="3" rows="2" columns="2">
35730 <features rotate="0" tabularvalignment="middle">
35731 <column alignment="center" valignment="top" width="0">
35732 <column alignment="center" valignment="top" width="0">
35734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35737 \begin_layout Plain Layout
35743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35746 \begin_layout Plain Layout
35754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35757 \begin_layout Plain Layout
35763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35766 \begin_layout Plain Layout
35781 \begin_layout Plain Layout
35789 \begin_inset Index idx
35792 \begin_layout Plain Layout
35799 \begin_inset Index idx
35802 \begin_layout Plain Layout
35803 Table Customization ! Rotating
35811 \begin_layout Subsection
35813 \begin_inset Index idx
35816 \begin_layout Plain Layout
35823 \begin_inset Index idx
35826 \begin_layout Plain Layout
35835 \begin_layout Standard
35836 To scale material the commands
35848 can be used as TeX-Code.
35851 \begin_layout Standard
35858 is used with the following scheme:
35861 \begin_layout Standard
35866 scalebox{horizontal}[vertical]{box content}
35869 \begin_layout Standard
35870 Horizontal and vertical are the corresponding scaling factors.
35871 If no vertical scaling factor is given, the horizontal factor will also
35872 be used as the vertical one.
35875 \begin_layout Standard
35882 creates for example a double size
35886 \begin_layout Plain Layout
35899 \begin_layout Plain Layout
35906 , compared with the document text size.
35909 \begin_layout Standard
35914 scalebox{2}[1]{Hello}
35916 on the other hand distorts the
35920 \begin_layout Plain Layout
35933 \begin_layout Plain Layout
35943 \begin_layout Standard
35944 If the scaling factor is negative, the box content will be mirrored.
35945 Therefore the command
35949 scalebox{-1}[1]{Hello}
35951 can be used to create mirror writing:
35955 \begin_layout Plain Layout
35968 \begin_layout Plain Layout
35978 \begin_layout Standard
35983 scalebox{1}[-1]{Hello}
35989 \begin_layout Plain Layout
36002 \begin_layout Plain Layout
36012 \begin_layout Standard
36017 scalebox{-1}[1]{box content}
36019 there exists the command
36020 \begin_inset Newline newline
36027 reflectbox{box content}
36032 \begin_layout Standard
36033 \begin_inset VSpace bigskip
36042 is used to scale the box to a defined width and height.
36043 The command scheme is:
36046 \begin_layout Standard
36051 resizebox{width}{height}{box content}
36054 \begin_layout Standard
36055 If one of the two command arguments given is an exclamation mark
36059 , the size is set so that the aspect ratio of the box content is kept.
36062 \begin_layout Standard
36067 resizebox{2cm}{1cm}{Hello}
36073 \begin_layout Plain Layout
36077 resizebox{2cm}{1cm}{
36086 \begin_layout Plain Layout
36094 \begin_inset Newline newline
36101 resizebox{2cm}{!}{Hello}
36107 \begin_layout Plain Layout
36120 \begin_layout Plain Layout
36130 \begin_layout Standard
36131 \begin_inset VSpace bigskip
36135 \begin_inset Note Greyedout
36138 \begin_layout Plain Layout
36155 are set to zero, no LaTeX-errors occur when exporting the document but
36156 the exported files can not or only partly be displayed.
36164 \begin_layout Standard
36165 \begin_inset VSpace bigskip
36171 \begin_layout Standard
36172 The boxes can be combined in any order.
36174 \begin_inset space \thinspace{}
36178 \begin_inset space \space{}
36182 \begin_inset Newline newline
36189 rotatebox[origin=c]{-45}{
36193 reflectbox{Hello}}}
36194 \begin_inset Newline newline
36202 \begin_layout Standard
36207 \begin_layout Plain Layout
36211 rotatebox[origin=c]{-45}{
36224 \begin_layout Plain Layout
36234 \begin_layout Standard
36236 Images, tables, and inline formulas are allowed as box content:
36239 \begin_layout Standard
36244 \begin_layout Plain Layout
36248 rotatebox[origin=c]{-30}{
36258 \begin_inset Graphics
36259 filename clipart/platypus.eps
36269 \begin_layout Plain Layout
36280 \begin_layout Plain Layout
36284 rotatebox[origin=c]{-45}{
36294 \begin_inset Tabular
36295 <lyxtabular version="3" rows="2" columns="2">
36296 <features rotate="0" tabularvalignment="middle">
36297 <column alignment="center" valignment="top" width="0">
36298 <column alignment="center" valignment="top" width="0">
36300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36303 \begin_layout Plain Layout
36309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36312 \begin_layout Plain Layout
36320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36323 \begin_layout Plain Layout
36329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36332 \begin_layout Plain Layout
36347 \begin_layout Plain Layout
36358 \begin_layout Plain Layout
36362 rotatebox[origin=c]{-45}{
36372 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36379 \begin_layout Plain Layout
36387 \begin_inset Index idx
36390 \begin_layout Plain Layout
36397 \begin_inset Index idx
36400 \begin_layout Plain Layout
36401 Table Customization ! Scaling
36409 \begin_layout Standard
36410 When the global formula style
36414 is used in the document
36418 \begin_layout Plain Layout
36420 \begin_inset Quotes eld
36424 \begin_inset Quotes erd
36427 is added to the document class options.
36432 , display style formulas can also be scaled.
36435 \begin_layout Chapter
36436 Objects Surrounded by Text
36437 \begin_inset Index idx
36440 \begin_layout Plain Layout
36449 \begin_layout Section
36451 \begin_inset CommandInset label
36453 name "sec:Wrap-Floats"
36458 \begin_inset Index idx
36461 \begin_layout Plain Layout
36462 Floats ! Wrap Floats
36468 \begin_inset Index idx
36471 \begin_layout Plain Layout
36472 Surrounded by text ! Wrap Floats
36480 \begin_layout Standard
36481 \begin_inset Wrap figure
36488 \begin_layout Plain Layout
36489 \begin_inset Graphics
36490 filename clipart/mobius.eps
36492 scaleBeforeRotation
36493 rotateOrigin center
36500 \begin_layout Plain Layout
36501 \begin_inset Caption Standard
36503 \begin_layout Plain Layout
36504 \begin_inset CommandInset label
36506 name "fig:This-is-a"
36510 This is a figure wrap float.
36520 This float type is used if you want to wrap text around a figure or table
36521 so that it only occupies some fraction of the column width.
36522 It can be inserted using the menu
36524 Insert\SpecialChar \menuseparator
36525 Floats\SpecialChar \menuseparator
36527 \begin_inset space ~
36531 \begin_inset space ~
36539 \begin_inset space ~
36543 \begin_inset space ~
36548 if the LaTeX-package
36553 \begin_inset Index idx
36556 \begin_layout Plain Layout
36557 LaTeX-packages ! wrapfig
36566 \begin_layout Plain Layout
36567 Installing a LaTeX-package is explained it in the
36570 \begin_inset space ~
36580 The settings of the float can be modified by right-clicking on the float
36582 The mandatory settings are the float
36595 that specifies how much the float is set into the paragraph
36596 \begin_inset space \thinspace{}
36600 \begin_inset space \thinspace{}
36603 page margin, and the
36606 \begin_inset space ~
36611 that specifies how many text lines the float will approximately need.
36612 The line span is often hard to approximate; so it is better only to use
36613 it when you encounter float placement problems.
36614 You can furthermore decide if LaTeX is allowed to let the float float within
36615 the paragraph or to surrounding paragraphs.
36617 \begin_inset space ~
36621 \begin_inset CommandInset ref
36623 reference "fig:This-is-a"
36627 is an example text wrap float with a width of 40
36628 \begin_inset space \thinspace{}
36632 \begin_inset space \thinspace{}
36635 cm overhang, set to the left.
36638 \begin_layout Standard
36639 \begin_inset Note Greyedout
36642 \begin_layout Plain Layout
36648 \begin_inset space ~
36651 wrap float floats are fragile! E.
36652 \begin_inset space \thinspace{}
36656 \begin_inset space \space{}
36659 having a figure too close to the bottom of the page can mess things up in
36660 such a way that the float does not appear in the output or that it is placed
36661 over some other text.
36669 \begin_layout Standard
36670 In general, the following applies for wrap floats:
36673 \begin_layout Itemize
36674 They should not be placed in paragraphs that run over a page break.
36675 That means that wrap floats are better inserted in their exact place when
36676 the document is almost finished and you are able to estimate where page
36677 breaks will appear.
36680 \begin_layout Itemize
36681 They should either be placed in their own paragraph before the paragraph
36682 where they should wrap into or within a paragraph.
36685 \begin_layout Itemize
36686 In consecutive paragraphs they may cause troubles, so ensure that there
36687 is a text paragraph between them as separator.
36690 \begin_layout Itemize
36691 They are not allowed in section headings or tables.
36694 \begin_layout Itemize
36695 Their numbering and referencing works as described in chap.
36696 \begin_inset space \thinspace{}
36700 \begin_inset CommandInset ref
36702 reference "chap:Floats"
36709 \begin_layout Section
36710 Surrounded Fixed Objects
36711 \begin_inset Index idx
36714 \begin_layout Plain Layout
36715 Surrounded by text ! Fixed objects
36723 \begin_layout Standard
36724 The wrap floats described in sec.
36725 \begin_inset space \thinspace{}
36729 \begin_inset CommandInset ref
36731 reference "sec:Wrap-Floats"
36735 have these positions in the paragraph:
36738 \begin_layout Standard
36741 \begin_inset Tabular
36742 <lyxtabular version="3" rows="2" columns="2">
36743 <features rotate="0" tabularvalignment="middle">
36744 <column alignment="center" valignment="top" width="0">
36745 <column alignment="center" valignment="top" width="0">
36747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36750 \begin_layout Plain Layout
36751 \begin_inset Graphics
36752 filename ../images/dialog-show-new-inset_graphics.png
36754 scaleBeforeRotation
36763 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36766 \begin_layout Plain Layout
36774 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36777 \begin_layout Plain Layout
36783 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36786 \begin_layout Plain Layout
36798 \begin_inset Tabular
36799 <lyxtabular version="3" rows="2" columns="2">
36800 <features rotate="0" tabularvalignment="middle">
36801 <column alignment="center" valignment="top" width="0">
36802 <column alignment="center" valignment="top" width="0">
36804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36807 \begin_layout Plain Layout
36813 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36816 \begin_layout Plain Layout
36817 \begin_inset Graphics
36818 filename ../images/dialog-show-new-inset_graphics.png
36820 scaleBeforeRotation
36831 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36834 \begin_layout Plain Layout
36840 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36843 \begin_layout Plain Layout
36857 \begin_layout Standard
36858 To get an object exactly at the position where it is inserted, for example
36859 to get one of these positions:
36860 \begin_inset VSpace defskip
36866 \begin_layout Standard
36869 \begin_inset Tabular
36870 <lyxtabular version="3" rows="2" columns="2">
36871 <features rotate="0" tabularvalignment="middle">
36872 <column alignment="center" valignment="top" width="0">
36873 <column alignment="center" valignment="top" width="0">
36875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36878 \begin_layout Plain Layout
36884 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36887 \begin_layout Plain Layout
36895 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36898 \begin_layout Plain Layout
36899 \begin_inset Graphics
36900 filename ../images/dialog-show-new-inset_graphics.png
36902 scaleBeforeRotation
36911 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36914 \begin_layout Plain Layout
36926 \begin_inset Tabular
36927 <lyxtabular version="3" rows="2" columns="2">
36928 <features rotate="0" tabularvalignment="middle">
36929 <column alignment="center" valignment="top" width="0">
36930 <column alignment="center" valignment="top" width="0">
36932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36935 \begin_layout Plain Layout
36941 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36944 \begin_layout Plain Layout
36952 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36955 \begin_layout Plain Layout
36961 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36964 \begin_layout Plain Layout
36965 \begin_inset Graphics
36966 filename ../images/dialog-show-new-inset_graphics.png
36968 scaleBeforeRotation
36983 \begin_inset Tabular
36984 <lyxtabular version="3" rows="2" columns="3">
36985 <features rotate="0" tabularvalignment="middle">
36986 <column alignment="center" valignment="top" width="0">
36987 <column alignment="center" valignment="top" width="0">
36988 <column alignment="center" valignment="top" width="0">
36990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36993 \begin_layout Plain Layout
36999 <cell alignment="center" valignment="top" topline="true" usebox="none">
37002 \begin_layout Plain Layout
37003 \begin_inset Graphics
37004 filename ../images/dialog-show-new-inset_graphics.png
37006 scaleBeforeRotation
37015 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37018 \begin_layout Plain Layout
37026 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37029 \begin_layout Plain Layout
37035 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37038 \begin_layout Plain Layout
37044 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37047 \begin_layout Plain Layout
37059 \begin_inset Tabular
37060 <lyxtabular version="3" rows="2" columns="3">
37061 <features rotate="0" tabularvalignment="middle">
37062 <column alignment="center" valignment="top" width="0">
37063 <column alignment="center" valignment="top" width="0">
37064 <column alignment="center" valignment="top" width="0">
37066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37069 \begin_layout Plain Layout
37075 <cell alignment="center" valignment="top" topline="true" usebox="none">
37078 \begin_layout Plain Layout
37084 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37087 \begin_layout Plain Layout
37095 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37098 \begin_layout Plain Layout
37104 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37107 \begin_layout Plain Layout
37108 \begin_inset Graphics
37109 filename ../images/dialog-show-new-inset_graphics.png
37111 scaleBeforeRotation
37120 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37123 \begin_layout Plain Layout
37137 \begin_layout Standard
37140 \begin_inset Tabular
37141 <lyxtabular version="3" rows="3" columns="2">
37142 <features rotate="0" tabularvalignment="middle">
37143 <column alignment="center" valignment="top" width="0">
37144 <column alignment="center" valignment="top" width="0">
37146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37149 \begin_layout Plain Layout
37155 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37158 \begin_layout Plain Layout
37166 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37169 \begin_layout Plain Layout
37170 \begin_inset Graphics
37171 filename ../images/dialog-show-new-inset_graphics.png
37173 scaleBeforeRotation
37182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37185 \begin_layout Plain Layout
37193 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37196 \begin_layout Plain Layout
37202 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37205 \begin_layout Plain Layout
37217 \begin_inset Tabular
37218 <lyxtabular version="3" rows="3" columns="3">
37219 <features rotate="0" tabularvalignment="middle">
37220 <column alignment="center" valignment="top" width="0">
37221 <column alignment="center" valignment="top" width="0">
37222 <column alignment="center" valignment="top" width="0">
37224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37227 \begin_layout Plain Layout
37233 <cell alignment="center" valignment="top" topline="true" usebox="none">
37236 \begin_layout Plain Layout
37242 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37245 \begin_layout Plain Layout
37253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37256 \begin_layout Plain Layout
37262 <cell alignment="center" valignment="top" usebox="none">
37265 \begin_layout Plain Layout
37266 \begin_inset Graphics
37267 filename ../images/dialog-show-new-inset_graphics.png
37269 scaleBeforeRotation
37278 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37281 \begin_layout Plain Layout
37289 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37292 \begin_layout Plain Layout
37298 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37301 \begin_layout Plain Layout
37307 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37310 \begin_layout Plain Layout
37322 \begin_inset Tabular
37323 <lyxtabular version="3" rows="3" columns="2">
37324 <features rotate="0" tabularvalignment="middle">
37325 <column alignment="center" valignment="top" width="0">
37326 <column alignment="center" valignment="top" width="0">
37328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37331 \begin_layout Plain Layout
37337 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37340 \begin_layout Plain Layout
37348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37351 \begin_layout Plain Layout
37357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37360 \begin_layout Plain Layout
37361 \begin_inset Graphics
37362 filename ../images/dialog-show-new-inset_graphics.png
37364 scaleBeforeRotation
37375 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37378 \begin_layout Plain Layout
37384 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37387 \begin_layout Plain Layout
37401 \begin_layout Standard
37403 you can use the LaTeX-package
37408 \begin_inset Index idx
37411 \begin_layout Plain Layout
37412 LaTeX-packages ! picinpar
37418 Here is an example:
37421 \begin_layout Standard
37425 \begin_layout Plain Layout
37435 \begin_inset Note Note
37438 \begin_layout Plain Layout
37439 The following section will only be displayed when the LaTeX-package
37451 \begin_layout Standard
37455 \begin_layout Plain Layout
37459 begin{window}[2,c,{
37465 \begin_inset Graphics
37466 filename clipart/mobius.eps
37469 scaleBeforeRotation
37470 rotateOrigin center
37478 \begin_layout Plain Layout
37483 \begin_layout Plain Layout
37492 It was in the spring of the year 1894 that all London was interested, and
37493 the fashionable world dismayed, by the murder of the Honourable Ronald
37494 Adair under most unusual and inexplicable circumstances.
37495 The public has already learned those particulars of the crime which
37501 \begin_layout Plain Layout
37512 came out in the police investigation, but a good deal was suppressed upon
37513 that occasion, since the case for the prosecution was so overwhelmingly
37514 strong that it was not necessary to bring forward all the facts.
37515 Only now, at the end of nearly ten years, am I allowed to supply those
37516 missing links which make up the whole of that remarkable chain.
37522 \begin_layout Plain Layout
37534 \begin_layout Standard
37538 \begin_layout Plain Layout
37547 Footnote of the paragraph with the fixed object.
37551 \begin_layout Plain Layout
37561 \begin_layout Standard
37562 Surrounded fixed objects are used to let text float around them, at which
37563 the object's position in the paragraph can be determined by the number
37565 In contrary to floats is it not possible to have a numbered caption.
37568 \begin_layout Standard
37569 A fixed object is inserted by adding the command
37572 \begin_layout Standard
37577 begin{window}[2,c,{
37580 \begin_layout Standard
37581 as TeX-Code at the beginning of the paragraph.
37582 The first parameter in the bracket, here '2', defines the number of lines
37583 above the object, the second, here 'c', the position of the object.
37584 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37585 Behind the command you insert the object.
37586 In this example an image with a width of 40
37587 \begin_inset space \thinspace{}
37590 % of the text column width was inserted.
37591 The object can also be a table, a box or an equation.
37592 Behind the object the command
37595 \begin_layout Standard
37598 },description text]
37599 \begin_inset Newline newline
37605 \begin_layout Standard
37608 \begin_inset Quotes eld
37616 \begin_inset Quotes erd
37619 is in the second line.
37620 The description text is optional.
37621 The text surrounding the object must be in the same paragraph as the object,
37622 so it must begin directly after the
37627 At the end of the paragraph insert the command:
37630 \begin_layout Standard
37638 \begin_layout Standard
37639 Within a paragraph with a fixed object, you cannot insert footnotes in the
37641 You have to use instead the command
37647 inside the paragraph and outside the command
37653 as described in sec.
37654 \begin_inset space \thinspace{}
37658 \begin_inset CommandInset ref
37660 reference "sec:Footnotes"
37667 \begin_layout Standard
37671 \begin_layout Plain Layout
37681 \begin_inset Note Note
37684 \begin_layout Plain Layout
37685 The following will be displayed when the LaTeX-package
37697 \begin_layout Standard
37698 You need to install the LaTeX-package
37702 to see the following part of this section in the output.
37705 \begin_layout Standard
37709 \begin_layout Plain Layout
37721 \begin_layout Section
37723 \begin_inset Index idx
37726 \begin_layout Plain Layout
37733 \begin_inset Index idx
37736 \begin_layout Plain Layout
37737 Surrounded by text ! Initials
37745 \begin_layout Standard
37746 To use initials, you must have the LaTeX-package
37751 \begin_inset Index idx
37754 \begin_layout Plain Layout
37755 LaTeX-packages ! lettrine
37760 installed and use the module
37764 in your document (menu
37766 Document\SpecialChar \menuseparator
37767 Settings\SpecialChar \menuseparator
37771 To insert an initial, use the style
37776 This style has a mandatory and two optional arguments.
37777 The arguments are inserted via the
37782 The mandatory argument
37786 contains the letter(s) that is the initial, the argument
37789 \begin_inset space ~
37793 \begin_inset space ~
37798 contains the rest of the word or text of the initial letter(s).
37803 contains parameters to modify the initial.
37804 For more information about the possible parameters see the documentation
37810 \begin_inset CommandInset citation
37817 The style itself contains the text that is surrounding the initial.
37818 The usual style is hereby that the word whose first letter is the initial,
37826 \begin_layout Standard
37827 Here are some examples:
37830 \begin_layout Standard
37834 \begin_layout Plain Layout
37844 \begin_inset Note Note
37847 \begin_layout Plain Layout
37848 The following section will only be displayed when the LaTeX-package
37860 \begin_layout Enumerate
37861 No optional argument, the initial is the letter 'I' in the math font
37862 \begin_inset Formula $\mathfrak{Fraktur}$
37869 \begin_layout Initial
37870 \begin_inset Argument 2
37873 \begin_layout Plain Layout
37874 \begin_inset Formula $\mathfrak{I}$
37883 \begin_inset Argument 3
37886 \begin_layout Plain Layout
37892 was in the spring of the year 1894 that all London was interested, and
37893 the fashionable world dismayed, by the murder of the Honourable Ronald
37894 Adair under most unusual and inexplicable circumstances.
37895 The public has already learned those particulars of the crime which came
37896 out in the police investigation, but a good deal was suppressed upon that
37897 occasion, since the case for the prosecution was so overwhelmingly strong
37898 that it was not necessary to bring forward all the facts.
37899 \begin_inset Newpage newpage
37906 \begin_layout Enumerate
37907 Only one line is surrounding the initial, which is formed by two letters
37908 in standard font and no text is printed in small caps:
37912 \begin_layout Initial
37913 \begin_inset Argument 1
37916 \begin_layout Plain Layout
37923 \begin_inset Argument 2
37926 \begin_layout Plain Layout
37932 was in the spring of the year 1894 that all London was interested, and
37933 the fashionable world dismayed, by the murder of the Honourable Ronald
37934 Adair under most unusual and inexplicable circumstances.
37935 The public has already learned those particulars of the crime which came
37936 out in the police investigation, but a good deal was suppressed upon that
37937 occasion, since the case for the prosecution was so overwhelmingly strong
37938 that it was not necessary to bring forward all the facts.
37942 \begin_layout Enumerate
37943 Magenta, hanging initial over 3
37944 \begin_inset space ~
37947 lines in the math font
37948 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37952 \begin_inset Quotes eld
37955 t was in the spring
37956 \begin_inset Quotes erd
37963 ; to color the initial, you must insert this command before the initial:
37964 \begin_inset Newline newline
37978 \begin_inset Newline newline
37986 \begin_inset Quotes eld
37990 \begin_inset Quotes erd
37994 \begin_inset Quotes eld
37998 \begin_inset Quotes erd
38002 \begin_inset Quotes eld
38006 \begin_inset Quotes erd
38010 \begin_inset Quotes eld
38014 \begin_inset Quotes erd
38018 \begin_inset Quotes eld
38022 \begin_inset Quotes erd
38026 \begin_inset Quotes eld
38030 \begin_inset Quotes erd
38034 \begin_inset Quotes eld
38038 \begin_inset Quotes erd
38042 \begin_inset Quotes eld
38046 \begin_inset Quotes erd
38049 , and add this command to the document preamble:
38050 \begin_inset Newline newline
38057 @ifundefined{textcolor}
38058 \begin_inset Newline newline
38062 \begin_inset space ~
38067 usepackage{color}}{}
38071 \begin_layout Standard
38075 \begin_layout Plain Layout
38089 \begin_inset Note Note
38092 \begin_layout Plain Layout
38093 makes the initial magenta
38101 \begin_layout Initial
38102 \begin_inset Argument 1
38105 \begin_layout Plain Layout
38106 lines=3, lhang=0.33, loversize=0.25
38112 \begin_inset Argument 2
38115 \begin_layout Plain Layout
38116 \begin_inset Formula $\mathcal{I}$
38125 \begin_inset Argument 3
38128 \begin_layout Plain Layout
38129 t was in the spring
38134 of the year 1894 that all London was interested, and the fashionable world
38135 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38136 and inexplicable circumstances.
38137 The public has already learned those particulars of the crime which came
38138 out in the police investigation, but a good deal was suppressed upon that
38139 occasion, since the case for the prosecution was so overwhelmingly strong
38140 that it was not necessary to bring forward all the facts.
38144 \begin_layout Standard
38148 \begin_layout Plain Layout
38158 \begin_inset Note Note
38161 \begin_layout Plain Layout
38162 The following will be displayed when the LaTeX-package
38174 \begin_layout Standard
38175 You need to install the LaTeX-package
38179 to see the following part of this section in the output.
38182 \begin_layout Standard
38186 \begin_layout Plain Layout
38198 \begin_layout Chapter
38199 External Document Parts
38200 \begin_inset Index idx
38203 \begin_layout Plain Layout
38204 External Document Parts
38212 \begin_layout Standard
38215 Insert\SpecialChar \menuseparator
38218 you can insert external material into your document.
38222 \begin_layout Description
38224 \begin_inset space ~
38227 Document Another LyX document; its content is directly inserted to your
38231 \begin_layout Description
38233 \begin_inset space ~
38236 Text A text document; each line is inserted in your document as a separate
38240 \begin_layout Description
38242 \begin_inset space ~
38246 \begin_inset space ~
38250 \begin_inset space ~
38253 Lines A text document; text lines are inserted in your document continuously
38254 but an empty text line creates a new paragraph.
38257 \begin_layout Description
38259 \begin_inset space ~
38262 Material Files in various formats.
38265 \begin_layout Description
38267 \begin_inset space ~
38270 Document LyX or LaTeX-documents.
38273 \begin_layout Section
38275 \begin_inset Index idx
38278 \begin_layout Plain Layout
38279 External Document Parts ! External Material
38287 \begin_layout Standard
38288 The external material feature allows you to insert files into your document
38289 without converting them to a format that can be read by the document output
38291 LyX takes care of the necessary conversions.
38292 This is similar to images that can be inserted in various image formats
38294 When you have enabled Instant Preview in LyX's preferences under
38297 \begin_inset space ~
38301 \begin_inset space ~
38304 feel\SpecialChar \menuseparator
38307 , the external material types Dia and Xfig are directly shown in LyX.
38310 \begin_layout Standard
38311 External material can be inserted via the
38315 dialog that is accessible with the menu
38317 Insert\SpecialChar \menuseparator
38318 File\SpecialChar \menuseparator
38320 \begin_inset space ~
38326 Currently the following file types (
38333 \begin_layout Description
38334 ChessDiagram This template supports chess position diagrams made with the
38338 \begin_inset CommandInset href
38341 target "http://en.wikipedia.org/wiki/XBoard"
38350 \begin_layout Description
38351 Date This inserts the date in the form
38356 This is a date inserted as external material:
38357 \begin_inset External
38364 \begin_inset space ~
38368 \begin_inset Note Note
38371 \begin_layout Plain Layout
38372 Remove the protected space when bug 4398 is fixed!
38378 \begin_inset Newline newline
38381 The date is not shown within LyX, only in the output.
38382 There are two other methods of inserting a date: Via menu
38384 Insert\SpecialChar \menuseparator
38387 and with the LaTeX command
38394 The different methods are compared in Table
38395 \begin_inset space ~
38399 \begin_inset CommandInset ref
38401 reference "tab:Comparison-of-the"
38408 \begin_layout Description
38409 Dia This template supports diagrams created with the program
38412 \begin_inset CommandInset href
38415 target "http://en.wikipedia.org/wiki/Dia_(software)"
38424 \begin_layout Description
38425 GnumericSpreadsheet With this template you can insert spreadsheets
38426 \begin_inset space \thinspace{}
38430 \begin_inset space \thinspace{}
38433 tables in the format of
38436 \begin_inset CommandInset href
38439 target "http://en.wikipedia.org/wiki/Gnumeric"
38446 \begin_inset CommandInset href
38448 name "OpenDocument"
38449 target "http://en.wikipedia.org/wiki/OpenDocument"
38454 \begin_inset CommandInset href
38456 name "Microsoft Office XML"
38457 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38462 \begin_inset CommandInset href
38464 name "Office Open XML"
38465 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38470 For this feature LyX must have found the program
38474 during its configuration.
38475 This program is part of Gnumeric, so that you must have Gnumeric installed,
38476 also if you don't have tables in the Gnumeric format.
38477 For examples and possible limitations have a look at LyX's example file
38485 \begin_layout Description
38486 LilyPond This template is used for music notation typeset with the program
38487 \begin_inset Newline linebreak
38493 \begin_inset CommandInset href
38496 target "http://en.wikipedia.org/wiki/LilyPond"
38503 For LyX's extended support for LilyPond have a look at LyX's example file
38511 \begin_layout Description
38512 PDFPages With this template you can insert PDF documents to your document.
38513 To specify the range of pages that should be included, use the option
38523 LaTeX and LyX options
38526 The argument of this option is a comma separated list, containing page
38527 numbers (insert as option
38531 ), ranges of page numbers (
38535 ) or any combination.
38536 To insert empty pages use {}.
38538 \begin_inset space \thinspace{}
38542 \begin_inset space ~
38547 pages={3,{},8-11,15}
38549 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38550 Page ranges are specified in the syntax
38559 This selects all pages from
38572 defaults to the first page; omitting
38576 defaults to the last page of the document.
38577 The last page can also be selected with the keyword
38582 (This is only permitted in a page range.) So
38586 will insert all pages of the document and
38590 will insert all pages in reverse order.
38591 If the pages option is not specified, only the first page of the PDF is
38593 \begin_inset Newline newline
38600 inserts the pages with their original size, if this option is not given,
38601 the pages will be resized to fith the width of the page of your document.
38606 you can specify the width and height of the input pages and their rotation.
38607 If another width than 100
38608 \begin_inset space \thinspace{}
38611 Scale% is used, the option
38615 will be overwritten.
38616 For more info and possible options, have a look into the documentation
38617 of the LaTeX-package
38622 \begin_inset CommandInset citation
38629 \begin_inset Index idx
38632 \begin_layout Plain Layout
38633 LaTeX-packages ! pdfpages
38639 \begin_inset Newline newline
38642 To use this template in a
38646 presentation you need to first insert an
38650 environment and in a subsequent paragraph a TeX-Code box containing the
38655 setbeamertemplate{background canvas}{}
38658 Then you can insert as many paragraphs containing the PDFPages template
38660 Behind the included PDF pages you can resume the Beamer presentation by
38661 beginning a new frame or by starting a new section.
38662 To avoid stray blank pages prior to the PDF pages, make sure to use the
38667 alignment for the paragraph containing the template.
38668 \begin_inset Newline newline
38671 Here is an included PDF which is rotated by -5°:
38672 \begin_inset External
38674 filename clipart/Abstract.pdf
38675 extra LaTeX "noautoscale, pages=-"
38677 rotateOrigin bottomleft
38684 \begin_layout Description
38685 RasterImage This can be used for bitmap images.
38686 The image can be treated in the
38690 dialog like the images that are usually included via the
38694 dialog as described in section
38695 \begin_inset space ~
38699 \begin_inset CommandInset ref
38701 reference "sec:Graphics-Dialog"
38706 The difference to the normal image input is that only raster images are
38707 allowed; that means that PDF and EPS-images are not supported.
38708 Here is an inserted raster image:
38709 \begin_inset External
38710 template RasterImage
38711 filename clipart/ToolbarEnvBox.png
38718 \begin_layout Description
38719 XFig This template supports images created with the program
38722 \begin_inset CommandInset href
38725 target "http://en.wikipedia.org/wiki/Xfig"
38734 \begin_layout Standard
38735 \begin_inset Float table
38741 \begin_layout Plain Layout
38742 \begin_inset Caption Standard
38744 \begin_layout Plain Layout
38745 \begin_inset CommandInset label
38747 name "tab:Comparison-of-the"
38751 Comparison of the date input methods.
38759 \begin_layout Plain Layout
38761 \begin_inset Tabular
38762 <lyxtabular version="3" rows="4" columns="4">
38763 <features rotate="0" tabularvalignment="middle">
38764 <column alignment="center" valignment="top" width="0">
38765 <column alignment="center" valignment="top" width="0">
38766 <column alignment="center" valignment="top" width="0">
38767 <column alignment="center" valignment="top" width="0">
38769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38772 \begin_layout Plain Layout
38778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38781 \begin_layout Plain Layout
38784 External Material\SpecialChar \menuseparator
38790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38793 \begin_layout Plain Layout
38796 Insert\SpecialChar \menuseparator
38802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38805 \begin_layout Plain Layout
38817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38820 \begin_layout Plain Layout
38826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38829 \begin_layout Plain Layout
38835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38838 \begin_layout Plain Layout
38844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38847 \begin_layout Plain Layout
38848 as TeX-Code inset box
38855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38858 \begin_layout Plain Layout
38864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38867 \begin_layout Plain Layout
38873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38876 \begin_layout Plain Layout
38882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38885 \begin_layout Plain Layout
38893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38896 \begin_layout Plain Layout
38902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38905 \begin_layout Plain Layout
38911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38914 \begin_layout Plain Layout
38920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38923 \begin_layout Plain Layout
38942 \begin_layout Standard
38943 When you use the option
38955 dialog, only the path to the inserted file is shown in the output.
38956 \begin_inset Newline newline
38959 External material is displayed in LyX either as a box like this:
38960 \begin_inset Graphics
38961 filename clipart/ExternalMaterialQt4.png
38963 scaleBeforeRotation
38967 or as image, depending on the option
38973 LaTeX and LyX options
38978 \begin_layout Standard
38985 manual explains how you can define your own templates.
38988 \begin_layout Section
38990 \begin_inset CommandInset label
38992 name "sec:Child-Documents"
38997 \begin_inset Index idx
39000 \begin_layout Plain Layout
39001 External Document Parts ! Child Documents
39007 \begin_inset Index idx
39010 \begin_layout Plain Layout
39019 \begin_layout Standard
39020 Child documents are used if you have a long document consisting of several
39021 larger parts or sections.
39022 For maintenance it is often useful and sometimes even required to split
39023 the document into several files that can be revised separately.
39024 The different documents are then the so called
39025 \begin_inset Quotes eld
39029 \begin_inset Quotes erd
39032 , and a master document connects them to print the full document or parts
39034 A child document inherits elements from its master, for example the LaTeX
39035 preamble, the bibliography, and labels for cross-references.
39038 \begin_layout Standard
39039 To be able to work on child documents without the need to open their master,
39040 specify in the child document the master in the menu
39042 Document\SpecialChar \menuseparator
39043 Settings\SpecialChar \menuseparator
39045 \begin_inset space ~
39051 This master document will then be used in the background by LyX when you
39052 edit the child document.
39055 \begin_layout Standard
39056 Included documents are displayed in LyX as a box like this:
39057 \begin_inset Graphics
39058 filename clipart/ChildDocumentQt4.png
39060 scaleBeforeRotation
39064 To include child documents in a master document use the menu
39066 Insert\SpecialChar \menuseparator
39067 File\SpecialChar \menuseparator
39069 \begin_inset space ~
39075 A dialog pops up where you can choose between four include methods:
39078 \begin_layout Description
39079 Include You can include LyX- and LaTeX-documents.
39088 dialog, the included document will be opened in LyX in a new file tab so
39089 that you can modify it.
39090 \begin_inset Newline newline
39096 \begin_layout Standard
39097 Here is a child document inserted using
39102 \begin_inset CommandInset include
39103 LatexCommand include
39104 filename "DummyDocument1.lyx"
39111 \begin_layout Standard
39112 The section numbering includes the sections of the included files in the
39113 order they are inserted in the master document.
39114 The included example document has for example a subsection that is numbered
39115 as a subsection of this section.
39116 Labels of included documents can be referenced: Subsection
39117 \begin_inset space ~
39121 \begin_inset CommandInset ref
39123 reference "sub:External-Subsection-1"
39130 \begin_layout Standard
39131 The preamble of the child document is ignored; only the preamble of the
39132 master document is used.
39133 Branches in child documents will be ignored by the master document when
39134 the master document does not have a branch with the same name.
39135 Included documents are inserted starting on a new page and ending with
39139 \begin_layout Standard
39140 \begin_inset Note Greyedout
39143 \begin_layout Plain Layout
39148 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39149 the document in case the child document uses another document class than
39150 the master document as this will lead to unexpected outputs.
39158 \begin_layout Description
39159 Input This method is very similar to the Include method.
39160 The differences are:
39164 \begin_layout Itemize
39165 Input files don't start with a new page and don't end with a page break.
39168 \begin_layout Itemize
39169 Input files can be previewed in LyX when
39172 \begin_inset space ~
39177 is enabled in LyX's preferences under
39180 \begin_inset space ~
39184 \begin_inset space ~
39187 feel\SpecialChar \menuseparator
39193 \begin_layout Itemize
39194 You cannot exclude Input files via the menu
39196 Document\SpecialChar \menuseparator
39197 Settings\SpecialChar \menuseparator
39204 \begin_layout Standard
39205 Here is a child document inserted using
39210 \begin_inset CommandInset include
39212 filename "DummyDocument2.lyx"
39219 \begin_layout Description
39220 Verbatim With this method any text file can be included.
39221 The file is shown in the output with its source code; no command used in
39222 the text is invoked.
39223 You can use the option
39225 Mark spaces in output
39227 that displays the character
39228 \begin_inset Quotes eld
39235 \begin_layout Plain Layout
39245 \begin_inset Quotes erd
39248 for every space character in the source code.
39249 The difference from the method via the menu
39251 Insert\SpecialChar \menuseparator
39252 File\SpecialChar \menuseparator
39254 \begin_inset space ~
39259 is that the document content is not shown in LyX.
39262 \begin_layout Standard
39263 Here is a child document inserted as Verbatim:
39264 \begin_inset CommandInset include
39265 LatexCommand verbatiminput
39266 filename "DummyTextDocument.txt"
39271 \begin_inset VSpace bigskip
39274 Here is a child document inserted as Verbatim using the
39276 Mark spaces in output
39279 \begin_inset CommandInset include
39280 LatexCommand verbatiminput*
39281 filename "DummyTextDocument.txt"
39288 \begin_layout Standard
39289 \begin_inset VSpace bigskip
39295 \begin_layout Standard
39296 \begin_inset Note Greyedout
39299 \begin_layout Plain Layout
39304 As you can see in the examples above, the text of the documents included
39309 is not broken at the end of the document lines.
39317 \begin_layout Description
39318 Listings This type is described in chapter
39319 \begin_inset space ~
39323 \begin_inset CommandInset ref
39325 reference "cha:Program-Code-Listings"
39332 \begin_layout Standard
39333 \begin_inset Note Greyedout
39336 \begin_layout Plain Layout
39341 Including the same document twice in a document using different methods
39342 could cause LaTeX-problems.
39350 \begin_layout Standard
39351 If you want to view/export only selected children of your master document,
39352 either because you want to save compiling time or because you want to distribut
39353 e single chapters of the book you are just writing, you can exclude children
39355 This is done via the menu
39357 Document\SpecialChar \menuseparator
39358 Settings\SpecialChar \menuseparator
39362 You can exclude\SpecialChar \slash{}
39363 include children by double-clicking on the
39367 column of the respective child document in the list (note that this only
39368 works for documents embedded via
39369 \begin_inset Quotes eld
39373 \begin_inset Quotes erd
39377 \begin_inset Quotes eld
39381 \begin_inset Quotes erd
39387 Maintain counters and references
39389 is enabled, LyX will assure that all page numbers, references etc.
39390 \begin_inset space ~
39393 are correct as if the whole document was processed.
39394 This is useful if you want the selected sub-documents to look exactly as
39395 in the context of the whole document.
39396 However, LyX needs to process the whole document in the background for
39398 So if you want to save compile time and if counters and references do not
39399 need to be correct, disable this checkbox.
39402 \begin_layout Standard
39403 Alternatively, you can put each included file into a branch.
39407 \begin_layout Plain Layout
39408 Branches are described in section
39421 By enabling\SpecialChar \slash{}
39422 disabling branches you can decide which included files will
39423 appear in the output.
39424 This has the advantage that it also works with Input'ed sub-documents.
39425 However, counters and references will not be maintained with this approach.
39428 \begin_layout Chapter
39429 Program Code Listings
39430 \begin_inset CommandInset label
39432 name "cha:Program-Code-Listings"
39437 \begin_inset Index idx
39440 \begin_layout Plain Layout
39447 \begin_inset Index idx
39450 \begin_layout Plain Layout
39457 \begin_inset Index idx
39460 \begin_layout Plain Layout
39469 \begin_layout Standard
39470 To include and typeset program code you can use the
39474 inset that can be inserted via the menu
39476 Insert\SpecialChar \menuseparator
39485 \begin_inset Index idx
39488 \begin_layout Plain Layout
39489 LaTeX-packages ! listings
39494 provides a powerful and flexible way to insert program source code into
39498 \begin_layout Standard
39499 Right-clicking on a listings inset opens the context menu containing where
39500 you can set the listings format.
39503 \begin_layout Standard
39504 By default, a listing starts a new paragraph in the output.
39505 The placement option
39508 \begin_inset space ~
39513 prints the listing inline like this:
39514 \begin_inset listings
39515 lstparams "language={C++}"
39519 \begin_layout Plain Layout
39527 \begin_inset Newline newline
39534 creates a listings float where you can specify the placement options
39535 \begin_inset Quotes eld
39543 \begin_inset Quotes erd
39547 \begin_inset Quotes eld
39555 \begin_inset Quotes erd
39559 \begin_inset Quotes eld
39567 \begin_inset Quotes erd
39571 \begin_inset Quotes eld
39579 \begin_inset Quotes erd
39582 corresponding to the float placement options described in section
39583 \begin_inset space ~
39587 \begin_inset CommandInset ref
39589 reference "sec:Float-Placement"
39594 The placement options can be mixed and are inserted without any separation,
39596 \begin_inset space \thinspace{}
39600 \begin_inset space \space{}
39604 \begin_inset Quotes eld
39612 \begin_inset Quotes erd
39617 \begin_inset Quotes eld
39621 \begin_inset Quotes erd
39624 has sometimes no effect, but you don't need to use the
39628 option in this case as also non-float listings can have captions and be
39632 \begin_layout Standard
39633 You can add captions to listings with the menu
39635 Insert\SpecialChar \menuseparator
39639 Listings can be referenced like floats: Listing
39640 \begin_inset space ~
39644 \begin_inset CommandInset ref
39646 reference "lst:Example-Listing"
39651 \change_inserted -195340706 1334604968
39653 A list of listings which contains all listings with captions can be created
39656 Insert\SpecialChar \menuseparator
39658 \begin_inset space ~
39662 \begin_inset space ~
39665 TOC\SpecialChar \menuseparator
39669 The list entries are the listing caption and the listing number.
39674 \begin_layout Standard
39675 \begin_inset listings
39676 lstparams "language=Python"
39680 \begin_layout Plain Layout
39682 \begin_inset Caption Standard
39684 \begin_layout Plain Layout
39685 \begin_inset CommandInset label
39687 name "lst:Example-Listing"
39691 Example Listing float
39696 # Example listing float
39699 \begin_layout Plain Layout
39704 \begin_layout Plain Layout
39706 'this is a python function'
39709 \begin_layout Plain Layout
39719 \begin_layout Standard
39720 When you have set a programming language in the listings dialog, the keywords
39721 of this language will be recognized and specially typeset in the output.
39722 In the example listings the Python keyword
39723 \begin_inset Quotes eld
39727 \begin_inset Quotes erd
39730 is recognized and printed bold in the output.
39733 \begin_layout Standard
39734 \begin_inset Note Greyedout
39737 \begin_layout Plain Layout
39742 If you don't get bold keywords when using typewriter fonts, your
39746 font probably doesn't provide a bold shape.
39747 In this case select a different one in the menu
39749 Document\SpecialChar \menuseparator
39750 Settings\SpecialChar \menuseparator
39762 provide bold shapes.)
39770 \begin_layout Standard
39774 \begin_inset space ~
39779 of the listings dialog you can specify the line numbering style.
39780 You can insert a number to specify which lines are numbered in the field
39787 \begin_inset space \thinspace{}
39791 \begin_inset space \space{}
39795 \begin_inset Quotes eld
39799 \begin_inset Quotes erd
39802 , only every 3rd line will be numbered.
39805 \begin_layout Standard
39806 You can furthermore specify a range of lines; only these will then appear
39810 Extended character table
39812 should be used when you use national characters like the German umlauts
39814 \begin_inset Newline newline
39817 Here is an example listing with left line numbering, step
39818 \begin_inset Quotes eld
39822 \begin_inset Quotes erd
39826 \begin_inset Quotes eld
39830 \begin_inset Quotes erd
39834 \begin_inset Quotes eld
39837 Extended character table
39838 \begin_inset Quotes erd
39842 \begin_inset Quotes eld
39846 \begin_inset space ~
39850 \begin_inset space ~
39854 \begin_inset Quotes erd
39858 \begin_inset space \thinspace{}
39862 \begin_inset space \thinspace{}
39868 \begin_layout Standard
39869 \begin_inset listings
39870 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39874 \begin_layout Plain Layout
39879 \begin_layout Plain Layout
39881 'this is a python function'
39884 \begin_layout Plain Layout
39889 \begin_layout Plain Layout
39894 \begin_layout Plain Layout
39896 'This is a German word: Tschüß'
39899 \begin_layout Plain Layout
39904 \begin_layout Plain Layout
39909 \begin_layout Plain Layout
39911 'this is a python function'
39914 \begin_layout Plain Layout
39924 \begin_layout Standard
39925 When you have tabulators in your listing, you can specify the number of
39926 characters that are spanned by a tabulator in the field
39929 \begin_inset space ~
39937 \begin_layout Standard
39938 \begin_inset Note Greyedout
39941 \begin_layout Plain Layout
39946 Due to a bug in the
39950 package the line numbering is shifted by a line by every previous listing.
39951 That's the reason why the lines 2 and 5 are numbered in the above listing
39952 and not the lines 3 and 6.
39960 \begin_layout Standard
39961 \begin_inset VSpace bigskip
39967 \begin_layout Standard
39968 It is also possible to print lines from a file as listing.
39969 To do this, use the menu
39971 Insert\SpecialChar \menuseparator
39972 File\SpecialChar \menuseparator
39975 and choose the type
39983 \begin_layout Plain Layout
39984 The other child document types are described in section
39985 \begin_inset space ~
39989 \begin_inset CommandInset ref
39991 reference "sec:Child-Documents"
40000 In the child document dialog you can specify the listing parameters in
40002 To show a list of all available parameters, type in a question mark
40003 \begin_inset Quotes eld
40007 \begin_inset Quotes erd
40013 \begin_layout Standard
40014 To reference child document listings, write a label text into the corresponding
40015 field of the child document dialog.
40016 The label can then be referenced using the menu
40018 Insert\SpecialChar \menuseparator
40024 \begin_layout Standard
40026 \begin_inset space ~
40030 \begin_inset CommandInset ref
40032 reference "lst:file-listing"
40036 is an example for a listing of a file; there the lines 10
40037 \begin_inset space \thinspace{}
40041 \begin_inset space \thinspace{}
40044 15 of this LyX file are listed.
40047 \begin_layout Standard
40048 \begin_inset CommandInset include
40049 LatexCommand lstinputlisting
40050 filename "EmbeddedObjects.lyx"
40051 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40058 \begin_layout Standard
40059 \begin_inset VSpace bigskip
40065 \begin_layout Standard
40066 Inserting a formula into a listing can be done the following way:
40069 \begin_layout Enumerate
40070 Open the listings dialog and add
40071 \begin_inset Newline newline
40079 \begin_inset Newline newline
40082 to the field of the
40089 \begin_layout Enumerate
40090 Create a formula outside the listing
40093 \begin_layout Enumerate
40094 Copy the content of the formula (not the formula inset) to the clipboard
40104 \begin_layout Enumerate
40105 In the listing write
40106 \begin_inset Quotes eld
40114 \begin_inset Quotes erd
40117 and copy from the clipboard between the dollar-signs (shortcut
40126 \begin_layout Standard
40127 \begin_inset listings
40128 lstparams "language=Python,mathescape=true"
40132 \begin_layout Plain Layout
40134 \begin_inset Caption Standard
40136 \begin_layout Plain Layout
40137 Example Listing float containing a formula
40142 # Example listing float
40145 \begin_layout Plain Layout
40150 \begin_layout Plain Layout
40163 \begin_layout Plain Layout
40173 \begin_layout Standard
40174 \begin_inset VSpace bigskip
40180 \begin_layout Standard
40181 Global listings settings can be set in the
40183 Document\SpecialChar \menuseparator
40184 Settings\SpecialChar \menuseparator
40188 To get there a list of available options, type in a question mark
40189 \begin_inset Quotes eld
40193 \begin_inset Quotes erd
40199 \begin_layout Standard
40200 For more information about the
40204 package, we refer to its documentation
40205 \begin_inset CommandInset citation
40214 \begin_layout Standard
40215 \begin_inset Newpage newpage
40221 \begin_layout Chapter
40223 Units available in LyX
40224 \begin_inset Index idx
40227 \begin_layout Plain Layout
40234 \begin_inset CommandInset label
40236 name "cha:Units-available-in"
40243 \begin_layout Standard
40244 To understand the units described in this documentation, Table
40245 \begin_inset space ~
40249 \begin_inset CommandInset ref
40251 reference "tab:Units"
40255 explains all units available in LyX.
40258 \begin_layout Standard
40259 \begin_inset Float table
40265 \begin_layout Plain Layout
40266 \begin_inset Caption Standard
40268 \begin_layout Plain Layout
40269 \begin_inset CommandInset label
40283 \begin_layout Plain Layout
40284 \begin_inset VSpace medskip
40290 \begin_layout Plain Layout
40292 \begin_inset Tabular
40293 <lyxtabular version="3" rows="20" columns="2">
40294 <features rotate="0" tabularvalignment="middle">
40295 <column alignment="center" valignment="top" width="0">
40296 <column alignment="center" valignment="top" width="0">
40298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40301 \begin_layout Plain Layout
40307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40310 \begin_layout Plain Layout
40318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40321 \begin_layout Plain Layout
40327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40330 \begin_layout Plain Layout
40338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40341 \begin_layout Plain Layout
40347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40350 \begin_layout Plain Layout
40358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40361 \begin_layout Plain Layout
40367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40370 \begin_layout Plain Layout
40378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40381 \begin_layout Plain Layout
40387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40390 \begin_layout Plain Layout
40392 \begin_inset space \thinspace{}
40396 \begin_inset space \thinspace{}
40406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40409 \begin_layout Plain Layout
40415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40418 \begin_layout Plain Layout
40420 \begin_inset space \thinspace{}
40424 \begin_inset space \thinspace{}
40434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40437 \begin_layout Plain Layout
40443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40446 \begin_layout Plain Layout
40447 scaled point (65536
40448 \begin_inset space \thinspace{}
40452 \begin_inset space \thinspace{}
40462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40465 \begin_layout Plain Layout
40471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40474 \begin_layout Plain Layout
40476 \begin_inset space \thinspace{}
40480 \begin_inset space \thinspace{}
40490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40493 \begin_layout Plain Layout
40499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40502 \begin_layout Plain Layout
40504 \begin_inset space \thinspace{}
40508 \begin_inset Formula $\approx$
40512 \begin_inset space \thinspace{}
40522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40525 \begin_layout Plain Layout
40531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40534 \begin_layout Plain Layout
40536 \begin_inset space \thinspace{}
40540 \begin_inset space \thinspace{}
40550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40553 \begin_layout Plain Layout
40559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40562 \begin_layout Plain Layout
40563 % of original image width
40570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40573 \begin_layout Plain Layout
40579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40582 \begin_layout Plain Layout
40590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40593 \begin_layout Plain Layout
40599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40602 \begin_layout Plain Layout
40610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40613 \begin_layout Plain Layout
40619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40622 \begin_layout Plain Layout
40630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40633 \begin_layout Plain Layout
40639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40642 \begin_layout Plain Layout
40650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40653 \begin_layout Plain Layout
40659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40662 \begin_layout Plain Layout
40670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40673 \begin_layout Plain Layout
40679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40682 \begin_layout Plain Layout
40690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40693 \begin_layout Plain Layout
40699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40702 \begin_layout Plain Layout
40714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40717 \begin_layout Plain Layout
40723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40726 \begin_layout Plain Layout
40738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40741 \begin_layout Plain Layout
40747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40750 \begin_layout Plain Layout
40752 \begin_inset space \thinspace{}
40756 \begin_inset space \thinspace{}
40777 \begin_layout Chapter
40778 Output File Formats with Graphics
40779 \begin_inset CommandInset label
40781 name "cha:Output-File-Formats"
40788 \begin_layout Section
40790 \begin_inset Index idx
40793 \begin_layout Plain Layout
40800 \begin_inset Index idx
40803 \begin_layout Plain Layout
40808 \begin_layout Plain Layout
40819 \begin_layout Plain Layout
40834 \begin_layout Standard
40835 This file type has the extension
40836 \begin_inset Quotes eld
40844 \begin_inset Quotes erd
40849 \begin_inset Quotes eld
40853 \begin_inset Quotes erd
40856 (DVI), because it is completely portable; you can move them from one machine
40857 to another without needing to do any sort of conversion.
40858 At the time when this file-format was developed, this was no matter of
40860 DVIs are used for quick previews and as pre-stage for other output formats,
40864 \begin_layout Standard
40865 \begin_inset Note Greyedout
40868 \begin_layout Plain Layout
40873 DVI-files do not contain images; they will only be a linked.
40878 So don't forget this, if you move your
40882 file to another computer.
40883 This property can also slow down your computer when you view the DVI, because
40884 the DVI-viewer has to convert the image in the background to make it visible
40885 when you scroll in the DVI.
40886 So it is recommended that you use PDF for files with many images.
40889 \begin_layout Standard
40890 You can export your document to DVI by using the menu
40892 File\SpecialChar \menuseparator
40893 Export\SpecialChar \menuseparator
40897 You can view your document as DVI via the
40904 \begin_layout Section
40906 \begin_inset CommandInset label
40908 name "sec:PostScript"
40913 \begin_inset Index idx
40916 \begin_layout Plain Layout
40917 File Formats ! PostScript
40923 \begin_inset Index idx
40926 \begin_layout Plain Layout
40931 \begin_layout Plain Layout
40942 \begin_layout Plain Layout
40957 \begin_layout Standard
40958 This file type has the extension
40959 \begin_inset Quotes eld
40967 \begin_inset Quotes erd
40971 PostScript was developed by the company
40975 as a printer language.
40976 The file therefore contains commands that the printer uses to print the
40978 PostScript can be seen as a
40979 \begin_inset Quotes eld
40982 programming language
40983 \begin_inset Quotes erd
40986 ; you can calculate with it and draw diagrams and images
40990 \begin_layout Plain Layout
40991 If you are interested to learn more about this, have a look at the LaTeX-package
40997 \begin_inset CommandInset citation
41009 Due to this ability, the files are often bigger than PDFs.
41012 \begin_layout Standard
41013 PostScript can only contain images in the format
41014 \begin_inset Quotes eld
41017 Encapsulated PostScript
41018 \begin_inset Quotes erd
41021 (EPS, file extension
41022 \begin_inset Quotes eld
41030 \begin_inset Quotes erd
41034 As LyX allows you to use any known image format in your document, it has
41035 to convert images in the background to EPS.
41037 \begin_inset space ~
41041 \begin_inset space ~
41044 images in your document, LyX has to do 50
41045 \begin_inset space ~
41048 conversions whenever you view or export your document.
41049 This will slow down your work flow with LyX drastically.
41050 So if you plan to use PostScript, you can insert your images directly as
41051 EPS to avoid this problem.
41054 \begin_layout Standard
41055 You can export your document to PostScript using the menu
41057 File\SpecialChar \menuseparator
41058 Export\SpecialChar \menuseparator
41062 You can view your document as PostScript via the
41069 \begin_layout Section
41071 \begin_inset Index idx
41074 \begin_layout Plain Layout
41081 \begin_inset Index idx
41084 \begin_layout Plain Layout
41093 \begin_layout Standard
41094 This file type has the extension
41095 \begin_inset Quotes eld
41103 \begin_inset Quotes erd
41108 \begin_inset Quotes eld
41111 Portable Document Format
41112 \begin_inset Quotes erd
41115 (PDF) was developed by
41119 as a derivative of PostScript.
41120 It is more compressed and it uses fewer commands than PostScript.
41122 \begin_inset Quotes eld
41126 \begin_inset Quotes erd
41129 implies, it can be processed at any computer system and the printed output
41130 looks exactly the same.
41133 \begin_layout Standard
41134 PDF can contain images in its own PDF format, in the format
41135 \begin_inset Quotes eld
41138 Joint Photographic Experts Group
41139 \begin_inset Quotes erd
41142 (JPG, file extension
41143 \begin_inset Quotes eld
41151 \begin_inset Quotes erd
41155 \begin_inset Quotes eld
41163 \begin_inset Quotes erd
41166 ), and in the format
41167 \begin_inset Quotes eld
41170 Portable Network Graphics
41171 \begin_inset Quotes erd
41174 (PNG, file extension
41175 \begin_inset Quotes eld
41183 \begin_inset Quotes erd
41187 Nevertheless you can use any other image format, because LyX converts them
41188 in the background to one of these formats.
41189 But as described in the section about PostScript, the image conversion
41190 will slow down your work flow.
41191 So it is recommended that you use images in one of the three mentioned
41195 \begin_layout Standard
41196 You can export your document to PDF via the menu
41198 File\SpecialChar \menuseparator
41201 in three different ways:
41204 \begin_layout Description
41206 \begin_inset space ~
41209 (ps2pdf) This uses the program
41213 that creates a PDF from a PostScript-version of your file.
41214 The PostScript-version is produced by the program
41218 which uses a DVI-version as intermediate step.
41219 So this export variant consists of three conversions.
41222 \begin_layout Description
41224 \begin_inset space ~
41227 (dvipdfm) This uses the program
41231 that converts your file in the background to DVI and in a second step to
41235 \begin_layout Description
41237 \begin_inset space ~
41240 (pdflatex) This uses the program
41244 that converts your file directly to PDF.
41247 \begin_layout Standard
41248 It is recommended that you use
41251 \begin_inset space ~
41260 supports all features of actual PDF-versions, is quick and works stable.
41265 is not under development and therefore a bit outdated.
41268 \begin_layout Standard
41269 You can view your document as PDF via the
41273 menu or by using a toolbar button.
41276 \begin_layout Chapter
41277 List of dvips color names
41278 \begin_inset CommandInset label
41280 name "chap:List-of-dvips-colornames"
41287 \begin_layout Standard
41288 \begin_inset Tabular
41289 <lyxtabular version="3" rows="17" columns="4">
41290 <features rotate="0" tabularvalignment="middle">
41291 <column alignment="left" valignment="top" width="0pt">
41292 <column alignment="left" valignment="top" width="0pt">
41293 <column alignment="left" valignment="top" width="0pt">
41294 <column alignment="left" valignment="top" width="0pt">
41296 <cell alignment="left" valignment="top" usebox="none">
41299 \begin_layout Plain Layout
41303 \begin_layout Plain Layout
41316 \begin_layout Plain Layout
41327 \begin_layout Plain Layout
41339 <cell alignment="left" valignment="top" usebox="none">
41342 \begin_layout Plain Layout
41346 \begin_layout Plain Layout
41359 \begin_layout Plain Layout
41370 \begin_layout Plain Layout
41382 <cell alignment="left" valignment="top" usebox="none">
41385 \begin_layout Plain Layout
41389 \begin_layout Plain Layout
41402 \begin_layout Plain Layout
41413 \begin_layout Plain Layout
41425 <cell alignment="left" valignment="top" usebox="none">
41428 \begin_layout Plain Layout
41432 \begin_layout Plain Layout
41445 \begin_layout Plain Layout
41456 \begin_layout Plain Layout
41470 <cell alignment="center" valignment="top" usebox="none">
41473 \begin_layout Plain Layout
41477 \begin_layout Plain Layout
41490 \begin_layout Plain Layout
41498 \begin_inset Phantom Phantom
41501 \begin_layout Plain Layout
41511 \begin_layout Plain Layout
41523 <cell alignment="center" valignment="top" usebox="none">
41526 \begin_layout Plain Layout
41530 \begin_layout Plain Layout
41543 \begin_layout Plain Layout
41551 \begin_inset Phantom Phantom
41554 \begin_layout Plain Layout
41564 \begin_layout Plain Layout
41576 <cell alignment="center" valignment="top" usebox="none">
41579 \begin_layout Plain Layout
41583 \begin_layout Plain Layout
41596 \begin_layout Plain Layout
41604 \begin_inset Phantom Phantom
41607 \begin_layout Plain Layout
41617 \begin_layout Plain Layout
41629 <cell alignment="center" valignment="top" usebox="none">
41632 \begin_layout Plain Layout
41636 \begin_layout Plain Layout
41649 \begin_layout Plain Layout
41657 \begin_inset Phantom Phantom
41660 \begin_layout Plain Layout
41670 \begin_layout Plain Layout
41684 <cell alignment="left" valignment="top" usebox="none">
41687 \begin_layout Plain Layout
41691 \begin_layout Plain Layout
41704 \begin_layout Plain Layout
41712 \begin_inset Phantom Phantom
41715 \begin_layout Plain Layout
41725 \begin_layout Plain Layout
41737 <cell alignment="left" valignment="top" usebox="none">
41740 \begin_layout Plain Layout
41744 \begin_layout Plain Layout
41757 \begin_layout Plain Layout
41765 \begin_inset Phantom Phantom
41768 \begin_layout Plain Layout
41778 \begin_layout Plain Layout
41790 <cell alignment="left" valignment="top" usebox="none">
41793 \begin_layout Plain Layout
41797 \begin_layout Plain Layout
41810 \begin_layout Plain Layout
41818 \begin_inset Phantom Phantom
41821 \begin_layout Plain Layout
41831 \begin_layout Plain Layout
41843 <cell alignment="left" valignment="top" usebox="none">
41846 \begin_layout Plain Layout
41850 \begin_layout Plain Layout
41863 \begin_layout Plain Layout
41871 \begin_inset Phantom Phantom
41874 \begin_layout Plain Layout
41884 \begin_layout Plain Layout
41898 <cell alignment="left" valignment="top" usebox="none">
41901 \begin_layout Plain Layout
41905 \begin_layout Plain Layout
41918 \begin_layout Plain Layout
41926 \begin_inset Phantom Phantom
41929 \begin_layout Plain Layout
41939 \begin_layout Plain Layout
41951 <cell alignment="left" valignment="top" usebox="none">
41954 \begin_layout Plain Layout
41958 \begin_layout Plain Layout
41971 \begin_layout Plain Layout
41979 \begin_inset Phantom Phantom
41982 \begin_layout Plain Layout
41992 \begin_layout Plain Layout
42004 <cell alignment="left" valignment="top" usebox="none">
42007 \begin_layout Plain Layout
42011 \begin_layout Plain Layout
42024 \begin_layout Plain Layout
42032 \begin_inset Phantom Phantom
42035 \begin_layout Plain Layout
42045 \begin_layout Plain Layout
42057 <cell alignment="left" valignment="top" usebox="none">
42060 \begin_layout Plain Layout
42064 \begin_layout Plain Layout
42077 \begin_layout Plain Layout
42085 \begin_inset Phantom Phantom
42088 \begin_layout Plain Layout
42098 \begin_layout Plain Layout
42112 <cell alignment="left" valignment="top" usebox="none">
42115 \begin_layout Plain Layout
42119 \begin_layout Plain Layout
42132 \begin_layout Plain Layout
42140 \begin_inset Phantom Phantom
42143 \begin_layout Plain Layout
42153 \begin_layout Plain Layout
42165 <cell alignment="left" valignment="top" usebox="none">
42168 \begin_layout Plain Layout
42172 \begin_layout Plain Layout
42185 \begin_layout Plain Layout
42193 \begin_inset Phantom Phantom
42196 \begin_layout Plain Layout
42206 \begin_layout Plain Layout
42218 <cell alignment="left" valignment="top" usebox="none">
42221 \begin_layout Plain Layout
42225 \begin_layout Plain Layout
42238 \begin_layout Plain Layout
42246 \begin_inset Phantom Phantom
42249 \begin_layout Plain Layout
42259 \begin_layout Plain Layout
42271 <cell alignment="left" valignment="top" usebox="none">
42274 \begin_layout Plain Layout
42278 \begin_layout Plain Layout
42291 \begin_layout Plain Layout
42299 \begin_inset Phantom Phantom
42302 \begin_layout Plain Layout
42312 \begin_layout Plain Layout
42326 <cell alignment="left" valignment="top" usebox="none">
42329 \begin_layout Plain Layout
42333 \begin_layout Plain Layout
42346 \begin_layout Plain Layout
42354 \begin_inset Phantom Phantom
42357 \begin_layout Plain Layout
42367 \begin_layout Plain Layout
42379 <cell alignment="left" valignment="top" usebox="none">
42382 \begin_layout Plain Layout
42386 \begin_layout Plain Layout
42399 \begin_layout Plain Layout
42407 \begin_inset Phantom Phantom
42410 \begin_layout Plain Layout
42420 \begin_layout Plain Layout
42432 <cell alignment="left" valignment="top" usebox="none">
42435 \begin_layout Plain Layout
42439 \begin_layout Plain Layout
42452 \begin_layout Plain Layout
42460 \begin_inset Phantom Phantom
42463 \begin_layout Plain Layout
42473 \begin_layout Plain Layout
42485 <cell alignment="left" valignment="top" usebox="none">
42488 \begin_layout Plain Layout
42492 \begin_layout Plain Layout
42505 \begin_layout Plain Layout
42513 \begin_inset Phantom Phantom
42516 \begin_layout Plain Layout
42526 \begin_layout Plain Layout
42540 <cell alignment="center" valignment="top" usebox="none">
42543 \begin_layout Plain Layout
42547 \begin_layout Plain Layout
42560 \begin_layout Plain Layout
42568 \begin_inset Phantom Phantom
42571 \begin_layout Plain Layout
42581 \begin_layout Plain Layout
42593 <cell alignment="center" valignment="top" usebox="none">
42596 \begin_layout Plain Layout
42600 \begin_layout Plain Layout
42613 \begin_layout Plain Layout
42621 \begin_inset Phantom Phantom
42624 \begin_layout Plain Layout
42634 \begin_layout Plain Layout
42646 <cell alignment="center" valignment="top" usebox="none">
42649 \begin_layout Plain Layout
42653 \begin_layout Plain Layout
42666 \begin_layout Plain Layout
42674 \begin_inset Phantom Phantom
42677 \begin_layout Plain Layout
42687 \begin_layout Plain Layout
42699 <cell alignment="center" valignment="top" usebox="none">
42702 \begin_layout Plain Layout
42706 \begin_layout Plain Layout
42719 \begin_layout Plain Layout
42727 \begin_inset Phantom Phantom
42730 \begin_layout Plain Layout
42740 \begin_layout Plain Layout
42754 <cell alignment="left" valignment="top" usebox="none">
42757 \begin_layout Plain Layout
42761 \begin_layout Plain Layout
42774 \begin_layout Plain Layout
42782 \begin_inset Phantom Phantom
42785 \begin_layout Plain Layout
42795 \begin_layout Plain Layout
42807 <cell alignment="left" valignment="top" usebox="none">
42810 \begin_layout Plain Layout
42814 \begin_layout Plain Layout
42827 \begin_layout Plain Layout
42835 \begin_inset Phantom Phantom
42838 \begin_layout Plain Layout
42848 \begin_layout Plain Layout
42860 <cell alignment="left" valignment="top" usebox="none">
42863 \begin_layout Plain Layout
42867 \begin_layout Plain Layout
42880 \begin_layout Plain Layout
42888 \begin_inset Phantom Phantom
42891 \begin_layout Plain Layout
42901 \begin_layout Plain Layout
42913 <cell alignment="left" valignment="top" usebox="none">
42916 \begin_layout Plain Layout
42920 \begin_layout Plain Layout
42933 \begin_layout Plain Layout
42941 \begin_inset Phantom Phantom
42944 \begin_layout Plain Layout
42954 \begin_layout Plain Layout
42968 <cell alignment="left" valignment="top" usebox="none">
42971 \begin_layout Plain Layout
42975 \begin_layout Plain Layout
42988 \begin_layout Plain Layout
42996 \begin_inset Phantom Phantom
42999 \begin_layout Plain Layout
43009 \begin_layout Plain Layout
43021 <cell alignment="left" valignment="top" usebox="none">
43024 \begin_layout Plain Layout
43028 \begin_layout Plain Layout
43041 \begin_layout Plain Layout
43049 \begin_inset Phantom Phantom
43052 \begin_layout Plain Layout
43062 \begin_layout Plain Layout
43074 <cell alignment="left" valignment="top" usebox="none">
43077 \begin_layout Plain Layout
43081 \begin_layout Plain Layout
43094 \begin_layout Plain Layout
43102 \begin_inset Phantom Phantom
43105 \begin_layout Plain Layout
43115 \begin_layout Plain Layout
43127 <cell alignment="left" valignment="top" usebox="none">
43130 \begin_layout Plain Layout
43134 \begin_layout Plain Layout
43147 \begin_layout Plain Layout
43155 \begin_inset Phantom Phantom
43158 \begin_layout Plain Layout
43168 \begin_layout Plain Layout
43182 <cell alignment="left" valignment="top" usebox="none">
43185 \begin_layout Plain Layout
43189 \begin_layout Plain Layout
43202 \begin_layout Plain Layout
43210 \begin_inset Phantom Phantom
43213 \begin_layout Plain Layout
43223 \begin_layout Plain Layout
43235 <cell alignment="left" valignment="top" usebox="none">
43238 \begin_layout Plain Layout
43242 \begin_layout Plain Layout
43255 \begin_layout Plain Layout
43263 \begin_inset Phantom Phantom
43266 \begin_layout Plain Layout
43276 \begin_layout Plain Layout
43288 <cell alignment="left" valignment="top" usebox="none">
43291 \begin_layout Plain Layout
43295 \begin_layout Plain Layout
43308 \begin_layout Plain Layout
43316 \begin_inset Phantom Phantom
43319 \begin_layout Plain Layout
43329 \begin_layout Plain Layout
43341 <cell alignment="left" valignment="top" usebox="none">
43344 \begin_layout Plain Layout
43348 \begin_layout Plain Layout
43361 \begin_layout Plain Layout
43369 \begin_inset Phantom Phantom
43372 \begin_layout Plain Layout
43382 \begin_layout Plain Layout
43396 <cell alignment="left" valignment="top" usebox="none">
43399 \begin_layout Plain Layout
43403 \begin_layout Plain Layout
43416 \begin_layout Plain Layout
43424 \begin_inset Phantom Phantom
43427 \begin_layout Plain Layout
43437 \begin_layout Plain Layout
43449 <cell alignment="left" valignment="top" usebox="none">
43452 \begin_layout Plain Layout
43456 \begin_layout Plain Layout
43469 \begin_layout Plain Layout
43477 \begin_inset Phantom Phantom
43480 \begin_layout Plain Layout
43490 \begin_layout Plain Layout
43502 <cell alignment="left" valignment="top" usebox="none">
43505 \begin_layout Plain Layout
43509 \begin_layout Plain Layout
43522 \begin_layout Plain Layout
43530 \begin_inset Phantom Phantom
43533 \begin_layout Plain Layout
43543 \begin_layout Plain Layout
43555 <cell alignment="left" valignment="top" usebox="none">
43558 \begin_layout Plain Layout
43562 \begin_layout Plain Layout
43575 \begin_layout Plain Layout
43583 \begin_inset Phantom Phantom
43586 \begin_layout Plain Layout
43596 \begin_layout Plain Layout
43610 <cell alignment="left" valignment="top" usebox="none">
43613 \begin_layout Plain Layout
43617 \begin_layout Plain Layout
43630 \begin_layout Plain Layout
43638 \begin_inset Phantom Phantom
43641 \begin_layout Plain Layout
43651 \begin_layout Plain Layout
43663 <cell alignment="left" valignment="top" usebox="none">
43666 \begin_layout Plain Layout
43670 \begin_layout Plain Layout
43683 \begin_layout Plain Layout
43691 \begin_inset Phantom Phantom
43694 \begin_layout Plain Layout
43704 \begin_layout Plain Layout
43716 <cell alignment="left" valignment="top" usebox="none">
43719 \begin_layout Plain Layout
43723 \begin_layout Plain Layout
43736 \begin_layout Plain Layout
43744 \begin_inset Phantom Phantom
43747 \begin_layout Plain Layout
43757 \begin_layout Plain Layout
43769 <cell alignment="left" valignment="top" usebox="none">
43772 \begin_layout Plain Layout
43776 \begin_layout Plain Layout
43789 \begin_layout Plain Layout
43797 \begin_inset Phantom Phantom
43800 \begin_layout Plain Layout
43810 \begin_layout Plain Layout
43824 <cell alignment="left" valignment="top" usebox="none">
43827 \begin_layout Plain Layout
43831 \begin_layout Plain Layout
43844 \begin_layout Plain Layout
43852 \begin_inset Phantom Phantom
43855 \begin_layout Plain Layout
43865 \begin_layout Plain Layout
43877 <cell alignment="left" valignment="top" usebox="none">
43880 \begin_layout Plain Layout
43884 \begin_layout Plain Layout
43897 \begin_layout Plain Layout
43905 \begin_inset Phantom Phantom
43908 \begin_layout Plain Layout
43918 \begin_layout Plain Layout
43930 <cell alignment="left" valignment="top" usebox="none">
43933 \begin_layout Plain Layout
43937 \begin_layout Plain Layout
43950 \begin_layout Plain Layout
43958 \begin_inset Phantom Phantom
43961 \begin_layout Plain Layout
43971 \begin_layout Plain Layout
43983 <cell alignment="left" valignment="top" usebox="none">
43986 \begin_layout Plain Layout
43990 \begin_layout Plain Layout
44003 \begin_layout Plain Layout
44011 \begin_inset Phantom Phantom
44014 \begin_layout Plain Layout
44024 \begin_layout Plain Layout
44038 <cell alignment="left" valignment="top" usebox="none">
44041 \begin_layout Plain Layout
44045 \begin_layout Plain Layout
44058 \begin_layout Plain Layout
44066 \begin_inset Phantom Phantom
44069 \begin_layout Plain Layout
44079 \begin_layout Plain Layout
44091 <cell alignment="left" valignment="top" usebox="none">
44094 \begin_layout Plain Layout
44098 \begin_layout Plain Layout
44111 \begin_layout Plain Layout
44119 \begin_inset Phantom Phantom
44122 \begin_layout Plain Layout
44132 \begin_layout Plain Layout
44144 <cell alignment="left" valignment="top" usebox="none">
44147 \begin_layout Plain Layout
44151 \begin_layout Plain Layout
44164 \begin_layout Plain Layout
44172 \begin_inset Phantom Phantom
44175 \begin_layout Plain Layout
44185 \begin_layout Plain Layout
44197 <cell alignment="left" valignment="top" usebox="none">
44200 \begin_layout Plain Layout
44204 \begin_layout Plain Layout
44217 \begin_layout Plain Layout
44225 \begin_inset Phantom Phantom
44228 \begin_layout Plain Layout
44238 \begin_layout Plain Layout
44252 <cell alignment="left" valignment="top" usebox="none">
44255 \begin_layout Plain Layout
44259 \begin_layout Plain Layout
44272 \begin_layout Plain Layout
44280 \begin_inset Phantom Phantom
44283 \begin_layout Plain Layout
44293 \begin_layout Plain Layout
44305 <cell alignment="left" valignment="top" usebox="none">
44308 \begin_layout Plain Layout
44312 \begin_layout Plain Layout
44325 \begin_layout Plain Layout
44333 \begin_inset Phantom Phantom
44336 \begin_layout Plain Layout
44346 \begin_layout Plain Layout
44358 <cell alignment="left" valignment="top" usebox="none">
44361 \begin_layout Plain Layout
44365 \begin_layout Plain Layout
44378 \begin_layout Plain Layout
44386 \begin_inset Phantom Phantom
44389 \begin_layout Plain Layout
44399 \begin_layout Plain Layout
44411 <cell alignment="left" valignment="top" usebox="none">
44414 \begin_layout Plain Layout
44418 \begin_layout Plain Layout
44431 \begin_layout Plain Layout
44439 \begin_inset Phantom Phantom
44442 \begin_layout Plain Layout
44452 \begin_layout Plain Layout
44466 <cell alignment="left" valignment="top" usebox="none">
44469 \begin_layout Plain Layout
44473 \begin_layout Plain Layout
44486 \begin_layout Plain Layout
44494 \begin_inset Phantom Phantom
44497 \begin_layout Plain Layout
44507 \begin_layout Plain Layout
44519 <cell alignment="left" valignment="top" usebox="none">
44522 \begin_layout Plain Layout
44526 \begin_layout Plain Layout
44539 \begin_layout Plain Layout
44547 \begin_inset Phantom Phantom
44550 \begin_layout Plain Layout
44560 \begin_layout Plain Layout
44572 <cell alignment="left" valignment="top" usebox="none">
44575 \begin_layout Plain Layout
44579 \begin_layout Plain Layout
44592 \begin_layout Plain Layout
44600 \begin_inset Phantom Phantom
44603 \begin_layout Plain Layout
44613 \begin_layout Plain Layout
44625 <cell alignment="left" valignment="top" usebox="none">
44628 \begin_layout Plain Layout
44632 \begin_layout Plain Layout
44645 \begin_layout Plain Layout
44653 \begin_inset Phantom Phantom
44656 \begin_layout Plain Layout
44666 \begin_layout Plain Layout
44680 <cell alignment="left" valignment="top" usebox="none">
44683 \begin_layout Plain Layout
44687 \begin_layout Plain Layout
44700 \begin_layout Plain Layout
44708 \begin_inset Phantom Phantom
44711 \begin_layout Plain Layout
44721 \begin_layout Plain Layout
44733 <cell alignment="left" valignment="top" usebox="none">
44736 \begin_layout Plain Layout
44742 <cell alignment="left" valignment="top" usebox="none">
44745 \begin_layout Plain Layout
44751 <cell alignment="left" valignment="top" usebox="none">
44754 \begin_layout Plain Layout
44768 \begin_layout Chapter
44769 Explanation of Equation
44770 \begin_inset space ~
44774 \begin_inset CommandInset ref
44781 \begin_inset CommandInset label
44783 name "cha:Explanation-of-Equation"
44790 \begin_layout Standard
44791 We can calculate the total width of
44796 \begin_inset Formula $W_{\mathrm{tot\, n}}$
44800 \begin_inset Formula
44802 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44808 \begin_inset Formula $W_{g\, n}$
44811 is the given width of all cells,
44817 is the LaTeX-length between the cell text and the cell border (its default
44819 \begin_inset space \thinspace{}
44829 is the thickness of the cell border line, the default is 0.4
44830 \begin_inset space \thinspace{}
44836 \begin_layout Standard
44838 \begin_inset space ~
44842 \begin_inset CommandInset ref
44844 reference "eq:Wtot_n"
44848 , the total width of a multicolumn
44849 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
44853 \begin_inset Formula
44855 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44863 \begin_layout Standard
44864 By setting equation
44865 \begin_inset space ~
44869 \begin_inset CommandInset ref
44871 reference "eq:Wtot_n"
44876 \begin_inset CommandInset ref
44878 reference "eq:Wtot_mult"
44882 equal we can calculate the needed given width
44883 \begin_inset Formula $W_{g\, n}$
44890 columns are spanned, so that each column has a total width of
44891 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
44895 \begin_inset Formula
44897 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44905 \begin_layout Bibliography
44906 \begin_inset CommandInset bibitem
44907 LatexCommand bibitem
44908 key "latexcompanion"
44912 Frank Mittelbach and Michel Goossens:
44914 The LaTeX Companion Second Edition.
44917 Addison-Wesley, 2004
44920 \begin_layout Bibliography
44921 \begin_inset CommandInset bibitem
44922 LatexCommand bibitem
44927 Helmut Kopka and Patrick W.
44930 A Guide to LaTeX Fourth Edition.
44933 Addison-Wesley, 2003
44936 \begin_layout Bibliography
44937 \begin_inset CommandInset bibitem
44938 LatexCommand bibitem
44945 LaTeX: A Document Preparation System.
44948 Addison-Wesley, second edition, 1994
44951 \begin_layout Bibliography
44952 \begin_inset CommandInset bibitem
44953 LatexCommand bibitem
44958 Documentation of the LaTeX-package
44961 \begin_inset CommandInset href
44964 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44971 \begin_inset Index idx
44974 \begin_layout Plain Layout
44975 LaTeX-packages ! arydshln
44983 \begin_layout Bibliography
44984 \begin_inset CommandInset bibitem
44985 LatexCommand bibitem
44990 Documentation of the LaTeX-package
44993 \begin_inset CommandInset href
44996 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45003 \begin_inset Index idx
45006 \begin_layout Plain Layout
45007 LaTeX-packages ! booktabs
45015 \begin_layout Bibliography
45016 \begin_inset CommandInset bibitem
45017 LatexCommand bibitem
45022 Documentation of the LaTeX-package
45025 \begin_inset CommandInset href
45028 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45035 \begin_inset Index idx
45038 \begin_layout Plain Layout
45039 LaTeX-packages ! caption
45047 \begin_layout Bibliography
45048 \begin_inset CommandInset bibitem
45049 LatexCommand bibitem
45054 Documentation of the LaTeX-package
45057 \begin_inset CommandInset href
45060 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45067 \begin_inset Index idx
45070 \begin_layout Plain Layout
45071 LaTeX-packages ! diagbox
45079 \begin_layout Bibliography
45080 \begin_inset CommandInset bibitem
45081 LatexCommand bibitem
45086 Documentation of the LaTeX-package
45089 \begin_inset CommandInset href
45092 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45099 \begin_inset Index idx
45102 \begin_layout Plain Layout
45103 LaTeX-packages ! endfloat
45111 \begin_layout Bibliography
45112 \begin_inset CommandInset bibitem
45113 LatexCommand bibitem
45118 Documentation of the LaTeX-package
45121 \begin_inset CommandInset href
45124 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45131 \begin_inset Index idx
45134 \begin_layout Plain Layout
45135 LaTeX-packages ! footmisc
45143 \begin_layout Bibliography
45144 \begin_inset CommandInset bibitem
45145 LatexCommand bibitem
45150 Documentation of the LaTeX-package
45153 \begin_inset CommandInset href
45156 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45163 \begin_inset Index idx
45166 \begin_layout Plain Layout
45167 LaTeX-packages ! hyperref
45175 \begin_layout Bibliography
45176 \begin_inset CommandInset bibitem
45177 LatexCommand bibitem
45182 Documentation of the LaTeX-package
45185 \begin_inset CommandInset href
45188 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45195 \begin_inset Index idx
45198 \begin_layout Plain Layout
45199 LaTeX-packages ! hyperref
45207 \begin_layout Bibliography
45208 \begin_inset CommandInset bibitem
45209 LatexCommand bibitem
45214 Documentation of the LaTeX-package
45217 \begin_inset CommandInset href
45220 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/scrguien.pdf"
45227 \begin_inset Index idx
45230 \begin_layout Plain Layout
45231 LaTeX-packages ! KOMA-Script
45239 \begin_layout Bibliography
45240 \begin_inset CommandInset bibitem
45241 LatexCommand bibitem
45246 Documentation of the LaTeX-package
45249 \begin_inset CommandInset href
45252 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45259 \begin_inset CommandInset href
45262 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45267 \begin_inset Index idx
45270 \begin_layout Plain Layout
45271 LaTeX-packages ! lettrine
45279 \begin_layout Bibliography
45280 \begin_inset CommandInset bibitem
45281 LatexCommand bibitem
45286 Documentation of the LaTeX-package
45289 \begin_inset CommandInset href
45292 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45299 \begin_inset Index idx
45302 \begin_layout Plain Layout
45303 LaTeX-packages ! listings
45311 \begin_layout Bibliography
45312 \begin_inset CommandInset bibitem
45313 LatexCommand bibitem
45318 Documentation of the LaTeX-package
45321 \begin_inset CommandInset href
45324 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45331 \begin_inset Index idx
45334 \begin_layout Plain Layout
45335 LaTeX-packages ! marginnote
45343 \begin_layout Bibliography
45344 \begin_inset CommandInset bibitem
45345 LatexCommand bibitem
45350 Documentation of the LaTeX-package
45353 \begin_inset CommandInset href
45356 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45363 \begin_inset Index idx
45366 \begin_layout Plain Layout
45367 LaTeX-packages ! pdfpages
45375 \begin_layout Bibliography
45376 \begin_inset CommandInset bibitem
45377 LatexCommand bibitem
45382 Documentation of the LaTeX-package
45385 \begin_inset CommandInset href
45388 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45395 \begin_inset Index idx
45398 \begin_layout Plain Layout
45399 LaTeX-packages ! prettyref
45407 \begin_layout Bibliography
45408 \begin_inset CommandInset bibitem
45409 LatexCommand bibitem
45414 Web page of the LaTeX-package
45417 \begin_inset CommandInset href
45420 target "http://tug.org/PSTricks/"
45427 \begin_inset Index idx
45430 \begin_layout Plain Layout
45431 LaTeX-packages ! PSTricks
45439 \begin_layout Bibliography
45440 \begin_inset CommandInset bibitem
45441 LatexCommand bibitem
45446 Documentation of the LaTeX-package
45449 \begin_inset CommandInset href
45452 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45459 \begin_inset Index idx
45462 \begin_layout Plain Layout
45463 LaTeX-packages ! refstyle
45471 \begin_layout Bibliography
45472 \begin_inset CommandInset bibitem
45473 LatexCommand bibitem
45478 Documentation of the LaTeX-package
45481 \begin_inset CommandInset href
45484 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45491 \begin_inset Index idx
45494 \begin_layout Plain Layout
45495 LaTeX-packages ! sidecap
45503 \begin_layout Bibliography
45504 \begin_inset CommandInset bibitem
45505 LatexCommand bibitem
45511 \begin_inset CommandInset href
45514 target "http://wiki.lyx.org/LyX/NewInLyX20"
45518 about new features in
45525 \begin_layout Standard
45526 \begin_inset CommandInset index_print
45527 LatexCommand printindex