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
249 \tracking_changes true
250 \output_changes false
253 \html_be_strict false
254 \author -195340706 "Georg Baum"
260 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
269 \begin_layout Plain Layout
271 If you have comments or error corrections, please send them to the LyX Documenta
273 \begin_inset CommandInset href
275 name "lyx-docs@lists.lyx.org"
276 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
287 \begin_inset Note Note
290 \begin_layout Plain Layout
297 \begin_inset Newline newline
301 \begin_inset Newline newline
309 \begin_layout Standard
310 \begin_inset CommandInset toc
311 LatexCommand tableofcontents
318 \begin_layout Standard
319 \begin_inset Note Note
322 \begin_layout Plain Layout
323 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
334 diagbox, lettrine, marginnote, picinpar
341 If they are not installed you can export the document anyway but the sections
342 where the packages are required won't appear in the output.
345 \begin_layout Plain Layout
346 The latest PDF-version of this document can be found here:
347 \begin_inset Newline newline
352 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
360 \begin_layout Chapter
362 \begin_inset Index idx
365 \begin_layout Plain Layout
372 \begin_inset Index idx
375 \begin_layout Plain Layout
380 \begin_layout Plain Layout
391 \begin_layout Plain Layout
406 \begin_layout Section
408 \begin_inset Index idx
411 \begin_layout Plain Layout
412 Figures ! Graphics Dialog
418 \begin_inset CommandInset label
420 name "sec:Graphics-Dialog"
427 \begin_layout Standard
428 To insert an image into your document, place the cursor at the text position
429 you want and click on the toolbar icon
432 arg "dialog-show-new-inset graphics"
437 Insert\SpecialChar \menuseparator
441 Then a dialog will appear to choose the file to load.
442 The image will appear in the output exactly at the position where it is
446 \begin_layout Standard
447 The graphics dialog can be called at any time by clicking on an image.
448 This dialog has three tabs:
451 \begin_layout Description
456 Here you can choose an image file and adjust its appearance in the output.
457 The available units for the image size are explained in appendix
462 \begin_inset CommandInset ref
464 reference "cha:Units-available-in"
469 \begin_inset Newline newline
473 \begin_inset Index idx
476 \begin_layout Plain Layout
482 You can rotate images counter-clockwise by setting a rotation angle and
484 The image will also be rotated inside LyX.
485 \begin_inset Newline newline
489 \begin_inset Index idx
492 \begin_layout Plain Layout
498 Images can be scaled by using a percentage value or by setting the width
499 and height explicitly.
500 If you set only the width or only the height, the other size will be determined
502 If you set both, then the image will be transformed to the given size,
503 possibly distorting it.
504 To prevent the image from distortion, use the option
506 Maintain aspect ratio
509 The image will then be scaled so that its width and height don't exceed
510 the specified dimensions.
511 \begin_inset Newline newline
514 Images can be opened in a program of your choice by right-clicking on it
515 and choosing the entry
524 The program can be set for every image format in the file format settings
525 in LyX's preferences.
528 \begin_layout Description
533 Alternatively to the usage of scaling units it is possible to set image
534 coordinates to adjust the height and width of the image in the output.
535 The coordinates can also be calculated automatically by pressing the button
565 will only print the image region within the given coordinates.
566 Normally you don't need to worry about image coordinates and can ignore
570 \begin_layout Description
587 In this tab you can modify the appearance of the image within LyX and LaTeX
588 experts can specify additional LaTeX options.
589 \begin_inset Newline newline
600 makes the image appear in the output only as a frame with the size of the
602 \begin_inset Newline newline
621 option only affects zipped EPS-graphics, e.
622 \begin_inset space \thinspace{}
626 \begin_inset space \space{}
634 When the option is used the images will not be unzipped on export, since
635 LaTeX can handle them as they are.
636 \begin_inset Newline newline
639 Zipped EPS-graphics are useful to save disk space when you choose PostScript
640 as output format, see appendix
645 \begin_inset CommandInset ref
647 reference "sec:PostScript"
652 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
654 \begin_inset Newline newline
662 \begin_inset Newline newline
667 zgrep %%Bounding x.eps.gz > x.eps.bb
670 \begin_inset Newline newline
673 The second command creates the bounding box file
674 \begin_inset Quotes eld
678 \begin_inset Quotes erd
681 that is needed by LaTeX for zipped graphics.
682 \begin_inset Newline newline
693 you can define or join an image settings group.
694 \begin_inset Index idx
697 \begin_layout Plain Layout
698 Figures ! Settings grouping
703 Images within such a group share their settings, so adjusting one image
704 of the group automatically also adjusts all other images of the group in
706 So you can for example change the size for a bunch of images without the
707 need to manually change each of them.
708 Joining an existing group can also be done using the context menu of the
709 image by checking the name of the desired group.
712 \begin_layout Standard
713 \begin_inset VSpace bigskip
719 \begin_layout Standard
720 This is an example image in EPS format
724 \begin_layout Plain Layout
725 Image formats are explained in section
730 \begin_inset CommandInset ref
732 reference "sec:Image-Formats"
741 within a separate, horizontally centered paragraph:
744 \begin_layout Standard
746 \begin_inset Graphics
747 filename clipart/mobius.eps
757 \begin_layout Standard
758 This is the same image like the one above but in draft mode:
761 \begin_layout Standard
763 \begin_inset Graphics
764 filename clipart/mobius.eps
775 \begin_layout Standard
776 \begin_inset Newpage newpage
782 \begin_layout Section
784 \begin_inset CommandInset label
786 name "sec:Figure-Floats"
791 \begin_inset Index idx
794 \begin_layout Plain Layout
801 \begin_inset Index idx
804 \begin_layout Plain Layout
813 \begin_layout Standard
814 For general explanations about floats, have a look at section
819 \begin_inset CommandInset ref
821 reference "sec:FloatIntroduction"
828 \begin_layout Standard
832 arg "float-insert figure"
837 Insert\SpecialChar \menuseparator
838 Float\SpecialChar \menuseparator
841 inserts a float with a caption that has the label
842 \begin_inset Quotes eld
850 \begin_inset Quotes erd
853 (# is the actual number).
854 You can insert the image above the caption, like in Figure
859 \begin_inset CommandInset ref
861 reference "fig:kill-plat"
865 or below the caption, like in Figure
870 \begin_inset CommandInset ref
872 reference "fig:escher"
877 More about caption placement is described in section
882 \begin_inset CommandInset ref
884 reference "sec:Caption-Placement"
891 \begin_layout Standard
892 \begin_inset Float figure
897 \begin_layout Plain Layout
899 \begin_inset Graphics
900 filename clipart/platypus.eps
910 \begin_layout Plain Layout
911 \begin_inset Caption Standard
913 \begin_layout Plain Layout
914 \begin_inset CommandInset label
920 A severely distorted platypus in a float.
933 \begin_layout Standard
934 \begin_inset Float figure
939 \begin_layout Plain Layout
940 \begin_inset Caption Standard
942 \begin_layout Plain Layout
943 \begin_inset CommandInset label
958 \begin_layout Plain Layout
960 \begin_inset Graphics
961 filename clipart/escher-lsd.eps
976 \begin_layout Standard
977 \begin_inset Index idx
980 \begin_layout Plain Layout
981 References ! to Figures
991 \begin_inset CommandInset ref
993 reference "fig:kill-plat"
998 \begin_inset CommandInset ref
1000 reference "fig:escher"
1004 are examples of referenced figures.
1005 Figures can be referenced in the text by referencing their label.
1006 To do this insert a label in the caption using the menu
1008 Insert\SpecialChar \menuseparator
1011 or the toolbar button
1018 You can now refer to the label using the menu
1020 Insert\SpecialChar \menuseparator
1022 \begin_inset space ~
1027 or the toolbar button
1030 arg "dialog-show-new-inset ref"
1034 It is important to use references to floats, rather than using vague references
1036 \begin_inset Quotes eld
1040 \begin_inset Quotes erd
1043 , because LaTeX will reposition the floats in the final document and it
1045 \begin_inset Quotes eld
1049 \begin_inset Quotes erd
1053 \begin_inset Newline newline
1056 Referencing is explained in detail in section
1057 \begin_inset space ~
1061 \begin_inset CommandInset ref
1063 reference "sec:Referencing-Floats"
1070 \begin_layout Standard
1071 Normally only one image is inserted to a figure float, but sometimes you
1072 might want to use two images with separate subcaptions.
1073 This can be done by inserting image floats into existing image floats.
1074 Note that only the main caption of the float is added to the List of Figures.
1076 \begin_inset space ~
1080 \begin_inset CommandInset ref
1082 reference "fig:Two-distorted-images"
1086 is an example of a figure float with two images set side by side.
1087 You can also set the images one below the other.
1089 \begin_inset space ~
1093 \begin_inset CommandInset ref
1095 reference "fig:Undefinable-structure"
1100 \begin_inset CommandInset ref
1102 reference "fig:A-Platypus"
1109 \begin_layout Standard
1110 \begin_inset Float figure
1115 \begin_layout Plain Layout
1116 \begin_inset space \hfill{}
1120 \begin_inset Float figure
1125 \begin_layout Plain Layout
1126 \begin_inset Caption Standard
1128 \begin_layout Plain Layout
1129 \begin_inset CommandInset label
1131 name "fig:Undefinable-structure"
1135 Undefinable structure.
1143 \begin_layout Plain Layout
1144 \begin_inset Graphics
1145 filename clipart/escher-lsd.eps
1158 \begin_inset space \hfill{}
1162 \begin_inset Float figure
1167 \begin_layout Plain Layout
1168 \begin_inset Caption Standard
1170 \begin_layout Plain Layout
1171 \begin_inset CommandInset label
1173 name "fig:A-Platypus"
1185 \begin_layout Plain Layout
1186 \begin_inset Graphics
1187 filename clipart/platypus.eps
1200 \begin_inset space \hfill{}
1206 \begin_layout Plain Layout
1207 \begin_inset Caption Standard
1209 \begin_layout Plain Layout
1210 \begin_inset CommandInset label
1212 name "fig:Two-distorted-images"
1217 \begin_inset CommandInset label
1219 name "fig2:Two-distorted-images-2"
1223 Two distorted images.
1224 Both images are in the image settings group named
1225 \begin_inset Quotes eld
1229 \begin_inset Quotes erd
1245 \begin_layout Standard
1246 \begin_inset Newpage newpage
1252 \begin_layout Section
1254 \begin_inset CommandInset label
1256 name "sec:Image-Formats"
1261 \begin_inset Index idx
1264 \begin_layout Plain Layout
1271 \begin_inset Index idx
1274 \begin_layout Plain Layout
1275 Figures ! Image Formats
1283 \begin_layout Standard
1284 You can insert images in any known file format.
1285 But as explained in appendix
1286 \begin_inset space ~
1290 \begin_inset CommandInset ref
1292 reference "cha:Output-File-Formats"
1296 , each output document format allows only a few image formats.
1297 LyX uses therefore the program
1301 in the background to convert the images to the right format.
1302 To increase your work flow by avoiding these conversions in the background,
1303 you could choose to use only the image formats that can directly be embedded
1304 in the output file format.
1305 The output file formats are explained in appendix
1306 \begin_inset space ~
1310 \begin_inset CommandInset ref
1312 reference "cha:Output-File-Formats"
1319 \begin_layout Standard
1320 Similar to fonts there are two types of image formats:
1323 \begin_layout Description
1325 \begin_inset space ~
1328 images consist of pixel values, often in a compressed form.
1329 They are therefore not fully scalable and look pixelated in large zooms.
1330 Well-known bitmap image formats are
1331 \begin_inset Quotes eld
1334 Graphics Interchange Format
1335 \begin_inset Quotes erd
1338 (GIF, file extension
1339 \begin_inset Quotes eld
1347 \begin_inset Quotes erd
1351 \begin_inset Index idx
1354 \begin_layout Plain Layout
1359 \begin_layout Plain Layout
1370 \begin_layout Plain Layout
1383 \begin_inset Quotes eld
1386 Portable Network Graphics
1387 \begin_inset Quotes erd
1390 (PNG, file extension
1391 \begin_inset Quotes eld
1399 \begin_inset Quotes erd
1403 \begin_inset Index idx
1406 \begin_layout Plain Layout
1411 \begin_layout Plain Layout
1422 \begin_layout Plain Layout
1435 \begin_inset Quotes eld
1438 Joint Photographic Experts Group
1439 \begin_inset Quotes erd
1442 (JPG, file extension
1443 \begin_inset Quotes eld
1451 \begin_inset Quotes erd
1455 \begin_inset Quotes eld
1463 \begin_inset Quotes erd
1467 \begin_inset Index idx
1470 \begin_layout Plain Layout
1475 \begin_layout Plain Layout
1486 \begin_layout Plain Layout
1501 \begin_layout Description
1503 \begin_inset space ~
1506 images consist of vectors and can therefore be scaled to any size without
1508 The scaling ability is necessary if you want to create presentations, because
1509 presentations are always scaled by the video projector.
1510 Scaling is also useful for online documents to let the user zoom into diagrams.
1511 \begin_inset Newline newline
1514 Well-known scalable image formats are
1515 \begin_inset Quotes eld
1518 Scalable Vector Graphics
1519 \begin_inset Quotes erd
1522 (SVG, file extension
1523 \begin_inset Quotes eld
1531 \begin_inset Quotes erd
1535 \begin_inset Index idx
1538 \begin_layout Plain Layout
1543 \begin_layout Plain Layout
1554 \begin_layout Plain Layout
1567 \begin_inset Quotes eld
1570 Encapsulated PostScript
1571 \begin_inset Quotes erd
1574 (EPS, file extension
1575 \begin_inset Quotes eld
1583 \begin_inset Quotes erd
1587 \begin_inset Index idx
1590 \begin_layout Plain Layout
1595 \begin_layout Plain Layout
1606 \begin_layout Plain Layout
1619 \begin_inset Quotes eld
1622 Portable Document Format
1623 \begin_inset Quotes erd
1626 (PDF, file extension
1627 \begin_inset Quotes eld
1635 \begin_inset Quotes erd
1639 \begin_inset Index idx
1642 \begin_layout Plain Layout
1649 \begin_inset Quotes eld
1653 \begin_inset Quotes erd
1656 (WMF, file extension
1657 \begin_inset Quotes eld
1665 \begin_inset Quotes erd
1669 \begin_inset Index idx
1672 \begin_layout Plain Layout
1677 \begin_layout Plain Layout
1688 \begin_layout Plain Layout
1702 \begin_inset Quotes eld
1706 \begin_inset Quotes erd
1709 , because you can convert any bitmap image to a PDF or EPS-image and the
1710 result will still be a bitmap image.
1711 In such cases only a header with the image properties is added to the original
1716 \begin_layout Plain Layout
1717 In the case of PDF, the original image is additionally compressed.
1723 The PDF-files generated by
1727 are for example bitmap images.
1730 \begin_layout Standard
1731 Normally it is not possible to convert a bitmap image into a scalable one,
1733 Only the image formats PDF and EPS can directly be embedded to PDF and
1734 PostScript output files, respectively.
1735 SVG and WMF-images are recalculated to bitmaps when the output file is
1736 generated because there is currently no adequate WMF/SVG
1737 \begin_inset Formula $\to$
1740 PDF/EPS converter available.
1743 \begin_layout Chapter
1745 \begin_inset Index idx
1748 \begin_layout Plain Layout
1757 \begin_layout Section
1759 \begin_inset Index idx
1762 \begin_layout Plain Layout
1763 Table ! Introduction
1771 \begin_layout Standard
1772 You can insert a table using either the toolbar button
1775 arg "tabular-insert"
1780 Insert\SpecialChar \menuseparator
1784 The toolbar button offers you a graphical selection: move the mouse to
1785 set the column/row number of the table that should be created and then
1786 press a mouse button.
1787 When you use the menu to create a table, a dialog will appear, asking you
1788 for the number of rows and columns.
1789 \begin_inset Newline newline
1792 The default table has lines around any cell and the first row appears separated
1793 from the rest of the table.
1794 This separation occurs due to a double line: The cells of the first row
1795 have a line below them and the cells of the second row have a line above
1797 Here is an example table:
1800 \begin_layout Standard
1802 \begin_inset Tabular
1803 <lyxtabular version="3" rows="4" columns="4">
1804 <features rotate="0" tabularvalignment="middle">
1805 <column alignment="center" valignment="top" width="0">
1806 <column alignment="center" valignment="top" width="0">
1807 <column alignment="center" valignment="top" width="0">
1808 <column alignment="center" valignment="top" width="0">
1810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1813 \begin_layout Plain Layout
1819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1822 \begin_layout Plain Layout
1837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1840 \begin_layout Plain Layout
1846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1849 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1860 \begin_layout Plain Layout
1875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1878 \begin_layout Plain Layout
1884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1887 \begin_layout Plain Layout
1893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1896 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1907 \begin_layout Plain Layout
1922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1925 \begin_layout Plain Layout
1931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1934 \begin_layout Plain Layout
1940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1943 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1954 \begin_layout Plain Layout
1969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1972 \begin_layout Plain Layout
1978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1981 \begin_layout Plain Layout
1987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1990 \begin_layout Plain Layout
2004 \begin_layout Section
2006 \begin_inset Index idx
2009 \begin_layout Plain Layout
2018 \begin_layout Standard
2019 You can alter a table by clicking on it with the right mouse button, which
2020 brings up the table dialog.
2021 Here you can adjust the settings of that cell and row/column respectively
2022 where the cursor is currently placed.
2023 Most of the dialog options also work on selections.
2024 This means if you select more cells, columns or rows, the action is done
2025 for the whole selection.
2026 Note that there is a difference between selecting the
2030 of the cell, and the cell itself.
2031 \begin_inset Newline newline
2034 With the dialog option
2037 \begin_inset space ~
2042 every change you make in the dialog is directly applied.
2043 If you move the cursor to another table cell the dialog will then also
2044 be updated with the parameters of the new cell.
2045 If you change length values in the dialog you must press return to get
2047 \begin_inset Newline newline
2050 You can alter tables with the following tabs of the table dialog:
2053 \begin_layout Description
2057 \begin_inset space ~
2062 Here you can set the table width
2063 \begin_inset Index idx
2066 \begin_layout Plain Layout
2072 , and the horizontal alignment and the width of the current column.
2076 \begin_inset space ~
2080 \begin_inset space ~
2085 is described in section
2086 \begin_inset space ~
2090 \begin_inset CommandInset ref
2092 reference "sub:Special-Cell-Alignment"
2097 When you have set a width you can also adjust the vertical alignment of
2099 A given width will allow the cell to have line breaks and multiple paragraphs
2101 \begin_inset space \thinspace{}
2105 \begin_inset CommandInset ref
2107 reference "sub:Multiple-Lines-in"
2112 If you set no width, the column is as wide as the content of its widest
2114 \begin_inset Newline newline
2117 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2119 \begin_inset space \thinspace{}
2123 \begin_inset CommandInset ref
2125 reference "sub:Multicolumns"
2129 or the cells of one column as multirow cell, see sec.
2130 \begin_inset space \thinspace{}
2134 \begin_inset CommandInset ref
2136 reference "sub:Multirows"
2141 \begin_inset Newline newline
2144 The rotate check boxes rotate the current cell, a selection, or the whole
2145 table counter-clockwise by 90
2146 \begin_inset space \thinspace{}
2150 The rotation is not shown within LyX, only in the output.
2151 For more information see sec.
2152 \begin_inset space \thinspace{}
2156 \begin_inset CommandInset ref
2158 reference "sec:Rotated-Table-Cells"
2163 \begin_inset Newline newline
2167 \begin_inset Note Greyedout
2170 \begin_layout Plain Layout
2175 Not all DVI-viewers are able to display rotations.
2181 \begin_inset Newline newline
2184 The table-wide vertical alignment is used for tables within text lines:
2185 \begin_inset Newline newline
2188 A line with tables with different alignments:
2189 \begin_inset Tabular
2190 <lyxtabular version="3" rows="2" columns="2">
2191 <features rotate="0" tabularvalignment="top">
2192 <column alignment="center" valignment="top" width="0pt">
2193 <column alignment="center" valignment="top" width="0">
2195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2198 \begin_layout Plain Layout
2204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2207 \begin_layout Plain Layout
2224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2227 \begin_layout Plain Layout
2242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2245 \begin_layout Plain Layout
2257 \begin_inset Tabular
2258 <lyxtabular version="3" rows="2" columns="2">
2259 <features rotate="0" tabularvalignment="middle">
2260 <column alignment="center" valignment="top" width="0">
2261 <column alignment="center" valignment="top" width="0">
2263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2266 \begin_layout Plain Layout
2272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2275 \begin_layout Plain Layout
2292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2295 \begin_layout Plain Layout
2310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2313 \begin_layout Plain Layout
2325 \begin_inset Tabular
2326 <lyxtabular version="3" rows="2" columns="2">
2327 <features rotate="0" tabularvalignment="bottom">
2328 <column alignment="center" valignment="top" width="0pt">
2329 <column alignment="center" valignment="top" width="0">
2331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2334 \begin_layout Plain Layout
2340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2343 \begin_layout Plain Layout
2360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2363 \begin_layout Plain Layout
2378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2381 \begin_layout Plain Layout
2393 \begin_inset Newline newline
2396 It is also possible to enter a LaTeX-argument which is needed for special
2397 table formattings, see sec.
2398 \begin_inset space \thinspace{}
2402 \begin_inset CommandInset ref
2404 reference "sub:Multicolumn-Calculations"
2409 \begin_inset CommandInset ref
2411 reference "sec:Colored-Tables"
2418 \begin_layout Description
2423 In this tab you can add and delete border lines for the current row/column.
2424 \begin_inset Newline newline
2427 Using the style option
2431 will convert the table to a formal table as described in sec.
2432 \begin_inset space \thinspace{}
2436 \begin_inset CommandInset ref
2438 reference "sec:Formal-Tables"
2443 \begin_inset Newline newline
2446 You can also add space here to table rows as described in sec.
2447 \begin_inset space \thinspace{}
2451 \begin_inset CommandInset ref
2453 reference "sub:Row-Spacing"
2460 \begin_layout Description
2465 This tab is to make a table a so called
2466 \begin_inset Quotes eld
2474 \begin_inset Quotes erd
2477 that can run over several pages.
2479 \begin_inset space ~
2483 \begin_inset CommandInset ref
2485 reference "sec:Longtables"
2490 \begin_inset CommandInset ref
2492 reference "sec:Special-Longtable-Issues"
2496 describe the longtable features in detail.
2499 \begin_layout Section
2501 \begin_inset Index idx
2504 \begin_layout Plain Layout
2513 \begin_layout Standard
2514 The table toolbar is an alternative to the table dialog to be able to alter
2516 It should normally appear at the bottom of LyX's main window when the cursor
2518 You can alternatively switch it on to appear always, by right-clicking
2519 in LyX's main menu bar.
2522 \begin_layout Standard
2523 The toolbar has the following icons:
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2530 arg "inset-modify tabular append-row"
2533 adds a row below the current cell or selection
2536 \begin_layout Labeling
2537 \labelwidthstring 00.00.0000
2540 arg "inset-modify tabular append-column"
2543 adds a column right beside the current cell or selection
2546 \begin_layout Labeling
2547 \labelwidthstring 00.00.0000
2550 arg "inset-modify tabular delete-row"
2553 deletes the current row or selection
2556 \begin_layout Labeling
2557 \labelwidthstring 00.00.0000
2560 arg "inset-modify tabular delete-column"
2563 deletes the current column or selection
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2570 arg "inset-modify tabular toggle-line-top"
2573 adds a line at the top of the current cell / row or of a selection
2576 \begin_layout Labeling
2577 \labelwidthstring 00.00.0000
2580 arg "inset-modify tabular toggle-line-bottom"
2583 adds a line at the bottom of the current cell / row or of a selection
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2590 arg "inset-modify tabular toggle-line-left"
2593 adds a line at the left side of the current cell / row or of a selection
2596 \begin_layout Labeling
2597 \labelwidthstring 00.00.0000
2600 arg "inset-modify tabular toggle-line-right"
2603 adds a line at the right side of the current cell / row or of a selection
2606 \begin_layout Labeling
2607 \labelwidthstring 00.00.0000
2610 arg "inset-modify tabular set-all-lines"
2613 adds lines around the current or selected cells - if the current cell no
2614 multicolumn cell this also affects the current row and column
2617 \begin_layout Labeling
2618 \labelwidthstring 00.00.0000
2621 arg "inset-modify tabular unset-all-lines"
2624 deletes all lines of the current or selected cells - if the current cell
2625 no multicolumn cell this also affects the current row and column
2628 \begin_layout Labeling
2629 \labelwidthstring 00.00.0000
2632 arg "inset-modify tabular m-align-left"
2635 left-aligns the content of the current cell / column
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2642 arg "inset-modify tabular m-align-center"
2645 centers the content of the current cell / column horizontally
2648 \begin_layout Labeling
2649 \labelwidthstring 00.00.0000
2652 arg "inset-modify tabular m-align-right"
2655 right-aligns the content of the current cell / column
2658 \begin_layout Labeling
2659 \labelwidthstring 00.00.0000
2662 arg "inset-modify tabular align-decimal"
2665 aligns the content of the current column at a character
2668 \begin_layout Labeling
2669 \labelwidthstring 00.00.0000
2672 arg "inset-modify tabular m-valign-top"
2675 aligns the content of the current cell vertically to the top
2678 \begin_layout Labeling
2679 \labelwidthstring 00.00.0000
2682 arg "inset-modify tabular m-valign-middle"
2685 centers the content of the current cell vertically
2688 \begin_layout Labeling
2689 \labelwidthstring 00.00.0000
2692 arg "inset-modify tabular m-valign-bottom"
2695 aligns the content of the current cell vertically to the bottom
2698 \begin_layout Labeling
2699 \labelwidthstring 00.00.0000
2702 arg "inset-modify tabular set-rotate-cell"
2705 rotates the current cell or selection counter-clockwise by 90°
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2712 arg "inset-modify tabular set-rotate-tabular"
2715 rotates the whole table counter-clockwise by 90°
2718 \begin_layout Labeling
2719 \labelwidthstring 00.00.0000
2722 arg "inset-modify tabular multicolumn"
2725 sets the current cell or selection as a multicolumn
2728 \begin_layout Labeling
2729 \labelwidthstring 00.00.0000
2732 arg "inset-modify tabular multirow"
2735 sets the current cell or selection as a multirow
2738 \begin_layout Standard
2739 \begin_inset Note Greyedout
2742 \begin_layout Plain Layout
2747 For the output the vertical alignment of the first cell in a row is used
2748 for all following cells in the row.
2756 \begin_layout Section
2758 \begin_inset Index idx
2761 \begin_layout Plain Layout
2770 \begin_layout Standard
2771 In addition to the table dialog and toolbar, the menu
2773 Edit\SpecialChar \menuseparator
2776 allows you to add and delete border lines for the current row/column and
2777 to set the current selection as multicolumn.
2778 The menu is only available when the cursor is inside a table.
2781 \begin_layout Section
2783 \begin_inset CommandInset label
2785 name "sec:Table-Floats"
2790 \begin_inset Index idx
2793 \begin_layout Plain Layout
2800 \begin_inset Index idx
2803 \begin_layout Plain Layout
2812 \begin_layout Standard
2813 For general explanations about floats, have a look at section
2814 \begin_inset space ~
2818 \begin_inset CommandInset ref
2820 reference "sec:FloatIntroduction"
2827 \begin_layout Standard
2828 \begin_inset Float table
2834 \begin_layout Plain Layout
2835 \begin_inset Caption Standard
2837 \begin_layout Plain Layout
2838 \begin_inset CommandInset label
2840 name "tab:a table float"
2852 \begin_layout Plain Layout
2854 \begin_inset Tabular
2855 <lyxtabular version="3" rows="3" columns="3">
2856 <features rotate="0" tabularvalignment="middle">
2857 <column alignment="center" valignment="top" width="0pt">
2858 <column alignment="center" valignment="top" width="0pt">
2859 <column alignment="center" valignment="top" width="0pt">
2861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2864 \begin_layout Plain Layout
2879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2882 \begin_layout Plain Layout
2897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2900 \begin_layout Plain Layout
2917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2920 \begin_layout Plain Layout
2935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2938 \begin_layout Plain Layout
2953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2956 \begin_layout Plain Layout
2973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2976 \begin_layout Plain Layout
2986 \begin_inset Formula $\int x^{2}dx$
2994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2997 \begin_layout Plain Layout
3007 \begin_inset Formula $\left[\begin{array}{cc}
3018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3021 \begin_layout Plain Layout
3031 \begin_inset Formula $1+1=2$
3052 \begin_layout Standard
3053 Table floats can be inserted using the menu
3055 Insert\SpecialChar \menuseparator
3056 Float\SpecialChar \menuseparator
3059 or the toolbar button
3062 arg "float-insert table"
3068 \begin_layout Standard
3069 The float appears as a collapsible box with a caption that has the label
3071 \begin_inset Quotes eld
3075 \begin_inset space ~
3079 \begin_inset Quotes erd
3082 (# is the actual table number).
3083 You can insert tables in the float above or below the caption.
3086 \begin_layout Standard
3088 \begin_inset space ~
3092 \begin_inset CommandInset ref
3094 reference "tab:a table float"
3098 is an example table within a table float.
3101 \begin_layout Standard
3102 Having the caption above the table is the common rule that is unfortunately
3103 not supported in LaTeX's standard classes.
3104 This means that, if you are using the document classes
3120 , there will be no space between the caption and the table.
3121 To insert the needed space, add the following option to the load command
3122 of the LaTeX-package
3127 \begin_inset Index idx
3130 \begin_layout Plain Layout
3131 LaTeX-packages ! caption
3136 in your document preamble
3140 \begin_layout Plain Layout
3141 For more information have a look at section
3142 \begin_inset space ~
3146 \begin_inset CommandInset ref
3148 reference "sec:Caption-Placement"
3160 \begin_layout Standard
3166 \begin_layout Standard
3171 , which is described in section
3172 \begin_inset space ~
3176 \begin_inset CommandInset ref
3178 reference "sec:Caption-Formatting"
3182 , is used to adjust the caption format.
3185 \begin_layout Standard
3186 \begin_inset Index idx
3189 \begin_layout Plain Layout
3190 References ! to Tables
3195 Tables can be cross-referenced in the text by referencing their label.
3196 To do this insert a label in the caption using the menu
3198 Insert\SpecialChar \menuseparator
3201 or the toolbar button
3208 You can now refer to the label using the menu
3210 Insert\SpecialChar \menuseparator
3212 \begin_inset space ~
3217 or the toolbar button
3220 arg "dialog-show-new-inset ref"
3224 \begin_inset Newline newline
3227 Referencing is explained in detail in section
3228 \begin_inset space ~
3232 \begin_inset CommandInset ref
3234 reference "sec:Referencing-Floats"
3241 \begin_layout Section
3243 \begin_inset CommandInset label
3245 name "sec:Longtables"
3250 \begin_inset Index idx
3253 \begin_layout Plain Layout
3260 \begin_inset Index idx
3263 \begin_layout Plain Layout
3272 \begin_layout Standard
3273 If the table is too long to fit on one page, you can use the option
3276 \begin_inset space ~
3280 \begin_inset space ~
3289 of the table dialog to split the table automatically over more pages.
3290 Doing this enables the following options:
3293 \begin_layout Description
3294 Header: The current row is defined to be a header row that appears on all
3295 pages of the longtable; except for the first page, if
3298 \begin_inset space ~
3304 This is therefore called the main header.
3307 \begin_layout Description
3309 \begin_inset space ~
3312 header: The current row is defined to be a header row that appears on the
3313 first page of the longtable.
3316 \begin_layout Description
3317 Footer: The current row is defined to be a footer row that appears on all
3318 pages of the longtable; except for the last page, if
3321 \begin_inset space ~
3329 \begin_layout Description
3331 \begin_inset space ~
3334 footer: The current row is defined to be a footer row that appears on the
3335 last page of the longtable.
3338 \begin_layout Description
3339 Caption: The current row contains the table caption.
3340 The row is reset as single column and a caption is inserted.
3341 More about longtable captions is explained in sec.
3342 \begin_inset space \thinspace{}
3346 \begin_inset CommandInset ref
3348 reference "sub:Longtable-Captions"
3355 \begin_layout Standard
3356 You can also specify a row where the table is split.
3357 See the following longtable to see how it works:
3360 \begin_layout Standard
3362 \begin_inset Tabular
3363 <lyxtabular version="3" rows="69" columns="3">
3364 <features rotate="0" islongtable="true" longtabularalignment="center">
3365 <column alignment="left" valignment="top" width="0cm">
3366 <column alignment="left" valignment="top" width="0pt">
3367 <column alignment="center" valignment="top" width="0pt">
3368 <row endfirsthead="true">
3369 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3372 \begin_layout Plain Layout
3375 Example Phone List (ignore the names)
3380 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3383 \begin_layout Plain Layout
3389 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3392 \begin_layout Plain Layout
3399 <row endfirsthead="true">
3400 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3414 \begin_layout Plain Layout
3420 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3423 \begin_layout Plain Layout
3432 <row endhead="true">
3433 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3436 \begin_layout Plain Layout
3444 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3447 \begin_layout Plain Layout
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3456 \begin_layout Plain Layout
3463 <row endhead="true">
3464 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3467 \begin_layout Plain Layout
3475 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3478 \begin_layout Plain Layout
3484 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3487 \begin_layout Plain Layout
3496 <row endfoot="true">
3497 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3500 \begin_layout Plain Layout
3501 continued on next page
3506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3509 \begin_layout Plain Layout
3515 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3518 \begin_layout Plain Layout
3526 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3529 \begin_layout Plain Layout
3537 <cell alignment="center" valignment="top" usebox="none">
3540 \begin_layout Plain Layout
3546 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3549 \begin_layout Plain Layout
3557 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3560 \begin_layout Plain Layout
3568 <cell alignment="center" valignment="top" usebox="none">
3571 \begin_layout Plain Layout
3577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3580 \begin_layout Plain Layout
3588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3591 \begin_layout Plain Layout
3599 <cell alignment="center" valignment="top" usebox="none">
3602 \begin_layout Plain Layout
3608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3611 \begin_layout Plain Layout
3619 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3622 \begin_layout Plain Layout
3630 <cell alignment="center" valignment="top" usebox="none">
3633 \begin_layout Plain Layout
3639 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3642 \begin_layout Plain Layout
3650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3653 \begin_layout Plain Layout
3661 <cell alignment="center" valignment="top" usebox="none">
3664 \begin_layout Plain Layout
3670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3673 \begin_layout Plain Layout
3681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3684 \begin_layout Plain Layout
3692 <cell alignment="center" valignment="top" usebox="none">
3695 \begin_layout Plain Layout
3701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3704 \begin_layout Plain Layout
3712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3715 \begin_layout Plain Layout
3723 <cell alignment="center" valignment="top" usebox="none">
3726 \begin_layout Plain Layout
3732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3735 \begin_layout Plain Layout
3743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3746 \begin_layout Plain Layout
3754 <cell alignment="center" valignment="top" usebox="none">
3757 \begin_layout Plain Layout
3763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3766 \begin_layout Plain Layout
3774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3777 \begin_layout Plain Layout
3785 <cell alignment="center" valignment="top" usebox="none">
3788 \begin_layout Plain Layout
3794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3797 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3808 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" usebox="none">
3819 \begin_layout Plain Layout
3825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3828 \begin_layout Plain Layout
3836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3839 \begin_layout Plain Layout
3847 <cell alignment="center" valignment="top" usebox="none">
3850 \begin_layout Plain Layout
3856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3859 \begin_layout Plain Layout
3867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3870 \begin_layout Plain Layout
3878 <cell alignment="center" valignment="top" usebox="none">
3881 \begin_layout Plain Layout
3887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3890 \begin_layout Plain Layout
3898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3901 \begin_layout Plain Layout
3909 <cell alignment="center" valignment="top" usebox="none">
3912 \begin_layout Plain Layout
3918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3921 \begin_layout Plain Layout
3929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3932 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" usebox="none">
3943 \begin_layout Plain Layout
3949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3952 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3963 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" usebox="none">
3974 \begin_layout Plain Layout
3980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3983 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3994 \begin_layout Plain Layout
4002 <cell alignment="center" valignment="top" usebox="none">
4005 \begin_layout Plain Layout
4011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4014 \begin_layout Plain Layout
4022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4025 \begin_layout Plain Layout
4033 <cell alignment="center" valignment="top" usebox="none">
4036 \begin_layout Plain Layout
4042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4045 \begin_layout Plain Layout
4053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4056 \begin_layout Plain Layout
4064 <cell alignment="center" valignment="top" usebox="none">
4067 \begin_layout Plain Layout
4073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4076 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4087 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" usebox="none">
4098 \begin_layout Plain Layout
4104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4107 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4118 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" usebox="none">
4129 \begin_layout Plain Layout
4135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4138 \begin_layout Plain Layout
4146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4149 \begin_layout Plain Layout
4157 <cell alignment="center" valignment="top" usebox="none">
4160 \begin_layout Plain Layout
4166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4169 \begin_layout Plain Layout
4177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4180 \begin_layout Plain Layout
4188 <cell alignment="center" valignment="top" usebox="none">
4191 \begin_layout Plain Layout
4197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4200 \begin_layout Plain Layout
4208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4211 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" usebox="none">
4222 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4231 \begin_layout Plain Layout
4239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4242 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" usebox="none">
4253 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4262 \begin_layout Plain Layout
4270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4273 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" usebox="none">
4284 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4293 \begin_layout Plain Layout
4301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4304 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" usebox="none">
4315 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4324 \begin_layout Plain Layout
4332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4335 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" usebox="none">
4346 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4355 \begin_layout Plain Layout
4363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4366 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" usebox="none">
4377 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4386 \begin_layout Plain Layout
4394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4397 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" usebox="none">
4408 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4417 \begin_layout Plain Layout
4425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4428 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" usebox="none">
4439 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4448 \begin_layout Plain Layout
4456 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4470 \begin_layout Plain Layout
4476 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4479 \begin_layout Plain Layout
4487 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4496 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4499 \begin_layout Plain Layout
4505 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4508 \begin_layout Plain Layout
4516 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4519 \begin_layout Plain Layout
4527 <cell alignment="center" valignment="top" usebox="none">
4530 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4539 \begin_layout Plain Layout
4547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4550 \begin_layout Plain Layout
4558 <cell alignment="center" valignment="top" usebox="none">
4561 \begin_layout Plain Layout
4567 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4570 \begin_layout Plain Layout
4578 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4581 \begin_layout Plain Layout
4589 <cell alignment="center" valignment="top" usebox="none">
4592 \begin_layout Plain Layout
4598 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4601 \begin_layout Plain Layout
4609 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4612 \begin_layout Plain Layout
4620 <cell alignment="center" valignment="top" usebox="none">
4623 \begin_layout Plain Layout
4629 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4632 \begin_layout Plain Layout
4640 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4643 \begin_layout Plain Layout
4651 <cell alignment="center" valignment="top" usebox="none">
4654 \begin_layout Plain Layout
4660 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4663 \begin_layout Plain Layout
4671 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4674 \begin_layout Plain Layout
4682 <cell alignment="center" valignment="top" usebox="none">
4685 \begin_layout Plain Layout
4691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4694 \begin_layout Plain Layout
4702 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4705 \begin_layout Plain Layout
4713 <cell alignment="center" valignment="top" usebox="none">
4716 \begin_layout Plain Layout
4722 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4725 \begin_layout Plain Layout
4733 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4736 \begin_layout Plain Layout
4744 <cell alignment="center" valignment="top" usebox="none">
4747 \begin_layout Plain Layout
4753 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4756 \begin_layout Plain Layout
4764 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4767 \begin_layout Plain Layout
4775 <cell alignment="center" valignment="top" usebox="none">
4778 \begin_layout Plain Layout
4784 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4787 \begin_layout Plain Layout
4795 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4798 \begin_layout Plain Layout
4806 <cell alignment="center" valignment="top" usebox="none">
4809 \begin_layout Plain Layout
4815 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4818 \begin_layout Plain Layout
4826 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4829 \begin_layout Plain Layout
4837 <cell alignment="center" valignment="top" usebox="none">
4840 \begin_layout Plain Layout
4846 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4849 \begin_layout Plain Layout
4857 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4860 \begin_layout Plain Layout
4868 <cell alignment="center" valignment="top" usebox="none">
4871 \begin_layout Plain Layout
4877 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4880 \begin_layout Plain Layout
4888 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4891 \begin_layout Plain Layout
4899 <cell alignment="center" valignment="top" usebox="none">
4902 \begin_layout Plain Layout
4908 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4911 \begin_layout Plain Layout
4919 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4922 \begin_layout Plain Layout
4930 <cell alignment="center" valignment="top" usebox="none">
4933 \begin_layout Plain Layout
4939 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4942 \begin_layout Plain Layout
4950 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4953 \begin_layout Plain Layout
4961 <cell alignment="center" valignment="top" usebox="none">
4964 \begin_layout Plain Layout
4970 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4973 \begin_layout Plain Layout
4981 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4984 \begin_layout Plain Layout
4992 <cell alignment="center" valignment="top" usebox="none">
4995 \begin_layout Plain Layout
5001 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5004 \begin_layout Plain Layout
5012 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5015 \begin_layout Plain Layout
5023 <cell alignment="center" valignment="top" usebox="none">
5026 \begin_layout Plain Layout
5032 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5035 \begin_layout Plain Layout
5043 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5046 \begin_layout Plain Layout
5054 <cell alignment="center" valignment="top" usebox="none">
5057 \begin_layout Plain Layout
5063 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5066 \begin_layout Plain Layout
5074 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5077 \begin_layout Plain Layout
5085 <cell alignment="center" valignment="top" usebox="none">
5088 \begin_layout Plain Layout
5094 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5097 \begin_layout Plain Layout
5105 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5108 \begin_layout Plain Layout
5116 <cell alignment="center" valignment="top" usebox="none">
5119 \begin_layout Plain Layout
5125 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5128 \begin_layout Plain Layout
5136 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5139 \begin_layout Plain Layout
5147 <cell alignment="center" valignment="top" usebox="none">
5150 \begin_layout Plain Layout
5156 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5159 \begin_layout Plain Layout
5167 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5170 \begin_layout Plain Layout
5178 <cell alignment="center" valignment="top" usebox="none">
5181 \begin_layout Plain Layout
5187 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5190 \begin_layout Plain Layout
5198 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5201 \begin_layout Plain Layout
5209 <cell alignment="center" valignment="top" usebox="none">
5212 \begin_layout Plain Layout
5218 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5221 \begin_layout Plain Layout
5229 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5232 \begin_layout Plain Layout
5240 <cell alignment="center" valignment="top" usebox="none">
5243 \begin_layout Plain Layout
5249 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5252 \begin_layout Plain Layout
5260 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5263 \begin_layout Plain Layout
5271 <cell alignment="center" valignment="top" usebox="none">
5274 \begin_layout Plain Layout
5280 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5283 \begin_layout Plain Layout
5291 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5294 \begin_layout Plain Layout
5302 <cell alignment="center" valignment="top" usebox="none">
5305 \begin_layout Plain Layout
5311 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5314 \begin_layout Plain Layout
5322 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5325 \begin_layout Plain Layout
5333 <cell alignment="center" valignment="top" usebox="none">
5336 \begin_layout Plain Layout
5342 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5345 \begin_layout Plain Layout
5353 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5356 \begin_layout Plain Layout
5364 <cell alignment="center" valignment="top" usebox="none">
5367 \begin_layout Plain Layout
5373 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5376 \begin_layout Plain Layout
5384 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5387 \begin_layout Plain Layout
5395 <cell alignment="center" valignment="top" usebox="none">
5398 \begin_layout Plain Layout
5404 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5407 \begin_layout Plain Layout
5415 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5418 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" usebox="none">
5429 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5438 \begin_layout Plain Layout
5446 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5449 \begin_layout Plain Layout
5457 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5460 \begin_layout Plain Layout
5466 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5469 \begin_layout Plain Layout
5476 <row endlastfoot="true">
5477 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5480 \begin_layout Plain Layout
5486 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5489 \begin_layout Plain Layout
5495 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5498 \begin_layout Plain Layout
5513 \begin_layout Plain Layout
5517 addtocounter{table}{-1}
5523 \begin_inset Note Note
5526 \begin_layout Plain Layout
5527 See the first greyed-out note in section
5528 \begin_inset space ~
5532 \begin_inset CommandInset ref
5534 reference "sub:Longtable-Captions"
5538 for an explanation of this command.
5546 \begin_layout Subsection
5547 Footnotes in Longtables
5548 \begin_inset CommandInset label
5550 name "sub:Footnotes-in-Longtables"
5555 \begin_inset Index idx
5558 \begin_layout Plain Layout
5559 Longtables ! Footnotes
5567 \begin_layout Standard
5568 Footnotes can be inserted to every longtable cell.
5569 They appear at the bottom of the page where the table cell with the footnote
5572 \begin_inset space ~
5576 \begin_inset CommandInset ref
5578 reference "tab:DiffCaptions"
5582 has for example a footnote.
5585 \begin_layout Subsection
5587 \begin_inset Index idx
5590 \begin_layout Plain Layout
5591 Longtables ! Alignment
5599 \begin_layout Standard
5600 The horizontal alignment of longtables can be set in the table settings
5602 For left- and right-alignment the table will be directly at the page border.
5603 To add space between the table and the border one has to set the alignment
5604 to center and change the value of the LaTeX-lengths
5616 by inserting this line as TeX-Code before the longtable:
5619 \begin_layout Standard
5629 \begin_layout Standard
5630 The value can have any of the units listed in Table
5631 \begin_inset space ~
5635 \begin_inset CommandInset ref
5637 reference "tab:Units"
5648 controls the horizontal distance from the left page border to the longtable,
5655 the distance from the right side.
5656 The default value for both lengths is
5662 , which is in this case the same as an horizontal fill in LyX.
5665 \begin_layout Standard
5666 The following longtable was centered and
5682 \begin_layout Plain Layout
5698 \begin_layout Standard
5699 \begin_inset Tabular
5700 <lyxtabular version="3" rows="5" columns="5">
5701 <features rotate="0" islongtable="true" longtabularalignment="center">
5702 <column alignment="center" valignment="top" width="0">
5703 <column alignment="center" valignment="top" width="0pt">
5704 <column alignment="center" valignment="top" width="0">
5705 <column alignment="center" valignment="top" width="0">
5706 <column alignment="center" valignment="top" width="0">
5708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5711 \begin_layout Plain Layout
5717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5720 \begin_layout Plain Layout
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5729 \begin_layout Plain Layout
5735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5738 \begin_layout Plain Layout
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5747 \begin_layout Plain Layout
5755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5758 \begin_layout Plain Layout
5764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5767 \begin_layout Plain Layout
5773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5776 \begin_layout Plain Layout
5782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5785 \begin_layout Plain Layout
5791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5794 \begin_layout Plain Layout
5802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5805 \begin_layout Plain Layout
5811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5814 \begin_layout Plain Layout
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Plain Layout
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5841 \begin_layout Plain Layout
5849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5852 \begin_layout Plain Layout
5858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5861 \begin_layout Plain Layout
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5879 \begin_layout Plain Layout
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5888 \begin_layout Plain Layout
5896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5899 \begin_layout Plain Layout
5905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5908 \begin_layout Plain Layout
5914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5917 \begin_layout Plain Layout
5923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5926 \begin_layout Plain Layout
5932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5935 \begin_layout Plain Layout
5950 \begin_layout Plain Layout
5967 \begin_layout Plain Layout
5971 addtocounter{table}{-1}
5977 \begin_inset Note Note
5980 \begin_layout Plain Layout
5981 See the first greyed-out note in section
5982 \begin_inset space ~
5986 \begin_inset CommandInset ref
5988 reference "sub:Longtable-Captions"
5992 for an explanation of this command.
6000 \begin_layout Subsection
6002 \begin_inset Index idx
6005 \begin_layout Plain Layout
6006 Longtables ! Captions
6012 \begin_inset CommandInset label
6014 name "sub:Longtable-Captions"
6021 \begin_layout Standard
6022 A longtable cannot be put into a table float because floats can only be
6024 But the caption environment of floats can also be used for longtables when
6025 you use the longtable option
6029 as described in sec.
6030 \begin_inset space \thinspace{}
6034 \begin_inset CommandInset ref
6036 reference "sec:Longtables"
6042 \change_inserted -195340706 1324242393
6043 A caption must be put into one of
6046 \begin_inset space ~
6062 \begin_inset space ~
6068 Each kind of footer and header may only contain one
6069 \change_deleted -195340706 1324242398
6070 Only one table row can contain the
6075 \begin_layout Standard
6076 Here is a short longtable to see how it works:
6079 \begin_layout Standard
6080 \begin_inset Tabular
6081 <lyxtabular version="3" rows="6" columns="5">
6082 <features rotate="0" islongtable="true" longtabularalignment="center">
6083 <column alignment="center" valignment="top" width="0">
6084 <column alignment="center" valignment="top" width="0">
6085 <column alignment="center" valignment="top" width="0">
6086 <column alignment="center" valignment="top" width="0">
6087 <column alignment="center" valignment="top" width="0">
6088 <row endfirsthead="true" caption="true">
6089 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6092 \begin_layout Plain Layout
6093 \begin_inset Caption Standard
6095 \begin_layout Plain Layout
6096 Longtable with caption
6097 \begin_inset Argument 1
6100 \begin_layout Plain Layout
6116 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6119 \begin_layout Plain Layout
6125 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6128 \begin_layout Plain Layout
6134 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6137 \begin_layout Plain Layout
6143 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6146 \begin_layout Plain Layout
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6157 \begin_layout Plain Layout
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Plain Layout
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Plain Layout
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6193 \begin_layout Plain Layout
6201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6204 \begin_layout Plain Layout
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Plain Layout
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6240 \begin_layout Plain Layout
6248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6251 \begin_layout Plain Layout
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6269 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6287 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6298 \begin_layout Plain Layout
6304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6307 \begin_layout Plain Layout
6313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6316 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6334 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6345 \begin_layout Plain Layout
6351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6354 \begin_layout Plain Layout
6360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6363 \begin_layout Plain Layout
6369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6372 \begin_layout Plain Layout
6378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6381 \begin_layout Plain Layout
6395 \begin_layout Standard
6396 \begin_inset VSpace medskip
6400 \begin_inset Note Greyedout
6403 \begin_layout Plain Layout
6407 \begin_inset space ~
6412 The table number is increased for every longtable, even if you did not
6413 set a caption for it.
6414 For this reason you could have the case that e.
6415 \begin_inset space \thinspace{}
6419 \begin_inset space \space{}
6423 \begin_inset space ~
6427 \begin_inset space ~
6430 2.1 in the list of tables if there are two longtables without captions.
6431 To avoid this you can add the following command in TeX-Code after every
6432 longtable without a caption:
6435 \begin_layout Plain Layout
6440 addtocounter{table}{-1}
6443 \begin_layout Plain Layout
6444 This is not needed when none of your longtables has a caption and you add
6445 the following code to the document preamble:
6448 \begin_layout Plain Layout
6458 \begin_inset Newline newline
6469 addtocounter{table}{-1}}
6477 \begin_layout Standard
6478 \begin_inset Note Greyedout
6481 \begin_layout Plain Layout
6485 \begin_inset space ~
6495 \begin_inset Index idx
6498 \begin_layout Plain Layout
6499 LaTeX-packages ! hyperref
6512 dialog to link cross-references, the link to a longtable caption will always
6513 point to the beginning of the document.
6521 \begin_layout Subsubsection
6522 References to Longtables
6523 \begin_inset Index idx
6526 \begin_layout Plain Layout
6527 Longtables ! References
6535 \begin_layout Standard
6536 \begin_inset Tabular
6537 <lyxtabular version="3" rows="6" columns="5">
6538 <features rotate="0" islongtable="true" longtabularalignment="center">
6539 <column alignment="center" valignment="top" width="0">
6540 <column alignment="center" valignment="top" width="0">
6541 <column alignment="center" valignment="top" width="0">
6542 <column alignment="center" valignment="top" width="0">
6543 <column alignment="center" valignment="top" width="0">
6544 <row endfirsthead="true" caption="true">
6545 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6548 \begin_layout Plain Layout
6549 \begin_inset Caption Standard
6551 \begin_layout Plain Layout
6552 Referenced longtable
6553 \begin_inset CommandInset label
6555 name "tab:RefExample"
6569 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6572 \begin_layout Plain Layout
6578 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6581 \begin_layout Plain Layout
6587 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6590 \begin_layout Plain Layout
6596 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6599 \begin_layout Plain Layout
6607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6646 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6798 \begin_layout Plain Layout
6804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6807 \begin_layout Plain Layout
6813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6816 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6825 \begin_layout Plain Layout
6831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6834 \begin_layout Plain Layout
6848 \begin_layout Standard
6849 To reference a longtable, insert a label into the caption.
6852 \begin_layout Standard
6853 This is a reference to Table
6854 \begin_inset space ~
6858 \begin_inset CommandInset ref
6860 reference "tab:RefExample"
6867 \begin_layout Standard
6868 The caption layout can be set together with all other captions of your document
6869 using the LaTeX-package
6874 \begin_inset Index idx
6877 \begin_layout Plain Layout
6878 LaTeX-packages ! caption
6884 \begin_inset space ~
6888 \begin_inset CommandInset ref
6890 reference "sec:Caption-Formatting"
6897 \begin_layout Subsubsection
6899 \begin_inset Index idx
6902 \begin_layout Plain Layout
6903 Longtables ! Caption Width
6911 \begin_layout Standard
6912 The maximal width of caption lines is defined by the length
6919 Its default value is 4
6920 \begin_inset space \thinspace{}
6924 To change it add the following command to your document preamble or as
6925 TeX-Code into your document before the longtable that should be affected
6928 \begin_layout Standard
6938 \begin_layout Standard
6939 where the width could have one of the units listed in appendix
6940 \begin_inset space ~
6944 \begin_inset CommandInset ref
6946 reference "cha:Units-available-in"
6953 \begin_layout Standard
6954 The following tables show the difference:
6957 \begin_layout Standard
6958 \begin_inset Tabular
6959 <lyxtabular version="3" rows="6" columns="5">
6960 <features rotate="0" islongtable="true" longtabularalignment="center">
6961 <column alignment="center" valignment="top" width="0">
6962 <column alignment="center" valignment="top" width="0">
6963 <column alignment="center" valignment="top" width="0">
6964 <column alignment="center" valignment="top" width="0">
6965 <column alignment="center" valignment="top" width="0">
6966 <row endfirsthead="true" caption="true">
6967 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6970 \begin_layout Plain Layout
6971 \begin_inset Caption Standard
6973 \begin_layout Plain Layout
6974 long full title with default width long full title with default width long
6975 full title with default width
6976 \begin_inset Argument 1
6979 \begin_layout Plain Layout
6980 caption with default width
6995 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6998 \begin_layout Plain Layout
7004 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7007 \begin_layout Plain Layout
7013 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7016 \begin_layout Plain Layout
7022 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7025 \begin_layout Plain Layout
7033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7036 \begin_layout Plain Layout
7042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7045 \begin_layout Plain Layout
7051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7054 \begin_layout Plain Layout
7060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7063 \begin_layout Plain Layout
7069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7072 \begin_layout Plain Layout
7080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7083 \begin_layout Plain Layout
7089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7092 \begin_layout Plain Layout
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7101 \begin_layout Plain Layout
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7110 \begin_layout Plain Layout
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7119 \begin_layout Plain Layout
7127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7130 \begin_layout Plain Layout
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Plain Layout
7145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7148 \begin_layout Plain Layout
7154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7157 \begin_layout Plain Layout
7163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7166 \begin_layout Plain Layout
7174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7177 \begin_layout Plain Layout
7183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7186 \begin_layout Plain Layout
7192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7195 \begin_layout Plain Layout
7201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7204 \begin_layout Plain Layout
7210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7213 \begin_layout Plain Layout
7221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7224 \begin_layout Plain Layout
7230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7233 \begin_layout Plain Layout
7239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7242 \begin_layout Plain Layout
7248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7251 \begin_layout Plain Layout
7257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7260 \begin_layout Plain Layout
7274 \begin_layout Standard
7278 \begin_layout Plain Layout
7290 \begin_inset Tabular
7291 <lyxtabular version="3" rows="6" columns="5">
7292 <features rotate="0" islongtable="true" longtabularalignment="center">
7293 <column alignment="center" valignment="top" width="0">
7294 <column alignment="center" valignment="top" width="0">
7295 <column alignment="center" valignment="top" width="0">
7296 <column alignment="center" valignment="top" width="0">
7297 <column alignment="center" valignment="top" width="0">
7298 <row endfirsthead="true" caption="true">
7299 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7302 \begin_layout Plain Layout
7303 \begin_inset Caption Standard
7305 \begin_layout Plain Layout
7306 long full title with width set to 5
7307 \begin_inset space \thinspace{}
7310 cm long full title with width set to 5
7311 \begin_inset space \thinspace{}
7314 cm long full title with width set to 5
7315 \begin_inset space \thinspace{}
7319 \begin_inset Argument 1
7322 \begin_layout Plain Layout
7324 \begin_inset space \thinspace{}
7328 \begin_inset space \thinspace{}
7332 \begin_inset space \thinspace{}
7350 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7353 \begin_layout Plain Layout
7359 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7362 \begin_layout Plain Layout
7368 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7371 \begin_layout Plain Layout
7377 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7380 \begin_layout Plain Layout
7388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7391 \begin_layout Plain Layout
7397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7400 \begin_layout Plain Layout
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7409 \begin_layout Plain Layout
7415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7418 \begin_layout Plain Layout
7424 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7427 \begin_layout Plain Layout
7435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7438 \begin_layout Plain Layout
7444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7447 \begin_layout Plain Layout
7453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7456 \begin_layout Plain Layout
7462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7465 \begin_layout Plain Layout
7471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7474 \begin_layout Plain Layout
7482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7485 \begin_layout Plain Layout
7491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7494 \begin_layout Plain Layout
7500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7503 \begin_layout Plain Layout
7509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7512 \begin_layout Plain Layout
7518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7521 \begin_layout Plain Layout
7529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7532 \begin_layout Plain Layout
7538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7541 \begin_layout Plain Layout
7547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7559 \begin_layout Plain Layout
7565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7568 \begin_layout Plain Layout
7576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7579 \begin_layout Plain Layout
7585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7588 \begin_layout Plain Layout
7594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7597 \begin_layout Plain Layout
7603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7629 \begin_layout Standard
7633 \begin_layout Plain Layout
7647 \begin_layout Standard
7648 \begin_inset Note Greyedout
7651 \begin_layout Plain Layout
7656 When the LaTeX-package
7661 \begin_inset Index idx
7664 \begin_layout Plain Layout
7665 LaTeX-packages ! caption
7670 is used, as in this document, the full page width is used for the caption
7671 when you use the default value of 4
7672 \begin_inset space \thinspace{}
7682 To get in this case exactly a 4
7683 \begin_inset space \thinspace{}
7686 in wide caption, you can either use a value slightly different from 4.0
7687 \begin_inset space \thinspace{}
7691 \begin_inset space \thinspace{}
7695 \begin_inset space \space{}
7699 \begin_inset space \thinspace{}
7702 in, or the LaTeX-command
7706 captionsetup{width=value}
7708 that is provided by the
7720 \begin_layout Subsubsection
7721 Different Captions for Table Pages
7722 \begin_inset Index idx
7725 \begin_layout Plain Layout
7726 Longtables ! Different Captions for Pages
7734 \begin_layout Standard
7735 When the table captions for the following pages should differ from the one
7736 of the first table page, insert a caption with the TeX-Code command
7739 \begin_layout Standard
7744 caption*{caption text}
7751 \begin_layout Standard
7752 in a dummy caption row that is marked as a header.
7754 \begin_inset space ~
7758 \begin_inset CommandInset ref
7760 reference "tab:DiffCaptions"
7764 is an example of a longtable with different heading where the second caption
7765 doesn't include the table number.
7768 \begin_layout Standard
7770 \begin_inset Tabular
7771 <lyxtabular version="3" rows="59" columns="3">
7772 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7773 <column alignment="left" valignment="top" width="0cm">
7774 <column alignment="left" valignment="top" width="0pt">
7775 <column alignment="center" valignment="top" width="0pt">
7776 <row endfirsthead="true" caption="true">
7777 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7780 \begin_layout Plain Layout
7781 \begin_inset Caption Standard
7783 \begin_layout Plain Layout
7785 \begin_inset CommandInset label
7787 name "tab:DiffCaptions"
7792 \begin_inset Argument 1
7795 \begin_layout Plain Layout
7811 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7814 \begin_layout Plain Layout
7820 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7823 \begin_layout Plain Layout
7830 <row endfirsthead="true">
7831 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7834 \begin_layout Plain Layout
7837 Example Phone List (ignore the names)
7842 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7845 \begin_layout Plain Layout
7851 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7854 \begin_layout Plain Layout
7861 <row endfirsthead="true">
7862 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7865 \begin_layout Plain Layout
7873 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7876 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7885 \begin_layout Plain Layout
7894 <row endhead="true">
7895 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7898 \begin_layout Plain Layout
7902 \begin_layout Plain Layout
7906 caption*{Continued Example Phone List}
7920 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7923 \begin_layout Plain Layout
7929 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7932 \begin_layout Plain Layout
7939 <row endhead="true">
7940 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7943 \begin_layout Plain Layout
7951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7954 \begin_layout Plain Layout
7960 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7963 \begin_layout Plain Layout
7970 <row endhead="true">
7971 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7974 \begin_layout Plain Layout
7982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7985 \begin_layout Plain Layout
7991 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7994 \begin_layout Plain Layout
8003 <row endfoot="true">
8004 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8007 \begin_layout Plain Layout
8008 continued on next page
8013 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8016 \begin_layout Plain Layout
8022 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8025 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8036 \begin_layout Plain Layout
8044 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8047 \begin_layout Plain Layout
8053 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8056 \begin_layout Plain Layout
8064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8067 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8078 \begin_layout Plain Layout
8084 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8087 \begin_layout Plain Layout
8095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8098 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8109 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8118 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8140 \begin_layout Plain Layout
8146 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8149 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8171 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8202 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8233 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8264 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8295 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8326 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8357 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8388 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8408 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8419 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8450 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8479 \begin_layout Plain Layout
8490 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8493 \begin_layout Plain Layout
8499 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8502 \begin_layout Plain Layout
8510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8513 \begin_layout Plain Layout
8521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8524 \begin_layout Plain Layout
8530 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8533 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8544 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8555 \begin_layout Plain Layout
8561 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8564 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8575 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8586 \begin_layout Plain Layout
8592 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8595 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8606 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8617 \begin_layout Plain Layout
8623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8626 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8637 \begin_layout Plain Layout
8645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8648 \begin_layout Plain Layout
8654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8657 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8668 \begin_layout Plain Layout
8676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8679 \begin_layout Plain Layout
8685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8688 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8699 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8710 \begin_layout Plain Layout
8716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8719 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8750 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8781 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8812 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8843 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8874 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8905 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8927 \begin_layout Plain Layout
8933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8936 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8947 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8958 \begin_layout Plain Layout
8964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8967 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8978 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8989 \begin_layout Plain Layout
8995 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8998 \begin_layout Plain Layout
9006 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9009 \begin_layout Plain Layout
9015 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9018 \begin_layout Plain Layout
9024 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9049 \begin_layout Plain Layout
9055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9058 \begin_layout Plain Layout
9066 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9069 \begin_layout Plain Layout
9077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9080 \begin_layout Plain Layout
9086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9089 \begin_layout Plain Layout
9097 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9100 \begin_layout Plain Layout
9108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9111 \begin_layout Plain Layout
9117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9120 \begin_layout Plain Layout
9128 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9131 \begin_layout Plain Layout
9139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9142 \begin_layout Plain Layout
9148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9151 \begin_layout Plain Layout
9159 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9162 \begin_layout Plain Layout
9170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9173 \begin_layout Plain Layout
9179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9182 \begin_layout Plain Layout
9190 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9193 \begin_layout Plain Layout
9201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9204 \begin_layout Plain Layout
9210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9213 \begin_layout Plain Layout
9221 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9224 \begin_layout Plain Layout
9232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9235 \begin_layout Plain Layout
9241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9244 \begin_layout Plain Layout
9252 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9255 \begin_layout Plain Layout
9263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9266 \begin_layout Plain Layout
9272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9275 \begin_layout Plain Layout
9283 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9286 \begin_layout Plain Layout
9294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9297 \begin_layout Plain Layout
9303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9306 \begin_layout Plain Layout
9314 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9317 \begin_layout Plain Layout
9325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9328 \begin_layout Plain Layout
9334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9337 \begin_layout Plain Layout
9345 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9348 \begin_layout Plain Layout
9356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9359 \begin_layout Plain Layout
9365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9368 \begin_layout Plain Layout
9376 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9379 \begin_layout Plain Layout
9387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9390 \begin_layout Plain Layout
9396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9399 \begin_layout Plain Layout
9407 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9410 \begin_layout Plain Layout
9418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9421 \begin_layout Plain Layout
9427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9430 \begin_layout Plain Layout
9438 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9441 \begin_layout Plain Layout
9449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9452 \begin_layout Plain Layout
9458 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9461 \begin_layout Plain Layout
9469 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9472 \begin_layout Plain Layout
9480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9483 \begin_layout Plain Layout
9489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9492 \begin_layout Plain Layout
9500 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9503 \begin_layout Plain Layout
9511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9514 \begin_layout Plain Layout
9520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9523 \begin_layout Plain Layout
9531 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9534 \begin_layout Plain Layout
9542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9545 \begin_layout Plain Layout
9551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9554 \begin_layout Plain Layout
9562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9565 \begin_layout Plain Layout
9573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9576 \begin_layout Plain Layout
9582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9585 \begin_layout Plain Layout
9593 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9596 \begin_layout Plain Layout
9604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9607 \begin_layout Plain Layout
9613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9616 \begin_layout Plain Layout
9624 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9627 \begin_layout Plain Layout
9635 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9638 \begin_layout Plain Layout
9644 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9647 \begin_layout Plain Layout
9661 \begin_layout Section
9662 Special Longtable Issues
9663 \begin_inset CommandInset label
9665 name "sec:Special-Longtable-Issues"
9672 \begin_layout Subsection
9673 Longtable Calculation
9674 \begin_inset Index idx
9677 \begin_layout Plain Layout
9678 Longtables ! Calculation
9686 \begin_layout Standard
9687 LaTeX calculates the height of table pages and their page breaks using so
9689 Chunks are parts of tables that held at the same time in LaTeX's memory.
9690 The default value was historically set to only 20 table rows.
9691 If you are using longtables with many pages this may slow down the creation
9693 You can safely increase the chunk size to values of 100-1000 by adding
9694 this command line to your document preamble:
9697 \begin_layout Standard
9702 setcounter{LTchunksize}{100}
9705 \begin_layout Subsection
9706 Floats and Longtables
9707 \begin_inset Index idx
9710 \begin_layout Plain Layout
9719 \begin_layout Standard
9720 There might be problems when a float appears on the same page where a longtable
9722 To avoid such a situation, insert a
9723 \begin_inset Quotes eld
9727 \begin_inset Quotes erd
9732 Insert\SpecialChar \menuseparator
9733 Formatting\SpecialChar \menuseparator
9735 \begin_inset space ~
9740 ) before your longtable.
9743 \begin_layout Subsection
9745 \begin_inset Index idx
9748 \begin_layout Plain Layout
9749 Longtables ! Forced Page Breaks
9757 \begin_layout Standard
9758 By default tables are only broken between rows.
9759 If you have a cell with multiples lines and want to have a page break within
9760 the cell, insert the new line command
9761 \begin_inset Quotes eld
9773 \begin_inset Quotes erd
9776 as TeX-Code at the point of the cell where it can be broken.
9785 command you have to insert in TeX-Code as many
9786 \begin_inset Quotes eld
9794 \begin_inset Quotes erd
9797 characters as the number of the following table columns.
9802 is the character to separate table cells.
9803 Write in TeX-Code after each
9807 the content of the corresponding following cell and delete the content
9809 \begin_inset Newline newline
9820 command, insert as many
9824 characters as the number of table columns before the current column.
9826 \begin_inset space ~
9830 \begin_inset CommandInset ref
9832 reference "tab:ForcedPagebreak"
9836 the cell that should be broken is in the second column followed by another
9838 Therefore the following command was inserted in the cell as TeX-Code after
9840 \begin_inset Quotes eld
9848 \begin_inset Quotes erd
9854 \begin_layout Standard
9864 \begin_inset Newline newline
9870 \begin_layout Standard
9872 \begin_inset Quotes eld
9876 \begin_inset Quotes erd
9879 in the third column of the row was deleted.
9886 is only needed when a page break should definitely occur at this position,
9887 otherwise it would be a conditional break.
9888 If your footer row of the longtable has for a certain reason no upper line
9889 but you would have a horizontal line where the cell is broken, use this
9893 \begin_layout Standard
9901 \begin_inset Newline newline
9909 \begin_layout Standard
9910 When the cell to be broken is in the last column, the command
9913 \begin_layout Standard
9923 \begin_layout Standard
9924 must be inserted as TeX-Code at the beginning of the cell.
9925 This ensures that the part of the cell that will be displayed on the new
9926 page appears with the full width.
9929 \begin_layout Standard
9931 \begin_inset Tabular
9932 <lyxtabular version="3" rows="38" columns="3">
9933 <features rotate="0" islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9934 <column alignment="left" valignment="top" width="0cm">
9935 <column alignment="left" valignment="top" width="3cm">
9936 <column alignment="center" valignment="top" width="0pt">
9937 <row endfirsthead="true" caption="true">
9938 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9941 \begin_layout Plain Layout
9942 \begin_inset Caption Standard
9944 \begin_layout Plain Layout
9945 Table with forced page break in table cell
9946 \begin_inset CommandInset label
9948 name "tab:ForcedPagebreak"
9953 \begin_inset Argument 1
9956 \begin_layout Plain Layout
9957 Table with forced page break in table cell
9972 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9981 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9991 <row endfirsthead="true">
9992 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9995 \begin_layout Plain Layout
9998 Example Phone List (ignore the names)
10003 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10006 \begin_layout Plain Layout
10012 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10022 <row endfirsthead="true">
10023 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10026 \begin_layout Plain Layout
10034 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10037 \begin_layout Plain Layout
10043 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10055 <row endhead="true">
10056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10059 \begin_layout Plain Layout
10063 \begin_layout Plain Layout
10067 caption*{Continued Example Phone List}
10081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10084 \begin_layout Plain Layout
10090 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10093 \begin_layout Plain Layout
10100 <row endhead="true">
10101 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10104 \begin_layout Plain Layout
10112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10115 \begin_layout Plain Layout
10121 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10124 \begin_layout Plain Layout
10131 <row endhead="true">
10132 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10135 \begin_layout Plain Layout
10143 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10146 \begin_layout Plain Layout
10152 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10155 \begin_layout Plain Layout
10164 <row endfoot="true">
10165 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10168 \begin_layout Plain Layout
10169 continued on next page
10174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10177 \begin_layout Plain Layout
10183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10186 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10197 \begin_layout Plain Layout
10205 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10208 \begin_layout Plain Layout
10214 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10217 \begin_layout Plain Layout
10225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10239 \begin_layout Plain Layout
10245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10248 \begin_layout Plain Layout
10256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10270 \begin_layout Plain Layout
10276 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10279 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10301 \begin_layout Plain Layout
10307 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10310 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10332 \begin_layout Plain Layout
10338 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10341 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10363 \begin_layout Plain Layout
10369 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10372 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10394 \begin_layout Plain Layout
10400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10403 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10425 \begin_layout Plain Layout
10431 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10434 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10456 \begin_layout Plain Layout
10462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10465 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10487 \begin_layout Plain Layout
10493 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10496 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10507 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10518 \begin_layout Plain Layout
10524 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10527 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10538 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10549 \begin_layout Plain Layout
10555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10558 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10569 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10580 \begin_layout Plain Layout
10586 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10589 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10600 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10611 \begin_layout Plain Layout
10617 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10620 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10631 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10642 \begin_layout Plain Layout
10648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10651 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10673 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10682 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10704 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10713 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10735 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10744 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10766 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10775 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10786 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10797 \begin_layout Plain Layout
10803 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10806 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10817 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10828 \begin_layout Plain Layout
10834 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10837 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10848 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10859 \begin_layout Plain Layout
10865 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10868 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10890 \begin_layout Plain Layout
10892 Fürst von Montecompatri, 11.
10893 Fürst von Sulmona und Vivaro, 10.
10894 Fürst von Rossano, 5.
10895 Herzog von Canemorte, 11.
10896 Herzog von Palombara, 5.
10897 Herzog von Castelchiodato,
10901 \begin_layout Plain Layout
10912 \begin_layout Plain Layout
10920 Herzog von Poggionativo, 11.
10921 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10922 Graf von Valinfreda, 11.
10923 Baron von Cropalati, 11.
10924 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10932 \begin_layout Plain Layout
10940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10943 \begin_layout Plain Layout
10951 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10954 \begin_layout Plain Layout
10960 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10963 \begin_layout Plain Layout
10971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10974 \begin_layout Plain Layout
10982 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10985 \begin_layout Plain Layout
10991 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10994 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11005 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11016 \begin_layout Plain Layout
11022 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11025 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11036 \begin_layout Plain Layout
11044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11047 \begin_layout Plain Layout
11053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11056 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11067 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11078 \begin_layout Plain Layout
11084 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11087 \begin_layout Plain Layout
11095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11098 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11109 \begin_layout Plain Layout
11115 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11118 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11149 \begin_layout Plain Layout
11157 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11160 \begin_layout Plain Layout
11168 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11171 \begin_layout Plain Layout
11177 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11180 \begin_layout Plain Layout
11194 \begin_layout Section
11195 Multiple Lines, Columns and Rows
11198 \begin_layout Subsection
11199 Multiple Lines in Table Cells
11200 \begin_inset CommandInset label
11202 name "sub:Multiple-Lines-in"
11207 \begin_inset Index idx
11210 \begin_layout Plain Layout
11211 Multiple Lines in Table Cells
11217 \begin_inset Index idx
11220 \begin_layout Plain Layout
11229 \begin_layout Standard
11231 \begin_inset Float table
11237 \begin_layout Plain Layout
11238 \begin_inset Caption Standard
11240 \begin_layout Plain Layout
11241 \begin_inset CommandInset label
11243 name "tab:Table-with-multiple"
11247 Table with multiple lines in cells
11255 \begin_layout Plain Layout
11257 \begin_inset Tabular
11258 <lyxtabular version="3" rows="3" columns="3">
11259 <features rotate="0" tabularvalignment="middle">
11260 <column alignment="center" valignment="middle" width="2.5cm">
11261 <column alignment="center" valignment="middle" width="0">
11262 <column alignment="center" valignment="middle" width="0">
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11269 \begin_inset Newline linebreak
11277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11280 \begin_layout Plain Layout
11286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11289 \begin_layout Plain Layout
11297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11300 \begin_layout Plain Layout
11306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11309 \begin_layout Plain Layout
11315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11318 \begin_layout Plain Layout
11326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11329 \begin_layout Plain Layout
11335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11338 \begin_layout Plain Layout
11344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11347 \begin_layout Plain Layout
11366 \begin_layout Standard
11367 Setting a fixed width for a column enables you to enter text as a paragraph
11368 with multiple lines and hyphenation.
11371 \begin_layout Standard
11373 \begin_inset space ~
11377 \begin_inset CommandInset ref
11379 reference "tab:Table-with-multiple"
11383 , create a 3×3 table, mark the first cell and right-click on it.
11384 In the appearing table dialog we set a cell width of 2.5
11385 \begin_inset space \thinspace{}
11388 cm and choose centered for the vertical and horizontal alignment.
11389 The vertical alignment is used for all cells of the row.
11390 As our text is smaller than 2.5
11391 \begin_inset space \thinspace{}
11394 cm, only one line will appear.
11395 To get two lines, a justified line break (shortcut
11398 arg "newline-insert linebreak"
11402 If the text is wider than the set cell width, it will automatically be
11403 broken to several lines.
11406 \begin_layout Standard
11407 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11408 by LaTeX if it is the first entry.
11409 Therefore you need to insert something to prevent the word not being the
11411 So add a horizontal space of 0
11412 \begin_inset space \thinspace{}
11415 pt before the word.
11416 As the space is zero, it doesn't change the output.
11418 \begin_inset space ~
11422 \begin_inset CommandInset ref
11424 reference "tab:Table-with-and"
11431 \begin_layout Standard
11432 \begin_inset Float table
11438 \begin_layout Plain Layout
11439 \begin_inset Caption Standard
11441 \begin_layout Plain Layout
11442 \begin_inset CommandInset label
11444 name "tab:Table-with-and"
11448 Table with and without hyphenation
11456 \begin_layout Plain Layout
11457 \begin_inset space \hfill{}
11461 \begin_inset Tabular
11462 <lyxtabular version="3" rows="3" columns="3">
11463 <features rotate="0" tabularvalignment="middle">
11464 <column alignment="center" valignment="middle" width="2.5cm">
11465 <column alignment="center" valignment="middle" width="0">
11466 <column alignment="center" valignment="middle" width="0">
11468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11471 \begin_layout Plain Layout
11472 verylongtablecellword
11477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11480 \begin_layout Plain Layout
11486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11489 \begin_layout Plain Layout
11497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11500 \begin_layout Plain Layout
11506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11509 \begin_layout Plain Layout
11515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11518 \begin_layout Plain Layout
11526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11529 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11547 \begin_layout Plain Layout
11559 \begin_inset space \hfill{}
11563 \begin_inset Tabular
11564 <lyxtabular version="3" rows="3" columns="3">
11565 <features rotate="0" tabularvalignment="middle">
11566 <column alignment="center" valignment="middle" width="2.5cm">
11567 <column alignment="center" valignment="middle" width="0">
11568 <column alignment="center" valignment="middle" width="0">
11570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11573 \begin_layout Plain Layout
11574 \begin_inset space \hspace{}
11578 verylongtablecellword
11583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11586 \begin_layout Plain Layout
11592 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11595 \begin_layout Plain Layout
11603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11606 \begin_layout Plain Layout
11612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11615 \begin_layout Plain Layout
11621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11624 \begin_layout Plain Layout
11632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11635 \begin_layout Plain Layout
11641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11644 \begin_layout Plain Layout
11650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11653 \begin_layout Plain Layout
11665 \begin_inset space \hfill{}
11676 \begin_layout Subsection
11678 \begin_inset CommandInset label
11680 name "sub:Multicolumns"
11685 \begin_inset Index idx
11688 \begin_layout Plain Layout
11695 \begin_inset Index idx
11698 \begin_layout Plain Layout
11699 Table ! Multicolumns
11707 \begin_layout Subsubsection
11711 \begin_layout Standard
11712 To merge cells over multiple columns, select as many cells within a row
11713 as you want to merge and use either the table-toolbar button
11716 arg "inset-modify tabular multicolumn"
11721 Edit\SpecialChar \menuseparator
11722 Table\SpecialChar \menuseparator
11725 , or right click on the marked cells and choose
11729 in the context menu.
11732 \begin_layout Standard
11733 Multicolumns have there own cell settings.
11734 That means changing cell borders, cell alignment, and the width only affects
11736 Here is an example table with a multicolumn cell in the first row and one
11737 in the last row without the upper border:
11740 \begin_layout Standard
11742 \begin_inset Tabular
11743 <lyxtabular version="3" rows="3" columns="4">
11744 <features rotate="0" firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11745 <column alignment="center" valignment="top" width="0pt">
11746 <column alignment="center" valignment="middle" width="0">
11747 <column alignment="center" valignment="top" width="0in">
11748 <column alignment="center" valignment="top" width="0pt">
11750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11753 \begin_layout Plain Layout
11759 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11762 \begin_layout Plain Layout
11768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11771 \begin_layout Plain Layout
11777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11780 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11791 \begin_layout Plain Layout
11806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11809 \begin_layout Plain Layout
11815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11818 \begin_layout Plain Layout
11824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11827 \begin_layout Plain Layout
11835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11838 \begin_layout Plain Layout
11844 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11847 \begin_layout Plain Layout
11853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11856 \begin_layout Plain Layout
11862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11865 \begin_layout Plain Layout
11879 \begin_layout Subsubsection
11880 Multicolumn Calculations
11881 \begin_inset CommandInset label
11883 name "sub:Multicolumn-Calculations"
11888 \begin_inset Index idx
11891 \begin_layout Plain Layout
11892 Multicolumns ! Calculations
11900 \begin_layout Standard
11901 LyX supports multicolumns directly, but we have to take account of the cell
11902 width of the columns spanned by the multicolumn cell.
11905 \begin_layout Standard
11906 \begin_inset Float table
11912 \begin_layout Plain Layout
11913 \begin_inset Caption Standard
11915 \begin_layout Plain Layout
11916 \begin_inset CommandInset label
11918 name "tab:Table-with-centered"
11922 Table with centered multicolumn text above two columns that have exactly
11923 half the width of the multicolumn cell
11924 \begin_inset Argument 1
11927 \begin_layout Plain Layout
11928 Perfect multicolumn table
11941 \begin_layout Plain Layout
11943 \begin_inset Tabular
11944 <lyxtabular version="3" rows="3" columns="3">
11945 <features rotate="0" tabularvalignment="middle">
11946 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11947 <column alignment="center" valignment="middle" width="0">
11948 <column alignment="center" valignment="top" width="0">
11950 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11953 \begin_layout Plain Layout
11954 multiple lines multicolumn
11959 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11962 \begin_layout Plain Layout
11968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11971 \begin_layout Plain Layout
11979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11982 \begin_layout Plain Layout
11988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11991 \begin_layout Plain Layout
11997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12000 \begin_layout Plain Layout
12008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12011 \begin_layout Plain Layout
12017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12020 \begin_layout Plain Layout
12026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12029 \begin_layout Plain Layout
12048 \begin_layout Standard
12049 To create for example Table
12050 \begin_inset space ~
12054 \begin_inset CommandInset ref
12056 reference "tab:Table-with-centered"
12060 , mark the first two cells in the first row of a 3×3 table and right-click
12062 Now choose for this cell
12071 \begin_inset space \thinspace{}
12074 cm in the table dialog.
12075 The merged columns should have exactly half the width of the multicolumn
12076 cell, so that you would set a width of 1.25
12077 \begin_inset space \thinspace{}
12080 cm for the first column.
12081 The second column has then automatically a width of 1.25
12082 \begin_inset space \thinspace{}
12085 cm (multicolumn width - width of first column).
12086 This was done for Table
12087 \begin_inset space ~
12091 \begin_inset CommandInset ref
12093 reference "tab:Table-without-half"
12100 \begin_layout Standard
12101 \begin_inset Float table
12106 \begin_layout Plain Layout
12107 \begin_inset Caption Standard
12109 \begin_layout Plain Layout
12110 \begin_inset CommandInset label
12112 name "tab:Table-without-half"
12116 Table where the spanned table columns are not exactly half the width of
12117 the multicolumn cell
12118 \begin_inset Argument 1
12121 \begin_layout Plain Layout
12122 Imperfect multicolumn table
12135 \begin_layout Plain Layout
12137 \begin_inset Tabular
12138 <lyxtabular version="3" rows="3" columns="3">
12139 <features rotate="0" tabularvalignment="middle">
12140 <column alignment="center" valignment="top" width="1.25cm">
12141 <column alignment="center" valignment="top" width="0">
12142 <column alignment="center" valignment="top" width="0">
12144 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12147 \begin_layout Plain Layout
12148 multiple lines multicolumn
12153 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12156 \begin_layout Plain Layout
12162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12165 \begin_layout Plain Layout
12173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12176 \begin_layout Plain Layout
12182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12185 \begin_layout Plain Layout
12191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12194 \begin_layout Plain Layout
12202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12205 \begin_layout Plain Layout
12211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12214 \begin_layout Plain Layout
12220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12223 \begin_layout Plain Layout
12242 \begin_layout Standard
12243 You can see that the first column is not half the width of the multicolumn
12244 cell, it is a bit bigger.
12245 The reason is that the specified width of a cell
12246 \begin_inset Formula $W_{g}$
12249 is not its total width
12250 \begin_inset Formula $W_{\mathrm{tot}}$
12253 because a cell is always a bit larger than specified.
12255 \begin_inset space ~
12259 \begin_inset CommandInset ref
12261 reference "cha:Explanation-of-Equation"
12265 explains this in detail.
12268 \begin_layout Standard
12270 \begin_inset Formula $W_{g\, n}$
12273 which the user needs to set when
12277 columns are spanned can be calculated, so that each column has a total
12279 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12283 \begin_inset Formula
12285 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12293 \begin_layout Standard
12294 In our case we have
12295 \begin_inset Formula $n=2$
12299 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12302 cm and the default values for the lengths, so that equation
12303 \begin_inset CommandInset ref
12310 \begin_inset Formula
12312 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12320 \begin_layout Standard
12321 To enable calculations in LaTeX, the LaTeX-package
12325 must be loaded with the document preamble line
12326 \begin_inset Index idx
12329 \begin_layout Plain Layout
12330 LaTeX-packages ! calc
12338 \begin_layout Standard
12346 \begin_layout Standard
12347 LyX does not allow you to calculate lengths in the
12351 field of the table dialog.
12352 Therefore you have to format the column by inserting a LaTeX-argument in
12354 Here is an overview about the arguments:
12357 \begin_layout Itemize
12362 creates cell with a fixed width, its text is vertically top-aligned
12365 \begin_layout Itemize
12370 creates cell with a fixed width, its text is vertically centered
12373 \begin_layout Itemize
12378 creates cell with a fixed width, its text is vertically bottom-aligned
12381 \begin_layout Standard
12382 By entering a LaTeX-argument, all cell settings set in the table dialog
12386 \begin_layout Standard
12387 \begin_inset Note Greyedout
12390 \begin_layout Plain Layout
12395 Due to a bug, LyX shows the overwritten settings anyway.
12403 \begin_layout Standard
12404 As the text should be horizontally centered, the command
12411 You can now enter the following LaTeX-argument for the first spanned column:
12414 \begin_layout Standard
12419 centering}m{1.25cm-6.2pt}
12422 \begin_layout Standard
12427 means, that the commands inside the braces are applied before the cell
12431 \begin_layout Standard
12432 Although we have chosen centered alignment for the text of the multicolumn
12433 cell, it is still left aligned.
12434 This is because LyX only applies the alignment to single columns.
12435 So for the multicolumn cell we have to use the LaTeX-argument
12438 \begin_layout Standard
12446 \begin_layout Subsection
12448 \begin_inset CommandInset label
12450 name "sub:Multirows"
12455 \begin_inset Index idx
12458 \begin_layout Plain Layout
12465 \begin_inset Index idx
12468 \begin_layout Plain Layout
12477 \begin_layout Standard
12478 To merge cells over multiple rows, select as many cells within a column
12479 as you want to merge and use either the table-toolbar button
12482 arg "inset-modify tabular multirow"
12487 Edit\SpecialChar \menuseparator
12488 Table\SpecialChar \menuseparator
12491 , or right click on the marked cells and choose
12495 in the context menu.
12498 \begin_layout Standard
12499 Here is an example table with a multirow in the first column:
12502 \begin_layout Standard
12504 \begin_inset Tabular
12505 <lyxtabular version="3" rows="3" columns="3">
12506 <features rotate="0" tabularvalignment="middle">
12507 <column alignment="center" valignment="top" width="0pt">
12508 <column alignment="center" valignment="top" width="0">
12509 <column alignment="center" valignment="top" width="0">
12511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12514 \begin_layout Plain Layout
12520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12523 \begin_layout Plain Layout
12529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12532 \begin_layout Plain Layout
12540 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12543 \begin_layout Plain Layout
12549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12552 \begin_layout Plain Layout
12558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12561 \begin_layout Plain Layout
12569 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12572 \begin_layout Plain Layout
12578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12581 \begin_layout Plain Layout
12587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12590 \begin_layout Plain Layout
12604 \begin_layout Standard
12605 The width of multirow cells is set by setting the width and alignment for
12611 shifts the content of the multirow up/down if the offset is positive/negative.
12614 \begin_layout Standard
12615 If the column of a multirow cell has no explicit width, the multirow cell
12616 inherits the alignment of the column.
12617 Otherwise it is by default left-aligned.
12618 To override the default, renew the command
12627 \begin_layout Standard
12639 \begin_layout Standard
12640 in the document preamble.
12641 Then all entries of multirow cells in the document are centered.
12642 If centering is only needed for several tables, you can renew the command
12643 in a TeX-Code box just before the table instead of the preamble.
12644 If the text should be right-aligned, replace
12657 To return to left-alignment
12666 \begin_layout Standard
12667 This is an example table with a right-aligned multirow cell that has a vertical
12669 \begin_inset space \thinspace{}
12673 \begin_inset space \thinspace{}
12679 \begin_layout Standard
12685 \begin_layout Plain Layout
12699 \begin_inset Tabular
12700 <lyxtabular version="3" rows="4" columns="3">
12701 <features rotate="0" tabularvalignment="middle">
12702 <column alignment="center" valignment="top" width="3cm">
12703 <column alignment="center" valignment="top" width="0">
12704 <column alignment="center" valignment="top" width="0">
12706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12709 \begin_layout Plain Layout
12715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12718 \begin_layout Plain Layout
12724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12727 \begin_layout Plain Layout
12735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12738 \begin_layout Plain Layout
12744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12747 \begin_layout Plain Layout
12753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12756 \begin_layout Plain Layout
12764 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12767 \begin_layout Plain Layout
12773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12776 \begin_layout Plain Layout
12782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12785 \begin_layout Plain Layout
12793 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12796 \begin_layout Plain Layout
12802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12805 \begin_layout Plain Layout
12811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12814 \begin_layout Plain Layout
12829 \begin_layout Plain Layout
12845 \begin_layout Standard
12846 To start a new line in a multirow you can use a forced line break (shortcut
12850 arg "newline-insert newline"
12853 ) but this will not respect the cell lines as demonstrated in this table:
12856 \begin_layout Standard
12859 \begin_inset Tabular
12860 <lyxtabular version="3" rows="3" columns="2">
12861 <features rotate="0" tabularvalignment="middle">
12862 <column alignment="left" valignment="middle" width="2cm">
12863 <column alignment="center" valignment="top" width="0">
12865 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12868 \begin_layout Plain Layout
12870 \begin_inset Newline newline
12874 \begin_inset Newline newline
12882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12885 \begin_layout Plain Layout
12893 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12896 \begin_layout Plain Layout
12902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12905 \begin_layout Plain Layout
12913 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12916 \begin_layout Plain Layout
12922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12925 \begin_layout Plain Layout
12939 \begin_layout Standard
12940 Therefore be careful with forced line breaks.
12943 \begin_layout Subsection
12944 Cells with diagonal line(s)
12947 \begin_layout Standard
12948 To tell the reader what is meant by column and row headings in a table,
12949 it is helpful to split the first cell of the table by one or two diagonal
12951 This can be achieved by loading the LaTeX-package
12956 \begin_inset Index idx
12959 \begin_layout Plain Layout
12960 LaTeX-packages ! picinpar
12965 in the document preamble.
12966 The package provides the command
12972 that is inserted as TeX-Code and that can take 2 or 3
12973 \begin_inset space ~
12979 \begin_layout Standard
12984 diagbox[options]{lower left}{upper right}
12987 \begin_layout Standard
12992 diagbox[options]{lower left}{upper left}{upper right}
12995 \begin_layout Standard
12996 The first scheme divides the cell by a single diagonal line and the arguments
12997 are placed below and above this line.
12998 The second scheme divides the cell by 2
12999 \begin_inset space ~
13005 \begin_layout Standard
13009 \begin_layout Plain Layout
13019 \begin_inset Note Note
13022 \begin_layout Plain Layout
13023 The following section will only be displayed when the LaTeX-package
13035 \begin_layout Standard
13036 Here is an example table where
13042 is used in the 2-argument scheme in the first cell:
13043 \begin_inset VSpace medskip
13049 \begin_layout Standard
13051 \begin_inset Tabular
13052 <lyxtabular version="3" rows="4" columns="4">
13053 <features rotate="0" tabularvalignment="middle">
13054 <column alignment="center" valignment="top" width="0">
13055 <column alignment="center" valignment="top" width="0">
13056 <column alignment="center" valignment="top" width="0">
13057 <column alignment="center" valignment="top" width="0">
13059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13062 \begin_layout Plain Layout
13066 \begin_layout Plain Layout
13079 \begin_layout Plain Layout
13090 \begin_layout Plain Layout
13102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13105 \begin_layout Plain Layout
13111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13114 \begin_layout Plain Layout
13120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13123 \begin_layout Plain Layout
13131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13134 \begin_layout Plain Layout
13140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13143 \begin_layout Plain Layout
13149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13152 \begin_layout Plain Layout
13158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13161 \begin_layout Plain Layout
13169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13172 \begin_layout Plain Layout
13178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13181 \begin_layout Plain Layout
13187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13190 \begin_layout Plain Layout
13196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13199 \begin_layout Plain Layout
13207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13210 \begin_layout Plain Layout
13216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13219 \begin_layout Plain Layout
13225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13228 \begin_layout Plain Layout
13234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13237 \begin_layout Plain Layout
13249 \begin_inset VSpace medskip
13255 \begin_layout Standard
13256 The 3-argument scheme is for example useful for cross-tables of sports leagues
13260 \begin_layout Standard
13263 \begin_inset Tabular
13264 <lyxtabular version="3" rows="4" columns="4">
13265 <features rotate="0" tabularvalignment="middle">
13266 <column alignment="center" valignment="top" width="0pt">
13267 <column alignment="center" valignment="top" width="0">
13268 <column alignment="center" valignment="top" width="0">
13269 <column alignment="center" valignment="top" width="0">
13271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13274 \begin_layout Plain Layout
13278 \begin_layout Plain Layout
13291 \begin_layout Plain Layout
13302 \begin_layout Plain Layout
13313 \begin_layout Plain Layout
13325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13328 \begin_layout Plain Layout
13334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13337 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13346 \begin_layout Plain Layout
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13375 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13384 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13422 \begin_layout Plain Layout
13430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13433 \begin_layout Plain Layout
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13451 \begin_layout Plain Layout
13457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13460 \begin_layout Plain Layout
13474 \begin_layout Standard
13475 For larger cross-tables one might use split cells in 2 or every corner of
13476 the table like in this example:
13479 \begin_layout Standard
13482 \begin_inset Tabular
13483 <lyxtabular version="3" rows="5" columns="5">
13484 <features rotate="0" tabularvalignment="middle">
13485 <column alignment="center" valignment="top" width="0pt">
13486 <column alignment="center" valignment="top" width="0">
13487 <column alignment="center" valignment="top" width="0">
13488 <column alignment="center" valignment="top" width="0">
13489 <column alignment="center" valignment="top" width="0">
13491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13494 \begin_layout Plain Layout
13498 \begin_layout Plain Layout
13511 \begin_layout Plain Layout
13522 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13548 \begin_layout Plain Layout
13554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13557 \begin_layout Plain Layout
13563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13566 \begin_layout Plain Layout
13572 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13575 \begin_layout Plain Layout
13579 \begin_layout Plain Layout
13592 \begin_layout Plain Layout
13603 \begin_layout Plain Layout
13614 \begin_layout Plain Layout
13628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13631 \begin_layout Plain Layout
13637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13667 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13678 \begin_layout Plain Layout
13684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13687 \begin_layout Plain Layout
13693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13696 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13705 \begin_layout Plain Layout
13711 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13714 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13725 \begin_layout Plain Layout
13731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13734 \begin_layout Plain Layout
13740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13743 \begin_layout Plain Layout
13749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13752 \begin_layout Plain Layout
13758 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13761 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13772 \begin_layout Plain Layout
13776 \begin_layout Plain Layout
13789 \begin_layout Plain Layout
13800 \begin_layout Plain Layout
13811 \begin_layout Plain Layout
13823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13826 \begin_layout Plain Layout
13832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13835 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13844 \begin_layout Plain Layout
13850 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13853 \begin_layout Plain Layout
13857 \begin_layout Plain Layout
13870 \begin_layout Plain Layout
13881 \begin_layout Plain Layout
13892 \begin_layout Plain Layout
13912 \begin_layout Standard
13913 To rotate the diagonal lines, the command option
13938 and represent a point of a compass.
13943 is for example the south-west corner.
13944 Thus in the lower left cell of the above table the command
13947 \begin_layout Standard
13952 diagbox[dir=SW]{Team home}{Result}{Team away}
13955 \begin_layout Standard
13957 If no direction is given, it will be NW.
13960 \begin_layout Standard
13961 The necessary width of split cells is automatically calculated.
13962 Thus if you set a fixed column width smaller than the calculated one, the
13963 cell's content will protrude the cell borders:
13966 \begin_layout Standard
13969 \begin_inset Tabular
13970 <lyxtabular version="3" rows="2" columns="2">
13971 <features rotate="0" tabularvalignment="middle">
13972 <column alignment="center" valignment="top" width="3cm">
13973 <column alignment="center" valignment="top" width="0">
13975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13978 \begin_layout Plain Layout
13982 \begin_layout Plain Layout
13995 \begin_layout Plain Layout
14006 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Plain Layout
14029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14032 \begin_layout Plain Layout
14038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14041 \begin_layout Plain Layout
14055 \begin_layout Standard
14056 If you need a certain width for columns with a split cell, use the command
14061 (replace '3cm' by the width you need).
14062 In the following table the width of the first column is set to 4
14063 \begin_inset space \thinspace{}
14074 \begin_inset space \thinspace{}
14078 \begin_inset space \thinspace{}
14083 tabcolsep is necessary because the overall width is the width for the text
14084 (in this case the 4
14085 \begin_inset space \thinspace{}
14088 cm) plus two times the separation of the text and the cell border.
14089 The calculation of the width cannot be done in the command option of
14095 so one needs to create a new length which can be used later.
14096 This is done with the TeX-Code commands
14099 \begin_layout Standard
14107 \begin_inset Newline newline
14119 \begin_layout Standard
14123 \begin_layout Plain Layout
14132 \begin_layout Plain Layout
14148 \begin_layout Standard
14149 To enable calculations in LaTeX one needs to load the package
14154 \begin_inset Index idx
14157 \begin_layout Plain Layout
14158 LaTeX-packages ! calc
14163 in the document preamble.
14166 \begin_layout Standard
14167 In this table you can now use the command
14170 \begin_layout Standard
14180 \begin_layout Standard
14184 \begin_layout Standard
14187 \begin_inset Tabular
14188 <lyxtabular version="3" rows="2" columns="2">
14189 <features rotate="0" tabularvalignment="middle">
14190 <column alignment="center" valignment="top" width="4cm">
14191 <column alignment="center" valignment="top" width="0">
14193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14196 \begin_layout Plain Layout
14200 \begin_layout Plain Layout
14215 \begin_layout Plain Layout
14226 \begin_layout Plain Layout
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14241 \begin_layout Plain Layout
14249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14252 \begin_layout Plain Layout
14258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14261 \begin_layout Plain Layout
14275 \begin_layout Standard
14276 Note that the split cell needs to be the widest one in the column.
14277 Otherwise the length of the diagonal line cannot be calculated correctly
14278 like in this table:
14281 \begin_layout Standard
14284 \begin_inset Tabular
14285 <lyxtabular version="3" rows="2" columns="2">
14286 <features rotate="0" tabularvalignment="middle">
14287 <column alignment="center" valignment="top" width="0pt">
14288 <column alignment="center" valignment="top" width="0">
14290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14293 \begin_layout Plain Layout
14297 \begin_layout Plain Layout
14310 \begin_layout Plain Layout
14321 \begin_layout Plain Layout
14333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14336 \begin_layout Plain Layout
14344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14347 \begin_layout Plain Layout
14353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14356 \begin_layout Plain Layout
14370 \begin_layout Standard
14371 In this case use the
14382 It is then not necessary to add 2
14384 tabcolsep because the cell width is now the width of the column.
14385 In this table a width of 3
14386 \begin_inset space \thinspace{}
14392 \begin_layout Standard
14395 \begin_inset Tabular
14396 <lyxtabular version="3" rows="2" columns="2">
14397 <features rotate="0" tabularvalignment="middle">
14398 <column alignment="center" valignment="top" width="0pt">
14399 <column alignment="center" valignment="top" width="0">
14401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14404 \begin_layout Plain Layout
14408 \begin_layout Plain Layout
14412 diagbox[width=3cm]{
14421 \begin_layout Plain Layout
14432 \begin_layout Plain Layout
14444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14447 \begin_layout Plain Layout
14455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14458 \begin_layout Plain Layout
14464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14467 \begin_layout Plain Layout
14481 \begin_layout Standard
14482 For multiple text lines in split cells one needs some extra height to fit
14483 the text to the cell.
14484 This can be achieved with the
14494 (replace '3cm' by the height you need).
14495 In the following table the command
14498 \begin_layout Standard
14503 diagbox[width=3cm,height=1.4cm]{A
14514 \begin_layout Standard
14515 is used in the first cell.
14524 creates hereby the line break.
14528 \begin_layout Plain Layout
14529 Breaking lines with
14533 is only possible when the column has a fixed width.
14541 \begin_layout Standard
14544 \begin_inset Tabular
14545 <lyxtabular version="3" rows="2" columns="2">
14546 <features rotate="0" tabularvalignment="middle">
14547 <column alignment="center" valignment="top" width="0">
14548 <column alignment="center" valignment="top" width="0">
14550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14553 \begin_layout Plain Layout
14557 \begin_layout Plain Layout
14561 diagbox[width=3cm,height=1.4cm]{
14570 \begin_layout Plain Layout
14585 \begin_layout Plain Layout
14596 \begin_layout Plain Layout
14611 \begin_layout Plain Layout
14623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14626 \begin_layout Plain Layout
14634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14637 \begin_layout Plain Layout
14643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14646 \begin_layout Plain Layout
14660 \begin_layout Standard
14664 \begin_layout Plain Layout
14674 \begin_inset Note Note
14677 \begin_layout Plain Layout
14678 The following will be displayed when the LaTeX-package
14690 \begin_layout Standard
14691 You need to install the LaTeX-package
14695 to see the following part of this section in the output.
14698 \begin_layout Standard
14702 \begin_layout Plain Layout
14714 \begin_layout Standard
14715 For more info about the LaTeX-package
14719 , see its documentation,
14720 \begin_inset CommandInset citation
14729 \begin_layout Section
14731 \begin_inset CommandInset label
14733 name "sec:Formal-Tables"
14738 \begin_inset Index idx
14741 \begin_layout Plain Layout
14750 \begin_layout Standard
14751 Tables are often typeset in books similar to Table
14752 \begin_inset space ~
14756 \begin_inset CommandInset ref
14758 reference "tab:Example-booktabs-table"
14763 This kind of tables is called
14764 \begin_inset Quotes eld
14772 \begin_inset Quotes erd
14776 To make a table a formal table use the option
14784 tab of the table dialog.
14787 \begin_layout Standard
14788 \begin_inset Float table
14794 \begin_layout Plain Layout
14795 \begin_inset Caption Standard
14797 \begin_layout Plain Layout
14798 \begin_inset CommandInset label
14800 name "tab:Example-booktabs-table"
14804 Example booktabs-table
14812 \begin_layout Plain Layout
14814 \begin_inset Tabular
14815 <lyxtabular version="3" rows="8" columns="4">
14816 <features rotate="0" booktabs="true" tabularvalignment="middle">
14817 <column alignment="center" valignment="top" width="0">
14818 <column alignment="center" valignment="top" width="0">
14819 <column alignment="center" valignment="top" width="0">
14820 <column alignment="center" valignment="top" width="0">
14822 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14825 \begin_layout Plain Layout
14831 <cell alignment="center" valignment="top" topline="true" usebox="none">
14834 \begin_layout Plain Layout
14836 \begin_inset space \thinspace{}
14844 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14847 \begin_layout Plain Layout
14849 \begin_inset space \thinspace{}
14857 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14860 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14871 \begin_layout Plain Layout
14875 \begin_layout Plain Layout
14888 \begin_layout Plain Layout
14897 Detector thickness in µm
14902 <cell alignment="center" valignment="top" usebox="none">
14905 \begin_layout Plain Layout
14911 <cell alignment="center" valignment="top" usebox="none">
14914 \begin_layout Plain Layout
14920 <cell alignment="center" valignment="top" usebox="none">
14923 \begin_layout Plain Layout
14931 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14934 \begin_layout Plain Layout
14940 <cell alignment="center" valignment="top" topline="true" usebox="none">
14943 \begin_layout Plain Layout
14949 <cell alignment="center" valignment="top" topline="true" usebox="none">
14952 \begin_layout Plain Layout
14958 <cell alignment="center" valignment="top" topline="true" usebox="none">
14961 \begin_layout Plain Layout
14968 <row topspace="default">
14969 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14972 \begin_layout Plain Layout
14973 Spatial resolution in µm
14978 <cell alignment="center" valignment="top" usebox="none">
14981 \begin_layout Plain Layout
14987 <cell alignment="center" valignment="top" usebox="none">
14990 \begin_layout Plain Layout
14996 <cell alignment="center" valignment="top" usebox="none">
14999 \begin_layout Plain Layout
15006 <row topspace="default">
15007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15010 \begin_layout Plain Layout
15012 \begin_inset Formula $f_{\mathrm{max}}$
15020 <cell alignment="center" valignment="top" usebox="none">
15023 \begin_layout Plain Layout
15029 <cell alignment="center" valignment="top" usebox="none">
15032 \begin_layout Plain Layout
15038 <cell alignment="center" valignment="top" usebox="none">
15041 \begin_layout Plain Layout
15048 <row topspace="default">
15049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15052 \begin_layout Plain Layout
15056 \begin_layout Plain Layout
15060 cmidrule(l{10pt}){1-1}
15065 LSF-spatial resolution
15070 <cell alignment="center" valignment="top" usebox="none">
15073 \begin_layout Plain Layout
15079 <cell alignment="center" valignment="top" usebox="none">
15082 \begin_layout Plain Layout
15088 <cell alignment="center" valignment="top" usebox="none">
15091 \begin_layout Plain Layout
15099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15102 \begin_layout Plain Layout
15108 <cell alignment="center" valignment="top" usebox="none">
15111 \begin_layout Plain Layout
15117 <cell alignment="center" valignment="top" usebox="none">
15120 \begin_layout Plain Layout
15126 <cell alignment="center" valignment="top" usebox="none">
15129 \begin_layout Plain Layout
15137 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15140 \begin_layout Plain Layout
15146 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15149 \begin_layout Plain Layout
15155 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15158 \begin_layout Plain Layout
15164 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15167 \begin_layout Plain Layout
15186 \begin_layout Standard
15187 Spaces to table rows can be added using the
15191 tab of the table dialog as described in section
15192 \begin_inset space ~
15196 \begin_inset CommandInset ref
15198 reference "sub:Row-Spacing"
15205 \begin_layout Standard
15206 Unlike normal tables, formal tables have no vertical table lines.
15207 The horizontal table lines can be set as for normal tables but they appear
15208 with different widths in the output:
15209 \begin_inset Newline newline
15212 The first and the last table line have a default width of 0.08
15213 \begin_inset space \thinspace{}
15216 em while the other lines have a default width of 0.05
15217 \begin_inset space \thinspace{}
15223 \begin_layout Standard
15224 The default widths can be changed with the following preamble lines
15227 \begin_layout Standard
15237 \begin_inset Newline newline
15249 \begin_layout Standard
15250 This example is for the first line, the so called
15255 If you want to change the width for the last line, replace
15264 To change the width for the other lines replace
15273 You can use all units listed in appendix
15274 \begin_inset space ~
15278 \begin_inset CommandInset ref
15280 reference "cha:Units-available-in"
15287 \begin_layout Standard
15288 Lines that do not span all table columns can be created by setting a table
15289 line for multicolumn cells.
15290 LyX will then internally use the command
15296 to create this line.
15300 \begin_layout Standard
15305 cmidrule[width](trim){startcol-endcol}
15308 \begin_layout Standard
15315 are currently not supported by LyX so you have to use TeX-Code to be able
15323 s can manually be created by inserting the command as TeX-Code as the first
15324 cell entry of the first cell of a row.
15325 The line is then drawn in the output above the current row.
15328 \begin_layout Standard
15329 The default for the width is 0.03
15330 \begin_inset space \thinspace{}
15334 Startcol is the number of the column where the line starts and endcol the
15335 column number where the line ends.
15336 The endcol always needs to be specified, also when the line should span
15338 The optional parameter trim could be either
15346 where the trimwidth is also optional.
15347 Using for example the parameter
15351 means that the line is trimmed from its left end by 2
15352 \begin_inset space \thinspace{}
15356 If you don't specify the trimwidth the lines are trimmed by the default
15358 \begin_inset space \thinspace{}
15364 \begin_layout Standard
15365 \begin_inset VSpace bigskip
15369 \begin_inset space ~
15373 \begin_inset CommandInset ref
15375 reference "tab:Example-booktabs-table"
15379 was created using the commands
15382 \begin_layout Standard
15392 \begin_layout Standard
15393 at the beginning of the second row and
15396 \begin_layout Standard
15401 cmidrule(l{10pt}){1-1}
15404 \begin_layout Standard
15408 \begin_layout Standard
15409 \begin_inset VSpace bigskip
15415 \begin_layout Standard
15416 You might want to have overlapping
15423 \begin_inset space ~
15427 \begin_inset CommandInset ref
15429 reference "tab:Special-booktabs-table"
15434 This can be achieved with the TeX-Code command
15437 \begin_layout Standard
15445 \begin_layout Standard
15446 The command that was used for the second row of Table
15447 \begin_inset space ~
15451 \begin_inset CommandInset ref
15453 reference "tab:Special-booktabs-table"
15460 \begin_layout Standard
15474 \begin_layout Standard
15475 The command for the sixth row is
15478 \begin_layout Standard
15490 \begin_layout Standard
15491 \begin_inset VSpace bigskip
15497 \begin_layout Standard
15498 If you are in any way not satisfied with the border line spacing, you can
15499 use the following command to produce lines that span over all table columns
15504 \begin_layout Standard
15509 specialrule{width}{space above}{space below}
15512 \begin_layout Standard
15513 For more information about these features, refer to the manual of the LaTeX-pack
15519 \begin_inset CommandInset citation
15526 \begin_inset Index idx
15529 \begin_layout Plain Layout
15530 LaTeX-packages ! booktabs
15538 \begin_layout Standard
15539 \begin_inset Float table
15545 \begin_layout Plain Layout
15546 \begin_inset Caption Standard
15548 \begin_layout Plain Layout
15549 \begin_inset CommandInset label
15551 name "tab:Special-booktabs-table"
15555 Special booktabs-table
15563 \begin_layout Plain Layout
15565 \begin_inset Tabular
15566 <lyxtabular version="3" rows="8" columns="4">
15567 <features rotate="0" booktabs="true" tabularvalignment="middle">
15568 <column alignment="center" valignment="top" width="0">
15569 <column alignment="center" valignment="top" width="0">
15570 <column alignment="center" valignment="top" width="0">
15571 <column alignment="center" valignment="top" width="0">
15573 <cell alignment="center" valignment="top" topline="true" usebox="none">
15576 \begin_layout Plain Layout
15582 <cell alignment="center" valignment="top" topline="true" usebox="none">
15585 \begin_layout Plain Layout
15587 \begin_inset space \thinspace{}
15595 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15598 \begin_layout Plain Layout
15600 \begin_inset space \thinspace{}
15608 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15611 \begin_layout Plain Layout
15619 <cell alignment="center" valignment="top" usebox="none">
15622 \begin_layout Plain Layout
15626 \begin_layout Plain Layout
15639 \begin_layout Plain Layout
15652 \begin_layout Plain Layout
15665 \begin_layout Plain Layout
15674 Detector thickness in µm
15679 <cell alignment="center" valignment="top" usebox="none">
15682 \begin_layout Plain Layout
15688 <cell alignment="center" valignment="top" usebox="none">
15691 \begin_layout Plain Layout
15697 <cell alignment="center" valignment="top" usebox="none">
15700 \begin_layout Plain Layout
15708 <cell alignment="center" valignment="top" topline="true" usebox="none">
15711 \begin_layout Plain Layout
15717 <cell alignment="center" valignment="top" topline="true" usebox="none">
15720 \begin_layout Plain Layout
15726 <cell alignment="center" valignment="top" topline="true" usebox="none">
15729 \begin_layout Plain Layout
15735 <cell alignment="center" valignment="top" topline="true" usebox="none">
15738 \begin_layout Plain Layout
15745 <row topspace="default">
15746 <cell alignment="center" valignment="top" usebox="none">
15749 \begin_layout Plain Layout
15750 Spatial resolution in µm
15755 <cell alignment="center" valignment="top" usebox="none">
15758 \begin_layout Plain Layout
15764 <cell alignment="center" valignment="top" usebox="none">
15767 \begin_layout Plain Layout
15773 <cell alignment="center" valignment="top" usebox="none">
15776 \begin_layout Plain Layout
15783 <row topspace="default">
15784 <cell alignment="center" valignment="top" usebox="none">
15787 \begin_layout Plain Layout
15789 \begin_inset Formula $f_{\mathrm{max}}$
15797 <cell alignment="center" valignment="top" usebox="none">
15800 \begin_layout Plain Layout
15806 <cell alignment="center" valignment="top" usebox="none">
15809 \begin_layout Plain Layout
15815 <cell alignment="center" valignment="top" usebox="none">
15818 \begin_layout Plain Layout
15826 <cell alignment="center" valignment="top" topline="true" usebox="none">
15829 \begin_layout Plain Layout
15833 \begin_layout Plain Layout
15846 \begin_layout Plain Layout
15855 LSF-spatial resolution
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" topline="true" usebox="none">
15872 \begin_layout Plain Layout
15878 <cell alignment="center" valignment="top" topline="true" usebox="none">
15881 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" usebox="none">
15901 \begin_layout Plain Layout
15907 <cell alignment="center" valignment="top" usebox="none">
15910 \begin_layout Plain Layout
15916 <cell alignment="center" valignment="top" usebox="none">
15919 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15930 \begin_layout Plain Layout
15936 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15939 \begin_layout Plain Layout
15945 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15948 \begin_layout Plain Layout
15954 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15957 \begin_layout Plain Layout
15976 \begin_layout Section
15977 Vertical Table Alignment
15978 \begin_inset Index idx
15981 \begin_layout Plain Layout
15990 \begin_layout Standard
15991 To align tables vertically in a text line, the table must be inside a box.
15992 The box can then be vertically aligned as described in section
15993 \begin_inset space ~
15997 \begin_inset CommandInset ref
15999 reference "sec:Box-Dialog"
16006 \begin_layout Standard
16007 In the following example the tables are inside a minipage
16011 \begin_layout Plain Layout
16012 Minipages are described in section
16013 \begin_inset space ~
16017 \begin_inset CommandInset ref
16019 reference "sec:Minipages"
16028 box that has a width of 15
16029 \begin_inset space \thinspace{}
16035 \begin_layout Itemize
16037 \begin_inset Box Frameless
16047 height_special "totalheight"
16050 \begin_layout Plain Layout
16051 \begin_inset Tabular
16052 <lyxtabular version="3" rows="3" columns="3">
16053 <features rotate="0" tabularvalignment="middle">
16054 <column alignment="center" valignment="top" width="0">
16055 <column alignment="center" valignment="top" width="0">
16056 <column alignment="center" valignment="top" width="0">
16058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16061 \begin_layout Plain Layout
16067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16070 \begin_layout Plain Layout
16076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16079 \begin_layout Plain Layout
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16090 \begin_layout Plain Layout
16096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16099 \begin_layout Plain Layout
16105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16108 \begin_layout Plain Layout
16116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16119 \begin_layout Plain Layout
16125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16128 \begin_layout Plain Layout
16134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16137 \begin_layout Plain Layout
16157 \begin_layout Plain Layout
16169 \begin_inset Box Frameless
16179 height_special "totalheight"
16182 \begin_layout Plain Layout
16183 \begin_inset Tabular
16184 <lyxtabular version="3" rows="3" columns="3">
16185 <features rotate="0" tabularvalignment="middle">
16186 <column alignment="center" valignment="top" width="0">
16187 <column alignment="center" valignment="top" width="0">
16188 <column alignment="center" valignment="top" width="0">
16190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16193 \begin_layout Plain Layout
16199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16202 \begin_layout Plain Layout
16208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16211 \begin_layout Plain Layout
16219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16222 \begin_layout Plain Layout
16228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16231 \begin_layout Plain Layout
16237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16240 \begin_layout Plain Layout
16248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16251 \begin_layout Plain Layout
16257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16260 \begin_layout Plain Layout
16266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16269 \begin_layout Plain Layout
16289 \begin_layout Plain Layout
16299 \begin_layout Itemize
16301 \begin_inset Box Frameless
16311 height_special "totalheight"
16314 \begin_layout Plain Layout
16315 \begin_inset Tabular
16316 <lyxtabular version="3" rows="3" columns="3">
16317 <features rotate="0" tabularvalignment="middle">
16318 <column alignment="center" valignment="top" width="0">
16319 <column alignment="center" valignment="top" width="0">
16320 <column alignment="center" valignment="top" width="0">
16322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16325 \begin_layout Plain Layout
16331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16334 \begin_layout Plain Layout
16340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16343 \begin_layout Plain Layout
16351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16354 \begin_layout Plain Layout
16360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16363 \begin_layout Plain Layout
16369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16372 \begin_layout Plain Layout
16380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16383 \begin_layout Plain Layout
16389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16392 \begin_layout Plain Layout
16398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16401 \begin_layout Plain Layout
16420 \begin_layout Itemize
16422 \begin_inset Box Frameless
16432 height_special "totalheight"
16435 \begin_layout Plain Layout
16436 \begin_inset Tabular
16437 <lyxtabular version="3" rows="3" columns="3">
16438 <features rotate="0" tabularvalignment="middle">
16439 <column alignment="center" valignment="top" width="0">
16440 <column alignment="center" valignment="top" width="0">
16441 <column alignment="center" valignment="top" width="0">
16443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16446 \begin_layout Plain Layout
16452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16455 \begin_layout Plain Layout
16461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16464 \begin_layout Plain Layout
16472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16475 \begin_layout Plain Layout
16481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16484 \begin_layout Plain Layout
16490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16493 \begin_layout Plain Layout
16501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16504 \begin_layout Plain Layout
16510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16513 \begin_layout Plain Layout
16519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16522 \begin_layout Plain Layout
16542 \begin_layout Plain Layout
16554 \begin_inset Box Frameless
16564 height_special "totalheight"
16567 \begin_layout Plain Layout
16568 \begin_inset Tabular
16569 <lyxtabular version="3" rows="3" columns="3">
16570 <features rotate="0" tabularvalignment="middle">
16571 <column alignment="center" valignment="top" width="0">
16572 <column alignment="center" valignment="top" width="0">
16573 <column alignment="center" valignment="top" width="0">
16575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16578 \begin_layout Plain Layout
16584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16587 \begin_layout Plain Layout
16593 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16607 \begin_layout Plain Layout
16613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16616 \begin_layout Plain Layout
16622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16625 \begin_layout Plain Layout
16633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16636 \begin_layout Plain Layout
16642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16645 \begin_layout Plain Layout
16651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16654 \begin_layout Plain Layout
16674 \begin_layout Plain Layout
16684 \begin_layout Standard
16685 As you will see, the content of the first and last table row is not correctly
16687 To get this alignment, the minipage box must be set into a raisebox
16691 \begin_layout Plain Layout
16692 Raiseboxes are described in section
16693 \begin_inset space ~
16697 \begin_inset CommandInset ref
16699 reference "sub:Vertical-Alignment"
16709 In the example above the second table in the first item is aligned using
16710 the TeX-Code-command
16713 \begin_layout Standard
16723 \begin_layout Standard
16725 After the box the closing brace
16729 is inserted as TeX-Code.
16730 For the second table in the last item the command
16733 \begin_layout Standard
16743 \begin_layout Standard
16747 \begin_layout Standard
16748 \begin_inset Note Greyedout
16751 \begin_layout Plain Layout
16756 The alignment of the table row content to the surrounding text line is
16758 The required value for the
16764 command for this alignment depends on the document font, the font size,
16765 and the table line thickness.
16773 \begin_layout Section
16775 \begin_inset CommandInset label
16777 name "sec:Colored-Tables"
16782 \begin_inset Index idx
16785 \begin_layout Plain Layout
16794 \begin_layout Subsection
16796 \begin_inset Index idx
16799 \begin_layout Plain Layout
16800 Table Color ! for Cells
16806 \begin_inset Index idx
16809 \begin_layout Plain Layout
16810 Color ! for Table Cells
16818 \begin_layout Standard
16819 \begin_inset Float table
16825 \begin_layout Plain Layout
16826 \begin_inset Caption Standard
16828 \begin_layout Plain Layout
16829 \begin_inset CommandInset label
16831 name "tab:Table-colored-without"
16835 Table colored without using the package
16840 \begin_inset Argument 1
16843 \begin_layout Plain Layout
16844 Table without colortbl
16857 \begin_layout Plain Layout
16859 \begin_inset Tabular
16860 <lyxtabular version="3" rows="3" columns="3">
16861 <features rotate="0" tabularvalignment="middle">
16862 <column alignment="center" valignment="top" width="0">
16863 <column alignment="center" valignment="top" width="0">
16864 <column alignment="center" valignment="top" width="0">
16866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16869 \begin_layout Plain Layout
16877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16880 \begin_layout Plain Layout
16888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16891 \begin_layout Plain Layout
16901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16904 \begin_layout Plain Layout
16912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16915 \begin_layout Plain Layout
16923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16926 \begin_layout Plain Layout
16936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16939 \begin_layout Plain Layout
16947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16950 \begin_layout Plain Layout
16958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16961 \begin_layout Plain Layout
16982 \begin_layout Standard
16983 If you only need colored text, mark the cells and choose a color in the
16987 \begin_inset space ~
16992 dialog (toolbar button
16995 arg "dialog-show character"
16999 This was used to create Table
17000 \begin_inset space ~
17004 \begin_inset CommandInset ref
17006 reference "tab:Table-colored-without"
17011 In any other case you have to use the LaTeX-package
17016 \begin_inset Index idx
17019 \begin_layout Plain Layout
17020 LaTeX-packages ! colortbl
17028 \begin_layout Standard
17032 \begin_layout Plain Layout
17042 \begin_inset Note Note
17045 \begin_layout Plain Layout
17046 The following section part will only be displayed when the LaTeX-package
17059 \begin_layout Standard
17060 To create colored tables,
17064 must be loaded in the preamble with the line
17067 \begin_layout Standard
17072 usepackage{colortbl}
17075 \begin_layout Standard
17076 The color of a column is adjusted with the command
17079 \begin_layout Standard
17084 columncolor{name of color}
17087 \begin_layout Standard
17093 More about the command
17097 is contained in section
17098 \begin_inset space ~
17102 \begin_inset CommandInset ref
17104 reference "sub:Multicolumn-Calculations"
17111 \begin_layout Standard
17112 The following color names are predefined:
17115 \begin_layout Standard
17149 \begin_layout Standard
17150 \begin_inset VSpace medskip
17156 \begin_layout Standard
17157 If you add the options
17160 \begin_layout Standard
17163 usenames,dvipsnames
17166 \begin_layout Standard
17167 to the document class options in the document settings, you can additionally
17169 \begin_inset space ~
17173 These colors are listed in appendix
17174 \begin_inset space ~
17178 \begin_inset CommandInset ref
17180 reference "chap:List-of-dvips-colornames"
17185 One of these colors,
17189 , is used as example in Table
17190 \begin_inset space ~
17194 \begin_inset CommandInset ref
17196 reference "tab:Table-colored-using"
17203 \begin_layout Standard
17204 \begin_inset VSpace medskip
17210 \begin_layout Standard
17211 You can also define your own color with the command
17214 \begin_layout Standard
17219 definecolor{color name}{color model}{color values}
17222 \begin_layout Standard
17223 The color model can be
17226 \begin_layout Labeling
17227 \labelwidthstring 00.00.0000
17228 cmyk: cyan, magenta, yellow, black
17231 \begin_layout Labeling
17232 \labelwidthstring 00.00.0000
17233 rgb: red, green blue
17236 \begin_layout Labeling
17237 \labelwidthstring 00.00.0000
17241 \begin_layout Standard
17242 and the color values are comma separated numbers between 0 and 1 describing
17243 the factor for the corresponding color of the color model.
17246 \begin_layout Standard
17248 \begin_inset space \thinspace{}
17252 \begin_inset space \space{}
17259 " in the preamble with
17262 \begin_layout Standard
17267 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17270 \begin_layout Standard
17278 \begin_layout Standard
17283 definecolor{lightgray}{gray}{0.8}
17286 \begin_layout Standard
17287 \begin_inset VSpace medskip
17293 \begin_layout Standard
17294 Lines are colored with the command
17297 \begin_layout Standard
17302 rowcolor{name of color}
17305 \begin_layout Standard
17306 and cells are colored with the command
17309 \begin_layout Standard
17314 cellcolor{name of color}
17317 \begin_layout Standard
17318 Both commands are inserted at the beginning of a cell as TeX-Code.
17321 \begin_layout Standard
17322 To color characters in the table, mark the cells and use the
17325 \begin_inset space ~
17331 If a cell contains TeX-Code mark only the characters, otherwise the colored
17332 TeX-Code will cause LaTeX-errors.
17335 \begin_layout Standard
17336 \begin_inset Note Greyedout
17339 \begin_layout Plain Layout
17344 Not all DVI-viewers are able to display self-defined colors.
17352 \begin_layout Standard
17353 \begin_inset VSpace bigskip
17359 \begin_layout Standard
17361 \begin_inset space ~
17365 \begin_inset CommandInset ref
17367 reference "tab:Table-colored-using"
17371 do the following: The color of the first column should be
17379 \begin_layout Standard
17384 columncolor{darkgreen}
17389 \begin_layout Standard
17390 as LaTeX-argument for this column.
17391 The first row should be light blue, therefore the TeX-Code command
17394 \begin_layout Standard
17402 \begin_layout Standard
17403 is inserted to the first cell of this row.
17404 Note that this overwrites the column color for the first cell.
17405 The last cell of the last row is colored maroon by inserting the TeX-Code
17409 \begin_layout Standard
17417 \begin_layout Standard
17418 The characters could now be colored using the menu
17420 Edit\SpecialChar \menuseparator
17422 \begin_inset space ~
17430 \begin_layout Standard
17431 \begin_inset Float table
17437 \begin_layout Plain Layout
17438 \begin_inset Caption Standard
17440 \begin_layout Plain Layout
17441 \begin_inset CommandInset label
17443 name "tab:Table-colored-using"
17447 Table colored using the package
17452 \begin_inset Argument 1
17455 \begin_layout Plain Layout
17456 Table with colortbl
17469 \begin_layout Plain Layout
17471 \begin_inset Tabular
17472 <lyxtabular version="3" rows="3" columns="3">
17473 <features rotate="0" tabularvalignment="middle">
17474 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
17475 <column alignment="center" valignment="top" width="0">
17476 <column alignment="center" valignment="top" width="0">
17478 <cell alignment="center" valignment="top" usebox="none">
17481 \begin_layout Plain Layout
17485 \begin_layout Plain Layout
17501 <cell alignment="center" valignment="top" usebox="none">
17504 \begin_layout Plain Layout
17512 <cell alignment="center" valignment="top" usebox="none">
17515 \begin_layout Plain Layout
17525 <cell alignment="center" valignment="top" usebox="none">
17528 \begin_layout Plain Layout
17536 <cell alignment="center" valignment="top" usebox="none">
17539 \begin_layout Plain Layout
17547 <cell alignment="center" valignment="top" usebox="none">
17550 \begin_layout Plain Layout
17560 <cell alignment="center" valignment="top" usebox="none">
17563 \begin_layout Plain Layout
17571 <cell alignment="center" valignment="top" usebox="none">
17574 \begin_layout Plain Layout
17582 <cell alignment="center" valignment="top" usebox="none">
17585 \begin_layout Plain Layout
17589 \begin_layout Plain Layout
17618 \begin_layout Standard
17622 \begin_layout Plain Layout
17632 \begin_inset Note Note
17635 \begin_layout Plain Layout
17636 The following will be displayed when the LaTeX-package
17648 \begin_layout Standard
17649 You need to install the package
17653 to see the content of this section in the output.
17656 \begin_layout Standard
17660 \begin_layout Plain Layout
17672 \begin_layout Subsection
17674 \begin_inset Index idx
17677 \begin_layout Plain Layout
17678 Table Color ! for Rows
17684 \begin_inset Index idx
17687 \begin_layout Plain Layout
17688 Color ! for Table Rows
17696 \begin_layout Standard
17697 In case every second table row needs to be colored there is an alternative
17698 to the method described in the previous section: One loads the package
17704 \begin_inset Index idx
17707 \begin_layout Plain Layout
17708 LaTeX-packages ! xcolor
17712 \begin_layout Plain Layout
17726 in the document preamble with the command
17729 \begin_layout Standard
17734 usepackage[table]{xcolor}
17737 \begin_layout Standard
17742 automatically loads also the package
17747 \begin_inset Index idx
17750 \begin_layout Plain Layout
17751 LaTeX-packages ! colortbl
17760 must be installed in your LaTeX-distribution, otherwise you get LaTeX-errors.
17763 \begin_layout Standard
17767 \begin_layout Plain Layout
17777 \begin_inset Note Note
17780 \begin_layout Plain Layout
17781 The following section part will only be displayed when the LaTeX-package
17794 \begin_layout Standard
17795 The table rows are colored with the command
17798 \begin_layout Standard
17803 rowcolors[commands]{row number}{odd row color}{even row color}
17806 \begin_layout Standard
17807 that is either inserted in the document preamble or as TeX-Code before the
17808 first table to be colored.
17810 \begin_inset space ~
17813 number is the number of the first row which should be colored according
17814 to the odd row color.
17815 commands can be additional commands that are executed before every table
17817 So for example the command
17820 \begin_layout Standard
17825 rowcolors{1}{white}{lightgray}
17828 \begin_layout Standard
17829 leads to the coloring scheme of Table
17830 \begin_inset space ~
17834 \begin_inset CommandInset ref
17836 reference "tab:Table-rowcolors"
17844 \begin_layout Standard
17851 hline]{1}{lightgray}{cyan}
17854 \begin_layout Standard
17855 leads to the coloring scheme of Table
17856 \begin_inset space ~
17860 \begin_inset CommandInset ref
17862 reference "tab:Table-rowcolors-2"
17868 \begin_inset space ~
17872 \begin_inset space ~
17876 \begin_inset space ~
17880 \begin_inset space ~
17883 color are left empty, no color will be used so that the command
17886 \begin_layout Standard
17894 \begin_layout Standard
17895 deletes all colors.
17902 affects all tables following that command.
17905 \begin_layout Standard
17909 \begin_layout Plain Layout
17913 rowcolors{1}{white}{lightgray}
17921 \begin_layout Standard
17922 \begin_inset Float table
17928 \begin_layout Plain Layout
17929 \begin_inset Caption Standard
17931 \begin_layout Plain Layout
17932 \begin_inset CommandInset label
17934 name "tab:Table-rowcolors"
17938 Table where every second row is colored light gray.
17946 \begin_layout Plain Layout
17948 \begin_inset Tabular
17949 <lyxtabular version="3" rows="4" columns="3">
17950 <features rotate="0" tabularvalignment="middle">
17951 <column alignment="center" valignment="top" width="0">
17952 <column alignment="center" valignment="top" width="0pt">
17953 <column alignment="center" valignment="top" width="0pt">
17955 <cell alignment="center" valignment="top" usebox="none">
17958 \begin_layout Plain Layout
17964 <cell alignment="center" valignment="top" usebox="none">
17967 \begin_layout Plain Layout
17973 <cell alignment="center" valignment="top" usebox="none">
17976 \begin_layout Plain Layout
17984 <cell alignment="center" valignment="top" usebox="none">
17987 \begin_layout Plain Layout
17993 <cell alignment="center" valignment="top" usebox="none">
17996 \begin_layout Plain Layout
18002 <cell alignment="center" valignment="top" usebox="none">
18005 \begin_layout Plain Layout
18013 <cell alignment="center" valignment="top" usebox="none">
18016 \begin_layout Plain Layout
18022 <cell alignment="center" valignment="top" usebox="none">
18025 \begin_layout Plain Layout
18031 <cell alignment="center" valignment="top" usebox="none">
18034 \begin_layout Plain Layout
18042 <cell alignment="center" valignment="top" usebox="none">
18045 \begin_layout Plain Layout
18051 <cell alignment="center" valignment="top" usebox="none">
18054 \begin_layout Plain Layout
18060 <cell alignment="center" valignment="top" usebox="none">
18063 \begin_layout Plain Layout
18082 \begin_layout Standard
18086 \begin_layout Plain Layout
18092 hline]{1}{lightgray}{cyan}
18100 \begin_layout Standard
18101 \begin_inset Float table
18107 \begin_layout Plain Layout
18108 \begin_inset Caption Standard
18110 \begin_layout Plain Layout
18111 \begin_inset CommandInset label
18113 name "tab:Table-rowcolors-2"
18117 Table where every second row is colored cyan and at which there is a line
18126 \begin_layout Plain Layout
18128 \begin_inset Tabular
18129 <lyxtabular version="3" rows="4" columns="3">
18130 <features rotate="0" tabularvalignment="middle">
18131 <column alignment="center" valignment="top" width="0">
18132 <column alignment="center" valignment="top" width="0">
18133 <column alignment="center" valignment="top" width="0pt">
18135 <cell alignment="center" valignment="top" usebox="none">
18138 \begin_layout Plain Layout
18144 <cell alignment="center" valignment="top" usebox="none">
18147 \begin_layout Plain Layout
18153 <cell alignment="center" valignment="top" usebox="none">
18156 \begin_layout Plain Layout
18164 <cell alignment="center" valignment="top" usebox="none">
18167 \begin_layout Plain Layout
18173 <cell alignment="center" valignment="top" usebox="none">
18176 \begin_layout Plain Layout
18182 <cell alignment="center" valignment="top" usebox="none">
18185 \begin_layout Plain Layout
18193 <cell alignment="center" valignment="top" usebox="none">
18196 \begin_layout Plain Layout
18202 <cell alignment="center" valignment="top" usebox="none">
18205 \begin_layout Plain Layout
18211 <cell alignment="center" valignment="top" usebox="none">
18214 \begin_layout Plain Layout
18222 <cell alignment="center" valignment="top" usebox="none">
18225 \begin_layout Plain Layout
18231 <cell alignment="center" valignment="top" usebox="none">
18234 \begin_layout Plain Layout
18240 <cell alignment="center" valignment="top" usebox="none">
18243 \begin_layout Plain Layout
18262 \begin_layout Standard
18266 \begin_layout Plain Layout
18276 \begin_inset Note Note
18279 \begin_layout Plain Layout
18280 turns off the row coloring
18288 \begin_layout Standard
18292 \begin_layout Plain Layout
18302 \begin_inset Note Note
18305 \begin_layout Plain Layout
18306 The following will be displayed when the LaTeX-package
18318 \begin_layout Standard
18319 You need to install the package
18323 to see the content of this section in the output.
18326 \begin_layout Standard
18330 \begin_layout Plain Layout
18342 \begin_layout Subsection
18344 \begin_inset Index idx
18347 \begin_layout Plain Layout
18348 Table Color ! for Lines
18354 \begin_inset Index idx
18357 \begin_layout Plain Layout
18358 Color ! for Table Lines
18366 \begin_layout Standard
18367 As described in section
18368 \begin_inset space ~
18372 \begin_inset CommandInset ref
18374 reference "sub:Line-Thickness"
18378 , the line thickness for all lines in a table can be adjusted with the length
18387 \begin_inset space \thinspace{}
18390 pt for all tables of this section.
18394 \begin_layout Plain Layout
18400 arrayrulewidth}{1.5pt}
18408 \begin_layout Standard
18409 To color vertical lines for example with green, create the following column
18410 format in the document preamble, according to the description in section
18411 \begin_inset space ~
18415 \begin_inset CommandInset ref
18417 reference "sub:Customized-Format"
18424 \begin_layout Standard
18429 newcolumntype{W}{!{
18436 \begin_layout Standard
18438 \begin_inset space ~
18442 \begin_inset CommandInset ref
18444 reference "tab:Table-with-vertical-colored"
18452 was used for the last column and
18456 for the other columns.
18459 \begin_layout Standard
18460 If you want to have several colors, define more column formats.
18463 \begin_layout Standard
18464 \begin_inset Float table
18470 \begin_layout Plain Layout
18471 \begin_inset Caption Standard
18473 \begin_layout Plain Layout
18474 \begin_inset CommandInset label
18476 name "tab:Table-with-vertical-colored"
18480 Table with colored vertical lines
18488 \begin_layout Plain Layout
18490 \begin_inset Tabular
18491 <lyxtabular version="3" rows="3" columns="3">
18492 <features rotate="0" tabularvalignment="middle">
18493 <column alignment="center" valignment="top" width="0" special="Wc">
18494 <column alignment="center" valignment="top" width="0" special="Wc">
18495 <column alignment="center" valignment="top" width="0" special="WcW">
18497 <cell alignment="center" valignment="top" topline="true" usebox="none">
18500 \begin_layout Plain Layout
18506 <cell alignment="center" valignment="top" topline="true" usebox="none">
18509 \begin_layout Plain Layout
18515 <cell alignment="center" valignment="top" topline="true" usebox="none">
18518 \begin_layout Plain Layout
18526 <cell alignment="center" valignment="top" topline="true" usebox="none">
18529 \begin_layout Plain Layout
18535 <cell alignment="center" valignment="top" topline="true" usebox="none">
18538 \begin_layout Plain Layout
18544 <cell alignment="center" valignment="top" topline="true" usebox="none">
18547 \begin_layout Plain Layout
18555 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18558 \begin_layout Plain Layout
18564 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18567 \begin_layout Plain Layout
18573 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18576 \begin_layout Plain Layout
18595 \begin_layout Standard
18596 \begin_inset VSpace bigskip
18599 To color horizontal lines for example with red, as in Table
18600 \begin_inset space ~
18604 \begin_inset CommandInset ref
18606 reference "tab:Table-with-horizontal-colored"
18610 , insert these commands in TeX-Code before the table or table float:
18613 \begin_layout Standard
18623 \begin_inset Newline newline
18631 \begin_inset Newline newline
18635 \begin_inset Phantom HPhantom
18638 \begin_layout Plain Layout
18641 \begin_inset space ~
18651 arrayrulecolor{red}
18655 arrayrulecolor{black}}
18658 \begin_layout Standard
18662 \begin_layout Plain Layout
18673 \begin_layout Plain Layout
18682 \begin_layout Plain Layout
18686 arrayrulecolor{red}
18690 arrayrulecolor{black}}
18696 \begin_inset Float table
18702 \begin_layout Plain Layout
18703 \begin_inset Caption Standard
18705 \begin_layout Plain Layout
18706 \begin_inset CommandInset label
18708 name "tab:Table-with-horizontal-colored"
18712 Table with colored horizontal lines
18720 \begin_layout Plain Layout
18722 \begin_inset Tabular
18723 <lyxtabular version="3" rows="3" columns="3">
18724 <features rotate="0" tabularvalignment="middle">
18725 <column alignment="center" valignment="top" width="0">
18726 <column alignment="center" valignment="top" width="0">
18727 <column alignment="center" valignment="top" width="0">
18729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18732 \begin_layout Plain Layout
18738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18741 \begin_layout Plain Layout
18747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18750 \begin_layout Plain Layout
18758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18761 \begin_layout Plain Layout
18767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18770 \begin_layout Plain Layout
18776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18779 \begin_layout Plain Layout
18787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18790 \begin_layout Plain Layout
18796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18799 \begin_layout Plain Layout
18805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18808 \begin_layout Plain Layout
18827 \begin_layout Standard
18828 To return to the default line color black, insert this command in TeX-Code
18829 after the table or table float:
18832 \begin_layout Standard
18844 \begin_layout Standard
18846 \begin_inset space ~
18850 \begin_inset CommandInset ref
18852 reference "tab:Table-with-colored"
18856 is an example with colored vertical and horizontal lines.
18859 \begin_layout Standard
18860 \begin_inset Float table
18866 \begin_layout Plain Layout
18867 \begin_inset Caption Standard
18869 \begin_layout Plain Layout
18870 \begin_inset CommandInset label
18872 name "tab:Table-with-colored"
18876 Table with colored lines
18884 \begin_layout Plain Layout
18886 \begin_inset Tabular
18887 <lyxtabular version="3" rows="3" columns="3">
18888 <features rotate="0" tabularvalignment="middle">
18889 <column alignment="center" valignment="top" width="0" special="Wc">
18890 <column alignment="center" valignment="top" width="0" special="Wc">
18891 <column alignment="center" valignment="top" width="0" special="WcW">
18893 <cell alignment="center" valignment="top" topline="true" usebox="none">
18896 \begin_layout Plain Layout
18902 <cell alignment="center" valignment="top" topline="true" usebox="none">
18905 \begin_layout Plain Layout
18911 <cell alignment="center" valignment="top" topline="true" usebox="none">
18914 \begin_layout Plain Layout
18922 <cell alignment="center" valignment="top" topline="true" usebox="none">
18925 \begin_layout Plain Layout
18931 <cell alignment="center" valignment="top" topline="true" usebox="none">
18934 \begin_layout Plain Layout
18940 <cell alignment="center" valignment="top" topline="true" usebox="none">
18943 \begin_layout Plain Layout
18950 <row topspace="default">
18951 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18954 \begin_layout Plain Layout
18960 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18963 \begin_layout Plain Layout
18969 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18972 \begin_layout Plain Layout
18991 \begin_layout Standard
18995 \begin_layout Plain Layout
19011 \begin_layout Standard
19015 \begin_layout Plain Layout
19021 arrayrulewidth}{0.4pt}
19029 \begin_layout Section
19030 Rotated Table Cells
19031 \begin_inset CommandInset label
19033 name "sec:Rotated-Table-Cells"
19038 \begin_inset Index idx
19041 \begin_layout Plain Layout
19042 Table ! Rotated Cells
19048 \begin_inset Index idx
19051 \begin_layout Plain Layout
19060 \begin_layout Standard
19061 \begin_inset Note Greyedout
19064 \begin_layout Plain Layout
19069 Not all DVI-viewers are able to display rotations.
19077 \begin_layout Standard
19078 Currently LyX only offers to rotate table cells by 90
19079 \begin_inset space \thinspace{}
19082 ° counter-clockwise.
19083 To rotate cells by an angle of your choice, you have to add this to the
19087 \begin_layout Standard
19092 @ifundefined{turnbox}{
19094 usepackage{rotating}}{}
19097 \begin_layout Standard
19098 In the table cell that should be rotated, add at the beginning this command
19102 \begin_layout Standard
19110 \begin_layout Standard
19111 where angle is the rotation angle in °.
19112 At the end of the cell the command
19115 \begin_layout Standard
19123 \begin_layout Standard
19124 is inserted as TeX-code.
19127 \begin_layout Standard
19129 \begin_inset space ~
19133 \begin_inset CommandInset ref
19135 reference "tab:Table-with-rotated-multi"
19139 is an example where 3
19140 \begin_inset space ~
19143 cells were rotated by 45
19144 \begin_inset space \thinspace{}
19150 \begin_layout Standard
19151 \begin_inset Float table
19156 \begin_layout Plain Layout
19157 \begin_inset Caption Standard
19159 \begin_layout Plain Layout
19160 \begin_inset CommandInset label
19162 name "tab:Table-with-rotated"
19166 Table with rotated cells in the first row.
19174 \begin_layout Plain Layout
19177 \begin_inset Tabular
19178 <lyxtabular version="3" rows="2" columns="3">
19179 <features rotate="0" tabularvalignment="middle">
19180 <column alignment="center" valignment="top" width="0">
19181 <column alignment="center" valignment="top" width="0pt">
19182 <column alignment="center" valignment="top" width="0">
19184 <cell alignment="center" valignment="top" usebox="none">
19187 \begin_layout Plain Layout
19191 \begin_layout Plain Layout
19204 \begin_layout Plain Layout
19218 <cell alignment="center" valignment="top" usebox="none">
19221 \begin_layout Plain Layout
19225 \begin_layout Plain Layout
19238 \begin_layout Plain Layout
19252 <cell alignment="center" valignment="top" usebox="none">
19255 \begin_layout Plain Layout
19259 \begin_layout Plain Layout
19272 \begin_layout Plain Layout
19288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19291 \begin_layout Plain Layout
19297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19300 \begin_layout Plain Layout
19306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19309 \begin_layout Plain Layout
19328 \begin_layout Standard
19329 \begin_inset Note Greyedout
19332 \begin_layout Plain Layout
19337 Line breaks (shortcut
19340 arg "newline-insert newline"
19343 ) are not allowed in rotated cells.
19351 \begin_layout Standard
19352 If you want to rotate table cells containing line breaks, you have to put
19353 the cell content into a minipage or a parbox.
19357 \begin_layout Plain Layout
19358 For more about these boxes see sec.
19359 \begin_inset space \thinspace{}
19363 \begin_inset CommandInset ref
19365 reference "sec:Minipages"
19370 \begin_inset CommandInset ref
19372 reference "sec:Parboxes"
19381 If you rotate this cell by 90
19382 \begin_inset space \thinspace{}
19385 ° the width of the box is the height of the cell.
19387 \begin_inset space ~
19391 \begin_inset CommandInset ref
19393 reference "tab:Table-with-rotated-multi"
19397 is an example for a rotated multiline cell where the box width was set
19399 \begin_inset space \thinspace{}
19405 \begin_layout Standard
19406 \begin_inset Float table
19411 \begin_layout Plain Layout
19412 \begin_inset Caption Standard
19414 \begin_layout Plain Layout
19415 \begin_inset CommandInset label
19417 name "tab:Table-with-rotated-multi"
19421 Table with rotated multiline cell.
19429 \begin_layout Plain Layout
19432 \begin_inset Tabular
19433 <lyxtabular version="3" rows="2" columns="3">
19434 <features rotate="0" tabularvalignment="middle">
19435 <column alignment="center" valignment="top" width="0">
19436 <column alignment="center" valignment="top" width="0pt">
19437 <column alignment="center" valignment="top" width="0">
19439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19442 \begin_layout Plain Layout
19448 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19451 \begin_layout Plain Layout
19452 \begin_inset Box Frameless
19462 height_special "totalheight"
19465 \begin_layout Plain Layout
19467 \begin_inset Newline newline
19480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19483 \begin_layout Plain Layout
19491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19494 \begin_layout Plain Layout
19500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19503 \begin_layout Plain Layout
19509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19512 \begin_layout Plain Layout
19531 \begin_layout Section
19532 Table Width Calculation
19533 \begin_inset CommandInset label
19535 name "sec:Table-Width-Calculation"
19542 \begin_layout Standard
19543 For wide tables it is sometimes difficult to assure that the table does
19544 not protrude over the page margin.
19545 Setting a fixed width for every column of the table is the solution, but
19546 what amount of space is needed for each column?
19549 \begin_layout Standard
19551 \begin_inset Formula $W_{\mathrm{table}}$
19554 can be calculated: Every column has the width of the specified column width
19556 \begin_inset Formula $W_{\mathrm{column}}$
19559 (that the content of the column can consume) plus two times the separation
19560 between the column content and the column border (LaTeX length
19567 \begin_inset space \thinspace{}
19570 pt) plus the width of a border line (LaTeX length
19577 \begin_inset space \thinspace{}
19581 \begin_inset Formula $n$
19585 \begin_inset space ~
19588 columns have the same width, the table width is
19589 \begin_inset Formula
19591 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19599 \begin_layout Standard
19600 The available width for a table is the space between the page margins or
19601 the width of a text column (for a two-column document) (LaTeX length
19608 If all table columns should have the same width and
19609 \begin_inset Formula $W_{\mathrm{table}}$
19613 \begin_inset space \thinspace{}
19619 \begin_inset Formula $W_{\mathrm{column}}$
19622 can easily be calculated.
19625 \begin_layout Standard
19626 To be able to perform calculations you need to load the LaTeX-package
19631 \begin_inset Index idx
19634 \begin_layout Plain Layout
19635 LaTeX-packages ! calc
19640 in the document preamble.
19641 To set the width in the table dialog you have to use the field
19646 The command scheme for this field is the same that is explained in section
19647 \begin_inset space ~
19651 \begin_inset CommandInset ref
19653 reference "sub:Multicolumn-Calculations"
19659 \begin_inset space \thinspace{}
19662 columns with an uniform width and centered text, enter there for each column
19666 \begin_layout Standard
19673 columnwidth-62.4pt)/5}
19676 \begin_layout Standard
19678 \begin_inset space \thinspace{}
19681 columns where 2 should have 0.75
19682 \begin_inset space ~
19685 times the width than the 3 others, the calculation is
19686 \begin_inset Formula
19688 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19689 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19690 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19691 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19699 \begin_layout Standard
19700 In the table therefore the command
19703 \begin_layout Standard
19710 columnwidth-62.4pt)/
19715 \begin_layout Standard
19716 is used for the wider columns and
19719 \begin_layout Standard
19726 columnwidth-62.4pt)/
19733 \begin_layout Standard
19734 for the smaller ones:
19737 \begin_layout Standard
19738 \begin_inset Tabular
19739 <lyxtabular version="3" rows="2" columns="5">
19740 <features rotate="0" tabularvalignment="middle">
19741 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19742 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19743 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19744 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19745 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19750 \begin_layout Plain Layout
19756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19759 \begin_layout Plain Layout
19765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19768 \begin_layout Plain Layout
19774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19777 \begin_layout Plain Layout
19783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19786 \begin_layout Plain Layout
19794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19797 \begin_layout Plain Layout
19798 111111 1111111 111111 111111111 11111 11111 1111
19803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19806 \begin_layout Plain Layout
19812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19815 \begin_layout Plain Layout
19816 2222 22222 222222 222222222 2222222 22 22222
19821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19824 \begin_layout Plain Layout
19830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19833 \begin_layout Plain Layout
19834 333333 333333 333333 33333 3333333 333
19847 \begin_layout Section
19848 Table Customization
19849 \begin_inset Index idx
19852 \begin_layout Plain Layout
19853 Table Customization
19859 \begin_inset Index idx
19862 \begin_layout Plain Layout
19863 Table ! Customization
19871 \begin_layout Subsection
19873 \begin_inset CommandInset label
19875 name "sub:Row-Spacing"
19880 \begin_inset Index idx
19883 \begin_layout Plain Layout
19884 Table Customization ! Row Spacing
19892 \begin_layout Standard
19893 You can add vertical space to table rows in the
19897 tab of the table dialog.
19898 You find there three possibilities:
19901 \begin_layout Description
19903 \begin_inset space ~
19907 \begin_inset space ~
19910 row will add space above the characters of the table row.
19911 If the table is a formal table
19915 \begin_layout Plain Layout
19916 Formal tables are explained in section
19917 \begin_inset space ~
19921 \begin_inset CommandInset ref
19923 reference "sec:Formal-Tables"
19932 LyX will insert as default 0.5
19933 \begin_inset space \thinspace{}
19937 For normal tables the inserted space will unfortunately destroy the vertical
19938 table lines as in the following table:
19939 \begin_inset VSpace medskip
19943 \begin_inset Newline newline
19947 \begin_inset space \hspace*{}
19952 \begin_inset space \hfill{}
19956 \begin_inset Tabular
19957 <lyxtabular version="3" rows="3" columns="1">
19958 <features rotate="0" tabularvalignment="middle">
19959 <column alignment="center" valignment="top" width="0">
19961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19964 \begin_layout Plain Layout
19971 <row topspace="3mm">
19972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19975 \begin_layout Plain Layout
19977 \begin_inset space \thinspace{}
19980 mm space top of row
19987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19990 \begin_layout Plain Layout
20002 \begin_inset space \hfill{}
20006 \begin_inset space \hspace*{}
20011 \begin_inset VSpace medskip
20015 \begin_inset Newline newline
20018 So inserting space in the top of row for normal tables is only useful when
20019 you don't have vertical lines.
20022 \begin_layout Description
20024 \begin_inset space ~
20028 \begin_inset space ~
20031 row will add space below the characters of the table row.
20032 If the table is a formal table LyX will insert as default 0.5
20033 \begin_inset space \thinspace{}
20036 em space, for normal tables the default size is 2
20037 \begin_inset space \thinspace{}
20043 \begin_layout Description
20045 \begin_inset space ~
20048 rows adds space between the current and the following row.
20049 If the table is a formal table LyX will insert as default 0.5
20050 \begin_inset space \thinspace{}
20054 For normal tables the inserted space will unfortunately destroy the vertical
20055 table lines as in the following table:
20056 \begin_inset VSpace medskip
20060 \begin_inset Newline newline
20064 \begin_inset space \hspace*{}
20069 \begin_inset space \hfill{}
20073 \begin_inset Tabular
20074 <lyxtabular version="3" rows="3" columns="1">
20075 <features rotate="0" tabularvalignment="middle">
20076 <column alignment="center" valignment="top" width="0">
20078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20081 \begin_layout Plain Layout
20088 <row interlinespace="3mm">
20089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20092 \begin_layout Plain Layout
20093 \begin_inset Formula $\downarrow$
20097 \begin_inset space \thinspace{}
20100 mm space between row
20101 \begin_inset Formula $\downarrow$
20111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20114 \begin_layout Plain Layout
20115 \begin_inset Formula $\uparrow$
20119 \begin_inset space \thinspace{}
20122 mm space between row
20123 \begin_inset Formula $\uparrow$
20137 \begin_inset space \hfill{}
20141 \begin_inset space \hspace*{}
20146 \begin_inset VSpace medskip
20150 \begin_inset Newline newline
20153 So inserting space between rows for normal tables is only useful when you
20154 don't have vertical lines.
20157 \begin_layout Standard
20158 \begin_inset VSpace bigskip
20161 When you want to add extra height to all cells of all tables, you can do
20162 this with the following preamble lines:
20165 \begin_layout Standard
20170 @ifundefined{extrarowheight}
20171 \begin_inset Newline newline
20175 \begin_inset Phantom HPhantom
20178 \begin_layout Plain Layout
20181 \begin_inset space ~
20191 usepackage{array}}{}
20192 \begin_inset Newline newline
20199 extrarowheight}{height}
20202 \begin_layout Standard
20203 But this has the disadvantage that the cell texts are no longer exactly
20204 vertically centered.
20209 will be loaded automatically by LyX when you use self defined table formats.
20210 To avoid that it being loaded twice the command
20216 is used in the above command.)
20219 \begin_layout Standard
20220 If you are using font sizes larger than the normal size, the table borders
20221 are often too close to the letters.
20222 This can be corrected by inserting the command
20228 in TeX-Code at the beginning of a table row.
20230 \begin_inset space ~
20234 \begin_inset CommandInset ref
20236 reference "tab:Vertical-alignment-of"
20240 illustrates the effect.
20243 \begin_layout Standard
20245 \begin_inset Float table
20251 \begin_layout Plain Layout
20252 \begin_inset Caption Standard
20254 \begin_layout Plain Layout
20255 \begin_inset CommandInset label
20257 name "tab:Vertical-alignment-of"
20261 Vertical alignment of text with large font sizes.
20269 \begin_layout Plain Layout
20270 \begin_inset space \hfill{}
20274 \begin_inset Float table
20279 \begin_layout Plain Layout
20280 \begin_inset Caption Standard
20282 \begin_layout Plain Layout
20291 \begin_layout Plain Layout
20294 \begin_inset Tabular
20295 <lyxtabular version="3" rows="6" columns="1">
20296 <features rotate="0" tabularvalignment="middle">
20297 <column alignment="left" valignment="top" width="0">
20299 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20302 \begin_layout Plain Layout
20310 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20313 \begin_layout Plain Layout
20323 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20326 \begin_layout Plain Layout
20336 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20339 \begin_layout Plain Layout
20349 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20352 \begin_layout Plain Layout
20362 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20365 \begin_layout Plain Layout
20384 \begin_inset space \hfill{}
20388 \begin_inset Float table
20393 \begin_layout Plain Layout
20394 \begin_inset Caption Standard
20396 \begin_layout Plain Layout
20397 Table using the command
20411 \begin_layout Plain Layout
20414 \begin_inset Tabular
20415 <lyxtabular version="3" rows="6" columns="1">
20416 <features rotate="0" tabularvalignment="middle">
20417 <column alignment="left" valignment="top" width="0">
20419 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20422 \begin_layout Plain Layout
20430 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20433 \begin_layout Plain Layout
20439 \begin_layout Plain Layout
20455 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20458 \begin_layout Plain Layout
20464 \begin_layout Plain Layout
20480 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20483 \begin_layout Plain Layout
20489 \begin_layout Plain Layout
20505 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20508 \begin_layout Plain Layout
20514 \begin_layout Plain Layout
20530 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20533 \begin_layout Plain Layout
20539 \begin_layout Plain Layout
20566 \begin_inset space \hfill{}
20577 \begin_layout Subsection
20578 Special Cell Alignment
20579 \begin_inset CommandInset label
20581 name "sub:Special-Cell-Alignment"
20586 \begin_inset Index idx
20589 \begin_layout Plain Layout
20590 Table Customization ! Special Cell Alignment
20598 \begin_layout Standard
20599 Sometimes it looks better when the cell entries of a column are aligned
20600 with a special character, e.
20601 \begin_inset space \thinspace{}
20605 \begin_inset space \space{}
20608 with the decimal separator as in Table
20609 \begin_inset space ~
20613 \begin_inset CommandInset ref
20615 reference "tab:Table-cells-align"
20620 This alignment is achieved by setting the cursor into the column and then
20621 either pressing the toolbar button
20624 arg "inset-modify tabular align-decimal"
20627 or setting the alignment in the table settings to
20630 \begin_inset space ~
20634 \begin_inset space ~
20640 The alignment character can be a character of your choice and is specified
20641 in the table settings.
20644 \begin_layout Standard
20645 \begin_inset Float table
20651 \begin_layout Plain Layout
20652 \begin_inset Caption Standard
20654 \begin_layout Plain Layout
20655 \begin_inset CommandInset label
20657 name "tab:Table-cells-align"
20661 Table cells of a column aligned with the decimal separator.
20669 \begin_layout Plain Layout
20671 \begin_inset Tabular
20672 <lyxtabular version="3" rows="4" columns="1">
20673 <features rotate="0" booktabs="true" tabularvalignment="middle">
20674 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20679 \begin_layout Plain Layout
20687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20690 \begin_layout Plain Layout
20698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20701 \begin_layout Plain Layout
20709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20712 \begin_layout Plain Layout
20731 \begin_layout Standard
20732 \begin_inset Float table
20738 \begin_layout Plain Layout
20739 \begin_inset Caption Standard
20741 \begin_layout Plain Layout
20742 \begin_inset CommandInset label
20744 name "tab:Table-align-operator"
20748 Table cells of a column aligned with the operators.
20756 \begin_layout Plain Layout
20758 \begin_inset Tabular
20759 <lyxtabular version="3" rows="4" columns="2">
20760 <features rotate="0" booktabs="true" tabularvalignment="middle">
20761 <column alignment="right" valignment="top" width="0pt">
20762 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20764 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20767 \begin_layout Plain Layout
20773 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20776 \begin_layout Plain Layout
20784 <cell alignment="center" valignment="top" usebox="none">
20787 \begin_layout Plain Layout
20788 \begin_inset Formula $12\,+$
20796 <cell alignment="center" valignment="top" usebox="none">
20799 \begin_layout Plain Layout
20800 \begin_inset Formula $\,6$
20810 <cell alignment="center" valignment="top" usebox="none">
20813 \begin_layout Plain Layout
20814 \begin_inset Formula $0\,-$
20822 <cell alignment="center" valignment="top" usebox="none">
20825 \begin_layout Plain Layout
20826 \begin_inset Formula $\,68$
20836 <cell alignment="center" valignment="top" usebox="none">
20839 \begin_layout Plain Layout
20840 \begin_inset Formula $-123\,/$
20848 <cell alignment="center" valignment="top" usebox="none">
20851 \begin_layout Plain Layout
20852 \begin_inset Formula $\,0$
20873 \begin_layout Standard
20874 For alignments at characters in formulas this method does not work because
20875 the field to specify the alignment character does not allow formulas.
20876 In this case one need to use the method from Table
20877 \begin_inset space ~
20881 \begin_inset CommandInset ref
20883 reference "tab:Table-align-operator"
20888 This table was created with a 4×2 table.
20889 The heading is a centered multicolumn.
20890 The first column is right-aligned and contains the first part including
20892 The second column is left aligned and contains the rest.
20893 A small space was added at the beginning of each cell of the second column
20894 to get the space that is usually around operators.
20895 To omit the space that is normally between two table columns, the following
20896 LaTeX-argument was used for the second column:
20899 \begin_layout Standard
20905 \begin_layout Standard
20907 \begin_inset space ~
20911 \begin_inset CommandInset ref
20913 reference "tab:Several-table-cell"
20917 shows some example alignments.
20918 For the alignment with the relation sign, a small space was added like
20919 for the second column of Table
20920 \begin_inset space ~
20924 \begin_inset CommandInset ref
20926 reference "tab:Table-align-operator"
20933 \begin_layout Standard
20934 \begin_inset Float table
20940 \begin_layout Plain Layout
20941 \begin_inset Caption Standard
20943 \begin_layout Plain Layout
20944 \begin_inset CommandInset label
20946 name "tab:Several-table-cell"
20950 Several table cell alignments.
20958 \begin_layout Plain Layout
20960 \begin_inset Tabular
20961 <lyxtabular version="3" rows="4" columns="6">
20962 <features rotate="0" tabularvalignment="middle">
20963 <column alignment="right" valignment="top" width="0">
20964 <column alignment="left" valignment="top" width="0" special="@{}l">
20965 <column alignment="right" valignment="top" width="0">
20966 <column alignment="left" valignment="top" width="0" special="@{}l">
20967 <column alignment="right" valignment="top" width="0">
20968 <column alignment="left" valignment="top" width="0" special="@{}l">
20970 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20973 \begin_layout Plain Layout
20979 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20982 \begin_layout Plain Layout
20988 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20991 \begin_layout Plain Layout
20997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21000 \begin_layout Plain Layout
21006 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21009 \begin_layout Plain Layout
21015 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21018 \begin_layout Plain Layout
21026 <cell alignment="center" valignment="top" usebox="none">
21029 \begin_layout Plain Layout
21035 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21038 \begin_layout Plain Layout
21040 \begin_inset space \thinspace{}
21048 <cell alignment="center" valignment="top" usebox="none">
21051 \begin_layout Plain Layout
21052 \begin_inset Formula $10\cdot$
21060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21063 \begin_layout Plain Layout
21064 \begin_inset Formula $10^{\mbox{-}17}$
21072 <cell alignment="center" valignment="top" usebox="none">
21075 \begin_layout Plain Layout
21076 \begin_inset Formula $\Gamma(t)\propto$
21084 <cell alignment="center" valignment="top" usebox="none">
21087 \begin_layout Plain Layout
21088 \begin_inset Formula $\:\Upsilon(t)$
21098 <cell alignment="center" valignment="top" usebox="none">
21101 \begin_layout Plain Layout
21107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21110 \begin_layout Plain Layout
21112 \begin_inset space \thinspace{}
21120 <cell alignment="center" valignment="top" usebox="none">
21123 \begin_layout Plain Layout
21124 \begin_inset Formula $5.78\cdot$
21132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21135 \begin_layout Plain Layout
21136 \begin_inset Formula $10^{7}$
21144 <cell alignment="center" valignment="top" usebox="none">
21147 \begin_layout Plain Layout
21148 \begin_inset Formula $A\ne$
21156 <cell alignment="center" valignment="top" usebox="none">
21159 \begin_layout Plain Layout
21160 \begin_inset Formula $\: B_{\mathrm{red}}$
21170 <cell alignment="center" valignment="top" usebox="none">
21173 \begin_layout Plain Layout
21179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21182 \begin_layout Plain Layout
21184 \begin_inset space \thinspace{}
21192 <cell alignment="center" valignment="top" usebox="none">
21195 \begin_layout Plain Layout
21197 \begin_inset Formula $33.5\cdot$
21205 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21208 \begin_layout Plain Layout
21209 \begin_inset Formula $10^{4}$
21217 <cell alignment="center" valignment="top" usebox="none">
21220 \begin_layout Plain Layout
21221 \begin_inset Formula $\sin(\alpha)\ge$
21229 <cell alignment="center" valignment="top" usebox="none">
21232 \begin_layout Plain Layout
21233 \begin_inset Formula $\:\sin(\beta)$
21254 \begin_layout Subsection
21255 Customized Cell/Column Format
21256 \begin_inset CommandInset label
21258 name "sub:Customized-Format"
21263 \begin_inset Index idx
21266 \begin_layout Plain Layout
21267 Table Customization ! Cell/Column Format
21275 \begin_layout Standard
21276 Calculating the required width for normal columns as described in section
21277 \begin_inset space ~
21281 \begin_inset CommandInset ref
21283 reference "sec:Table-Width-Calculation"
21287 or for spanned columns as described in section
21288 \begin_inset space ~
21292 \begin_inset CommandInset ref
21294 reference "sub:Multicolumn-Calculations"
21298 is very annoying if you have several tables where a calculation is necessary.
21299 To make life easier, you can define a cell/column format in the preamble,
21300 that can be used in all tables of the document.
21301 The format is defined with the command
21304 \begin_layout Standard
21309 newcolumntype{name of format}[number of arguments]{commands}
21312 \begin_layout Standard
21313 The format name may only consist of one letter.
21338 are predefined and cannot be used.
21339 But all letters are allowed as capitals.
21342 \begin_layout Standard
21343 \begin_inset VSpace medskip
21349 \begin_layout Standard
21350 For vertically and horizontally centered multicolumn cells with a fixed
21351 width you can define the cell format
21354 \begin_layout Standard
21359 newcolumntype{M}[1]{>{
21366 \begin_layout Standard
21373 avoids the problem of hyphenating the first word, as described in section
21374 \begin_inset space ~
21378 \begin_inset CommandInset ref
21380 reference "sub:Multiple-Lines-in"
21385 Now you can simply enter
21388 \begin_layout Standard
21394 \begin_layout Standard
21399 in the table dialog to create a multicolumn.
21402 \begin_layout Standard
21403 \begin_inset VSpace bigskip
21409 \begin_layout Standard
21410 For cells spanned by a multicolumn cell, you can define the format
21413 \begin_layout Standard
21418 newcolumntype{S}[2]{>{
21423 \begin_inset Newline newline
21427 \begin_inset Phantom HPhantom
21430 \begin_layout Plain Layout
21444 arrayrulewidth)*(1-#2))/#2}}
21447 \begin_layout Standard
21448 This format uses equation
21449 \begin_inset CommandInset ref
21455 to calculate the required width so that each spanned cell has the same
21459 \begin_layout Standard
21463 \begin_layout Standard
21466 S{width of multicolumn cell}{number of spanned columns}
21469 \begin_layout Standard
21470 as LaTeX-argument of the column.
21473 \begin_layout Standard
21474 \begin_inset VSpace bigskip
21480 \begin_layout Standard
21481 For colored columns, you can define
21484 \begin_layout Standard
21489 newcolumntype{K}[1]{>{
21496 \begin_layout Standard
21498 \begin_inset Quotes eld
21502 \begin_inset Quotes erd
21505 at the end creates a column with a flexible width whose text is horizontally
21510 \begin_layout Standard
21516 \begin_layout Standard
21520 \begin_layout Standard
21521 \begin_inset VSpace bigskip
21527 \begin_layout Standard
21529 \begin_inset space ~
21533 \begin_inset CommandInset ref
21535 reference "tab:Table-using-user-defined"
21539 use the LaTeX-arguments
21542 \begin_layout Standard
21548 \begin_layout Standard
21549 for the first column and the multicolumn,
21552 \begin_layout Standard
21558 \begin_layout Standard
21559 for the last column, and
21562 \begin_layout Standard
21568 \begin_layout Standard
21569 for the cells in the second column.
21572 \begin_layout Standard
21573 \begin_inset Float table
21579 \begin_layout Plain Layout
21580 \begin_inset Caption Standard
21582 \begin_layout Plain Layout
21583 \begin_inset CommandInset label
21585 name "tab:Table-using-user-defined"
21589 Table using user-defined table formats
21597 \begin_layout Plain Layout
21599 \begin_inset Tabular
21600 <lyxtabular version="3" rows="3" columns="4">
21601 <features rotate="0" tabularvalignment="middle">
21602 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21603 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
21604 <column alignment="center" valignment="middle" width="0">
21605 <column alignment="center" valignment="middle" width="0" special="K{red}">
21607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21610 \begin_layout Plain Layout
21611 verylongtablecellword
21616 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21619 \begin_layout Plain Layout
21620 multiple lines multicolumn
21625 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21628 \begin_layout Plain Layout
21634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21637 \begin_layout Plain Layout
21645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21648 \begin_layout Plain Layout
21654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21657 \begin_layout Plain Layout
21663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21666 \begin_layout Plain Layout
21672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21675 \begin_layout Plain Layout
21683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21686 \begin_layout Plain Layout
21692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21695 \begin_layout Plain Layout
21701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21704 \begin_layout Plain Layout
21710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21713 \begin_layout Plain Layout
21732 \begin_layout Subsection
21734 \begin_inset CommandInset label
21736 name "sub:Line-Thickness"
21741 \begin_inset Index idx
21744 \begin_layout Plain Layout
21745 Table Customization ! Line Thickness
21753 \begin_layout Standard
21754 The line thickness for all lines in a table can be adjusted with the length
21762 To set for example a line thickness of 1.5
21763 \begin_inset space \thinspace{}
21767 \begin_inset space ~
21771 \begin_inset CommandInset ref
21773 reference "tab:Table-with-1.5"
21777 , insert the command
21780 \begin_layout Standard
21787 arrayrulewidth}{1.5pt}
21790 \begin_layout Standard
21791 in TeX-Code before the table or table float.
21792 The changed thickness is valid for all subsequent tables.
21793 To use the default value again, set
21800 \begin_inset space \thinspace{}
21803 pt in TeX-Code after the table or table float.
21806 \begin_layout Standard
21810 \begin_layout Plain Layout
21816 arrayrulewidth}{1.5pt}
21822 \begin_inset Float table
21827 \begin_layout Plain Layout
21828 \begin_inset Caption Standard
21830 \begin_layout Plain Layout
21831 \begin_inset CommandInset label
21833 name "tab:Table-with-1.5"
21838 \begin_inset space \thinspace{}
21849 \begin_layout Plain Layout
21851 \begin_inset Tabular
21852 <lyxtabular version="3" rows="3" columns="3">
21853 <features rotate="0" tabularvalignment="middle">
21854 <column alignment="center" valignment="top" width="0">
21855 <column alignment="center" valignment="top" width="0">
21856 <column alignment="center" valignment="top" width="0">
21858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21861 \begin_layout Plain Layout
21867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21870 \begin_layout Plain Layout
21876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21879 \begin_layout Plain Layout
21887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21890 \begin_layout Plain Layout
21896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21899 \begin_layout Plain Layout
21905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21908 \begin_layout Plain Layout
21916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21919 \begin_layout Plain Layout
21925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21928 \begin_layout Plain Layout
21934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21937 \begin_layout Plain Layout
21957 \begin_layout Plain Layout
21963 arrayrulewidth}{0.4pt}
21971 \begin_layout Standard
21972 \begin_inset VSpace bigskip
21975 To set the line thickness to 1.5
21976 \begin_inset space \thinspace{}
21979 pt only for horizontal lines, as in Table
21980 \begin_inset space ~
21984 \begin_inset CommandInset ref
21986 reference "tab:Table-with-horizontal"
21990 , insert these commands in TeX-Code before the table or table float:
21993 \begin_layout Standard
22003 \begin_inset Newline newline
22011 \begin_inset Newline newline
22020 arrayrulewidth 1.5pt}
22021 \begin_inset Newline newline
22032 arrayrulewidth 0.4pt}}
22035 \begin_layout Standard
22036 To return to the default line thickness, insert this command in TeX-Code
22037 after the table or table float:
22040 \begin_layout Standard
22052 \begin_layout Standard
22056 \begin_layout Plain Layout
22067 \begin_layout Plain Layout
22076 \begin_layout Plain Layout
22084 arrayrulewidth 1.5pt}
22087 \begin_layout Plain Layout
22097 arrayrulewidth 0.4pt}}
22103 \begin_inset Float table
22108 \begin_layout Plain Layout
22109 \begin_inset Caption Standard
22111 \begin_layout Plain Layout
22112 \begin_inset CommandInset label
22114 name "tab:Table-with-horizontal"
22119 \begin_inset space \thinspace{}
22122 pt thick horizontal lines
22130 \begin_layout Plain Layout
22132 \begin_inset Tabular
22133 <lyxtabular version="3" rows="3" columns="3">
22134 <features rotate="0" tabularvalignment="middle">
22135 <column alignment="center" valignment="top" width="0">
22136 <column alignment="center" valignment="top" width="0">
22137 <column alignment="center" valignment="top" width="0">
22139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22142 \begin_layout Plain Layout
22148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22151 \begin_layout Plain Layout
22157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22160 \begin_layout Plain Layout
22168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22171 \begin_layout Plain Layout
22177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22180 \begin_layout Plain Layout
22186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22189 \begin_layout Plain Layout
22197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22200 \begin_layout Plain Layout
22206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22209 \begin_layout Plain Layout
22215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22218 \begin_layout Plain Layout
22238 \begin_layout Plain Layout
22254 \begin_layout Standard
22255 \begin_inset VSpace bigskip
22258 To set the line thickness to 1.5
22259 \begin_inset space \thinspace{}
22262 pt only for vertical lines, create the following column format in the document
22263 preamble, according to the description in section
22264 \begin_inset space ~
22268 \begin_inset CommandInset ref
22270 reference "sub:Customized-Format"
22277 \begin_layout Standard
22282 newcolumntype{V}{!{
22284 vrule width 1.5pt}}
22287 \begin_layout Standard
22289 \begin_inset space ~
22293 \begin_inset CommandInset ref
22295 reference "tab:Table-with-vertical"
22302 \begin_layout Standard
22308 \begin_layout Standard
22309 was used for the last column and
22312 \begin_layout Standard
22318 \begin_layout Standard
22319 for the other columns.
22322 \begin_layout Standard
22323 \begin_inset Float table
22328 \begin_layout Plain Layout
22329 \begin_inset Caption Standard
22331 \begin_layout Plain Layout
22332 \begin_inset CommandInset label
22334 name "tab:Table-with-vertical"
22339 \begin_inset space \thinspace{}
22342 pt thick vertical lines
22350 \begin_layout Plain Layout
22352 \begin_inset Tabular
22353 <lyxtabular version="3" rows="3" columns="3">
22354 <features rotate="0" tabularvalignment="middle">
22355 <column alignment="center" valignment="top" width="0" special="Vc">
22356 <column alignment="center" valignment="top" width="0" special="Vc">
22357 <column alignment="center" valignment="top" width="0" special="VcV">
22359 <cell alignment="center" valignment="top" topline="true" usebox="none">
22362 \begin_layout Plain Layout
22368 <cell alignment="center" valignment="top" topline="true" usebox="none">
22371 \begin_layout Plain Layout
22377 <cell alignment="center" valignment="top" topline="true" usebox="none">
22380 \begin_layout Plain Layout
22388 <cell alignment="center" valignment="top" topline="true" usebox="none">
22391 \begin_layout Plain Layout
22397 <cell alignment="center" valignment="top" topline="true" usebox="none">
22400 \begin_layout Plain Layout
22406 <cell alignment="center" valignment="top" topline="true" usebox="none">
22409 \begin_layout Plain Layout
22417 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22420 \begin_layout Plain Layout
22426 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22429 \begin_layout Plain Layout
22435 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22438 \begin_layout Plain Layout
22457 \begin_layout Subsection
22459 \begin_inset Index idx
22462 \begin_layout Plain Layout
22463 Table Customization ! Dashed Lines
22471 \begin_layout Standard
22475 \begin_layout Plain Layout
22485 \begin_inset Note Note
22488 \begin_layout Plain Layout
22489 The following section will only be displayed when the LaTeX-package
22501 \begin_layout Standard
22502 \begin_inset Float table
22508 \begin_layout Plain Layout
22509 \begin_inset Caption Standard
22511 \begin_layout Plain Layout
22512 \begin_inset CommandInset label
22514 name "tab:Table-with-dashed"
22518 Table with dashed lines
22526 \begin_layout Plain Layout
22528 \begin_inset Tabular
22529 <lyxtabular version="3" rows="5" columns="5">
22530 <features rotate="0" tabularvalignment="middle">
22531 <column alignment="center" valignment="top" width="0">
22532 <column alignment="center" valignment="top" width="0">
22533 <column alignment="center" valignment="top" width="0" special=":c">
22534 <column alignment="center" valignment="top" width="0">
22535 <column alignment="center" valignment="top" width="0">
22537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22540 \begin_layout Plain Layout
22546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22549 \begin_layout Plain Layout
22555 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22558 \begin_layout Plain Layout
22564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22567 \begin_layout Plain Layout
22573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22576 \begin_layout Plain Layout
22584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22587 \begin_layout Plain Layout
22593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22596 \begin_layout Plain Layout
22602 <cell alignment="center" valignment="top" topline="true" usebox="none">
22605 \begin_layout Plain Layout
22611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22614 \begin_layout Plain Layout
22620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22623 \begin_layout Plain Layout
22631 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22634 \begin_layout Plain Layout
22638 \begin_layout Plain Layout
22652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22655 \begin_layout Plain Layout
22661 <cell alignment="center" valignment="top" usebox="none">
22664 \begin_layout Plain Layout
22670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22673 \begin_layout Plain Layout
22679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22682 \begin_layout Plain Layout
22690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22693 \begin_layout Plain Layout
22697 \begin_layout Plain Layout
22711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22714 \begin_layout Plain Layout
22720 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22723 \begin_layout Plain Layout
22729 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22732 \begin_layout Plain Layout
22738 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22741 \begin_layout Plain Layout
22749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22752 \begin_layout Plain Layout
22758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22761 \begin_layout Plain Layout
22767 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22770 \begin_layout Plain Layout
22776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22779 \begin_layout Plain Layout
22785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22788 \begin_layout Plain Layout
22807 \begin_layout Standard
22808 LyX does not natively support dashed lines, so you have to use TeX-Code.
22809 As a prerequisite the LaTeX-package
22814 \begin_inset Index idx
22817 \begin_layout Plain Layout
22818 LaTeX-packages ! arydshln
22823 must be loaded in the document preamble with the command
22826 \begin_layout Standard
22831 usepackage{arydshln}
22834 \begin_layout Standard
22835 To make a vertical line dashed, enter the colon
22836 \begin_inset Quotes eld
22840 \begin_inset Quotes erd
22843 together with the character for the horizontal alignment as LaTeX-argument
22844 in the table cell dialog.
22847 \begin_layout Standard
22848 For a horizontal dashed line add the command
22851 \begin_layout Standard
22859 \begin_layout Standard
22860 in TeX-Code as first element of the first cell in the table row.
22863 \begin_layout Standard
22864 For dashed multicolumn lines use the command
22867 \begin_layout Standard
22872 cdashline{line number
22877 \begin_layout Standard
22878 in TeX-Code as the first element of the first cell in the table row.
22879 If you have for example a multicolumn spanning columns 2 to 4 and you want
22880 to have a dashed line above, add the command
22883 \begin_layout Standard
22891 \begin_layout Standard
22892 as the first element of the first cell in the row of the multicolumn.
22895 \begin_layout Standard
22896 \begin_inset VSpace bigskip
22902 \begin_layout Standard
22904 \begin_inset space ~
22908 \begin_inset CommandInset ref
22910 reference "tab:Table-with-dashed"
22915 \begin_inset Quotes eld
22923 \begin_inset Quotes erd
22926 as LaTeX-argument of the third column.
22927 The TeX-Code command
22933 was inserted in the first cell of the third row and the TeX-Code command
22934 \begin_inset Newline newline
22943 was inserted in the first cell of the fourth row.
22946 \begin_layout Standard
22947 \begin_inset VSpace bigskip
22953 \begin_layout Standard
22954 Tables with dashed lines can also be colored as shown by Table
22955 \begin_inset space ~
22959 \begin_inset CommandInset ref
22961 reference "tab:Colored-table-with"
22968 \begin_layout Standard
22972 \begin_layout Plain Layout
22978 arrayrulewidth}{1pt}
22984 \begin_inset Note Note
22987 \begin_layout Plain Layout
22988 thicker lines for better visualization of the line color
22996 \begin_layout Standard
23000 \begin_layout Plain Layout
23004 dashgapcolor{green}
23010 \begin_inset Note Note
23013 \begin_layout Plain Layout
23014 color gaps between dashes green
23022 \begin_layout Standard
23026 \begin_layout Plain Layout
23037 \begin_layout Plain Layout
23046 \begin_layout Plain Layout
23050 arrayrulecolor{red}
23054 arrayrulecolor{black}}
23060 \begin_inset Note Note
23063 \begin_layout Plain Layout
23064 color horizontal, dashed lines red
23072 \begin_layout Standard
23076 \begin_layout Plain Layout
23087 \begin_layout Plain Layout
23096 \begin_layout Plain Layout
23100 arrayrulecolor{yellow}
23104 arrayrulecolor{black}}
23110 \begin_inset Note Note
23113 \begin_layout Plain Layout
23114 color partial horizontal, dashed lines yellow
23122 \begin_layout Standard
23123 \begin_inset Float table
23129 \begin_layout Plain Layout
23130 \begin_inset Caption Standard
23132 \begin_layout Plain Layout
23133 \begin_inset CommandInset label
23135 name "tab:Colored-table-with"
23139 Colored table with dashed lines
23147 \begin_layout Plain Layout
23149 \begin_inset Tabular
23150 <lyxtabular version="3" rows="5" columns="5">
23151 <features rotate="0" tabularvalignment="middle">
23152 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23153 <column alignment="center" valignment="top" width="0pt">
23154 <column alignment="center" valignment="top" width="0pt" special=":c">
23155 <column alignment="center" valignment="top" width="0">
23156 <column alignment="center" valignment="top" width="0">
23158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23161 \begin_layout Plain Layout
23167 <cell alignment="center" valignment="top" topline="true" usebox="none">
23170 \begin_layout Plain Layout
23176 <cell alignment="center" valignment="top" topline="true" usebox="none">
23179 \begin_layout Plain Layout
23185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23188 \begin_layout Plain Layout
23194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23197 \begin_layout Plain Layout
23205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23208 \begin_layout Plain Layout
23214 <cell alignment="center" valignment="top" topline="true" usebox="none">
23217 \begin_layout Plain Layout
23223 <cell alignment="center" valignment="top" topline="true" usebox="none">
23226 \begin_layout Plain Layout
23232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23235 \begin_layout Plain Layout
23241 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23244 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23255 \begin_layout Plain Layout
23259 \begin_layout Plain Layout
23272 \begin_layout Plain Layout
23286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23289 \begin_layout Plain Layout
23295 <cell alignment="center" valignment="top" usebox="none">
23298 \begin_layout Plain Layout
23304 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23307 \begin_layout Plain Layout
23313 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23316 \begin_layout Plain Layout
23324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23327 \begin_layout Plain Layout
23331 \begin_layout Plain Layout
23345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23348 \begin_layout Plain Layout
23354 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23357 \begin_layout Plain Layout
23363 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23366 \begin_layout Plain Layout
23372 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23375 \begin_layout Plain Layout
23383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23386 \begin_layout Plain Layout
23392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23395 \begin_layout Plain Layout
23401 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23404 \begin_layout Plain Layout
23410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23413 \begin_layout Plain Layout
23419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23422 \begin_layout Plain Layout
23426 \begin_layout Plain Layout
23453 \begin_layout Standard
23457 \begin_layout Plain Layout
23471 \begin_inset Note Note
23474 \begin_layout Plain Layout
23483 \begin_layout Standard
23487 \begin_layout Plain Layout
23501 \begin_inset Note Note
23504 \begin_layout Plain Layout
23513 \begin_layout Standard
23517 \begin_layout Plain Layout
23527 \begin_inset Note Note
23530 \begin_layout Plain Layout
23539 \begin_layout Standard
23543 \begin_layout Plain Layout
23549 arrayrulewidth}{0.4pt}
23555 \begin_inset Note Note
23558 \begin_layout Plain Layout
23567 \begin_layout Standard
23568 The coloring of lines, columns and lines works as decribed in section
23569 \begin_inset space ~
23573 \begin_inset CommandInset ref
23575 reference "sec:Colored-Tables"
23580 Coloring horizontal lines works analogically as described there as well,
23581 one only needs to replace in the commands
23605 ; so one uses the command
23608 \begin_layout Standard
23618 \begin_inset Newline newline
23626 \begin_inset Newline newline
23630 \begin_inset Phantom HPhantom
23633 \begin_layout Plain Layout
23634 \begin_inset space ~
23644 arrayrulecolor{red}
23648 arrayrulecolor{black}}
23651 \begin_layout Standard
23661 \begin_layout Standard
23671 \begin_inset Newline newline
23679 \begin_inset Newline newline
23683 \begin_inset Phantom HPhantom
23686 \begin_layout Plain Layout
23687 \begin_inset space ~
23697 arrayrulecolor{red}
23701 arrayrulecolor{black}}
23704 \begin_layout Standard
23705 To get back the black line color, one needs to insert the following commands
23706 as TeX-Code behind the table:
23709 \begin_layout Standard
23717 \begin_layout Standard
23729 \begin_layout Standard
23737 \begin_layout Standard
23749 \begin_layout Standard
23750 To color the gaps between the dashes the command
23753 \begin_layout Standard
23758 dashgapcolor{color}
23761 \begin_layout Standard
23762 can be used in front of a table as TeX-Code.
23763 color is hereby the name of a defined color.
23767 \begin_layout Standard
23775 \begin_layout Standard
23776 unsets the changes made by
23785 \begin_layout Standard
23786 \begin_inset Note Greyedout
23789 \begin_layout Plain Layout
23795 : If there are multiple commands in a cell, the command of
23799 needs to be the first one in the cell.
23805 \begin_inset space ~
23809 \begin_inset CommandInset ref
23811 reference "tab:Colored-table-with"
23835 \begin_layout Standard
23836 \begin_inset Note Greyedout
23839 \begin_layout Plain Layout
23849 must be loaded in the document preamble before the LaTeX-package
23854 \begin_inset Index idx
23857 \begin_layout Plain Layout
23858 LaTeX-packages ! colortbl
23871 \begin_layout Standard
23875 \begin_layout Plain Layout
23885 \begin_inset Note Note
23888 \begin_layout Plain Layout
23889 The following will be displayed when the LaTeX-package
23901 \begin_layout Standard
23902 You need to install the package
23906 to see the content of this section in the output.
23909 \begin_layout Standard
23913 \begin_layout Plain Layout
23925 \begin_layout Standard
23926 For more information about dashed lines see the documentation of
23931 \begin_inset CommandInset citation
23940 \begin_layout Chapter
23942 \begin_inset CommandInset label
23949 \begin_inset Index idx
23952 \begin_layout Plain Layout
23961 \begin_layout Section
23963 \begin_inset CommandInset label
23965 name "sec:FloatIntroduction"
23970 \begin_inset Index idx
23973 \begin_layout Plain Layout
23974 Floats ! Introduction
23982 \begin_layout Standard
23983 A float is a block of text associated with some sort of label, which doesn't
23984 have a fixed location.
23986 \begin_inset Quotes eld
23990 \begin_inset Quotes erd
23993 forward or backward a page or two, to wherever it fits best.
24001 \begin_inset space ~
24006 are also floats because they can float to the next page when there are
24007 too many notes on the page.
24010 \begin_layout Standard
24011 Floats allow a high quality layout.
24012 Images and tables can be spread evenly among the pages to avoid white space
24013 and pages without text.
24014 As the floating often destroys the context between the text and the image/table
24015 , every float can be referenced in the text.
24016 Floats are therefore numbered.
24017 Referencing is described in section
24018 \begin_inset space ~
24022 \begin_inset CommandInset ref
24024 reference "sec:Referencing-Floats"
24031 \begin_layout Standard
24032 To insert a float, use the menu
24034 Insert\SpecialChar \menuseparator
24040 arg "float-insert figure"
24046 arg "float-insert table"
24054 inset, a box with a label.
24055 The label will automatically be translated to the document language in
24057 After the label you can insert the caption text.
24058 The image or table is inserted above or below the caption in a separate
24059 paragraph within the float.
24060 More about the caption placement is contained in section
24061 \begin_inset space ~
24065 \begin_inset CommandInset ref
24067 reference "sec:Caption-Placement"
24072 To keep your LyX-document readable, you can open and close the float box
24073 by left-clicking on the box label.
24074 A closed float box looks like this:
24075 \begin_inset Graphics
24076 filename clipart/floatQt4.png
24078 scaleBeforeRotation
24082 – a gray button with a red label.
24085 \begin_layout Standard
24086 It is recommended that you insert floats as separate standard paragraphs
24087 to avoid possible LaTeX-errors that can occur when the surrounding text
24088 is specially formatted.
24091 \begin_layout Standard
24092 Existing figures or tables can be put into a float by highlighting them
24093 and then pressing the corresponding toolbar button for a new float.
24096 \begin_layout Section
24100 \begin_layout Standard
24101 Besides figure and table floats that are described in sections
24102 \begin_inset space ~
24106 \begin_inset CommandInset ref
24108 reference "sec:Figure-Floats"
24113 \begin_inset CommandInset ref
24115 reference "sec:Table-Floats"
24119 respectively, LyX offers the float types
24128 The latter are explained in sec.
24129 \begin_inset space \thinspace{}
24133 \begin_inset CommandInset ref
24135 reference "sec:Wrap-Floats"
24142 \begin_layout Subsection
24144 \begin_inset Index idx
24147 \begin_layout Plain Layout
24148 Floats ! Algorithms
24156 \begin_layout Standard
24157 \begin_inset Float algorithm
24163 \begin_layout Plain Layout
24164 \begin_inset Caption Standard
24166 \begin_layout Plain Layout
24167 \begin_inset CommandInset label
24169 name "alg:Example-Algorithm-float"
24173 Example Algorithm float
24181 \begin_layout LyX-Code
24183 \begin_inset Newline newline
24186 Sum:= Sum + A(I); /*comment*/
24187 \begin_inset Newline newline
24191 \begin_inset VSpace -4mm
24202 \begin_layout Standard
24203 This float type is inserted with the menu
24205 Insert\SpecialChar \menuseparator
24206 Float\SpecialChar \menuseparator
24210 It is used for program codes and descriptions of algorithms and can be
24211 seen as an alternative to program code listings that are explained in chapter
24212 \begin_inset space ~
24216 \begin_inset CommandInset ref
24218 reference "cha:Program-Code-Listings"
24223 A possible environment for algorithms is the
24227 , described in LyX's
24233 \begin_inset space ~
24237 \begin_inset CommandInset ref
24239 reference "alg:Example-Algorithm-float"
24243 is an example of an algorithm float where -4
24244 \begin_inset space \thinspace{}
24247 mm vertical space was added at the end of the float to have the bottom rule
24248 exactly below the last text line.
24251 \begin_layout Standard
24252 The float label is not automatically translated into the document language.
24253 If your document is not in English, you have to do this manually by adding
24254 the following line to the document preamble
24259 \begin_layout Standard
24264 floatname{algorithm}{your
24265 \begin_inset space ~
24271 \begin_layout Standard
24275 \begin_inset space ~
24281 \begin_inset Quotes eld
24289 \begin_inset Quotes erd
24295 \begin_layout Standard
24296 To insert the list of algorithms you can use the menu
24298 Insert\SpecialChar \menuseparator
24300 \begin_inset space \thinspace{}
24304 \begin_inset space \thinspace{}
24307 TOC\SpecialChar \menuseparator
24310 when your document has the same language as LyX's menu names.
24311 In other cases use this command in TeX-Code instead:
24314 \begin_layout Standard
24319 listof{algorithm}{your
24320 \begin_inset space ~
24326 \begin_layout Standard
24330 \begin_inset space ~
24336 \begin_inset Quotes eld
24344 \begin_inset Quotes erd
24350 \begin_layout Standard
24351 Algorithm floats are not by default numbered in the scheme
24352 \begin_inset Quotes eld
24356 \begin_inset Quotes erd
24359 as is the case for table and figure floats in many document-classes.
24360 To number algorithm floats in the same scheme, add this command to your
24364 \begin_layout Standard
24369 numberwithin{algorithm}{chapter}
24372 \begin_layout Standard
24373 To be able to use the command
24382 \begin_inset space ~
24387 in the document settings the option
24390 \begin_inset space ~
24394 \begin_inset space ~
24398 \begin_inset space ~
24406 \begin_layout Section
24408 \begin_inset Index idx
24411 \begin_layout Plain Layout
24420 \begin_layout Standard
24421 Floats are usually numbered either independently from the sections the floats
24422 are in, or in the scheme
24423 \begin_inset Quotes eld
24427 \begin_inset Quotes erd
24431 \begin_inset Quotes eld
24435 \begin_inset Quotes erd
24439 This depends on the document class used.
24442 \begin_layout Standard
24443 To change section-independent numbering, you can use this command in the
24447 \begin_layout Standard
24459 \begin_layout Standard
24466 is the command that prints the table number.
24467 For figure floats, the command would be
24480 in the command above prints the table number as a small roman number.
24483 \begin_layout Standard
24484 To change the numbering scheme for example to
24485 \begin_inset Quotes eld
24489 \begin_inset Quotes erd
24492 , use this command in the preamble:
24495 \begin_layout Standard
24500 numberwithin{table}{subsection}
24503 \begin_layout Standard
24504 To be able to use the command
24513 \begin_inset space ~
24518 in the document settings the option
24521 \begin_inset space ~
24525 \begin_inset space ~
24529 \begin_inset space ~
24537 \begin_layout Standard
24538 Please also have a look at section
24539 \begin_inset space ~
24543 \begin_inset CommandInset ref
24545 reference "sub:Footnote-Numbering"
24549 for the details and important notes about the numbering commands.
24552 \begin_layout Section
24554 \begin_inset CommandInset label
24556 name "sec:Referencing-Floats"
24561 \begin_inset Index idx
24564 \begin_layout Plain Layout
24565 Floats ! References
24571 \begin_inset Index idx
24574 \begin_layout Plain Layout
24575 References ! to Floats
24583 \begin_layout Standard
24584 To reference a float, insert a label into its caption using the menu
24586 Insert\SpecialChar \menuseparator
24589 or the toolbar button
24596 A grey label box like this one:
24597 \begin_inset Graphics
24598 filename clipart/labelQt4.png
24600 scaleBeforeRotation
24604 will be inserted and the label window pops up asking for the label text.
24605 LyX offers as text the first words of the caption with a prefix.
24606 The prefix depends on the float type, e.
24607 \begin_inset space \thinspace{}
24611 \begin_inset space \space{}
24614 for figure floats the prefix will be "
24621 \begin_layout Standard
24622 The label is used as anchor and name for the reference.
24623 You can refer to the label using the menu
24625 Insert\SpecialChar \menuseparator
24628 or the toolbar button
24631 arg "dialog-show-new-inset ref"
24635 The cross-reference window appears showing all labels of the document.
24636 If you have multiple LyX-documents opened, choose the one you are working
24637 on from the drop-list at the top of the dialog.
24638 You can now sort the labels alphabetically and then choose one.
24639 A grey cross-reference box like this one:
24640 \begin_inset Graphics
24641 filename clipart/referenceQt4.png
24643 scaleBeforeRotation
24648 At the position of the cross-reference box the float number will appear
24652 \begin_layout Standard
24653 It is recommended that you use a protected space between the cross-reference
24654 name and its number to avoid line breaks between them.
24655 If a cross-reference refers to a non-existing label, you will see two question
24656 marks in the output instead of the reference.
24659 \begin_layout Standard
24660 You can change labels at any time by clicking on the label box.
24661 References to the changed label will automatically update their links to
24662 the new label text.
24665 \begin_layout Standard
24669 \begin_inset space ~
24673 \begin_inset space ~
24678 in the cross-reference window sets the cursor before the referred label.
24679 The button text changes then to Go
24680 \begin_inset space ~
24683 Back and you can use it to set the cursor back to the cross-reference.
24686 \begin_layout Subsection
24687 Cross-Reference Formats
24688 \begin_inset CommandInset label
24690 name "sub:Cross-Reference-Formats"
24695 \begin_inset Index idx
24698 \begin_layout Plain Layout
24699 References ! Formats
24707 \begin_layout Standard
24708 There are six varieties of cross-references:
24711 \begin_layout Description
24712 <reference>: prints the float number, this is the default:
24713 \begin_inset CommandInset ref
24715 reference "fig:Two-distorted-images"
24722 \begin_layout Description
24723 (<reference>): prints the float number within two parentheses, this is the
24724 style normally used to reference formulas, especially when the reference
24726 \begin_inset Quotes eld
24730 \begin_inset Quotes erd
24734 \begin_inset CommandInset ref
24743 \begin_layout Description
24744 <page>: prints the page number: Page
24745 \begin_inset space ~
24749 \begin_inset CommandInset ref
24750 LatexCommand pageref
24751 reference "fig:Two-distorted-images"
24758 \begin_layout Description
24760 \begin_inset space ~
24764 \begin_inset space ~
24767 <page>: prints the text "on page" and the page number:
24768 \begin_inset CommandInset ref
24769 LatexCommand vpageref
24770 reference "fig:Two-distorted-images"
24777 \begin_layout Description
24779 \begin_inset space ~
24783 \begin_inset space ~
24787 \begin_inset space ~
24790 <page>: prints the float number, the text "on page", and the page number:
24792 \begin_inset CommandInset ref
24794 reference "fig:Two-distorted-images"
24801 \begin_layout Description
24803 \begin_inset space ~
24806 reference: prints a self-defined cross-reference format.
24807 \begin_inset Newline newline
24811 \begin_inset Note Greyedout
24814 \begin_layout Plain Layout
24819 This feature is only available when you have the LaTeX-package
24828 \begin_inset Index idx
24831 \begin_layout Plain Layout
24832 LaTeX-packages ! prettyref
24838 \begin_inset Index idx
24841 \begin_layout Plain Layout
24842 LaTeX-packages ! refstyle
24853 \begin_inset Newline newline
24856 You can select which LaTeX-package should be used for this feature by setting
24859 Use refstyle (not prettyref) for cross-references
24863 Document\SpecialChar \menuseparator
24864 Settings\SpecialChar \menuseparator
24868 The format is specified by adding the command
24880 (refstyle) to the preamble of the document.
24881 For example redefining all references to figures (which have the label
24883 \begin_inset Quotes eld
24891 \begin_inset Quotes erd
24894 ) can be done with this command
24895 \begin_inset Newline newline
24902 newref{fig}{refcmd={Image on page
24907 \begin_inset Newline newline
24910 For more information about the format, have a look at the package documentations
24912 \begin_inset CommandInset citation
24914 key "prettyref,refstyle"
24921 \begin_layout Description
24923 \begin_inset space ~
24926 reference: prints the caption of the reference:
24927 \begin_inset CommandInset ref
24928 LatexCommand nameref
24929 reference "fig:Two-distorted-images"
24936 \begin_layout Standard
24941 will not print the page number if the label is on the previous, the same,
24944 \begin_inset space \thinspace{}
24948 \begin_inset space \space{}
24952 \begin_inset Quotes eld
24960 \begin_inset Quotes erd
24966 <reference> on page <page>
24968 will not print anything about the page if the label is on the same page.
24971 \begin_layout Standard
24972 The number and current page of the part of the document referred to in the
24973 output is automatically calculated by LaTeX.
24974 The varieties are adjusted in the field
24978 of the cross-reference window that appears when you click on the cross-referenc
24982 \begin_layout Standard
24983 \begin_inset Note Greyedout
24986 \begin_layout Plain Layout
24991 It is recommended to use the LaTeX-package
24996 \begin_inset Index idx
24999 \begin_layout Plain Layout
25000 LaTeX-packages ! refstyle
25010 \begin_inset Index idx
25013 \begin_layout Plain Layout
25014 LaTeX-packages ! prettyref
25019 does not know all of LyX's possible label shortcuts
25023 \begin_layout Plain Layout
25024 \begin_inset Quotes eld
25028 \begin_inset Quotes erd
25031 is for example LyX's shortcut for labels in figure captions.
25036 and is not internationalized.
25044 \begin_layout Standard
25045 \begin_inset Note Greyedout
25048 \begin_layout Plain Layout
25053 Due to a bug in the LaTeX-package
25057 version 1.4w, some cross-reference formats will cause LaTeX errors for document
25058 languages that make the period character active (like French).
25059 For a workaround, see
25060 \begin_inset Newline newline
25064 \begin_inset CommandInset href
25066 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
25078 \begin_layout Subsection
25079 Automatic Reference Naming
25080 \begin_inset Index idx
25083 \begin_layout Plain Layout
25084 References ! Automatic Reference Naming
25092 \begin_layout Standard
25098 \begin_inset Index idx
25101 \begin_layout Plain Layout
25102 LaTeX-packages ! hyperref
25107 , that is enabled in the
25115 dialog, provides a very useful feature that cross-references automatically
25116 include the name of the referenced floats (or text parts like
25121 So you will save having to write e.
25122 \begin_inset space \thinspace{}
25126 \begin_inset space \space{}
25130 \begin_inset Quotes eld
25134 \begin_inset Quotes erd
25137 before every reference to a figure.
25138 To use this feature, enable
25142 and insert this line to the LaTeX preamble:
25145 \begin_layout Standard
25161 \begin_layout Standard
25162 When you prefer other reference names than the default ones, for example
25163 you want instead of
25164 \begin_inset Quotes eld
25168 \begin_inset Quotes erd
25172 \begin_inset Quotes eld
25176 \begin_inset space \thinspace{}
25180 \begin_inset Quotes eld
25183 , you can redefine the name by inserting this in the preamble:
25186 \begin_layout Standard
25197 sectionautorefname}
25198 \begin_inset Newline newline
25202 \begin_inset Phantom HPhantom
25205 \begin_layout Plain Layout
25208 \begin_inset space ~
25221 \begin_layout Standard
25222 When you are using another document language than English, replace
25223 \begin_inset Newline newline
25238 , where *** is the name of the language used.
25241 \begin_layout Standard
25242 To get automatic names, but not for certain reference types, for example
25243 not for equations, use this preamble code:
25246 \begin_layout Standard
25257 equationautorefname}[1]{}}
25260 \begin_layout Standard
25261 More about this topic can be found in
25266 \begin_inset CommandInset citation
25275 \begin_layout Standard
25276 \begin_inset Note Greyedout
25279 \begin_layout Plain Layout
25284 Automatic reference naming cannot be used when you use cross-references
25288 \begin_inset space ~
25293 style, as described in section
25294 \begin_inset space ~
25298 \begin_inset CommandInset ref
25300 reference "sub:Cross-Reference-Formats"
25312 \begin_layout Standard
25317 manual is an example where automatic reference naming is used.
25320 \begin_layout Subsection
25322 \begin_inset CommandInset label
25324 name "sub:Reference-Position"
25329 \begin_inset Index idx
25332 \begin_layout Plain Layout
25333 References ! Reference Position
25341 \begin_layout Standard
25347 \begin_inset Index idx
25350 \begin_layout Plain Layout
25351 LaTeX-packages ! hyperref
25364 dialog to link cross-references in the output, you will see that clicking
25365 on an image float reference jumps to the image label.
25366 The caption will be the first text part on the screen, so that you cannot
25367 see the image without scrolling.
25368 This is because the reference link anchor is placed at the position of
25370 With the use of the package
25375 \begin_inset Index idx
25378 \begin_layout Plain Layout
25379 LaTeX-packages ! hypcap
25384 , which is part of the LaTeX-package
25389 \begin_inset Index idx
25392 \begin_layout Plain Layout
25393 LaTeX-packages ! oberdiek
25398 , the link anchor is placed at the beginning of a float.
25399 To use this feature for figure floats, load
25403 in the document preamble with the line
25406 \begin_layout Standard
25411 usepackage[figure]{hypcap}
25414 \begin_layout Standard
25419 for all float types but this is not recommended for stability reasons.
25420 For more information, have a look at
25425 \begin_inset CommandInset citation
25434 \begin_layout Standard
25435 \begin_inset Note Greyedout
25438 \begin_layout Plain Layout
25447 has no effect on references to subfigures.
25455 \begin_layout Section
25457 \begin_inset CommandInset label
25459 name "sec:Float-Placement"
25464 \begin_inset Index idx
25467 \begin_layout Plain Layout
25476 \begin_layout Standard
25477 Right-clicking on a float-box and clicking on
25481 opens a dialog where you can alter the placement options that LaTeX uses
25482 for positioning the float.
25483 \begin_inset Newline newline
25489 \begin_inset space ~
25494 is only useful for two-column documents: If you select it, the float will
25495 span both columns on the page instead of being confined to just one.
25496 \begin_inset Newline newline
25502 \begin_inset space ~
25507 is used to rotate floats, see section
25508 \begin_inset CommandInset ref
25510 reference "sec:Rotated-Floats"
25517 \begin_layout Standard
25518 You can use one or more of the following options in the float dialog to
25519 set the placement for a particular float when you uncheck the option
25522 \begin_inset space ~
25526 \begin_inset space ~
25534 \begin_layout Description
25536 \begin_inset space ~
25540 \begin_inset space ~
25543 possible try to place the float on the position where it has been inserted
25546 \begin_layout Description
25548 \begin_inset space ~
25552 \begin_inset space ~
25555 page try to place the float at the top of the current page
25558 \begin_layout Description
25560 \begin_inset space ~
25564 \begin_inset space ~
25567 page try to place the float at the bottom of the current page
25570 \begin_layout Description
25572 \begin_inset space ~
25576 \begin_inset space ~
25579 floats try to place the float on its own page
25582 \begin_layout Standard
25583 The order of the above option is
25588 That means, if you use the default placement, LaTeX will first try out
25592 \begin_inset space ~
25596 \begin_inset space ~
25604 \begin_inset space ~
25608 \begin_inset space ~
25613 , and then the others.
25614 If you do not use the default, LaTeX will try only the checked options
25615 but in the same order.
25617 \begin_inset space ~
25620 placements is possible the procedure is internally repeated trying to put
25621 the float on the following page.
25624 \begin_layout Standard
25625 By default, each option has its own rules:
25628 \begin_layout Labeling
25629 \labelwidthstring 00.00.0000
25633 \begin_inset space ~
25637 \begin_inset space ~
25642 only floats occupying less than 70
25643 \begin_inset space \thinspace{}
25646 % of the page can be placed at the top of a page (
25655 \begin_layout Labeling
25656 \labelwidthstring 00.00.0000
25660 \begin_inset space ~
25664 \begin_inset space ~
25669 : only floats occupying less than 30
25670 \begin_inset space \thinspace{}
25673 % of the page can be placed at the bottom of a page.
25683 \begin_layout Labeling
25684 \labelwidthstring 00.00.0000
25688 \begin_inset space ~
25692 \begin_inset space ~
25697 : only if more than 50
25698 \begin_inset space \thinspace{}
25701 % of the page is occupied by floats, several floats can be set together
25712 \begin_layout Standard
25713 If you don't like these rules, you can ignore them by using the additional
25717 \begin_inset space ~
25721 \begin_inset space ~
25727 \begin_inset Newline newline
25730 You can also redefine the rules with LaTeX-commands that are given in parenthese
25731 s after the rules description above.
25732 To increase for example the often too small default of the bottom-rule
25734 \begin_inset space \thinspace{}
25737 % of the page, add this line to your document preamble:
25740 \begin_layout Standard
25747 bottomfraction}{0.5}
25750 \begin_layout Standard
25751 Sometimes you might need, under all circumstances, a float to be placed
25752 exactly at the position where it is inserted.
25753 For this case you can use the option
25756 \begin_inset space ~
25762 Use this option very rarely and only if the document is almost ready to
25763 be printed, because the float is then no longer able to
25764 \begin_inset Quotes eld
25768 \begin_inset Quotes erd
25771 when you change your document and this will often destroy the page layout.
25774 \begin_layout Standard
25775 There are no placement options for text wrap floats, because they are always
25776 surrounded by the text of a certain paragraph.
25777 \begin_inset VSpace bigskip
25783 \begin_layout Standard
25784 Sometimes you have the problem that a float is placed at the top of a page
25785 while its corresponding section starts at the middle of the page, so that
25786 the reader could think the float is part of the previous section.
25787 To avoid this the LaTeX-command
25794 It suppresses a given float placement for the page where it is inserted
25795 and can therefore be used to avoid floats being set before a section starts.
25796 To get this, add these commands to your document preamble:
25799 \begin_layout Standard
25809 \begin_inset Newline newline
25823 \begin_layout Standard
25824 You can define the same for all section headings, like chapters and subsections.
25825 This definition is not recommended to be used for small text parts like
25826 subsubsections because LaTeX may then have problems finding a suitable
25830 \begin_layout Standard
25831 \begin_inset VSpace bigskip
25834 In some cases it is required to have all figures/tables at the end of the
25836 For this purpose the LaTeX-package
25841 \begin_inset Index idx
25844 \begin_layout Plain Layout
25845 LaTeX-packages ! endfloat
25851 It puts all figure and table floats at the end of the document into their
25853 At the original float position a text hint like
25854 \begin_inset Quotes eld
25860 \begin_inset space ~
25866 \begin_inset Quotes erd
25870 The endfloat-package is loaded in the preamble with the line
25873 \begin_layout Standard
25878 usepackage[options]{endfloat}
25881 \begin_layout Standard
25882 There are various package options to format the created figure/table sections.
25883 For more information we refer you to the
25888 \begin_inset CommandInset citation
25895 \begin_inset Newline newline
25899 \begin_inset Note Greyedout
25902 \begin_layout Plain Layout
25907 doesn't provide an automatic translation for the text hint, you have to
25908 do this manually, see section
25909 \begin_inset space ~
25913 \begin_inset CommandInset citation
25925 \begin_inset Newline newline
25929 \begin_inset Note Greyedout
25932 \begin_layout Plain Layout
25937 There is currently a bug in
25941 when the caption contains a German
25942 \begin_inset Quotes eld
25946 \begin_inset Quotes erd
25950 Use in this case the command
25951 \begin_inset Quotes eld
25961 \begin_inset Quotes erd
25964 in TeX-Code instead of
25965 \begin_inset Quotes eld
25969 \begin_inset Quotes erd
25980 \begin_layout Standard
25981 \begin_inset VSpace bigskip
25984 For more details about float placements, have a look at LaTeX books,
25985 \begin_inset CommandInset citation
25987 key "latexcompanion,latexguide,latexbook"
25994 \begin_layout Section
25996 \begin_inset CommandInset label
25998 name "sec:Rotated-Floats"
26003 \begin_inset Index idx
26006 \begin_layout Plain Layout
26015 \begin_layout Standard
26016 Especially for wide tables you might have floats rotated.
26017 To rotate a whole float including the caption, right-click on the float-box
26021 \begin_inset space ~
26029 \begin_layout Standard
26030 Rotated floats are always placed on a page of their own (or column of their
26031 own; in case you have a multi-column document).
26032 You can let them span several columns using the float settings option
26035 \begin_inset space ~
26041 Floats are rotated so that you can read them from the outside margin.
26042 To force a certain rotation direction for all pages, you can add either
26051 to the document class options.
26054 \begin_layout Standard
26055 Referencing rotated floats is the same as for normal floats, the caption
26056 format is also the same: Table
26057 \begin_inset space ~
26061 \begin_inset CommandInset ref
26063 reference "tab:Rotated-table"
26067 is an example of a rotated table float.
26070 \begin_layout Standard
26071 \begin_inset Note Greyedout
26074 \begin_layout Plain Layout
26079 Not all DVI-viewers are able to display rotated floats.
26087 \begin_layout Standard
26088 \begin_inset Float table
26093 \begin_layout Plain Layout
26094 \begin_inset Caption Standard
26096 \begin_layout Plain Layout
26097 \begin_inset CommandInset label
26099 name "tab:Rotated-table"
26111 \begin_layout Plain Layout
26113 \begin_inset Tabular
26114 <lyxtabular version="3" rows="1" columns="5">
26115 <features rotate="0" tabularvalignment="middle">
26116 <column alignment="center" valignment="top" width="0">
26117 <column alignment="center" valignment="top" width="0">
26118 <column alignment="center" valignment="top" width="0">
26119 <column alignment="center" valignment="top" width="0">
26120 <column alignment="center" valignment="top" width="0">
26122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26125 \begin_layout Plain Layout
26131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26134 \begin_layout Plain Layout
26140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26143 \begin_layout Plain Layout
26149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26152 \begin_layout Plain Layout
26158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26161 \begin_layout Plain Layout
26180 \begin_layout Section
26182 \begin_inset Index idx
26185 \begin_layout Plain Layout
26194 \begin_layout Standard
26195 Subfloats are for example used when a figure consists of several images.
26196 They are created by inserting a float into an existing float.
26197 The placement of the subfloats can be controlled in the same way as for
26198 paragraphs as shown in table
26199 \begin_inset space ~
26203 \begin_inset CommandInset ref
26205 reference "tab:Two-subtables-side"
26210 \begin_inset CommandInset ref
26212 reference "tab:Two-subtables-upon"
26219 \begin_layout Standard
26220 Referencing subfloats works as for normal floats: Table
26221 \begin_inset space ~
26225 \begin_inset CommandInset ref
26227 reference "tab:This-is-subtable-a"
26232 \begin_inset CommandInset ref
26234 reference "tab:This-is-subtable-b"
26238 are subtables of table
26239 \begin_inset space ~
26243 \begin_inset CommandInset ref
26245 reference "tab:Two-subtables-side"
26252 \begin_layout Standard
26253 \begin_inset Float table
26258 \begin_layout Plain Layout
26259 \begin_inset Caption Standard
26261 \begin_layout Plain Layout
26262 \begin_inset CommandInset label
26264 name "tab:Two-subtables-side"
26268 Two subtables placed side by side.
26276 \begin_layout Plain Layout
26278 \begin_inset space \hfill{}
26282 \begin_inset Float table
26287 \begin_layout Plain Layout
26288 \begin_inset Caption Standard
26290 \begin_layout Plain Layout
26291 \begin_inset CommandInset label
26293 name "tab:This-is-subtable-a"
26297 This is subtable a.
26305 \begin_layout Plain Layout
26307 \begin_inset Tabular
26308 <lyxtabular version="3" rows="1" columns="5">
26309 <features rotate="0" tabularvalignment="middle">
26310 <column alignment="center" valignment="top" width="0">
26311 <column alignment="center" valignment="top" width="0">
26312 <column alignment="center" valignment="top" width="0">
26313 <column alignment="center" valignment="top" width="0">
26314 <column alignment="center" valignment="top" width="0">
26316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26319 \begin_layout Plain Layout
26325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26328 \begin_layout Plain Layout
26334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26337 \begin_layout Plain Layout
26343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26346 \begin_layout Plain Layout
26352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26355 \begin_layout Plain Layout
26372 \begin_inset space \hfill{}
26376 \begin_inset Float table
26381 \begin_layout Plain Layout
26382 \begin_inset Caption Standard
26384 \begin_layout Plain Layout
26385 \begin_inset CommandInset label
26387 name "tab:This-is-subtable-b"
26391 This is subtable b.
26399 \begin_layout Plain Layout
26401 \begin_inset Tabular
26402 <lyxtabular version="3" rows="1" columns="5">
26403 <features rotate="0" tabularvalignment="middle">
26404 <column alignment="center" valignment="top" width="0">
26405 <column alignment="center" valignment="top" width="0">
26406 <column alignment="center" valignment="top" width="0">
26407 <column alignment="center" valignment="top" width="0">
26408 <column alignment="center" valignment="top" width="0">
26410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26413 \begin_layout Plain Layout
26419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26422 \begin_layout Plain Layout
26428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26431 \begin_layout Plain Layout
26437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26440 \begin_layout Plain Layout
26446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26449 \begin_layout Plain Layout
26466 \begin_inset space \hfill{}
26477 \begin_layout Standard
26478 \begin_inset Float table
26483 \begin_layout Plain Layout
26484 \begin_inset Caption Standard
26486 \begin_layout Plain Layout
26487 \begin_inset CommandInset label
26489 name "tab:Two-subtables-upon"
26493 Two subtables placed one above the other.
26494 (a) table with 4 cells, (b) table with 5 cells.
26502 \begin_layout Plain Layout
26504 \begin_inset Float table
26509 \begin_layout Plain Layout
26510 \begin_inset Caption Standard
26512 \begin_layout Plain Layout
26521 \begin_layout Plain Layout
26523 \begin_inset Tabular
26524 <lyxtabular version="3" rows="1" columns="4">
26525 <features rotate="0" tabularvalignment="middle">
26526 <column alignment="center" valignment="top" width="0">
26527 <column alignment="center" valignment="top" width="0">
26528 <column alignment="center" valignment="top" width="0">
26529 <column alignment="center" valignment="top" width="0">
26531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26534 \begin_layout Plain Layout
26540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26543 \begin_layout Plain Layout
26549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26552 \begin_layout Plain Layout
26558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26561 \begin_layout Plain Layout
26580 \begin_layout Plain Layout
26582 \begin_inset Float table
26587 \begin_layout Plain Layout
26588 \begin_inset Caption Standard
26590 \begin_layout Plain Layout
26599 \begin_layout Plain Layout
26601 \begin_inset Tabular
26602 <lyxtabular version="3" rows="1" columns="5">
26603 <features rotate="0" tabularvalignment="middle">
26604 <column alignment="center" valignment="top" width="0">
26605 <column alignment="center" valignment="top" width="0">
26606 <column alignment="center" valignment="top" width="0">
26607 <column alignment="center" valignment="top" width="0">
26608 <column alignment="center" valignment="top" width="0">
26610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26613 \begin_layout Plain Layout
26619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26622 \begin_layout Plain Layout
26628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26631 \begin_layout Plain Layout
26637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26640 \begin_layout Plain Layout
26646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26649 \begin_layout Plain Layout
26673 \begin_layout Section
26674 Floats Side by Side
26675 \begin_inset Index idx
26678 \begin_layout Plain Layout
26679 Floats ! Side by side
26687 \begin_layout Standard
26688 To place floats side by side, as in Figures
26689 \begin_inset space ~
26693 \begin_inset CommandInset ref
26695 reference "fig:Float-left"
26700 \begin_inset CommandInset ref
26702 reference "fig:Float-right"
26711 In it two minipage boxes are inserted.
26715 \begin_layout Plain Layout
26716 Minipages are explained in section
26717 \begin_inset space ~
26721 \begin_inset CommandInset ref
26723 reference "sec:Minipages"
26732 The width is set to 45
26733 \begin_inset space \thinspace{}
26737 \begin_inset space \thinspace{}
26740 column% and the box alignment to
26745 The minipage boxes contain the image and the caption in the same way as
26746 they are in a float.
26747 The only difference is that the image unit
26750 \begin_inset space ~
26754 \begin_inset space ~
26759 is now calculated according to the width of the minipage boxes.
26762 \begin_layout Standard
26763 \begin_inset Float figure
26768 \begin_layout Plain Layout
26769 \begin_inset Box Frameless
26779 height_special "totalheight"
26782 \begin_layout Plain Layout
26784 \begin_inset Graphics
26785 filename clipart/mobius.eps
26788 scaleBeforeRotation
26795 \begin_layout Plain Layout
26796 \begin_inset Caption Standard
26798 \begin_layout Plain Layout
26799 \begin_inset CommandInset label
26801 name "fig:Float-left"
26805 Float on the left side.
26816 \begin_inset space \hfill{}
26820 \begin_inset Box Frameless
26830 height_special "totalheight"
26833 \begin_layout Plain Layout
26835 \begin_inset Graphics
26836 filename clipart/platypus.eps
26839 scaleBeforeRotation
26846 \begin_layout Plain Layout
26847 \begin_inset Caption Standard
26849 \begin_layout Plain Layout
26850 \begin_inset CommandInset label
26852 name "fig:Float-right"
26856 Float on the right side.
26869 \begin_layout Plain Layout
26878 \begin_layout Section
26880 \begin_inset Index idx
26883 \begin_layout Plain Layout
26884 Caption ! Formatting
26890 \begin_inset Index idx
26893 \begin_layout Plain Layout
26894 Floats ! Caption Formatting
26900 \begin_inset CommandInset label
26902 name "sec:Caption-Formatting"
26909 \begin_layout Standard
26914 environment is the default paragraph environment for
26919 On the LyX screen captions appear as a label, e.
26920 \begin_inset space \thinspace{}
26924 \begin_inset space \space{}
26928 \begin_inset Quotes eld
26936 \begin_inset Quotes erd
26939 followed by the caption text.
26941 \begin_inset Quotes eld
26945 \begin_inset Quotes erd
26948 is the actual reference number.
26949 By default the label and the number are in the same font as the caption
26950 text and a colon follows the number to divide the label from the text.
26951 This caption format is not suitable for all document formats.
26955 \begin_layout Standard
26956 To change the default caption format, load the LaTeX-package
26961 \begin_inset Index idx
26964 \begin_layout Plain Layout
26965 LaTeX-packages ! caption
26970 in the document preamble with this line:
26973 \begin_layout Standard
26978 usepackage[format definition]{caption}
26981 \begin_layout Standard
26982 To have for example the label and the number in sans-serif bold font and
26983 the table captions always above the table as in this document, use the
26987 \begin_layout Standard
26992 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
26995 \begin_layout Standard
26996 You can also define different caption formats for the different float types.
26997 In this case load the
27001 package without format specific options and define the different formats
27002 with the help of the command
27005 \begin_layout Standard
27010 captionsetup[float type]{format definition}
27013 \begin_layout Standard
27014 in the document preamble.
27015 For example the caption formats of Figure
27016 \begin_inset space ~
27020 \begin_inset CommandInset ref
27022 reference "fig:This-is-an-fig"
27027 \begin_inset space ~
27031 \begin_inset CommandInset ref
27033 reference "tab:This-is-an-tab"
27037 can be created using these commands in the document preamble:
27040 \begin_layout Standard
27045 usepackage[tableposition=top]{caption}
27048 \begin_inset Newline newline
27055 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27056 \begin_inset Newline newline
27060 \begin_inset Phantom HPhantom
27063 \begin_layout Plain Layout
27068 captionsetup[figure]{
27074 \begin_inset Newline newline
27079 captionsetup[table]{labelfont={bf,sf}}
27082 \begin_layout Standard
27083 \begin_inset Note Greyedout
27086 \begin_layout Plain Layout
27095 has no effect when a
27100 \begin_inset Index idx
27103 \begin_layout Plain Layout
27104 LaTeX-packages ! KOMA-Script
27109 document class is used.
27110 In this case the document class option
27112 captions=tableheading
27122 \begin_layout Standard
27123 For more information about the package
27127 we refer to its documentation
27128 \begin_inset CommandInset citation
27137 \begin_layout Standard
27138 To change the label name from e.
27139 \begin_inset space \thinspace{}
27143 \begin_inset space \space{}
27147 \begin_inset Quotes eld
27151 \begin_inset Quotes erd
27155 \begin_inset Quotes eld
27159 \begin_inset Quotes erd
27162 use this preamble command:
27165 \begin_layout Standard
27172 fnum@figure}{Image~
27177 \begin_layout Standard
27184 inserts the figure number and
27187 \begin_inset Quotes eld
27193 \begin_inset Quotes erd
27196 creates a protected space.
27199 \begin_layout Standard
27200 \begin_inset VSpace bigskip
27208 \begin_inset Index idx
27211 \begin_layout Plain Layout
27212 LaTeX-packages ! KOMA-Script
27219 article (KOMA-Script)
27227 letter (KOMA-Script)
27231 report (KOMA-Script)
27234 \begin_inset space \thinspace{}
27237 ), you can alternatively to the
27245 's built-in command
27252 For example, to have the caption label in bold, add this command to your
27256 \begin_layout Standard
27261 setkomafont{captionlabel}{
27266 \begin_layout Standard
27267 For more information about
27278 \begin_inset CommandInset citation
27287 \begin_layout Standard
27291 \begin_layout Plain Layout
27295 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27302 \begin_inset Note Note
27305 \begin_layout Plain Layout
27306 The caption format is changed only for this example.
27314 \begin_layout Standard
27315 \begin_inset Float figure
27321 \begin_layout Plain Layout
27323 \begin_inset Graphics
27324 filename clipart/mobius.eps
27327 scaleBeforeRotation
27334 \begin_layout Plain Layout
27335 \begin_inset Caption Standard
27337 \begin_layout Plain Layout
27338 \begin_inset CommandInset label
27340 name "fig:This-is-an-fig"
27344 This is an example figure caption that is longer than one line to show the
27345 different caption format.
27346 Here a self-defined caption format is used.
27359 \begin_layout Standard
27363 \begin_layout Plain Layout
27367 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27376 \begin_layout Standard
27377 \begin_inset Float table
27383 \begin_layout Plain Layout
27384 \begin_inset Caption Standard
27386 \begin_layout Plain Layout
27387 \begin_inset CommandInset label
27389 name "tab:This-is-an-tab"
27393 This is an example table caption that is longer than one line to show the
27394 different caption format.
27395 Here the standard caption format for tables in this document is used.
27403 \begin_layout Plain Layout
27405 \begin_inset Tabular
27406 <lyxtabular version="3" rows="1" columns="5">
27407 <features rotate="0" tabularvalignment="middle">
27408 <column alignment="center" valignment="top" width="0">
27409 <column alignment="center" valignment="top" width="0">
27410 <column alignment="center" valignment="top" width="0">
27411 <column alignment="center" valignment="top" width="0">
27412 <column alignment="center" valignment="top" width="0">
27414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27417 \begin_layout Plain Layout
27423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27426 \begin_layout Plain Layout
27432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27435 \begin_layout Plain Layout
27441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27444 \begin_layout Plain Layout
27450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27453 \begin_layout Plain Layout
27472 \begin_layout Section
27474 \begin_inset Index idx
27477 \begin_layout Plain Layout
27478 Caption ! Placement
27484 \begin_inset Index idx
27487 \begin_layout Plain Layout
27488 Floats ! Caption Placement
27494 \begin_inset CommandInset label
27496 name "sec:Caption-Placement"
27503 \begin_layout Standard
27504 The common caption placement rule is:
27507 \begin_layout Description
27508 Figure: Caption is set below the figure
27511 \begin_layout Description
27512 Table: Caption is set above the table
27515 \begin_layout Standard
27516 Having the caption above the table is unfortunately not supported in LaTeX's
27518 That means if you are using the document classes
27534 there will be no space between the caption and the table.
27535 To insert the necessary space, add the following option to the load command
27536 of the LaTeX-package
27540 in your document preamble
27544 \begin_layout Plain Layout
27546 \begin_inset space ~
27550 \begin_inset CommandInset ref
27552 reference "sec:Caption-Formatting"
27556 for more information of the package
27568 \begin_layout Standard
27574 \begin_layout Standard
27580 \begin_inset Index idx
27583 \begin_layout Plain Layout
27584 LaTeX-packages ! KOMA-Script
27591 article (KOMA-Script)
27599 letter (KOMA-Script)
27603 report (KOMA-Script)
27606 \begin_inset space \thinspace{}
27609 ), you can alternatively to the
27613 package set the document class option
27615 captions=tableheading
27620 \begin_layout Standard
27621 \begin_inset VSpace bigskip
27624 It is also possible to set the caption beside a figure or table.
27625 To get this the LaTeX-package
27630 \begin_inset Index idx
27633 \begin_layout Plain Layout
27634 LaTeX-packages ! sidecap
27639 has to be loaded in the document preamble with the line
27642 \begin_layout Standard
27647 usepackage[option]{sidecap}
27650 \begin_layout Standard
27651 If you set no option, the caption is placed on the side of the outer page
27652 margin – to the right on odd pages, to the left on even pages.
27653 You can change the placement to inner margin with the option
27658 To force the placement always to the right or left, use the option
27669 \begin_layout Standard
27673 \begin_layout Plain Layout
27683 \begin_inset Note Note
27686 \begin_layout Plain Layout
27687 The following section will only be displayed when the LaTeX-package
27699 \begin_layout Standard
27700 To place in LyX the caption of a float on the side, it is necessary to add
27701 these commands to the document preamble:
27704 \begin_layout Standard
27705 \begin_inset Newpage pagebreak
27711 \begin_layout Standard
27713 \begin_inset CommandInset line
27724 \begin_layout Standard
27731 TabBesBeg}[1][1.0]{%
27732 \begin_inset Newline newline
27736 \begin_inset Phantom HPhantom
27739 \begin_layout Plain Layout
27740 \begin_inset space ~
27755 \begin_inset Newline newline
27759 \begin_inset Phantom HPhantom
27762 \begin_layout Plain Layout
27765 \begin_inset space ~
27780 \begin_inset Newline newline
27784 \begin_inset Phantom HPhantom
27787 \begin_layout Plain Layout
27790 \begin_inset space ~
27800 renewenvironment{table}[1]{
27802 begin{SCtable}[#1]##1}{
27807 \begin_layout Standard
27815 \begin_inset Newline newline
27819 \begin_inset Phantom HPhantom
27822 \begin_layout Plain Layout
27823 \begin_inset space ~
27838 \begin_inset Newline newline
27842 \begin_inset Phantom HPhantom
27845 \begin_layout Plain Layout
27846 \begin_inset space ~
27863 \begin_layout Standard
27870 FigBesBeg}[1][1.0]{%
27871 \begin_inset Newline newline
27875 \begin_inset Phantom HPhantom
27878 \begin_layout Plain Layout
27879 \begin_inset space ~
27894 \begin_inset Newline newline
27898 \begin_inset Phantom HPhantom
27901 \begin_layout Plain Layout
27902 \begin_inset space ~
27917 \begin_inset Newline newline
27921 \begin_inset Phantom HPhantom
27924 \begin_layout Plain Layout
27925 \begin_inset space ~
27935 renewenvironment{figure}[1]{
27937 begin{SCfigure}[#1]##1}{
27942 \begin_layout Standard
27950 \begin_inset Newline newline
27954 \begin_inset Phantom HPhantom
27957 \begin_layout Plain Layout
27958 \begin_inset space ~
27973 \begin_inset Newline newline
27977 \begin_inset Phantom HPhantom
27980 \begin_layout Plain Layout
27981 \begin_inset space ~
27998 \begin_layout Standard
28000 \begin_inset CommandInset line
28011 \begin_layout Standard
28012 The commands allow you to redefine the floats so that the caption is set
28014 For figure floats use the command
28017 \begin_layout Standard
28025 \begin_layout Standard
28026 in TeX-Code before the float.
28027 And insert the command
28030 \begin_layout Standard
28038 \begin_layout Standard
28039 in TeX-Code at the point where you want to get back to the original float
28043 \begin_layout Standard
28044 For table floats use the corresponding commands
28047 \begin_layout Standard
28061 \begin_layout Standard
28063 \begin_inset space ~
28067 \begin_inset CommandInset ref
28069 reference "fig:cap-beside-fig"
28074 \begin_inset space ~
28078 \begin_inset CommandInset ref
28080 reference "tab:cap-beside-tab"
28084 are examples where the caption is set beside.
28087 \begin_layout Standard
28088 You can see in the examples that the caption text appears at the top of
28089 the floats for table floats and at the bottom for figure floats.
28090 To change this, you can use the command
28093 \begin_layout Standard
28098 sidecaptionvpos{float type}{placement}
28101 \begin_layout Standard
28102 in the document preamble or in TeX-Code before the float.
28103 The float type is either
28111 , the placement can be
28112 \begin_inset Quotes eld
28120 \begin_inset Quotes erd
28124 \begin_inset Quotes eld
28132 \begin_inset Quotes erd
28136 \begin_inset Quotes eld
28144 \begin_inset Quotes erd
28148 To have for example the caption of figure floats vertically centered, use
28152 \begin_layout Standard
28157 sidecaptionvpos{figure}{c}
28160 \begin_layout Standard
28161 This was used for Figure
28162 \begin_inset space ~
28166 \begin_inset CommandInset ref
28168 reference "fig:cap-beside-fig-2"
28175 \begin_layout Standard
28176 \begin_inset VSpace medskip
28182 \begin_layout Standard
28183 The default caption width is the width of the image/table.
28184 For thin image/tables, like in Table
28185 \begin_inset space ~
28189 \begin_inset CommandInset ref
28191 reference "tab:cap-beside-tab"
28195 , this leads to captions that are too thin.
28196 You can increase the width by specifying a factor that will be multiplied
28197 with the image/table width to get the caption width.
28198 The caption width will automatically be recalculated in case it would protrude
28199 over the page or column margin due to the specified width.
28204 can either be given as optional argument for
28213 \begin_layout Standard
28221 \begin_layout Standard
28222 or in the definition of
28232 with another value.
28233 If you do the latter, your factor will be the default if
28239 is used without an argument.
28241 \begin_inset space ~
28245 \begin_inset CommandInset ref
28247 reference "tab:cap-beside-tab-wider"
28251 the factor 5 was used.
28254 \begin_layout Standard
28255 \begin_inset Note Greyedout
28258 \begin_layout Plain Layout
28263 For floats with captions set beside, you cannot use the float placement
28267 \begin_inset space ~
28272 because it is not supported by
28284 \begin_layout Standard
28285 \begin_inset VSpace medskip
28288 For more information about the package
28292 we refer to its documentation
28293 \begin_inset CommandInset citation
28302 \begin_layout Standard
28303 \begin_inset Note Greyedout
28306 \begin_layout Plain Layout
28316 \begin_inset Index idx
28319 \begin_layout Plain Layout
28320 LaTeX-packages ! hypcap
28325 , described in section
28326 \begin_inset space ~
28330 \begin_inset CommandInset ref
28332 reference "sub:Reference-Position"
28336 , has no effect on floats with the caption set beside.
28344 \begin_layout Standard
28348 \begin_layout Plain Layout
28360 \begin_layout Standard
28361 \begin_inset Float figure
28366 \begin_layout Plain Layout
28367 \begin_inset Graphics
28368 filename clipart/escher-lsd.eps
28370 scaleBeforeRotation
28377 \begin_layout Plain Layout
28378 \begin_inset Caption Standard
28380 \begin_layout Plain Layout
28381 \begin_inset CommandInset label
28383 name "fig:cap-beside-fig"
28387 This is a caption beside a figure.
28400 \begin_layout Standard
28404 \begin_layout Plain Layout
28416 \begin_layout Standard
28420 \begin_layout Plain Layout
28432 \begin_layout Standard
28433 \begin_inset Float table
28438 \begin_layout Plain Layout
28439 \begin_inset Caption Standard
28441 \begin_layout Plain Layout
28442 \begin_inset CommandInset label
28444 name "tab:cap-beside-tab"
28448 This is a caption beside a table.
28456 \begin_layout Plain Layout
28457 \begin_inset Tabular
28458 <lyxtabular version="3" rows="4" columns="5">
28459 <features rotate="0" tabularvalignment="middle">
28460 <column alignment="center" valignment="top" width="0">
28461 <column alignment="center" valignment="top" width="0">
28462 <column alignment="center" valignment="top" width="0">
28463 <column alignment="center" valignment="top" width="0">
28464 <column alignment="center" valignment="top" width="0">
28466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28469 \begin_layout Plain Layout
28475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28478 \begin_layout Plain Layout
28484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28487 \begin_layout Plain Layout
28493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28496 \begin_layout Plain Layout
28502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28505 \begin_layout Plain Layout
28513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28516 \begin_layout Plain Layout
28522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28525 \begin_layout Plain Layout
28531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28534 \begin_layout Plain Layout
28540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28543 \begin_layout Plain Layout
28549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28552 \begin_layout Plain Layout
28560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28563 \begin_layout Plain Layout
28569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28572 \begin_layout Plain Layout
28578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28581 \begin_layout Plain Layout
28587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28590 \begin_layout Plain Layout
28596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28599 \begin_layout Plain Layout
28607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28610 \begin_layout Plain Layout
28616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28619 \begin_layout Plain Layout
28625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28628 \begin_layout Plain Layout
28634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28637 \begin_layout Plain Layout
28643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28646 \begin_layout Plain Layout
28665 \begin_layout Standard
28669 \begin_layout Plain Layout
28681 \begin_layout Standard
28685 \begin_layout Plain Layout
28689 sidecaptionvpos{figure}{c}
28695 \begin_inset Float figure
28700 \begin_layout Plain Layout
28701 \begin_inset Graphics
28702 filename clipart/escher-lsd.eps
28704 scaleBeforeRotation
28711 \begin_layout Plain Layout
28712 \begin_inset Caption Standard
28714 \begin_layout Plain Layout
28715 \begin_inset CommandInset label
28717 name "fig:cap-beside-fig-2"
28721 This is a vertically centered caption beside a figure.
28734 \begin_layout Standard
28738 \begin_layout Plain Layout
28750 \begin_layout Standard
28754 \begin_layout Plain Layout
28766 \begin_layout Standard
28767 \begin_inset Float table
28772 \begin_layout Plain Layout
28773 \begin_inset Caption Standard
28775 \begin_layout Plain Layout
28776 \begin_inset CommandInset label
28778 name "tab:cap-beside-tab-wider"
28782 This is a caption is wider than the one in Table
28783 \begin_inset space ~
28787 \begin_inset CommandInset ref
28789 reference "tab:cap-beside-tab"
28801 \begin_layout Plain Layout
28802 \begin_inset Tabular
28803 <lyxtabular version="3" rows="4" columns="5">
28804 <features rotate="0" tabularvalignment="middle">
28805 <column alignment="center" valignment="top" width="0">
28806 <column alignment="center" valignment="top" width="0">
28807 <column alignment="center" valignment="top" width="0">
28808 <column alignment="center" valignment="top" width="0">
28809 <column alignment="center" valignment="top" width="0">
28811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28814 \begin_layout Plain Layout
28820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28823 \begin_layout Plain Layout
28829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28832 \begin_layout Plain Layout
28838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28841 \begin_layout Plain Layout
28847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28850 \begin_layout Plain Layout
28858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28861 \begin_layout Plain Layout
28867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28870 \begin_layout Plain Layout
28876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28879 \begin_layout Plain Layout
28885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28888 \begin_layout Plain Layout
28894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28897 \begin_layout Plain Layout
28905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28908 \begin_layout Plain Layout
28914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28917 \begin_layout Plain Layout
28923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28926 \begin_layout Plain Layout
28932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28935 \begin_layout Plain Layout
28941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28944 \begin_layout Plain Layout
28952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28955 \begin_layout Plain Layout
28961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28964 \begin_layout Plain Layout
28970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28973 \begin_layout Plain Layout
28979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28982 \begin_layout Plain Layout
28988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28991 \begin_layout Plain Layout
29010 \begin_layout Standard
29014 \begin_layout Plain Layout
29026 \begin_layout Standard
29030 \begin_layout Plain Layout
29040 \begin_inset Note Note
29043 \begin_layout Plain Layout
29044 The following will be displayed when the LaTeX-package
29056 \begin_layout Standard
29057 You need to install the LaTeX-package
29061 to see the following part of this section in the output.
29064 \begin_layout Standard
29068 \begin_layout Plain Layout
29080 \begin_layout Section
29082 \begin_inset Index idx
29085 \begin_layout Plain Layout
29086 Floats ! Float Lists
29094 \begin_layout Standard
29095 Similar to the table of contents where the sections of the document are
29096 listed, there are listings for all float types, like the figures of the
29098 You can insert them via the
29100 Insert\SpecialChar \menuseparator
29102 \begin_inset space ~
29106 \begin_inset space ~
29114 \begin_layout Standard
29115 The list entries are the float captions or its short title, the float number,
29116 and the page number where they appear in the document.
29119 \begin_layout Standard
29120 You can find the list of figures and tables at the end of this document.
29123 \begin_layout Chapter
29127 \begin_layout Section
29129 \begin_inset Index idx
29132 \begin_layout Plain Layout
29141 \begin_layout Standard
29142 Notes are inserted with the toolbar button
29150 Insert\SpecialChar \menuseparator
29154 There are three types of notes:
29157 \begin_layout Description
29159 \begin_inset space ~
29162 Note This note type is for internal notes that won't appear in the output.
29163 Its note-box looks like this:
29164 \begin_inset Newline newline
29168 \begin_inset Newline newline
29172 \begin_inset Graphics
29173 filename clipart/LyXNoteImageQt4.png
29176 scaleBeforeRotation
29181 \begin_inset Note Note
29184 \begin_layout Plain Layout
29185 This is text in a note box that doesn't appear in the output.
29193 \begin_layout Description
29194 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
29195 ent, when you export the document to LaTeX via the menu
29197 File\SpecialChar \menuseparator
29198 Export\SpecialChar \menuseparator
29199 LaTeX (pdflatex) / (plain)
29202 Its note-box looks like this:
29203 \begin_inset Newline newline
29207 \begin_inset Newline newline
29211 \begin_inset Graphics
29212 filename clipart/CommentNoteImageQt4.png
29215 scaleBeforeRotation
29220 \begin_inset Note Comment
29223 \begin_layout Plain Layout
29224 This is text in a note box that only appears as comment in LaTeX-files.
29232 \begin_layout Description
29234 \begin_inset space ~
29237 Out This note will appear in the output as grey text.
29238 Its note-box looks like this:
29239 \begin_inset Newline newline
29243 \begin_inset Newline newline
29247 \begin_inset Graphics
29248 filename clipart/GreyedOutNoteImageQt4.png
29251 scaleBeforeRotation
29256 \begin_inset Newline newline
29263 \begin_layout Plain Layout
29267 renewenvironment{lyxgreyedout}
29270 \begin_layout Plain Layout
29274 textcolor[gray]{0.8}
29284 \begin_inset Note Greyedout
29287 \begin_layout Plain Layout
29292 \begin_layout Plain Layout
29293 This is an example footnote within a greyed out note.
29298 of a comment that appears in the output as grey text.
29307 \begin_layout Plain Layout
29311 renewenvironment{lyxgreyedout}
29314 \begin_layout Plain Layout
29328 \begin_inset Note Note
29331 \begin_layout Plain Layout
29332 The greyed out note is here redefined to show it with the original LyX definitio
29333 n because greyed out notes are redefined in the preamble of this document,
29334 as described below, to have blue text.
29340 \begin_inset Newline newline
29344 \begin_inset Newline newline
29347 As you can see in the example, the first line of greyed out notes is a bit
29348 indented and greyed out notes can have footnotes.
29351 \begin_layout Standard
29352 \begin_inset VSpace bigskip
29355 When you use the toolbar button
29364 \begin_inset space ~
29370 You can switch between the three note types by right-clicking on the note-box.
29375 If you want to turn existing text into a note, mark it and click on the
29389 To change a note to text, press the backspace key when the cursor is in
29390 the first position of a note, or press the delete key when the cursor is
29391 in the very last position of the note, respectively.
29394 \begin_layout Standard
29395 \begin_inset VSpace bigskip
29398 You can change the text color of the greyed out notes in the menu
29400 Document\SpecialChar \menuseparator
29401 Settings\SpecialChar \menuseparator
29407 \begin_layout Section
29409 \begin_inset CommandInset label
29411 name "sec:Footnotes"
29416 \begin_inset Index idx
29419 \begin_layout Plain Layout
29426 \begin_inset Index idx
29429 \begin_layout Plain Layout
29438 \begin_layout Standard
29439 Footnotes can be inserted using the toolbar button
29442 arg "footnote-insert"
29447 Insert\SpecialChar \menuseparator
29451 You will then see the following footnote-box:
29452 \begin_inset Graphics
29453 filename clipart/footnoteQt4.png
29455 scaleBeforeRotation
29463 where you can enter the footnote text.
29464 If you want to turn existing text into a footnote, mark it and click on
29490 key when the cursor is in the first position of a
29502 key when the cursor is in the very last position of the
29513 \begin_layout Standard
29514 Here is an example footnote:
29522 \begin_layout Plain Layout
29523 \begin_inset CommandInset label
29525 name "foot:This-is-an"
29529 This is an example footnote.
29542 \begin_layout Plain Layout
29546 newcounter{MyRepeatFoot}
29549 \begin_layout Plain Layout
29553 setcounter{MyRepeatFoot}{
29563 \begin_layout Standard
29564 The footnote will appear in the output as a superscript number at the text
29565 position where the footnote box is placed.
29566 The footnote text is placed at the bottom of the current page.
29567 The footnote number is calculated by LaTeX; the numbers are consecutive.
29568 Whether the footnote number is reset for every chapter depends on your
29572 \begin_layout Standard
29573 Footnotes can be referenced like floats: Insert a label into the footnote
29574 and cross-reference this label in the text as described in section
29575 \begin_inset space ~
29579 \begin_inset CommandInset ref
29581 reference "sec:Referencing-Floats"
29586 \begin_inset Newline newline
29589 This is a cross-reference of Footnote
29590 \begin_inset space ~
29594 \begin_inset CommandInset ref
29596 reference "foot:This-is-an"
29603 \begin_layout Standard
29604 \begin_inset VSpace defskip
29607 Footnotes in tables are not printed by LaTeX due to technical reasons.
29608 However there exists another method to print them: Instead of the footnote
29615 is inserted as TeX-code.
29616 The text of the footnote is entered as an argument of the TeX-code command
29624 \begin_inset Newline newline
29627 This was done for the following table with the command
29630 \begin_layout Standard
29637 Printed table footnote.
29642 \begin_layout Standard
29643 \begin_inset Tabular
29644 <lyxtabular version="3" rows="2" columns="1">
29645 <features rotate="0" tabularvalignment="middle">
29646 <column alignment="center" valignment="top" width="0">
29648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29651 \begin_layout Plain Layout
29652 This an example text.
29656 \begin_layout Plain Layout
29657 This footnote will not be printed!
29669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29672 \begin_layout Plain Layout
29673 This an example text.
29677 \begin_layout Plain Layout
29700 \begin_layout Plain Layout
29709 Printed table footnote.
29713 \begin_layout Plain Layout
29723 \begin_layout Standard
29724 Footnotes in longtables are described in section
29725 \begin_inset space ~
29729 \begin_inset CommandInset ref
29731 reference "sub:Footnotes-in-Longtables"
29738 \begin_layout Standard
29739 Footnotes in minipage boxes are printed, but inside the box and with a different
29740 numbering because a minipage box is like a page inside a page.
29741 (For more about minipages, see section
29742 \begin_inset space ~
29746 \begin_inset CommandInset ref
29748 reference "sec:Minipages"
29752 .) To get a footnote in the minipage that is output at the bottom of the
29753 page like normal footnotes, also use the method of
29768 \begin_layout Standard
29769 \begin_inset Box Frameless
29779 height_special "totalheight"
29782 \begin_layout Plain Layout
29783 This an example text in a minipage.
29787 \begin_layout Plain Layout
29788 Footnote in the minipage.
29796 \begin_layout Plain Layout
29797 This an example text in a minipage.
29801 \begin_layout Plain Layout
29818 \begin_layout Standard
29822 \begin_layout Plain Layout
29831 Footnote outside the minipage.
29835 \begin_layout Plain Layout
29845 \begin_layout Standard
29846 \begin_inset VSpace defskip
29852 \begin_layout Standard
29853 To refer to the same footnote several times without printing the footnote
29854 text every time, use the command
29858 footnotemark[number]
29861 \begin_inset Newline newline
29864 As you do not know the number of the repeating footnote while you are writing
29865 the text, you have to store its number.
29866 For the following footnote mark example, these commands were inserted in
29867 TeX-code after Footnote
29868 \begin_inset space ~
29872 \begin_inset CommandInset ref
29874 reference "foot:This-is-an"
29878 to store the footnote number:
29881 \begin_layout Standard
29886 newcounter{MyRepeatFoot}
29887 \begin_inset Newline newline
29892 setcounter{MyRepeatFoot}{
29897 \begin_layout Standard
29898 The footnote mark was then created with this command:
29901 \begin_layout Standard
29911 \begin_layout Standard
29912 Here is a repeated footnote:
29920 \begin_layout Plain Layout
29934 \begin_layout Standard
29935 If you want to repeat the previous footnote, you can omit the storage of
29936 the footnote number and just use this command instead:
29939 \begin_layout Standard
29949 \begin_layout Standard
29950 Here is another repeated footnote:
29958 \begin_layout Plain Layout
29972 \begin_layout Subsection
29974 \begin_inset CommandInset label
29976 name "sub:Footnote-Numbering"
29981 \begin_inset Index idx
29984 \begin_layout Plain Layout
29985 Footnotes ! Numbering
29993 \begin_layout Standard
29994 To reset the footnote number back to 1 after each section
29996 , add this command to your document preamble:
29999 \begin_layout Standard
30004 @addtoreset{footnote}{section}
30007 \begin_layout Standard
30008 \begin_inset VSpace bigskip
30011 The following preamble command changes the footnote numbering style to small
30015 \begin_layout Standard
30027 \begin_layout Standard
30031 \begin_layout Plain Layout
30044 This is a footnote with roman numbering:
30048 \begin_layout Plain Layout
30049 This is an example footnote with roman numbering.
30057 \begin_layout Standard
30058 To change the numbering style to capital roman numerals replace in the command
30073 \begin_inset Quotes eld
30077 \begin_inset Quotes erd
30080 footnotes with capital or small Latin letters use
30094 \begin_inset Quotes eld
30098 \begin_inset Quotes erd
30101 footnotes with symbols use
30110 \begin_layout Standard
30111 \begin_inset Note Greyedout
30114 \begin_layout Plain Layout
30119 You can only number 26 footnotes with Latin letters, because this numbering
30120 is limited to single letters.
30126 \begin_inset Newline newline
30130 \begin_inset Note Greyedout
30133 \begin_layout Plain Layout
30138 You can only number 9 footnotes with symbols.
30146 \begin_layout Standard
30147 To return to the default numbering style after you have changed to another
30160 in the command above.
30164 \begin_layout Plain Layout
30180 \begin_layout Standard
30181 \begin_inset VSpace bigskip
30187 \begin_layout Standard
30188 If you want to have footnotes numbered in the scheme
30189 \begin_inset Quotes eld
30193 \begin_inset Quotes erd
30196 , add the following command to your document preamble:
30199 \begin_layout Standard
30204 numberwithin{footnote}{chapter}
30207 \begin_layout Standard
30208 To be able to use the command
30217 \begin_inset space ~
30222 in the document settings the option
30225 \begin_inset space ~
30229 \begin_inset space ~
30233 \begin_inset space ~
30241 \begin_layout Standard
30245 \begin_layout Plain Layout
30249 numberwithin{footnote}{chapter}
30254 This is another example footnote:
30260 \begin_layout Plain Layout
30261 This is a footnote numbered in the scheme
30262 \begin_inset Quotes eld
30266 \begin_inset Quotes erd
30280 \begin_layout Plain Layout
30296 \begin_layout Standard
30297 \begin_inset Note Greyedout
30300 \begin_layout Plain Layout
30311 always prints out the footnote number as arabic number; previous redefinitions
30312 to get non-arabic numbers are overwritten.
30320 \begin_layout Standard
30321 So to get for example the scheme
30322 \begin_inset Quotes eld
30328 \begin_inset Quotes erd
30331 , use this command instead of
30340 \begin_layout Standard
30354 \begin_layout Subsection
30356 \begin_inset Index idx
30359 \begin_layout Plain Layout
30360 Footnotes ! Placement
30368 \begin_layout Standard
30369 If you have several footnotes in one page, they appear without vertical
30370 space between them at the bottom of the page.
30371 To make them more readable you can e.
30372 \begin_inset space \thinspace{}
30376 \begin_inset space \space{}
30380 \begin_inset space \thinspace{}
30383 mm space with the following preamble command:
30386 \begin_layout Standard
30396 \begin_inset Newline newline
30410 \begin_layout Standard
30411 \begin_inset VSpace bigskip
30414 In a two-column document the footnotes appear at the bottom of every column,
30416 \begin_inset space ~
30420 \begin_inset CommandInset ref
30422 reference "fig:Standard-footnote-placement"
30427 If the footnotes should only appear at the bottom of the right column,
30429 \begin_inset space ~
30433 \begin_inset CommandInset ref
30435 reference "fig:Footnote-placement-in"
30439 , use the LaTeX-package
30444 \begin_inset Index idx
30447 \begin_layout Plain Layout
30448 LaTeX-packages ! ftnright
30453 with this command in the document preamble:
30456 \begin_layout Standard
30461 usepackage{ftnright}
30464 \begin_layout Standard
30465 \begin_inset Float figure
30471 \begin_layout Plain Layout
30475 \begin_layout Plain Layout
30485 \begin_inset Graphics
30486 filename clipart/without_fntright.pdf
30488 scaleBeforeRotation
30496 \begin_layout Plain Layout
30506 \begin_layout Plain Layout
30507 \begin_inset Caption Standard
30509 \begin_layout Plain Layout
30510 \begin_inset CommandInset label
30512 name "fig:Standard-footnote-placement"
30516 Standard footnote placement in two-column documents.
30529 \begin_layout Standard
30530 \begin_inset Float figure
30536 \begin_layout Plain Layout
30540 \begin_layout Plain Layout
30550 \begin_inset Graphics
30551 filename clipart/with_fntright.pdf
30553 scaleBeforeRotation
30561 \begin_layout Plain Layout
30571 \begin_layout Plain Layout
30572 \begin_inset Caption Standard
30574 \begin_layout Plain Layout
30575 \begin_inset CommandInset label
30577 name "fig:Footnote-placement-in"
30581 Footnote placement in two-column documents when the LaTeX-package
30598 \begin_layout Standard
30599 \begin_inset VSpace bigskip
30602 In some scientific literature it is usual to collect the footnotes and print
30603 them in a separate paragraph at the end of a section, as in Figure
30604 \begin_inset space ~
30608 \begin_inset CommandInset ref
30610 reference "fig:Endnotes"
30615 They are then called
30616 \begin_inset Quotes eld
30620 \begin_inset Quotes erd
30624 \begin_inset Index idx
30627 \begin_layout Plain Layout
30633 To use endnotes instead of footnotes in your document, load in the menu
30636 Document\SpecialChar \menuseparator
30637 Settings\SpecialChar \menuseparator
30643 \begin_inset space ~
30647 \begin_inset space ~
30653 To insert the collected footnotes, insert the command
30656 \begin_layout Standard
30664 \begin_layout Standard
30665 in TeX-Code at the end of a section or chapter.
30668 \begin_layout Standard
30669 \begin_inset Float figure
30674 \begin_layout Plain Layout
30679 \begin_layout Plain Layout
30689 \begin_inset Graphics
30690 filename clipart/endnotes.pdf
30691 scaleBeforeRotation
30699 \begin_layout Plain Layout
30709 \begin_layout Plain Layout
30710 \begin_inset Caption Standard
30712 \begin_layout Plain Layout
30713 \begin_inset CommandInset label
30715 name "fig:Endnotes"
30719 Endnotes – footnotes are printed in a separate paragraph at the end of sections
30733 \begin_layout Standard
30734 \begin_inset VSpace medskip
30737 The paragraph heading for the endnotes isn't automatically translated into
30738 the document language, this must be done manually.
30739 The following preamble command translates the default English
30740 \begin_inset Quotes eld
30744 \begin_inset Quotes erd
30748 \begin_inset Quotes eld
30752 \begin_inset Quotes erd
30758 \begin_layout Standard
30765 notesname}{Anmerkungen}
30768 \begin_layout Standard
30769 \begin_inset VSpace medskip
30772 The numbering of endnotes can be changed like the footnote numbering as
30773 described in section
30774 \begin_inset space ~
30778 \begin_inset CommandInset ref
30780 reference "sub:Footnote-Numbering"
30784 ; just replace the command
30797 To reset the endnote number use the command
30803 as described in section
30804 \begin_inset space ~
30808 \begin_inset CommandInset ref
30810 reference "sub:Footnote-Numbering"
30814 and replace the command parameter
30825 \begin_layout Standard
30826 For endnotes there is the command
30830 endnotemark[number]
30832 similar to the command
30838 , that is described in section
30839 \begin_inset space ~
30843 \begin_inset CommandInset ref
30845 reference "sec:Footnotes"
30852 \begin_layout Standard
30853 \begin_inset VSpace bigskip
30856 Footnotes can also be placed in the page margin and the footnote text alignment
30857 can be changed, see the LaTeX-package
30862 \begin_inset Index idx
30865 \begin_layout Plain Layout
30866 LaTeX-packages ! footmisc
30872 \begin_inset CommandInset citation
30878 for more information about this.
30881 \begin_layout Standard
30882 For various further footnote formatting issues have a look at LaTeX-books,
30884 \begin_inset CommandInset citation
30886 key "latexcompanion,latexguide,latexbook"
30896 \begin_inset Index idx
30899 \begin_layout Plain Layout
30900 LaTeX-packages ! KOMA-Script
30905 document class, you can adjust all footnote settings using class-specific
30907 \begin_inset CommandInset citation
30916 \begin_layout Section
30918 \begin_inset Index idx
30921 \begin_layout Plain Layout
30922 Notes ! Margin Notes
30930 \begin_layout Standard
30931 Margin notes look and behave in LyX like footnotes.
30932 They are inserted via the menu
30934 Insert\SpecialChar \menuseparator
30936 \begin_inset space ~
30941 or the toolbar button
30944 arg "marginalnote-insert"
30958 \begin_inset Quotes eld
30962 \begin_inset Quotes erd
30965 appears where you can enter the text of the margin note.
30968 \begin_layout Standard
30969 At the side is an example margin note.
30974 \begin_inset Marginal
30977 \begin_layout Plain Layout
30978 This is a margin note.
30986 \begin_layout Standard
30987 Margin notes appear at the right side in single-sided documents.
30988 In double-sided documents they appear in the outer margin – left on even
30989 pages, right on odd pages.
30990 The text of margin notes is aligned opposite to the outer margin – right-aligne
30991 d when the note appears in the left margin.
30992 The first line of the margin note is placed at the position of the text
30993 line where it is inserted in the document.
30996 \begin_layout Standard
30997 \begin_inset VSpace bigskip
31000 To place the margin note in the inner margin, add the command
31003 \begin_layout Standard
31011 \begin_layout Standard
31012 in TeX-Code before a margin note.
31013 The new placement is valid for all subsequent margin notes.
31018 \begin_layout Plain Layout
31028 \begin_inset Marginal
31031 \begin_layout Plain Layout
31032 This is a margin note in the inner margin.
31040 \begin_inset Newline newline
31046 \begin_inset Note Greyedout
31049 \begin_layout Plain Layout
31054 There is often not enough space in the inner margin so that the notes are
31055 not correctly displayed in the output.
31063 \begin_layout Standard
31064 To return to the default placement insert the command
31067 \begin_layout Standard
31075 \begin_layout Standard
31080 \begin_layout Plain Layout
31090 \begin_inset Note Greyedout
31093 \begin_layout Plain Layout
31098 The command is ignored when it is within a paragraph where also the command
31113 \begin_layout Standard
31114 \begin_inset VSpace bigskip
31121 \begin_inset Marginal
31124 \begin_layout Plain Layout
31125 AVeryLongMarginParWord that isn't hyphenated.
31133 Similar to the case described in section
31134 \begin_inset space ~
31138 \begin_inset CommandInset ref
31140 reference "sub:Multiple-Lines-in"
31144 , long words cannot be hyphenated when they are the first word in a margin
31146 To avoid this, insert 0
31147 \begin_inset space \thinspace{}
31150 pt horizontal space before the word
31155 \begin_inset Marginal
31158 \begin_layout Plain Layout
31159 \begin_inset space \hspace*{}
31163 AVeryLongMarginParWord that is hyphenated.
31171 \begin_layout Standard
31172 \begin_inset VSpace bigskip
31178 \begin_layout Standard
31179 \begin_inset Note Greyedout
31182 \begin_layout Plain Layout
31187 Margin notes can normally not be used inside tables, floats, and footnotes.
31195 \begin_layout Standard
31196 \begin_inset VSpace bigskip
31202 \begin_layout Standard
31206 \begin_layout Plain Layout
31216 \begin_inset Note Note
31219 \begin_layout Plain Layout
31220 The following section will only be displayed when the LaTeX-package
31232 \begin_layout Standard
31233 This restriction can be evaded by using the LaTeX-package
31238 \begin_inset Index idx
31241 \begin_layout Plain Layout
31242 LaTeX-packages ! marginnote
31248 By adding these two lines to your document preamble, the command used by
31249 LyX for margin notes is redefined to use the command provided by the
31256 \begin_layout Standard
31261 usepackage{marginnote}
31262 \begin_inset Newline newline
31274 \begin_layout Standard
31275 This is also used in this document because
31279 has another useful feature: You can set a vertical offset for the note.
31280 This is often needed when too many margin notes are too close together
31281 or for a better page layout.
31282 The offset is set in LyX as TeX-Code directly after the margin note in
31286 \begin_layout Standard
31292 \begin_layout Standard
31293 where the offset is a length with one of the units listed in Table
31294 \begin_inset space ~
31298 \begin_inset CommandInset ref
31300 reference "tab:Units"
31305 A negative value shifts the note up, a positive value shifts it down.
31309 For example the margin note beside this text line is shifted up 1.5
31310 \begin_inset space \thinspace{}
31313 cm with the TeX-Code-command
31314 \begin_inset Quotes eld
31324 \begin_inset Quotes erd
31328 \begin_inset Marginal
31331 \begin_layout Plain Layout
31332 This margin note is shifted up 1.5
31333 \begin_inset space \thinspace{}
31336 cm from its original position.
31348 \begin_layout Plain Layout
31358 \begin_layout Standard
31359 \begin_inset VSpace medskip
31366 you can also change the alignment of the text in the margin note.
31367 For example the commands
31370 \begin_layout Standard
31377 raggedleftmarginnote}{
31380 \begin_inset Newline newline
31387 raggedrightmarginnote}{
31392 \begin_layout Standard
31393 set the alignment to centered.
31398 raggedleftmarginnote
31400 denotes margin notes that appear at the left side.
31407 \begin_layout Plain Layout
31413 raggedleftmarginnote}{
31418 \begin_layout Plain Layout
31424 raggedrightmarginnote}{
31432 \begin_inset Marginal
31435 \begin_layout Plain Layout
31436 The text of this margin note is centered.
31447 \begin_layout Standard
31454 raggedleftmarginnote}{
31457 \begin_inset Newline newline
31464 raggedrightmarginnote}{
31473 \begin_layout Plain Layout
31479 raggedleftmarginnote}{
31484 \begin_layout Plain Layout
31490 raggedrightmarginnote}{
31500 \begin_layout Standard
31501 \begin_inset VSpace medskip
31504 For the other features of
31508 refer to its documentation
31509 \begin_inset CommandInset citation
31518 \begin_layout Standard
31519 \begin_inset VSpace bigskip
31522 You can adjust the layout of margin notes by changing its definition.
31523 To create for example a header for all margin notes with the underlined,
31524 sans-serif, and bold header text
31525 \begin_inset Quotes eld
31537 \begin_inset Quotes erd
31540 , add this to your document preamble:
31543 \begin_layout Standard
31553 \begin_inset Newline newline
31563 \begin_inset Newline newline
31567 \begin_inset Phantom HPhantom
31570 \begin_layout Plain Layout
31573 \begin_inset space ~
31589 underbar{Attention!}}}%
31590 \begin_inset Newline newline
31594 \begin_inset Phantom HPhantom
31597 \begin_layout Plain Layout
31600 \begin_inset space ~
31617 \begin_layout Standard
31624 \begin_layout Plain Layout
31635 \begin_layout Plain Layout
31646 \begin_layout Plain Layout
31654 underbar{Attention!}}}%
31657 \begin_layout Plain Layout
31671 \begin_inset Marginal
31674 \begin_layout Plain Layout
31675 This is a margin note with a defined heading.
31687 \begin_layout Plain Layout
31701 \begin_layout Plain Layout
31718 \begin_inset Note Note
31721 \begin_layout Plain Layout
31722 The margin note format is changed only for this example.
31730 \begin_layout Standard
31734 \begin_layout Plain Layout
31744 \begin_inset Note Note
31747 \begin_layout Plain Layout
31748 The following will be displayed when the LaTeX-package
31760 \begin_layout Standard
31761 You need to install the LaTeX-package
31765 to see the following part of this section in the output.
31768 \begin_layout Standard
31772 \begin_layout Plain Layout
31784 \begin_layout Chapter
31788 \begin_layout Section
31790 \begin_inset Index idx
31793 \begin_layout Plain Layout
31794 Boxes ! Introduction
31802 \begin_layout Standard
31803 Boxes are used to format a block of text.
31804 Boxes can be used to write documents with multiple languages, see section
31805 \begin_inset space ~
31809 \begin_inset CommandInset ref
31811 reference "sec:Minipages"
31815 , to frame texts, see section
31816 \begin_inset space ~
31820 \begin_inset CommandInset ref
31822 reference "sec:Decoration"
31826 , to prevent words from being hyphenated, see section
31827 \begin_inset space ~
31831 \begin_inset CommandInset ref
31833 reference "sec:Prevent-Hyphenation"
31837 , to align text, see section
31838 \begin_inset space ~
31842 \begin_inset CommandInset ref
31844 reference "sub:Vertical-Alignment"
31848 , or to set the background color of texts, see section
31849 \begin_inset space ~
31853 \begin_inset CommandInset ref
31855 reference "sec:Colored-Boxes"
31862 \begin_layout Standard
31863 Boxes can be inserted with the menu
31865 Insert\SpecialChar \menuseparator
31868 or the toolbar button
31871 arg "box-insert Frameless"
31875 A grey box with the label
31880 \begin_inset Graphics
31881 filename clipart/BoxInsetDefaultQt4.png
31883 scaleBeforeRotation
31888 The box type can be specified by right-clicking on the box and selecting
31894 The box dialog offers the
31897 \begin_inset space ~
31919 is the default for new boxes and is explained in section
31920 \begin_inset space ~
31924 \begin_inset CommandInset ref
31926 reference "sec:Minipages"
31934 is described in section
31935 \begin_inset space ~
31939 \begin_inset CommandInset ref
31941 reference "sec:Parboxes"
31950 \begin_inset CommandInset ref
31952 reference "sec:Prevent-Hyphenation"
31959 \begin_layout Standard
31960 Boxes are not numbered and can therefore not be referenced like floats or
31964 \begin_layout Standard
31965 \begin_inset Note Greyedout
31968 \begin_layout Plain Layout
31973 Boxes must not be the item in an
31989 \begin_layout Standard
31990 \begin_inset Note Greyedout
31993 \begin_layout Plain Layout
31998 For an unknown reason you can only set the
32001 \begin_inset space ~
32010 when you use a framed box.
32014 \begin_inset space ~
32019 type and without frames are explained in section
32020 \begin_inset space ~
32024 \begin_inset CommandInset ref
32026 reference "sec:Prevent-Hyphenation"
32038 \begin_layout Section
32040 \begin_inset CommandInset label
32042 name "sec:Box-Dialog"
32047 \begin_inset Index idx
32050 \begin_layout Plain Layout
32059 \begin_layout Subsection
32061 \begin_inset Index idx
32064 \begin_layout Plain Layout
32073 \begin_layout Standard
32074 In the box dialog you can adjust the box geometry in the fields
32083 The available units for the geometry are explained in Table
32084 \begin_inset space ~
32088 \begin_inset CommandInset ref
32090 reference "tab:Units"
32099 offers the following additional sizes:
32102 \begin_layout Description
32103 Depth This is the plain text
32104 \begin_inset Quotes eld
32108 \begin_inset Quotes erd
32112 It ignores the total depth when there are multiple text lines in the box:
32113 \begin_inset Newline newline
32117 \begin_inset Newline newline
32121 \begin_inset Newline newline
32125 \begin_inset Box Boxed
32135 height_special "depth"
32138 \begin_layout Plain Layout
32140 Box height set to 1
32141 \begin_inset space \thinspace{}
32150 \begin_inset Newline newline
32154 \begin_inset Newline newline
32160 \begin_layout Description
32161 Height This is the height of the text that is inside the box.
32163 \begin_inset space \thinspace{}
32167 \begin_inset space \space{}
32170 2 for this size will set the box height to 2
32171 \begin_inset space ~
32174 times the text height:
32175 \begin_inset Box Boxed
32185 height_special "height"
32188 \begin_layout Plain Layout
32190 Box height set to 2
32191 \begin_inset space \thinspace{}
32202 \begin_layout Description
32204 \begin_inset space ~
32207 Height This is the Height
32208 \begin_inset space \thinspace{}
32212 \begin_inset space \thinspace{}
32216 \begin_inset Box Boxed
32226 height_special "totalheight"
32229 \begin_layout Plain Layout
32231 Box height set to 1
32232 \begin_inset space \thinspace{}
32236 \begin_inset space ~
32247 \begin_layout Description
32248 Width This sets the width of the box as height:
32249 \begin_inset Box Boxed
32259 height_special "width"
32262 \begin_layout Plain Layout
32264 Box height set to 1
32265 \begin_inset space \thinspace{}
32276 \begin_layout Subsection
32278 \begin_inset Index idx
32281 \begin_layout Plain Layout
32290 \begin_layout Standard
32291 When you have chosen an
32294 \begin_inset space ~
32299 , the vertical box alignment can be:
32302 \begin_layout Description
32303 Top This is an example text line.
32305 \begin_inset Box Boxed
32315 height_special "totalheight"
32318 \begin_layout Plain Layout
32320 This box is top-aligned.
32325 This is an example text line.
32328 \begin_layout Description
32329 Middle This is an example text line.
32331 \begin_inset Box Boxed
32341 height_special "totalheight"
32344 \begin_layout Plain Layout
32346 This box is middle-aligned.
32351 This is an example text line.
32354 \begin_layout Description
32355 Bottom This is an example text line.
32357 \begin_inset Box Boxed
32367 height_special "totalheight"
32370 \begin_layout Plain Layout
32372 This box is bottom-aligned.
32377 This is an example text line.
32380 \begin_layout Standard
32381 \begin_inset Note Greyedout
32384 \begin_layout Plain Layout
32389 The vertical box alignment can be lost in the output when you have two
32390 boxes in a line and one has e.
32391 \begin_inset space \thinspace{}
32395 \begin_inset space \space{}
32398 a shadow and the other one not.
32406 \begin_layout Standard
32407 The horizontal box alignment can be set via LyX's paragraph dialog when
32408 you set the box into its own paragraph.
32411 \begin_layout Standard
32412 \begin_inset VSpace bigskip
32415 When you have chosen an
32418 \begin_inset space ~
32423 , the box content can be aligned vertically to:
32426 \begin_layout Description
32427 top This is an example text line.
32429 \begin_inset Box Boxed
32439 height_special "totalheight"
32442 \begin_layout Plain Layout
32444 This box text is top-aligned.
32449 This is an example text line.
32452 \begin_layout Description
32453 middle This is an example text line.
32455 \begin_inset Box Boxed
32465 height_special "totalheight"
32468 \begin_layout Plain Layout
32470 This box text is middle-aligned.
32475 This is an example text line.
32478 \begin_layout Description
32479 bottom This is an example text line.
32481 \begin_inset Box Boxed
32491 height_special "totalheight"
32494 \begin_layout Plain Layout
32496 This box text is bottom-aligned.
32501 This is an example text line.
32504 \begin_layout Description
32505 stretch This is an example text line.
32507 \begin_inset Box Boxed
32517 height_special "totalheight"
32520 \begin_layout Plain Layout
32525 \begin_layout Plain Layout
32530 \begin_layout Plain Layout
32537 This is an example text line.
32540 \begin_layout Standard
32541 To stretch the box content, it must consist of more than one paragraph.
32542 In the example above every text line is in an own paragraph.
32545 \begin_layout Standard
32546 \begin_inset VSpace bigskip
32549 To align the box content horizontally you can use LyX's paragraph dialog
32550 when you have chosen an
32553 \begin_inset space ~
32561 \begin_layout Standard
32563 \begin_inset Box Boxed
32573 height_special "totalheight"
32576 \begin_layout Plain Layout
32581 \begin_layout Plain Layout
32586 \begin_layout Plain Layout
32596 \begin_layout Standard
32597 If you have not set an
32600 \begin_inset space ~
32605 , you can align the box content horizontally in the box dialog.
32608 \begin_layout Standard
32610 \begin_inset Box Boxed
32620 height_special "totalheight"
32623 \begin_layout Plain Layout
32624 This box text is horizontally stretched.
32632 \begin_layout Subsection
32634 \begin_inset CommandInset label
32636 name "sec:Decoration"
32641 \begin_inset Index idx
32644 \begin_layout Plain Layout
32653 \begin_layout Standard
32654 The type of the box can be specified in the box dialog in the drop-down
32660 The following types are possible:
32663 \begin_layout Description
32665 \begin_inset space ~
32668 frame Nothing is drawn.
32671 \begin_layout Description
32673 \begin_inset space ~
32677 \begin_inset space ~
32680 frame This draws a rectangular frame around the box.
32681 The frame line thickness has the size of
32689 \begin_inset Box Boxed
32699 height_special "totalheight"
32702 \begin_layout Plain Layout
32712 \begin_layout Description
32714 \begin_inset space ~
32718 \begin_inset space ~
32721 thin This draws an oval frame around the box.
32722 The frame line thickness has the size 0.4
32723 \begin_inset space \thinspace{}
32728 \begin_inset Box ovalbox
32738 height_special "totalheight"
32741 \begin_layout Plain Layout
32751 \begin_layout Description
32753 \begin_inset space ~
32757 \begin_inset space ~
32760 thick This draws an oval frame around the box.
32761 The frame line thickness has the size 0.8
32762 \begin_inset space \thinspace{}
32767 \begin_inset Box Ovalbox
32777 height_special "totalheight"
32780 \begin_layout Plain Layout
32790 \begin_layout Description
32792 \begin_inset space ~
32795 shadow This draws a rectangular frame with a shadow around the box.
32796 The frame line thickness has the size of
32802 , the shadow has a width of 4
32803 \begin_inset space \thinspace{}
32808 \begin_inset Box Shadowbox
32818 height_special "totalheight"
32821 \begin_layout Plain Layout
32831 \begin_layout Description
32833 \begin_inset space ~
32836 background This draws a box with a red background.
32837 Unlike colored boxes
32841 \begin_layout Plain Layout
32843 \begin_inset space \thinspace{}
32847 \begin_inset CommandInset ref
32849 reference "sec:Colored-Boxes"
32858 , it always uses the whole column width and the box is set as its own paragraph.
32860 \begin_inset Box Shaded
32870 height_special "totalheight"
32873 \begin_layout Plain Layout
32874 Shaded background box
32882 \begin_layout Description
32884 \begin_inset space ~
32888 \begin_inset space ~
32891 frame This draws a double-line rectangular frame around the box.
32892 The line thickness of the inner frame is 0.75
32893 \begin_inset space \thinspace{}
32902 , the thickness of the outer frame is 1.5
32903 \begin_inset space \thinspace{}
32913 The distance between the lines is 1.5
32914 \begin_inset space \thinspace{}
32924 \begin_inset space \thinspace{}
32928 \begin_inset space \thinspace{}
32932 \begin_inset space \thinspace{}
32937 \begin_inset Box Doublebox
32947 height_special "totalheight"
32950 \begin_layout Plain Layout
32952 Double rectangular box
32960 \begin_layout Standard
32961 \begin_inset VSpace bigskip
32964 LyX's box label will reflect the different frame types.
32965 To be able to use all types, the LaTeX-package
32970 \begin_inset Index idx
32973 \begin_layout Plain Layout
32974 LaTeX-packages ! fancybox
32982 \begin_layout Standard
32983 \begin_inset VSpace bigskip
32986 When you use the decoration
32988 simple rectangular frame
32990 and no inner box, you can allow page breaks within a box.
32991 Note that then, unlike other framed boxes, the frame always uses the whole
32992 column width, the box is set as its own paragraph, and
33004 have no effect on this box type.
33005 The frame line thickness has the size of
33013 \begin_inset Box Framed
33023 height_special "totalheight"
33026 \begin_layout Plain Layout
33027 Allow page break box
33035 \begin_layout Section
33037 \begin_inset Index idx
33040 \begin_layout Plain Layout
33041 Boxes ! Customization
33049 \begin_layout Standard
33050 The default value for the size
33057 \begin_inset space \thinspace{}
33061 It can be changed with the following command in TeX-code to e.
33062 \begin_inset space \thinspace{}
33066 \begin_inset space \space{}
33070 \begin_inset space \thinspace{}
33076 \begin_layout Standard
33086 \begin_layout Standard
33090 \begin_layout Plain Layout
33102 \begin_inset Box Boxed
33112 height_special "totalheight"
33115 \begin_layout Plain Layout
33117 Rectangular box with
33124 \begin_inset space \thinspace{}
33128 \begin_inset space \thinspace{}
33132 \begin_inset space \thinspace{}
33144 \begin_layout Plain Layout
33158 \begin_layout Standard
33159 \begin_inset VSpace bigskip
33162 The space between the frame and the box content is for all frame styles
33164 \begin_inset space \thinspace{}
33168 You can change it by setting the length
33175 For example the command
33178 \begin_layout Standard
33188 \begin_layout Standard
33189 sets the value to 10
33190 \begin_inset space \thinspace{}
33193 pt, as with the following box:
33196 \begin_layout Standard
33200 \begin_layout Plain Layout
33212 \begin_inset Box Boxed
33222 height_special "totalheight"
33225 \begin_layout Plain Layout
33227 Rectangular box with
33234 \begin_inset space \thinspace{}
33238 \begin_inset space \thinspace{}
33242 \begin_inset space \thinspace{}
33254 \begin_layout Plain Layout
33268 \begin_layout Standard
33269 \begin_inset VSpace bigskip
33272 The diameter of the round corners of the oval boxes can be set with the
33283 \begin_layout Standard
33291 \begin_layout Standard
33292 sets the diameter to 1
33293 \begin_inset space \thinspace{}
33300 \begin_layout Standard
33308 \begin_layout Standard
33309 sets the diameter to
33312 \begin_inset space \thinspace{}
33316 \begin_inset space \thinspace{}
33319 minimum(width and height of box)
33331 \begin_layout Standard
33335 \begin_layout Plain Layout
33345 \begin_inset Box Ovalbox
33355 height_special "totalheight"
33358 \begin_layout Plain Layout
33367 \begin_inset space \thinspace{}
33371 \begin_inset space \thinspace{}
33375 \begin_inset space \thinspace{}
33387 \begin_layout Plain Layout
33399 \begin_layout Standard
33400 \begin_inset VSpace bigskip
33403 The size of the shadow can be adjusted by changing the length
33411 \begin_inset space \thinspace{}
33414 pt for the following box by this command:
33417 \begin_layout Standard
33427 \begin_layout Standard
33431 \begin_layout Plain Layout
33443 \begin_inset Box Shadowbox
33453 height_special "totalheight"
33456 \begin_layout Plain Layout
33465 \begin_inset space \thinspace{}
33469 \begin_inset space \thinspace{}
33473 \begin_inset space \thinspace{}
33485 \begin_layout Plain Layout
33499 \begin_layout Standard
33500 \begin_inset VSpace bigskip
33506 \begin_layout Standard
33507 The default value for the size
33514 \begin_inset space \thinspace{}
33518 The default space between the note content and the frame is 9
33519 \begin_inset space \thinspace{}
33522 pt and can be changed with the value of
33529 For example the frame appearance of the following
33533 is set with the TeX-Code commands
33536 \begin_layout Standard
33544 \begin_inset Newline newline
33554 \begin_layout Standard
33558 \begin_layout Plain Layout
33567 \begin_layout Plain Layout
33579 \begin_inset Box Framed
33589 height_special "totalheight"
33592 \begin_layout Plain Layout
33606 \begin_layout Plain Layout
33615 \begin_layout Plain Layout
33629 \begin_layout Standard
33630 \begin_inset VSpace bigskip
33636 \begin_layout Standard
33641 boxes the default space between the box content and the box border is 3
33642 \begin_inset space \thinspace{}
33645 pt and can be changed with the value of
33652 The default background color red can either be changed locally with the
33657 definecolor{shadecolor}
33659 or globally with the menu
33661 Tools\SpecialChar \menuseparator
33662 Preferences\SpecialChar \menuseparator
33663 Colors\SpecialChar \menuseparator
33665 \begin_inset space ~
33677 command is explained in section
33678 \begin_inset space ~
33682 \begin_inset CommandInset ref
33684 reference "sec:Colored-Tables"
33692 \begin_layout Plain Layout
33699 requires the LaTeX-package
33703 in the preamble, see section
33704 \begin_inset space ~
33708 \begin_inset CommandInset ref
33710 reference "sec:Colored-Boxes"
33719 For example the appearance of the following shaded background box is set
33720 with the TeX-Code commands
33723 \begin_layout Standard
33733 \begin_inset Newline newline
33740 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33743 \begin_layout Standard
33747 \begin_layout Plain Layout
33756 \begin_layout Plain Layout
33760 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33766 \begin_inset Box Shaded
33776 height_special "totalheight"
33779 \begin_layout Plain Layout
33782 This is yellow text in a
33792 box with dark green background.
33801 \begin_layout Plain Layout
33810 \begin_layout Plain Layout
33814 definecolor{shadecolor}{rgb}{1,0,0}
33822 \begin_layout Standard
33823 \begin_inset VSpace bigskip
33826 Changed lengths and widths are valid for all boxes following the commands
33830 \begin_layout Section
33832 \begin_inset CommandInset label
33834 name "sec:Minipages"
33839 \begin_inset Index idx
33842 \begin_layout Plain Layout
33851 \begin_layout Standard
33852 Minipages are treated by LaTeX as pages within pages and can therefore for
33853 example have their own footnotes.
33856 \begin_layout Standard
33857 Minipages are useful when you write documents with different languages.
33860 \begin_layout Standard
33861 Below are two example minipages side by side.
33862 Their width is set to 45
33863 \begin_inset space \thinspace{}
33866 col% and they are separated by a horizontal fill, that was inserted via
33869 Insert\SpecialChar \menuseparator
33871 \begin_inset space ~
33874 Formatting\SpecialChar \menuseparator
33876 \begin_inset space ~
33882 \begin_inset Newpage newpage
33888 \begin_layout Standard
33889 \begin_inset Box Frameless
33899 height_special "totalheight"
33902 \begin_layout Plain Layout
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.
33915 Dies ist ein deutscher Text.
33916 Dies ist ein deutscher Text.
33917 Dies ist ein deutscher Text
33921 \begin_layout Plain Layout
33924 Dies ist eine deutsche Fußnote.
33930 Dies ist ein deutscher Text.
33931 Dies ist ein deutscher Text.
33937 \begin_inset space \hfill{}
33941 \begin_inset Box Frameless
33951 height_special "totalheight"
33954 \begin_layout Plain Layout
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.
33968 This is an English Text.
33969 This is an English Text.
33970 This is an English Text.
33974 \begin_layout Plain Layout
33975 This is an English footnote.
33980 This is an English Text.
33988 \begin_layout Standard
33989 \begin_inset VSpace bigskip
33992 The document-wide paragraph settings are ignored within minipages.
33993 That means that there will be no space between paragraphs in minipages
33994 although you set it to e.
33995 \begin_inset space \thinspace{}
33999 \begin_inset space \space{}
34006 in the document settings.
34009 \begin_layout Standard
34010 Minipages can also be used to set a background color for text parts, see
34012 \begin_inset space ~
34016 \begin_inset CommandInset ref
34018 reference "sub:Color-for-Paragraphs"
34025 \begin_layout Standard
34026 \begin_inset Note Greyedout
34029 \begin_layout Plain Layout
34034 You cannot have floats or margin notes inside minipages but minipages can
34035 be used inside tables, floats, and other boxes.
34043 \begin_layout Section
34045 \begin_inset CommandInset label
34047 name "sec:Parboxes"
34052 \begin_inset Index idx
34055 \begin_layout Plain Layout
34064 \begin_layout Standard
34065 Parboxes are very similar to minipages with the difference that they cannot
34069 \begin_layout Standard
34071 \begin_inset Box Frameless
34081 height_special "totalheight"
34084 \begin_layout Plain Layout
34085 This a text within a parbox.
34086 This a text within a parbox.
34089 \begin_layout Plain Layout
34090 This footnote won't appear:
34094 \begin_layout Plain Layout
34095 This footnote is inside a parbox and will therefore not appear.
34108 \begin_layout Section
34109 Boxes for Words and Characters
34110 \begin_inset Index idx
34113 \begin_layout Plain Layout
34114 Boxes ! for Characters
34122 \begin_layout Subsection
34123 Prevent Hyphenation
34124 \begin_inset CommandInset label
34126 name "sec:Prevent-Hyphenation"
34131 \begin_inset Index idx
34134 \begin_layout Plain Layout
34135 Boxes ! to Prevent Hyphenation
34143 \begin_layout Standard
34144 You can use the box type
34148 to prevent words or text from being hyphenated.
34149 \begin_inset Newline newline
34152 Here is an example text:
34155 \begin_layout Standard
34156 This line is an example to show how you can prevent the hyphenation of
34157 \begin_inset Quotes eld
34161 \begin_inset Quotes erd
34167 \begin_layout Standard
34168 To prevent the hyphenation of the word
34169 \begin_inset Quotes eld
34173 \begin_inset Quotes erd
34176 , put the word into a box, set the
34179 \begin_inset space ~
34189 \begin_inset space \thinspace{}
34195 \begin_layout Standard
34196 This is the result:
34199 \begin_layout Standard
34200 This line is an example to show how you can prevent the hyphenation of
34201 \begin_inset Box Frameless
34211 height_special "totalheight"
34214 \begin_layout Plain Layout
34215 \begin_inset Quotes eld
34219 \begin_inset Quotes erd
34230 \begin_layout Standard
34231 You can alternatively set the command
34232 \begin_inset Quotes eld
34242 \begin_inset Quotes grd
34245 as TeX-Code directly before the word:
34248 \begin_layout Standard
34249 This line is an example to show how you can prevent the hyphenation of
34250 \begin_inset Quotes eld
34257 \begin_layout Plain Layout
34267 \begin_inset Quotes erd
34273 \begin_layout Standard
34274 Of course the word now protrudes over the side margin.
34275 To avoid this, add via the menu
34277 Insert\SpecialChar \menuseparator
34278 Formatting\SpecialChar \menuseparator
34280 \begin_inset space ~
34284 \begin_inset space ~
34292 arg "newline-insert newline"
34295 ) a line break before the word:
34298 \begin_layout Standard
34299 This line is an example to show how you can prevent the hyphenation of
34300 \begin_inset Newline newline
34304 \begin_inset Box Frameless
34314 height_special "totalheight"
34317 \begin_layout Plain Layout
34318 \begin_inset Quotes eld
34322 \begin_inset Quotes erd
34333 \begin_layout Subsection
34335 \begin_inset CommandInset label
34337 name "sub:Vertical-Alignment"
34342 \begin_inset Index idx
34345 \begin_layout Plain Layout
34346 Boxes ! for Vertical Alignment
34352 \begin_inset Index idx
34355 \begin_layout Plain Layout
34364 \begin_layout Standard
34365 With the help of the command
34371 you can align words, characters or other boxes vertically relative to the
34379 is used with the following scheme:
34382 \begin_layout Standard
34387 raisebox{lift}[height][depth]{box content}
34390 \begin_layout Standard
34391 The lift can be a positive value to raise the box or a negative value to
34395 \begin_layout Standard
34396 To align for example the word
34397 \begin_inset Quotes eld
34401 \begin_inset Quotes erd
34404 so that the bottom of the
34405 \begin_inset Quotes eld
34409 \begin_inset Quotes erd
34413 \begin_inset Quotes eld
34417 \begin_inset Quotes erd
34420 is at the baseline, insert the command
34423 \begin_layout Standard
34433 \begin_layout Standard
34434 in TeX-Code before the word.
34435 After the word insert a closing brace
34436 \begin_inset Quotes eld
34444 \begin_inset Quotes erd
34448 \begin_inset Newline newline
34451 This is the result:
34454 \begin_layout Standard
34455 This is a text line with the word
34459 \begin_layout Plain Layout
34471 \begin_inset Quotes eld
34475 \begin_inset Quotes erd
34482 \begin_layout Plain Layout
34492 \begin_layout Standard
34493 \begin_inset VSpace bigskip
34496 When you raise or lower characters in a line, the line distance will be
34500 \begin_layout Standard
34501 This is a text line with the word
34505 \begin_layout Plain Layout
34517 \begin_inset Quotes eld
34521 \begin_inset Quotes erd
34528 \begin_layout Plain Layout
34536 \begin_inset Newline newline
34539 This is a text line with the word
34543 \begin_layout Plain Layout
34553 \begin_inset Quotes eld
34557 \begin_inset Quotes erd
34564 \begin_layout Plain Layout
34574 \begin_layout Standard
34575 If you want to prevent this for a certain reason, set the box height to
34580 \begin_layout Standard
34590 \begin_layout Standard
34591 This is a text line with the word
34595 \begin_layout Plain Layout
34607 \begin_inset Quotes eld
34611 \begin_inset Quotes erd
34618 \begin_layout Plain Layout
34626 \begin_inset Newline newline
34629 This is a text line with the word
34633 \begin_layout Plain Layout
34637 raisebox{0.5cm}[0pt]{
34643 \begin_inset Quotes eld
34647 \begin_inset Quotes erd
34654 \begin_layout Plain Layout
34664 \begin_layout Section
34666 \begin_inset CommandInset label
34668 name "sec:Colored-Boxes"
34673 \begin_inset Index idx
34676 \begin_layout Plain Layout
34685 \begin_layout Subsection
34687 \begin_inset Index idx
34690 \begin_layout Plain Layout
34699 \begin_layout Standard
34700 To color the background of text the text must be put into a so called
34701 \begin_inset Quotes eld
34705 \begin_inset Quotes erd
34709 This requires that the LaTeX-package
34714 \begin_inset Index idx
34717 \begin_layout Plain Layout
34718 LaTeX-packages ! color
34723 is loaded in the document preamble with the command
34726 \begin_layout Standard
34731 @ifundefined{textcolor}
34732 \begin_inset Newline newline
34736 \begin_inset Phantom HPhantom
34739 \begin_layout Plain Layout
34742 \begin_inset space ~
34752 usepackage{color}}{}
34755 \begin_layout Standard
34760 will be loaded automatically by LyX when you color text.
34764 \begin_layout Plain Layout
34765 To avoid it being loaded twice the command
34779 \begin_layout Standard
34780 \begin_inset VSpace medskip
34783 Colorboxes are created with the command
34790 This will be used with the following scheme:
34793 \begin_layout Standard
34798 colorbox{color}{box content}
34801 \begin_layout Standard
34802 The box content can also be a box and colorboxes can also be within other
34806 \begin_layout Standard
34807 The following colors are predefined:
34808 \begin_inset Newline newline
34847 \begin_inset Newline newline
34850 You can also define your own color as described in section
34851 \begin_inset space ~
34855 \begin_inset CommandInset ref
34857 reference "sec:Colored-Tables"
34864 \begin_layout Standard
34866 \begin_inset space \thinspace{}
34870 \begin_inset space \space{}
34873 a red background for a word, insert the command
34876 \begin_layout Standard
34884 \begin_layout Standard
34885 before the word in TeX-Code.
34886 After the word insert a closing brace
34887 \begin_inset Quotes eld
34895 \begin_inset Quotes erd
34899 \begin_inset Newline newline
34902 This is the result:
34905 \begin_layout Standard
34906 This is a line where the word
34910 \begin_layout Plain Layout
34920 \begin_inset Quotes eld
34924 \begin_inset Quotes erd
34931 \begin_layout Plain Layout
34938 has a red background.
34941 \begin_layout Standard
34942 \begin_inset VSpace bigskip
34945 If you would like the box frame in a different color, you can use the command
34952 with the following scheme:
34955 \begin_layout Standard
34960 fcolorbox{frame color}{box color}{box content}
34963 \begin_layout Standard
34977 The frame thickness and the space between the frame and the box content
34978 can be adjusted with the lengths
34990 , respectively, as described in section
34991 \begin_inset space ~
34995 \begin_inset CommandInset ref
34997 reference "sec:Decoration"
35004 \begin_layout Standard
35005 For the following example the command
35008 \begin_layout Standard
35013 fcolorbox{cyan}{magenta}{
35016 \begin_layout Standard
35020 \begin_layout Standard
35021 Here is an example where the frame line thickness was set to 1
35022 \begin_inset space \thinspace{}
35026 \begin_inset Newline newline
35033 \begin_layout Plain Layout
35048 \begin_layout Plain Layout
35052 fcolorbox{cyan}{magenta}{
35057 This is text within a colored, framed box.
35061 \begin_layout Plain Layout
35071 \begin_layout Standard
35072 \begin_inset VSpace bigskip
35075 Of course you can also have colored text inside a colorbox:
35076 \begin_inset Newline newline
35083 \begin_layout Plain Layout
35087 fcolorbox{cyan}{magenta}{
35094 This is colored text within a colored, framed box.
35100 \begin_layout Plain Layout
35111 \begin_layout Plain Layout
35125 \begin_layout Standard
35126 \begin_inset VSpace medskip
35132 \begin_layout Standard
35133 \begin_inset Note Greyedout
35136 \begin_layout Plain Layout
35141 Text in colorboxes cannot have line breaks.
35142 To color multiple text lines or paragraphs, use a box inside a colorbox
35143 as described in the following.
35151 \begin_layout Subsection
35152 Color for Paragraphs
35153 \begin_inset CommandInset label
35155 name "sub:Color-for-Paragraphs"
35160 \begin_inset Index idx
35163 \begin_layout Plain Layout
35164 Color ! for Paragraphs
35172 \begin_layout Standard
35173 To set the background color for more than one text line, put the text into
35175 Before the minipage insert the
35184 \begin_layout Standard
35192 \begin_layout Standard
35194 After the minipage insert a closing brace
35195 \begin_inset Quotes eld
35203 \begin_inset Quotes erd
35209 \begin_layout Standard
35213 \begin_layout Plain Layout
35217 colorbox{lightgrey}{
35223 \begin_inset Box Frameless
35233 height_special "totalheight"
35236 \begin_layout Plain Layout
35237 This is text with background color.
35238 This is text with background color.
35241 \begin_layout Plain Layout
35242 \begin_inset VSpace defskip
35245 The text can have footnotes
35249 \begin_layout Plain Layout
35250 Another example footnote
35255 and can include tables and figures.
35258 \begin_layout Plain Layout
35260 \begin_inset Tabular
35261 <lyxtabular version="3" rows="3" columns="3">
35262 <features rotate="0" tabularvalignment="middle">
35263 <column alignment="center" valignment="top" width="0">
35264 <column alignment="center" valignment="top" width="0">
35265 <column alignment="center" valignment="top" width="0">
35267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35270 \begin_layout Plain Layout
35276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35279 \begin_layout Plain Layout
35285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35288 \begin_layout Plain Layout
35296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35299 \begin_layout Plain Layout
35305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35308 \begin_layout Plain Layout
35310 \begin_inset Quotes erd
35318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35321 \begin_layout Plain Layout
35329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35332 \begin_layout Plain Layout
35338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35341 \begin_layout Plain Layout
35347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35350 \begin_layout Plain Layout
35370 \begin_layout Plain Layout
35380 \begin_layout Section
35381 Rotated and Scaled Boxes
35384 \begin_layout Standard
35385 To use the commands described in this section, the LaTeX-package
35390 \begin_inset Index idx
35393 \begin_layout Plain Layout
35394 LaTeX-packages ! graphicx
35399 needs to be loaded in the document preamble with the command
35402 \begin_layout Standard
35407 @ifundefined{rotatebox}
35408 \begin_inset Newline newline
35412 \begin_inset Phantom HPhantom
35415 \begin_layout Plain Layout
35418 \begin_inset space ~
35428 usepackage{graphicx}}{}
35431 \begin_layout Standard
35432 \begin_inset Note Greyedout
35435 \begin_layout Plain Layout
35440 Not all DVI-viewers are able to display rotated or scaled material.
35448 \begin_layout Standard
35449 \begin_inset Note Greyedout
35452 \begin_layout Plain Layout
35457 Floats are not allowed inside a rotated or scaled box.
35465 \begin_layout Subsection
35467 \begin_inset Index idx
35470 \begin_layout Plain Layout
35477 \begin_inset Index idx
35480 \begin_layout Plain Layout
35489 \begin_layout Standard
35490 To rotate material, you can put it into a rotated box.
35491 Such a box is created using the command
35497 in TeX-Code with the following scheme:
35500 \begin_layout Standard
35505 rotatebox[rotation origin]{rotation angle}{box content}
35508 \begin_layout Standard
35509 The rotation origin is specified in the form
35514 The following positions are possible:
35534 (top), along with meaningful combinations of the four base positions.
35539 means that the rotation origin is at the top left corner of the box.
35540 When no rotation origin is specified, the position
35545 The rotation angle is a number that can be negative that specifies the
35547 The rotation direction is counterclockwise.
35550 \begin_layout Standard
35551 In the following example the command
35555 rotatebox[origin=c]{60}{
35557 was inserted as TeX-Code before the text
35558 \begin_inset Quotes eld
35562 \begin_inset Quotes erd
35565 ; after the text the box was closed by a closing brace
35572 \begin_layout Standard
35577 \begin_layout Plain Layout
35581 rotatebox[origin=c]{60}{
35590 \begin_layout Plain Layout
35600 \begin_layout Standard
35601 The box content can also be another box or an inline formula:
35604 \begin_layout Standard
35609 \begin_layout Plain Layout
35613 rotatebox[origin=r]{-60}{
35619 \begin_inset Box Doublebox
35629 height_special "totalheight"
35632 \begin_layout Plain Layout
35642 \begin_layout Plain Layout
35653 \begin_layout Plain Layout
35657 rotatebox[origin=lb]{60}{
35663 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35670 \begin_layout Plain Layout
35680 \begin_layout Standard
35681 or an image or table:
35684 \begin_layout Standard
35689 \begin_layout Plain Layout
35693 rotatebox[origin=lb]{90}{
35699 \begin_inset Graphics
35700 filename clipart/platypus.eps
35710 \begin_layout Plain Layout
35717 with a rotated image
35721 \begin_layout Plain Layout
35725 rotatebox[origin=l]{-90}{
35731 \begin_inset Tabular
35732 <lyxtabular version="3" rows="2" columns="2">
35733 <features rotate="0" tabularvalignment="middle">
35734 <column alignment="center" valignment="top" width="0">
35735 <column alignment="center" valignment="top" width="0">
35737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35740 \begin_layout Plain Layout
35746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35749 \begin_layout Plain Layout
35757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35760 \begin_layout Plain Layout
35766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35769 \begin_layout Plain Layout
35784 \begin_layout Plain Layout
35792 \begin_inset Index idx
35795 \begin_layout Plain Layout
35802 \begin_inset Index idx
35805 \begin_layout Plain Layout
35806 Table Customization ! Rotating
35814 \begin_layout Subsection
35816 \begin_inset Index idx
35819 \begin_layout Plain Layout
35826 \begin_inset Index idx
35829 \begin_layout Plain Layout
35838 \begin_layout Standard
35839 To scale material the commands
35851 can be used as TeX-Code.
35854 \begin_layout Standard
35861 is used with the following scheme:
35864 \begin_layout Standard
35869 scalebox{horizontal}[vertical]{box content}
35872 \begin_layout Standard
35873 Horizontal and vertical are the corresponding scaling factors.
35874 If no vertical scaling factor is given, the horizontal factor will also
35875 be used as the vertical one.
35878 \begin_layout Standard
35885 creates for example a double size
35889 \begin_layout Plain Layout
35902 \begin_layout Plain Layout
35909 , compared with the document text size.
35912 \begin_layout Standard
35917 scalebox{2}[1]{Hello}
35919 on the other hand distorts the
35923 \begin_layout Plain Layout
35936 \begin_layout Plain Layout
35946 \begin_layout Standard
35947 If the scaling factor is negative, the box content will be mirrored.
35948 Therefore the command
35952 scalebox{-1}[1]{Hello}
35954 can be used to create mirror writing:
35958 \begin_layout Plain Layout
35971 \begin_layout Plain Layout
35981 \begin_layout Standard
35986 scalebox{1}[-1]{Hello}
35992 \begin_layout Plain Layout
36005 \begin_layout Plain Layout
36015 \begin_layout Standard
36020 scalebox{-1}[1]{box content}
36022 there exists the command
36023 \begin_inset Newline newline
36030 reflectbox{box content}
36035 \begin_layout Standard
36036 \begin_inset VSpace bigskip
36045 is used to scale the box to a defined width and height.
36046 The command scheme is:
36049 \begin_layout Standard
36054 resizebox{width}{height}{box content}
36057 \begin_layout Standard
36058 If one of the two command arguments given is an exclamation mark
36062 , the size is set so that the aspect ratio of the box content is kept.
36065 \begin_layout Standard
36070 resizebox{2cm}{1cm}{Hello}
36076 \begin_layout Plain Layout
36080 resizebox{2cm}{1cm}{
36089 \begin_layout Plain Layout
36097 \begin_inset Newline newline
36104 resizebox{2cm}{!}{Hello}
36110 \begin_layout Plain Layout
36123 \begin_layout Plain Layout
36133 \begin_layout Standard
36134 \begin_inset VSpace bigskip
36138 \begin_inset Note Greyedout
36141 \begin_layout Plain Layout
36158 are set to zero, no LaTeX-errors occur when exporting the document but
36159 the exported files can not or only partly be displayed.
36167 \begin_layout Standard
36168 \begin_inset VSpace bigskip
36174 \begin_layout Standard
36175 The boxes can be combined in any order.
36177 \begin_inset space \thinspace{}
36181 \begin_inset space \space{}
36185 \begin_inset Newline newline
36192 rotatebox[origin=c]{-45}{
36196 reflectbox{Hello}}}
36197 \begin_inset Newline newline
36205 \begin_layout Standard
36210 \begin_layout Plain Layout
36214 rotatebox[origin=c]{-45}{
36227 \begin_layout Plain Layout
36237 \begin_layout Standard
36239 Images, tables, and inline formulas are allowed as box content:
36242 \begin_layout Standard
36247 \begin_layout Plain Layout
36251 rotatebox[origin=c]{-30}{
36261 \begin_inset Graphics
36262 filename clipart/platypus.eps
36272 \begin_layout Plain Layout
36283 \begin_layout Plain Layout
36287 rotatebox[origin=c]{-45}{
36297 \begin_inset Tabular
36298 <lyxtabular version="3" rows="2" columns="2">
36299 <features rotate="0" tabularvalignment="middle">
36300 <column alignment="center" valignment="top" width="0">
36301 <column alignment="center" valignment="top" width="0">
36303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36306 \begin_layout Plain Layout
36312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36315 \begin_layout Plain Layout
36323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36326 \begin_layout Plain Layout
36332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36335 \begin_layout Plain Layout
36350 \begin_layout Plain Layout
36361 \begin_layout Plain Layout
36365 rotatebox[origin=c]{-45}{
36375 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36382 \begin_layout Plain Layout
36390 \begin_inset Index idx
36393 \begin_layout Plain Layout
36400 \begin_inset Index idx
36403 \begin_layout Plain Layout
36404 Table Customization ! Scaling
36412 \begin_layout Standard
36413 When the global formula style
36417 is used in the document
36421 \begin_layout Plain Layout
36423 \begin_inset Quotes eld
36427 \begin_inset Quotes erd
36430 is added to the document class options.
36435 , display style formulas can also be scaled.
36438 \begin_layout Chapter
36439 Objects Surrounded by Text
36440 \begin_inset Index idx
36443 \begin_layout Plain Layout
36452 \begin_layout Section
36454 \begin_inset CommandInset label
36456 name "sec:Wrap-Floats"
36461 \begin_inset Index idx
36464 \begin_layout Plain Layout
36465 Floats ! Wrap Floats
36471 \begin_inset Index idx
36474 \begin_layout Plain Layout
36475 Surrounded by text ! Wrap Floats
36483 \begin_layout Standard
36484 \begin_inset Wrap figure
36491 \begin_layout Plain Layout
36492 \begin_inset Graphics
36493 filename clipart/mobius.eps
36495 scaleBeforeRotation
36496 rotateOrigin center
36503 \begin_layout Plain Layout
36504 \begin_inset Caption Standard
36506 \begin_layout Plain Layout
36507 \begin_inset CommandInset label
36509 name "fig:This-is-a"
36513 This is a figure wrap float.
36523 This float type is used if you want to wrap text around a figure or table
36524 so that it only occupies some fraction of the column width.
36525 It can be inserted using the menu
36527 Insert\SpecialChar \menuseparator
36528 Floats\SpecialChar \menuseparator
36530 \begin_inset space ~
36534 \begin_inset space ~
36542 \begin_inset space ~
36546 \begin_inset space ~
36551 if the LaTeX-package
36556 \begin_inset Index idx
36559 \begin_layout Plain Layout
36560 LaTeX-packages ! wrapfig
36569 \begin_layout Plain Layout
36570 Installing a LaTeX-package is explained it in the
36573 \begin_inset space ~
36583 The settings of the float can be modified by right-clicking on the float
36585 The mandatory settings are the float
36598 that specifies how much the float is set into the paragraph
36599 \begin_inset space \thinspace{}
36603 \begin_inset space \thinspace{}
36606 page margin, and the
36609 \begin_inset space ~
36614 that specifies how many text lines the float will approximately need.
36615 The line span is often hard to approximate; so it is better only to use
36616 it when you encounter float placement problems.
36617 You can furthermore decide if LaTeX is allowed to let the float float within
36618 the paragraph or to surrounding paragraphs.
36620 \begin_inset space ~
36624 \begin_inset CommandInset ref
36626 reference "fig:This-is-a"
36630 is an example text wrap float with a width of 40
36631 \begin_inset space \thinspace{}
36635 \begin_inset space \thinspace{}
36638 cm overhang, set to the left.
36641 \begin_layout Standard
36642 \begin_inset Note Greyedout
36645 \begin_layout Plain Layout
36651 \begin_inset space ~
36654 wrap float floats are fragile! E.
36655 \begin_inset space \thinspace{}
36659 \begin_inset space \space{}
36662 having a figure too close to the bottom of the page can mess things up in
36663 such a way that the float does not appear in the output or that it is placed
36664 over some other text.
36672 \begin_layout Standard
36673 In general, the following applies for wrap floats:
36676 \begin_layout Itemize
36677 They should not be placed in paragraphs that run over a page break.
36678 That means that wrap floats are better inserted in their exact place when
36679 the document is almost finished and you are able to estimate where page
36680 breaks will appear.
36683 \begin_layout Itemize
36684 They should either be placed in their own paragraph before the paragraph
36685 where they should wrap into or within a paragraph.
36688 \begin_layout Itemize
36689 In consecutive paragraphs they may cause troubles, so ensure that there
36690 is a text paragraph between them as separator.
36693 \begin_layout Itemize
36694 They are not allowed in section headings or tables.
36697 \begin_layout Itemize
36698 Their numbering and referencing works as described in chap.
36699 \begin_inset space \thinspace{}
36703 \begin_inset CommandInset ref
36705 reference "chap:Floats"
36712 \begin_layout Section
36713 Surrounded Fixed Objects
36714 \begin_inset Index idx
36717 \begin_layout Plain Layout
36718 Surrounded by text ! Fixed objects
36726 \begin_layout Standard
36727 The wrap floats described in sec.
36728 \begin_inset space \thinspace{}
36732 \begin_inset CommandInset ref
36734 reference "sec:Wrap-Floats"
36738 have these positions in the paragraph:
36741 \begin_layout Standard
36744 \begin_inset Tabular
36745 <lyxtabular version="3" rows="2" columns="2">
36746 <features rotate="0" tabularvalignment="middle">
36747 <column alignment="center" valignment="top" width="0">
36748 <column alignment="center" valignment="top" width="0">
36750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36753 \begin_layout Plain Layout
36754 \begin_inset Graphics
36755 filename ../images/dialog-show-new-inset_graphics.png
36757 scaleBeforeRotation
36766 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36769 \begin_layout Plain Layout
36777 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36780 \begin_layout Plain Layout
36786 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36789 \begin_layout Plain Layout
36801 \begin_inset Tabular
36802 <lyxtabular version="3" rows="2" columns="2">
36803 <features rotate="0" tabularvalignment="middle">
36804 <column alignment="center" valignment="top" width="0">
36805 <column alignment="center" valignment="top" width="0">
36807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36810 \begin_layout Plain Layout
36816 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36819 \begin_layout Plain Layout
36820 \begin_inset Graphics
36821 filename ../images/dialog-show-new-inset_graphics.png
36823 scaleBeforeRotation
36834 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36837 \begin_layout Plain Layout
36843 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36846 \begin_layout Plain Layout
36860 \begin_layout Standard
36861 To get an object exactly at the position where it is inserted, for example
36862 to get one of these positions:
36863 \begin_inset VSpace defskip
36869 \begin_layout Standard
36872 \begin_inset Tabular
36873 <lyxtabular version="3" rows="2" columns="2">
36874 <features rotate="0" tabularvalignment="middle">
36875 <column alignment="center" valignment="top" width="0">
36876 <column alignment="center" valignment="top" width="0">
36878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36881 \begin_layout Plain Layout
36887 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36890 \begin_layout Plain Layout
36898 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36901 \begin_layout Plain Layout
36902 \begin_inset Graphics
36903 filename ../images/dialog-show-new-inset_graphics.png
36905 scaleBeforeRotation
36914 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36917 \begin_layout Plain Layout
36929 \begin_inset Tabular
36930 <lyxtabular version="3" rows="2" columns="2">
36931 <features rotate="0" tabularvalignment="middle">
36932 <column alignment="center" valignment="top" width="0">
36933 <column alignment="center" valignment="top" width="0">
36935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36938 \begin_layout Plain Layout
36944 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36947 \begin_layout Plain Layout
36955 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36958 \begin_layout Plain Layout
36964 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36967 \begin_layout Plain Layout
36968 \begin_inset Graphics
36969 filename ../images/dialog-show-new-inset_graphics.png
36971 scaleBeforeRotation
36986 \begin_inset Tabular
36987 <lyxtabular version="3" rows="2" columns="3">
36988 <features rotate="0" tabularvalignment="middle">
36989 <column alignment="center" valignment="top" width="0">
36990 <column alignment="center" valignment="top" width="0">
36991 <column alignment="center" valignment="top" width="0">
36993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36996 \begin_layout Plain Layout
37002 <cell alignment="center" valignment="top" topline="true" usebox="none">
37005 \begin_layout Plain Layout
37006 \begin_inset Graphics
37007 filename ../images/dialog-show-new-inset_graphics.png
37009 scaleBeforeRotation
37018 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37021 \begin_layout Plain Layout
37029 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37032 \begin_layout Plain Layout
37038 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37041 \begin_layout Plain Layout
37047 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37050 \begin_layout Plain Layout
37062 \begin_inset Tabular
37063 <lyxtabular version="3" rows="2" columns="3">
37064 <features rotate="0" tabularvalignment="middle">
37065 <column alignment="center" valignment="top" width="0">
37066 <column alignment="center" valignment="top" width="0">
37067 <column alignment="center" valignment="top" width="0">
37069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37072 \begin_layout Plain Layout
37078 <cell alignment="center" valignment="top" topline="true" usebox="none">
37081 \begin_layout Plain Layout
37087 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37090 \begin_layout Plain Layout
37098 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37101 \begin_layout Plain Layout
37107 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37110 \begin_layout Plain Layout
37111 \begin_inset Graphics
37112 filename ../images/dialog-show-new-inset_graphics.png
37114 scaleBeforeRotation
37123 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37126 \begin_layout Plain Layout
37140 \begin_layout Standard
37143 \begin_inset Tabular
37144 <lyxtabular version="3" rows="3" columns="2">
37145 <features rotate="0" tabularvalignment="middle">
37146 <column alignment="center" valignment="top" width="0">
37147 <column alignment="center" valignment="top" width="0">
37149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37152 \begin_layout Plain Layout
37158 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37161 \begin_layout Plain Layout
37169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37172 \begin_layout Plain Layout
37173 \begin_inset Graphics
37174 filename ../images/dialog-show-new-inset_graphics.png
37176 scaleBeforeRotation
37185 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37188 \begin_layout Plain Layout
37196 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37199 \begin_layout Plain Layout
37205 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37208 \begin_layout Plain Layout
37220 \begin_inset Tabular
37221 <lyxtabular version="3" rows="3" columns="3">
37222 <features rotate="0" tabularvalignment="middle">
37223 <column alignment="center" valignment="top" width="0">
37224 <column alignment="center" valignment="top" width="0">
37225 <column alignment="center" valignment="top" width="0">
37227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37230 \begin_layout Plain Layout
37236 <cell alignment="center" valignment="top" topline="true" usebox="none">
37239 \begin_layout Plain Layout
37245 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37248 \begin_layout Plain Layout
37256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37259 \begin_layout Plain Layout
37265 <cell alignment="center" valignment="top" usebox="none">
37268 \begin_layout Plain Layout
37269 \begin_inset Graphics
37270 filename ../images/dialog-show-new-inset_graphics.png
37272 scaleBeforeRotation
37281 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37284 \begin_layout Plain Layout
37292 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37295 \begin_layout Plain Layout
37301 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37304 \begin_layout Plain Layout
37310 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37313 \begin_layout Plain Layout
37325 \begin_inset Tabular
37326 <lyxtabular version="3" rows="3" columns="2">
37327 <features rotate="0" tabularvalignment="middle">
37328 <column alignment="center" valignment="top" width="0">
37329 <column alignment="center" valignment="top" width="0">
37331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37334 \begin_layout Plain Layout
37340 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37343 \begin_layout Plain Layout
37351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37354 \begin_layout Plain Layout
37360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37363 \begin_layout Plain Layout
37364 \begin_inset Graphics
37365 filename ../images/dialog-show-new-inset_graphics.png
37367 scaleBeforeRotation
37378 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37381 \begin_layout Plain Layout
37387 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37390 \begin_layout Plain Layout
37404 \begin_layout Standard
37406 you can use the LaTeX-package
37411 \begin_inset Index idx
37414 \begin_layout Plain Layout
37415 LaTeX-packages ! picinpar
37421 Here is an example:
37424 \begin_layout Standard
37428 \begin_layout Plain Layout
37438 \begin_inset Note Note
37441 \begin_layout Plain Layout
37442 The following section will only be displayed when the LaTeX-package
37454 \begin_layout Standard
37458 \begin_layout Plain Layout
37462 begin{window}[2,c,{
37468 \begin_inset Graphics
37469 filename clipart/mobius.eps
37472 scaleBeforeRotation
37473 rotateOrigin center
37481 \begin_layout Plain Layout
37486 \begin_layout Plain Layout
37495 It was in the spring of the year 1894 that all London was interested, and
37496 the fashionable world dismayed, by the murder of the Honourable Ronald
37497 Adair under most unusual and inexplicable circumstances.
37498 The public has already learned those particulars of the crime which
37504 \begin_layout Plain Layout
37515 came out in the police investigation, but a good deal was suppressed upon
37516 that occasion, since the case for the prosecution was so overwhelmingly
37517 strong that it was not necessary to bring forward all the facts.
37518 Only now, at the end of nearly ten years, am I allowed to supply those
37519 missing links which make up the whole of that remarkable chain.
37525 \begin_layout Plain Layout
37537 \begin_layout Standard
37541 \begin_layout Plain Layout
37550 Footnote of the paragraph with the fixed object.
37554 \begin_layout Plain Layout
37564 \begin_layout Standard
37565 Surrounded fixed objects are used to let text float around them, at which
37566 the object's position in the paragraph can be determined by the number
37568 In contrary to floats is it not possible to have a numbered caption.
37571 \begin_layout Standard
37572 A fixed object is inserted by adding the command
37575 \begin_layout Standard
37580 begin{window}[2,c,{
37583 \begin_layout Standard
37584 as TeX-Code at the beginning of the paragraph.
37585 The first parameter in the bracket, here '2', defines the number of lines
37586 above the object, the second, here 'c', the position of the object.
37587 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37588 Behind the command you insert the object.
37589 In this example an image with a width of 40
37590 \begin_inset space \thinspace{}
37593 % of the text column width was inserted.
37594 The object can also be a table, a box or an equation.
37595 Behind the object the command
37598 \begin_layout Standard
37601 },description text]
37602 \begin_inset Newline newline
37608 \begin_layout Standard
37611 \begin_inset Quotes eld
37619 \begin_inset Quotes erd
37622 is in the second line.
37623 The description text is optional.
37624 The text surrounding the object must be in the same paragraph as the object,
37625 so it must begin directly after the
37630 At the end of the paragraph insert the command:
37633 \begin_layout Standard
37641 \begin_layout Standard
37642 Within a paragraph with a fixed object, you cannot insert footnotes in the
37644 You have to use instead the command
37650 inside the paragraph and outside the command
37656 as described in sec.
37657 \begin_inset space \thinspace{}
37661 \begin_inset CommandInset ref
37663 reference "sec:Footnotes"
37670 \begin_layout Standard
37674 \begin_layout Plain Layout
37684 \begin_inset Note Note
37687 \begin_layout Plain Layout
37688 The following will be displayed when the LaTeX-package
37700 \begin_layout Standard
37701 You need to install the LaTeX-package
37705 to see the following part of this section in the output.
37708 \begin_layout Standard
37712 \begin_layout Plain Layout
37724 \begin_layout Section
37726 \begin_inset Index idx
37729 \begin_layout Plain Layout
37736 \begin_inset Index idx
37739 \begin_layout Plain Layout
37740 Surrounded by text ! Initials
37748 \begin_layout Standard
37749 To use initials, you must have the LaTeX-package
37754 \begin_inset Index idx
37757 \begin_layout Plain Layout
37758 LaTeX-packages ! lettrine
37763 installed and use the module
37767 in your document (menu
37769 Document\SpecialChar \menuseparator
37770 Settings\SpecialChar \menuseparator
37774 To insert an initial, use the style
37779 This style has a mandatory and two optional arguments.
37780 The arguments are inserted via the
37785 The mandatory argument
37789 contains the letter(s) that is the initial, the argument
37792 \begin_inset space ~
37796 \begin_inset space ~
37801 contains the rest of the word or text of the initial letter(s).
37806 contains parameters to modify the initial.
37807 For more information about the possible parameters see the documentation
37813 \begin_inset CommandInset citation
37820 The style itself contains the text that is surrounding the initial.
37821 The usual style is hereby that the word whose first letter is the initial,
37829 \begin_layout Standard
37830 Here are some examples:
37833 \begin_layout Standard
37837 \begin_layout Plain Layout
37847 \begin_inset Note Note
37850 \begin_layout Plain Layout
37851 The following section will only be displayed when the LaTeX-package
37863 \begin_layout Enumerate
37864 No optional argument, the initial is the letter 'I' in the math font
37865 \begin_inset Formula $\mathfrak{Fraktur}$
37872 \begin_layout Initial
37873 \begin_inset Argument 2
37876 \begin_layout Plain Layout
37877 \begin_inset Formula $\mathfrak{I}$
37886 \begin_inset Argument 3
37889 \begin_layout Plain Layout
37895 was in the spring of the year 1894 that all London was interested, and
37896 the fashionable world dismayed, by the murder of the Honourable Ronald
37897 Adair under most unusual and inexplicable circumstances.
37898 The public has already learned those particulars of the crime which came
37899 out in the police investigation, but a good deal was suppressed upon that
37900 occasion, since the case for the prosecution was so overwhelmingly strong
37901 that it was not necessary to bring forward all the facts.
37902 \begin_inset Newpage newpage
37909 \begin_layout Enumerate
37910 Only one line is surrounding the initial, which is formed by two letters
37911 in standard font and no text is printed in small caps:
37915 \begin_layout Initial
37916 \begin_inset Argument 1
37919 \begin_layout Plain Layout
37926 \begin_inset Argument 2
37929 \begin_layout Plain Layout
37935 was in the spring of the year 1894 that all London was interested, and
37936 the fashionable world dismayed, by the murder of the Honourable Ronald
37937 Adair under most unusual and inexplicable circumstances.
37938 The public has already learned those particulars of the crime which came
37939 out in the police investigation, but a good deal was suppressed upon that
37940 occasion, since the case for the prosecution was so overwhelmingly strong
37941 that it was not necessary to bring forward all the facts.
37945 \begin_layout Enumerate
37946 Magenta, hanging initial over 3
37947 \begin_inset space ~
37950 lines in the math font
37951 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37955 \begin_inset Quotes eld
37958 t was in the spring
37959 \begin_inset Quotes erd
37966 ; to color the initial, you must insert this command before the initial:
37967 \begin_inset Newline newline
37981 \begin_inset Newline newline
37989 \begin_inset Quotes eld
37993 \begin_inset Quotes erd
37997 \begin_inset Quotes eld
38001 \begin_inset Quotes erd
38005 \begin_inset Quotes eld
38009 \begin_inset Quotes erd
38013 \begin_inset Quotes eld
38017 \begin_inset Quotes erd
38021 \begin_inset Quotes eld
38025 \begin_inset Quotes erd
38029 \begin_inset Quotes eld
38033 \begin_inset Quotes erd
38037 \begin_inset Quotes eld
38041 \begin_inset Quotes erd
38045 \begin_inset Quotes eld
38049 \begin_inset Quotes erd
38052 , and add this command to the document preamble:
38053 \begin_inset Newline newline
38060 @ifundefined{textcolor}
38061 \begin_inset Newline newline
38065 \begin_inset space ~
38070 usepackage{color}}{}
38074 \begin_layout Standard
38078 \begin_layout Plain Layout
38092 \begin_inset Note Note
38095 \begin_layout Plain Layout
38096 makes the initial magenta
38104 \begin_layout Initial
38105 \begin_inset Argument 1
38108 \begin_layout Plain Layout
38109 lines=3, lhang=0.33, loversize=0.25
38115 \begin_inset Argument 2
38118 \begin_layout Plain Layout
38119 \begin_inset Formula $\mathcal{I}$
38128 \begin_inset Argument 3
38131 \begin_layout Plain Layout
38132 t was in the spring
38137 of the year 1894 that all London was interested, and the fashionable world
38138 dismayed, by the murder of the Honourable Ronald Adair under most unusual
38139 and inexplicable circumstances.
38140 The public has already learned those particulars of the crime which came
38141 out in the police investigation, but a good deal was suppressed upon that
38142 occasion, since the case for the prosecution was so overwhelmingly strong
38143 that it was not necessary to bring forward all the facts.
38147 \begin_layout Standard
38151 \begin_layout Plain Layout
38161 \begin_inset Note Note
38164 \begin_layout Plain Layout
38165 The following will be displayed when the LaTeX-package
38177 \begin_layout Standard
38178 You need to install the LaTeX-package
38182 to see the following part of this section in the output.
38185 \begin_layout Standard
38189 \begin_layout Plain Layout
38201 \begin_layout Chapter
38202 External Document Parts
38203 \begin_inset Index idx
38206 \begin_layout Plain Layout
38207 External Document Parts
38215 \begin_layout Standard
38218 Insert\SpecialChar \menuseparator
38221 you can insert external material into your document.
38225 \begin_layout Description
38227 \begin_inset space ~
38230 Document Another LyX document; its content is directly inserted to your
38234 \begin_layout Description
38236 \begin_inset space ~
38239 Text A text document; each line is inserted in your document as a separate
38243 \begin_layout Description
38245 \begin_inset space ~
38249 \begin_inset space ~
38253 \begin_inset space ~
38256 Lines A text document; text lines are inserted in your document continuously
38257 but an empty text line creates a new paragraph.
38260 \begin_layout Description
38262 \begin_inset space ~
38265 Material Files in various formats.
38268 \begin_layout Description
38270 \begin_inset space ~
38273 Document LyX or LaTeX-documents.
38276 \begin_layout Section
38278 \begin_inset Index idx
38281 \begin_layout Plain Layout
38282 External Document Parts ! External Material
38290 \begin_layout Standard
38291 The external material feature allows you to insert files into your document
38292 without converting them to a format that can be read by the document output
38294 LyX takes care of the necessary conversions.
38295 This is similar to images that can be inserted in various image formats
38297 When you have enabled Instant Preview in LyX's preferences under
38300 \begin_inset space ~
38304 \begin_inset space ~
38307 feel\SpecialChar \menuseparator
38310 , the external material types Dia and Xfig are directly shown in LyX.
38313 \begin_layout Standard
38314 External material can be inserted via the
38318 dialog that is accessible with the menu
38320 Insert\SpecialChar \menuseparator
38321 File\SpecialChar \menuseparator
38323 \begin_inset space ~
38329 Currently the following file types (
38336 \begin_layout Description
38337 ChessDiagram This template supports chess position diagrams made with the
38341 \begin_inset CommandInset href
38344 target "http://en.wikipedia.org/wiki/XBoard"
38353 \begin_layout Description
38354 Date This inserts the date in the form
38359 This is a date inserted as external material:
38360 \begin_inset External
38367 \begin_inset space ~
38371 \begin_inset Note Note
38374 \begin_layout Plain Layout
38375 Remove the protected space when bug 4398 is fixed!
38381 \begin_inset Newline newline
38384 The date is not shown within LyX, only in the output.
38385 There are two other methods of inserting a date: Via menu
38387 Insert\SpecialChar \menuseparator
38390 and with the LaTeX command
38397 The different methods are compared in Table
38398 \begin_inset space ~
38402 \begin_inset CommandInset ref
38404 reference "tab:Comparison-of-the"
38411 \begin_layout Description
38412 Dia This template supports diagrams created with the program
38415 \begin_inset CommandInset href
38418 target "http://en.wikipedia.org/wiki/Dia_(software)"
38427 \begin_layout Description
38428 GnumericSpreadsheet With this template you can insert spreadsheets
38429 \begin_inset space \thinspace{}
38433 \begin_inset space \thinspace{}
38436 tables in the format of
38439 \begin_inset CommandInset href
38442 target "http://en.wikipedia.org/wiki/Gnumeric"
38449 \begin_inset CommandInset href
38451 name "OpenDocument"
38452 target "http://en.wikipedia.org/wiki/OpenDocument"
38457 \begin_inset CommandInset href
38459 name "Microsoft Office XML"
38460 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38465 \begin_inset CommandInset href
38467 name "Office Open XML"
38468 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38473 For this feature LyX must have found the program
38477 during its configuration.
38478 This program is part of Gnumeric, so that you must have Gnumeric installed,
38479 also if you don't have tables in the Gnumeric format.
38480 For examples and possible limitations have a look at LyX's example file
38488 \begin_layout Description
38489 LilyPond This template is used for music notation typeset with the program
38490 \begin_inset Newline linebreak
38496 \begin_inset CommandInset href
38499 target "http://en.wikipedia.org/wiki/LilyPond"
38506 For LyX's extended support for LilyPond have a look at LyX's example file
38514 \begin_layout Description
38515 PDFPages With this template you can insert PDF documents to your document.
38516 To specify the range of pages that should be included, use the option
38526 LaTeX and LyX options
38529 The argument of this option is a comma separated list, containing page
38530 numbers (insert as option
38534 ), ranges of page numbers (
38538 ) or any combination.
38539 To insert empty pages use {}.
38541 \begin_inset space \thinspace{}
38545 \begin_inset space ~
38550 pages={3,{},8-11,15}
38552 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38553 Page ranges are specified in the syntax
38562 This selects all pages from
38575 defaults to the first page; omitting
38579 defaults to the last page of the document.
38580 The last page can also be selected with the keyword
38585 (This is only permitted in a page range.) So
38589 will insert all pages of the document and
38593 will insert all pages in reverse order.
38594 If the pages option is not specified, only the first page of the PDF is
38596 \begin_inset Newline newline
38603 inserts the pages with their original size, if this option is not given,
38604 the pages will be resized to fith the width of the page of your document.
38609 you can specify the width and height of the input pages and their rotation.
38610 If another width than 100
38611 \begin_inset space \thinspace{}
38614 Scale% is used, the option
38618 will be overwritten.
38619 For more info and possible options, have a look into the documentation
38620 of the LaTeX-package
38625 \begin_inset CommandInset citation
38632 \begin_inset Index idx
38635 \begin_layout Plain Layout
38636 LaTeX-packages ! pdfpages
38642 \begin_inset Newline newline
38645 To use this template in a
38649 presentation you need to first insert an
38653 environment and in a subsequent paragraph a TeX-Code box containing the
38658 setbeamertemplate{background canvas}{}
38661 Then you can insert as many paragraphs containing the PDFPages template
38663 Behind the included PDF pages you can resume the Beamer presentation by
38664 beginning a new frame or by starting a new section.
38665 To avoid stray blank pages prior to the PDF pages, make sure to use the
38670 alignment for the paragraph containing the template.
38671 \begin_inset Newline newline
38674 Here is an included PDF which is rotated by -5°:
38675 \begin_inset External
38677 filename clipart/Abstract.pdf
38678 extra LaTeX "noautoscale, pages=-"
38680 rotateOrigin bottomleft
38687 \begin_layout Description
38688 RasterImage This can be used for bitmap images.
38689 The image can be treated in the
38693 dialog like the images that are usually included via the
38697 dialog as described in section
38698 \begin_inset space ~
38702 \begin_inset CommandInset ref
38704 reference "sec:Graphics-Dialog"
38709 The difference to the normal image input is that only raster images are
38710 allowed; that means that PDF and EPS-images are not supported.
38711 Here is an inserted raster image:
38712 \begin_inset External
38713 template RasterImage
38714 filename clipart/ToolbarEnvBox.png
38721 \begin_layout Description
38722 XFig This template supports images created with the program
38725 \begin_inset CommandInset href
38728 target "http://en.wikipedia.org/wiki/Xfig"
38737 \begin_layout Standard
38738 \begin_inset Float table
38744 \begin_layout Plain Layout
38745 \begin_inset Caption Standard
38747 \begin_layout Plain Layout
38748 \begin_inset CommandInset label
38750 name "tab:Comparison-of-the"
38754 Comparison of the date input methods.
38762 \begin_layout Plain Layout
38764 \begin_inset Tabular
38765 <lyxtabular version="3" rows="4" columns="4">
38766 <features rotate="0" tabularvalignment="middle">
38767 <column alignment="center" valignment="top" width="0">
38768 <column alignment="center" valignment="top" width="0">
38769 <column alignment="center" valignment="top" width="0">
38770 <column alignment="center" valignment="top" width="0">
38772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38775 \begin_layout Plain Layout
38781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38784 \begin_layout Plain Layout
38787 External Material\SpecialChar \menuseparator
38793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38796 \begin_layout Plain Layout
38799 Insert\SpecialChar \menuseparator
38805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38808 \begin_layout Plain Layout
38820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38823 \begin_layout Plain Layout
38829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38832 \begin_layout Plain Layout
38838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38841 \begin_layout Plain Layout
38847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38850 \begin_layout Plain Layout
38851 as TeX-Code inset box
38858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38861 \begin_layout Plain Layout
38867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38870 \begin_layout Plain Layout
38876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38879 \begin_layout Plain Layout
38885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38888 \begin_layout Plain Layout
38896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38899 \begin_layout Plain Layout
38905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38908 \begin_layout Plain Layout
38914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38917 \begin_layout Plain Layout
38923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38926 \begin_layout Plain Layout
38945 \begin_layout Standard
38946 When you use the option
38958 dialog, only the path to the inserted file is shown in the output.
38959 \begin_inset Newline newline
38962 External material is displayed in LyX either as a box like this:
38963 \begin_inset Graphics
38964 filename clipart/ExternalMaterialQt4.png
38966 scaleBeforeRotation
38970 or as image, depending on the option
38976 LaTeX and LyX options
38981 \begin_layout Standard
38988 manual explains how you can define your own templates.
38991 \begin_layout Section
38993 \begin_inset CommandInset label
38995 name "sec:Child-Documents"
39000 \begin_inset Index idx
39003 \begin_layout Plain Layout
39004 External Document Parts ! Child Documents
39010 \begin_inset Index idx
39013 \begin_layout Plain Layout
39022 \begin_layout Standard
39023 Child documents are used if you have a long document consisting of several
39024 larger parts or sections.
39025 For maintenance it is often useful and sometimes even required to split
39026 the document into several files that can be revised separately.
39027 The different documents are then the so called
39028 \begin_inset Quotes eld
39032 \begin_inset Quotes erd
39035 , and a master document connects them to print the full document or parts
39037 A child document inherits elements from its master, for example the LaTeX
39038 preamble, the bibliography, and labels for cross-references.
39041 \begin_layout Standard
39042 To be able to work on child documents without the need to open their master,
39043 specify in the child document the master in the menu
39045 Document\SpecialChar \menuseparator
39046 Settings\SpecialChar \menuseparator
39048 \begin_inset space ~
39054 This master document will then be used in the background by LyX when you
39055 edit the child document.
39058 \begin_layout Standard
39059 Included documents are displayed in LyX as a box like this:
39060 \begin_inset Graphics
39061 filename clipart/ChildDocumentQt4.png
39063 scaleBeforeRotation
39067 To include child documents in a master document use the menu
39069 Insert\SpecialChar \menuseparator
39070 File\SpecialChar \menuseparator
39072 \begin_inset space ~
39078 A dialog pops up where you can choose between four include methods:
39081 \begin_layout Description
39082 Include You can include LyX- and LaTeX-documents.
39091 dialog, the included document will be opened in LyX in a new file tab so
39092 that you can modify it.
39093 \begin_inset Newline newline
39099 \begin_layout Standard
39100 Here is a child document inserted using
39105 \begin_inset CommandInset include
39106 LatexCommand include
39107 filename "DummyDocument1.lyx"
39114 \begin_layout Standard
39115 The section numbering includes the sections of the included files in the
39116 order they are inserted in the master document.
39117 The included example document has for example a subsection that is numbered
39118 as a subsection of this section.
39119 Labels of included documents can be referenced: Subsection
39120 \begin_inset space ~
39124 \begin_inset CommandInset ref
39126 reference "sub:External-Subsection-1"
39133 \begin_layout Standard
39134 The preamble of the child document is ignored; only the preamble of the
39135 master document is used.
39136 Branches in child documents will be ignored by the master document when
39137 the master document does not have a branch with the same name.
39138 Included documents are inserted starting on a new page and ending with
39142 \begin_layout Standard
39143 \begin_inset Note Greyedout
39146 \begin_layout Plain Layout
39151 If you have included a LyX- or LaTeX-file, you are warned when you export/view
39152 the document in case the child document uses another document class than
39153 the master document as this will lead to unexpected outputs.
39161 \begin_layout Description
39162 Input This method is very similar to the Include method.
39163 The differences are:
39167 \begin_layout Itemize
39168 Input files don't start with a new page and don't end with a page break.
39171 \begin_layout Itemize
39172 Input files can be previewed in LyX when
39175 \begin_inset space ~
39180 is enabled in LyX's preferences under
39183 \begin_inset space ~
39187 \begin_inset space ~
39190 feel\SpecialChar \menuseparator
39196 \begin_layout Itemize
39197 You cannot exclude Input files via the menu
39199 Document\SpecialChar \menuseparator
39200 Settings\SpecialChar \menuseparator
39207 \begin_layout Standard
39208 Here is a child document inserted using
39213 \begin_inset CommandInset include
39215 filename "DummyDocument2.lyx"
39222 \begin_layout Description
39223 Verbatim With this method any text file can be included.
39224 The file is shown in the output with its source code; no command used in
39225 the text is invoked.
39226 You can use the option
39228 Mark spaces in output
39230 that displays the character
39231 \begin_inset Quotes eld
39238 \begin_layout Plain Layout
39248 \begin_inset Quotes erd
39251 for every space character in the source code.
39252 The difference from the method via the menu
39254 Insert\SpecialChar \menuseparator
39255 File\SpecialChar \menuseparator
39257 \begin_inset space ~
39262 is that the document content is not shown in LyX.
39265 \begin_layout Standard
39266 Here is a child document inserted as Verbatim:
39267 \begin_inset CommandInset include
39268 LatexCommand verbatiminput
39269 filename "DummyTextDocument.txt"
39274 \begin_inset VSpace bigskip
39277 Here is a child document inserted as Verbatim using the
39279 Mark spaces in output
39282 \begin_inset CommandInset include
39283 LatexCommand verbatiminput*
39284 filename "DummyTextDocument.txt"
39291 \begin_layout Standard
39292 \begin_inset VSpace bigskip
39298 \begin_layout Standard
39299 \begin_inset Note Greyedout
39302 \begin_layout Plain Layout
39307 As you can see in the examples above, the text of the documents included
39312 is not broken at the end of the document lines.
39320 \begin_layout Description
39321 Listings This type is described in chapter
39322 \begin_inset space ~
39326 \begin_inset CommandInset ref
39328 reference "cha:Program-Code-Listings"
39335 \begin_layout Standard
39336 \begin_inset Note Greyedout
39339 \begin_layout Plain Layout
39344 Including the same document twice in a document using different methods
39345 could cause LaTeX-problems.
39353 \begin_layout Standard
39354 If you want to view/export only selected children of your master document,
39355 either because you want to save compiling time or because you want to distribut
39356 e single chapters of the book you are just writing, you can exclude children
39358 This is done via the menu
39360 Document\SpecialChar \menuseparator
39361 Settings\SpecialChar \menuseparator
39365 You can exclude\SpecialChar \slash{}
39366 include children by double-clicking on the
39370 column of the respective child document in the list (note that this only
39371 works for documents embedded via
39372 \begin_inset Quotes eld
39376 \begin_inset Quotes erd
39380 \begin_inset Quotes eld
39384 \begin_inset Quotes erd
39390 Maintain counters and references
39392 is enabled, LyX will assure that all page numbers, references etc.
39393 \begin_inset space ~
39396 are correct as if the whole document was processed.
39397 This is useful if you want the selected sub-documents to look exactly as
39398 in the context of the whole document.
39399 However, LyX needs to process the whole document in the background for
39401 So if you want to save compile time and if counters and references do not
39402 need to be correct, disable this checkbox.
39405 \begin_layout Standard
39406 Alternatively, you can put each included file into a branch.
39410 \begin_layout Plain Layout
39411 Branches are described in section
39424 By enabling\SpecialChar \slash{}
39425 disabling branches you can decide which included files will
39426 appear in the output.
39427 This has the advantage that it also works with Input'ed sub-documents.
39428 However, counters and references will not be maintained with this approach.
39431 \begin_layout Chapter
39432 Program Code Listings
39433 \begin_inset CommandInset label
39435 name "cha:Program-Code-Listings"
39440 \begin_inset Index idx
39443 \begin_layout Plain Layout
39450 \begin_inset Index idx
39453 \begin_layout Plain Layout
39460 \begin_inset Index idx
39463 \begin_layout Plain Layout
39472 \begin_layout Standard
39473 To include and typeset program code you can use the
39477 inset that can be inserted via the menu
39479 Insert\SpecialChar \menuseparator
39488 \begin_inset Index idx
39491 \begin_layout Plain Layout
39492 LaTeX-packages ! listings
39497 provides a powerful and flexible way to insert program source code into
39501 \begin_layout Standard
39502 Right-clicking on a listings inset opens the context menu containing where
39503 you can set the listings format.
39506 \begin_layout Standard
39507 By default, a listing starts a new paragraph in the output.
39508 The placement option
39511 \begin_inset space ~
39516 prints the listing inline like this:
39517 \begin_inset listings
39518 lstparams "language={C++}"
39522 \begin_layout Plain Layout
39530 \begin_inset Newline newline
39537 creates a listings float where you can specify the placement options
39538 \begin_inset Quotes eld
39546 \begin_inset Quotes erd
39550 \begin_inset Quotes eld
39558 \begin_inset Quotes erd
39562 \begin_inset Quotes eld
39570 \begin_inset Quotes erd
39574 \begin_inset Quotes eld
39582 \begin_inset Quotes erd
39585 corresponding to the float placement options described in section
39586 \begin_inset space ~
39590 \begin_inset CommandInset ref
39592 reference "sec:Float-Placement"
39597 The placement options can be mixed and are inserted without any separation,
39599 \begin_inset space \thinspace{}
39603 \begin_inset space \space{}
39607 \begin_inset Quotes eld
39615 \begin_inset Quotes erd
39620 \begin_inset Quotes eld
39624 \begin_inset Quotes erd
39627 has sometimes no effect, but you don't need to use the
39631 option in this case as also non-float listings can have captions and be
39635 \begin_layout Standard
39636 You can add captions to listings with the menu
39638 Insert\SpecialChar \menuseparator
39642 Listings can be referenced like floats: Listing
39643 \begin_inset space ~
39647 \begin_inset CommandInset ref
39649 reference "lst:Example-Listing"
39654 \change_inserted -195340706 1334604968
39656 A list of listings which contains all listings with captions can be created
39659 Insert\SpecialChar \menuseparator
39661 \begin_inset space ~
39665 \begin_inset space ~
39668 TOC\SpecialChar \menuseparator
39672 The list entries are the listing caption and the listing number.
39677 \begin_layout Standard
39678 \begin_inset listings
39679 lstparams "language=Python"
39683 \begin_layout Plain Layout
39685 \begin_inset Caption Standard
39687 \begin_layout Plain Layout
39688 \begin_inset CommandInset label
39690 name "lst:Example-Listing"
39694 Example Listing float
39699 # Example listing float
39702 \begin_layout Plain Layout
39707 \begin_layout Plain Layout
39709 'this is a python function'
39712 \begin_layout Plain Layout
39722 \begin_layout Standard
39723 When you have set a programming language in the listings dialog, the keywords
39724 of this language will be recognized and specially typeset in the output.
39725 In the example listings the Python keyword
39726 \begin_inset Quotes eld
39730 \begin_inset Quotes erd
39733 is recognized and printed bold in the output.
39736 \begin_layout Standard
39737 \begin_inset Note Greyedout
39740 \begin_layout Plain Layout
39745 If you don't get bold keywords when using typewriter fonts, your
39749 font probably doesn't provide a bold shape.
39750 In this case select a different one in the menu
39752 Document\SpecialChar \menuseparator
39753 Settings\SpecialChar \menuseparator
39765 provide bold shapes.)
39773 \begin_layout Standard
39777 \begin_inset space ~
39782 of the listings dialog you can specify the line numbering style.
39783 You can insert a number to specify which lines are numbered in the field
39790 \begin_inset space \thinspace{}
39794 \begin_inset space \space{}
39798 \begin_inset Quotes eld
39802 \begin_inset Quotes erd
39805 , only every 3rd line will be numbered.
39808 \begin_layout Standard
39809 You can furthermore specify a range of lines; only these will then appear
39813 Extended character table
39815 should be used when you use national characters like the German umlauts
39817 \begin_inset Newline newline
39820 Here is an example listing with left line numbering, step
39821 \begin_inset Quotes eld
39825 \begin_inset Quotes erd
39829 \begin_inset Quotes eld
39833 \begin_inset Quotes erd
39837 \begin_inset Quotes eld
39840 Extended character table
39841 \begin_inset Quotes erd
39845 \begin_inset Quotes eld
39849 \begin_inset space ~
39853 \begin_inset space ~
39857 \begin_inset Quotes erd
39861 \begin_inset space \thinspace{}
39865 \begin_inset space \thinspace{}
39871 \begin_layout Standard
39872 \begin_inset listings
39873 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39877 \begin_layout Plain Layout
39882 \begin_layout Plain Layout
39884 'this is a python function'
39887 \begin_layout Plain Layout
39892 \begin_layout Plain Layout
39897 \begin_layout Plain Layout
39899 'This is a German word: Tschüß'
39902 \begin_layout Plain Layout
39907 \begin_layout Plain Layout
39912 \begin_layout Plain Layout
39914 'this is a python function'
39917 \begin_layout Plain Layout
39927 \begin_layout Standard
39928 When you have tabulators in your listing, you can specify the number of
39929 characters that are spanned by a tabulator in the field
39932 \begin_inset space ~
39940 \begin_layout Standard
39941 \begin_inset Note Greyedout
39944 \begin_layout Plain Layout
39949 Due to a bug in the
39953 package the line numbering is shifted by a line by every previous listing.
39954 That's the reason why the lines 2 and 5 are numbered in the above listing
39955 and not the lines 3 and 6.
39963 \begin_layout Standard
39964 \begin_inset VSpace bigskip
39970 \begin_layout Standard
39971 It is also possible to print lines from a file as listing.
39972 To do this, use the menu
39974 Insert\SpecialChar \menuseparator
39975 File\SpecialChar \menuseparator
39978 and choose the type
39986 \begin_layout Plain Layout
39987 The other child document types are described in section
39988 \begin_inset space ~
39992 \begin_inset CommandInset ref
39994 reference "sec:Child-Documents"
40003 In the child document dialog you can specify the listing parameters in
40005 To show a list of all available parameters, type in a question mark
40006 \begin_inset Quotes eld
40010 \begin_inset Quotes erd
40016 \begin_layout Standard
40017 To reference child document listings, write a label text into the corresponding
40018 field of the child document dialog.
40019 The label can then be referenced using the menu
40021 Insert\SpecialChar \menuseparator
40027 \begin_layout Standard
40029 \begin_inset space ~
40033 \begin_inset CommandInset ref
40035 reference "lst:file-listing"
40039 is an example for a listing of a file; there the lines 10
40040 \begin_inset space \thinspace{}
40044 \begin_inset space \thinspace{}
40047 15 of this LyX file are listed.
40050 \begin_layout Standard
40051 \begin_inset CommandInset include
40052 LatexCommand lstinputlisting
40053 filename "EmbeddedObjects.lyx"
40054 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40061 \begin_layout Standard
40062 \begin_inset VSpace bigskip
40068 \begin_layout Standard
40069 Inserting a formula into a listing can be done the following way:
40072 \begin_layout Enumerate
40073 Open the listings dialog and add
40074 \begin_inset Newline newline
40082 \begin_inset Newline newline
40085 to the field of the
40092 \begin_layout Enumerate
40093 Create a formula outside the listing
40096 \begin_layout Enumerate
40097 Copy the content of the formula (not the formula inset) to the clipboard
40107 \begin_layout Enumerate
40108 In the listing write
40109 \begin_inset Quotes eld
40117 \begin_inset Quotes erd
40120 and copy from the clipboard between the dollar-signs (shortcut
40129 \begin_layout Standard
40130 \begin_inset listings
40131 lstparams "language=Python,mathescape=true"
40135 \begin_layout Plain Layout
40137 \begin_inset Caption Standard
40139 \begin_layout Plain Layout
40140 Example Listing float containing a formula
40145 # Example listing float
40148 \begin_layout Plain Layout
40153 \begin_layout Plain Layout
40166 \begin_layout Plain Layout
40176 \begin_layout Standard
40177 \begin_inset VSpace bigskip
40183 \begin_layout Standard
40184 Global listings settings can be set in the
40186 Document\SpecialChar \menuseparator
40187 Settings\SpecialChar \menuseparator
40191 To get there a list of available options, type in a question mark
40192 \begin_inset Quotes eld
40196 \begin_inset Quotes erd
40202 \begin_layout Standard
40203 For more information about the
40207 package, we refer to its documentation
40208 \begin_inset CommandInset citation
40217 \begin_layout Standard
40218 \begin_inset Newpage newpage
40224 \begin_layout Chapter
40226 Units available in LyX
40227 \begin_inset Index idx
40230 \begin_layout Plain Layout
40237 \begin_inset CommandInset label
40239 name "cha:Units-available-in"
40246 \begin_layout Standard
40247 To understand the units described in this documentation, Table
40248 \begin_inset space ~
40252 \begin_inset CommandInset ref
40254 reference "tab:Units"
40258 explains all units available in LyX.
40261 \begin_layout Standard
40262 \begin_inset Float table
40268 \begin_layout Plain Layout
40269 \begin_inset Caption Standard
40271 \begin_layout Plain Layout
40272 \begin_inset CommandInset label
40286 \begin_layout Plain Layout
40287 \begin_inset VSpace medskip
40293 \begin_layout Plain Layout
40295 \begin_inset Tabular
40296 <lyxtabular version="3" rows="20" columns="2">
40297 <features rotate="0" tabularvalignment="middle">
40298 <column alignment="center" valignment="top" width="0">
40299 <column alignment="center" valignment="top" width="0">
40301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40304 \begin_layout Plain Layout
40310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40313 \begin_layout Plain Layout
40321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40324 \begin_layout Plain Layout
40330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40333 \begin_layout Plain Layout
40341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40344 \begin_layout Plain Layout
40350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40353 \begin_layout Plain Layout
40361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40364 \begin_layout Plain Layout
40370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40373 \begin_layout Plain Layout
40381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40384 \begin_layout Plain Layout
40390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40393 \begin_layout Plain Layout
40395 \begin_inset space \thinspace{}
40399 \begin_inset space \thinspace{}
40409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40412 \begin_layout Plain Layout
40418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40421 \begin_layout Plain Layout
40423 \begin_inset space \thinspace{}
40427 \begin_inset space \thinspace{}
40437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40440 \begin_layout Plain Layout
40446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40449 \begin_layout Plain Layout
40450 scaled point (65536
40451 \begin_inset space \thinspace{}
40455 \begin_inset space \thinspace{}
40465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40468 \begin_layout Plain Layout
40474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40477 \begin_layout Plain Layout
40479 \begin_inset space \thinspace{}
40483 \begin_inset space \thinspace{}
40493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40496 \begin_layout Plain Layout
40502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40505 \begin_layout Plain Layout
40507 \begin_inset space \thinspace{}
40511 \begin_inset Formula $\approx$
40515 \begin_inset space \thinspace{}
40525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40528 \begin_layout Plain Layout
40534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40537 \begin_layout Plain Layout
40539 \begin_inset space \thinspace{}
40543 \begin_inset space \thinspace{}
40553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40556 \begin_layout Plain Layout
40562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40565 \begin_layout Plain Layout
40566 % of original image width
40573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40576 \begin_layout Plain Layout
40582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40585 \begin_layout Plain Layout
40593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40596 \begin_layout Plain Layout
40602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40605 \begin_layout Plain Layout
40613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40616 \begin_layout Plain Layout
40622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40625 \begin_layout Plain Layout
40633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40636 \begin_layout Plain Layout
40642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40645 \begin_layout Plain Layout
40653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40656 \begin_layout Plain Layout
40662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40665 \begin_layout Plain Layout
40673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40676 \begin_layout Plain Layout
40682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40685 \begin_layout Plain Layout
40693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40696 \begin_layout Plain Layout
40702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40705 \begin_layout Plain Layout
40717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40720 \begin_layout Plain Layout
40726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40729 \begin_layout Plain Layout
40741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40744 \begin_layout Plain Layout
40750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40753 \begin_layout Plain Layout
40755 \begin_inset space \thinspace{}
40759 \begin_inset space \thinspace{}
40780 \begin_layout Chapter
40781 Output File Formats with Graphics
40782 \begin_inset CommandInset label
40784 name "cha:Output-File-Formats"
40791 \begin_layout Section
40793 \begin_inset Index idx
40796 \begin_layout Plain Layout
40803 \begin_inset Index idx
40806 \begin_layout Plain Layout
40811 \begin_layout Plain Layout
40822 \begin_layout Plain Layout
40837 \begin_layout Standard
40838 This file type has the extension
40839 \begin_inset Quotes eld
40847 \begin_inset Quotes erd
40852 \begin_inset Quotes eld
40856 \begin_inset Quotes erd
40859 (DVI), because it is completely portable; you can move them from one machine
40860 to another without needing to do any sort of conversion.
40861 At the time when this file-format was developed, this was no matter of
40863 DVIs are used for quick previews and as pre-stage for other output formats,
40867 \begin_layout Standard
40868 \begin_inset Note Greyedout
40871 \begin_layout Plain Layout
40876 DVI-files do not contain images; they will only be a linked.
40881 So don't forget this, if you move your
40885 file to another computer.
40886 This property can also slow down your computer when you view the DVI, because
40887 the DVI-viewer has to convert the image in the background to make it visible
40888 when you scroll in the DVI.
40889 So it is recommended that you use PDF for files with many images.
40892 \begin_layout Standard
40893 You can export your document to DVI by using the menu
40895 File\SpecialChar \menuseparator
40896 Export\SpecialChar \menuseparator
40900 You can view your document as DVI via the
40907 \begin_layout Section
40909 \begin_inset CommandInset label
40911 name "sec:PostScript"
40916 \begin_inset Index idx
40919 \begin_layout Plain Layout
40920 File Formats ! PostScript
40926 \begin_inset Index idx
40929 \begin_layout Plain Layout
40934 \begin_layout Plain Layout
40945 \begin_layout Plain Layout
40960 \begin_layout Standard
40961 This file type has the extension
40962 \begin_inset Quotes eld
40970 \begin_inset Quotes erd
40974 PostScript was developed by the company
40978 as a printer language.
40979 The file therefore contains commands that the printer uses to print the
40981 PostScript can be seen as a
40982 \begin_inset Quotes eld
40985 programming language
40986 \begin_inset Quotes erd
40989 ; you can calculate with it and draw diagrams and images
40993 \begin_layout Plain Layout
40994 If you are interested to learn more about this, have a look at the LaTeX-package
41000 \begin_inset CommandInset citation
41012 Due to this ability, the files are often bigger than PDFs.
41015 \begin_layout Standard
41016 PostScript can only contain images in the format
41017 \begin_inset Quotes eld
41020 Encapsulated PostScript
41021 \begin_inset Quotes erd
41024 (EPS, file extension
41025 \begin_inset Quotes eld
41033 \begin_inset Quotes erd
41037 As LyX allows you to use any known image format in your document, it has
41038 to convert images in the background to EPS.
41040 \begin_inset space ~
41044 \begin_inset space ~
41047 images in your document, LyX has to do 50
41048 \begin_inset space ~
41051 conversions whenever you view or export your document.
41052 This will slow down your work flow with LyX drastically.
41053 So if you plan to use PostScript, you can insert your images directly as
41054 EPS to avoid this problem.
41057 \begin_layout Standard
41058 You can export your document to PostScript using the menu
41060 File\SpecialChar \menuseparator
41061 Export\SpecialChar \menuseparator
41065 You can view your document as PostScript via the
41072 \begin_layout Section
41074 \begin_inset Index idx
41077 \begin_layout Plain Layout
41084 \begin_inset Index idx
41087 \begin_layout Plain Layout
41096 \begin_layout Standard
41097 This file type has the extension
41098 \begin_inset Quotes eld
41106 \begin_inset Quotes erd
41111 \begin_inset Quotes eld
41114 Portable Document Format
41115 \begin_inset Quotes erd
41118 (PDF) was developed by
41122 as a derivative of PostScript.
41123 It is more compressed and it uses fewer commands than PostScript.
41125 \begin_inset Quotes eld
41129 \begin_inset Quotes erd
41132 implies, it can be processed at any computer system and the printed output
41133 looks exactly the same.
41136 \begin_layout Standard
41137 PDF can contain images in its own PDF format, in the format
41138 \begin_inset Quotes eld
41141 Joint Photographic Experts Group
41142 \begin_inset Quotes erd
41145 (JPG, file extension
41146 \begin_inset Quotes eld
41154 \begin_inset Quotes erd
41158 \begin_inset Quotes eld
41166 \begin_inset Quotes erd
41169 ), and in the format
41170 \begin_inset Quotes eld
41173 Portable Network Graphics
41174 \begin_inset Quotes erd
41177 (PNG, file extension
41178 \begin_inset Quotes eld
41186 \begin_inset Quotes erd
41190 Nevertheless you can use any other image format, because LyX converts them
41191 in the background to one of these formats.
41192 But as described in the section about PostScript, the image conversion
41193 will slow down your work flow.
41194 So it is recommended that you use images in one of the three mentioned
41198 \begin_layout Standard
41199 You can export your document to PDF via the menu
41201 File\SpecialChar \menuseparator
41204 in three different ways:
41207 \begin_layout Description
41209 \begin_inset space ~
41212 (ps2pdf) This uses the program
41216 that creates a PDF from a PostScript-version of your file.
41217 The PostScript-version is produced by the program
41221 which uses a DVI-version as intermediate step.
41222 So this export variant consists of three conversions.
41225 \begin_layout Description
41227 \begin_inset space ~
41230 (dvipdfm) This uses the program
41234 that converts your file in the background to DVI and in a second step to
41238 \begin_layout Description
41240 \begin_inset space ~
41243 (pdflatex) This uses the program
41247 that converts your file directly to PDF.
41250 \begin_layout Standard
41251 It is recommended that you use
41254 \begin_inset space ~
41263 supports all features of actual PDF-versions, is quick and works stable.
41268 is not under development and therefore a bit outdated.
41271 \begin_layout Standard
41272 You can view your document as PDF via the
41276 menu or by using a toolbar button.
41279 \begin_layout Chapter
41280 List of dvips color names
41281 \begin_inset CommandInset label
41283 name "chap:List-of-dvips-colornames"
41290 \begin_layout Standard
41291 \begin_inset Tabular
41292 <lyxtabular version="3" rows="17" columns="4">
41293 <features rotate="0" tabularvalignment="middle">
41294 <column alignment="left" valignment="top" width="0pt">
41295 <column alignment="left" valignment="top" width="0pt">
41296 <column alignment="left" valignment="top" width="0pt">
41297 <column alignment="left" valignment="top" width="0pt">
41299 <cell alignment="left" valignment="top" usebox="none">
41302 \begin_layout Plain Layout
41306 \begin_layout Plain Layout
41319 \begin_layout Plain Layout
41330 \begin_layout Plain Layout
41342 <cell alignment="left" valignment="top" usebox="none">
41345 \begin_layout Plain Layout
41349 \begin_layout Plain Layout
41362 \begin_layout Plain Layout
41373 \begin_layout Plain Layout
41385 <cell alignment="left" valignment="top" usebox="none">
41388 \begin_layout Plain Layout
41392 \begin_layout Plain Layout
41405 \begin_layout Plain Layout
41416 \begin_layout Plain Layout
41428 <cell alignment="left" valignment="top" usebox="none">
41431 \begin_layout Plain Layout
41435 \begin_layout Plain Layout
41448 \begin_layout Plain Layout
41459 \begin_layout Plain Layout
41473 <cell alignment="center" valignment="top" usebox="none">
41476 \begin_layout Plain Layout
41480 \begin_layout Plain Layout
41493 \begin_layout Plain Layout
41501 \begin_inset Phantom Phantom
41504 \begin_layout Plain Layout
41514 \begin_layout Plain Layout
41526 <cell alignment="center" valignment="top" usebox="none">
41529 \begin_layout Plain Layout
41533 \begin_layout Plain Layout
41546 \begin_layout Plain Layout
41554 \begin_inset Phantom Phantom
41557 \begin_layout Plain Layout
41567 \begin_layout Plain Layout
41579 <cell alignment="center" valignment="top" usebox="none">
41582 \begin_layout Plain Layout
41586 \begin_layout Plain Layout
41599 \begin_layout Plain Layout
41607 \begin_inset Phantom Phantom
41610 \begin_layout Plain Layout
41620 \begin_layout Plain Layout
41632 <cell alignment="center" valignment="top" usebox="none">
41635 \begin_layout Plain Layout
41639 \begin_layout Plain Layout
41652 \begin_layout Plain Layout
41660 \begin_inset Phantom Phantom
41663 \begin_layout Plain Layout
41673 \begin_layout Plain Layout
41687 <cell alignment="left" valignment="top" usebox="none">
41690 \begin_layout Plain Layout
41694 \begin_layout Plain Layout
41707 \begin_layout Plain Layout
41715 \begin_inset Phantom Phantom
41718 \begin_layout Plain Layout
41728 \begin_layout Plain Layout
41740 <cell alignment="left" valignment="top" usebox="none">
41743 \begin_layout Plain Layout
41747 \begin_layout Plain Layout
41760 \begin_layout Plain Layout
41768 \begin_inset Phantom Phantom
41771 \begin_layout Plain Layout
41781 \begin_layout Plain Layout
41793 <cell alignment="left" valignment="top" usebox="none">
41796 \begin_layout Plain Layout
41800 \begin_layout Plain Layout
41813 \begin_layout Plain Layout
41821 \begin_inset Phantom Phantom
41824 \begin_layout Plain Layout
41834 \begin_layout Plain Layout
41846 <cell alignment="left" valignment="top" usebox="none">
41849 \begin_layout Plain Layout
41853 \begin_layout Plain Layout
41866 \begin_layout Plain Layout
41874 \begin_inset Phantom Phantom
41877 \begin_layout Plain Layout
41887 \begin_layout Plain Layout
41901 <cell alignment="left" valignment="top" usebox="none">
41904 \begin_layout Plain Layout
41908 \begin_layout Plain Layout
41921 \begin_layout Plain Layout
41929 \begin_inset Phantom Phantom
41932 \begin_layout Plain Layout
41942 \begin_layout Plain Layout
41954 <cell alignment="left" valignment="top" usebox="none">
41957 \begin_layout Plain Layout
41961 \begin_layout Plain Layout
41974 \begin_layout Plain Layout
41982 \begin_inset Phantom Phantom
41985 \begin_layout Plain Layout
41995 \begin_layout Plain Layout
42007 <cell alignment="left" valignment="top" usebox="none">
42010 \begin_layout Plain Layout
42014 \begin_layout Plain Layout
42027 \begin_layout Plain Layout
42035 \begin_inset Phantom Phantom
42038 \begin_layout Plain Layout
42048 \begin_layout Plain Layout
42060 <cell alignment="left" valignment="top" usebox="none">
42063 \begin_layout Plain Layout
42067 \begin_layout Plain Layout
42080 \begin_layout Plain Layout
42088 \begin_inset Phantom Phantom
42091 \begin_layout Plain Layout
42101 \begin_layout Plain Layout
42115 <cell alignment="left" valignment="top" usebox="none">
42118 \begin_layout Plain Layout
42122 \begin_layout Plain Layout
42135 \begin_layout Plain Layout
42143 \begin_inset Phantom Phantom
42146 \begin_layout Plain Layout
42156 \begin_layout Plain Layout
42168 <cell alignment="left" valignment="top" usebox="none">
42171 \begin_layout Plain Layout
42175 \begin_layout Plain Layout
42188 \begin_layout Plain Layout
42196 \begin_inset Phantom Phantom
42199 \begin_layout Plain Layout
42209 \begin_layout Plain Layout
42221 <cell alignment="left" valignment="top" usebox="none">
42224 \begin_layout Plain Layout
42228 \begin_layout Plain Layout
42241 \begin_layout Plain Layout
42249 \begin_inset Phantom Phantom
42252 \begin_layout Plain Layout
42262 \begin_layout Plain Layout
42274 <cell alignment="left" valignment="top" usebox="none">
42277 \begin_layout Plain Layout
42281 \begin_layout Plain Layout
42294 \begin_layout Plain Layout
42302 \begin_inset Phantom Phantom
42305 \begin_layout Plain Layout
42315 \begin_layout Plain Layout
42329 <cell alignment="left" valignment="top" usebox="none">
42332 \begin_layout Plain Layout
42336 \begin_layout Plain Layout
42349 \begin_layout Plain Layout
42357 \begin_inset Phantom Phantom
42360 \begin_layout Plain Layout
42370 \begin_layout Plain Layout
42382 <cell alignment="left" valignment="top" usebox="none">
42385 \begin_layout Plain Layout
42389 \begin_layout Plain Layout
42402 \begin_layout Plain Layout
42410 \begin_inset Phantom Phantom
42413 \begin_layout Plain Layout
42423 \begin_layout Plain Layout
42435 <cell alignment="left" valignment="top" usebox="none">
42438 \begin_layout Plain Layout
42442 \begin_layout Plain Layout
42455 \begin_layout Plain Layout
42463 \begin_inset Phantom Phantom
42466 \begin_layout Plain Layout
42476 \begin_layout Plain Layout
42488 <cell alignment="left" valignment="top" usebox="none">
42491 \begin_layout Plain Layout
42495 \begin_layout Plain Layout
42508 \begin_layout Plain Layout
42516 \begin_inset Phantom Phantom
42519 \begin_layout Plain Layout
42529 \begin_layout Plain Layout
42543 <cell alignment="center" valignment="top" usebox="none">
42546 \begin_layout Plain Layout
42550 \begin_layout Plain Layout
42563 \begin_layout Plain Layout
42571 \begin_inset Phantom Phantom
42574 \begin_layout Plain Layout
42584 \begin_layout Plain Layout
42596 <cell alignment="center" valignment="top" usebox="none">
42599 \begin_layout Plain Layout
42603 \begin_layout Plain Layout
42616 \begin_layout Plain Layout
42624 \begin_inset Phantom Phantom
42627 \begin_layout Plain Layout
42637 \begin_layout Plain Layout
42649 <cell alignment="center" valignment="top" usebox="none">
42652 \begin_layout Plain Layout
42656 \begin_layout Plain Layout
42669 \begin_layout Plain Layout
42677 \begin_inset Phantom Phantom
42680 \begin_layout Plain Layout
42690 \begin_layout Plain Layout
42702 <cell alignment="center" valignment="top" usebox="none">
42705 \begin_layout Plain Layout
42709 \begin_layout Plain Layout
42722 \begin_layout Plain Layout
42730 \begin_inset Phantom Phantom
42733 \begin_layout Plain Layout
42743 \begin_layout Plain Layout
42757 <cell alignment="left" valignment="top" usebox="none">
42760 \begin_layout Plain Layout
42764 \begin_layout Plain Layout
42777 \begin_layout Plain Layout
42785 \begin_inset Phantom Phantom
42788 \begin_layout Plain Layout
42798 \begin_layout Plain Layout
42810 <cell alignment="left" valignment="top" usebox="none">
42813 \begin_layout Plain Layout
42817 \begin_layout Plain Layout
42830 \begin_layout Plain Layout
42838 \begin_inset Phantom Phantom
42841 \begin_layout Plain Layout
42851 \begin_layout Plain Layout
42863 <cell alignment="left" valignment="top" usebox="none">
42866 \begin_layout Plain Layout
42870 \begin_layout Plain Layout
42883 \begin_layout Plain Layout
42891 \begin_inset Phantom Phantom
42894 \begin_layout Plain Layout
42904 \begin_layout Plain Layout
42916 <cell alignment="left" valignment="top" usebox="none">
42919 \begin_layout Plain Layout
42923 \begin_layout Plain Layout
42936 \begin_layout Plain Layout
42944 \begin_inset Phantom Phantom
42947 \begin_layout Plain Layout
42957 \begin_layout Plain Layout
42971 <cell alignment="left" valignment="top" usebox="none">
42974 \begin_layout Plain Layout
42978 \begin_layout Plain Layout
42991 \begin_layout Plain Layout
42999 \begin_inset Phantom Phantom
43002 \begin_layout Plain Layout
43012 \begin_layout Plain Layout
43024 <cell alignment="left" valignment="top" usebox="none">
43027 \begin_layout Plain Layout
43031 \begin_layout Plain Layout
43044 \begin_layout Plain Layout
43052 \begin_inset Phantom Phantom
43055 \begin_layout Plain Layout
43065 \begin_layout Plain Layout
43077 <cell alignment="left" valignment="top" usebox="none">
43080 \begin_layout Plain Layout
43084 \begin_layout Plain Layout
43097 \begin_layout Plain Layout
43105 \begin_inset Phantom Phantom
43108 \begin_layout Plain Layout
43118 \begin_layout Plain Layout
43130 <cell alignment="left" valignment="top" usebox="none">
43133 \begin_layout Plain Layout
43137 \begin_layout Plain Layout
43150 \begin_layout Plain Layout
43158 \begin_inset Phantom Phantom
43161 \begin_layout Plain Layout
43171 \begin_layout Plain Layout
43185 <cell alignment="left" valignment="top" usebox="none">
43188 \begin_layout Plain Layout
43192 \begin_layout Plain Layout
43205 \begin_layout Plain Layout
43213 \begin_inset Phantom Phantom
43216 \begin_layout Plain Layout
43226 \begin_layout Plain Layout
43238 <cell alignment="left" valignment="top" usebox="none">
43241 \begin_layout Plain Layout
43245 \begin_layout Plain Layout
43258 \begin_layout Plain Layout
43266 \begin_inset Phantom Phantom
43269 \begin_layout Plain Layout
43279 \begin_layout Plain Layout
43291 <cell alignment="left" valignment="top" usebox="none">
43294 \begin_layout Plain Layout
43298 \begin_layout Plain Layout
43311 \begin_layout Plain Layout
43319 \begin_inset Phantom Phantom
43322 \begin_layout Plain Layout
43332 \begin_layout Plain Layout
43344 <cell alignment="left" valignment="top" usebox="none">
43347 \begin_layout Plain Layout
43351 \begin_layout Plain Layout
43364 \begin_layout Plain Layout
43372 \begin_inset Phantom Phantom
43375 \begin_layout Plain Layout
43385 \begin_layout Plain Layout
43399 <cell alignment="left" valignment="top" usebox="none">
43402 \begin_layout Plain Layout
43406 \begin_layout Plain Layout
43419 \begin_layout Plain Layout
43427 \begin_inset Phantom Phantom
43430 \begin_layout Plain Layout
43440 \begin_layout Plain Layout
43452 <cell alignment="left" valignment="top" usebox="none">
43455 \begin_layout Plain Layout
43459 \begin_layout Plain Layout
43472 \begin_layout Plain Layout
43480 \begin_inset Phantom Phantom
43483 \begin_layout Plain Layout
43493 \begin_layout Plain Layout
43505 <cell alignment="left" valignment="top" usebox="none">
43508 \begin_layout Plain Layout
43512 \begin_layout Plain Layout
43525 \begin_layout Plain Layout
43533 \begin_inset Phantom Phantom
43536 \begin_layout Plain Layout
43546 \begin_layout Plain Layout
43558 <cell alignment="left" valignment="top" usebox="none">
43561 \begin_layout Plain Layout
43565 \begin_layout Plain Layout
43578 \begin_layout Plain Layout
43586 \begin_inset Phantom Phantom
43589 \begin_layout Plain Layout
43599 \begin_layout Plain Layout
43613 <cell alignment="left" valignment="top" usebox="none">
43616 \begin_layout Plain Layout
43620 \begin_layout Plain Layout
43633 \begin_layout Plain Layout
43641 \begin_inset Phantom Phantom
43644 \begin_layout Plain Layout
43654 \begin_layout Plain Layout
43666 <cell alignment="left" valignment="top" usebox="none">
43669 \begin_layout Plain Layout
43673 \begin_layout Plain Layout
43686 \begin_layout Plain Layout
43694 \begin_inset Phantom Phantom
43697 \begin_layout Plain Layout
43707 \begin_layout Plain Layout
43719 <cell alignment="left" valignment="top" usebox="none">
43722 \begin_layout Plain Layout
43726 \begin_layout Plain Layout
43739 \begin_layout Plain Layout
43747 \begin_inset Phantom Phantom
43750 \begin_layout Plain Layout
43760 \begin_layout Plain Layout
43772 <cell alignment="left" valignment="top" usebox="none">
43775 \begin_layout Plain Layout
43779 \begin_layout Plain Layout
43792 \begin_layout Plain Layout
43800 \begin_inset Phantom Phantom
43803 \begin_layout Plain Layout
43813 \begin_layout Plain Layout
43827 <cell alignment="left" valignment="top" usebox="none">
43830 \begin_layout Plain Layout
43834 \begin_layout Plain Layout
43847 \begin_layout Plain Layout
43855 \begin_inset Phantom Phantom
43858 \begin_layout Plain Layout
43868 \begin_layout Plain Layout
43880 <cell alignment="left" valignment="top" usebox="none">
43883 \begin_layout Plain Layout
43887 \begin_layout Plain Layout
43900 \begin_layout Plain Layout
43908 \begin_inset Phantom Phantom
43911 \begin_layout Plain Layout
43921 \begin_layout Plain Layout
43933 <cell alignment="left" valignment="top" usebox="none">
43936 \begin_layout Plain Layout
43940 \begin_layout Plain Layout
43953 \begin_layout Plain Layout
43961 \begin_inset Phantom Phantom
43964 \begin_layout Plain Layout
43974 \begin_layout Plain Layout
43986 <cell alignment="left" valignment="top" usebox="none">
43989 \begin_layout Plain Layout
43993 \begin_layout Plain Layout
44006 \begin_layout Plain Layout
44014 \begin_inset Phantom Phantom
44017 \begin_layout Plain Layout
44027 \begin_layout Plain Layout
44041 <cell alignment="left" valignment="top" usebox="none">
44044 \begin_layout Plain Layout
44048 \begin_layout Plain Layout
44061 \begin_layout Plain Layout
44069 \begin_inset Phantom Phantom
44072 \begin_layout Plain Layout
44082 \begin_layout Plain Layout
44094 <cell alignment="left" valignment="top" usebox="none">
44097 \begin_layout Plain Layout
44101 \begin_layout Plain Layout
44114 \begin_layout Plain Layout
44122 \begin_inset Phantom Phantom
44125 \begin_layout Plain Layout
44135 \begin_layout Plain Layout
44147 <cell alignment="left" valignment="top" usebox="none">
44150 \begin_layout Plain Layout
44154 \begin_layout Plain Layout
44167 \begin_layout Plain Layout
44175 \begin_inset Phantom Phantom
44178 \begin_layout Plain Layout
44188 \begin_layout Plain Layout
44200 <cell alignment="left" valignment="top" usebox="none">
44203 \begin_layout Plain Layout
44207 \begin_layout Plain Layout
44220 \begin_layout Plain Layout
44228 \begin_inset Phantom Phantom
44231 \begin_layout Plain Layout
44241 \begin_layout Plain Layout
44255 <cell alignment="left" valignment="top" usebox="none">
44258 \begin_layout Plain Layout
44262 \begin_layout Plain Layout
44275 \begin_layout Plain Layout
44283 \begin_inset Phantom Phantom
44286 \begin_layout Plain Layout
44296 \begin_layout Plain Layout
44308 <cell alignment="left" valignment="top" usebox="none">
44311 \begin_layout Plain Layout
44315 \begin_layout Plain Layout
44328 \begin_layout Plain Layout
44336 \begin_inset Phantom Phantom
44339 \begin_layout Plain Layout
44349 \begin_layout Plain Layout
44361 <cell alignment="left" valignment="top" usebox="none">
44364 \begin_layout Plain Layout
44368 \begin_layout Plain Layout
44381 \begin_layout Plain Layout
44389 \begin_inset Phantom Phantom
44392 \begin_layout Plain Layout
44402 \begin_layout Plain Layout
44414 <cell alignment="left" valignment="top" usebox="none">
44417 \begin_layout Plain Layout
44421 \begin_layout Plain Layout
44434 \begin_layout Plain Layout
44442 \begin_inset Phantom Phantom
44445 \begin_layout Plain Layout
44455 \begin_layout Plain Layout
44469 <cell alignment="left" valignment="top" usebox="none">
44472 \begin_layout Plain Layout
44476 \begin_layout Plain Layout
44489 \begin_layout Plain Layout
44497 \begin_inset Phantom Phantom
44500 \begin_layout Plain Layout
44510 \begin_layout Plain Layout
44522 <cell alignment="left" valignment="top" usebox="none">
44525 \begin_layout Plain Layout
44529 \begin_layout Plain Layout
44542 \begin_layout Plain Layout
44550 \begin_inset Phantom Phantom
44553 \begin_layout Plain Layout
44563 \begin_layout Plain Layout
44575 <cell alignment="left" valignment="top" usebox="none">
44578 \begin_layout Plain Layout
44582 \begin_layout Plain Layout
44595 \begin_layout Plain Layout
44603 \begin_inset Phantom Phantom
44606 \begin_layout Plain Layout
44616 \begin_layout Plain Layout
44628 <cell alignment="left" valignment="top" usebox="none">
44631 \begin_layout Plain Layout
44635 \begin_layout Plain Layout
44648 \begin_layout Plain Layout
44656 \begin_inset Phantom Phantom
44659 \begin_layout Plain Layout
44669 \begin_layout Plain Layout
44683 <cell alignment="left" valignment="top" usebox="none">
44686 \begin_layout Plain Layout
44690 \begin_layout Plain Layout
44703 \begin_layout Plain Layout
44711 \begin_inset Phantom Phantom
44714 \begin_layout Plain Layout
44724 \begin_layout Plain Layout
44736 <cell alignment="left" valignment="top" usebox="none">
44739 \begin_layout Plain Layout
44745 <cell alignment="left" valignment="top" usebox="none">
44748 \begin_layout Plain Layout
44754 <cell alignment="left" valignment="top" usebox="none">
44757 \begin_layout Plain Layout
44771 \begin_layout Chapter
44772 Explanation of Equation
44773 \begin_inset space ~
44777 \begin_inset CommandInset ref
44784 \begin_inset CommandInset label
44786 name "cha:Explanation-of-Equation"
44793 \begin_layout Standard
44794 We can calculate the total width of
44799 \begin_inset Formula $W_{\mathrm{tot\, n}}$
44803 \begin_inset Formula
44805 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44811 \begin_inset Formula $W_{g\, n}$
44814 is the given width of all cells,
44820 is the LaTeX-length between the cell text and the cell border (its default
44822 \begin_inset space \thinspace{}
44832 is the thickness of the cell border line, the default is 0.4
44833 \begin_inset space \thinspace{}
44839 \begin_layout Standard
44841 \begin_inset space ~
44845 \begin_inset CommandInset ref
44847 reference "eq:Wtot_n"
44851 , the total width of a multicolumn
44852 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
44856 \begin_inset Formula
44858 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
44866 \begin_layout Standard
44867 By setting equation
44868 \begin_inset space ~
44872 \begin_inset CommandInset ref
44874 reference "eq:Wtot_n"
44879 \begin_inset CommandInset ref
44881 reference "eq:Wtot_mult"
44885 equal we can calculate the needed given width
44886 \begin_inset Formula $W_{g\, n}$
44893 columns are spanned, so that each column has a total width of
44894 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
44898 \begin_inset Formula
44900 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
44908 \begin_layout Bibliography
44909 \begin_inset CommandInset bibitem
44910 LatexCommand bibitem
44911 key "latexcompanion"
44915 Frank Mittelbach and Michel Goossens:
44917 The LaTeX Companion Second Edition.
44920 Addison-Wesley, 2004
44923 \begin_layout Bibliography
44924 \begin_inset CommandInset bibitem
44925 LatexCommand bibitem
44930 Helmut Kopka and Patrick W.
44933 A Guide to LaTeX Fourth Edition.
44936 Addison-Wesley, 2003
44939 \begin_layout Bibliography
44940 \begin_inset CommandInset bibitem
44941 LatexCommand bibitem
44948 LaTeX: A Document Preparation System.
44951 Addison-Wesley, second edition, 1994
44954 \begin_layout Bibliography
44955 \begin_inset CommandInset bibitem
44956 LatexCommand bibitem
44961 Documentation of the LaTeX-package
44964 \begin_inset CommandInset href
44967 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
44974 \begin_inset Index idx
44977 \begin_layout Plain Layout
44978 LaTeX-packages ! arydshln
44986 \begin_layout Bibliography
44987 \begin_inset CommandInset bibitem
44988 LatexCommand bibitem
44993 Documentation of the LaTeX-package
44996 \begin_inset CommandInset href
44999 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45006 \begin_inset Index idx
45009 \begin_layout Plain Layout
45010 LaTeX-packages ! booktabs
45018 \begin_layout Bibliography
45019 \begin_inset CommandInset bibitem
45020 LatexCommand bibitem
45025 Documentation of the LaTeX-package
45028 \begin_inset CommandInset href
45031 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
45038 \begin_inset Index idx
45041 \begin_layout Plain Layout
45042 LaTeX-packages ! caption
45050 \begin_layout Bibliography
45051 \begin_inset CommandInset bibitem
45052 LatexCommand bibitem
45057 Documentation of the LaTeX-package
45060 \begin_inset CommandInset href
45063 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45070 \begin_inset Index idx
45073 \begin_layout Plain Layout
45074 LaTeX-packages ! diagbox
45082 \begin_layout Bibliography
45083 \begin_inset CommandInset bibitem
45084 LatexCommand bibitem
45089 Documentation of the LaTeX-package
45092 \begin_inset CommandInset href
45095 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45102 \begin_inset Index idx
45105 \begin_layout Plain Layout
45106 LaTeX-packages ! endfloat
45114 \begin_layout Bibliography
45115 \begin_inset CommandInset bibitem
45116 LatexCommand bibitem
45121 Documentation of the LaTeX-package
45124 \begin_inset CommandInset href
45127 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45134 \begin_inset Index idx
45137 \begin_layout Plain Layout
45138 LaTeX-packages ! footmisc
45146 \begin_layout Bibliography
45147 \begin_inset CommandInset bibitem
45148 LatexCommand bibitem
45153 Documentation of the LaTeX-package
45156 \begin_inset CommandInset href
45159 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45166 \begin_inset Index idx
45169 \begin_layout Plain Layout
45170 LaTeX-packages ! hyperref
45178 \begin_layout Bibliography
45179 \begin_inset CommandInset bibitem
45180 LatexCommand bibitem
45185 Documentation of the LaTeX-package
45188 \begin_inset CommandInset href
45191 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45198 \begin_inset Index idx
45201 \begin_layout Plain Layout
45202 LaTeX-packages ! hyperref
45210 \begin_layout Bibliography
45211 \begin_inset CommandInset bibitem
45212 LatexCommand bibitem
45217 Documentation of the LaTeX-package
45220 \begin_inset CommandInset href
45223 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
45230 \begin_inset Index idx
45233 \begin_layout Plain Layout
45234 LaTeX-packages ! KOMA-Script
45242 \begin_layout Bibliography
45243 \begin_inset CommandInset bibitem
45244 LatexCommand bibitem
45249 Documentation of the LaTeX-package
45252 \begin_inset CommandInset href
45255 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45262 \begin_inset CommandInset href
45265 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45270 \begin_inset Index idx
45273 \begin_layout Plain Layout
45274 LaTeX-packages ! lettrine
45282 \begin_layout Bibliography
45283 \begin_inset CommandInset bibitem
45284 LatexCommand bibitem
45289 Documentation of the LaTeX-package
45292 \begin_inset CommandInset href
45295 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45302 \begin_inset Index idx
45305 \begin_layout Plain Layout
45306 LaTeX-packages ! listings
45314 \begin_layout Bibliography
45315 \begin_inset CommandInset bibitem
45316 LatexCommand bibitem
45321 Documentation of the LaTeX-package
45324 \begin_inset CommandInset href
45327 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45334 \begin_inset Index idx
45337 \begin_layout Plain Layout
45338 LaTeX-packages ! marginnote
45346 \begin_layout Bibliography
45347 \begin_inset CommandInset bibitem
45348 LatexCommand bibitem
45353 Documentation of the LaTeX-package
45356 \begin_inset CommandInset href
45359 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45366 \begin_inset Index idx
45369 \begin_layout Plain Layout
45370 LaTeX-packages ! pdfpages
45378 \begin_layout Bibliography
45379 \begin_inset CommandInset bibitem
45380 LatexCommand bibitem
45385 Documentation of the LaTeX-package
45388 \begin_inset CommandInset href
45391 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45398 \begin_inset Index idx
45401 \begin_layout Plain Layout
45402 LaTeX-packages ! prettyref
45410 \begin_layout Bibliography
45411 \begin_inset CommandInset bibitem
45412 LatexCommand bibitem
45417 Web page of the LaTeX-package
45420 \begin_inset CommandInset href
45423 target "http://tug.org/PSTricks/"
45430 \begin_inset Index idx
45433 \begin_layout Plain Layout
45434 LaTeX-packages ! PSTricks
45442 \begin_layout Bibliography
45443 \begin_inset CommandInset bibitem
45444 LatexCommand bibitem
45449 Documentation of the LaTeX-package
45452 \begin_inset CommandInset href
45455 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
45462 \begin_inset Index idx
45465 \begin_layout Plain Layout
45466 LaTeX-packages ! refstyle
45474 \begin_layout Bibliography
45475 \begin_inset CommandInset bibitem
45476 LatexCommand bibitem
45481 Documentation of the LaTeX-package
45484 \begin_inset CommandInset href
45487 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45494 \begin_inset Index idx
45497 \begin_layout Plain Layout
45498 LaTeX-packages ! sidecap
45506 \begin_layout Bibliography
45507 \begin_inset CommandInset bibitem
45508 LatexCommand bibitem
45514 \begin_inset CommandInset href
45517 target "http://wiki.lyx.org/LyX/NewInLyX20"
45521 about new features in
45528 \begin_layout Standard
45529 \begin_inset CommandInset index_print
45530 LatexCommand printindex