1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used to have extra space in table cells
85 \@ifundefined{extrarowheight}
86 {\usepackage{array}}{}
87 \setlength{\extrarowheight}{2pt}
89 % used for customized tables
92 {>{\centering\hspace{0pt}}m{#1}}
95 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
98 {>{\columncolor{#1}\hspace{0pt}}c}
100 \newcolumntype{V}{!{\vrule width 1.5pt}}
102 \newcolumntype{W}{!{\color{green}\vline}}
105 % insert additional vertical space of
106 % 1.5 mm between footnotes
108 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
110 % number algorithm floats within chapters
111 \numberwithin{algorithm}{chapter}
113 % ------------------------------------
114 % used to check for needed LaTeX packages
117 % check for package arydshln
118 % used for tables with dashed lines
119 \newboolean{arydshln}
120 \IfFileExists{arydshln.sty}
121 {\usepackage{arydshln}
122 \setboolean{arydshln}{true}}
123 {\setboolean{arydshln}{false}}
125 % check for package marginnote
126 % used for margin notes
127 \newboolean{marginnote}
128 \IfFileExists{marginnote.sty}
129 {\usepackage{marginnote}
130 \let\marginpar\marginnote
131 \setboolean{marginnote}{true}}
132 {\setboolean{marginnote}{false}}
134 % check for package sidecap
135 % used for captions on the side
137 \IfFileExists{sidecap.sty}
138 {\usepackage{sidecap}
139 \setboolean{sidecap}{true}}
140 {\setboolean{sidecap}{false}}
143 % used for surrounded fixed objects
144 \newboolean{picinpar}
145 \IfFileExists{picinpar.sty}
146 {\usepackage{picinpar}
147 \setboolean{picinpar}{true}}
148 {\setboolean{picinpar}{false}}
151 \newboolean{lettrine}
152 \IfFileExists{lettrine.sty}
153 {\usepackage{lettrine}
154 \setboolean{lettrine}{true}}
155 {\setboolean{lettrine}{false}}
159 \IfFileExists{diagbox.sty}
160 {\usepackage{diagbox}
161 \setboolean{diagbox}{true}}
162 {\setboolean{diagbox}{false}}
164 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,usenames,dvipsnames
165 \use_default_options false
169 \maintain_unincluded_children false
171 \language_package default
176 \font_typewriter default
177 \font_default_family default
178 \use_non_tex_fonts false
185 \default_output_format default
187 \bibtex_command default
188 \index_command default
192 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
193 \pdf_author "LyX Team, Uwe Stöhr"
194 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
195 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
197 \pdf_bookmarksnumbered true
198 \pdf_bookmarksopen true
199 \pdf_bookmarksopenlevel 1
200 \pdf_breaklinks false
204 \pdf_pdfusetitle false
205 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
215 \paperorientation portrait
218 \notefontcolor #0000ff
225 \paragraph_separation skip
227 \quotes_language english
230 \paperpagestyle default
234 \tracking_changes false
235 \output_changes false
238 \html_be_strict false
244 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
253 \begin_layout Plain Layout
255 If you have comments or error corrections, please send them to the LyX Documenta
257 \begin_inset CommandInset href
259 name "lyx-docs@lists.lyx.org"
260 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
271 \begin_inset Note Note
274 \begin_layout Plain Layout
281 \begin_inset Newline newline
285 \begin_inset Newline newline
293 \begin_layout Standard
294 \begin_inset CommandInset toc
295 LatexCommand tableofcontents
302 \begin_layout Standard
303 \begin_inset Note Note
306 \begin_layout Plain Layout
307 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
318 diagbox, lettrine, marginnote, picinpar
325 If they are not installed you can export the document anyway but the sections
326 where the packages are required won't appear in the output.
329 \begin_layout Plain Layout
330 The latest PDF-version of this document can be found here:
331 \begin_inset Newline newline
336 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
344 \begin_layout Chapter
346 \begin_inset Index idx
349 \begin_layout Plain Layout
356 \begin_inset Index idx
359 \begin_layout Plain Layout
364 \begin_layout Plain Layout
375 \begin_layout Plain Layout
390 \begin_layout Section
392 \begin_inset Index idx
395 \begin_layout Plain Layout
396 Figures ! Graphics Dialog
402 \begin_inset CommandInset label
404 name "sec:Graphics-Dialog"
411 \begin_layout Standard
412 To insert an image into your document, place the cursor at the text position
413 you want and click on the toolbar icon
418 arg "dialog-show-new-inset graphics"
425 Insert\SpecialChar \menuseparator
429 Then a dialog will appear to choose the file to load.
430 The image will appear in the output exactly at the position where it is
434 \begin_layout Standard
435 The graphics dialog can be called at any time by clicking on an image.
436 This dialog has three tabs:
439 \begin_layout Description
444 Here you can choose an image file and adjust its appearance in the output.
445 The available units for the image size are explained in appendix
450 \begin_inset CommandInset ref
452 reference "cha:Units-available-in"
457 \begin_inset Newline newline
461 \begin_inset Index idx
464 \begin_layout Plain Layout
470 You can rotate images counter-clockwise by setting a rotation angle and
472 The image will also be rotated inside LyX.
473 \begin_inset Newline newline
477 \begin_inset Index idx
480 \begin_layout Plain Layout
486 Images can be scaled by using a percentage value or by setting the width
487 and height explicitly.
488 If you set only the width or only the height, the other size will be determined
490 If you set both, then the image will be transformed to the given size,
491 possibly distorting it.
492 To prevent the image from distortion, use the option
494 Maintain aspect ratio
497 The image will then be scaled so that its width and height don't exceed
498 the specified dimensions.
499 \begin_inset Newline newline
502 Images can be opened in a program of your choice by right-clicking on it
503 and choosing the entry
512 The program can be set for every image format in the file format settings
513 in LyX's preferences.
516 \begin_layout Description
521 Alternatively to the usage of scaling units it is possible to set image
522 coordinates to adjust the height and width of the image in the output.
523 The coordinates can also be calculated automatically by pressing the button
553 will only print the image region within the given coordinates.
554 Normally you don't need to take care about image coordinates and can ignore
558 \begin_layout Description
575 In this tab you can modify the appearance of the image within LyX and LaTeX
576 experts can specify additional LaTeX options.
577 \begin_inset Newline newline
588 makes the image appear in the output only as a frame with the size of the
590 \begin_inset Newline newline
609 option only affects zipped EPS-graphics, e.
610 \begin_inset space \thinspace{}
614 \begin_inset space \space{}
622 When the option is used the images will not be unzipped on export, since
623 LaTeX can handle them as they are.
624 \begin_inset Newline newline
627 Zipped EPS-graphics are useful to save disk space when you choose PostScript
628 as output format, see appendix
633 \begin_inset CommandInset ref
635 reference "sec:PostScript"
640 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
642 \begin_inset Newline newline
650 \begin_inset Newline newline
655 zgrep %%Bounding x.eps.gz > x.eps.bb
658 \begin_inset Newline newline
661 The second command creates the bounding box file
662 \begin_inset Quotes eld
666 \begin_inset Quotes erd
669 that is needed by LaTeX for zipped graphics.
670 \begin_inset Newline newline
681 you can define or join an image settings group.
682 \begin_inset Index idx
685 \begin_layout Plain Layout
686 Figures ! Settings grouping
691 Images within such a group share their settings, so adjusting one image
692 of the group automatically also adjusts all other images of the group in
694 So you can for example change the size for a bunch of images without the
695 need to manually change each of them.
696 Joining an existing group can also be done using the context menu of the
697 image by checking the name of the desired group.
700 \begin_layout Standard
701 \begin_inset VSpace bigskip
707 \begin_layout Standard
708 This is an example image in EPS format
712 \begin_layout Plain Layout
713 Image formats are explained in section
718 \begin_inset CommandInset ref
720 reference "sec:Image-Formats"
729 within a separate, horizontally centered paragraph:
732 \begin_layout Standard
734 \begin_inset Graphics
735 filename clipart/mobius.eps
745 \begin_layout Standard
746 This is the same image like the one above but in draft mode:
749 \begin_layout Standard
751 \begin_inset Graphics
752 filename clipart/mobius.eps
763 \begin_layout Standard
764 \begin_inset Newpage newpage
770 \begin_layout Section
772 \begin_inset CommandInset label
774 name "sec:Figure-Floats"
779 \begin_inset Index idx
782 \begin_layout Plain Layout
789 \begin_inset Index idx
792 \begin_layout Plain Layout
801 \begin_layout Standard
802 For general explanations about floats, have a look at section
807 \begin_inset CommandInset ref
809 reference "sec:FloatIntroduction"
816 \begin_layout Standard
822 arg "float-insert figure"
829 Insert\SpecialChar \menuseparator
830 Float\SpecialChar \menuseparator
833 inserts a float with a caption that has the label
834 \begin_inset Quotes eld
842 \begin_inset Quotes erd
845 (# is the actual number).
846 You can insert the image above the caption, like in Figure
851 \begin_inset CommandInset ref
853 reference "fig:kill-plat"
857 or below the caption, like in Figure
862 \begin_inset CommandInset ref
864 reference "fig:escher"
869 More about caption placement is described in section
874 \begin_inset CommandInset ref
876 reference "sec:Caption-Placement"
883 \begin_layout Standard
884 \begin_inset Float figure
889 \begin_layout Plain Layout
891 \begin_inset Graphics
892 filename clipart/platypus.eps
902 \begin_layout Plain Layout
905 \begin_layout Plain Layout
906 \begin_inset CommandInset label
912 A severely distorted platypus in a float.
925 \begin_layout Standard
926 \begin_inset Float figure
931 \begin_layout Plain Layout
934 \begin_layout Plain Layout
935 \begin_inset CommandInset label
950 \begin_layout Plain Layout
952 \begin_inset Graphics
953 filename clipart/escher-lsd.eps
968 \begin_layout Standard
969 \begin_inset Index idx
972 \begin_layout Plain Layout
973 References ! to Figures
983 \begin_inset CommandInset ref
985 reference "fig:kill-plat"
990 \begin_inset CommandInset ref
992 reference "fig:escher"
996 are examples of referenced figures.
997 Figures can be referenced in the text by referencing their label.
998 To do this insert a label in the caption using the menu
1000 Insert\SpecialChar \menuseparator
1003 or the toolbar button
1014 You can now refer to the label using the menu
1016 Insert\SpecialChar \menuseparator
1018 \begin_inset space ~
1023 or the toolbar button
1028 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
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
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
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 can use only the image formats that can directly be embedded in the
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 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
2100 of text, see section
2101 \begin_inset space ~
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 ~
2123 \begin_inset CommandInset ref
2125 reference "sub:Multicolumns"
2129 or the cells of one column as multirow cell, see section
2130 \begin_inset space ~
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 The rotation is not shown within LyX, only in the output.
2147 \begin_inset Newline newline
2151 \begin_inset Note Greyedout
2154 \begin_layout Plain Layout
2159 Not all DVI-viewers are able to display rotations.
2165 \begin_inset Newline newline
2168 The table-wide vertical alignment is used for tables within text lines:
2169 \begin_inset Newline newline
2172 A line with tables with different alignments:
2173 \begin_inset Tabular
2174 <lyxtabular version="3" rows="2" columns="2">
2175 <features tabularvalignment="top">
2176 <column alignment="center" valignment="top" width="0pt">
2177 <column alignment="center" valignment="top" width="0">
2179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2182 \begin_layout Plain Layout
2188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2191 \begin_layout Plain Layout
2208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2211 \begin_layout Plain Layout
2226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2229 \begin_layout Plain Layout
2241 \begin_inset Tabular
2242 <lyxtabular version="3" rows="2" columns="2">
2243 <features tabularvalignment="middle">
2244 <column alignment="center" valignment="top" width="0">
2245 <column alignment="center" valignment="top" width="0">
2247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2250 \begin_layout Plain Layout
2256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2259 \begin_layout Plain Layout
2276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2279 \begin_layout Plain Layout
2294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2297 \begin_layout Plain Layout
2309 \begin_inset Tabular
2310 <lyxtabular version="3" rows="2" columns="2">
2311 <features tabularvalignment="bottom">
2312 <column alignment="center" valignment="top" width="0pt">
2313 <column alignment="center" valignment="top" width="0">
2315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2318 \begin_layout Plain Layout
2324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2327 \begin_layout Plain Layout
2344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2347 \begin_layout Plain Layout
2362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2365 \begin_layout Plain Layout
2377 \begin_inset Newline newline
2380 It is also possible to enter a LaTeX-argument which is needed for special
2381 table formattings, see section
2382 \begin_inset space ~
2386 \begin_inset CommandInset ref
2388 reference "sub:Multicolumn-Calculations"
2393 \begin_inset CommandInset ref
2395 reference "sec:Colored-Tables"
2402 \begin_layout Description
2407 In this tab you can add and delete border lines for the current row/column.
2408 \begin_inset Newline newline
2411 Using the style option
2415 will convert the table to a formal table as described in section
2416 \begin_inset space ~
2420 \begin_inset CommandInset ref
2422 reference "sec:Formal-Tables"
2427 \begin_inset Newline newline
2430 You can also add here space to table rows as described in section
2431 \begin_inset space ~
2435 \begin_inset CommandInset ref
2437 reference "sub:Row-Spacing"
2444 \begin_layout Description
2449 This tab is to make a table a so called
2450 \begin_inset Quotes eld
2458 \begin_inset Quotes erd
2461 that can run over several pages.
2463 \begin_inset space ~
2467 \begin_inset CommandInset ref
2469 reference "sec:Longtables"
2474 \begin_inset CommandInset ref
2476 reference "sec:Special-Longtable-Issues"
2480 describe the longtable features in detail.
2483 \begin_layout Section
2485 \begin_inset Index idx
2488 \begin_layout Plain Layout
2497 \begin_layout Standard
2498 The table toolbar is an alternative to the table dialog to be able to alter
2500 It should normally appear at the bottom of LyX's main window when the cursor
2502 You can alternatively switch it on to appear always, by right-clicking
2503 in LyX's main menu bar.
2506 \begin_layout Standard
2507 The toolbar has the following icons:
2510 \begin_layout Labeling
2511 \labelwidthstring 00.00.0000
2516 arg "inset-modify tabular append-row"
2521 adds a row below the current cell or selection
2524 \begin_layout Labeling
2525 \labelwidthstring 00.00.0000
2530 arg "inset-modify tabular append-column"
2535 adds a column right beside the current cell or selection
2538 \begin_layout Labeling
2539 \labelwidthstring 00.00.0000
2544 arg "inset-modify tabular delete-row"
2549 deletes the current row or selection
2552 \begin_layout Labeling
2553 \labelwidthstring 00.00.0000
2558 arg "inset-modify tabular delete-column"
2563 deletes the current column or selection
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2572 arg "inset-modify tabular toggle-line-top"
2577 adds a line at the top of the current cell / row or of a selection
2580 \begin_layout Labeling
2581 \labelwidthstring 00.00.0000
2586 arg "inset-modify tabular toggle-line-bottom"
2591 adds a line at the bottom of the current cell / row or of a selection
2594 \begin_layout Labeling
2595 \labelwidthstring 00.00.0000
2600 arg "inset-modify tabular toggle-line-left"
2605 adds a line at the left side of the current cell / row or of a selection
2608 \begin_layout Labeling
2609 \labelwidthstring 00.00.0000
2614 arg "inset-modify tabular toggle-line-right"
2619 adds a line at the right side of the current cell / row or of a selection
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2628 arg "inset-modify tabular set-all-lines"
2633 adds lines around the current or selected cells - if the current cell no
2634 multicolumn cell this also affects the current row and column
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2643 arg "inset-modify tabular unset-all-lines"
2648 deletes all lines of the current or selected cells - if the current cell
2649 no multicolumn cell this also affects the current row and column
2652 \begin_layout Labeling
2653 \labelwidthstring 00.00.0000
2658 arg "inset-modify tabular m-align-left"
2663 left-aligns the content of the current cell / column
2666 \begin_layout Labeling
2667 \labelwidthstring 00.00.0000
2672 arg "inset-modify tabular m-align-center"
2677 centers the content of the current cell / column horizontally
2680 \begin_layout Labeling
2681 \labelwidthstring 00.00.0000
2686 arg "inset-modify tabular m-align-right"
2691 right-aligns the content of the current cell / column
2694 \begin_layout Labeling
2695 \labelwidthstring 00.00.0000
2700 arg "inset-modify tabular align-decimal"
2705 aligns the content of the current column at a character
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2714 arg "inset-modify tabular m-valign-top"
2719 aligns the content of the current cell vertically to the top
2722 \begin_layout Labeling
2723 \labelwidthstring 00.00.0000
2728 arg "inset-modify tabular m-valign-middle"
2733 centers the content of the current cell vertically
2736 \begin_layout Labeling
2737 \labelwidthstring 00.00.0000
2742 arg "inset-modify tabular m-valign-bottom"
2747 aligns the content of the current cell vertically to the bottom
2750 \begin_layout Labeling
2751 \labelwidthstring 00.00.0000
2756 arg "inset-modify tabular set-rotate-cell"
2761 rotates the current cell or selection counter-clockwise by 90°
2764 \begin_layout Labeling
2765 \labelwidthstring 00.00.0000
2770 arg "inset-modify tabular set-rotate-tabular"
2775 rotates the whole table counter-clockwise by 90°
2778 \begin_layout Labeling
2779 \labelwidthstring 00.00.0000
2784 arg "inset-modify tabular multicolumn"
2789 sets the current cell or selection as a multicolumn
2792 \begin_layout Labeling
2793 \labelwidthstring 00.00.0000
2798 arg "inset-modify tabular multirow"
2803 sets the current cell or selection as a multirow
2806 \begin_layout Standard
2807 \begin_inset Note Greyedout
2810 \begin_layout Plain Layout
2815 For the output the vertical alignment of the first cell in a row is used
2816 for all following cells in the row.
2824 \begin_layout Section
2826 \begin_inset Index idx
2829 \begin_layout Plain Layout
2838 \begin_layout Standard
2839 Additionally to the table dialog and toolbar, the menu
2841 Edit\SpecialChar \menuseparator
2844 allows you to add and delete border lines for the current row/column and
2845 to set the current selection as multicolumn.
2846 The menu is only available when the cursor is inside a table.
2849 \begin_layout Section
2851 \begin_inset CommandInset label
2853 name "sec:Table-Floats"
2858 \begin_inset Index idx
2861 \begin_layout Plain Layout
2868 \begin_inset Index idx
2871 \begin_layout Plain Layout
2880 \begin_layout Standard
2881 For general explanations about floats, have a look at section
2882 \begin_inset space ~
2886 \begin_inset CommandInset ref
2888 reference "sec:FloatIntroduction"
2895 \begin_layout Standard
2896 \begin_inset Float table
2902 \begin_layout Plain Layout
2903 \begin_inset Caption
2905 \begin_layout Plain Layout
2906 \begin_inset CommandInset label
2908 name "tab:a table float"
2920 \begin_layout Plain Layout
2922 \begin_inset Tabular
2923 <lyxtabular version="3" rows="3" columns="3">
2924 <features tabularvalignment="middle">
2925 <column alignment="center" valignment="top" width="0pt">
2926 <column alignment="center" valignment="top" width="0pt">
2927 <column alignment="center" valignment="top" width="0pt">
2929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2932 \begin_layout Plain Layout
2947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2950 \begin_layout Plain Layout
2965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2968 \begin_layout Plain Layout
2985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2988 \begin_layout Plain Layout
3003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3006 \begin_layout Plain Layout
3021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3024 \begin_layout Plain Layout
3041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3044 \begin_layout Plain Layout
3054 \begin_inset Formula $\int x^{2}dx$
3062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3065 \begin_layout Plain Layout
3075 \begin_inset Formula $\left[\begin{array}{cc}
3086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3089 \begin_layout Plain Layout
3099 \begin_inset Formula $1+1=2$
3120 \begin_layout Standard
3121 Table floats can be inserted using the menu
3123 Insert\SpecialChar \menuseparator
3124 Float\SpecialChar \menuseparator
3127 or the toolbar button
3132 arg "float-insert table"
3140 \begin_layout Standard
3141 The float appears as a collapsible box with a caption that has the label
3143 \begin_inset Quotes eld
3147 \begin_inset space ~
3151 \begin_inset Quotes erd
3154 (# is the actual table number).
3155 You can insert tables in the float above or below the caption.
3158 \begin_layout Standard
3160 \begin_inset space ~
3164 \begin_inset CommandInset ref
3166 reference "tab:a table float"
3170 is an example table within a table float.
3173 \begin_layout Standard
3174 Having the caption above the table is the common rule that is unfortunately
3175 not supported in LaTeX's standard classes.
3176 This means that, if you are using the document classes
3192 , there will be no space between the caption and the table.
3193 To insert the needed space, add the following option to the load command
3194 of the LaTeX-package
3199 \begin_inset Index idx
3202 \begin_layout Plain Layout
3203 LaTeX-packages ! caption
3208 in your document preamble
3212 \begin_layout Plain Layout
3213 For more information have a look at section
3214 \begin_inset space ~
3218 \begin_inset CommandInset ref
3220 reference "sec:Caption-Placement"
3232 \begin_layout Standard
3238 \begin_layout Standard
3243 , which is described in section
3244 \begin_inset space ~
3248 \begin_inset CommandInset ref
3250 reference "sec:Caption-Formatting"
3254 , is used to adjust the caption format.
3257 \begin_layout Standard
3258 \begin_inset Index idx
3261 \begin_layout Plain Layout
3262 References ! to Tables
3267 Tables can be cross-referenced in the text by referencing their label.
3268 To do this insert a label in the caption using the menu
3270 Insert\SpecialChar \menuseparator
3273 or the toolbar button
3284 You can now refer to the label using the menu
3286 Insert\SpecialChar \menuseparator
3288 \begin_inset space ~
3293 or the toolbar button
3298 arg "dialog-show-new-inset ref"
3304 \begin_inset Newline newline
3307 Referencing is explained in detail in section
3308 \begin_inset space ~
3312 \begin_inset CommandInset ref
3314 reference "sec:Referencing-Floats"
3321 \begin_layout Section
3323 \begin_inset CommandInset label
3325 name "sec:Longtables"
3330 \begin_inset Index idx
3333 \begin_layout Plain Layout
3340 \begin_inset Index idx
3343 \begin_layout Plain Layout
3352 \begin_layout Standard
3353 If the table is too long to fit on one page, you can use the option
3356 \begin_inset space ~
3360 \begin_inset space ~
3369 of the table dialog to split the table automatically over more pages.
3370 Doing this enables the following options:
3373 \begin_layout Description
3374 Header: The current row is defined to be a header row that appears on all
3375 pages of the longtable; except for the first page, if
3378 \begin_inset space ~
3384 This is therefore called the main header.
3387 \begin_layout Description
3389 \begin_inset space ~
3392 header: The current row is defined to be a header row that appears on the
3393 first page of the longtable.
3396 \begin_layout Description
3397 Footer: The current row is defined to be a footer row that appears on all
3398 pages of the longtable; except for the last page, if
3401 \begin_inset space ~
3409 \begin_layout Description
3411 \begin_inset space ~
3414 footer: The current row is defined to be a footer row that appears on the
3415 last page of the longtable.
3418 \begin_layout Description
3419 Caption: The current row contains the table caption.
3420 The row is reset as single column and a caption is inserted.
3421 More about longtable captions is explained in sec.
3422 \begin_inset space \thinspace{}
3426 \begin_inset CommandInset ref
3428 reference "sub:Longtable-Captions"
3435 \begin_layout Standard
3436 You can also specify a row where the table is split.
3437 See the following longtable to see how it works:
3440 \begin_layout Standard
3442 \begin_inset Tabular
3443 <lyxtabular version="3" rows="69" columns="3">
3444 <features islongtable="true" longtabularalignment="center">
3445 <column alignment="left" valignment="top" width="0cm">
3446 <column alignment="left" valignment="top" width="0pt">
3447 <column alignment="center" valignment="top" width="0pt">
3448 <row endfirsthead="true">
3449 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3452 \begin_layout Plain Layout
3455 Example Phone List (ignore the names)
3460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3463 \begin_layout Plain Layout
3469 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3472 \begin_layout Plain Layout
3479 <row endfirsthead="true">
3480 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3483 \begin_layout Plain Layout
3491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3494 \begin_layout Plain Layout
3500 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3503 \begin_layout Plain Layout
3512 <row endhead="true">
3513 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3527 \begin_layout Plain Layout
3533 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3536 \begin_layout Plain Layout
3543 <row endhead="true">
3544 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3558 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3567 \begin_layout Plain Layout
3576 <row endfoot="true">
3577 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3580 \begin_layout Plain Layout
3581 continued on next page
3586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3589 \begin_layout Plain Layout
3595 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3598 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" usebox="none">
3620 \begin_layout Plain Layout
3626 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3629 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" usebox="none">
3651 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3660 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" usebox="none">
3682 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3691 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" usebox="none">
3713 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3722 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" usebox="none">
3744 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3753 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" usebox="none">
3775 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3784 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" usebox="none">
3806 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3815 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" usebox="none">
3837 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3846 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" usebox="none">
3868 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3877 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" usebox="none">
3899 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3908 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" usebox="none">
3930 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3939 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" usebox="none">
3961 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3970 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" usebox="none">
3992 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4001 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" usebox="none">
4023 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" usebox="none">
4054 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4063 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" usebox="none">
4085 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4094 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" usebox="none">
4116 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4125 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" usebox="none">
4147 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4156 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" usebox="none">
4178 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4187 \begin_layout Plain Layout
4195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4198 \begin_layout Plain Layout
4206 <cell alignment="center" valignment="top" usebox="none">
4209 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4218 \begin_layout Plain Layout
4226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4229 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" usebox="none">
4240 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4249 \begin_layout Plain Layout
4257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4260 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" usebox="none">
4271 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4280 \begin_layout Plain Layout
4288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4291 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" usebox="none">
4302 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4311 \begin_layout Plain Layout
4319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4322 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" usebox="none">
4333 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4342 \begin_layout Plain Layout
4350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4353 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" usebox="none">
4364 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4373 \begin_layout Plain Layout
4381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4384 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" usebox="none">
4395 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4404 \begin_layout Plain Layout
4412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4415 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" usebox="none">
4426 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4435 \begin_layout Plain Layout
4443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4446 \begin_layout Plain Layout
4454 <cell alignment="center" valignment="top" usebox="none">
4457 \begin_layout Plain Layout
4463 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4466 \begin_layout Plain Layout
4474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4477 \begin_layout Plain Layout
4485 <cell alignment="center" valignment="top" usebox="none">
4488 \begin_layout Plain Layout
4494 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4497 \begin_layout Plain Layout
4505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4508 \begin_layout Plain Layout
4516 <cell alignment="center" valignment="top" usebox="none">
4519 \begin_layout Plain Layout
4525 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4528 \begin_layout Plain Layout
4536 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4539 \begin_layout Plain Layout
4547 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4550 \begin_layout Plain Layout
4556 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4559 \begin_layout Plain Layout
4567 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4570 \begin_layout Plain Layout
4576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4579 \begin_layout Plain Layout
4585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4588 \begin_layout Plain Layout
4596 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" usebox="none">
4610 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4619 \begin_layout Plain Layout
4627 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" usebox="none">
4641 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4650 \begin_layout Plain Layout
4658 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" usebox="none">
4672 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4681 \begin_layout Plain Layout
4689 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" usebox="none">
4703 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4712 \begin_layout Plain Layout
4720 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" usebox="none">
4734 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4743 \begin_layout Plain Layout
4751 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" usebox="none">
4765 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4774 \begin_layout Plain Layout
4782 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" usebox="none">
4796 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4805 \begin_layout Plain Layout
4813 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" usebox="none">
4827 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4836 \begin_layout Plain Layout
4844 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" usebox="none">
4858 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4867 \begin_layout Plain Layout
4875 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" usebox="none">
4889 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4898 \begin_layout Plain Layout
4906 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" usebox="none">
4920 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4929 \begin_layout Plain Layout
4937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" usebox="none">
4951 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4960 \begin_layout Plain Layout
4968 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" usebox="none">
4982 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4991 \begin_layout Plain Layout
4999 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" usebox="none">
5013 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5022 \begin_layout Plain Layout
5030 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" usebox="none">
5044 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5053 \begin_layout Plain Layout
5061 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" usebox="none">
5075 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5084 \begin_layout Plain Layout
5092 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" usebox="none">
5106 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5115 \begin_layout Plain Layout
5123 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" usebox="none">
5137 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5146 \begin_layout Plain Layout
5154 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5157 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" usebox="none">
5168 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5177 \begin_layout Plain Layout
5185 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5188 \begin_layout Plain Layout
5196 <cell alignment="center" valignment="top" usebox="none">
5199 \begin_layout Plain Layout
5205 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5208 \begin_layout Plain Layout
5216 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5219 \begin_layout Plain Layout
5227 <cell alignment="center" valignment="top" usebox="none">
5230 \begin_layout Plain Layout
5236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5239 \begin_layout Plain Layout
5247 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5250 \begin_layout Plain Layout
5258 <cell alignment="center" valignment="top" usebox="none">
5261 \begin_layout Plain Layout
5267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5270 \begin_layout Plain Layout
5278 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5281 \begin_layout Plain Layout
5289 <cell alignment="center" valignment="top" usebox="none">
5292 \begin_layout Plain Layout
5298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5301 \begin_layout Plain Layout
5309 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5312 \begin_layout Plain Layout
5320 <cell alignment="center" valignment="top" usebox="none">
5323 \begin_layout Plain Layout
5329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5332 \begin_layout Plain Layout
5340 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5343 \begin_layout Plain Layout
5351 <cell alignment="center" valignment="top" usebox="none">
5354 \begin_layout Plain Layout
5360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5363 \begin_layout Plain Layout
5371 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5374 \begin_layout Plain Layout
5382 <cell alignment="center" valignment="top" usebox="none">
5385 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5394 \begin_layout Plain Layout
5402 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5405 \begin_layout Plain Layout
5413 <cell alignment="center" valignment="top" usebox="none">
5416 \begin_layout Plain Layout
5422 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5425 \begin_layout Plain Layout
5433 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5436 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" usebox="none">
5447 \begin_layout Plain Layout
5453 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5456 \begin_layout Plain Layout
5464 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5467 \begin_layout Plain Layout
5475 <cell alignment="center" valignment="top" usebox="none">
5478 \begin_layout Plain Layout
5484 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5487 \begin_layout Plain Layout
5495 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5498 \begin_layout Plain Layout
5506 <cell alignment="center" valignment="top" usebox="none">
5509 \begin_layout Plain Layout
5515 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5518 \begin_layout Plain Layout
5526 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5529 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5540 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5549 \begin_layout Plain Layout
5556 <row endlastfoot="true">
5557 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5560 \begin_layout Plain Layout
5566 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5569 \begin_layout Plain Layout
5575 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5578 \begin_layout Plain Layout
5593 \begin_layout Plain Layout
5597 addtocounter{table}{-1}
5603 \begin_inset Note Note
5606 \begin_layout Plain Layout
5607 See the first greyed-out note in section
5608 \begin_inset space ~
5612 \begin_inset CommandInset ref
5614 reference "sub:Longtable-Captions"
5618 for an explanation of this command.
5626 \begin_layout Subsection
5627 Footnotes in Longtables
5628 \begin_inset CommandInset label
5630 name "sub:Footnotes-in-Longtables"
5635 \begin_inset Index idx
5638 \begin_layout Plain Layout
5639 Longtables ! Footnotes
5647 \begin_layout Standard
5648 Footnotes can be inserted to every longtable cell.
5649 They appear at the bottom of the page where the table cell with the footnote
5652 \begin_inset space ~
5656 \begin_inset CommandInset ref
5658 reference "tab:DiffCaptions"
5662 has for example a footnote.
5665 \begin_layout Subsection
5667 \begin_inset Index idx
5670 \begin_layout Plain Layout
5671 Longtables ! Alignment
5679 \begin_layout Standard
5680 The horizontal alignment of longtables can be set in the table settings
5682 For left- and right-alignment the table will be directly at the page border.
5683 To add space between the table and the border one has to set the alignment
5684 to center and change the value of the LaTeX-lengths
5696 by inserting this line as TeX-Code before the longtable:
5699 \begin_layout Standard
5709 \begin_layout Standard
5710 The value can have any of the units listed in Table
5711 \begin_inset space ~
5715 \begin_inset CommandInset ref
5717 reference "tab:Units"
5728 controls the horizontal distance from the left page border to the longtable,
5735 the distance from the right side.
5736 The default value for both lengths is
5742 , which is in this case the same as an horizontal fill in LyX.
5745 \begin_layout Standard
5746 The following longtable was centered and
5762 \begin_layout Plain Layout
5778 \begin_layout Standard
5779 \begin_inset Tabular
5780 <lyxtabular version="3" rows="5" columns="5">
5781 <features islongtable="true" longtabularalignment="center">
5782 <column alignment="center" valignment="top" width="0">
5783 <column alignment="center" valignment="top" width="0pt">
5784 <column alignment="center" valignment="top" width="0">
5785 <column alignment="center" valignment="top" width="0">
5786 <column alignment="center" valignment="top" width="0">
5788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5791 \begin_layout Plain Layout
5797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5800 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5827 \begin_layout Plain Layout
5835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5838 \begin_layout Plain Layout
5844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5847 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5874 \begin_layout Plain Layout
5882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5885 \begin_layout Plain Layout
5891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5894 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5921 \begin_layout Plain Layout
5929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5932 \begin_layout Plain Layout
5938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5941 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5968 \begin_layout Plain Layout
5976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5979 \begin_layout Plain Layout
5985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5988 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6015 \begin_layout Plain Layout
6030 \begin_layout Plain Layout
6047 \begin_layout Plain Layout
6051 addtocounter{table}{-1}
6057 \begin_inset Note Note
6060 \begin_layout Plain Layout
6061 See the first greyed-out note in section
6062 \begin_inset space ~
6066 \begin_inset CommandInset ref
6068 reference "sub:Longtable-Captions"
6072 for an explanation of this command.
6080 \begin_layout Subsection
6082 \begin_inset Index idx
6085 \begin_layout Plain Layout
6086 Longtables ! Captions
6092 \begin_inset CommandInset label
6094 name "sub:Longtable-Captions"
6101 \begin_layout Standard
6102 A longtable cannot be put into a table float because floats can only be
6104 But the caption environment of floats can also be used for longtables when
6105 you use the longtable option
6109 as described in sec.
6110 \begin_inset space \thinspace{}
6114 \begin_inset CommandInset ref
6116 reference "sec:Longtables"
6121 Only one table row can contain the caption.
6124 \begin_layout Standard
6125 Here is a short longtable to see how it works:
6128 \begin_layout Standard
6129 \begin_inset Tabular
6130 <lyxtabular version="3" rows="6" columns="5">
6131 <features islongtable="true" longtabularalignment="center">
6132 <column alignment="center" valignment="top" width="0">
6133 <column alignment="center" valignment="top" width="0">
6134 <column alignment="center" valignment="top" width="0">
6135 <column alignment="center" valignment="top" width="0">
6136 <column alignment="center" valignment="top" width="0">
6137 <row caption="true">
6138 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6141 \begin_layout Plain Layout
6142 \begin_inset Caption
6144 \begin_layout Plain Layout
6145 Longtable with caption
6146 \begin_inset Argument
6149 \begin_layout Plain Layout
6165 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6168 \begin_layout Plain Layout
6174 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6177 \begin_layout Plain Layout
6183 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6186 \begin_layout Plain Layout
6192 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6195 \begin_layout Plain Layout
6203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6206 \begin_layout Plain Layout
6212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6215 \begin_layout Plain Layout
6221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6242 \begin_layout Plain Layout
6250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6253 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6289 \begin_layout Plain Layout
6297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6300 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6336 \begin_layout Plain Layout
6344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6347 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6383 \begin_layout Plain Layout
6391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6394 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6430 \begin_layout Plain Layout
6444 \begin_layout Standard
6445 \begin_inset VSpace medskip
6449 \begin_inset Note Greyedout
6452 \begin_layout Plain Layout
6456 \begin_inset space ~
6461 The table number is increased for for every longtable, even if you did
6462 not set a caption for it.
6463 For this reason you could have the case that e.
6464 \begin_inset space \thinspace{}
6468 \begin_inset space \space{}
6472 \begin_inset space ~
6476 \begin_inset space ~
6479 2.1 in the list of tables if there are two longtables without captions.
6480 To avoid this you can add the following command in TeX-Code after every
6481 longtable without a caption:
6484 \begin_layout Plain Layout
6489 addtocounter{table}{-1}
6492 \begin_layout Plain Layout
6493 This is not needed when none of your longtables have a caption and you add
6494 the following code to the document preamble:
6497 \begin_layout Plain Layout
6507 \begin_inset Newline newline
6518 addtocounter{table}{-1}}
6526 \begin_layout Standard
6527 \begin_inset Note Greyedout
6530 \begin_layout Plain Layout
6534 \begin_inset space ~
6544 \begin_inset Index idx
6547 \begin_layout Plain Layout
6548 LaTeX-packages ! hyperref
6561 dialog to link cross-references, the link to a longtable caption will always
6562 point to the beginning of the document.
6570 \begin_layout Subsubsection
6571 References to Longtables
6572 \begin_inset Index idx
6575 \begin_layout Plain Layout
6576 Longtables ! References
6584 \begin_layout Standard
6585 \begin_inset Tabular
6586 <lyxtabular version="3" rows="6" columns="5">
6587 <features islongtable="true" longtabularalignment="center">
6588 <column alignment="center" valignment="top" width="0">
6589 <column alignment="center" valignment="top" width="0">
6590 <column alignment="center" valignment="top" width="0">
6591 <column alignment="center" valignment="top" width="0">
6592 <column alignment="center" valignment="top" width="0">
6593 <row caption="true">
6594 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6597 \begin_layout Plain Layout
6598 \begin_inset Caption
6600 \begin_layout Plain Layout
6601 Referenced longtable
6602 \begin_inset CommandInset label
6604 name "tab:RefExample"
6618 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6621 \begin_layout Plain Layout
6627 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6630 \begin_layout Plain Layout
6636 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6648 \begin_layout Plain Layout
6656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6695 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6742 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6771 \begin_layout Plain Layout
6777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6780 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6789 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6818 \begin_layout Plain Layout
6824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6827 \begin_layout Plain Layout
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6836 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6865 \begin_layout Plain Layout
6871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6874 \begin_layout Plain Layout
6880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6883 \begin_layout Plain Layout
6897 \begin_layout Standard
6898 To reference a longtable, insert a label into the caption.
6901 \begin_layout Standard
6902 This is a reference to Table
6903 \begin_inset space ~
6907 \begin_inset CommandInset ref
6909 reference "tab:RefExample"
6916 \begin_layout Standard
6917 The caption layout can be set together with all other captions of your document
6918 using the LaTeX-package
6923 \begin_inset Index idx
6926 \begin_layout Plain Layout
6927 LaTeX-packages ! caption
6933 \begin_inset space ~
6937 \begin_inset CommandInset ref
6939 reference "sec:Caption-Formatting"
6946 \begin_layout Subsubsection
6948 \begin_inset Index idx
6951 \begin_layout Plain Layout
6952 Longtables ! Caption Width
6960 \begin_layout Standard
6961 The maximal width of of caption lines is defined by the length
6968 Its default value is 4
6969 \begin_inset space \thinspace{}
6973 To change it add the following command to your document preamble or as
6974 TeX-Code into your document before the longtable that should be affected
6977 \begin_layout Standard
6987 \begin_layout Standard
6988 where the width could have one of the units listed in appendix
6989 \begin_inset space ~
6993 \begin_inset CommandInset ref
6995 reference "cha:Units-available-in"
7002 \begin_layout Standard
7003 The following tables show the difference:
7006 \begin_layout Standard
7007 \begin_inset Tabular
7008 <lyxtabular version="3" rows="6" columns="5">
7009 <features islongtable="true" longtabularalignment="center">
7010 <column alignment="center" valignment="top" width="0">
7011 <column alignment="center" valignment="top" width="0">
7012 <column alignment="center" valignment="top" width="0">
7013 <column alignment="center" valignment="top" width="0">
7014 <column alignment="center" valignment="top" width="0">
7015 <row caption="true">
7016 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7019 \begin_layout Plain Layout
7020 \begin_inset Caption
7022 \begin_layout Plain Layout
7023 long full title with default width long full title with default width long
7024 full title with default width
7025 \begin_inset Argument
7028 \begin_layout Plain Layout
7029 caption with default width
7044 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7047 \begin_layout Plain Layout
7053 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7056 \begin_layout Plain Layout
7062 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7065 \begin_layout Plain Layout
7071 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7074 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7103 \begin_layout Plain Layout
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7112 \begin_layout Plain Layout
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7121 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7150 \begin_layout Plain Layout
7156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7159 \begin_layout Plain Layout
7165 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7168 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7197 \begin_layout Plain Layout
7203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7206 \begin_layout Plain Layout
7212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7215 \begin_layout Plain Layout
7223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7226 \begin_layout Plain Layout
7232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7235 \begin_layout Plain Layout
7241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7244 \begin_layout Plain Layout
7250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7253 \begin_layout Plain Layout
7259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7262 \begin_layout Plain Layout
7270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7273 \begin_layout Plain Layout
7279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7282 \begin_layout Plain Layout
7288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7291 \begin_layout Plain Layout
7297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7300 \begin_layout Plain Layout
7306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7309 \begin_layout Plain Layout
7323 \begin_layout Standard
7327 \begin_layout Plain Layout
7339 \begin_inset Tabular
7340 <lyxtabular version="3" rows="6" columns="5">
7341 <features islongtable="true" longtabularalignment="center">
7342 <column alignment="center" valignment="top" width="0">
7343 <column alignment="center" valignment="top" width="0">
7344 <column alignment="center" valignment="top" width="0">
7345 <column alignment="center" valignment="top" width="0">
7346 <column alignment="center" valignment="top" width="0">
7347 <row caption="true">
7348 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7351 \begin_layout Plain Layout
7352 \begin_inset Caption
7354 \begin_layout Plain Layout
7355 long full title with width set to 5
7356 \begin_inset space \thinspace{}
7359 cm long full title with width set to 5
7360 \begin_inset space \thinspace{}
7363 cm long full title with width set to 5
7364 \begin_inset space \thinspace{}
7368 \begin_inset Argument
7371 \begin_layout Plain Layout
7373 \begin_inset space \thinspace{}
7377 \begin_inset space \thinspace{}
7381 \begin_inset space \thinspace{}
7399 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7402 \begin_layout Plain Layout
7408 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7411 \begin_layout Plain Layout
7417 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7420 \begin_layout Plain Layout
7426 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7429 \begin_layout Plain Layout
7437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7440 \begin_layout Plain Layout
7446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7449 \begin_layout Plain Layout
7455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7458 \begin_layout Plain Layout
7464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7467 \begin_layout Plain Layout
7473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7476 \begin_layout Plain Layout
7484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7487 \begin_layout Plain Layout
7493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7496 \begin_layout Plain Layout
7502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7505 \begin_layout Plain Layout
7511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7514 \begin_layout Plain Layout
7520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7523 \begin_layout Plain Layout
7531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7534 \begin_layout Plain Layout
7540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7543 \begin_layout Plain Layout
7549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7552 \begin_layout Plain Layout
7558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7561 \begin_layout Plain Layout
7567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7570 \begin_layout Plain Layout
7578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7581 \begin_layout Plain Layout
7587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7590 \begin_layout Plain Layout
7596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7599 \begin_layout Plain Layout
7605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7608 \begin_layout Plain Layout
7614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7617 \begin_layout Plain Layout
7625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7628 \begin_layout Plain Layout
7634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7646 \begin_layout Plain Layout
7652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7655 \begin_layout Plain Layout
7661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7664 \begin_layout Plain Layout
7678 \begin_layout Standard
7682 \begin_layout Plain Layout
7696 \begin_layout Standard
7697 \begin_inset Note Greyedout
7700 \begin_layout Plain Layout
7705 When the LaTeX-package
7710 \begin_inset Index idx
7713 \begin_layout Plain Layout
7714 LaTeX-packages ! caption
7719 is used, as in this document, the full page width is used for the caption
7720 when you use the default value of 4
7721 \begin_inset space \thinspace{}
7731 To get in this case exactly a 4
7732 \begin_inset space \thinspace{}
7735 in wide caption, you can either use a value slightly different from 4.0
7736 \begin_inset space \thinspace{}
7740 \begin_inset space \thinspace{}
7744 \begin_inset space \space{}
7748 \begin_inset space \thinspace{}
7751 in, or the LaTeX-command
7755 captionsetup{width=value}
7757 that is provided by the
7769 \begin_layout Subsubsection
7770 Different Captions for Table Pages
7771 \begin_inset Index idx
7774 \begin_layout Plain Layout
7775 Longtables ! Different Captions for Pages
7783 \begin_layout Standard
7784 When the table captions for the following pages should differ from the one
7785 of the first table page, insert a caption with the TeX-Code command
7788 \begin_layout Standard
7793 caption*{caption text}
7800 \begin_layout Standard
7801 in a dummy caption row that is marked as a header.
7803 \begin_inset space ~
7807 \begin_inset CommandInset ref
7809 reference "tab:DiffCaptions"
7813 is an example of a longtable with different heading where the second caption
7814 doesn't include the table number.
7817 \begin_layout Standard
7819 \begin_inset Tabular
7820 <lyxtabular version="3" rows="59" columns="3">
7821 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7822 <column alignment="left" valignment="top" width="0cm">
7823 <column alignment="left" valignment="top" width="0pt">
7824 <column alignment="center" valignment="top" width="0pt">
7825 <row caption="true">
7826 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7829 \begin_layout Plain Layout
7830 \begin_inset Caption
7832 \begin_layout Plain Layout
7834 \begin_inset CommandInset label
7836 name "tab:DiffCaptions"
7841 \begin_inset Argument
7844 \begin_layout Plain Layout
7860 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7869 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7872 \begin_layout Plain Layout
7879 <row endfirsthead="true">
7880 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7883 \begin_layout Plain Layout
7886 Example Phone List (ignore the names)
7891 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7894 \begin_layout Plain Layout
7900 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7903 \begin_layout Plain Layout
7910 <row endfirsthead="true">
7911 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7914 \begin_layout Plain Layout
7922 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7925 \begin_layout Plain Layout
7931 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7934 \begin_layout Plain Layout
7943 <row endhead="true">
7944 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7951 \begin_layout Plain Layout
7955 caption*{Continued Example Phone List}
7969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7972 \begin_layout Plain Layout
7978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7981 \begin_layout Plain Layout
7988 <row endhead="true">
7989 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7992 \begin_layout Plain Layout
8000 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8003 \begin_layout Plain Layout
8009 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8012 \begin_layout Plain Layout
8019 <row endhead="true">
8020 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8023 \begin_layout Plain Layout
8031 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8034 \begin_layout Plain Layout
8040 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8043 \begin_layout Plain Layout
8052 <row endfoot="true">
8053 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8056 \begin_layout Plain Layout
8057 continued on next page
8062 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8065 \begin_layout Plain Layout
8071 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8074 \begin_layout Plain Layout
8082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8085 \begin_layout Plain Layout
8093 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8096 \begin_layout Plain Layout
8102 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8105 \begin_layout Plain Layout
8113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8116 \begin_layout Plain Layout
8124 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8127 \begin_layout Plain Layout
8133 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8136 \begin_layout Plain Layout
8144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8147 \begin_layout Plain Layout
8155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8158 \begin_layout Plain Layout
8164 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8167 \begin_layout Plain Layout
8175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8178 \begin_layout Plain Layout
8186 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8189 \begin_layout Plain Layout
8195 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8198 \begin_layout Plain Layout
8206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8209 \begin_layout Plain Layout
8217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8220 \begin_layout Plain Layout
8226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8229 \begin_layout Plain Layout
8237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8240 \begin_layout Plain Layout
8248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8251 \begin_layout Plain Layout
8257 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8260 \begin_layout Plain Layout
8268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8271 \begin_layout Plain Layout
8279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8282 \begin_layout Plain Layout
8288 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8291 \begin_layout Plain Layout
8299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8302 \begin_layout Plain Layout
8310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8313 \begin_layout Plain Layout
8319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8322 \begin_layout Plain Layout
8330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8333 \begin_layout Plain Layout
8341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8344 \begin_layout Plain Layout
8350 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8353 \begin_layout Plain Layout
8361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8364 \begin_layout Plain Layout
8372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8375 \begin_layout Plain Layout
8381 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8384 \begin_layout Plain Layout
8392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8395 \begin_layout Plain Layout
8403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8406 \begin_layout Plain Layout
8412 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8415 \begin_layout Plain Layout
8423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8426 \begin_layout Plain Layout
8434 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8437 \begin_layout Plain Layout
8443 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8446 \begin_layout Plain Layout
8454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8457 \begin_layout Plain Layout
8465 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8468 \begin_layout Plain Layout
8474 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8477 \begin_layout Plain Layout
8485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8488 \begin_layout Plain Layout
8496 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8499 \begin_layout Plain Layout
8505 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8508 \begin_layout Plain Layout
8516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8519 \begin_layout Plain Layout
8528 \begin_layout Plain Layout
8539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8542 \begin_layout Plain Layout
8548 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8551 \begin_layout Plain Layout
8559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8562 \begin_layout Plain Layout
8570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8573 \begin_layout Plain Layout
8579 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8582 \begin_layout Plain Layout
8590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8593 \begin_layout Plain Layout
8601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8604 \begin_layout Plain Layout
8610 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8613 \begin_layout Plain Layout
8621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8624 \begin_layout Plain Layout
8632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8635 \begin_layout Plain Layout
8641 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8644 \begin_layout Plain Layout
8652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8655 \begin_layout Plain Layout
8663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8666 \begin_layout Plain Layout
8672 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8675 \begin_layout Plain Layout
8683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8686 \begin_layout Plain Layout
8694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8697 \begin_layout Plain Layout
8703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8706 \begin_layout Plain Layout
8714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8717 \begin_layout Plain Layout
8725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8728 \begin_layout Plain Layout
8734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8737 \begin_layout Plain Layout
8745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8748 \begin_layout Plain Layout
8756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8759 \begin_layout Plain Layout
8765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8768 \begin_layout Plain Layout
8776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8779 \begin_layout Plain Layout
8787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8790 \begin_layout Plain Layout
8796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8799 \begin_layout Plain Layout
8807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8810 \begin_layout Plain Layout
8818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8821 \begin_layout Plain Layout
8827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8830 \begin_layout Plain Layout
8838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8841 \begin_layout Plain Layout
8849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8852 \begin_layout Plain Layout
8858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8861 \begin_layout Plain Layout
8869 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8872 \begin_layout Plain Layout
8880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8883 \begin_layout Plain Layout
8889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8892 \begin_layout Plain Layout
8900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8903 \begin_layout Plain Layout
8911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8914 \begin_layout Plain Layout
8920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8923 \begin_layout Plain Layout
8931 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8934 \begin_layout Plain Layout
8942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8945 \begin_layout Plain Layout
8951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8954 \begin_layout Plain Layout
8962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8965 \begin_layout Plain Layout
8973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8976 \begin_layout Plain Layout
8982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8985 \begin_layout Plain Layout
8993 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8996 \begin_layout Plain Layout
9004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9007 \begin_layout Plain Layout
9013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9016 \begin_layout Plain Layout
9024 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9027 \begin_layout Plain Layout
9035 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9038 \begin_layout Plain Layout
9044 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9047 \begin_layout Plain Layout
9055 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9058 \begin_layout Plain Layout
9064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9067 \begin_layout Plain Layout
9073 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9076 \begin_layout Plain Layout
9084 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9087 \begin_layout Plain Layout
9095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9098 \begin_layout Plain Layout
9104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9107 \begin_layout Plain Layout
9115 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9118 \begin_layout Plain Layout
9126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9129 \begin_layout Plain Layout
9135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9138 \begin_layout Plain Layout
9146 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9149 \begin_layout Plain Layout
9157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9160 \begin_layout Plain Layout
9166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9169 \begin_layout Plain Layout
9177 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9180 \begin_layout Plain Layout
9188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9191 \begin_layout Plain Layout
9197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9200 \begin_layout Plain Layout
9208 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9211 \begin_layout Plain Layout
9219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9222 \begin_layout Plain Layout
9228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9231 \begin_layout Plain Layout
9239 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9242 \begin_layout Plain Layout
9250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9253 \begin_layout Plain Layout
9259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9262 \begin_layout Plain Layout
9270 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9273 \begin_layout Plain Layout
9281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9284 \begin_layout Plain Layout
9290 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9293 \begin_layout Plain Layout
9301 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9304 \begin_layout Plain Layout
9312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9315 \begin_layout Plain Layout
9321 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9324 \begin_layout Plain Layout
9332 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9335 \begin_layout Plain Layout
9343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9346 \begin_layout Plain Layout
9352 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9355 \begin_layout Plain Layout
9363 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9366 \begin_layout Plain Layout
9374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9377 \begin_layout Plain Layout
9383 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9386 \begin_layout Plain Layout
9394 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9397 \begin_layout Plain Layout
9405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9408 \begin_layout Plain Layout
9414 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9417 \begin_layout Plain Layout
9425 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9428 \begin_layout Plain Layout
9436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9439 \begin_layout Plain Layout
9445 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9448 \begin_layout Plain Layout
9456 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9459 \begin_layout Plain Layout
9467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9470 \begin_layout Plain Layout
9476 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9479 \begin_layout Plain Layout
9487 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9490 \begin_layout Plain Layout
9498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9501 \begin_layout Plain Layout
9507 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9510 \begin_layout Plain Layout
9518 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9521 \begin_layout Plain Layout
9529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9532 \begin_layout Plain Layout
9538 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9541 \begin_layout Plain Layout
9549 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9552 \begin_layout Plain Layout
9560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9563 \begin_layout Plain Layout
9569 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9572 \begin_layout Plain Layout
9580 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9583 \begin_layout Plain Layout
9591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9594 \begin_layout Plain Layout
9600 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9603 \begin_layout Plain Layout
9611 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9614 \begin_layout Plain Layout
9622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9625 \begin_layout Plain Layout
9631 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9634 \begin_layout Plain Layout
9642 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9645 \begin_layout Plain Layout
9653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9656 \begin_layout Plain Layout
9662 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9665 \begin_layout Plain Layout
9673 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9676 \begin_layout Plain Layout
9684 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9687 \begin_layout Plain Layout
9693 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9696 \begin_layout Plain Layout
9710 \begin_layout Section
9711 Special Longtable Issues
9712 \begin_inset CommandInset label
9714 name "sec:Special-Longtable-Issues"
9721 \begin_layout Subsection
9722 Longtable Calculation
9723 \begin_inset Index idx
9726 \begin_layout Plain Layout
9727 Longtables ! Calculation
9735 \begin_layout Standard
9736 LaTeX calculates the height of table pages and their page breaks using so
9738 Chunks are parts of tables that held at the same time in LaTeX's memory.
9739 The default value was historically set to only 20 table rows.
9740 If you are using longtables with many pages this may slow down the creation
9742 You can safely increase the chunk size to values of 100-1000 by adding
9743 this command line to your document preamble:
9746 \begin_layout Standard
9751 setcounter{LTchunksize}{100}
9754 \begin_layout Subsection
9755 Floats and Longtables
9756 \begin_inset Index idx
9759 \begin_layout Plain Layout
9768 \begin_layout Standard
9769 There might be problems when a float appears on the same page where a longtable
9771 To avoid such a situation, insert a
9772 \begin_inset Quotes eld
9776 \begin_inset Quotes erd
9781 Insert\SpecialChar \menuseparator
9782 Formatting\SpecialChar \menuseparator
9784 \begin_inset space ~
9789 ) before your longtable.
9792 \begin_layout Subsection
9794 \begin_inset Index idx
9797 \begin_layout Plain Layout
9798 Longtables ! Forced Page Breaks
9806 \begin_layout Standard
9807 By default tables are only broken between rows.
9808 If you have a cell with multiples lines and want to have a page break within
9809 the cell, insert the new line command
9810 \begin_inset Quotes eld
9822 \begin_inset Quotes erd
9825 as TeX-Code at the point of the cell where it can be broken.
9834 command you have to insert in TeX-Code as many
9835 \begin_inset Quotes eld
9843 \begin_inset Quotes erd
9846 characters as the number of the following table columns.
9851 is the character to separate table cells.
9852 Write in TeX-Code after each
9856 the content of the corresponding following cell and delete the content
9858 \begin_inset Newline newline
9869 command, insert as many
9873 characters as the number of table columns before the current column.
9875 \begin_inset space ~
9879 \begin_inset CommandInset ref
9881 reference "tab:ForcedPagebreak"
9885 the cell that should be broken is in the second column followed by another
9887 Therefore the following command was inserted in the cell as TeX-Code after
9889 \begin_inset Quotes eld
9897 \begin_inset Quotes erd
9903 \begin_layout Standard
9913 \begin_inset Newline newline
9919 \begin_layout Standard
9921 \begin_inset Quotes eld
9925 \begin_inset Quotes erd
9928 in the third column of the row was deleted.
9935 is only needed when a page break should definitely occur at this position,
9936 otherwise it would be a conditional break.
9937 If your footer row of the longtable has for a certain reason no upper line
9938 but you would have a horizontal line where the cell is broken, use this
9942 \begin_layout Standard
9950 \begin_inset Newline newline
9958 \begin_layout Standard
9959 When the cell to be broken is in the last column, the command
9962 \begin_layout Standard
9972 \begin_layout Standard
9973 must be inserted as TeX-Code at the beginning of the cell.
9974 This ensures that the part of the cell that will be displayed on the new
9975 page appears with the full width.
9978 \begin_layout Standard
9980 \begin_inset Tabular
9981 <lyxtabular version="3" rows="38" columns="3">
9982 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9983 <column alignment="left" valignment="top" width="0cm">
9984 <column alignment="left" valignment="top" width="3cm">
9985 <column alignment="center" valignment="top" width="0pt">
9986 <row caption="true">
9987 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9990 \begin_layout Plain Layout
9991 \begin_inset Caption
9993 \begin_layout Plain Layout
9994 Table with forced page break in table cell
9995 \begin_inset CommandInset label
9997 name "tab:ForcedPagebreak"
10002 \begin_inset Argument
10005 \begin_layout Plain Layout
10006 Table with forced page break in table cell
10021 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10030 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10033 \begin_layout Plain Layout
10040 <row endfirsthead="true">
10041 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10044 \begin_layout Plain Layout
10047 Example Phone List (ignore the names)
10052 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10061 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10064 \begin_layout Plain Layout
10071 <row endfirsthead="true">
10072 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10075 \begin_layout Plain Layout
10083 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10086 \begin_layout Plain Layout
10092 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10095 \begin_layout Plain Layout
10104 <row endhead="true">
10105 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10108 \begin_layout Plain Layout
10112 \begin_layout Plain Layout
10116 caption*{Continued Example Phone List}
10130 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10133 \begin_layout Plain Layout
10139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10142 \begin_layout Plain Layout
10149 <row endhead="true">
10150 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10153 \begin_layout Plain Layout
10161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10164 \begin_layout Plain Layout
10170 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10173 \begin_layout Plain Layout
10180 <row endhead="true">
10181 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10184 \begin_layout Plain Layout
10192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10195 \begin_layout Plain Layout
10201 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10204 \begin_layout Plain Layout
10213 <row endfoot="true">
10214 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10217 \begin_layout Plain Layout
10218 continued on next page
10223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10226 \begin_layout Plain Layout
10232 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10235 \begin_layout Plain Layout
10243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10246 \begin_layout Plain Layout
10254 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10257 \begin_layout Plain Layout
10263 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10266 \begin_layout Plain Layout
10274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10277 \begin_layout Plain Layout
10285 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10288 \begin_layout Plain Layout
10294 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10297 \begin_layout Plain Layout
10305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10308 \begin_layout Plain Layout
10316 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10319 \begin_layout Plain Layout
10325 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10328 \begin_layout Plain Layout
10336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10339 \begin_layout Plain Layout
10347 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10350 \begin_layout Plain Layout
10356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10359 \begin_layout Plain Layout
10367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10370 \begin_layout Plain Layout
10378 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10381 \begin_layout Plain Layout
10387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10390 \begin_layout Plain Layout
10398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10401 \begin_layout Plain Layout
10409 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10412 \begin_layout Plain Layout
10418 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10421 \begin_layout Plain Layout
10429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10432 \begin_layout Plain Layout
10440 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10443 \begin_layout Plain Layout
10449 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10452 \begin_layout Plain Layout
10460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10463 \begin_layout Plain Layout
10471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10474 \begin_layout Plain Layout
10480 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10483 \begin_layout Plain Layout
10491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10494 \begin_layout Plain Layout
10502 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10505 \begin_layout Plain Layout
10511 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10514 \begin_layout Plain Layout
10522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10525 \begin_layout Plain Layout
10533 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10536 \begin_layout Plain Layout
10542 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10545 \begin_layout Plain Layout
10553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10556 \begin_layout Plain Layout
10564 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10567 \begin_layout Plain Layout
10573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10576 \begin_layout Plain Layout
10584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10587 \begin_layout Plain Layout
10595 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10598 \begin_layout Plain Layout
10604 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10607 \begin_layout Plain Layout
10615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10618 \begin_layout Plain Layout
10626 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10629 \begin_layout Plain Layout
10635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10649 \begin_layout Plain Layout
10657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10660 \begin_layout Plain Layout
10666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10680 \begin_layout Plain Layout
10688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10691 \begin_layout Plain Layout
10697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10711 \begin_layout Plain Layout
10719 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10722 \begin_layout Plain Layout
10728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10742 \begin_layout Plain Layout
10750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10753 \begin_layout Plain Layout
10759 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10773 \begin_layout Plain Layout
10781 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10784 \begin_layout Plain Layout
10790 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10793 \begin_layout Plain Layout
10801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10804 \begin_layout Plain Layout
10812 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10815 \begin_layout Plain Layout
10821 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10824 \begin_layout Plain Layout
10832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10835 \begin_layout Plain Layout
10843 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10846 \begin_layout Plain Layout
10852 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10855 \begin_layout Plain Layout
10863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10866 \begin_layout Plain Layout
10874 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10877 \begin_layout Plain Layout
10883 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10886 \begin_layout Plain Layout
10894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10897 \begin_layout Plain Layout
10905 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10908 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10928 \begin_layout Plain Layout
10936 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10939 \begin_layout Plain Layout
10941 Fürst von Montecompatri, 11.
10942 Fürst von Sulmona und Vivaro, 10.
10943 Fürst von Rossano, 5.
10944 Herzog von Canemorte, 11.
10945 Herzog von Palombara, 5.
10946 Herzog von Castelchiodato,
10950 \begin_layout Plain Layout
10961 \begin_layout Plain Layout
10969 Herzog von Poggionativo, 11.
10970 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10971 Graf von Valinfreda, 11.
10972 Baron von Cropalati, 11.
10973 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10981 \begin_layout Plain Layout
10989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10992 \begin_layout Plain Layout
11000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11003 \begin_layout Plain Layout
11009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11012 \begin_layout Plain Layout
11020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11023 \begin_layout Plain Layout
11031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11034 \begin_layout Plain Layout
11040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11043 \begin_layout Plain Layout
11051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11054 \begin_layout Plain Layout
11062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11065 \begin_layout Plain Layout
11071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11074 \begin_layout Plain Layout
11082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11085 \begin_layout Plain Layout
11093 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11096 \begin_layout Plain Layout
11102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11105 \begin_layout Plain Layout
11113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11116 \begin_layout Plain Layout
11124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11127 \begin_layout Plain Layout
11133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11136 \begin_layout Plain Layout
11144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11147 \begin_layout Plain Layout
11155 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11158 \begin_layout Plain Layout
11164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11167 \begin_layout Plain Layout
11175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11178 \begin_layout Plain Layout
11186 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11189 \begin_layout Plain Layout
11195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11198 \begin_layout Plain Layout
11206 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11209 \begin_layout Plain Layout
11217 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11220 \begin_layout Plain Layout
11226 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11229 \begin_layout Plain Layout
11243 \begin_layout Section
11244 Multiple Lines, Columns and Rows
11247 \begin_layout Subsection
11248 Multiple Lines in Table Cells
11249 \begin_inset CommandInset label
11251 name "sub:Multiple-Lines-in"
11256 \begin_inset Index idx
11259 \begin_layout Plain Layout
11260 Multiple Lines in Table Cells
11266 \begin_inset Index idx
11269 \begin_layout Plain Layout
11278 \begin_layout Standard
11280 \begin_inset Float table
11286 \begin_layout Plain Layout
11287 \begin_inset Caption
11289 \begin_layout Plain Layout
11290 \begin_inset CommandInset label
11292 name "tab:Table-with-multiple"
11296 Table with multiple lines in cells
11304 \begin_layout Plain Layout
11306 \begin_inset Tabular
11307 <lyxtabular version="3" rows="3" columns="3">
11308 <features tabularvalignment="middle">
11309 <column alignment="center" valignment="middle" width="2.5cm">
11310 <column alignment="center" valignment="middle" width="0">
11311 <column alignment="center" valignment="middle" width="0">
11313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11316 \begin_layout Plain Layout
11318 \begin_inset Newline linebreak
11326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11329 \begin_layout Plain Layout
11335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11338 \begin_layout Plain Layout
11346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11349 \begin_layout Plain Layout
11355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11358 \begin_layout Plain Layout
11364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11367 \begin_layout Plain Layout
11375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11378 \begin_layout Plain Layout
11384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11387 \begin_layout Plain Layout
11393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11396 \begin_layout Plain Layout
11415 \begin_layout Standard
11416 Setting a fixed width for a column enables you to enter text as a paragraph
11417 with multiple lines and hyphenation.
11420 \begin_layout Standard
11422 \begin_inset space ~
11426 \begin_inset CommandInset ref
11428 reference "tab:Table-with-multiple"
11432 , create a 3×3 table, mark the first cell and right-click on it.
11433 In the appearing table dialog we set a cell width of 2.5
11434 \begin_inset space \thinspace{}
11437 cm and choose centered for the vertical and horizontal alignment.
11438 The vertical alignment is used for all cells of the row.
11439 As our text is smaller than 2.5
11440 \begin_inset space \thinspace{}
11443 cm, only one line will appear.
11444 To get two lines, a justified line break (shortcut
11447 arg "newline-insert linebreak"
11451 If the text is wider than the set cell width, it will automatically be
11452 broken to several lines.
11455 \begin_layout Standard
11456 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11457 by LaTeX if it is the first entry.
11458 Therefore you need to insert something to prevent the word not being the
11460 So add a horizontal space of 0
11461 \begin_inset space \thinspace{}
11464 pt before the word.
11465 As the space is zero, it doesn't change the output.
11467 \begin_inset space ~
11471 \begin_inset CommandInset ref
11473 reference "tab:Table-with-and"
11480 \begin_layout Standard
11481 \begin_inset Float table
11487 \begin_layout Plain Layout
11488 \begin_inset Caption
11490 \begin_layout Plain Layout
11491 \begin_inset CommandInset label
11493 name "tab:Table-with-and"
11497 Table with and without hyphenation
11505 \begin_layout Plain Layout
11506 \begin_inset space \hfill{}
11510 \begin_inset Tabular
11511 <lyxtabular version="3" rows="3" columns="3">
11512 <features tabularvalignment="middle">
11513 <column alignment="center" valignment="middle" width="2.5cm">
11514 <column alignment="center" valignment="middle" width="0">
11515 <column alignment="center" valignment="middle" width="0">
11517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11520 \begin_layout Plain Layout
11521 verylongtablecellword
11526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11529 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11538 \begin_layout Plain Layout
11546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11549 \begin_layout Plain Layout
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11558 \begin_layout Plain Layout
11564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11567 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11578 \begin_layout Plain Layout
11584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11587 \begin_layout Plain Layout
11593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11596 \begin_layout Plain Layout
11608 \begin_inset space \hfill{}
11612 \begin_inset Tabular
11613 <lyxtabular version="3" rows="3" columns="3">
11614 <features tabularvalignment="middle">
11615 <column alignment="center" valignment="middle" width="2.5cm">
11616 <column alignment="center" valignment="middle" width="0">
11617 <column alignment="center" valignment="middle" width="0">
11619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11622 \begin_layout Plain Layout
11623 \begin_inset space \hspace{}
11627 verylongtablecellword
11632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11635 \begin_layout Plain Layout
11641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11644 \begin_layout Plain Layout
11652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11655 \begin_layout Plain Layout
11661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11664 \begin_layout Plain Layout
11670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11673 \begin_layout Plain Layout
11681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11684 \begin_layout Plain Layout
11690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11693 \begin_layout Plain Layout
11699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11702 \begin_layout Plain Layout
11714 \begin_inset space \hfill{}
11725 \begin_layout Subsection
11727 \begin_inset CommandInset label
11729 name "sub:Multicolumns"
11734 \begin_inset Index idx
11737 \begin_layout Plain Layout
11744 \begin_inset Index idx
11747 \begin_layout Plain Layout
11748 Table ! Multicolumns
11756 \begin_layout Subsubsection
11760 \begin_layout Standard
11761 To merge cells over multiple columns, select as many cells within a row
11762 as you want to merge and use either the table-toolbar button
11767 arg "inset-modify tabular multicolumn"
11774 Edit\SpecialChar \menuseparator
11775 Table\SpecialChar \menuseparator
11778 , or right click on the marked cells and choose
11782 in the context menu.
11785 \begin_layout Standard
11786 Multicolumns have there own cell settings.
11787 That means changing cell borders, cell alignment, and the width only affects
11789 Here is an example table with a multicolumn cell in the first row and one
11790 in the last row without the upper border:
11793 \begin_layout Standard
11795 \begin_inset Tabular
11796 <lyxtabular version="3" rows="3" columns="4">
11797 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11798 <column alignment="center" valignment="top" width="0pt">
11799 <column alignment="center" valignment="middle" width="0">
11800 <column alignment="center" valignment="top" width="0in">
11801 <column alignment="center" valignment="top" width="0pt">
11803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11806 \begin_layout Plain Layout
11812 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11824 \begin_layout Plain Layout
11830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11833 \begin_layout Plain Layout
11841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11844 \begin_layout Plain Layout
11859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11862 \begin_layout Plain Layout
11868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11871 \begin_layout Plain Layout
11877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11880 \begin_layout Plain Layout
11888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11891 \begin_layout Plain Layout
11897 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11900 \begin_layout Plain Layout
11906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11909 \begin_layout Plain Layout
11915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11918 \begin_layout Plain Layout
11932 \begin_layout Subsubsection
11933 Multicolumn Calculations
11934 \begin_inset CommandInset label
11936 name "sub:Multicolumn-Calculations"
11941 \begin_inset Index idx
11944 \begin_layout Plain Layout
11945 Multicolumns ! Calculations
11953 \begin_layout Standard
11954 LyX supports multicolumns directly, but we have to take account of the cell
11955 width of the columns spanned by the multicolumn cell.
11958 \begin_layout Standard
11959 \begin_inset Float table
11965 \begin_layout Plain Layout
11966 \begin_inset Caption
11968 \begin_layout Plain Layout
11969 \begin_inset CommandInset label
11971 name "tab:Table-with-centered"
11975 Table with centered multicolumn text above two columns that have exactly
11976 half the width of the multicolumn cell
11977 \begin_inset Argument
11980 \begin_layout Plain Layout
11981 Perfect multicolumn table
11994 \begin_layout Plain Layout
11996 \begin_inset Tabular
11997 <lyxtabular version="3" rows="3" columns="3">
11998 <features tabularvalignment="middle">
11999 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
12000 <column alignment="center" valignment="middle" width="0">
12001 <column alignment="center" valignment="top" width="0">
12003 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
12006 \begin_layout Plain Layout
12007 multiple lines multicolumn
12012 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12015 \begin_layout Plain Layout
12021 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12024 \begin_layout Plain Layout
12032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12035 \begin_layout Plain Layout
12041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12044 \begin_layout Plain Layout
12050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12053 \begin_layout Plain Layout
12061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12064 \begin_layout Plain Layout
12070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12073 \begin_layout Plain Layout
12079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12082 \begin_layout Plain Layout
12101 \begin_layout Standard
12102 To create for example Table
12103 \begin_inset space ~
12107 \begin_inset CommandInset ref
12109 reference "tab:Table-with-centered"
12113 , mark the first two cells in the first row of a 3×3 table and right-click
12115 Now choose for this cell
12124 \begin_inset space \thinspace{}
12127 cm in the table dialog.
12128 The merged columns should have exactly half the width of the multicolumn
12129 cell, so that you would set a width of 1.25
12130 \begin_inset space \thinspace{}
12133 cm for the first column.
12134 The second column has then automatically a width of 1.25
12135 \begin_inset space \thinspace{}
12138 cm (multicolumn width - width of first column).
12139 This was done for Table
12140 \begin_inset space ~
12144 \begin_inset CommandInset ref
12146 reference "tab:Table-without-half"
12153 \begin_layout Standard
12154 \begin_inset Float table
12159 \begin_layout Plain Layout
12160 \begin_inset Caption
12162 \begin_layout Plain Layout
12163 \begin_inset CommandInset label
12165 name "tab:Table-without-half"
12169 Table where the spanned table columns are not exactly half the width of
12170 the multicolumn cell
12171 \begin_inset Argument
12174 \begin_layout Plain Layout
12175 Imperfect multicolumn table
12188 \begin_layout Plain Layout
12190 \begin_inset Tabular
12191 <lyxtabular version="3" rows="3" columns="3">
12192 <features tabularvalignment="middle">
12193 <column alignment="center" valignment="top" width="1.25cm">
12194 <column alignment="center" valignment="top" width="0">
12195 <column alignment="center" valignment="top" width="0">
12197 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12200 \begin_layout Plain Layout
12201 multiple lines multicolumn
12206 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12209 \begin_layout Plain Layout
12215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12218 \begin_layout Plain Layout
12226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12229 \begin_layout Plain Layout
12235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12238 \begin_layout Plain Layout
12244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12247 \begin_layout Plain Layout
12255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12258 \begin_layout Plain Layout
12264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12267 \begin_layout Plain Layout
12273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12276 \begin_layout Plain Layout
12295 \begin_layout Standard
12296 You can see that the first column is not half the width of the multicolumn
12297 cell, it is a bit bigger.
12298 The reason is that the specified width of a cell
12299 \begin_inset Formula $W_{g}$
12302 is not its total width
12303 \begin_inset Formula $W_{\mathrm{tot}}$
12306 because a cell is always a bit larger than specified.
12308 \begin_inset space ~
12312 \begin_inset CommandInset ref
12314 reference "cha:Explanation-of-Equation"
12318 explains this in detail.
12321 \begin_layout Standard
12323 \begin_inset Formula $W_{g\, n}$
12326 which the user needs to set when
12330 columns are spanned can be calculated, so that each column has a total
12332 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12336 \begin_inset Formula
12338 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12346 \begin_layout Standard
12347 In our case we have
12348 \begin_inset Formula $n=2$
12352 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12355 cm and the default values for the lengths, so that equation
12356 \begin_inset CommandInset ref
12363 \begin_inset Formula
12365 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12373 \begin_layout Standard
12374 To enable calculations in LaTeX, the LaTeX-package
12378 must be loaded with the document preamble line
12379 \begin_inset Index idx
12382 \begin_layout Plain Layout
12383 LaTeX-packages ! calc
12391 \begin_layout Standard
12399 \begin_layout Standard
12400 LyX does not allow you to calculate lengths in the
12404 field of the table dialog.
12405 Therefore you have to format the column by inserting a LaTeX-argument in
12407 Here is an overview about the arguments:
12410 \begin_layout Itemize
12415 creates cell with a fixed width, its text is vertically top-aligned
12418 \begin_layout Itemize
12423 creates cell with a fixed width, its text is vertically centered
12426 \begin_layout Itemize
12431 creates cell with a fixed width, its text is vertically bottom-aligned
12434 \begin_layout Standard
12435 By entering a LaTeX-argument, all cell settings set in the table dialog
12439 \begin_layout Standard
12440 \begin_inset Note Greyedout
12443 \begin_layout Plain Layout
12448 Due to a bug, LyX shows the overwritten settings anyway.
12456 \begin_layout Standard
12457 As the text should be horizontally centered, the command
12464 You can now enter the following LaTeX-argument for the first spanned column:
12467 \begin_layout Standard
12472 centering}m{1.25cm-6.2pt}
12475 \begin_layout Standard
12480 means, that the commands inside the braces are applied before the cell
12484 \begin_layout Standard
12485 Although we have chosen centered alignment for the text of the multicolumn
12486 cell, it is still left aligned.
12487 This is because LyX only applies the alignment to single columns.
12488 So for the multicolumn cell we have to use the LaTeX-argument
12491 \begin_layout Standard
12499 \begin_layout Subsection
12501 \begin_inset CommandInset label
12503 name "sub:Multirows"
12508 \begin_inset Index idx
12511 \begin_layout Plain Layout
12518 \begin_inset Index idx
12521 \begin_layout Plain Layout
12530 \begin_layout Standard
12531 To merge cells over multiple rows, select as many cells within a column
12532 as you want to merge and use either the table-toolbar button
12537 arg "inset-modify tabular multirow"
12544 Edit\SpecialChar \menuseparator
12545 Table\SpecialChar \menuseparator
12548 , or right click on the marked cells and choose
12552 in the context menu.
12555 \begin_layout Standard
12556 Here is an example table with a multirow in the first column:
12559 \begin_layout Standard
12561 \begin_inset Tabular
12562 <lyxtabular version="3" rows="3" columns="3">
12563 <features tabularvalignment="middle">
12564 <column alignment="center" valignment="top" width="0pt">
12565 <column alignment="center" valignment="top" width="0">
12566 <column alignment="center" valignment="top" width="0">
12568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12571 \begin_layout Plain Layout
12577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12580 \begin_layout Plain Layout
12586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12589 \begin_layout Plain Layout
12597 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12600 \begin_layout Plain Layout
12606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12609 \begin_layout Plain Layout
12615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12618 \begin_layout Plain Layout
12626 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12629 \begin_layout Plain Layout
12635 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12638 \begin_layout Plain Layout
12644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12647 \begin_layout Plain Layout
12661 \begin_layout Standard
12662 The width of multirow cells is set by setting the width and alignment for
12668 shifts the content of the multirow up/down if the offset is positive/negative.
12671 \begin_layout Standard
12672 If the column of a multirow cell has no explicit width, the multirow cell
12673 inherits the alignment of the column.
12674 Otherwise it is by default left-aligned.
12675 To override the default, renew the command
12684 \begin_layout Standard
12696 \begin_layout Standard
12697 in the document preamble.
12698 Then all entries of multirow cells in the document are centered.
12699 If centering is only needed for several tables, you can renew the command
12700 in a TeX-Code box just before the table instead of the preamble.
12701 If the text should be right-aligned, replace
12714 To return to left-alignment
12723 \begin_layout Standard
12724 This is an example table with a right-aligned multirow cell that has a vertical
12726 \begin_inset space \thinspace{}
12730 \begin_inset space \thinspace{}
12736 \begin_layout Standard
12742 \begin_layout Plain Layout
12756 \begin_inset Tabular
12757 <lyxtabular version="3" rows="4" columns="3">
12758 <features tabularvalignment="middle">
12759 <column alignment="center" valignment="top" width="3cm">
12760 <column alignment="center" valignment="top" width="0">
12761 <column alignment="center" valignment="top" width="0">
12763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12766 \begin_layout Plain Layout
12772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12775 \begin_layout Plain Layout
12781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12784 \begin_layout Plain Layout
12792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12795 \begin_layout Plain Layout
12801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12804 \begin_layout Plain Layout
12810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12813 \begin_layout Plain Layout
12821 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12824 \begin_layout Plain Layout
12830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12833 \begin_layout Plain Layout
12839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12842 \begin_layout Plain Layout
12850 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12853 \begin_layout Plain Layout
12859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12862 \begin_layout Plain Layout
12868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12871 \begin_layout Plain Layout
12886 \begin_layout Plain Layout
12902 \begin_layout Standard
12903 To start a new line in a multirow you can use a forced line break (shortcut
12907 arg "newline-insert newline"
12910 ) but this will not respect the cell lines as demonstrated in this table:
12913 \begin_layout Standard
12916 \begin_inset Tabular
12917 <lyxtabular version="3" rows="3" columns="2">
12918 <features tabularvalignment="middle">
12919 <column alignment="left" valignment="middle" width="2cm">
12920 <column alignment="center" valignment="top" width="0">
12922 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12925 \begin_layout Plain Layout
12927 \begin_inset Newline newline
12931 \begin_inset Newline newline
12939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12942 \begin_layout Plain Layout
12950 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12953 \begin_layout Plain Layout
12959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12962 \begin_layout Plain Layout
12970 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12973 \begin_layout Plain Layout
12979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12982 \begin_layout Plain Layout
12996 \begin_layout Standard
12997 Therefore be careful with forced line breaks.
13000 \begin_layout Subsection
13001 Cells with diagonal line(s)
13004 \begin_layout Standard
13005 To tell the reader what is meant by column and row headings in a table,
13006 it is helpful to split the first cell of the table by one or two diagonal
13008 This can be achieved by loading the LaTeX-package
13013 \begin_inset Index idx
13016 \begin_layout Plain Layout
13017 LaTeX-packages ! picinpar
13022 in the document preamble.
13023 The package provides the command
13029 that is inserted as TeX-Code and that can take 2 or 3
13030 \begin_inset space ~
13036 \begin_layout Standard
13041 diagbox[options]{lower left}{upper right}
13044 \begin_layout Standard
13049 diagbox[options]{lower left}{upper left}{upper right}
13052 \begin_layout Standard
13053 The first scheme divides the cell by a single diagonal line and the arguments
13054 are placed below and above this line.
13055 The second scheme divides the cell by 2
13056 \begin_inset space ~
13062 \begin_layout Standard
13066 \begin_layout Plain Layout
13076 \begin_inset Note Note
13079 \begin_layout Plain Layout
13080 The following section will only be displayed when the LaTeX-package
13092 \begin_layout Standard
13093 Here is an example table where
13099 is used in the 2-argument scheme in the first cell:
13100 \begin_inset VSpace medskip
13106 \begin_layout Standard
13108 \begin_inset Tabular
13109 <lyxtabular version="3" rows="4" columns="4">
13110 <features tabularvalignment="middle">
13111 <column alignment="center" valignment="top" width="0">
13112 <column alignment="center" valignment="top" width="0">
13113 <column alignment="center" valignment="top" width="0">
13114 <column alignment="center" valignment="top" width="0">
13116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13119 \begin_layout Plain Layout
13123 \begin_layout Plain Layout
13136 \begin_layout Plain Layout
13147 \begin_layout Plain Layout
13159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13162 \begin_layout Plain Layout
13168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13171 \begin_layout Plain Layout
13177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13180 \begin_layout Plain Layout
13188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13191 \begin_layout Plain Layout
13197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13200 \begin_layout Plain Layout
13206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13209 \begin_layout Plain Layout
13215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13218 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13229 \begin_layout Plain Layout
13235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13238 \begin_layout Plain Layout
13244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13247 \begin_layout Plain Layout
13253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13256 \begin_layout Plain Layout
13264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13267 \begin_layout Plain Layout
13273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13276 \begin_layout Plain Layout
13282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13285 \begin_layout Plain Layout
13291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13294 \begin_layout Plain Layout
13306 \begin_inset VSpace medskip
13312 \begin_layout Standard
13313 The 3-argument scheme is for example useful for cross-tables of sports leagues
13317 \begin_layout Standard
13320 \begin_inset Tabular
13321 <lyxtabular version="3" rows="4" columns="4">
13322 <features tabularvalignment="middle">
13323 <column alignment="center" valignment="top" width="0pt">
13324 <column alignment="center" valignment="top" width="0">
13325 <column alignment="center" valignment="top" width="0">
13326 <column alignment="center" valignment="top" width="0">
13328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13331 \begin_layout Plain Layout
13335 \begin_layout Plain Layout
13348 \begin_layout Plain Layout
13359 \begin_layout Plain Layout
13370 \begin_layout Plain Layout
13382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13385 \begin_layout Plain Layout
13391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13394 \begin_layout Plain Layout
13400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13403 \begin_layout Plain Layout
13411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13414 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13423 \begin_layout Plain Layout
13429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13432 \begin_layout Plain Layout
13438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13441 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13452 \begin_layout Plain Layout
13458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13461 \begin_layout Plain Layout
13467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13470 \begin_layout Plain Layout
13476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13479 \begin_layout Plain Layout
13487 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13490 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13499 \begin_layout Plain Layout
13505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13508 \begin_layout Plain Layout
13514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13517 \begin_layout Plain Layout
13531 \begin_layout Standard
13532 For larger cross-tables one might use split cells in 2 or every corner of
13533 the table like in this example:
13536 \begin_layout Standard
13539 \begin_inset Tabular
13540 <lyxtabular version="3" rows="5" columns="5">
13541 <features tabularvalignment="middle">
13542 <column alignment="center" valignment="top" width="0pt">
13543 <column alignment="center" valignment="top" width="0">
13544 <column alignment="center" valignment="top" width="0">
13545 <column alignment="center" valignment="top" width="0">
13546 <column alignment="center" valignment="top" width="0">
13548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13551 \begin_layout Plain Layout
13555 \begin_layout Plain Layout
13568 \begin_layout Plain Layout
13579 \begin_layout Plain Layout
13590 \begin_layout Plain Layout
13602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13605 \begin_layout Plain Layout
13611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13614 \begin_layout Plain Layout
13620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13623 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13632 \begin_layout Plain Layout
13636 \begin_layout Plain Layout
13649 \begin_layout Plain Layout
13660 \begin_layout Plain Layout
13671 \begin_layout Plain Layout
13685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13688 \begin_layout Plain Layout
13694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13697 \begin_layout Plain Layout
13703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13715 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13724 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13762 \begin_layout Plain Layout
13768 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13771 \begin_layout Plain Layout
13779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13782 \begin_layout Plain Layout
13788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13791 \begin_layout Plain Layout
13797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13800 \begin_layout Plain Layout
13806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13809 \begin_layout Plain Layout
13815 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13818 \begin_layout Plain Layout
13826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13829 \begin_layout Plain Layout
13833 \begin_layout Plain Layout
13846 \begin_layout Plain Layout
13857 \begin_layout Plain Layout
13868 \begin_layout Plain Layout
13880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13883 \begin_layout Plain Layout
13889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13892 \begin_layout Plain Layout
13898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13901 \begin_layout Plain Layout
13907 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13910 \begin_layout Plain Layout
13914 \begin_layout Plain Layout
13927 \begin_layout Plain Layout
13938 \begin_layout Plain Layout
13949 \begin_layout Plain Layout
13969 \begin_layout Standard
13970 To rotate the diagonal lines, the command option
13995 and represent a point of a compass.
14000 is for example the south-west corner.
14001 Thus in the lower left cell of the above table the command
14004 \begin_layout Standard
14009 diagbox[dir=SW]{Team home}{Result}{Team away}
14012 \begin_layout Standard
14014 If no direction is given, it will be NW.
14017 \begin_layout Standard
14018 The necessary width of split cells is automatically calculated.
14019 Thus if you set a fixed column width smaller than the calculated one, the
14020 cell's content will protrude the cell borders:
14023 \begin_layout Standard
14026 \begin_inset Tabular
14027 <lyxtabular version="3" rows="2" columns="2">
14028 <features tabularvalignment="middle">
14029 <column alignment="center" valignment="top" width="3cm">
14030 <column alignment="center" valignment="top" width="0">
14032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14035 \begin_layout Plain Layout
14039 \begin_layout Plain Layout
14052 \begin_layout Plain Layout
14063 \begin_layout Plain Layout
14075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14078 \begin_layout Plain Layout
14086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14089 \begin_layout Plain Layout
14095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14098 \begin_layout Plain Layout
14112 \begin_layout Standard
14113 If you need a certain width for columns with a split cell, use the command
14118 (replace '3cm' by the width you need).
14119 In the following table the width of the first column is set to 4
14120 \begin_inset space \thinspace{}
14131 \begin_inset space \thinspace{}
14135 \begin_inset space \thinspace{}
14140 tabcolsep is necessary because the overall width is the width for the text
14141 (in this case the 4
14142 \begin_inset space \thinspace{}
14145 cm) plus two times the separation of the text and the cell border.
14146 The calculation of the width cannot be done in the command option of
14152 so one needs to create a new length which can be used later.
14153 This is done with the TeX-Code commands
14156 \begin_layout Standard
14164 \begin_inset Newline newline
14176 \begin_layout Standard
14180 \begin_layout Plain Layout
14189 \begin_layout Plain Layout
14205 \begin_layout Standard
14206 To enable calculations in LaTeX one needs to load the package
14211 \begin_inset Index idx
14214 \begin_layout Plain Layout
14215 LaTeX-packages ! calc
14220 in the document preamble.
14223 \begin_layout Standard
14224 In this table you can now use the command
14227 \begin_layout Standard
14237 \begin_layout Standard
14241 \begin_layout Standard
14244 \begin_inset Tabular
14245 <lyxtabular version="3" rows="2" columns="2">
14246 <features tabularvalignment="middle">
14247 <column alignment="center" valignment="top" width="4cm">
14248 <column alignment="center" valignment="top" width="0">
14250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14253 \begin_layout Plain Layout
14257 \begin_layout Plain Layout
14272 \begin_layout Plain Layout
14283 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14298 \begin_layout Plain Layout
14306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14309 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14318 \begin_layout Plain Layout
14332 \begin_layout Standard
14333 Note that the split cell needs to be the widest one in the column.
14334 Otherwise the length of the diagonal line cannot be calculated correctly
14335 like in this table:
14338 \begin_layout Standard
14341 \begin_inset Tabular
14342 <lyxtabular version="3" rows="2" columns="2">
14343 <features tabularvalignment="middle">
14344 <column alignment="center" valignment="top" width="0pt">
14345 <column alignment="center" valignment="top" width="0">
14347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14350 \begin_layout Plain Layout
14354 \begin_layout Plain Layout
14367 \begin_layout Plain Layout
14378 \begin_layout Plain Layout
14390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14393 \begin_layout Plain Layout
14401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14404 \begin_layout Plain Layout
14410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14413 \begin_layout Plain Layout
14427 \begin_layout Standard
14428 In this case use the
14439 It is then not necessary to add 2
14441 tabcolsep because the cell width is now the width of the column.
14442 In this table a width of 3
14443 \begin_inset space \thinspace{}
14449 \begin_layout Standard
14452 \begin_inset Tabular
14453 <lyxtabular version="3" rows="2" columns="2">
14454 <features tabularvalignment="middle">
14455 <column alignment="center" valignment="top" width="0pt">
14456 <column alignment="center" valignment="top" width="0">
14458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14461 \begin_layout Plain Layout
14465 \begin_layout Plain Layout
14469 diagbox[width=3cm]{
14478 \begin_layout Plain Layout
14489 \begin_layout Plain Layout
14501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14504 \begin_layout Plain Layout
14512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14515 \begin_layout Plain Layout
14521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14524 \begin_layout Plain Layout
14538 \begin_layout Standard
14539 For multiple text lines in split cells one needs some extra height to fit
14540 the text to the cell.
14541 This can be achieved with the
14551 (replace '3cm' by the height you need).
14552 In the following table the command
14555 \begin_layout Standard
14560 diagbox[width=3cm,height=1.4cm]{A
14571 \begin_layout Standard
14572 is used in the first cell.
14581 creates hereby the line break.
14585 \begin_layout Plain Layout
14586 Breaking lines with
14590 is only possible when the column has a fixed width.
14598 \begin_layout Standard
14601 \begin_inset Tabular
14602 <lyxtabular version="3" rows="2" columns="2">
14603 <features tabularvalignment="middle">
14604 <column alignment="center" valignment="top" width="0">
14605 <column alignment="center" valignment="top" width="0">
14607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14610 \begin_layout Plain Layout
14614 \begin_layout Plain Layout
14618 diagbox[width=3cm,height=1.4cm]{
14627 \begin_layout Plain Layout
14642 \begin_layout Plain Layout
14653 \begin_layout Plain Layout
14668 \begin_layout Plain Layout
14680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14683 \begin_layout Plain Layout
14691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14694 \begin_layout Plain Layout
14700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14703 \begin_layout Plain Layout
14717 \begin_layout Standard
14721 \begin_layout Plain Layout
14731 \begin_inset Note Note
14734 \begin_layout Plain Layout
14735 The following will be displayed when the LaTeX-package
14747 \begin_layout Standard
14748 You need to install the LaTeX-package
14752 to see the following part of this section in the output.
14755 \begin_layout Standard
14759 \begin_layout Plain Layout
14771 \begin_layout Standard
14772 For more info about the LaTeX-package
14776 , see its documentation,
14777 \begin_inset CommandInset citation
14786 \begin_layout Section
14788 \begin_inset CommandInset label
14790 name "sec:Formal-Tables"
14795 \begin_inset Index idx
14798 \begin_layout Plain Layout
14807 \begin_layout Standard
14808 Tables are often typeset in books similar to Table
14809 \begin_inset space ~
14813 \begin_inset CommandInset ref
14815 reference "tab:Example-booktabs-table"
14820 This kind of tables is called
14821 \begin_inset Quotes eld
14829 \begin_inset Quotes erd
14833 To make a table a formal table use the option
14841 tab of the table dialog.
14844 \begin_layout Standard
14845 \begin_inset Float table
14851 \begin_layout Plain Layout
14852 \begin_inset Caption
14854 \begin_layout Plain Layout
14855 \begin_inset CommandInset label
14857 name "tab:Example-booktabs-table"
14861 Example booktabs-table
14869 \begin_layout Plain Layout
14871 \begin_inset Tabular
14872 <lyxtabular version="3" rows="8" columns="4">
14873 <features booktabs="true" tabularvalignment="middle">
14874 <column alignment="center" valignment="top" width="0">
14875 <column alignment="center" valignment="top" width="0">
14876 <column alignment="center" valignment="top" width="0">
14877 <column alignment="center" valignment="top" width="0">
14879 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14882 \begin_layout Plain Layout
14888 <cell alignment="center" valignment="top" topline="true" usebox="none">
14891 \begin_layout Plain Layout
14893 \begin_inset space \thinspace{}
14901 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14904 \begin_layout Plain Layout
14906 \begin_inset space \thinspace{}
14914 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14917 \begin_layout Plain Layout
14925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14928 \begin_layout Plain Layout
14932 \begin_layout Plain Layout
14945 \begin_layout Plain Layout
14954 Detector thickness in µm
14959 <cell alignment="center" valignment="top" usebox="none">
14962 \begin_layout Plain Layout
14968 <cell alignment="center" valignment="top" usebox="none">
14971 \begin_layout Plain Layout
14977 <cell alignment="center" valignment="top" usebox="none">
14980 \begin_layout Plain Layout
14988 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14991 \begin_layout Plain Layout
14997 <cell alignment="center" valignment="top" topline="true" usebox="none">
15000 \begin_layout Plain Layout
15006 <cell alignment="center" valignment="top" topline="true" usebox="none">
15009 \begin_layout Plain Layout
15015 <cell alignment="center" valignment="top" topline="true" usebox="none">
15018 \begin_layout Plain Layout
15025 <row topspace="default">
15026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15029 \begin_layout Plain Layout
15030 Spatial resolution in µm
15035 <cell alignment="center" valignment="top" usebox="none">
15038 \begin_layout Plain Layout
15044 <cell alignment="center" valignment="top" usebox="none">
15047 \begin_layout Plain Layout
15053 <cell alignment="center" valignment="top" usebox="none">
15056 \begin_layout Plain Layout
15063 <row topspace="default">
15064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15067 \begin_layout Plain Layout
15069 \begin_inset Formula $f_{\mathrm{max}}$
15077 <cell alignment="center" valignment="top" usebox="none">
15080 \begin_layout Plain Layout
15086 <cell alignment="center" valignment="top" usebox="none">
15089 \begin_layout Plain Layout
15095 <cell alignment="center" valignment="top" usebox="none">
15098 \begin_layout Plain Layout
15105 <row topspace="default">
15106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15109 \begin_layout Plain Layout
15113 \begin_layout Plain Layout
15117 cmidrule(l{10pt}){1-1}
15122 LSF-spatial resolution
15127 <cell alignment="center" valignment="top" usebox="none">
15130 \begin_layout Plain Layout
15136 <cell alignment="center" valignment="top" usebox="none">
15139 \begin_layout Plain Layout
15145 <cell alignment="center" valignment="top" usebox="none">
15148 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15159 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15174 <cell alignment="center" valignment="top" usebox="none">
15177 \begin_layout Plain Layout
15183 <cell alignment="center" valignment="top" usebox="none">
15186 \begin_layout Plain Layout
15194 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15197 \begin_layout Plain Layout
15203 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15206 \begin_layout Plain Layout
15212 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15215 \begin_layout Plain Layout
15221 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15224 \begin_layout Plain Layout
15243 \begin_layout Standard
15244 Spaces to table rows can be added using the
15248 tab of the table dialog as described in section
15249 \begin_inset space ~
15253 \begin_inset CommandInset ref
15255 reference "sub:Row-Spacing"
15262 \begin_layout Standard
15263 Unlike normal tables, formal tables have no vertical table lines.
15264 The horizontal table lines can be set as for normal tables but they appear
15265 with different widths in the output:
15266 \begin_inset Newline newline
15269 The first and the last table line have a default width of 0.08
15270 \begin_inset space \thinspace{}
15273 em while the other lines have a default width of 0.05
15274 \begin_inset space \thinspace{}
15280 \begin_layout Standard
15281 The default widths can be changed with the following preamble lines
15284 \begin_layout Standard
15294 \begin_inset Newline newline
15306 \begin_layout Standard
15307 This example is for the first line, the so called
15312 If you want to change the width for the last line, replace
15321 To change the width for the other lines replace
15330 You can use all units listed in appendix
15331 \begin_inset space ~
15335 \begin_inset CommandInset ref
15337 reference "cha:Units-available-in"
15344 \begin_layout Standard
15345 Lines that do not span all table columns can be created by setting a table
15346 line for multicolumn cells.
15347 LyX will then internally use the command
15353 to create this line.
15357 \begin_layout Standard
15362 cmidrule[width](trim){startcol-endcol}
15365 \begin_layout Standard
15372 are currently not supported by LyX so you have to use TeX-Code to be able
15380 s can manually be created by inserting the command as TeX-Code as the first
15381 cell entry of the first cell of a row.
15382 The line is then drawn in the output above the current row.
15385 \begin_layout Standard
15386 The default for the width is 0.03
15387 \begin_inset space \thinspace{}
15391 Startcol is the number of the column where the line starts and endcol the
15392 column number where the line ends.
15393 The endcol always needs to be specified, also when the line should span
15395 The optional parameter trim could be either
15403 where the trimwidth is also optional.
15404 Using for example the parameter
15408 means that the line is trimmed from its left end by 2
15409 \begin_inset space \thinspace{}
15413 If you don't specify the trimwidth the lines are trimmed by the default
15415 \begin_inset space \thinspace{}
15421 \begin_layout Standard
15422 \begin_inset VSpace bigskip
15426 \begin_inset space ~
15430 \begin_inset CommandInset ref
15432 reference "tab:Example-booktabs-table"
15436 was created using the commands
15439 \begin_layout Standard
15449 \begin_layout Standard
15450 at the beginning of the second row and
15453 \begin_layout Standard
15458 cmidrule(l{10pt}){1-1}
15461 \begin_layout Standard
15465 \begin_layout Standard
15466 \begin_inset VSpace bigskip
15472 \begin_layout Standard
15473 You might want to have overlapping
15480 \begin_inset space ~
15484 \begin_inset CommandInset ref
15486 reference "tab:Special-booktabs-table"
15491 This can be achieved with the TeX-Code command
15494 \begin_layout Standard
15502 \begin_layout Standard
15503 The command that was used for the second row of Table
15504 \begin_inset space ~
15508 \begin_inset CommandInset ref
15510 reference "tab:Special-booktabs-table"
15517 \begin_layout Standard
15531 \begin_layout Standard
15532 The command for the sixth row is
15535 \begin_layout Standard
15547 \begin_layout Standard
15548 \begin_inset VSpace bigskip
15554 \begin_layout Standard
15555 If you are anyway not satisfied with the border line spacing, you can use
15556 the following command to produce lines that span over all table columns
15561 \begin_layout Standard
15566 specialrule{width}{space above}{space below}
15569 \begin_layout Standard
15570 For more information about these features, refer to the manual of the LaTeX-pack
15576 \begin_inset CommandInset citation
15583 \begin_inset Index idx
15586 \begin_layout Plain Layout
15587 LaTeX-packages ! booktabs
15595 \begin_layout Standard
15596 \begin_inset Float table
15602 \begin_layout Plain Layout
15603 \begin_inset Caption
15605 \begin_layout Plain Layout
15606 \begin_inset CommandInset label
15608 name "tab:Special-booktabs-table"
15612 Special booktabs-table
15620 \begin_layout Plain Layout
15622 \begin_inset Tabular
15623 <lyxtabular version="3" rows="8" columns="4">
15624 <features booktabs="true" tabularvalignment="middle">
15625 <column alignment="center" valignment="top" width="0">
15626 <column alignment="center" valignment="top" width="0">
15627 <column alignment="center" valignment="top" width="0">
15628 <column alignment="center" valignment="top" width="0">
15630 <cell alignment="center" valignment="top" topline="true" usebox="none">
15633 \begin_layout Plain Layout
15639 <cell alignment="center" valignment="top" topline="true" usebox="none">
15642 \begin_layout Plain Layout
15644 \begin_inset space \thinspace{}
15652 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15655 \begin_layout Plain Layout
15657 \begin_inset space \thinspace{}
15665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15668 \begin_layout Plain Layout
15676 <cell alignment="center" valignment="top" usebox="none">
15679 \begin_layout Plain Layout
15683 \begin_layout Plain Layout
15696 \begin_layout Plain Layout
15709 \begin_layout Plain Layout
15722 \begin_layout Plain Layout
15731 Detector thickness in µm
15736 <cell alignment="center" valignment="top" usebox="none">
15739 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" usebox="none">
15757 \begin_layout Plain Layout
15765 <cell alignment="center" valignment="top" topline="true" usebox="none">
15768 \begin_layout Plain Layout
15774 <cell alignment="center" valignment="top" topline="true" usebox="none">
15777 \begin_layout Plain Layout
15783 <cell alignment="center" valignment="top" topline="true" usebox="none">
15786 \begin_layout Plain Layout
15792 <cell alignment="center" valignment="top" topline="true" usebox="none">
15795 \begin_layout Plain Layout
15802 <row topspace="default">
15803 <cell alignment="center" valignment="top" usebox="none">
15806 \begin_layout Plain Layout
15807 Spatial resolution in µm
15812 <cell alignment="center" valignment="top" usebox="none">
15815 \begin_layout Plain Layout
15821 <cell alignment="center" valignment="top" usebox="none">
15824 \begin_layout Plain Layout
15830 <cell alignment="center" valignment="top" usebox="none">
15833 \begin_layout Plain Layout
15840 <row topspace="default">
15841 <cell alignment="center" valignment="top" usebox="none">
15844 \begin_layout Plain Layout
15846 \begin_inset Formula $f_{\mathrm{max}}$
15854 <cell alignment="center" valignment="top" usebox="none">
15857 \begin_layout Plain Layout
15863 <cell alignment="center" valignment="top" usebox="none">
15866 \begin_layout Plain Layout
15872 <cell alignment="center" valignment="top" usebox="none">
15875 \begin_layout Plain Layout
15883 <cell alignment="center" valignment="top" topline="true" usebox="none">
15886 \begin_layout Plain Layout
15890 \begin_layout Plain Layout
15903 \begin_layout Plain Layout
15912 LSF-spatial resolution
15917 <cell alignment="center" valignment="top" topline="true" usebox="none">
15920 \begin_layout Plain Layout
15926 <cell alignment="center" valignment="top" topline="true" usebox="none">
15929 \begin_layout Plain Layout
15935 <cell alignment="center" valignment="top" topline="true" usebox="none">
15938 \begin_layout Plain Layout
15946 <cell alignment="center" valignment="top" usebox="none">
15949 \begin_layout Plain Layout
15955 <cell alignment="center" valignment="top" usebox="none">
15958 \begin_layout Plain Layout
15964 <cell alignment="center" valignment="top" usebox="none">
15967 \begin_layout Plain Layout
15973 <cell alignment="center" valignment="top" usebox="none">
15976 \begin_layout Plain Layout
15984 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15987 \begin_layout Plain Layout
15993 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15996 \begin_layout Plain Layout
16002 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16005 \begin_layout Plain Layout
16011 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16014 \begin_layout Plain Layout
16033 \begin_layout Section
16034 Vertical Table Alignment
16035 \begin_inset Index idx
16038 \begin_layout Plain Layout
16047 \begin_layout Standard
16048 To align tables vertically in a text line the table must be inside a box.
16049 The box can then be vertically aligned as described in section
16050 \begin_inset space ~
16054 \begin_inset CommandInset ref
16056 reference "sec:Box-Dialog"
16063 \begin_layout Standard
16064 In the following example the tables are inside a minipage
16068 \begin_layout Plain Layout
16069 Minipages are described in section
16070 \begin_inset space ~
16074 \begin_inset CommandInset ref
16076 reference "sec:Minipages"
16085 box that has a width of 15
16086 \begin_inset space \thinspace{}
16092 \begin_layout Itemize
16094 \begin_inset Box Frameless
16104 height_special "totalheight"
16107 \begin_layout Plain Layout
16108 \begin_inset Tabular
16109 <lyxtabular version="3" rows="3" columns="3">
16110 <features tabularvalignment="middle">
16111 <column alignment="center" valignment="top" width="0">
16112 <column alignment="center" valignment="top" width="0">
16113 <column alignment="center" valignment="top" width="0">
16115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16118 \begin_layout Plain Layout
16124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16127 \begin_layout Plain Layout
16133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16136 \begin_layout Plain Layout
16144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16147 \begin_layout Plain Layout
16153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16156 \begin_layout Plain Layout
16162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16165 \begin_layout Plain Layout
16173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16176 \begin_layout Plain Layout
16182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16185 \begin_layout Plain Layout
16191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16194 \begin_layout Plain Layout
16214 \begin_layout Plain Layout
16226 \begin_inset Box Frameless
16236 height_special "totalheight"
16239 \begin_layout Plain Layout
16240 \begin_inset Tabular
16241 <lyxtabular version="3" rows="3" columns="3">
16242 <features tabularvalignment="middle">
16243 <column alignment="center" valignment="top" width="0">
16244 <column alignment="center" valignment="top" width="0">
16245 <column alignment="center" valignment="top" width="0">
16247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16250 \begin_layout Plain Layout
16256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16259 \begin_layout Plain Layout
16265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16268 \begin_layout Plain Layout
16276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16279 \begin_layout Plain Layout
16285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16288 \begin_layout Plain Layout
16294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16297 \begin_layout Plain Layout
16305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16308 \begin_layout Plain Layout
16314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16317 \begin_layout Plain Layout
16323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16326 \begin_layout Plain Layout
16346 \begin_layout Plain Layout
16356 \begin_layout Itemize
16358 \begin_inset Box Frameless
16368 height_special "totalheight"
16371 \begin_layout Plain Layout
16372 \begin_inset Tabular
16373 <lyxtabular version="3" rows="3" columns="3">
16374 <features tabularvalignment="middle">
16375 <column alignment="center" valignment="top" width="0">
16376 <column alignment="center" valignment="top" width="0">
16377 <column alignment="center" valignment="top" width="0">
16379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16382 \begin_layout Plain Layout
16388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16391 \begin_layout Plain Layout
16397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16400 \begin_layout Plain Layout
16408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16411 \begin_layout Plain Layout
16417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16420 \begin_layout Plain Layout
16426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16429 \begin_layout Plain Layout
16437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16440 \begin_layout Plain Layout
16446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16449 \begin_layout Plain Layout
16455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16458 \begin_layout Plain Layout
16477 \begin_layout Itemize
16479 \begin_inset Box Frameless
16489 height_special "totalheight"
16492 \begin_layout Plain Layout
16493 \begin_inset Tabular
16494 <lyxtabular version="3" rows="3" columns="3">
16495 <features tabularvalignment="middle">
16496 <column alignment="center" valignment="top" width="0">
16497 <column alignment="center" valignment="top" width="0">
16498 <column alignment="center" valignment="top" width="0">
16500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16503 \begin_layout Plain Layout
16509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16512 \begin_layout Plain Layout
16518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16521 \begin_layout Plain Layout
16529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16532 \begin_layout Plain Layout
16538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16541 \begin_layout Plain Layout
16547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16550 \begin_layout Plain Layout
16558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16561 \begin_layout Plain Layout
16567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16570 \begin_layout Plain Layout
16576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16579 \begin_layout Plain Layout
16599 \begin_layout Plain Layout
16611 \begin_inset Box Frameless
16621 height_special "totalheight"
16624 \begin_layout Plain Layout
16625 \begin_inset Tabular
16626 <lyxtabular version="3" rows="3" columns="3">
16627 <features tabularvalignment="middle">
16628 <column alignment="center" valignment="top" width="0">
16629 <column alignment="center" valignment="top" width="0">
16630 <column alignment="center" valignment="top" width="0">
16632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16635 \begin_layout Plain Layout
16641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16644 \begin_layout Plain Layout
16650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16653 \begin_layout Plain Layout
16661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16664 \begin_layout Plain Layout
16670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16673 \begin_layout Plain Layout
16679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16682 \begin_layout Plain Layout
16690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16693 \begin_layout Plain Layout
16699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16702 \begin_layout Plain Layout
16708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16711 \begin_layout Plain Layout
16731 \begin_layout Plain Layout
16741 \begin_layout Standard
16742 As you will see, the content of the first and last table row is not correctly
16744 To get this alignment, the minipage box must be set into a raisebox
16748 \begin_layout Plain Layout
16749 Raiseboxes are described in section
16750 \begin_inset space ~
16754 \begin_inset CommandInset ref
16756 reference "sub:Vertical-Alignment"
16766 In the example above the second table in the first item is aligned using
16767 the TeX-Code-command
16770 \begin_layout Standard
16780 \begin_layout Standard
16782 After the box the closing brace
16786 is inserted as TeX-Code.
16787 For the second table in the last item the command
16790 \begin_layout Standard
16800 \begin_layout Standard
16804 \begin_layout Standard
16805 \begin_inset Note Greyedout
16808 \begin_layout Plain Layout
16813 The alignment of the table row content to the surrounding text line is
16815 The required value for the
16821 command for this alignment depends on the document font, the font size,
16822 and the table line thickness.
16830 \begin_layout Section
16832 \begin_inset CommandInset label
16834 name "sec:Colored-Tables"
16839 \begin_inset Index idx
16842 \begin_layout Plain Layout
16851 \begin_layout Subsection
16853 \begin_inset Index idx
16856 \begin_layout Plain Layout
16857 Table Color ! for Cells
16863 \begin_inset Index idx
16866 \begin_layout Plain Layout
16867 Color ! for Table Cells
16875 \begin_layout Standard
16876 \begin_inset Float table
16882 \begin_layout Plain Layout
16883 \begin_inset Caption
16885 \begin_layout Plain Layout
16886 \begin_inset CommandInset label
16888 name "tab:Table-colored-without"
16892 Table colored without using the package
16897 \begin_inset Argument
16900 \begin_layout Plain Layout
16901 Table without colortbl
16914 \begin_layout Plain Layout
16916 \begin_inset Tabular
16917 <lyxtabular version="3" rows="3" columns="3">
16918 <features tabularvalignment="middle">
16919 <column alignment="center" valignment="top" width="0">
16920 <column alignment="center" valignment="top" width="0">
16921 <column alignment="center" valignment="top" width="0">
16923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16926 \begin_layout Plain Layout
16934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16937 \begin_layout Plain Layout
16945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16948 \begin_layout Plain Layout
16958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16961 \begin_layout Plain Layout
16969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16972 \begin_layout Plain Layout
16980 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16983 \begin_layout Plain Layout
16993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16996 \begin_layout Plain Layout
17004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17007 \begin_layout Plain Layout
17015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17018 \begin_layout Plain Layout
17039 \begin_layout Standard
17040 If you only need colored text, mark the cells and choose a color in the
17043 Edit\SpecialChar \menuseparator
17045 \begin_inset space ~
17051 This was used to create Table
17052 \begin_inset space ~
17056 \begin_inset CommandInset ref
17058 reference "tab:Table-colored-without"
17063 In any other case you have to use the LaTeX-package
17068 \begin_inset Index idx
17071 \begin_layout Plain Layout
17072 LaTeX-packages ! colortbl
17080 \begin_layout Standard
17084 \begin_layout Plain Layout
17094 \begin_inset Note Note
17097 \begin_layout Plain Layout
17098 The following section part will only be displayed when the LaTeX-package
17111 \begin_layout Standard
17112 To create colored tables,
17116 must be loaded in the preamble with the line
17119 \begin_layout Standard
17124 usepackage{colortbl}
17127 \begin_layout Standard
17128 The color of a column is adjusted with the command
17131 \begin_layout Standard
17136 columncolor{name of color}
17139 \begin_layout Standard
17145 More about the command
17149 is contained in section
17150 \begin_inset space ~
17154 \begin_inset CommandInset ref
17156 reference "sub:Multicolumn-Calculations"
17163 \begin_layout Standard
17164 The following color names are predefined:
17167 \begin_layout Standard
17201 \begin_layout Standard
17202 \begin_inset VSpace medskip
17208 \begin_layout Standard
17209 If you add the options
17212 \begin_layout Standard
17215 usenames,dvipsnames
17218 \begin_layout Standard
17219 to the document class options in the document settings, you can additionally
17221 \begin_inset space ~
17225 These colors are listed in appendix
17226 \begin_inset space ~
17230 \begin_inset CommandInset ref
17232 reference "chap:List-of-dvips-colornames"
17237 One of these colors,
17241 , is used as example in Table
17242 \begin_inset space ~
17246 \begin_inset CommandInset ref
17248 reference "tab:Table-colored-using"
17255 \begin_layout Standard
17256 \begin_inset VSpace medskip
17262 \begin_layout Standard
17263 You can also define your own color with the command
17266 \begin_layout Standard
17271 definecolor{color name}{color model}{color values}
17274 \begin_layout Standard
17275 The color model can be
17278 \begin_layout Labeling
17279 \labelwidthstring 00.00.0000
17280 cmyk: cyan, magenta, yellow, black
17283 \begin_layout Labeling
17284 \labelwidthstring 00.00.0000
17285 rgb: red, green blue
17288 \begin_layout Labeling
17289 \labelwidthstring 00.00.0000
17293 \begin_layout Standard
17294 and the color values are comma separated numbers between 0 and 1 describing
17295 the factor for the corresponding color of the color model.
17298 \begin_layout Standard
17300 \begin_inset space \thinspace{}
17304 \begin_inset space \space{}
17311 " in the preamble with
17314 \begin_layout Standard
17319 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17322 \begin_layout Standard
17330 \begin_layout Standard
17335 definecolor{lightgray}{gray}{0.8}
17338 \begin_layout Standard
17339 \begin_inset VSpace medskip
17345 \begin_layout Standard
17346 Lines are colored with the command
17349 \begin_layout Standard
17354 rowcolor{name of color}
17357 \begin_layout Standard
17358 and cells are colored with the command
17361 \begin_layout Standard
17366 cellcolor{name of color}
17369 \begin_layout Standard
17370 Both commands are inserted at the beginning of a cell as TeX-Code.
17373 \begin_layout Standard
17374 To color characters in the table, mark the cells and use the LyX menu
17376 Edit\SpecialChar \menuseparator
17378 \begin_inset space ~
17384 If a cell contains TeX-Code mark only the characters, otherwise the colored
17385 TeX-Code will cause LaTeX-errors.
17388 \begin_layout Standard
17389 \begin_inset Note Greyedout
17392 \begin_layout Plain Layout
17397 Not all DVI-viewers are able to display self-defined colors.
17405 \begin_layout Standard
17406 \begin_inset VSpace bigskip
17412 \begin_layout Standard
17414 \begin_inset space ~
17418 \begin_inset CommandInset ref
17420 reference "tab:Table-colored-using"
17424 do the following: The color of the first column should be
17432 \begin_layout Standard
17437 columncolor{darkgreen}
17442 \begin_layout Standard
17443 as LaTeX-argument for this column.
17444 The first row should be light blue, therefore the TeX-Code command
17447 \begin_layout Standard
17455 \begin_layout Standard
17456 is inserted to the first cell of this row.
17457 Note that this overwrites the column color for the first cell.
17458 The last cell of the last row is colored maroon by inserting the TeX-Code
17462 \begin_layout Standard
17470 \begin_layout Standard
17471 The characters could now be colored using the menu
17473 Edit\SpecialChar \menuseparator
17475 \begin_inset space ~
17483 \begin_layout Standard
17484 \begin_inset Float table
17490 \begin_layout Plain Layout
17491 \begin_inset Caption
17493 \begin_layout Plain Layout
17494 \begin_inset CommandInset label
17496 name "tab:Table-colored-using"
17500 Table colored using the package
17505 \begin_inset Argument
17508 \begin_layout Plain Layout
17509 Table with colortbl
17522 \begin_layout Plain Layout
17524 \begin_inset Tabular
17525 <lyxtabular version="3" rows="3" columns="3">
17526 <features tabularvalignment="middle">
17527 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
17528 <column alignment="center" valignment="top" width="0">
17529 <column alignment="center" valignment="top" width="0">
17531 <cell alignment="center" valignment="top" usebox="none">
17534 \begin_layout Plain Layout
17538 \begin_layout Plain Layout
17554 <cell alignment="center" valignment="top" usebox="none">
17557 \begin_layout Plain Layout
17565 <cell alignment="center" valignment="top" usebox="none">
17568 \begin_layout Plain Layout
17578 <cell alignment="center" valignment="top" usebox="none">
17581 \begin_layout Plain Layout
17589 <cell alignment="center" valignment="top" usebox="none">
17592 \begin_layout Plain Layout
17600 <cell alignment="center" valignment="top" usebox="none">
17603 \begin_layout Plain Layout
17613 <cell alignment="center" valignment="top" usebox="none">
17616 \begin_layout Plain Layout
17624 <cell alignment="center" valignment="top" usebox="none">
17627 \begin_layout Plain Layout
17635 <cell alignment="center" valignment="top" usebox="none">
17638 \begin_layout Plain Layout
17642 \begin_layout Plain Layout
17671 \begin_layout Standard
17675 \begin_layout Plain Layout
17685 \begin_inset Note Note
17688 \begin_layout Plain Layout
17689 The following will be displayed when the LaTeX-package
17701 \begin_layout Standard
17702 You need to install the package
17706 to see the content of this section in the output.
17709 \begin_layout Standard
17713 \begin_layout Plain Layout
17725 \begin_layout Subsection
17727 \begin_inset Index idx
17730 \begin_layout Plain Layout
17731 Table Color ! for Lines
17737 \begin_inset Index idx
17740 \begin_layout Plain Layout
17741 Color ! for Table Lines
17749 \begin_layout Standard
17750 As described in section
17751 \begin_inset space ~
17755 \begin_inset CommandInset ref
17757 reference "sub:Line-Thickness"
17761 , the line thickness for all lines in a table can be adjusted with the length
17770 \begin_inset space \thinspace{}
17773 pt for all tables of this section.
17777 \begin_layout Plain Layout
17783 arrayrulewidth}{1.5pt}
17791 \begin_layout Standard
17792 To color vertical lines for example with green, create the following column
17793 format in the document preamble, according to the description in section
17794 \begin_inset space ~
17798 \begin_inset CommandInset ref
17800 reference "sub:Customized-Format"
17807 \begin_layout Standard
17812 newcolumntype{W}{!{
17819 \begin_layout Standard
17821 \begin_inset space ~
17825 \begin_inset CommandInset ref
17827 reference "tab:Table-with-vertical-colored"
17835 was used for the last column and
17839 for the other columns.
17842 \begin_layout Standard
17843 If you want to have several colors, define more column formats.
17846 \begin_layout Standard
17847 \begin_inset Float table
17853 \begin_layout Plain Layout
17854 \begin_inset Caption
17856 \begin_layout Plain Layout
17857 \begin_inset CommandInset label
17859 name "tab:Table-with-vertical-colored"
17863 Table with colored vertical lines
17871 \begin_layout Plain Layout
17873 \begin_inset Tabular
17874 <lyxtabular version="3" rows="3" columns="3">
17875 <features tabularvalignment="middle">
17876 <column alignment="center" valignment="top" width="0" special="Wc">
17877 <column alignment="center" valignment="top" width="0" special="Wc">
17878 <column alignment="center" valignment="top" width="0" special="WcW">
17880 <cell alignment="center" valignment="top" topline="true" usebox="none">
17883 \begin_layout Plain Layout
17889 <cell alignment="center" valignment="top" topline="true" usebox="none">
17892 \begin_layout Plain Layout
17898 <cell alignment="center" valignment="top" topline="true" usebox="none">
17901 \begin_layout Plain Layout
17909 <cell alignment="center" valignment="top" topline="true" usebox="none">
17912 \begin_layout Plain Layout
17918 <cell alignment="center" valignment="top" topline="true" usebox="none">
17921 \begin_layout Plain Layout
17927 <cell alignment="center" valignment="top" topline="true" usebox="none">
17930 \begin_layout Plain Layout
17938 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
17941 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
17959 \begin_layout Plain Layout
17978 \begin_layout Standard
17979 \begin_inset VSpace bigskip
17982 To color horizontal lines for example with red, as in Table
17983 \begin_inset space ~
17987 \begin_inset CommandInset ref
17989 reference "tab:Table-with-horizontal-colored"
17993 , insert these commands in TeX-Code before the table or table float:
17996 \begin_layout Standard
18006 \begin_inset Newline newline
18014 \begin_inset Newline newline
18018 \begin_inset Phantom HPhantom
18021 \begin_layout Plain Layout
18024 \begin_inset space ~
18034 arrayrulecolor{red}
18038 arrayrulecolor{black}}
18041 \begin_layout Standard
18045 \begin_layout Plain Layout
18056 \begin_layout Plain Layout
18065 \begin_layout Plain Layout
18069 arrayrulecolor{red}
18073 arrayrulecolor{black}}
18079 \begin_inset Float table
18085 \begin_layout Plain Layout
18086 \begin_inset Caption
18088 \begin_layout Plain Layout
18089 \begin_inset CommandInset label
18091 name "tab:Table-with-horizontal-colored"
18095 Table with colored horizontal lines
18103 \begin_layout Plain Layout
18105 \begin_inset Tabular
18106 <lyxtabular version="3" rows="3" columns="3">
18107 <features tabularvalignment="middle">
18108 <column alignment="center" valignment="top" width="0">
18109 <column alignment="center" valignment="top" width="0">
18110 <column alignment="center" valignment="top" width="0">
18112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18115 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18133 \begin_layout Plain Layout
18141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18144 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18162 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18182 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18191 \begin_layout Plain Layout
18210 \begin_layout Standard
18211 To return to the default line color black, insert this command in TeX-Code
18212 after the table or table float:
18215 \begin_layout Standard
18227 \begin_layout Standard
18229 \begin_inset space ~
18233 \begin_inset CommandInset ref
18235 reference "tab:Table-with-colored"
18239 is an example with colored vertical and horizontal lines.
18242 \begin_layout Standard
18243 \begin_inset Float table
18249 \begin_layout Plain Layout
18250 \begin_inset Caption
18252 \begin_layout Plain Layout
18253 \begin_inset CommandInset label
18255 name "tab:Table-with-colored"
18259 Table with colored lines
18267 \begin_layout Plain Layout
18269 \begin_inset Tabular
18270 <lyxtabular version="3" rows="3" columns="3">
18271 <features tabularvalignment="middle">
18272 <column alignment="center" valignment="top" width="0" special="Wc">
18273 <column alignment="center" valignment="top" width="0" special="Wc">
18274 <column alignment="center" valignment="top" width="0" special="WcW">
18276 <cell alignment="center" valignment="top" topline="true" usebox="none">
18279 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" topline="true" usebox="none">
18288 \begin_layout Plain Layout
18294 <cell alignment="center" valignment="top" topline="true" usebox="none">
18297 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" topline="true" usebox="none">
18308 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" topline="true" usebox="none">
18317 \begin_layout Plain Layout
18323 <cell alignment="center" valignment="top" topline="true" usebox="none">
18326 \begin_layout Plain Layout
18333 <row topspace="default">
18334 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18337 \begin_layout Plain Layout
18343 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18346 \begin_layout Plain Layout
18352 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18355 \begin_layout Plain Layout
18374 \begin_layout Standard
18378 \begin_layout Plain Layout
18394 \begin_layout Standard
18398 \begin_layout Plain Layout
18404 arrayrulewidth}{0.4pt}
18412 \begin_layout Section
18413 Table Width Calculation
18414 \begin_inset CommandInset label
18416 name "sec:Table-Width-Calculation"
18423 \begin_layout Standard
18424 For wide tables it is sometimes difficult to assure that the table does
18425 not protrude over the page margin.
18426 Setting a fixed width for every column of the table is the solution, but
18427 what amount of space is needed for each column?
18430 \begin_layout Standard
18432 \begin_inset Formula $W_{\mathrm{table}}$
18435 can be calculated: Every column has the width of the specified column width
18437 \begin_inset Formula $W_{\mathrm{column}}$
18440 (that the content of the column can consume) plus two times the separation
18441 between the column content and the column border (LaTeX length
18448 \begin_inset space \thinspace{}
18451 pt) plus the width of a border line (LaTeX length
18458 \begin_inset space \thinspace{}
18462 \begin_inset Formula $n$
18466 \begin_inset space ~
18469 columns have the same width, the table width is
18470 \begin_inset Formula
18472 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
18480 \begin_layout Standard
18481 The available width for a table is the space between the page margins or
18482 the width of a text column (for a two-column document) (LaTeX length
18489 If all table columns should have the same width and
18490 \begin_inset Formula $W_{\mathrm{table}}$
18494 \begin_inset space \thinspace{}
18500 \begin_inset Formula $W_{\mathrm{column}}$
18503 can easily be calculated.
18506 \begin_layout Standard
18507 To be able to perform calculations you need to load the LaTeX-package
18512 \begin_inset Index idx
18515 \begin_layout Plain Layout
18516 LaTeX-packages ! calc
18521 in the document preamble.
18522 To set the width in the table dialog you have to use the field
18527 The command scheme for this field is the same that is explained in section
18528 \begin_inset space ~
18532 \begin_inset CommandInset ref
18534 reference "sub:Multicolumn-Calculations"
18540 \begin_inset space \thinspace{}
18543 columns with an uniform width and centered text, enter there for each column
18547 \begin_layout Standard
18554 columnwidth-62.4pt)/5}
18557 \begin_layout Standard
18559 \begin_inset space \thinspace{}
18562 columns where 2 should have 0.75
18563 \begin_inset space ~
18566 times the width than the 3 others, the calculation is
18567 \begin_inset Formula
18569 \backslash\mbox{columnwidth} & =3\, W_{\mathrm{column}}+2\cdot0.75\, W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
18570 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
18571 & =4.5\, W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
18572 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
18580 \begin_layout Standard
18581 In the table therefore the command
18584 \begin_layout Standard
18591 columnwidth-62.4pt)/
18596 \begin_layout Standard
18597 is used for the wider columns and
18600 \begin_layout Standard
18607 columnwidth-62.4pt)/
18614 \begin_layout Standard
18615 for the smaller ones:
18618 \begin_layout Standard
18619 \begin_inset Tabular
18620 <lyxtabular version="3" rows="2" columns="5">
18621 <features tabularvalignment="middle">
18622 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
18623 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
18624 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
18625 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
18626 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
18628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18631 \begin_layout Plain Layout
18637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18640 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18649 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18658 \begin_layout Plain Layout
18664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18667 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18678 \begin_layout Plain Layout
18679 111111 1111111 111111 111111111 11111 11111 1111
18684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18687 \begin_layout Plain Layout
18693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18696 \begin_layout Plain Layout
18697 2222 22222 222222 222222222 2222222 22 22222
18702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18705 \begin_layout Plain Layout
18711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18714 \begin_layout Plain Layout
18715 333333 333333 333333 33333 3333333 333
18728 \begin_layout Section
18729 Table Customization
18730 \begin_inset Index idx
18733 \begin_layout Plain Layout
18734 Table Customization
18740 \begin_inset Index idx
18743 \begin_layout Plain Layout
18744 Table ! Customization
18752 \begin_layout Subsection
18754 \begin_inset CommandInset label
18756 name "sub:Row-Spacing"
18761 \begin_inset Index idx
18764 \begin_layout Plain Layout
18765 Table Customization ! Row Spacing
18773 \begin_layout Standard
18774 You can add vertical space to table rows in the
18778 tab of the table dialog.
18779 You find there three possibilities:
18782 \begin_layout Description
18784 \begin_inset space ~
18788 \begin_inset space ~
18791 row will add space above the characters of the table row.
18792 If the table is a formal table
18796 \begin_layout Plain Layout
18797 Formal tables are explained in section
18798 \begin_inset space ~
18802 \begin_inset CommandInset ref
18804 reference "sec:Formal-Tables"
18813 LyX will insert as default 0.5
18814 \begin_inset space \thinspace{}
18818 For normal tables the inserted space will unfortunately destroy the vertical
18819 table lines as in the following table:
18820 \begin_inset VSpace medskip
18824 \begin_inset Newline newline
18828 \begin_inset space \hspace*{}
18833 \begin_inset space \hfill{}
18837 \begin_inset Tabular
18838 <lyxtabular version="3" rows="3" columns="1">
18839 <features tabularvalignment="middle">
18840 <column alignment="center" valignment="top" width="0">
18842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18845 \begin_layout Plain Layout
18852 <row topspace="3mm">
18853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18856 \begin_layout Plain Layout
18858 \begin_inset space \thinspace{}
18861 mm space top of row
18868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18871 \begin_layout Plain Layout
18883 \begin_inset space \hfill{}
18887 \begin_inset space \hspace*{}
18892 \begin_inset VSpace medskip
18896 \begin_inset Newline newline
18899 So inserting space in the top of row for normal tables is only useful when
18900 you don't have vertical lines.
18903 \begin_layout Description
18905 \begin_inset space ~
18909 \begin_inset space ~
18912 row will add space below the characters of the table row.
18913 If the table is a formal table LyX will insert as default 0.5
18914 \begin_inset space \thinspace{}
18917 em space, for normal tables the default size is 2
18918 \begin_inset space \thinspace{}
18924 \begin_layout Description
18926 \begin_inset space ~
18929 rows adds space between the current and the following row.
18930 If the table is a formal table LyX will insert as default 0.5
18931 \begin_inset space \thinspace{}
18935 For normal tables the inserted space will unfortunately destroy the vertical
18936 table lines as in the following table:
18937 \begin_inset VSpace medskip
18941 \begin_inset Newline newline
18945 \begin_inset space \hspace*{}
18950 \begin_inset space \hfill{}
18954 \begin_inset Tabular
18955 <lyxtabular version="3" rows="3" columns="1">
18956 <features tabularvalignment="middle">
18957 <column alignment="center" valignment="top" width="0">
18959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18962 \begin_layout Plain Layout
18969 <row interlinespace="3mm">
18970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18973 \begin_layout Plain Layout
18974 \begin_inset Formula $\downarrow$
18978 \begin_inset space \thinspace{}
18981 mm space between row
18982 \begin_inset Formula $\downarrow$
18992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18995 \begin_layout Plain Layout
18996 \begin_inset Formula $\uparrow$
19000 \begin_inset space \thinspace{}
19003 mm space between row
19004 \begin_inset Formula $\uparrow$
19018 \begin_inset space \hfill{}
19022 \begin_inset space \hspace*{}
19027 \begin_inset VSpace medskip
19031 \begin_inset Newline newline
19034 So inserting space between rows for normal tables is only useful when you
19035 don't have vertical lines.
19038 \begin_layout Standard
19039 \begin_inset VSpace bigskip
19042 When you want to add extra height to all cells of all tables, you can do
19043 this with the following preamble lines:
19046 \begin_layout Standard
19051 @ifundefined{extrarowheight}
19052 \begin_inset Newline newline
19056 \begin_inset Phantom HPhantom
19059 \begin_layout Plain Layout
19062 \begin_inset space ~
19072 usepackage{array}}{}
19073 \begin_inset Newline newline
19080 extrarowheight}{height}
19083 \begin_layout Standard
19084 But this has the disadvantage that the cell texts are no longer exactly
19085 vertically centered.
19090 will be loaded automatically by LyX when you use self defined table formats.
19091 To avoid that it being loaded twice the command
19097 is used in the above command.)
19100 \begin_layout Standard
19101 If you are using font sizes larger than the normal size, the table borders
19102 are often too close to the letters.
19103 This can be corrected by inserting the command
19109 in TeX-Code at the beginning of a table row.
19111 \begin_inset space ~
19115 \begin_inset CommandInset ref
19117 reference "tab:Vertical-alignment-of"
19121 illustrates the effect.
19124 \begin_layout Standard
19126 \begin_inset Float table
19132 \begin_layout Plain Layout
19133 \begin_inset Caption
19135 \begin_layout Plain Layout
19136 \begin_inset CommandInset label
19138 name "tab:Vertical-alignment-of"
19142 Vertical alignment of text with large font sizes.
19150 \begin_layout Plain Layout
19151 \begin_inset space \hfill{}
19155 \begin_inset Float table
19160 \begin_layout Plain Layout
19161 \begin_inset Caption
19163 \begin_layout Plain Layout
19172 \begin_layout Plain Layout
19175 \begin_inset Tabular
19176 <lyxtabular version="3" rows="6" columns="1">
19177 <features tabularvalignment="middle">
19178 <column alignment="left" valignment="top" width="0">
19180 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19183 \begin_layout Plain Layout
19191 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19194 \begin_layout Plain Layout
19204 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19207 \begin_layout Plain Layout
19217 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19220 \begin_layout Plain Layout
19230 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19233 \begin_layout Plain Layout
19243 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19246 \begin_layout Plain Layout
19265 \begin_inset space \hfill{}
19269 \begin_inset Float table
19274 \begin_layout Plain Layout
19275 \begin_inset Caption
19277 \begin_layout Plain Layout
19278 Table using the command
19292 \begin_layout Plain Layout
19295 \begin_inset Tabular
19296 <lyxtabular version="3" rows="6" columns="1">
19297 <features tabularvalignment="middle">
19298 <column alignment="left" valignment="top" width="0">
19300 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19303 \begin_layout Plain Layout
19311 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19314 \begin_layout Plain Layout
19320 \begin_layout Plain Layout
19336 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19339 \begin_layout Plain Layout
19345 \begin_layout Plain Layout
19361 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19364 \begin_layout Plain Layout
19370 \begin_layout Plain Layout
19386 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19389 \begin_layout Plain Layout
19395 \begin_layout Plain Layout
19411 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19414 \begin_layout Plain Layout
19420 \begin_layout Plain Layout
19447 \begin_inset space \hfill{}
19458 \begin_layout Subsection
19459 Special Cell Alignment
19460 \begin_inset CommandInset label
19462 name "sub:Special-Cell-Alignment"
19467 \begin_inset Index idx
19470 \begin_layout Plain Layout
19471 Table Customization ! Special Cell Alignment
19479 \begin_layout Standard
19480 Sometimes it looks better when the cell entries of a column are aligned
19481 with a special character, e.
19482 \begin_inset space \thinspace{}
19486 \begin_inset space \space{}
19489 with the decimal separator as in Table
19490 \begin_inset space ~
19494 \begin_inset CommandInset ref
19496 reference "tab:Table-cells-align"
19501 This alignment is achieved by setting the cursor into the column and then
19502 either pressing the toolbar button
19503 \begin_inset Graphics
19504 filename ../images/tabular-feature_align-decimal.png
19506 scaleBeforeRotation
19510 or setting the alignment in the table settings to
19513 \begin_inset space ~
19517 \begin_inset space ~
19523 The alignment character can be a character of your choice and is specified
19524 in the table settings.
19527 \begin_layout Standard
19528 \begin_inset Float table
19534 \begin_layout Plain Layout
19535 \begin_inset Caption
19537 \begin_layout Plain Layout
19538 \begin_inset CommandInset label
19540 name "tab:Table-cells-align"
19544 Table cells of a column aligned with the decimal separator.
19552 \begin_layout Plain Layout
19554 \begin_inset Tabular
19555 <lyxtabular version="3" rows="4" columns="1">
19556 <features booktabs="true" tabularvalignment="middle">
19557 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
19559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19562 \begin_layout Plain Layout
19570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19573 \begin_layout Plain Layout
19581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19584 \begin_layout Plain Layout
19592 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19595 \begin_layout Plain Layout
19614 \begin_layout Standard
19615 \begin_inset Float table
19621 \begin_layout Plain Layout
19622 \begin_inset Caption
19624 \begin_layout Plain Layout
19625 \begin_inset CommandInset label
19627 name "tab:Table-align-operator"
19631 Table cells of a column aligned with the operators.
19639 \begin_layout Plain Layout
19641 \begin_inset Tabular
19642 <lyxtabular version="3" rows="4" columns="2">
19643 <features booktabs="true" tabularvalignment="middle">
19644 <column alignment="right" valignment="top" width="0pt">
19645 <column alignment="left" valignment="top" width="0pt" special="@{}l">
19647 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
19650 \begin_layout Plain Layout
19656 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19659 \begin_layout Plain Layout
19667 <cell alignment="center" valignment="top" usebox="none">
19670 \begin_layout Plain Layout
19671 \begin_inset Formula $12\,+$
19679 <cell alignment="center" valignment="top" usebox="none">
19682 \begin_layout Plain Layout
19683 \begin_inset Formula $\,6$
19693 <cell alignment="center" valignment="top" usebox="none">
19696 \begin_layout Plain Layout
19697 \begin_inset Formula $0\,-$
19705 <cell alignment="center" valignment="top" usebox="none">
19708 \begin_layout Plain Layout
19709 \begin_inset Formula $\,68$
19719 <cell alignment="center" valignment="top" usebox="none">
19722 \begin_layout Plain Layout
19723 \begin_inset Formula $-123\,/$
19731 <cell alignment="center" valignment="top" usebox="none">
19734 \begin_layout Plain Layout
19735 \begin_inset Formula $\,0$
19756 \begin_layout Standard
19757 For alignments at characters in formulas this method does not work because
19758 the field to specify the alignment character does not allow formulas.
19759 In this case one need to use the method from Table
19760 \begin_inset space ~
19764 \begin_inset CommandInset ref
19766 reference "tab:Table-align-operator"
19771 This table was created with a 4×2 table.
19772 The heading is a centered multicolumn.
19773 The first column is right-aligned and contains the first part including
19775 The second column is left aligned and contains the rest.
19776 A small space was added at the beginning of each cell of the second column
19777 to get the space that is usually around operators.
19778 To omit the space that is normally between two table columns, the following
19779 LaTeX-argument was used for the second column:
19782 \begin_layout Standard
19788 \begin_layout Standard
19790 \begin_inset space ~
19794 \begin_inset CommandInset ref
19796 reference "tab:Several-table-cell"
19800 shows some example alignments.
19801 For the alignment with the relation sign, a small space was added like
19802 for the second column of Table
19803 \begin_inset space ~
19807 \begin_inset CommandInset ref
19809 reference "tab:Table-align-operator"
19816 \begin_layout Standard
19817 \begin_inset Float table
19823 \begin_layout Plain Layout
19824 \begin_inset Caption
19826 \begin_layout Plain Layout
19827 \begin_inset CommandInset label
19829 name "tab:Several-table-cell"
19833 Several table cell alignments.
19841 \begin_layout Plain Layout
19843 \begin_inset Tabular
19844 <lyxtabular version="3" rows="4" columns="6">
19845 <features tabularvalignment="middle">
19846 <column alignment="right" valignment="top" width="0">
19847 <column alignment="left" valignment="top" width="0" special="@{}l">
19848 <column alignment="right" valignment="top" width="0">
19849 <column alignment="left" valignment="top" width="0" special="@{}l">
19850 <column alignment="right" valignment="top" width="0">
19851 <column alignment="left" valignment="top" width="0" special="@{}l">
19853 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19856 \begin_layout Plain Layout
19862 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19865 \begin_layout Plain Layout
19871 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
19874 \begin_layout Plain Layout
19880 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19883 \begin_layout Plain Layout
19889 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
19892 \begin_layout Plain Layout
19898 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19901 \begin_layout Plain Layout
19909 <cell alignment="center" valignment="top" usebox="none">
19912 \begin_layout Plain Layout
19918 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19921 \begin_layout Plain Layout
19923 \begin_inset space \thinspace{}
19931 <cell alignment="center" valignment="top" usebox="none">
19934 \begin_layout Plain Layout
19935 \begin_inset Formula $10\cdot$
19943 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19946 \begin_layout Plain Layout
19947 \begin_inset Formula $10^{\mbox{-}17}$
19955 <cell alignment="center" valignment="top" usebox="none">
19958 \begin_layout Plain Layout
19959 \begin_inset Formula $\Gamma(t)\propto$
19967 <cell alignment="center" valignment="top" usebox="none">
19970 \begin_layout Plain Layout
19971 \begin_inset Formula $\:\Upsilon(t)$
19981 <cell alignment="center" valignment="top" usebox="none">
19984 \begin_layout Plain Layout
19990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
19993 \begin_layout Plain Layout
19995 \begin_inset space \thinspace{}
20003 <cell alignment="center" valignment="top" usebox="none">
20006 \begin_layout Plain Layout
20007 \begin_inset Formula $5.78\cdot$
20015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20018 \begin_layout Plain Layout
20019 \begin_inset Formula $10^{7}$
20027 <cell alignment="center" valignment="top" usebox="none">
20030 \begin_layout Plain Layout
20031 \begin_inset Formula $A\ne$
20039 <cell alignment="center" valignment="top" usebox="none">
20042 \begin_layout Plain Layout
20043 \begin_inset Formula $\: B_{\mathrm{red}}$
20053 <cell alignment="center" valignment="top" usebox="none">
20056 \begin_layout Plain Layout
20062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20065 \begin_layout Plain Layout
20067 \begin_inset space \thinspace{}
20075 <cell alignment="center" valignment="top" usebox="none">
20078 \begin_layout Plain Layout
20080 \begin_inset Formula $33.5\cdot$
20088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
20091 \begin_layout Plain Layout
20092 \begin_inset Formula $10^{4}$
20100 <cell alignment="center" valignment="top" usebox="none">
20103 \begin_layout Plain Layout
20104 \begin_inset Formula $\sin(\alpha)\ge$
20112 <cell alignment="center" valignment="top" usebox="none">
20115 \begin_layout Plain Layout
20116 \begin_inset Formula $\:\sin(\beta)$
20137 \begin_layout Subsection
20138 Customized Cell/Column Format
20139 \begin_inset CommandInset label
20141 name "sub:Customized-Format"
20146 \begin_inset Index idx
20149 \begin_layout Plain Layout
20150 Table Customization ! Cell/Column Format
20158 \begin_layout Standard
20159 Calculating the required width for normal columns as described in section
20160 \begin_inset space ~
20164 \begin_inset CommandInset ref
20166 reference "sec:Table-Width-Calculation"
20170 or for spanned columns as described in section
20171 \begin_inset space ~
20175 \begin_inset CommandInset ref
20177 reference "sub:Multicolumn-Calculations"
20181 is very annoying if you have several tables where a calculation is necessary.
20182 To make life easier, you can define a cell/column format in the preamble,
20183 that can be used in all tables of the document.
20184 The format is defined with the command
20187 \begin_layout Standard
20192 newcolumntype{name of format}[number of arguments]{commands}
20195 \begin_layout Standard
20196 The format name may only consist of one letter.
20221 are predefined and cannot be used.
20222 But all letters are allowed as capitals.
20225 \begin_layout Standard
20226 \begin_inset VSpace medskip
20232 \begin_layout Standard
20233 For vertically and horizontally centered multicolumn cells with a fixed
20234 width you can define the cell format
20237 \begin_layout Standard
20242 newcolumntype{M}[1]{>{
20249 \begin_layout Standard
20256 avoids the problem of hyphenating the first word, as described in section
20257 \begin_inset space ~
20261 \begin_inset CommandInset ref
20263 reference "sub:Multiple-Lines-in"
20268 Now you can simply enter
20271 \begin_layout Standard
20277 \begin_layout Standard
20282 in the table dialog to create a multicolumn.
20285 \begin_layout Standard
20286 \begin_inset VSpace bigskip
20292 \begin_layout Standard
20293 For cells spanned by a multicolumn cell, you can define the format
20296 \begin_layout Standard
20301 newcolumntype{S}[2]{>{
20306 \begin_inset Newline newline
20310 \begin_inset Phantom HPhantom
20313 \begin_layout Plain Layout
20327 arrayrulewidth)*(1-#2))/#2}}
20330 \begin_layout Standard
20331 This format uses equation
20332 \begin_inset CommandInset ref
20338 to calculate the required width so that each spanned cell has the same
20342 \begin_layout Standard
20346 \begin_layout Standard
20349 S{width of multicolumn cell}{number of spanned columns}
20352 \begin_layout Standard
20353 as LaTeX-argument of the column.
20356 \begin_layout Standard
20357 \begin_inset VSpace bigskip
20363 \begin_layout Standard
20364 For colored columns, you can define
20367 \begin_layout Standard
20372 newcolumntype{K}[1]{>{
20379 \begin_layout Standard
20381 \begin_inset Quotes eld
20385 \begin_inset Quotes erd
20388 at the end creates a column with a flexible width whose text is horizontally
20393 \begin_layout Standard
20399 \begin_layout Standard
20403 \begin_layout Standard
20404 \begin_inset VSpace bigskip
20410 \begin_layout Standard
20412 \begin_inset space ~
20416 \begin_inset CommandInset ref
20418 reference "tab:Table-using-user-defined"
20422 use the LaTeX-arguments
20425 \begin_layout Standard
20431 \begin_layout Standard
20432 for the first column and the multicolumn,
20435 \begin_layout Standard
20441 \begin_layout Standard
20442 for the last column, and
20445 \begin_layout Standard
20451 \begin_layout Standard
20452 for the cells in the second column.
20455 \begin_layout Standard
20456 \begin_inset Float table
20462 \begin_layout Plain Layout
20463 \begin_inset Caption
20465 \begin_layout Plain Layout
20466 \begin_inset CommandInset label
20468 name "tab:Table-using-user-defined"
20472 Table using user-defined table formats
20480 \begin_layout Plain Layout
20482 \begin_inset Tabular
20483 <lyxtabular version="3" rows="3" columns="4">
20484 <features tabularvalignment="middle">
20485 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
20486 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
20487 <column alignment="center" valignment="middle" width="0">
20488 <column alignment="center" valignment="middle" width="0" special="K{red}">
20490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20493 \begin_layout Plain Layout
20494 verylongtablecellword
20499 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
20502 \begin_layout Plain Layout
20503 multiple lines multicolumn
20508 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20511 \begin_layout Plain Layout
20517 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20520 \begin_layout Plain Layout
20528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20531 \begin_layout Plain Layout
20537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20540 \begin_layout Plain Layout
20546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20549 \begin_layout Plain Layout
20555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20558 \begin_layout Plain Layout
20566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20569 \begin_layout Plain Layout
20575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20578 \begin_layout Plain Layout
20584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20587 \begin_layout Plain Layout
20593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20596 \begin_layout Plain Layout
20615 \begin_layout Subsection
20617 \begin_inset CommandInset label
20619 name "sub:Line-Thickness"
20624 \begin_inset Index idx
20627 \begin_layout Plain Layout
20628 Table Customization ! Line Thickness
20636 \begin_layout Standard
20637 The line thickness for all lines in a table can be adjusted with the length
20645 To set for example a line thickness of 1.5
20646 \begin_inset space \thinspace{}
20650 \begin_inset space ~
20654 \begin_inset CommandInset ref
20656 reference "tab:Table-with-1.5"
20660 , insert the command
20663 \begin_layout Standard
20670 arrayrulewidth}{1.5pt}
20673 \begin_layout Standard
20674 in TeX-Code before the table or table float.
20675 The changed thickness is valid for all subsequent tables.
20676 To use the default value again, set
20683 \begin_inset space \thinspace{}
20686 pt in TeX-Code after the table or table float.
20689 \begin_layout Standard
20693 \begin_layout Plain Layout
20699 arrayrulewidth}{1.5pt}
20705 \begin_inset Float table
20710 \begin_layout Plain Layout
20711 \begin_inset Caption
20713 \begin_layout Plain Layout
20714 \begin_inset CommandInset label
20716 name "tab:Table-with-1.5"
20721 \begin_inset space \thinspace{}
20732 \begin_layout Plain Layout
20734 \begin_inset Tabular
20735 <lyxtabular version="3" rows="3" columns="3">
20736 <features tabularvalignment="middle">
20737 <column alignment="center" valignment="top" width="0">
20738 <column alignment="center" valignment="top" width="0">
20739 <column alignment="center" valignment="top" width="0">
20741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20744 \begin_layout Plain Layout
20750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20753 \begin_layout Plain Layout
20759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20762 \begin_layout Plain Layout
20770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20773 \begin_layout Plain Layout
20779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20782 \begin_layout Plain Layout
20788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20791 \begin_layout Plain Layout
20799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20802 \begin_layout Plain Layout
20808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20811 \begin_layout Plain Layout
20817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20820 \begin_layout Plain Layout
20840 \begin_layout Plain Layout
20846 arrayrulewidth}{0.4pt}
20854 \begin_layout Standard
20855 \begin_inset VSpace bigskip
20858 To set the line thickness to 1.5
20859 \begin_inset space \thinspace{}
20862 pt only for horizontal lines, as in Table
20863 \begin_inset space ~
20867 \begin_inset CommandInset ref
20869 reference "tab:Table-with-horizontal"
20873 , insert these commands in TeX-Code before the table or table float:
20876 \begin_layout Standard
20886 \begin_inset Newline newline
20894 \begin_inset Newline newline
20903 arrayrulewidth 1.5pt}
20904 \begin_inset Newline newline
20915 arrayrulewidth 0.4pt}}
20918 \begin_layout Standard
20919 To return to the default line thickness, insert this command in TeX-Code
20920 after the table or table float:
20923 \begin_layout Standard
20935 \begin_layout Standard
20939 \begin_layout Plain Layout
20950 \begin_layout Plain Layout
20959 \begin_layout Plain Layout
20967 arrayrulewidth 1.5pt}
20970 \begin_layout Plain Layout
20980 arrayrulewidth 0.4pt}}
20986 \begin_inset Float table
20991 \begin_layout Plain Layout
20992 \begin_inset Caption
20994 \begin_layout Plain Layout
20995 \begin_inset CommandInset label
20997 name "tab:Table-with-horizontal"
21002 \begin_inset space \thinspace{}
21005 pt thick horizontal lines
21013 \begin_layout Plain Layout
21015 \begin_inset Tabular
21016 <lyxtabular version="3" rows="3" columns="3">
21017 <features tabularvalignment="middle">
21018 <column alignment="center" valignment="top" width="0">
21019 <column alignment="center" valignment="top" width="0">
21020 <column alignment="center" valignment="top" width="0">
21022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21025 \begin_layout Plain Layout
21031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21034 \begin_layout Plain Layout
21040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21043 \begin_layout Plain Layout
21051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21054 \begin_layout Plain Layout
21060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21063 \begin_layout Plain Layout
21069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21072 \begin_layout Plain Layout
21080 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21083 \begin_layout Plain Layout
21089 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21092 \begin_layout Plain Layout
21098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21101 \begin_layout Plain Layout
21121 \begin_layout Plain Layout
21137 \begin_layout Standard
21138 \begin_inset VSpace bigskip
21141 To set the line thickness to 1.5
21142 \begin_inset space \thinspace{}
21145 pt only for vertical lines, create the following column format in the document
21146 preamble, according to the description in section
21147 \begin_inset space ~
21151 \begin_inset CommandInset ref
21153 reference "sub:Customized-Format"
21160 \begin_layout Standard
21165 newcolumntype{V}{!{
21167 vrule width 1.5pt}}
21170 \begin_layout Standard
21172 \begin_inset space ~
21176 \begin_inset CommandInset ref
21178 reference "tab:Table-with-vertical"
21185 \begin_layout Standard
21191 \begin_layout Standard
21192 was used for the last column and
21195 \begin_layout Standard
21201 \begin_layout Standard
21202 for the other columns.
21205 \begin_layout Standard
21206 \begin_inset Float table
21211 \begin_layout Plain Layout
21212 \begin_inset Caption
21214 \begin_layout Plain Layout
21215 \begin_inset CommandInset label
21217 name "tab:Table-with-vertical"
21222 \begin_inset space \thinspace{}
21225 pt thick vertical lines
21233 \begin_layout Plain Layout
21235 \begin_inset Tabular
21236 <lyxtabular version="3" rows="3" columns="3">
21237 <features tabularvalignment="middle">
21238 <column alignment="center" valignment="top" width="0" special="Vc">
21239 <column alignment="center" valignment="top" width="0" special="Vc">
21240 <column alignment="center" valignment="top" width="0" special="VcV">
21242 <cell alignment="center" valignment="top" topline="true" usebox="none">
21245 \begin_layout Plain Layout
21251 <cell alignment="center" valignment="top" topline="true" usebox="none">
21254 \begin_layout Plain Layout
21260 <cell alignment="center" valignment="top" topline="true" usebox="none">
21263 \begin_layout Plain Layout
21271 <cell alignment="center" valignment="top" topline="true" usebox="none">
21274 \begin_layout Plain Layout
21280 <cell alignment="center" valignment="top" topline="true" usebox="none">
21283 \begin_layout Plain Layout
21289 <cell alignment="center" valignment="top" topline="true" usebox="none">
21292 \begin_layout Plain Layout
21300 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21303 \begin_layout Plain Layout
21309 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21312 \begin_layout Plain Layout
21318 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21321 \begin_layout Plain Layout
21340 \begin_layout Subsection
21342 \begin_inset Index idx
21345 \begin_layout Plain Layout
21346 Table Customization ! Dashed Lines
21354 \begin_layout Standard
21358 \begin_layout Plain Layout
21368 \begin_inset Note Note
21371 \begin_layout Plain Layout
21372 The following section will only be displayed when the LaTeX-package
21384 \begin_layout Standard
21385 \begin_inset Float table
21391 \begin_layout Plain Layout
21392 \begin_inset Caption
21394 \begin_layout Plain Layout
21395 \begin_inset CommandInset label
21397 name "tab:Table-with-dashed"
21401 Table with dashed lines
21409 \begin_layout Plain Layout
21411 \begin_inset Tabular
21412 <lyxtabular version="3" rows="5" columns="5">
21413 <features tabularvalignment="middle">
21414 <column alignment="center" valignment="top" width="0">
21415 <column alignment="center" valignment="top" width="0">
21416 <column alignment="center" valignment="top" width="0" special=":c">
21417 <column alignment="center" valignment="top" width="0">
21418 <column alignment="center" valignment="top" width="0">
21420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21423 \begin_layout Plain Layout
21429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21432 \begin_layout Plain Layout
21438 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21441 \begin_layout Plain Layout
21447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21450 \begin_layout Plain Layout
21456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21459 \begin_layout Plain Layout
21467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21470 \begin_layout Plain Layout
21476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21479 \begin_layout Plain Layout
21485 <cell alignment="center" valignment="top" topline="true" usebox="none">
21488 \begin_layout Plain Layout
21494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21497 \begin_layout Plain Layout
21503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21506 \begin_layout Plain Layout
21514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
21517 \begin_layout Plain Layout
21521 \begin_layout Plain Layout
21535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
21538 \begin_layout Plain Layout
21544 <cell alignment="center" valignment="top" usebox="none">
21547 \begin_layout Plain Layout
21553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
21556 \begin_layout Plain Layout
21562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
21565 \begin_layout Plain Layout
21573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21576 \begin_layout Plain Layout
21580 \begin_layout Plain Layout
21594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21597 \begin_layout Plain Layout
21603 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
21606 \begin_layout Plain Layout
21612 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
21615 \begin_layout Plain Layout
21621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21624 \begin_layout Plain Layout
21632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21635 \begin_layout Plain Layout
21641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21644 \begin_layout Plain Layout
21650 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
21653 \begin_layout Plain Layout
21659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21662 \begin_layout Plain Layout
21668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21671 \begin_layout Plain Layout
21690 \begin_layout Standard
21691 LyX does not natively support dashed lines, so you have to use TeX-Code.
21692 As a prerequisite the LaTeX-package
21697 \begin_inset Index idx
21700 \begin_layout Plain Layout
21701 LaTeX-packages ! arydshln
21706 must be loaded in the document preamble with the command
21709 \begin_layout Standard
21714 usepackage{arydshln}
21717 \begin_layout Standard
21718 To make a vertical line dashed, enter the colon
21719 \begin_inset Quotes eld
21723 \begin_inset Quotes erd
21726 together with the character for the horizontal alignment as LaTeX-argument
21727 in the table cell dialog.
21730 \begin_layout Standard
21731 For a horizontal dashed line add the command
21734 \begin_layout Standard
21742 \begin_layout Standard
21743 in TeX-Code as first element of the first cell in the table row.
21746 \begin_layout Standard
21747 For dashed multicolumn lines use the command
21750 \begin_layout Standard
21755 cdashline{line number
21760 \begin_layout Standard
21761 in TeX-Code as the first element of the first cell in the table row.
21762 If you have for example a multicolumn spanning columns 2 to 4 and you want
21763 to have a dashed line above, add the command
21766 \begin_layout Standard
21774 \begin_layout Standard
21775 as the first element of the first cell in the row of the multicolumn.
21778 \begin_layout Standard
21779 \begin_inset VSpace bigskip
21785 \begin_layout Standard
21787 \begin_inset space ~
21791 \begin_inset CommandInset ref
21793 reference "tab:Table-with-dashed"
21798 \begin_inset Quotes eld
21806 \begin_inset Quotes erd
21809 as LaTeX-argument of the third column.
21810 The TeX-Code command
21816 was inserted in the first cell of the third row and the TeX-Code command
21817 \begin_inset Newline newline
21826 was inserted in the first cell of the fourth row.
21829 \begin_layout Standard
21830 \begin_inset VSpace bigskip
21836 \begin_layout Standard
21837 Tables with dashed lines can also be colored as shown by Table
21838 \begin_inset space ~
21842 \begin_inset CommandInset ref
21844 reference "tab:Colored-table-with"
21851 \begin_layout Standard
21855 \begin_layout Plain Layout
21861 arrayrulewidth}{1pt}
21867 \begin_inset Note Note
21870 \begin_layout Plain Layout
21871 thicker lines for better visualization of the line color
21879 \begin_layout Standard
21883 \begin_layout Plain Layout
21887 dashgapcolor{green}
21893 \begin_inset Note Note
21896 \begin_layout Plain Layout
21897 color gaps between dashes green
21905 \begin_layout Standard
21909 \begin_layout Plain Layout
21920 \begin_layout Plain Layout
21929 \begin_layout Plain Layout
21933 arrayrulecolor{red}
21937 arrayrulecolor{black}}
21943 \begin_inset Note Note
21946 \begin_layout Plain Layout
21947 color horizontal, dashed lines red
21955 \begin_layout Standard
21959 \begin_layout Plain Layout
21970 \begin_layout Plain Layout
21979 \begin_layout Plain Layout
21983 arrayrulecolor{yellow}
21987 arrayrulecolor{black}}
21993 \begin_inset Note Note
21996 \begin_layout Plain Layout
21997 color partial horizontal, dashed lines yellow
22005 \begin_layout Standard
22006 \begin_inset Float table
22012 \begin_layout Plain Layout
22013 \begin_inset Caption
22015 \begin_layout Plain Layout
22016 \begin_inset CommandInset label
22018 name "tab:Colored-table-with"
22022 Colored table with dashed lines
22030 \begin_layout Plain Layout
22032 \begin_inset Tabular
22033 <lyxtabular version="3" rows="5" columns="5">
22034 <features tabularvalignment="middle">
22035 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
22036 <column alignment="center" valignment="top" width="0pt">
22037 <column alignment="center" valignment="top" width="0pt" special=":c">
22038 <column alignment="center" valignment="top" width="0">
22039 <column alignment="center" valignment="top" width="0">
22041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22044 \begin_layout Plain Layout
22050 <cell alignment="center" valignment="top" topline="true" usebox="none">
22053 \begin_layout Plain Layout
22059 <cell alignment="center" valignment="top" topline="true" usebox="none">
22062 \begin_layout Plain Layout
22068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22071 \begin_layout Plain Layout
22077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22080 \begin_layout Plain Layout
22088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22091 \begin_layout Plain Layout
22097 <cell alignment="center" valignment="top" topline="true" usebox="none">
22100 \begin_layout Plain Layout
22106 <cell alignment="center" valignment="top" topline="true" usebox="none">
22109 \begin_layout Plain Layout
22115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22118 \begin_layout Plain Layout
22124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22127 \begin_layout Plain Layout
22135 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22138 \begin_layout Plain Layout
22142 \begin_layout Plain Layout
22155 \begin_layout Plain Layout
22169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22172 \begin_layout Plain Layout
22178 <cell alignment="center" valignment="top" usebox="none">
22181 \begin_layout Plain Layout
22187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22190 \begin_layout Plain Layout
22196 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22199 \begin_layout Plain Layout
22207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22210 \begin_layout Plain Layout
22214 \begin_layout Plain Layout
22228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22231 \begin_layout Plain Layout
22237 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22240 \begin_layout Plain Layout
22246 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22249 \begin_layout Plain Layout
22255 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22258 \begin_layout Plain Layout
22266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22269 \begin_layout Plain Layout
22275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22278 \begin_layout Plain Layout
22284 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22287 \begin_layout Plain Layout
22293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22296 \begin_layout Plain Layout
22302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22305 \begin_layout Plain Layout
22309 \begin_layout Plain Layout
22336 \begin_layout Standard
22340 \begin_layout Plain Layout
22354 \begin_inset Note Note
22357 \begin_layout Plain Layout
22366 \begin_layout Standard
22370 \begin_layout Plain Layout
22384 \begin_inset Note Note
22387 \begin_layout Plain Layout
22396 \begin_layout Standard
22400 \begin_layout Plain Layout
22410 \begin_inset Note Note
22413 \begin_layout Plain Layout
22422 \begin_layout Standard
22426 \begin_layout Plain Layout
22432 arrayrulewidth}{0.4pt}
22438 \begin_inset Note Note
22441 \begin_layout Plain Layout
22450 \begin_layout Standard
22451 The coloring of lines, columns and lines works as decribed in section
22452 \begin_inset space ~
22456 \begin_inset CommandInset ref
22458 reference "sec:Colored-Tables"
22463 Coloring horizontal lines works analogically as described there as well,
22464 one only needs to replace in the commands
22488 ; so one uses the command
22491 \begin_layout Standard
22501 \begin_inset Newline newline
22509 \begin_inset Newline newline
22513 \begin_inset Phantom HPhantom
22516 \begin_layout Plain Layout
22517 \begin_inset space ~
22527 arrayrulecolor{red}
22531 arrayrulecolor{black}}
22534 \begin_layout Standard
22544 \begin_layout Standard
22554 \begin_inset Newline newline
22562 \begin_inset Newline newline
22566 \begin_inset Phantom HPhantom
22569 \begin_layout Plain Layout
22570 \begin_inset space ~
22580 arrayrulecolor{red}
22584 arrayrulecolor{black}}
22587 \begin_layout Standard
22588 To get back the black line color, one needs to insert the following commands
22589 as TeX-Code behind the table:
22592 \begin_layout Standard
22600 \begin_layout Standard
22612 \begin_layout Standard
22620 \begin_layout Standard
22632 \begin_layout Standard
22633 To color the gaps between the dashes the command
22636 \begin_layout Standard
22641 dashgapcolor{color}
22644 \begin_layout Standard
22645 can be used in front of a table as TeX-Code.
22646 color is hereby the name of a defined color.
22650 \begin_layout Standard
22658 \begin_layout Standard
22659 unsets the changes made by
22668 \begin_layout Standard
22669 \begin_inset Note Greyedout
22672 \begin_layout Plain Layout
22678 : If there are multiple commands in a cell, the command of
22682 needs to be the first one in the cell.
22688 \begin_inset space ~
22692 \begin_inset CommandInset ref
22694 reference "tab:Colored-table-with"
22718 \begin_layout Standard
22719 \begin_inset Note Greyedout
22722 \begin_layout Plain Layout
22732 must be loaded in the document preamble before the LaTeX-package
22737 \begin_inset Index idx
22740 \begin_layout Plain Layout
22741 LaTeX-packages ! colortbl
22754 \begin_layout Standard
22758 \begin_layout Plain Layout
22768 \begin_inset Note Note
22771 \begin_layout Plain Layout
22772 The following will be displayed when the LaTeX-package
22784 \begin_layout Standard
22785 You need to install the package
22789 to see the content of this section in the output.
22792 \begin_layout Standard
22796 \begin_layout Plain Layout
22808 \begin_layout Standard
22809 For more information about dashed lines see the documentation of
22814 \begin_inset CommandInset citation
22823 \begin_layout Chapter
22825 \begin_inset CommandInset label
22832 \begin_inset Index idx
22835 \begin_layout Plain Layout
22844 \begin_layout Section
22846 \begin_inset CommandInset label
22848 name "sec:FloatIntroduction"
22853 \begin_inset Index idx
22856 \begin_layout Plain Layout
22857 Floats ! Introduction
22865 \begin_layout Standard
22866 A float is a block of text associated with some sort of label, which doesn't
22867 have a fixed location.
22869 \begin_inset Quotes eld
22873 \begin_inset Quotes erd
22876 forward or backward a page or two, to wherever it fits best.
22884 \begin_inset space ~
22889 are also floats, because they can float to the next page when there are
22890 too many notes on the page.
22893 \begin_layout Standard
22894 Floats allow a high quality layout.
22895 Images and tables can be spread evenly to the pages to avoid white space
22896 and pages without text.
22897 As the floating often destroys the context between the text and the image/table
22898 , every float can be referenced in the text.
22899 Floats are therefore numbered.
22900 Referencing is described in section
22901 \begin_inset space ~
22905 \begin_inset CommandInset ref
22907 reference "sec:Referencing-Floats"
22914 \begin_layout Standard
22915 To insert a float, use the menu
22917 Insert\SpecialChar \menuseparator
22925 inset, a box with a label.
22926 The label will automatically be translated to the document language in
22928 After the label you can insert the caption text.
22929 The image or table is inserted above or below the caption in a separate
22930 paragraph within the float.
22931 More about the caption placement is contained in section
22932 \begin_inset space ~
22936 \begin_inset CommandInset ref
22938 reference "sec:Caption-Placement"
22943 To keep your LyX-document readable, you can open and close the float box
22944 by left-clicking on the box label.
22945 A closed float box looks like this:
22946 \begin_inset Graphics
22947 filename clipart/floatQt4.png
22949 scaleBeforeRotation
22953 – a gray button with a red label.
22956 \begin_layout Standard
22957 It is recommended that you insert floats as a separate standard paragraph
22958 to avoid possible LaTeX-errors that can occur when the surrounding text
22959 is specially formatted.
22962 \begin_layout Standard
22963 Existing figures or tables can be put into a float by highlighting them
22964 and then pressing the corresponding toolbar button for a new float.
22967 \begin_layout Section
22971 \begin_layout Standard
22972 Besides figure and table floats that are described in sections
22973 \begin_inset space ~
22977 \begin_inset CommandInset ref
22979 reference "sec:Figure-Floats"
22984 \begin_inset CommandInset ref
22986 reference "sec:Table-Floats"
22990 respectively, LyX offers the float types
22999 The latter are explained in sec.
23000 \begin_inset space \thinspace{}
23004 \begin_inset CommandInset ref
23006 reference "sec:Wrap-Floats"
23013 \begin_layout Subsection
23015 \begin_inset Index idx
23018 \begin_layout Plain Layout
23019 Floats ! Algorithms
23027 \begin_layout Standard
23028 \begin_inset Float algorithm
23034 \begin_layout Plain Layout
23035 \begin_inset Caption
23037 \begin_layout Plain Layout
23038 \begin_inset CommandInset label
23040 name "alg:Example-Algorithm-float"
23044 Example Algorithm float
23052 \begin_layout LyX-Code
23054 \begin_inset Newline newline
23057 Sum:= Sum + A(I); /*comment*/
23058 \begin_inset Newline newline
23062 \begin_inset VSpace -4mm
23073 \begin_layout Standard
23074 This float type is inserted with the menu
23076 Insert\SpecialChar \menuseparator
23077 Floats\SpecialChar \menuseparator
23081 It is used for program codes and descriptions of algorithms and can be
23082 seen as an alternative to program code listings that are explained in chapter
23083 \begin_inset space ~
23087 \begin_inset CommandInset ref
23089 reference "cha:Program-Code-Listings"
23094 A possible environment for algorithms is the
23098 , described in LyX's
23104 \begin_inset space ~
23108 \begin_inset CommandInset ref
23110 reference "alg:Example-Algorithm-float"
23114 is an example of an algorithm float where -4
23115 \begin_inset space \thinspace{}
23118 mm vertical space was added at the end of the float to have the bottom rule
23119 exactly below the last text line.
23122 \begin_layout Standard
23123 The float label is not automatically translated into the document language.
23124 If your document is not in English, you have to do this manually by adding
23125 the following line to the document preamble
23130 \begin_layout Standard
23135 floatname{algorithm}{your
23136 \begin_inset space ~
23142 \begin_layout Standard
23146 \begin_inset space ~
23152 \begin_inset Quotes eld
23160 \begin_inset Quotes erd
23166 \begin_layout Standard
23167 To insert the list of algorithms you can use the menu
23169 Insert\SpecialChar \menuseparator
23171 \begin_inset space \thinspace{}
23175 \begin_inset space \thinspace{}
23178 TOC\SpecialChar \menuseparator
23181 when your document has the same language as LyX's menu names.
23182 In other cases use this command in TeX-Code instead:
23185 \begin_layout Standard
23190 listof{algorithm}{your
23191 \begin_inset space ~
23197 \begin_layout Standard
23201 \begin_inset space ~
23207 \begin_inset Quotes eld
23215 \begin_inset Quotes erd
23221 \begin_layout Standard
23222 Algorithm floats are not by default numbered in the scheme
23223 \begin_inset Quotes eld
23227 \begin_inset Quotes erd
23230 as is the case for table and figure floats in many document-classes.
23231 To number algorithm floats in the same scheme, add this command to your
23235 \begin_layout Standard
23240 numberwithin{algorithm}{chapter}
23243 \begin_layout Standard
23244 To be able to use the command
23253 \begin_inset space ~
23258 in the document settings the option
23261 \begin_inset space ~
23265 \begin_inset space ~
23269 \begin_inset space ~
23277 \begin_layout Section
23279 \begin_inset Index idx
23282 \begin_layout Plain Layout
23291 \begin_layout Standard
23292 Floats are usually numbered either independently from the sections the floats
23293 are in, or in the scheme
23294 \begin_inset Quotes eld
23298 \begin_inset Quotes erd
23302 \begin_inset Quotes eld
23306 \begin_inset Quotes erd
23310 This depends on the document class used.
23313 \begin_layout Standard
23314 To change section-independent numbering, you can use this command in the
23318 \begin_layout Standard
23330 \begin_layout Standard
23337 is the command that prints the table number, for figure floats, the command
23351 in the command above prints the table number as small roman number.
23354 \begin_layout Standard
23355 To change the numbering scheme for example to
23356 \begin_inset Quotes eld
23360 \begin_inset Quotes erd
23363 , use this command in the preamble:
23366 \begin_layout Standard
23371 numberwithin{table}{subsection}
23374 \begin_layout Standard
23375 To be able to use the command
23384 \begin_inset space ~
23389 in the document settings the option
23392 \begin_inset space ~
23396 \begin_inset space ~
23400 \begin_inset space ~
23408 \begin_layout Standard
23409 Please also have a look at section
23410 \begin_inset space ~
23414 \begin_inset CommandInset ref
23416 reference "sub:Footnote-Numbering"
23420 for the details and important notes about the numbering commands.
23423 \begin_layout Section
23425 \begin_inset CommandInset label
23427 name "sec:Referencing-Floats"
23432 \begin_inset Index idx
23435 \begin_layout Plain Layout
23436 Floats ! References
23442 \begin_inset Index idx
23445 \begin_layout Plain Layout
23446 References ! to Floats
23454 \begin_layout Standard
23455 To reference a float, insert a label into its caption using the menu
23457 Insert\SpecialChar \menuseparator
23460 or the toolbar button
23471 A grey label box like this one:
23472 \begin_inset Graphics
23473 filename clipart/labelQt4.png
23475 scaleBeforeRotation
23479 will be inserted and the label window pops up asking for the label text.
23480 LyX offers as text the first words of the caption with a prefix.
23481 The prefix depends on the float type, e.
23482 \begin_inset space \thinspace{}
23486 \begin_inset space \space{}
23489 for figure floats the prefix will be "
23496 \begin_layout Standard
23497 The label is used as anchor and name for the reference.
23498 You can refer to the label using the menu
23500 Insert\SpecialChar \menuseparator
23503 or the toolbar button
23508 arg "dialog-show-new-inset ref"
23514 A grey cross-reference box like this one:
23515 \begin_inset Graphics
23516 filename clipart/referenceQt4.png
23518 scaleBeforeRotation
23522 will be inserted and the cross-reference window appear showing all labels
23524 If you have multiple LyX-documents opened, choose the one you are working
23525 on from the drop-list at the top of the dialog.
23526 You can now sort the labels alphabetically and then choose one.
23527 At the position of the cross-reference box the float number will appear
23531 \begin_layout Standard
23532 It is recommended that you use a protected space between the cross-reference
23533 name and its number to avoid line breaks between them.
23534 If a cross-reference refers to a non-existing label, you will see two question
23535 marks in the output instead of the reference.
23538 \begin_layout Standard
23539 You can change labels at any time by clicking on the label box.
23540 References to the changed label will automatically change its link to the
23541 new label text, so that you don't need to take care about this.
23544 \begin_layout Standard
23548 \begin_inset space ~
23552 \begin_inset space ~
23557 in the cross-reference window sets the cursor before the referred label.
23558 The button text changes then to Go
23559 \begin_inset space ~
23562 Back and you can use it to set the cursor back to the cross-reference.
23563 Right-clicking on a cross-reference box also sets the cursor before the
23564 referenced label but without the possibility of going back.
23567 \begin_layout Subsection
23568 Cross-Reference Formats
23569 \begin_inset CommandInset label
23571 name "sub:Cross-Reference-Formats"
23576 \begin_inset Index idx
23579 \begin_layout Plain Layout
23580 References ! Formats
23588 \begin_layout Standard
23589 There are six varieties of cross-references:
23592 \begin_layout Description
23593 <reference>: prints the float number, this is the default:
23594 \begin_inset CommandInset ref
23596 reference "fig:Two-distorted-images"
23603 \begin_layout Description
23604 (<reference>): prints the float number within two parentheses, this is the
23605 style normally used to reference formulas, especially when the reference
23607 \begin_inset Quotes eld
23611 \begin_inset Quotes erd
23615 \begin_inset CommandInset ref
23624 \begin_layout Description
23625 <page>: prints the page number: Page
23626 \begin_inset space ~
23630 \begin_inset CommandInset ref
23631 LatexCommand pageref
23632 reference "fig:Two-distorted-images"
23639 \begin_layout Description
23641 \begin_inset space ~
23645 \begin_inset space ~
23648 <page>: prints the text "on page" and the page number:
23649 \begin_inset CommandInset ref
23650 LatexCommand vpageref
23651 reference "fig:Two-distorted-images"
23658 \begin_layout Description
23660 \begin_inset space ~
23664 \begin_inset space ~
23668 \begin_inset space ~
23671 <page>: prints the float number, the text "on page", and the page number:
23673 \begin_inset CommandInset ref
23675 reference "fig:Two-distorted-images"
23682 \begin_layout Description
23684 \begin_inset space ~
23687 reference: prints a self-defined cross-reference format.
23688 \begin_inset Newline newline
23692 \begin_inset Note Greyedout
23695 \begin_layout Plain Layout
23700 This feature is only available when you have the LaTeX-package
23709 \begin_inset Index idx
23712 \begin_layout Plain Layout
23713 LaTeX-packages ! prettyref
23719 \begin_inset Index idx
23722 \begin_layout Plain Layout
23723 LaTeX-packages ! refstyle
23734 \begin_inset Newline newline
23737 You can select which LaTeX-package should be used for this feature by setting
23740 Use refstyle (not prettyref) for cross-references
23744 Document\SpecialChar \menuseparator
23745 Settings\SpecialChar \menuseparator
23749 The format is specified by adding the command
23761 (refstyle) to the preamble of the document.
23762 For example redefining all references to figures (which have the label
23764 \begin_inset Quotes eld
23772 \begin_inset Quotes erd
23775 ) can be done with this command
23776 \begin_inset Newline newline
23783 newref{fig}{refcmd={Image on page
23788 \begin_inset Newline newline
23791 For more information about the format, have a look at the package documentations
23793 \begin_inset CommandInset citation
23795 key "prettyref,refstyle"
23802 \begin_layout Description
23804 \begin_inset space ~
23807 reference: prints the caption of the reference:
23808 \begin_inset CommandInset ref
23809 LatexCommand nameref
23810 reference "fig:Two-distorted-images"
23817 \begin_layout Standard
23822 will not print the page number if the label is on the previous, the same,
23825 \begin_inset space \thinspace{}
23829 \begin_inset space \space{}
23833 \begin_inset Quotes eld
23841 \begin_inset Quotes erd
23847 <reference> on page <page>
23849 will not print anything about the page if the label is on the same page.
23852 \begin_layout Standard
23853 The number and current page of the part of the document referred to in the
23854 output is automatically calculated by LaTeX.
23855 The varieties are adjusted in the field
23859 of the cross-reference window that appears when you click on the cross-referenc
23863 \begin_layout Standard
23864 \begin_inset Note Greyedout
23867 \begin_layout Plain Layout
23872 It is recommended to use the LaTeX-package
23877 \begin_inset Index idx
23880 \begin_layout Plain Layout
23881 LaTeX-packages ! refstyle
23891 \begin_inset Index idx
23894 \begin_layout Plain Layout
23895 LaTeX-packages ! prettyref
23900 does not know all of LyX's possible label shortcuts
23904 \begin_layout Plain Layout
23905 \begin_inset Quotes eld
23909 \begin_inset Quotes erd
23912 is for example LyX's shortcut for labels in figure captions.
23917 and is not internationalized.
23925 \begin_layout Standard
23926 \begin_inset Note Greyedout
23929 \begin_layout Plain Layout
23934 Due to a bug in the LaTeX-package
23938 version 1.4w, some cross-reference formats will cause LaTeX errors for document
23939 languages that make the period character active (like French).
23940 For a workaround, see
23941 \begin_inset Newline newline
23945 \begin_inset CommandInset href
23947 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
23959 \begin_layout Subsection
23960 Automatic Reference Naming
23961 \begin_inset Index idx
23964 \begin_layout Plain Layout
23965 References ! Automatic Reference Naming
23973 \begin_layout Standard
23979 \begin_inset Index idx
23982 \begin_layout Plain Layout
23983 LaTeX-packages ! hyperref
23988 , that is enabled in the
23996 dialog, provides a very useful feature that cross-references automatically
23997 include the name of the referenced floats (or text parts like
24002 So you will save having to write e.
24003 \begin_inset space \thinspace{}
24007 \begin_inset space \space{}
24011 \begin_inset Quotes eld
24015 \begin_inset Quotes erd
24018 before every reference to a figure.
24019 To use this feature, enable
24023 and insert this line to the LaTeX preamble:
24026 \begin_layout Standard
24042 \begin_layout Standard
24043 When you prefer other reference names than the default ones, for example
24044 you want instead of
24045 \begin_inset Quotes eld
24049 \begin_inset Quotes erd
24053 \begin_inset Quotes eld
24057 \begin_inset space \thinspace{}
24061 \begin_inset Quotes eld
24064 , you can redefine the name by inserting this in the preamble:
24067 \begin_layout Standard
24078 sectionautorefname}
24079 \begin_inset Newline newline
24083 \begin_inset Phantom HPhantom
24086 \begin_layout Plain Layout
24089 \begin_inset space ~
24102 \begin_layout Standard
24103 When you are using another document language than English, replace
24104 \begin_inset Newline newline
24119 , where *** is the name of the language used.
24122 \begin_layout Standard
24123 To get automatic names, but not for certain reference types, for example
24124 not for equations, use this preamble code:
24127 \begin_layout Standard
24135 \begin_inset Newline newline
24145 \begin_inset Newline newline
24156 equationautorefname}
24157 \begin_inset Newline newline
24161 \begin_inset Phantom HPhantom
24164 \begin_layout Plain Layout
24167 \begin_inset space ~
24182 \begin_layout Standard
24183 More about this topic can be found in
24188 \begin_inset CommandInset citation
24197 \begin_layout Standard
24198 \begin_inset Note Greyedout
24201 \begin_layout Plain Layout
24206 Automatic reference naming cannot be used when you use cross-references
24210 \begin_inset space ~
24215 style, as described in section
24216 \begin_inset space ~
24220 \begin_inset CommandInset ref
24222 reference "sub:Cross-Reference-Formats"
24234 \begin_layout Standard
24239 manual is an example where automatic reference naming is used.
24242 \begin_layout Subsection
24244 \begin_inset CommandInset label
24246 name "sub:Reference-Position"
24251 \begin_inset Index idx
24254 \begin_layout Plain Layout
24255 References ! Reference Position
24263 \begin_layout Standard
24269 \begin_inset Index idx
24272 \begin_layout Plain Layout
24273 LaTeX-packages ! hyperref
24286 dialog to link cross-references in the output, you will see that clicking
24287 on an image float reference jumps to the image label.
24288 The caption will be the first text part on the screen, so that you cannot
24289 see the image without scrolling.
24290 This is because the reference link anchor is placed at the position of
24292 With the use of the package
24297 \begin_inset Index idx
24300 \begin_layout Plain Layout
24301 LaTeX-packages ! hypcap
24306 , which is part of the LaTeX-package
24311 \begin_inset Index idx
24314 \begin_layout Plain Layout
24315 LaTeX-packages ! oberdiek
24320 , the link anchor is placed at the beginning of a float.
24321 To use this feature for figure floats, load
24325 in the document preamble with the line
24328 \begin_layout Standard
24333 usepackage[figure]{hypcap}
24336 \begin_layout Standard
24341 for all float types but this is not recommended for stability reasons.
24342 For more information, have a look at
24347 \begin_inset CommandInset citation
24356 \begin_layout Standard
24357 \begin_inset Note Greyedout
24360 \begin_layout Plain Layout
24369 has no effect on references to subfigures.
24377 \begin_layout Section
24379 \begin_inset CommandInset label
24381 name "sec:Float-Placement"
24386 \begin_inset Index idx
24389 \begin_layout Plain Layout
24398 \begin_layout Standard
24399 Right-clicking on a float-box opens a dialog where you can alter the placement
24400 options that LaTeX uses for positioning the float.
24401 \begin_inset Newline newline
24407 \begin_inset space ~
24412 is only useful for two-column documents: If you select it, the float will
24413 span both columns on the page instead of being confined to just one.
24414 \begin_inset Newline newline
24420 \begin_inset space ~
24425 is used to rotate floats, see section
24426 \begin_inset CommandInset ref
24428 reference "sec:Rotated-Floats"
24435 \begin_layout Standard
24436 You can use one ore more of the following options in the float dialog to
24437 set the placement for a particular float when you uncheck the option
24440 \begin_inset space ~
24444 \begin_inset space ~
24452 \begin_layout Description
24454 \begin_inset space ~
24458 \begin_inset space ~
24461 possible try to place the float on the position where it has been inserted
24464 \begin_layout Description
24466 \begin_inset space ~
24470 \begin_inset space ~
24473 page try to place the float at the top of the current page
24476 \begin_layout Description
24478 \begin_inset space ~
24482 \begin_inset space ~
24485 page try to place the float at the bottom of the current page
24488 \begin_layout Description
24490 \begin_inset space ~
24494 \begin_inset space ~
24497 floats try to place the float on its own page
24500 \begin_layout Standard
24501 The order of the above option is
24506 That means, if you use the default placement, LaTeX will first try out
24510 \begin_inset space ~
24514 \begin_inset space ~
24522 \begin_inset space ~
24526 \begin_inset space ~
24531 , and then the others.
24532 If you do not use the default, LaTeX will try only the checked options
24533 but in the same order.
24535 \begin_inset space ~
24538 placements are possible the procedure is internally repeated but it is tried
24539 to put the float on the following page.
24542 \begin_layout Standard
24543 By default, each option has its own rules:
24546 \begin_layout Labeling
24547 \labelwidthstring 00.00.0000
24551 \begin_inset space ~
24555 \begin_inset space ~
24560 only floats occupying less than 70
24561 \begin_inset space \thinspace{}
24564 % of the page can be placed at the top of a page (
24573 \begin_layout Labeling
24574 \labelwidthstring 00.00.0000
24578 \begin_inset space ~
24582 \begin_inset space ~
24587 : only floats occupying less than 30
24588 \begin_inset space \thinspace{}
24591 % of the page can be placed at the bottom of a page.
24601 \begin_layout Labeling
24602 \labelwidthstring 00.00.0000
24606 \begin_inset space ~
24610 \begin_inset space ~
24615 : only if more than 50
24616 \begin_inset space \thinspace{}
24619 % of the page are occupied by floats, several floats can be set together
24630 \begin_layout Standard
24631 If you don't like these rules, you can ignore them by using the additional
24635 \begin_inset space ~
24639 \begin_inset space ~
24645 \begin_inset Newline newline
24648 You can also redefine the rules with LaTeX-commands that are given in parenthese
24649 s after the rules description above.
24650 To increase for example the often too small default of the bottom-rule
24652 \begin_inset space \thinspace{}
24655 % of the page, add this line to your document preamble:
24658 \begin_layout Standard
24665 bottomfraction}{0.5}
24668 \begin_layout Standard
24669 Sometimes you might need, under all circumstances, a float to be placed
24670 exactly at the position where it is inserted.
24671 For this case you can use the option
24674 \begin_inset space ~
24680 Use this option very rarely and only if the document is almost ready to
24681 be printed, because the float is then no longer able to
24682 \begin_inset Quotes eld
24686 \begin_inset Quotes erd
24689 when you change your document and this will often destroy the page layout.
24692 \begin_layout Standard
24693 There are no placement options for text wrap floats, because they are always
24694 surrounded by the text of a certain paragraph.
24695 \begin_inset VSpace bigskip
24701 \begin_layout Standard
24702 Sometimes you have the problem that a float is placed at the top of a page
24703 while its corresponding section starts at the middle of the page, so that
24704 the reader could think the float is part of the previous section.
24705 To avoid this the LaTeX-command
24712 It suppresses a given float placement for the page where it is inserted
24713 and can therefore be used to avoid floats being set before a section starts.
24714 To get this, add these commands to your document preamble:
24717 \begin_layout Standard
24727 \begin_inset Newline newline
24741 \begin_layout Standard
24742 You can define the same for all section headings, like chapters and subsections.
24743 This definition is not recommended to be used for small text parts like
24744 subsubsections because LaTeX may then have problems finding a suitable
24748 \begin_layout Standard
24749 \begin_inset VSpace bigskip
24752 In some cases it is required to have all figures/tables at the end of the
24754 For this purpose the LaTeX-package
24759 \begin_inset Index idx
24762 \begin_layout Plain Layout
24763 LaTeX-packages ! endfloat
24769 It puts all figure and table floats at the end of the document into their
24771 At the original float position a text hint like
24772 \begin_inset Quotes eld
24778 \begin_inset space ~
24784 \begin_inset Quotes erd
24788 The endfloat-package is loaded in the preamble with the line
24791 \begin_layout Standard
24796 usepackage[options]{endfloat}
24799 \begin_layout Standard
24800 There are various package options to format the created figure/table sections.
24801 For more information we refer to the
24806 \begin_inset CommandInset citation
24813 \begin_inset Newline newline
24817 \begin_inset Note Greyedout
24820 \begin_layout Plain Layout
24825 doesn't provide an automatic translation for the text hint, you have to
24826 do this manually, see section
24827 \begin_inset space ~
24831 \begin_inset CommandInset citation
24843 \begin_inset Newline newline
24847 \begin_inset Note Greyedout
24850 \begin_layout Plain Layout
24855 There is currently a bug in
24859 when the caption contains a German
24860 \begin_inset Quotes eld
24864 \begin_inset Quotes erd
24868 Use in this case the command
24869 \begin_inset Quotes eld
24879 \begin_inset Quotes erd
24882 in TeX-Code instead of
24883 \begin_inset Quotes eld
24887 \begin_inset Quotes erd
24898 \begin_layout Standard
24899 \begin_inset VSpace bigskip
24902 For more details about float placements, have a look at LaTeX books,
24903 \begin_inset CommandInset citation
24905 key "latexcompanion,latexguide,latexbook"
24912 \begin_layout Section
24914 \begin_inset CommandInset label
24916 name "sec:Rotated-Floats"
24921 \begin_inset Index idx
24924 \begin_layout Plain Layout
24933 \begin_layout Standard
24934 Especially for wide tables you might have floats rotated.
24935 To rotate a whole float including the caption, right-click on the float-box
24939 \begin_inset space ~
24947 \begin_layout Standard
24948 Rotated floats are always placed on a page of their own (or column of their
24949 own; in case you have a multi-column document).
24950 You can let them span several columns using the float settings option
24953 \begin_inset space ~
24959 Floats are rotated so that you can read them from the outside margin.
24960 To force a certain rotation direction for all pages, you can add either
24969 to the document class options.
24972 \begin_layout Standard
24973 Referencing rotated floats is the same as for normal floats, the caption
24974 format is also the same: Table
24975 \begin_inset space ~
24979 \begin_inset CommandInset ref
24981 reference "tab:Rotated-table"
24985 is an example of a rotated table float.
24988 \begin_layout Standard
24989 \begin_inset Note Greyedout
24992 \begin_layout Plain Layout
24997 Not all DVI-viewers are able to display rotated floats.
25005 \begin_layout Standard
25006 \begin_inset Float table
25011 \begin_layout Plain Layout
25012 \begin_inset Caption
25014 \begin_layout Plain Layout
25015 \begin_inset CommandInset label
25017 name "tab:Rotated-table"
25029 \begin_layout Plain Layout
25031 \begin_inset Tabular
25032 <lyxtabular version="3" rows="1" columns="5">
25033 <features tabularvalignment="middle">
25034 <column alignment="center" valignment="top" width="0">
25035 <column alignment="center" valignment="top" width="0">
25036 <column alignment="center" valignment="top" width="0">
25037 <column alignment="center" valignment="top" width="0">
25038 <column alignment="center" valignment="top" width="0">
25040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25043 \begin_layout Plain Layout
25049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25052 \begin_layout Plain Layout
25058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25061 \begin_layout Plain Layout
25067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25070 \begin_layout Plain Layout
25076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25079 \begin_layout Plain Layout
25098 \begin_layout Section
25100 \begin_inset Index idx
25103 \begin_layout Plain Layout
25112 \begin_layout Standard
25113 Subfloats are for example used when a figure consists of several images.
25114 They are created by inserting a float into an existing float.
25115 The placement of the subfloats can be controlled in the same way as for
25116 paragraphs as shown in table
25117 \begin_inset space ~
25121 \begin_inset CommandInset ref
25123 reference "tab:Two-subtables-side"
25128 \begin_inset CommandInset ref
25130 reference "tab:Two-subtables-upon"
25137 \begin_layout Standard
25138 Referencing subfloats works as for normal floats: Table
25139 \begin_inset space ~
25143 \begin_inset CommandInset ref
25145 reference "tab:This-is-subtable-a"
25150 \begin_inset CommandInset ref
25152 reference "tab:This-is-subtable-b"
25156 are subtables of table
25157 \begin_inset space ~
25161 \begin_inset CommandInset ref
25163 reference "tab:Two-subtables-side"
25170 \begin_layout Standard
25171 \begin_inset Float table
25176 \begin_layout Plain Layout
25177 \begin_inset Caption
25179 \begin_layout Plain Layout
25180 \begin_inset CommandInset label
25182 name "tab:Two-subtables-side"
25186 Two subtables placed side by side.
25194 \begin_layout Plain Layout
25196 \begin_inset space \hfill{}
25200 \begin_inset Float table
25205 \begin_layout Plain Layout
25206 \begin_inset Caption
25208 \begin_layout Plain Layout
25209 \begin_inset CommandInset label
25211 name "tab:This-is-subtable-a"
25215 This is subtable a.
25223 \begin_layout Plain Layout
25225 \begin_inset Tabular
25226 <lyxtabular version="3" rows="1" columns="5">
25227 <features tabularvalignment="middle">
25228 <column alignment="center" valignment="top" width="0">
25229 <column alignment="center" valignment="top" width="0">
25230 <column alignment="center" valignment="top" width="0">
25231 <column alignment="center" valignment="top" width="0">
25232 <column alignment="center" valignment="top" width="0">
25234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25237 \begin_layout Plain Layout
25243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25246 \begin_layout Plain Layout
25252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25255 \begin_layout Plain Layout
25261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25264 \begin_layout Plain Layout
25270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25273 \begin_layout Plain Layout
25290 \begin_inset space \hfill{}
25294 \begin_inset Float table
25299 \begin_layout Plain Layout
25300 \begin_inset Caption
25302 \begin_layout Plain Layout
25303 \begin_inset CommandInset label
25305 name "tab:This-is-subtable-b"
25309 This is subtable b.
25317 \begin_layout Plain Layout
25319 \begin_inset Tabular
25320 <lyxtabular version="3" rows="1" columns="5">
25321 <features tabularvalignment="middle">
25322 <column alignment="center" valignment="top" width="0">
25323 <column alignment="center" valignment="top" width="0">
25324 <column alignment="center" valignment="top" width="0">
25325 <column alignment="center" valignment="top" width="0">
25326 <column alignment="center" valignment="top" width="0">
25328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25331 \begin_layout Plain Layout
25337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25340 \begin_layout Plain Layout
25346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25349 \begin_layout Plain Layout
25355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25358 \begin_layout Plain Layout
25364 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25367 \begin_layout Plain Layout
25384 \begin_inset space \hfill{}
25395 \begin_layout Standard
25396 \begin_inset Float table
25401 \begin_layout Plain Layout
25402 \begin_inset Caption
25404 \begin_layout Plain Layout
25405 \begin_inset CommandInset label
25407 name "tab:Two-subtables-upon"
25411 Two subtables placed one above the other.
25412 (a) table with 4 cells, (b) table with 5 cells.
25420 \begin_layout Plain Layout
25422 \begin_inset Float table
25427 \begin_layout Plain Layout
25428 \begin_inset Caption
25430 \begin_layout Plain Layout
25439 \begin_layout Plain Layout
25441 \begin_inset Tabular
25442 <lyxtabular version="3" rows="1" columns="4">
25443 <features tabularvalignment="middle">
25444 <column alignment="center" valignment="top" width="0">
25445 <column alignment="center" valignment="top" width="0">
25446 <column alignment="center" valignment="top" width="0">
25447 <column alignment="center" valignment="top" width="0">
25449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25452 \begin_layout Plain Layout
25458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25461 \begin_layout Plain Layout
25467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25470 \begin_layout Plain Layout
25476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25479 \begin_layout Plain Layout
25498 \begin_layout Plain Layout
25500 \begin_inset Float table
25505 \begin_layout Plain Layout
25506 \begin_inset Caption
25508 \begin_layout Plain Layout
25517 \begin_layout Plain Layout
25519 \begin_inset Tabular
25520 <lyxtabular version="3" rows="1" columns="5">
25521 <features tabularvalignment="middle">
25522 <column alignment="center" valignment="top" width="0">
25523 <column alignment="center" valignment="top" width="0">
25524 <column alignment="center" valignment="top" width="0">
25525 <column alignment="center" valignment="top" width="0">
25526 <column alignment="center" valignment="top" width="0">
25528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25531 \begin_layout Plain Layout
25537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25540 \begin_layout Plain Layout
25546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25549 \begin_layout Plain Layout
25555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25558 \begin_layout Plain Layout
25564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25567 \begin_layout Plain Layout
25591 \begin_layout Section
25592 Floats Side by Side
25593 \begin_inset Index idx
25596 \begin_layout Plain Layout
25597 Floats ! Side by side
25605 \begin_layout Standard
25606 To place floats side by side, as in Figures
25607 \begin_inset space ~
25611 \begin_inset CommandInset ref
25613 reference "fig:Float-left"
25618 \begin_inset CommandInset ref
25620 reference "fig:Float-right"
25629 In it two minipage boxes are inserted.
25633 \begin_layout Plain Layout
25634 Minipages are explained in section
25635 \begin_inset space ~
25639 \begin_inset CommandInset ref
25641 reference "sec:Minipages"
25650 The width is set to 45
25651 \begin_inset space \thinspace{}
25655 \begin_inset space \thinspace{}
25658 column% and the box alignment to
25663 The minipage boxes contain the image and the caption in the same way as
25664 they are in a float.
25665 The only difference is that the image unit
25668 \begin_inset space ~
25672 \begin_inset space ~
25677 is now calculated according to the width of the minipage boxes.
25680 \begin_layout Standard
25681 \begin_inset Float figure
25686 \begin_layout Plain Layout
25687 \begin_inset Box Frameless
25697 height_special "totalheight"
25700 \begin_layout Plain Layout
25702 \begin_inset Graphics
25703 filename clipart/mobius.eps
25706 scaleBeforeRotation
25713 \begin_layout Plain Layout
25714 \begin_inset Caption
25716 \begin_layout Plain Layout
25717 \begin_inset CommandInset label
25719 name "fig:Float-left"
25723 Float on the left side.
25734 \begin_inset space \hfill{}
25738 \begin_inset Box Frameless
25748 height_special "totalheight"
25751 \begin_layout Plain Layout
25753 \begin_inset Graphics
25754 filename clipart/platypus.eps
25757 scaleBeforeRotation
25764 \begin_layout Plain Layout
25765 \begin_inset Caption
25767 \begin_layout Plain Layout
25768 \begin_inset CommandInset label
25770 name "fig:Float-right"
25774 Float on the right side.
25787 \begin_layout Plain Layout
25796 \begin_layout Section
25798 \begin_inset Index idx
25801 \begin_layout Plain Layout
25802 Caption ! Formatting
25808 \begin_inset Index idx
25811 \begin_layout Plain Layout
25812 Floats ! Caption Formatting
25818 \begin_inset CommandInset label
25820 name "sec:Caption-Formatting"
25827 \begin_layout Standard
25832 environment is the default paragraph environment for
25837 On the LyX screen captions appear as label, e.
25838 \begin_inset space \thinspace{}
25842 \begin_inset space \space{}
25846 \begin_inset Quotes eld
25854 \begin_inset Quotes erd
25857 followed by the caption text.
25859 \begin_inset Quotes eld
25863 \begin_inset Quotes erd
25866 is the actual reference number.
25867 By default the label and the number are in the same font as the caption
25868 text and a colon follows the number to divide the label from the text.
25869 This caption format is not suitable for all document formats.
25873 \begin_layout Standard
25874 To change the default caption format, load the LaTeX-package
25879 \begin_inset Index idx
25882 \begin_layout Plain Layout
25883 LaTeX-packages ! caption
25888 in the document preamble with this line:
25891 \begin_layout Standard
25896 usepackage[format definition]{caption}
25899 \begin_layout Standard
25900 To have for example the label and the number in sans-serif bold font and
25901 the table captions always above the table as in this document, use the
25905 \begin_layout Standard
25910 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
25913 \begin_layout Standard
25914 You can also define different caption formats for the different float types.
25915 In this case load the
25919 package without format specific options and define the different formats
25920 with the help of the command
25923 \begin_layout Standard
25928 captionsetup[float type]{format definition}
25931 \begin_layout Standard
25932 in the document preamble.
25933 For example the caption formats of Figure
25934 \begin_inset space ~
25938 \begin_inset CommandInset ref
25940 reference "fig:This-is-an-fig"
25945 \begin_inset space ~
25949 \begin_inset CommandInset ref
25951 reference "tab:This-is-an-tab"
25955 can be created using these commands in the document preamble:
25958 \begin_layout Standard
25963 usepackage[tableposition=top]{caption}
25966 \begin_inset Newline newline
25973 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
25974 \begin_inset Newline newline
25978 \begin_inset Phantom HPhantom
25981 \begin_layout Plain Layout
25986 captionsetup[figure]{
25992 \begin_inset Newline newline
25997 captionsetup[table]{labelfont={bf,sf}}
26000 \begin_layout Standard
26001 \begin_inset Note Greyedout
26004 \begin_layout Plain Layout
26013 has no effect when a
26018 \begin_inset Index idx
26021 \begin_layout Plain Layout
26022 LaTeX-packages ! KOMA-Script
26027 document class is used.
26028 In this case the document class option
26030 captions=tableheading
26040 \begin_layout Standard
26041 For more information about the package
26045 we refer to its documentation
26046 \begin_inset CommandInset citation
26055 \begin_layout Standard
26056 To change the label name from e.
26057 \begin_inset space \thinspace{}
26061 \begin_inset space \space{}
26065 \begin_inset Quotes eld
26069 \begin_inset Quotes erd
26073 \begin_inset Quotes eld
26077 \begin_inset Quotes erd
26080 use this preamble command:
26083 \begin_layout Standard
26090 fnum@figure}{Image~
26095 \begin_layout Standard
26102 inserts the figure number and
26105 \begin_inset Quotes eld
26111 \begin_inset Quotes erd
26114 creates a protected space.
26117 \begin_layout Standard
26118 \begin_inset VSpace bigskip
26126 \begin_inset Index idx
26129 \begin_layout Plain Layout
26130 LaTeX-packages ! KOMA-Script
26137 article (KOMA-Script)
26145 letter (KOMA-Script)
26149 report (KOMA-Script)
26152 \begin_inset space \thinspace{}
26155 ), you can alternatively to the
26163 's built-in command
26170 For example, to have the caption label in bold, add this command to your
26174 \begin_layout Standard
26179 setkomafont{captionlabel}{
26184 \begin_layout Standard
26185 For more information about
26196 \begin_inset CommandInset citation
26205 \begin_layout Standard
26209 \begin_layout Plain Layout
26213 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
26220 \begin_inset Note Note
26223 \begin_layout Plain Layout
26224 The caption format is changed only for this example.
26232 \begin_layout Standard
26233 \begin_inset Float figure
26239 \begin_layout Plain Layout
26241 \begin_inset Graphics
26242 filename clipart/mobius.eps
26245 scaleBeforeRotation
26252 \begin_layout Plain Layout
26253 \begin_inset Caption
26255 \begin_layout Plain Layout
26256 \begin_inset CommandInset label
26258 name "fig:This-is-an-fig"
26262 This is an example figure caption that is longer than one line to show the
26263 different caption format.
26264 Here a self-defined caption format is used.
26277 \begin_layout Standard
26281 \begin_layout Plain Layout
26285 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
26294 \begin_layout Standard
26295 \begin_inset Float table
26301 \begin_layout Plain Layout
26302 \begin_inset Caption
26304 \begin_layout Plain Layout
26305 \begin_inset CommandInset label
26307 name "tab:This-is-an-tab"
26311 This is an example table caption that is longer than one line to show the
26312 different caption format.
26313 Here the standard caption format for tables in this document is used.
26321 \begin_layout Plain Layout
26323 \begin_inset Tabular
26324 <lyxtabular version="3" rows="1" columns="5">
26325 <features tabularvalignment="middle">
26326 <column alignment="center" valignment="top" width="0">
26327 <column alignment="center" valignment="top" width="0">
26328 <column alignment="center" valignment="top" width="0">
26329 <column alignment="center" valignment="top" width="0">
26330 <column alignment="center" valignment="top" width="0">
26332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26335 \begin_layout Plain Layout
26341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26344 \begin_layout Plain Layout
26350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26353 \begin_layout Plain Layout
26359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26362 \begin_layout Plain Layout
26368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26371 \begin_layout Plain Layout
26390 \begin_layout Section
26392 \begin_inset Index idx
26395 \begin_layout Plain Layout
26396 Caption ! Placement
26402 \begin_inset Index idx
26405 \begin_layout Plain Layout
26406 Floats ! Caption Placement
26412 \begin_inset CommandInset label
26414 name "sec:Caption-Placement"
26421 \begin_layout Standard
26422 The common caption placement rule is:
26425 \begin_layout Description
26426 Figure: Caption is set below the figure
26429 \begin_layout Description
26430 Table: Caption is set above the table
26433 \begin_layout Standard
26434 Having the caption above the table is unfortunately not supported in LaTeX's
26436 That means if you are using the document classes
26452 there will be no space between the caption and the table.
26453 To insert the necessary space, add the following option to the load command
26454 of the LaTeX-package
26458 in your document preamble
26462 \begin_layout Plain Layout
26464 \begin_inset space ~
26468 \begin_inset CommandInset ref
26470 reference "sec:Caption-Formatting"
26474 for more information of the package
26486 \begin_layout Standard
26492 \begin_layout Standard
26498 \begin_inset Index idx
26501 \begin_layout Plain Layout
26502 LaTeX-packages ! KOMA-Script
26509 article (KOMA-Script)
26517 letter (KOMA-Script)
26521 report (KOMA-Script)
26524 \begin_inset space \thinspace{}
26527 ), you can alternatively to the
26531 package set the document class option
26533 captions=tableheading
26538 \begin_layout Standard
26539 \begin_inset VSpace bigskip
26542 It is also possible to set the caption beside a figure or table.
26543 To get this the LaTeX-package
26548 \begin_inset Index idx
26551 \begin_layout Plain Layout
26552 LaTeX-packages ! sidecap
26557 has to be loaded in the document preamble with the line
26560 \begin_layout Standard
26565 usepackage[option]{sidecap}
26568 \begin_layout Standard
26569 If you set no option, the caption is placed on the side of the outer page
26570 margin – to the right on odd pages, to the left on even pages.
26571 You can change the placement to inner margin with the option
26576 To force the placement always to the right or left, use the option
26587 \begin_layout Standard
26591 \begin_layout Plain Layout
26601 \begin_inset Note Note
26604 \begin_layout Plain Layout
26605 The following section will only be displayed when the LaTeX-package
26617 \begin_layout Standard
26618 To place in LyX the caption of a float on the side, it is necessary to add
26619 these commands to the document preamble:
26622 \begin_layout Standard
26623 \begin_inset Newpage pagebreak
26629 \begin_layout Standard
26631 \begin_inset CommandInset line
26642 \begin_layout Standard
26649 TabBesBeg}[1][1.0]{%
26650 \begin_inset Newline newline
26654 \begin_inset Phantom HPhantom
26657 \begin_layout Plain Layout
26658 \begin_inset space ~
26673 \begin_inset Newline newline
26677 \begin_inset Phantom HPhantom
26680 \begin_layout Plain Layout
26683 \begin_inset space ~
26698 \begin_inset Newline newline
26702 \begin_inset Phantom HPhantom
26705 \begin_layout Plain Layout
26708 \begin_inset space ~
26718 renewenvironment{table}[1]{
26720 begin{SCtable}[#1]##1}{
26725 \begin_layout Standard
26733 \begin_inset Newline newline
26737 \begin_inset Phantom HPhantom
26740 \begin_layout Plain Layout
26741 \begin_inset space ~
26756 \begin_inset Newline newline
26760 \begin_inset Phantom HPhantom
26763 \begin_layout Plain Layout
26764 \begin_inset space ~
26781 \begin_layout Standard
26788 FigBesBeg}[1][1.0]{%
26789 \begin_inset Newline newline
26793 \begin_inset Phantom HPhantom
26796 \begin_layout Plain Layout
26797 \begin_inset space ~
26812 \begin_inset Newline newline
26816 \begin_inset Phantom HPhantom
26819 \begin_layout Plain Layout
26820 \begin_inset space ~
26835 \begin_inset Newline newline
26839 \begin_inset Phantom HPhantom
26842 \begin_layout Plain Layout
26843 \begin_inset space ~
26853 renewenvironment{figure}[1]{
26855 begin{SCfigure}[#1]##1}{
26860 \begin_layout Standard
26868 \begin_inset Newline newline
26872 \begin_inset Phantom HPhantom
26875 \begin_layout Plain Layout
26876 \begin_inset space ~
26891 \begin_inset Newline newline
26895 \begin_inset Phantom HPhantom
26898 \begin_layout Plain Layout
26899 \begin_inset space ~
26916 \begin_layout Standard
26918 \begin_inset CommandInset line
26929 \begin_layout Standard
26930 The commands allow you to redefine the floats so that the caption is set
26932 For figure floats use the command
26935 \begin_layout Standard
26943 \begin_layout Standard
26944 in TeX-Code before the float.
26945 And insert the command
26948 \begin_layout Standard
26956 \begin_layout Standard
26957 in TeX-Code at the point where you want to get back to the original float
26961 \begin_layout Standard
26962 For table floats use the corresponding commands
26965 \begin_layout Standard
26979 \begin_layout Standard
26981 \begin_inset space ~
26985 \begin_inset CommandInset ref
26987 reference "fig:cap-beside-fig"
26992 \begin_inset space ~
26996 \begin_inset CommandInset ref
26998 reference "tab:cap-beside-tab"
27002 are examples where the caption is set beside.
27005 \begin_layout Standard
27006 You can see in the examples that the caption text appears at the top of
27007 the floats for table floats and at the bottom for figure floats.
27008 To change this, you can use the command
27011 \begin_layout Standard
27016 sidecaptionvpos{float type}{placement}
27019 \begin_layout Standard
27020 in the document preamble or in TeX-Code before the float.
27021 The float type is either
27029 , the placement can be
27030 \begin_inset Quotes eld
27038 \begin_inset Quotes erd
27042 \begin_inset Quotes eld
27050 \begin_inset Quotes erd
27054 \begin_inset Quotes eld
27062 \begin_inset Quotes erd
27066 To have for example the caption of figure floats vertically centered, use
27070 \begin_layout Standard
27075 sidecaptionvpos{figure}{c}
27078 \begin_layout Standard
27079 This was used for Figure
27080 \begin_inset space ~
27084 \begin_inset CommandInset ref
27086 reference "fig:cap-beside-fig-2"
27093 \begin_layout Standard
27094 \begin_inset VSpace medskip
27100 \begin_layout Standard
27101 The default caption width is the width of the image/table.
27102 For thin image/tables, like in Table
27103 \begin_inset space ~
27107 \begin_inset CommandInset ref
27109 reference "tab:cap-beside-tab"
27113 , this leads to captions that are too thin.
27114 You can increase the width by specifying a factor that will be multiplied
27115 with the image/table width to get the caption width.
27116 The caption width will automatically be recalculated in case it would protrude
27117 over the page or column margin due to the specified width.
27122 can either be given as optional argument for
27131 \begin_layout Standard
27139 \begin_layout Standard
27140 or in the definition of
27150 with another value.
27151 If you do the latter, your factor will be the default if
27157 is used without an argument.
27159 \begin_inset space ~
27163 \begin_inset CommandInset ref
27165 reference "tab:cap-beside-tab-wider"
27169 the factor 5 was used.
27172 \begin_layout Standard
27173 \begin_inset Note Greyedout
27176 \begin_layout Plain Layout
27181 For floats with captions set beside, you cannot use the float placement
27185 \begin_inset space ~
27190 because it is not supported by
27202 \begin_layout Standard
27203 \begin_inset VSpace medskip
27206 For more information about the package
27210 we refer to its documentation
27211 \begin_inset CommandInset citation
27220 \begin_layout Standard
27221 \begin_inset Note Greyedout
27224 \begin_layout Plain Layout
27234 \begin_inset Index idx
27237 \begin_layout Plain Layout
27238 LaTeX-packages ! hypcap
27243 , described in section
27244 \begin_inset space ~
27248 \begin_inset CommandInset ref
27250 reference "sub:Reference-Position"
27254 , has no effect on floats with the caption set beside.
27262 \begin_layout Standard
27266 \begin_layout Plain Layout
27278 \begin_layout Standard
27279 \begin_inset Float figure
27284 \begin_layout Plain Layout
27285 \begin_inset Graphics
27286 filename clipart/escher-lsd.eps
27288 scaleBeforeRotation
27295 \begin_layout Plain Layout
27296 \begin_inset Caption
27298 \begin_layout Plain Layout
27299 \begin_inset CommandInset label
27301 name "fig:cap-beside-fig"
27305 This is a caption beside a figure.
27318 \begin_layout Standard
27322 \begin_layout Plain Layout
27334 \begin_layout Standard
27338 \begin_layout Plain Layout
27350 \begin_layout Standard
27351 \begin_inset Float table
27356 \begin_layout Plain Layout
27357 \begin_inset Caption
27359 \begin_layout Plain Layout
27360 \begin_inset CommandInset label
27362 name "tab:cap-beside-tab"
27366 This is a caption beside a table.
27374 \begin_layout Plain Layout
27375 \begin_inset Tabular
27376 <lyxtabular version="3" rows="4" columns="5">
27377 <features tabularvalignment="middle">
27378 <column alignment="center" valignment="top" width="0">
27379 <column alignment="center" valignment="top" width="0">
27380 <column alignment="center" valignment="top" width="0">
27381 <column alignment="center" valignment="top" width="0">
27382 <column alignment="center" valignment="top" width="0">
27384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27387 \begin_layout Plain Layout
27393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27396 \begin_layout Plain Layout
27402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27405 \begin_layout Plain Layout
27411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27414 \begin_layout Plain Layout
27420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27423 \begin_layout Plain Layout
27431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27434 \begin_layout Plain Layout
27440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27443 \begin_layout Plain Layout
27449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27452 \begin_layout Plain Layout
27458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27461 \begin_layout Plain Layout
27467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27470 \begin_layout Plain Layout
27478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27481 \begin_layout Plain Layout
27487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27490 \begin_layout Plain Layout
27496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27499 \begin_layout Plain Layout
27505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27508 \begin_layout Plain Layout
27514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27517 \begin_layout Plain Layout
27525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27528 \begin_layout Plain Layout
27534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27537 \begin_layout Plain Layout
27543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27546 \begin_layout Plain Layout
27552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27555 \begin_layout Plain Layout
27561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27564 \begin_layout Plain Layout
27583 \begin_layout Standard
27587 \begin_layout Plain Layout
27599 \begin_layout Standard
27603 \begin_layout Plain Layout
27607 sidecaptionvpos{figure}{c}
27613 \begin_inset Float figure
27618 \begin_layout Plain Layout
27619 \begin_inset Graphics
27620 filename clipart/escher-lsd.eps
27622 scaleBeforeRotation
27629 \begin_layout Plain Layout
27630 \begin_inset Caption
27632 \begin_layout Plain Layout
27633 \begin_inset CommandInset label
27635 name "fig:cap-beside-fig-2"
27639 This is a vertically centered caption beside a figure.
27652 \begin_layout Standard
27656 \begin_layout Plain Layout
27668 \begin_layout Standard
27672 \begin_layout Plain Layout
27684 \begin_layout Standard
27685 \begin_inset Float table
27690 \begin_layout Plain Layout
27691 \begin_inset Caption
27693 \begin_layout Plain Layout
27694 \begin_inset CommandInset label
27696 name "tab:cap-beside-tab-wider"
27700 This is a caption is wider than the one in Table
27701 \begin_inset space ~
27705 \begin_inset CommandInset ref
27707 reference "tab:cap-beside-tab"
27719 \begin_layout Plain Layout
27720 \begin_inset Tabular
27721 <lyxtabular version="3" rows="4" columns="5">
27722 <features tabularvalignment="middle">
27723 <column alignment="center" valignment="top" width="0">
27724 <column alignment="center" valignment="top" width="0">
27725 <column alignment="center" valignment="top" width="0">
27726 <column alignment="center" valignment="top" width="0">
27727 <column alignment="center" valignment="top" width="0">
27729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27732 \begin_layout Plain Layout
27738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27741 \begin_layout Plain Layout
27747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27750 \begin_layout Plain Layout
27756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27759 \begin_layout Plain Layout
27765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27768 \begin_layout Plain Layout
27776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27779 \begin_layout Plain Layout
27785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27788 \begin_layout Plain Layout
27794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27797 \begin_layout Plain Layout
27803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27806 \begin_layout Plain Layout
27812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27815 \begin_layout Plain Layout
27823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27826 \begin_layout Plain Layout
27832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27835 \begin_layout Plain Layout
27841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27844 \begin_layout Plain Layout
27850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27853 \begin_layout Plain Layout
27859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27862 \begin_layout Plain Layout
27870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27873 \begin_layout Plain Layout
27879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27882 \begin_layout Plain Layout
27888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27891 \begin_layout Plain Layout
27897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27900 \begin_layout Plain Layout
27906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27909 \begin_layout Plain Layout
27928 \begin_layout Standard
27932 \begin_layout Plain Layout
27944 \begin_layout Standard
27948 \begin_layout Plain Layout
27958 \begin_inset Note Note
27961 \begin_layout Plain Layout
27962 The following will be displayed when the LaTeX-package
27974 \begin_layout Standard
27975 You need to install the LaTeX-package
27979 to see the following part of this section in the output.
27982 \begin_layout Standard
27986 \begin_layout Plain Layout
27998 \begin_layout Section
28000 \begin_inset Index idx
28003 \begin_layout Plain Layout
28004 Floats ! Float Lists
28012 \begin_layout Standard
28013 Similar to the table of contents where the sections of the document are
28014 listed, there are listings for all float types, like the figures of the
28016 You can insert them via the
28018 Insert\SpecialChar \menuseparator
28020 \begin_inset space ~
28024 \begin_inset space ~
28032 \begin_layout Standard
28033 The list entries are the float captions or its short title, the float number,
28034 and the page number where they appear in the document.
28037 \begin_layout Standard
28038 You can find the list of figures and tables at the end of this document.
28041 \begin_layout Chapter
28045 \begin_layout Section
28047 \begin_inset Index idx
28050 \begin_layout Plain Layout
28059 \begin_layout Standard
28060 Notes are inserted with the toolbar button
28072 Insert\SpecialChar \menuseparator
28076 There are three types of notes:
28079 \begin_layout Description
28081 \begin_inset space ~
28084 Note This note type is for internal notes that won't appear in the output.
28085 Its note-box looks like this:
28086 \begin_inset Newline newline
28090 \begin_inset Newline newline
28094 \begin_inset Graphics
28095 filename clipart/LyXNoteImageQt4.png
28098 scaleBeforeRotation
28103 \begin_inset Note Note
28106 \begin_layout Plain Layout
28107 This is text in a note box that doesn't appear in the output.
28115 \begin_layout Description
28116 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
28117 ent, when you export the document to LaTeX via the menu
28119 File\SpecialChar \menuseparator
28120 Export\SpecialChar \menuseparator
28121 LaTeX (pdflatex) / (plain)
28124 Its note-box looks like this:
28125 \begin_inset Newline newline
28129 \begin_inset Newline newline
28133 \begin_inset Graphics
28134 filename clipart/CommentNoteImageQt4.png
28137 scaleBeforeRotation
28142 \begin_inset Note Comment
28145 \begin_layout Plain Layout
28146 This is text in a note box that only appears as comment in LaTeX-files.
28154 \begin_layout Description
28156 \begin_inset space ~
28159 Out This note will appear in the output as grey text.
28160 Its note-box looks like this:
28161 \begin_inset Newline newline
28165 \begin_inset Newline newline
28169 \begin_inset Graphics
28170 filename clipart/GreyedOutNoteImageQt4.png
28173 scaleBeforeRotation
28178 \begin_inset Newline newline
28185 \begin_layout Plain Layout
28189 renewenvironment{lyxgreyedout}
28192 \begin_layout Plain Layout
28196 textcolor[gray]{0.8}
28206 \begin_inset Note Greyedout
28209 \begin_layout Plain Layout
28214 \begin_layout Plain Layout
28215 This is an example footnote within a greyed out note.
28220 of a comment that appears in the output as grey text.
28229 \begin_layout Plain Layout
28233 renewenvironment{lyxgreyedout}
28236 \begin_layout Plain Layout
28250 \begin_inset Note Note
28253 \begin_layout Plain Layout
28254 The greyed out note is here redefined to show it with the original LyX definitio
28255 n because greyed out notes are redefined in the preamble of this document,
28256 as described below, to have blue text.
28262 \begin_inset Newline newline
28266 \begin_inset Newline newline
28269 As you can see in the example, the first line of greyed out notes is a bit
28270 indented and greyed out notes can have footnotes.
28273 \begin_layout Standard
28274 \begin_inset VSpace bigskip
28277 When you use the toolbar button
28290 \begin_inset space ~
28296 You can switch between the five note types by right-clicking on the note-box.
28301 If you want to turn existing text into a note, mark it and click on the
28315 To change a note to text, press the backspace key when the cursor is in
28316 the first position of a note, or press the delete key when the cursor is
28317 in the very last position of the note, respectively.
28320 \begin_layout Standard
28321 \begin_inset VSpace bigskip
28324 You can change the text color of the greyed out notes in the menu
28326 Document\SpecialChar \menuseparator
28327 Settings\SpecialChar \menuseparator
28333 \begin_layout Section
28335 \begin_inset CommandInset label
28337 name "sec:Footnotes"
28342 \begin_inset Index idx
28345 \begin_layout Plain Layout
28352 \begin_inset Index idx
28355 \begin_layout Plain Layout
28364 \begin_layout Standard
28365 Footnotes can be inserted using the toolbar button
28370 arg "footnote-insert"
28377 Insert\SpecialChar \menuseparator
28389 then the following footnote-box:
28390 \begin_inset Graphics
28391 filename clipart/footnoteQt4.png
28393 scaleBeforeRotation
28401 where you can enter the footnote text.
28402 If you want to turn existing text into a footnote, mark it and click on
28428 key when the cursor is in the first position of a
28440 key when the cursor is in the very last position of the
28451 \begin_layout Standard
28452 Here is an example footnote:
28460 \begin_layout Plain Layout
28461 \begin_inset CommandInset label
28463 name "foot:This-is-an"
28467 This is an example footnote.
28480 \begin_layout Plain Layout
28484 newcounter{MyRepeatFoot}
28487 \begin_layout Plain Layout
28491 setcounter{MyRepeatFoot}{
28501 \begin_layout Standard
28502 The footnote will appear in the output as a superscript number at the text
28503 position where the footnote box is placed.
28504 The footnote text is placed at the bottom of the current page.
28505 The footnote number is calculated by LaTeX; the numbers are consecutive.
28506 It depends on your document-class, whether the footnote number is reset
28510 \begin_layout Standard
28511 Footnotes can be referenced like floats: Insert a label into the footnote
28512 and cross-reference this label in the text as described in section
28513 \begin_inset space ~
28517 \begin_inset CommandInset ref
28519 reference "sec:Referencing-Floats"
28524 \begin_inset Newline newline
28527 This is a cross-reference of Footnote
28528 \begin_inset space ~
28532 \begin_inset CommandInset ref
28534 reference "foot:This-is-an"
28541 \begin_layout Standard
28542 \begin_inset VSpace defskip
28545 Footnotes in tables are not printed by LaTeX due to technical reasons.
28546 However there exists another method to print them: Instead of the footnote
28553 is inserted as TeX-code.
28554 The text of the footnote is entered as an argument of the TeX-code command
28562 \begin_inset Newline newline
28565 This was done for the following table with the command
28568 \begin_layout Standard
28575 Printed table footnote.
28580 \begin_layout Standard
28581 \begin_inset Tabular
28582 <lyxtabular version="3" rows="2" columns="1">
28583 <features tabularvalignment="middle">
28584 <column alignment="center" valignment="top" width="0">
28586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28589 \begin_layout Plain Layout
28590 This an example text.
28594 \begin_layout Plain Layout
28595 This footnote will not be printed!
28607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28610 \begin_layout Plain Layout
28611 This an example text.
28615 \begin_layout Plain Layout
28638 \begin_layout Plain Layout
28647 Printed table footnote.
28651 \begin_layout Plain Layout
28661 \begin_layout Standard
28662 Footnotes in longtables are described in section
28663 \begin_inset space ~
28667 \begin_inset CommandInset ref
28669 reference "sub:Footnotes-in-Longtables"
28676 \begin_layout Standard
28677 Footnotes in minipage boxes are printed, but inside the box and with a different
28678 numbering because a minipage box is like a page inside a page.
28679 (For more about minipages, see section
28680 \begin_inset space ~
28684 \begin_inset CommandInset ref
28686 reference "sec:Minipages"
28690 .) To get a footnote in the minipage that is output at the bottom of the
28691 page like normal footnotes, also use the method of
28706 \begin_layout Standard
28707 \begin_inset Box Frameless
28717 height_special "totalheight"
28720 \begin_layout Plain Layout
28721 This an example text in a minipage.
28725 \begin_layout Plain Layout
28726 Footnote in the minipage.
28734 \begin_layout Plain Layout
28735 This an example text in a minipage.
28739 \begin_layout Plain Layout
28756 \begin_layout Standard
28760 \begin_layout Plain Layout
28769 Footnote outside the minipage.
28773 \begin_layout Plain Layout
28783 \begin_layout Standard
28784 \begin_inset VSpace defskip
28790 \begin_layout Standard
28791 To refer to the same footnote several times without printing the footnote
28792 text every time, use the command
28796 footnotemark[number]
28799 \begin_inset Newline newline
28802 As you do not know the number of the repeating footnote while you are writing
28803 the text, you have to store its number.
28804 For the following footnote mark example, these commands were inserted in
28805 TeX-code after Footnote
28806 \begin_inset space ~
28810 \begin_inset CommandInset ref
28812 reference "foot:This-is-an"
28816 to store the footnote number:
28819 \begin_layout Standard
28824 newcounter{MyRepeatFoot}
28825 \begin_inset Newline newline
28830 setcounter{MyRepeatFoot}{
28835 \begin_layout Standard
28836 The footnote mark was then created with this command:
28839 \begin_layout Standard
28849 \begin_layout Standard
28850 Here is a repeated footnote:
28858 \begin_layout Plain Layout
28872 \begin_layout Standard
28873 If you want to repeat the previous footnote, you can omit the storage of
28874 the footnote number and just use this command instead:
28877 \begin_layout Standard
28887 \begin_layout Standard
28888 Here is another repeated footnote:
28896 \begin_layout Plain Layout
28910 \begin_layout Subsection
28912 \begin_inset CommandInset label
28914 name "sub:Footnote-Numbering"
28919 \begin_inset Index idx
28922 \begin_layout Plain Layout
28923 Footnotes ! Numbering
28931 \begin_layout Standard
28932 To reset the footnote number back to 1 after each section
28934 , add this command to your document preamble:
28937 \begin_layout Standard
28942 @addtoreset{footnote}{section}
28945 \begin_layout Standard
28946 \begin_inset VSpace bigskip
28949 The following preamble command changes the footnote numbering style to small
28953 \begin_layout Standard
28965 \begin_layout Standard
28969 \begin_layout Plain Layout
28982 This is a footnote with roman numbering:
28986 \begin_layout Plain Layout
28987 This is an example footnote with roman numbering.
28995 \begin_layout Standard
28996 To change the numbering style to capital roman numerals replace in the command
29011 \begin_inset Quotes eld
29015 \begin_inset Quotes erd
29018 footnotes with capital or small Latin letters use
29032 \begin_inset Quotes eld
29036 \begin_inset Quotes erd
29039 footnotes with symbols use
29048 \begin_layout Standard
29049 \begin_inset Note Greyedout
29052 \begin_layout Plain Layout
29057 You can only number 26 footnotes with Latin letters, because this numbering
29058 is limited to single letters.
29064 \begin_inset Newline newline
29068 \begin_inset Note Greyedout
29071 \begin_layout Plain Layout
29076 You can only number 9 footnotes with symbols.
29084 \begin_layout Standard
29085 To return to the default numbering style after you have changed to another
29098 in the command above.
29102 \begin_layout Plain Layout
29118 \begin_layout Standard
29119 \begin_inset VSpace bigskip
29125 \begin_layout Standard
29126 If you want to have footnotes numbered in the scheme
29127 \begin_inset Quotes eld
29131 \begin_inset Quotes erd
29134 , add the following command to your document preamble:
29137 \begin_layout Standard
29142 numberwithin{footnote}{chapter}
29145 \begin_layout Standard
29146 To be able to use the command
29155 \begin_inset space ~
29160 in the document settings the option
29163 \begin_inset space ~
29167 \begin_inset space ~
29171 \begin_inset space ~
29179 \begin_layout Standard
29183 \begin_layout Plain Layout
29187 numberwithin{footnote}{chapter}
29192 This is another example footnote:
29198 \begin_layout Plain Layout
29199 This is a footnote numbered in the scheme
29200 \begin_inset Quotes eld
29204 \begin_inset Quotes erd
29218 \begin_layout Plain Layout
29234 \begin_layout Standard
29235 \begin_inset Note Greyedout
29238 \begin_layout Plain Layout
29249 always prints out the footnote number as arabic number; previous redefinitions
29250 to get non-arabic numbers are overwritten.
29258 \begin_layout Standard
29259 So to get for example the scheme
29260 \begin_inset Quotes eld
29266 \begin_inset Quotes erd
29269 , use this command instead of
29278 \begin_layout Standard
29292 \begin_layout Subsection
29294 \begin_inset Index idx
29297 \begin_layout Plain Layout
29298 Footnotes ! Placement
29306 \begin_layout Standard
29307 If you have several footnotes in one page, they appear without vertical
29308 space between them at the bottom of the page.
29309 To make them more readable you can e.
29310 \begin_inset space \thinspace{}
29314 \begin_inset space \space{}
29318 \begin_inset space \thinspace{}
29321 mm space with the following preamble command:
29324 \begin_layout Standard
29334 \begin_inset Newline newline
29348 \begin_layout Standard
29349 \begin_inset VSpace bigskip
29352 In a two-column document the footnotes appear at the bottom of every column,
29354 \begin_inset space ~
29358 \begin_inset CommandInset ref
29360 reference "fig:Standard-footnote-placement"
29365 If the footnotes should only appear at the bottom of the right column,
29367 \begin_inset space ~
29371 \begin_inset CommandInset ref
29373 reference "fig:Footnote-placement-in"
29377 , use the LaTeX-package
29382 \begin_inset Index idx
29385 \begin_layout Plain Layout
29386 LaTeX-packages ! ftnright
29391 with this command in the document preamble:
29394 \begin_layout Standard
29399 usepackage{ftnright}
29402 \begin_layout Standard
29403 \begin_inset Float figure
29409 \begin_layout Plain Layout
29413 \begin_layout Plain Layout
29423 \begin_inset Graphics
29424 filename clipart/without_fntright.pdf
29426 scaleBeforeRotation
29434 \begin_layout Plain Layout
29444 \begin_layout Plain Layout
29445 \begin_inset Caption
29447 \begin_layout Plain Layout
29448 \begin_inset CommandInset label
29450 name "fig:Standard-footnote-placement"
29454 Standard footnote placement in two-column documents.
29467 \begin_layout Standard
29468 \begin_inset Float figure
29474 \begin_layout Plain Layout
29478 \begin_layout Plain Layout
29488 \begin_inset Graphics
29489 filename clipart/with_fntright.pdf
29491 scaleBeforeRotation
29499 \begin_layout Plain Layout
29509 \begin_layout Plain Layout
29510 \begin_inset Caption
29512 \begin_layout Plain Layout
29513 \begin_inset CommandInset label
29515 name "fig:Footnote-placement-in"
29519 Footnote placement in two-column documents when the LaTeX-package
29536 \begin_layout Standard
29537 \begin_inset VSpace bigskip
29540 In some scientific literature it is usual to collect the footnotes and print
29541 them in a separate paragraph at the end of a section, as in Figure
29542 \begin_inset space ~
29546 \begin_inset CommandInset ref
29548 reference "fig:Endnotes"
29553 They are then called
29554 \begin_inset Quotes eld
29558 \begin_inset Quotes erd
29562 \begin_inset Index idx
29565 \begin_layout Plain Layout
29571 To use endnotes instead of footnotes in your document, load in the menu
29574 Document\SpecialChar \menuseparator
29575 Settings\SpecialChar \menuseparator
29581 \begin_inset space ~
29585 \begin_inset space ~
29591 To insert the collected footnotes, insert the command
29594 \begin_layout Standard
29602 \begin_layout Standard
29603 in TeX-Code at the end of a section or chapter.
29606 \begin_layout Standard
29607 \begin_inset Float figure
29612 \begin_layout Plain Layout
29617 \begin_layout Plain Layout
29627 \begin_inset Graphics
29628 filename clipart/endnotes.pdf
29629 scaleBeforeRotation
29637 \begin_layout Plain Layout
29647 \begin_layout Plain Layout
29648 \begin_inset Caption
29650 \begin_layout Plain Layout
29651 \begin_inset CommandInset label
29653 name "fig:Endnotes"
29657 Endnotes – footnotes are printed in a separate paragraph at the end of sections
29671 \begin_layout Standard
29672 \begin_inset VSpace medskip
29675 The paragraph heading for the endnotes isn't automatically translated into
29676 the document language, this must be done manually.
29677 The following preamble command translates the default English
29678 \begin_inset Quotes eld
29682 \begin_inset Quotes erd
29686 \begin_inset Quotes eld
29690 \begin_inset Quotes erd
29696 \begin_layout Standard
29703 notesname}{Anmerkungen}
29706 \begin_layout Standard
29707 \begin_inset VSpace medskip
29710 The numbering of endnotes can be changed like the footnote numbering as
29711 described in section
29712 \begin_inset space ~
29716 \begin_inset CommandInset ref
29718 reference "sub:Footnote-Numbering"
29722 ; just replace the command
29735 To reset the endnote number use the command
29741 as described in section
29742 \begin_inset space ~
29746 \begin_inset CommandInset ref
29748 reference "sub:Footnote-Numbering"
29752 and replace the command parameter
29763 \begin_layout Standard
29764 For endnotes there is the command
29768 endnotemark[number]
29770 similar to the command
29776 , that is described in section
29777 \begin_inset space ~
29781 \begin_inset CommandInset ref
29783 reference "sec:Footnotes"
29790 \begin_layout Standard
29791 \begin_inset VSpace bigskip
29794 Footnotes can also be placed in the page margin and the footnote text alignment
29795 can be changed, see the LaTeX-package
29800 \begin_inset Index idx
29803 \begin_layout Plain Layout
29804 LaTeX-packages ! footmisc
29810 \begin_inset CommandInset citation
29816 for more information about this.
29819 \begin_layout Standard
29820 For various further footnote formatting issues have a look at LaTeX-books,
29822 \begin_inset CommandInset citation
29824 key "latexcompanion,latexguide,latexbook"
29834 \begin_inset Index idx
29837 \begin_layout Plain Layout
29838 LaTeX-packages ! KOMA-Script
29843 document class, you can adjust all footnote settings using class-specific
29845 \begin_inset CommandInset citation
29854 \begin_layout Section
29856 \begin_inset Index idx
29859 \begin_layout Plain Layout
29860 Notes ! Margin Notes
29868 \begin_layout Standard
29869 Margin notes look and behave in LyX like footnotes.
29870 They are inserted via the menu
29872 Insert\SpecialChar \menuseparator
29874 \begin_inset space ~
29879 or the toolbar button
29884 arg "marginalnote-insert"
29900 \begin_inset Quotes eld
29904 \begin_inset Quotes erd
29907 appears where you can enter the text of the margin note.
29910 \begin_layout Standard
29911 At the side is an example margin note.
29916 \begin_inset Marginal
29919 \begin_layout Plain Layout
29920 This is a margin note.
29928 \begin_layout Standard
29929 Margin notes appear at the right side in single-sided documents.
29930 In double-sided documents they appear in the outer margin – left on even
29931 pages, right on odd pages.
29932 The text of margin notes is aligned opposite to the outer margin – right-aligne
29933 d when the note appears in the left margin.
29934 The first line of the margin note is placed at the position of the text
29935 line where it is inserted in the document.
29938 \begin_layout Standard
29939 \begin_inset VSpace bigskip
29942 To place the margin note in the inner margin, add the command
29945 \begin_layout Standard
29953 \begin_layout Standard
29954 in TeX-Code before a margin note.
29955 The new placement is valid for all subsequent margin notes.
29960 \begin_layout Plain Layout
29970 \begin_inset Marginal
29973 \begin_layout Plain Layout
29974 This is a margin note in the inner margin.
29982 \begin_inset Newline newline
29988 \begin_inset Note Greyedout
29991 \begin_layout Plain Layout
29996 There is often not enough space in the inner margin so that the notes are
29997 not correctly displayed in the output.
30005 \begin_layout Standard
30006 To return to the default placement insert the command
30009 \begin_layout Standard
30017 \begin_layout Standard
30022 \begin_layout Plain Layout
30032 \begin_inset Note Greyedout
30035 \begin_layout Plain Layout
30040 The command is ignored when it is within a paragraph where also the command
30055 \begin_layout Standard
30056 \begin_inset VSpace bigskip
30063 \begin_inset Marginal
30066 \begin_layout Plain Layout
30067 AVeryLongMarginParWord that isn't hyphenated.
30075 Similar to the case described in section
30076 \begin_inset space ~
30080 \begin_inset CommandInset ref
30082 reference "sub:Multiple-Lines-in"
30086 , long words cannot be hyphenated when they are the first word in a margin
30088 To avoid this, insert 0
30089 \begin_inset space \thinspace{}
30092 pt horizontal space before the word
30097 \begin_inset Marginal
30100 \begin_layout Plain Layout
30101 \begin_inset space \hspace*{}
30105 AVeryLongMarginParWord that is hyphenated.
30113 \begin_layout Standard
30114 \begin_inset VSpace bigskip
30120 \begin_layout Standard
30121 \begin_inset Note Greyedout
30124 \begin_layout Plain Layout
30129 Margin notes can normally not be used inside tables, floats, and footnotes.
30137 \begin_layout Standard
30138 \begin_inset VSpace bigskip
30144 \begin_layout Standard
30148 \begin_layout Plain Layout
30158 \begin_inset Note Note
30161 \begin_layout Plain Layout
30162 The following section will only be displayed when the LaTeX-package
30174 \begin_layout Standard
30175 This restriction can be evaded by using the LaTeX-package
30180 \begin_inset Index idx
30183 \begin_layout Plain Layout
30184 LaTeX-packages ! marginnote
30190 By adding these two lines to your document preamble, the command used by
30191 LyX for margin notes is redefined to use the command provided by the
30198 \begin_layout Standard
30203 usepackage{marginnote}
30204 \begin_inset Newline newline
30216 \begin_layout Standard
30217 This is also used in this document because
30221 has another useful feature: You can set a vertical offset for the note.
30222 This is often needed when too many margin notes are too close together
30223 or for a better page layout.
30224 The offset is set in LyX as TeX-Code directly after the margin note in
30228 \begin_layout Standard
30234 \begin_layout Standard
30235 where the offset is a length with one of the units listed in Table
30236 \begin_inset space ~
30240 \begin_inset CommandInset ref
30242 reference "tab:Units"
30247 A negative value shifts the note up, a positive value shifts it down.
30251 For example the margin note beside this text line is shifted up 1.5
30252 \begin_inset space \thinspace{}
30255 cm with the TeX-Code-command
30256 \begin_inset Quotes eld
30266 \begin_inset Quotes erd
30270 \begin_inset Marginal
30273 \begin_layout Plain Layout
30274 This margin note is shifted up 1.5
30275 \begin_inset space \thinspace{}
30278 cm from its original position.
30290 \begin_layout Plain Layout
30300 \begin_layout Standard
30301 \begin_inset VSpace medskip
30308 you can also change the alignment of the text in the margin note.
30309 For example the commands
30312 \begin_layout Standard
30319 raggedleftmarginnote}{
30322 \begin_inset Newline newline
30329 raggedrightmarginnote}{
30334 \begin_layout Standard
30335 set the alignment to centered.
30340 raggedleftmarginnote
30342 denotes margin notes that appear at the left side.
30349 \begin_layout Plain Layout
30355 raggedleftmarginnote}{
30360 \begin_layout Plain Layout
30366 raggedrightmarginnote}{
30374 \begin_inset Marginal
30377 \begin_layout Plain Layout
30378 The text of this margin note is centered.
30389 \begin_layout Standard
30396 raggedleftmarginnote}{
30399 \begin_inset Newline newline
30406 raggedrightmarginnote}{
30415 \begin_layout Plain Layout
30421 raggedleftmarginnote}{
30426 \begin_layout Plain Layout
30432 raggedrightmarginnote}{
30442 \begin_layout Standard
30443 \begin_inset VSpace medskip
30446 For the other features of
30450 refer to its documentation
30451 \begin_inset CommandInset citation
30460 \begin_layout Standard
30461 \begin_inset VSpace bigskip
30464 You can adjust the layout of margin notes by changing its definition.
30465 To create for example a header for all margin notes with the underlined,
30466 sans-serif, and bold header text
30467 \begin_inset Quotes eld
30479 \begin_inset Quotes erd
30482 , add this to your document preamble:
30485 \begin_layout Standard
30495 \begin_inset Newline newline
30505 \begin_inset Newline newline
30509 \begin_inset Phantom HPhantom
30512 \begin_layout Plain Layout
30515 \begin_inset space ~
30531 underbar{Attention!}}}%
30532 \begin_inset Newline newline
30536 \begin_inset Phantom HPhantom
30539 \begin_layout Plain Layout
30542 \begin_inset space ~
30559 \begin_layout Standard
30566 \begin_layout Plain Layout
30577 \begin_layout Plain Layout
30588 \begin_layout Plain Layout
30596 underbar{Attention!}}}%
30599 \begin_layout Plain Layout
30613 \begin_inset Marginal
30616 \begin_layout Plain Layout
30617 This is a margin note with a defined heading.
30629 \begin_layout Plain Layout
30643 \begin_layout Plain Layout
30660 \begin_inset Note Note
30663 \begin_layout Plain Layout
30664 The margin note format is changed only for this example.
30672 \begin_layout Standard
30676 \begin_layout Plain Layout
30686 \begin_inset Note Note
30689 \begin_layout Plain Layout
30690 The following will be displayed when the LaTeX-package
30702 \begin_layout Standard
30703 You need to install the LaTeX-package
30707 to see the following part of this section in the output.
30710 \begin_layout Standard
30714 \begin_layout Plain Layout
30726 \begin_layout Chapter
30730 \begin_layout Section
30732 \begin_inset Index idx
30735 \begin_layout Plain Layout
30736 Boxes ! Introduction
30744 \begin_layout Standard
30745 Boxes are used to format a block of text.
30746 Boxes can be used to write documents with multiple languages, see section
30747 \begin_inset space ~
30751 \begin_inset CommandInset ref
30753 reference "sec:Minipages"
30757 , to frame texts, see section
30758 \begin_inset space ~
30762 \begin_inset CommandInset ref
30764 reference "sec:Decoration"
30768 , to prevent words from being hyphenated, see section
30769 \begin_inset space ~
30773 \begin_inset CommandInset ref
30775 reference "sec:Prevent-Hyphenation"
30779 , to align text, see section
30780 \begin_inset space ~
30784 \begin_inset CommandInset ref
30786 reference "sub:Vertical-Alignment"
30790 , or to set the background color of texts, see section
30791 \begin_inset space ~
30795 \begin_inset CommandInset ref
30797 reference "sec:Colored-Boxes"
30804 \begin_layout Standard
30805 Boxes can be inserted with the menu
30807 Insert\SpecialChar \menuseparator
30810 or the toolbar button
30815 arg "box-insert Frameless"
30821 A grey box with the label
30826 \begin_inset Graphics
30827 filename clipart/BoxInsetDefaultQt4.png
30829 scaleBeforeRotation
30834 The box type can be specified by right-clicking on the box and selecting
30840 The box dialog offers the
30843 \begin_inset space ~
30865 is the default for new boxes and is explained in section
30866 \begin_inset space ~
30870 \begin_inset CommandInset ref
30872 reference "sec:Minipages"
30880 is described in section
30881 \begin_inset space ~
30885 \begin_inset CommandInset ref
30887 reference "sec:Parboxes"
30896 \begin_inset CommandInset ref
30898 reference "sec:Prevent-Hyphenation"
30905 \begin_layout Standard
30906 Boxes are not numbered and can therefore not be referenced like floats or
30910 \begin_layout Standard
30911 \begin_inset Note Greyedout
30914 \begin_layout Plain Layout
30919 Boxes must not be the item in an
30935 \begin_layout Standard
30936 \begin_inset Note Greyedout
30939 \begin_layout Plain Layout
30944 For an unknown reason you can only set the
30947 \begin_inset space ~
30956 when you use a framed box.
30960 \begin_inset space ~
30965 type and without frames are explained in section
30966 \begin_inset space ~
30970 \begin_inset CommandInset ref
30972 reference "sec:Prevent-Hyphenation"
30984 \begin_layout Section
30986 \begin_inset CommandInset label
30988 name "sec:Box-Dialog"
30993 \begin_inset Index idx
30996 \begin_layout Plain Layout
31005 \begin_layout Subsection
31007 \begin_inset Index idx
31010 \begin_layout Plain Layout
31019 \begin_layout Standard
31020 In the box dialog you can adjust the box geometry in the fields
31029 The available units for the geometry are explained in Table
31030 \begin_inset space ~
31034 \begin_inset CommandInset ref
31036 reference "tab:Units"
31045 offers the following additional sizes:
31048 \begin_layout Description
31049 Depth This is the plain text
31050 \begin_inset Quotes eld
31054 \begin_inset Quotes erd
31058 It ignores the total depth when there are multiple text lines in the box:
31059 \begin_inset Newline newline
31063 \begin_inset Newline newline
31067 \begin_inset Newline newline
31071 \begin_inset Box Boxed
31081 height_special "depth"
31084 \begin_layout Plain Layout
31086 Box height set to 1
31087 \begin_inset space \thinspace{}
31096 \begin_inset Newline newline
31100 \begin_inset Newline newline
31106 \begin_layout Description
31107 Height This is the height of the text that is inside the box.
31109 \begin_inset space \thinspace{}
31113 \begin_inset space \space{}
31116 2 for this size will set the box height to 2
31117 \begin_inset space ~
31120 times the text height:
31121 \begin_inset Box Boxed
31131 height_special "height"
31134 \begin_layout Plain Layout
31136 Box height set to 2
31137 \begin_inset space \thinspace{}
31148 \begin_layout Description
31150 \begin_inset space ~
31153 Height This is the Height
31154 \begin_inset space \thinspace{}
31158 \begin_inset space \thinspace{}
31162 \begin_inset Box Boxed
31172 height_special "totalheight"
31175 \begin_layout Plain Layout
31177 Box height set to 1
31178 \begin_inset space \thinspace{}
31182 \begin_inset space ~
31193 \begin_layout Description
31194 Width This sets the width of the box as height:
31195 \begin_inset Box Boxed
31205 height_special "width"
31208 \begin_layout Plain Layout
31210 Box height set to 1
31211 \begin_inset space \thinspace{}
31222 \begin_layout Subsection
31224 \begin_inset Index idx
31227 \begin_layout Plain Layout
31236 \begin_layout Standard
31237 When you have chosen an
31240 \begin_inset space ~
31245 , the vertical box alignment can be:
31248 \begin_layout Description
31249 Top This is an example text line.
31251 \begin_inset Box Boxed
31261 height_special "totalheight"
31264 \begin_layout Plain Layout
31266 This box is top-aligned.
31271 This is an example text line.
31274 \begin_layout Description
31275 Middle This is an example text line.
31277 \begin_inset Box Boxed
31287 height_special "totalheight"
31290 \begin_layout Plain Layout
31292 This box is middle-aligned.
31297 This is an example text line.
31300 \begin_layout Description
31301 Bottom This is an example text line.
31303 \begin_inset Box Boxed
31313 height_special "totalheight"
31316 \begin_layout Plain Layout
31318 This box is bottom-aligned.
31323 This is an example text line.
31326 \begin_layout Standard
31327 \begin_inset Note Greyedout
31330 \begin_layout Plain Layout
31335 The vertical box alignment can be lost in the output when you have two
31336 boxes in a line and one has e.
31337 \begin_inset space \thinspace{}
31341 \begin_inset space \space{}
31344 a shadow and the other one not.
31352 \begin_layout Standard
31353 The horizontal box alignment can be set via LyX's paragraph dialog when
31354 you set the box into its own paragraph.
31357 \begin_layout Standard
31358 \begin_inset VSpace bigskip
31361 When you have chosen an
31364 \begin_inset space ~
31369 , the box content can be aligned vertically to:
31372 \begin_layout Description
31373 top This is an example text line.
31375 \begin_inset Box Boxed
31385 height_special "totalheight"
31388 \begin_layout Plain Layout
31390 This box text is top-aligned.
31395 This is an example text line.
31398 \begin_layout Description
31399 middle This is an example text line.
31401 \begin_inset Box Boxed
31411 height_special "totalheight"
31414 \begin_layout Plain Layout
31416 This box text is middle-aligned.
31421 This is an example text line.
31424 \begin_layout Description
31425 bottom This is an example text line.
31427 \begin_inset Box Boxed
31437 height_special "totalheight"
31440 \begin_layout Plain Layout
31442 This box text is bottom-aligned.
31447 This is an example text line.
31450 \begin_layout Description
31451 stretch This is an example text line.
31453 \begin_inset Box Boxed
31463 height_special "totalheight"
31466 \begin_layout Plain Layout
31471 \begin_layout Plain Layout
31476 \begin_layout Plain Layout
31483 This is an example text line.
31486 \begin_layout Standard
31487 To stretch the box content, it must consist of more than one paragraph.
31488 In the example above every text line is in an own paragraph.
31491 \begin_layout Standard
31492 \begin_inset VSpace bigskip
31495 To align the box content horizontally you can use LyX's paragraph dialog
31496 when you have chosen an
31499 \begin_inset space ~
31507 \begin_layout Standard
31509 \begin_inset Box Boxed
31519 height_special "totalheight"
31522 \begin_layout Plain Layout
31527 \begin_layout Plain Layout
31532 \begin_layout Plain Layout
31542 \begin_layout Standard
31543 If you have not set an
31546 \begin_inset space ~
31551 , you can align the box content horizontally in the box dialog.
31554 \begin_layout Standard
31556 \begin_inset Box Boxed
31566 height_special "totalheight"
31569 \begin_layout Plain Layout
31570 This box text is horizontally stretched.
31578 \begin_layout Subsection
31580 \begin_inset CommandInset label
31582 name "sec:Decoration"
31587 \begin_inset Index idx
31590 \begin_layout Plain Layout
31599 \begin_layout Standard
31600 The type of the box can be specified in the box dialog in the drop-down
31606 The following types are possible:
31609 \begin_layout Description
31611 \begin_inset space ~
31614 frame Nothing is drawn.
31617 \begin_layout Description
31619 \begin_inset space ~
31623 \begin_inset space ~
31626 frame This draws a rectangular frame around the box.
31627 The frame line thickness has the size of
31635 \begin_inset Box Boxed
31645 height_special "totalheight"
31648 \begin_layout Plain Layout
31658 \begin_layout Description
31660 \begin_inset space ~
31664 \begin_inset space ~
31667 thin This draws an oval frame around the box.
31668 The frame line thickness has the size 0.4
31669 \begin_inset space \thinspace{}
31674 \begin_inset Box ovalbox
31684 height_special "totalheight"
31687 \begin_layout Plain Layout
31697 \begin_layout Description
31699 \begin_inset space ~
31703 \begin_inset space ~
31706 thick This draws an oval frame around the box.
31707 The frame line thickness has the size 0.8
31708 \begin_inset space \thinspace{}
31713 \begin_inset Box Ovalbox
31723 height_special "totalheight"
31726 \begin_layout Plain Layout
31736 \begin_layout Description
31738 \begin_inset space ~
31741 shadow This draws a rectangular frame with a shadow around the box.
31742 The frame line thickness has the size of
31748 , the shadow has a width of 4
31749 \begin_inset space \thinspace{}
31754 \begin_inset Box Shadowbox
31764 height_special "totalheight"
31767 \begin_layout Plain Layout
31777 \begin_layout Description
31779 \begin_inset space ~
31782 background This draws a box with a red background.
31783 Unlike colored boxes
31787 \begin_layout Plain Layout
31789 \begin_inset space \thinspace{}
31793 \begin_inset CommandInset ref
31795 reference "sec:Colored-Boxes"
31804 , it always uses the whole column width and the box is set as its own paragraph.
31806 \begin_inset Box Shaded
31816 height_special "totalheight"
31819 \begin_layout Plain Layout
31820 Shaded background box
31828 \begin_layout Description
31830 \begin_inset space ~
31834 \begin_inset space ~
31837 frame This draws a double-line rectangular frame around the box.
31838 The line thickness of the inner frame is 0.75
31839 \begin_inset space \thinspace{}
31848 , the thickness of the outer frame is 1.5
31849 \begin_inset space \thinspace{}
31859 The distance between the lines is 1.5
31860 \begin_inset space \thinspace{}
31870 \begin_inset space \thinspace{}
31874 \begin_inset space \thinspace{}
31878 \begin_inset space \thinspace{}
31883 \begin_inset Box Doublebox
31893 height_special "totalheight"
31896 \begin_layout Plain Layout
31898 Double rectangular box
31906 \begin_layout Standard
31907 \begin_inset VSpace bigskip
31910 LyX's box label will reflect the different frame types.
31911 To be able to use all types, the LaTeX-package
31916 \begin_inset Index idx
31919 \begin_layout Plain Layout
31920 LaTeX-packages ! fancybox
31928 \begin_layout Standard
31929 \begin_inset VSpace bigskip
31932 When you use the decoration
31934 simple rectangular frame
31936 and no inner box, you can allow page breaks within a box.
31937 Note that then, unlike other framed boxes, the frame always uses the whole
31938 column width, the box is set as its own paragraph, and
31950 have no effect on this box type.
31951 The frame line thickness has the size of
31959 \begin_inset Box Framed
31969 height_special "totalheight"
31972 \begin_layout Plain Layout
31973 Allow page break box
31981 \begin_layout Section
31983 \begin_inset Index idx
31986 \begin_layout Plain Layout
31987 Boxes ! Customization
31995 \begin_layout Standard
31996 The default value for the size
32003 \begin_inset space \thinspace{}
32007 It can be changed with the following command in TeX-code to e.
32008 \begin_inset space \thinspace{}
32012 \begin_inset space \space{}
32016 \begin_inset space \thinspace{}
32022 \begin_layout Standard
32032 \begin_layout Standard
32036 \begin_layout Plain Layout
32048 \begin_inset Box Boxed
32058 height_special "totalheight"
32061 \begin_layout Plain Layout
32063 Rectangular box with
32070 \begin_inset space \thinspace{}
32074 \begin_inset space \thinspace{}
32078 \begin_inset space \thinspace{}
32090 \begin_layout Plain Layout
32104 \begin_layout Standard
32105 \begin_inset VSpace bigskip
32108 The space between the frame and the box content is for all frame styles
32110 \begin_inset space \thinspace{}
32114 You can change it by setting the length
32121 For example the command
32124 \begin_layout Standard
32134 \begin_layout Standard
32135 sets the value to 10
32136 \begin_inset space \thinspace{}
32139 pt, as with the following box:
32142 \begin_layout Standard
32146 \begin_layout Plain Layout
32158 \begin_inset Box Boxed
32168 height_special "totalheight"
32171 \begin_layout Plain Layout
32173 Rectangular box with
32180 \begin_inset space \thinspace{}
32184 \begin_inset space \thinspace{}
32188 \begin_inset space \thinspace{}
32200 \begin_layout Plain Layout
32214 \begin_layout Standard
32215 \begin_inset VSpace bigskip
32218 The diameter of the round corners of the oval boxes can be set with the
32229 \begin_layout Standard
32237 \begin_layout Standard
32238 sets the diameter to 1
32239 \begin_inset space \thinspace{}
32246 \begin_layout Standard
32254 \begin_layout Standard
32255 sets the diameter to
32258 \begin_inset space \thinspace{}
32262 \begin_inset space \thinspace{}
32265 minimum(width and height of box)
32277 \begin_layout Standard
32281 \begin_layout Plain Layout
32291 \begin_inset Box Ovalbox
32301 height_special "totalheight"
32304 \begin_layout Plain Layout
32313 \begin_inset space \thinspace{}
32317 \begin_inset space \thinspace{}
32321 \begin_inset space \thinspace{}
32333 \begin_layout Plain Layout
32345 \begin_layout Standard
32346 \begin_inset VSpace bigskip
32349 The size of the shadow can be adjusted by changing the length
32357 \begin_inset space \thinspace{}
32360 pt for the following box by this command:
32363 \begin_layout Standard
32373 \begin_layout Standard
32377 \begin_layout Plain Layout
32389 \begin_inset Box Shadowbox
32399 height_special "totalheight"
32402 \begin_layout Plain Layout
32411 \begin_inset space \thinspace{}
32415 \begin_inset space \thinspace{}
32419 \begin_inset space \thinspace{}
32431 \begin_layout Plain Layout
32445 \begin_layout Standard
32446 \begin_inset VSpace bigskip
32452 \begin_layout Standard
32453 The default value for the size
32460 \begin_inset space \thinspace{}
32464 The default space between the note content and the frame is 9
32465 \begin_inset space \thinspace{}
32468 pt and can be changed with the value of
32475 For example the frame appearance of the following
32479 is set with the TeX-Code commands
32482 \begin_layout Standard
32490 \begin_inset Newline newline
32500 \begin_layout Standard
32504 \begin_layout Plain Layout
32513 \begin_layout Plain Layout
32525 \begin_inset Box Framed
32535 height_special "totalheight"
32538 \begin_layout Plain Layout
32552 \begin_layout Plain Layout
32561 \begin_layout Plain Layout
32575 \begin_layout Standard
32576 \begin_inset VSpace bigskip
32582 \begin_layout Standard
32587 boxes the default space between the box content and the box border is 3
32588 \begin_inset space \thinspace{}
32591 pt and can be changed with the value of
32598 The default background color red can either be changed locally with the
32603 definecolor{shadecolor}
32605 or globally with the menu
32607 Tools\SpecialChar \menuseparator
32608 Preferences\SpecialChar \menuseparator
32609 Colors\SpecialChar \menuseparator
32611 \begin_inset space ~
32623 command is explained in section
32624 \begin_inset space ~
32628 \begin_inset CommandInset ref
32630 reference "sec:Colored-Tables"
32638 \begin_layout Plain Layout
32645 requires the LaTeX-package
32649 in the preamble, see section
32650 \begin_inset space ~
32654 \begin_inset CommandInset ref
32656 reference "sec:Colored-Boxes"
32665 For example the appearance of the following shaded background box is set
32666 with the TeX-Code commands
32669 \begin_layout Standard
32679 \begin_inset Newline newline
32686 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32689 \begin_layout Standard
32693 \begin_layout Plain Layout
32702 \begin_layout Plain Layout
32706 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
32712 \begin_inset Box Shaded
32722 height_special "totalheight"
32725 \begin_layout Plain Layout
32728 This is yellow text in a
32738 box with dark green background.
32747 \begin_layout Plain Layout
32756 \begin_layout Plain Layout
32760 definecolor{shadecolor}{rgb}{1,0,0}
32768 \begin_layout Standard
32769 \begin_inset VSpace bigskip
32772 Changed lengths and widths are valid for all boxes following the commands
32776 \begin_layout Section
32778 \begin_inset CommandInset label
32780 name "sec:Minipages"
32785 \begin_inset Index idx
32788 \begin_layout Plain Layout
32797 \begin_layout Standard
32798 Minipages are treated by LaTeX as pages within pages and can therefore for
32799 example have their own footnotes.
32802 \begin_layout Standard
32803 Minipages are useful when you write documents with different languages.
32806 \begin_layout Standard
32807 Below are two example minipages side by side.
32808 Their width is set to 45
32809 \begin_inset space \thinspace{}
32812 col% and they are separated by a horizontal fill, that was inserted via
32815 Insert\SpecialChar \menuseparator
32817 \begin_inset space ~
32820 Formatting\SpecialChar \menuseparator
32822 \begin_inset space ~
32828 \begin_inset Newpage newpage
32834 \begin_layout Standard
32835 \begin_inset Box Frameless
32845 height_special "totalheight"
32848 \begin_layout Plain Layout
32851 Dies ist ein deutscher Text.
32852 Dies ist ein deutscher Text.
32853 Dies ist ein deutscher Text.
32854 Dies ist ein deutscher Text.
32855 Dies ist ein deutscher Text.
32856 Dies ist ein deutscher Text.
32857 Dies ist ein deutscher Text.
32858 Dies ist ein deutscher Text.
32859 Dies ist ein deutscher Text.
32860 Dies ist ein deutscher Text.
32861 Dies ist ein deutscher Text.
32862 Dies ist ein deutscher Text.
32863 Dies ist ein deutscher Text
32867 \begin_layout Plain Layout
32870 Dies ist eine deutsche Fußnote.
32876 Dies ist ein deutscher Text.
32877 Dies ist ein deutscher Text.
32883 \begin_inset space \hfill{}
32887 \begin_inset Box Frameless
32897 height_special "totalheight"
32900 \begin_layout Plain Layout
32901 This is an English Text.
32902 This is an English Text.
32903 This is an English Text.
32904 This is an English Text.
32905 This is an English Text.
32906 This is an English Text.
32907 This is an English Text.
32908 This is an English Text.
32909 This is an English Text.
32910 This is an English Text.
32911 This is an English Text.
32912 This is an English Text.
32913 This is an English Text.
32914 This is an English Text.
32915 This is an English Text.
32916 This is an English Text.
32920 \begin_layout Plain Layout
32921 This is an English footnote.
32926 This is an English Text.
32934 \begin_layout Standard
32935 \begin_inset VSpace bigskip
32938 The document-wide paragraph settings are ignored within minipages.
32939 That means that there will be no space between paragraphs in minipages
32940 although you set it to e.
32941 \begin_inset space \thinspace{}
32945 \begin_inset space \space{}
32952 in the document settings.
32955 \begin_layout Standard
32956 Minipages can also be used to set a background color for text parts, see
32958 \begin_inset space ~
32962 \begin_inset CommandInset ref
32964 reference "sub:Color-for-Paragraphs"
32971 \begin_layout Standard
32972 \begin_inset Note Greyedout
32975 \begin_layout Plain Layout
32980 You cannot have floats or margin notes inside minipages but minipages can
32981 be used inside tables, floats, and other boxes.
32989 \begin_layout Section
32991 \begin_inset CommandInset label
32993 name "sec:Parboxes"
32998 \begin_inset Index idx
33001 \begin_layout Plain Layout
33010 \begin_layout Standard
33011 Parboxes are very similar to minipages with the difference that they cannot
33015 \begin_layout Standard
33017 \begin_inset Box Frameless
33027 height_special "totalheight"
33030 \begin_layout Plain Layout
33031 This a text within a parbox.
33032 This a text within a parbox.
33035 \begin_layout Plain Layout
33036 This footnote won't appear:
33040 \begin_layout Plain Layout
33041 This footnote is inside a parbox and will therefore not appear.
33054 \begin_layout Section
33055 Boxes for Words and Characters
33056 \begin_inset Index idx
33059 \begin_layout Plain Layout
33060 Boxes ! for Characters
33068 \begin_layout Subsection
33069 Prevent Hyphenation
33070 \begin_inset CommandInset label
33072 name "sec:Prevent-Hyphenation"
33077 \begin_inset Index idx
33080 \begin_layout Plain Layout
33081 Boxes ! to Prevent Hyphenation
33089 \begin_layout Standard
33090 You can use the box type
33094 to prevent words or text from being hyphenated.
33095 \begin_inset Newline newline
33098 Here is an example text:
33101 \begin_layout Standard
33102 This line is an example to show how you can prevent the hyphenation of
33103 \begin_inset Quotes eld
33107 \begin_inset Quotes erd
33113 \begin_layout Standard
33114 To prevent the hyphenation of the word
33115 \begin_inset Quotes eld
33119 \begin_inset Quotes erd
33122 , put the word into a box, set the
33125 \begin_inset space ~
33135 \begin_inset space \thinspace{}
33141 \begin_layout Standard
33142 This is the result:
33145 \begin_layout Standard
33146 This line is an example to show how you can prevent the hyphenation of
33147 \begin_inset Box Frameless
33157 height_special "totalheight"
33160 \begin_layout Plain Layout
33161 \begin_inset Quotes eld
33165 \begin_inset Quotes erd
33176 \begin_layout Standard
33177 You can alternatively set the command
33178 \begin_inset Quotes eld
33188 \begin_inset Quotes grd
33191 as TeX-Code directly before the word:
33194 \begin_layout Standard
33195 This line is an example to show how you can prevent the hyphenation of
33196 \begin_inset Quotes eld
33203 \begin_layout Plain Layout
33213 \begin_inset Quotes erd
33219 \begin_layout Standard
33220 Of course the word now protrudes over the side margin.
33221 To avoid this, add via the menu
33223 Insert\SpecialChar \menuseparator
33224 Formatting\SpecialChar \menuseparator
33226 \begin_inset space ~
33230 \begin_inset space ~
33238 arg "newline-insert newline"
33241 ) a line break before the word:
33244 \begin_layout Standard
33245 This line is an example to show how you can prevent the hyphenation of
33246 \begin_inset Newline newline
33250 \begin_inset Box Frameless
33260 height_special "totalheight"
33263 \begin_layout Plain Layout
33264 \begin_inset Quotes eld
33268 \begin_inset Quotes erd
33279 \begin_layout Subsection
33281 \begin_inset CommandInset label
33283 name "sub:Vertical-Alignment"
33288 \begin_inset Index idx
33291 \begin_layout Plain Layout
33292 Boxes ! for Vertical Alignment
33298 \begin_inset Index idx
33301 \begin_layout Plain Layout
33310 \begin_layout Standard
33311 With the help of the command
33317 you can align words, characters or other boxes vertically relative to the
33325 is used with the following scheme:
33328 \begin_layout Standard
33333 raisebox{lift}[height][depth]{box content}
33336 \begin_layout Standard
33337 The lift can be a positive value to raise the box or a negative value to
33341 \begin_layout Standard
33342 To align for example the word
33343 \begin_inset Quotes eld
33347 \begin_inset Quotes erd
33350 so that the bottom of the
33351 \begin_inset Quotes eld
33355 \begin_inset Quotes erd
33359 \begin_inset Quotes eld
33363 \begin_inset Quotes erd
33366 is at the baseline, insert the command
33369 \begin_layout Standard
33379 \begin_layout Standard
33380 in TeX-Code before the word.
33381 After the word insert a closing brace
33382 \begin_inset Quotes eld
33390 \begin_inset Quotes erd
33394 \begin_inset Newline newline
33397 This is the result:
33400 \begin_layout Standard
33401 This is a text line with the word
33405 \begin_layout Plain Layout
33417 \begin_inset Quotes eld
33421 \begin_inset Quotes erd
33428 \begin_layout Plain Layout
33438 \begin_layout Standard
33439 \begin_inset VSpace bigskip
33442 When you raise or lower characters in a line, the line distance will be
33446 \begin_layout Standard
33447 This is a text line with the word
33451 \begin_layout Plain Layout
33463 \begin_inset Quotes eld
33467 \begin_inset Quotes erd
33474 \begin_layout Plain Layout
33482 \begin_inset Newline newline
33485 This is a text line with the word
33489 \begin_layout Plain Layout
33499 \begin_inset Quotes eld
33503 \begin_inset Quotes erd
33510 \begin_layout Plain Layout
33520 \begin_layout Standard
33521 If you want to prevent this for a certain reason, set the box height to
33526 \begin_layout Standard
33536 \begin_layout Standard
33537 This is a text line with the word
33541 \begin_layout Plain Layout
33553 \begin_inset Quotes eld
33557 \begin_inset Quotes erd
33564 \begin_layout Plain Layout
33572 \begin_inset Newline newline
33575 This is a text line with the word
33579 \begin_layout Plain Layout
33583 raisebox{0.5cm}[0pt]{
33589 \begin_inset Quotes eld
33593 \begin_inset Quotes erd
33600 \begin_layout Plain Layout
33610 \begin_layout Section
33612 \begin_inset CommandInset label
33614 name "sec:Colored-Boxes"
33619 \begin_inset Index idx
33622 \begin_layout Plain Layout
33631 \begin_layout Subsection
33633 \begin_inset Index idx
33636 \begin_layout Plain Layout
33645 \begin_layout Standard
33646 To color the background of text the text must be put into a so called
33647 \begin_inset Quotes eld
33651 \begin_inset Quotes erd
33655 This requires that the LaTeX-package
33660 \begin_inset Index idx
33663 \begin_layout Plain Layout
33664 LaTeX-packages ! color
33669 is loaded in the document preamble with the command
33672 \begin_layout Standard
33677 @ifundefined{textcolor}
33678 \begin_inset Newline newline
33682 \begin_inset Phantom HPhantom
33685 \begin_layout Plain Layout
33688 \begin_inset space ~
33698 usepackage{color}}{}
33701 \begin_layout Standard
33706 will be loaded automatically by LyX when you color text.
33710 \begin_layout Plain Layout
33711 To avoid it being loaded twice the command
33725 \begin_layout Standard
33726 \begin_inset VSpace medskip
33729 Colorboxes are created with the command
33736 This will be used with the following scheme:
33739 \begin_layout Standard
33744 colorbox{color}{box content}
33747 \begin_layout Standard
33748 The box content can also be a box and colorboxes can also be within other
33752 \begin_layout Standard
33753 The following colors are predefined:
33754 \begin_inset Newline newline
33793 \begin_inset Newline newline
33796 You can also define your own color as described in section
33797 \begin_inset space ~
33801 \begin_inset CommandInset ref
33803 reference "sec:Colored-Tables"
33810 \begin_layout Standard
33812 \begin_inset space \thinspace{}
33816 \begin_inset space \space{}
33819 a red background for a word, insert the command
33822 \begin_layout Standard
33830 \begin_layout Standard
33831 before the word in TeX-Code.
33832 After the word insert a closing brace
33833 \begin_inset Quotes eld
33841 \begin_inset Quotes erd
33845 \begin_inset Newline newline
33848 This is the result:
33851 \begin_layout Standard
33852 This is a line where the word
33856 \begin_layout Plain Layout
33866 \begin_inset Quotes eld
33870 \begin_inset Quotes erd
33877 \begin_layout Plain Layout
33884 has a red background.
33887 \begin_layout Standard
33888 \begin_inset VSpace bigskip
33891 If you would like the box frame in a different color, you can use the command
33898 with the following scheme:
33901 \begin_layout Standard
33906 fcolorbox{frame color}{box color}{box content}
33909 \begin_layout Standard
33923 The frame thickness and the space between the frame and the box content
33924 can be adjusted with the lengths
33936 , respectively, as described in section
33937 \begin_inset space ~
33941 \begin_inset CommandInset ref
33943 reference "sec:Decoration"
33950 \begin_layout Standard
33951 For the following example the command
33954 \begin_layout Standard
33959 fcolorbox{cyan}{magenta}{
33962 \begin_layout Standard
33966 \begin_layout Standard
33967 Here is an example where the frame line thickness was set to 1
33968 \begin_inset space \thinspace{}
33972 \begin_inset Newline newline
33979 \begin_layout Plain Layout
33994 \begin_layout Plain Layout
33998 fcolorbox{cyan}{magenta}{
34003 This is text within a colored, framed box.
34007 \begin_layout Plain Layout
34017 \begin_layout Standard
34018 \begin_inset VSpace bigskip
34021 Of course you can also have colored text inside a colorbox:
34022 \begin_inset Newline newline
34029 \begin_layout Plain Layout
34033 fcolorbox{cyan}{magenta}{
34040 This is colored text within a colored, framed box.
34046 \begin_layout Plain Layout
34057 \begin_layout Plain Layout
34071 \begin_layout Standard
34072 \begin_inset VSpace medskip
34078 \begin_layout Standard
34079 \begin_inset Note Greyedout
34082 \begin_layout Plain Layout
34087 Text in colorboxes cannot have line breaks.
34088 To color multiple text lines or paragraphs, use a box inside a colorbox
34089 as described in the following.
34097 \begin_layout Subsection
34098 Color for Paragraphs
34099 \begin_inset CommandInset label
34101 name "sub:Color-for-Paragraphs"
34106 \begin_inset Index idx
34109 \begin_layout Plain Layout
34110 Color ! for Paragraphs
34118 \begin_layout Standard
34119 To set the background color for more than one text line, put the text into
34121 Before the minipage insert the
34130 \begin_layout Standard
34138 \begin_layout Standard
34140 After the minipage insert a closing brace
34141 \begin_inset Quotes eld
34149 \begin_inset Quotes erd
34155 \begin_layout Standard
34159 \begin_layout Plain Layout
34163 colorbox{lightgrey}{
34169 \begin_inset Box Frameless
34179 height_special "totalheight"
34182 \begin_layout Plain Layout
34183 This is text with background color.
34184 This is text with background color.
34187 \begin_layout Plain Layout
34188 \begin_inset VSpace defskip
34191 The text can have footnotes
34195 \begin_layout Plain Layout
34196 Another example footnote
34201 and can include tables and figures.
34204 \begin_layout Plain Layout
34206 \begin_inset Tabular
34207 <lyxtabular version="3" rows="3" columns="3">
34208 <features tabularvalignment="middle">
34209 <column alignment="center" valignment="top" width="0">
34210 <column alignment="center" valignment="top" width="0">
34211 <column alignment="center" valignment="top" width="0">
34213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34216 \begin_layout Plain Layout
34222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34225 \begin_layout Plain Layout
34231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34234 \begin_layout Plain Layout
34242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34245 \begin_layout Plain Layout
34251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34254 \begin_layout Plain Layout
34256 \begin_inset Quotes erd
34264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34267 \begin_layout Plain Layout
34275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34278 \begin_layout Plain Layout
34284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34287 \begin_layout Plain Layout
34293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34296 \begin_layout Plain Layout
34316 \begin_layout Plain Layout
34326 \begin_layout Section
34327 Rotated and Scaled Boxes
34330 \begin_layout Standard
34331 To use the commands described in this section, the LaTeX-package
34336 \begin_inset Index idx
34339 \begin_layout Plain Layout
34340 LaTeX-packages ! graphicx
34345 needs to be loaded in the document preamble with the command
34348 \begin_layout Standard
34353 @ifundefined{rotatebox}
34354 \begin_inset Newline newline
34358 \begin_inset Phantom HPhantom
34361 \begin_layout Plain Layout
34364 \begin_inset space ~
34374 usepackage{graphicx}}{}
34377 \begin_layout Standard
34378 \begin_inset Note Greyedout
34381 \begin_layout Plain Layout
34386 Some DVI-viewers can't display rotated or scaled material.
34394 \begin_layout Standard
34395 \begin_inset Note Greyedout
34398 \begin_layout Plain Layout
34403 Floats mustn't be inside a rotated or scaled box.
34411 \begin_layout Subsection
34413 \begin_inset Index idx
34416 \begin_layout Plain Layout
34423 \begin_inset Index idx
34426 \begin_layout Plain Layout
34433 \begin_inset Index idx
34436 \begin_layout Plain Layout
34443 \begin_inset Index idx
34446 \begin_layout Plain Layout
34447 Table Customization ! Rotating
34455 \begin_layout Standard
34456 To rotate material, you can put it into a rotated box.
34457 Such a box is created using the command
34463 in TeX-Code with the following scheme:
34466 \begin_layout Standard
34471 rotatebox[rotation origin]{rotation angle}{box content}
34474 \begin_layout Standard
34475 The rotation origin is specified in the form
34480 The following positions are possible:
34500 (top), along with meaningful combinations of the four base positions.
34505 means that the rotation origin is at the top left corner of the box.
34506 When no rotation origin is specified, the position
34511 The rotation angle is a number that can be negative that specifies the
34513 The rotation direction is counterclockwise.
34516 \begin_layout Standard
34517 In the following example the command
34521 rotatebox[origin=c]{60}{
34523 was inserted as TeX-Code before the text
34524 \begin_inset Quotes eld
34528 \begin_inset Quotes erd
34531 ; after the text the box was closed by a closing brace
34538 \begin_layout Standard
34543 \begin_layout Plain Layout
34547 rotatebox[origin=c]{60}{
34556 \begin_layout Plain Layout
34566 \begin_layout Standard
34567 The box content can also be another box or an inline formula:
34570 \begin_layout Standard
34575 \begin_layout Plain Layout
34579 rotatebox[origin=r]{-60}{
34585 \begin_inset Box Doublebox
34595 height_special "totalheight"
34598 \begin_layout Plain Layout
34608 \begin_layout Plain Layout
34619 \begin_layout Plain Layout
34623 rotatebox[origin=lb]{60}{
34629 \begin_inset Formula $\int A\,\mathrm{d}x=B$
34636 \begin_layout Plain Layout
34646 \begin_layout Standard
34647 or an image or table:
34650 \begin_layout Standard
34655 \begin_layout Plain Layout
34659 rotatebox[origin=lb]{90}{
34665 \begin_inset Graphics
34666 filename clipart/platypus.eps
34676 \begin_layout Plain Layout
34683 with a rotated image
34687 \begin_layout Plain Layout
34691 rotatebox[origin=l]{-90}{
34697 \begin_inset Tabular
34698 <lyxtabular version="3" rows="2" columns="2">
34699 <features tabularvalignment="middle">
34700 <column alignment="center" valignment="top" width="0">
34701 <column alignment="center" valignment="top" width="0">
34703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34706 \begin_layout Plain Layout
34712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34715 \begin_layout Plain Layout
34723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34726 \begin_layout Plain Layout
34732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34735 \begin_layout Plain Layout
34750 \begin_layout Plain Layout
34760 \begin_layout Subsection
34762 \begin_inset Index idx
34765 \begin_layout Plain Layout
34772 \begin_inset Index idx
34775 \begin_layout Plain Layout
34782 \begin_inset Index idx
34785 \begin_layout Plain Layout
34792 \begin_inset Index idx
34795 \begin_layout Plain Layout
34796 Table Customization ! Scaling
34804 \begin_layout Standard
34805 To scale material the commands
34817 can be used as TeX-Code.
34820 \begin_layout Standard
34827 is used with the following scheme:
34830 \begin_layout Standard
34835 scalebox{horizontal}[vertical]{box content}
34838 \begin_layout Standard
34839 Horizontal and vertical are the corresponding scaling factors.
34840 If no vertical scaling factor is given, the horizontal factor will also
34841 be used as the vertical one.
34844 \begin_layout Standard
34851 creates for example a double size
34855 \begin_layout Plain Layout
34868 \begin_layout Plain Layout
34875 , compared with the document text size.
34878 \begin_layout Standard
34883 scalebox{2}[1]{Hello}
34885 on the other hand distorts the
34889 \begin_layout Plain Layout
34902 \begin_layout Plain Layout
34912 \begin_layout Standard
34913 If the scaling factor is negative, the box content will be mirrored.
34914 Therefore the command
34918 scalebox{-1}[1]{Hello}
34920 can be used to create mirror writing:
34924 \begin_layout Plain Layout
34937 \begin_layout Plain Layout
34947 \begin_layout Standard
34952 scalebox{1}[-1]{Hello}
34958 \begin_layout Plain Layout
34971 \begin_layout Plain Layout
34981 \begin_layout Standard
34986 scalebox{-1}[1]{box content}
34988 there exists the command
34989 \begin_inset Newline newline
34996 reflectbox{box content}
35001 \begin_layout Standard
35002 \begin_inset VSpace bigskip
35011 is used to scale the box to a defined width and height.
35012 The command scheme is:
35015 \begin_layout Standard
35020 resizebox{width}{height}{box content}
35023 \begin_layout Standard
35024 If one of the two command arguments given is an exclamation mark
35028 , the size is set so that the aspect ratio of the box content is kept.
35031 \begin_layout Standard
35036 resizebox{2cm}{1cm}{Hello}
35042 \begin_layout Plain Layout
35046 resizebox{2cm}{1cm}{
35055 \begin_layout Plain Layout
35063 \begin_inset Newline newline
35070 resizebox{2cm}{!}{Hello}
35076 \begin_layout Plain Layout
35089 \begin_layout Plain Layout
35099 \begin_layout Standard
35100 \begin_inset VSpace bigskip
35104 \begin_inset Note Greyedout
35107 \begin_layout Plain Layout
35124 are set to zero, no LaTeX-errors occur when exporting the document but
35125 the exported files can not or only partly be displayed.
35133 \begin_layout Standard
35134 \begin_inset VSpace bigskip
35140 \begin_layout Standard
35141 The boxes can be combined in any order.
35143 \begin_inset space \thinspace{}
35147 \begin_inset space \space{}
35151 \begin_inset Newline newline
35158 rotatebox[origin=c]{-45}{
35162 reflectbox{Hello}}}
35163 \begin_inset Newline newline
35171 \begin_layout Standard
35176 \begin_layout Plain Layout
35180 rotatebox[origin=c]{-45}{
35193 \begin_layout Plain Layout
35203 \begin_layout Standard
35205 Images, tables, and inline formulas are allowed as box content:
35208 \begin_layout Standard
35213 \begin_layout Plain Layout
35217 rotatebox[origin=c]{-30}{
35227 \begin_inset Graphics
35228 filename clipart/platypus.eps
35238 \begin_layout Plain Layout
35249 \begin_layout Plain Layout
35253 rotatebox[origin=c]{-45}{
35263 \begin_inset Tabular
35264 <lyxtabular version="3" rows="2" columns="2">
35265 <features tabularvalignment="middle">
35266 <column alignment="center" valignment="top" width="0">
35267 <column alignment="center" valignment="top" width="0">
35269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35272 \begin_layout Plain Layout
35278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35281 \begin_layout Plain Layout
35289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35292 \begin_layout Plain Layout
35298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35301 \begin_layout Plain Layout
35316 \begin_layout Plain Layout
35327 \begin_layout Plain Layout
35331 rotatebox[origin=c]{-45}{
35341 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35348 \begin_layout Plain Layout
35358 \begin_layout Standard
35359 When the global formula style
35363 is used in the document
35367 \begin_layout Plain Layout
35369 \begin_inset Quotes eld
35373 \begin_inset Quotes erd
35376 is added to the document class options.
35381 , display style formulas can also be scaled.
35384 \begin_layout Chapter
35385 Objects Surrounded by Text
35386 \begin_inset Index idx
35389 \begin_layout Plain Layout
35398 \begin_layout Section
35400 \begin_inset CommandInset label
35402 name "sec:Wrap-Floats"
35407 \begin_inset Index idx
35410 \begin_layout Plain Layout
35411 Floats ! Wrap Floats
35417 \begin_inset Index idx
35420 \begin_layout Plain Layout
35421 Surrounded by text ! Wrap Floats
35429 \begin_layout Standard
35430 \begin_inset Wrap figure
35437 \begin_layout Plain Layout
35438 \begin_inset Graphics
35439 filename clipart/mobius.eps
35441 scaleBeforeRotation
35442 rotateOrigin center
35449 \begin_layout Plain Layout
35450 \begin_inset Caption
35452 \begin_layout Plain Layout
35453 \begin_inset CommandInset label
35455 name "fig:This-is-a"
35459 This is a figure wrap float.
35469 This float type is used if you want to wrap text around a figure or table
35470 so that it only occupies some fraction of the column width.
35471 It can be inserted using the menu
35473 Insert\SpecialChar \menuseparator
35474 Floats\SpecialChar \menuseparator
35476 \begin_inset space ~
35480 \begin_inset space ~
35488 \begin_inset space ~
35492 \begin_inset space ~
35497 if the LaTeX-package
35502 \begin_inset Index idx
35505 \begin_layout Plain Layout
35506 LaTeX-packages ! wrapfig
35510 \begin_layout Plain Layout
35528 \begin_layout Plain Layout
35529 Installing a LaTeX-package is explained it in the
35532 \begin_inset space ~
35542 The settings of the float can be modified by right-clicking on the float
35544 The mandatory settings are the float
35557 that specifies how much the float is set into the paragraph
35558 \begin_inset space \thinspace{}
35562 \begin_inset space \thinspace{}
35565 page margin, and the
35568 \begin_inset space ~
35573 that specifies how many text lines the float will approximately need.
35574 The line span is often hard to approximate; so it is better only to use
35575 it when you encounter float placement problems.
35576 You can furthermore decide if LaTeX is allowed to let the float float within
35577 the paragraph or to surrounding paragraphs.
35579 \begin_inset space ~
35583 \begin_inset CommandInset ref
35585 reference "fig:This-is-a"
35589 is an example text wrap float with a width of 40
35590 \begin_inset space \thinspace{}
35594 \begin_inset space \thinspace{}
35597 cm overhang, set to the left.
35600 \begin_layout Standard
35601 \begin_inset Note Greyedout
35604 \begin_layout Plain Layout
35610 \begin_inset space ~
35613 wrap float floats are fragile! E.
35614 \begin_inset space \thinspace{}
35618 \begin_inset space \space{}
35621 having a figure too close to the bottom of the page can mess things up in
35622 such a way that the float does not appear in the output or that it is placed
35623 over some other text.
35631 \begin_layout Standard
35632 In general, the following applies for wrap floats:
35635 \begin_layout Itemize
35636 They should not be placed in paragraphs that run over a page break.
35637 That means that wrap floats are better inserted in their exact place when
35638 the document is almost finished and you are able to estimate where page
35639 breaks will appear.
35642 \begin_layout Itemize
35643 They should either be placed in their own paragraph before the paragraph
35644 where they should wrap into or within a paragraph.
35647 \begin_layout Itemize
35648 In consecutive paragraphs they may cause troubles, so ensure that there
35649 is a text paragraph between them as separator.
35652 \begin_layout Itemize
35653 They are not allowed in section headings or tables.
35656 \begin_layout Itemize
35657 Their numbering and referencing works as described in chap.
35658 \begin_inset space \thinspace{}
35662 \begin_inset CommandInset ref
35664 reference "chap:Floats"
35671 \begin_layout Section
35672 Surrounded Fixed Objects
35673 \begin_inset Index idx
35676 \begin_layout Plain Layout
35677 Surrounded by text ! Fixed objects
35685 \begin_layout Standard
35686 The wrap floats described in sec.
35687 \begin_inset space \thinspace{}
35691 \begin_inset CommandInset ref
35693 reference "sec:Wrap-Floats"
35697 have these positions in the paragraph:
35700 \begin_layout Standard
35703 \begin_inset Tabular
35704 <lyxtabular version="3" rows="2" columns="2">
35705 <features tabularvalignment="middle">
35706 <column alignment="center" valignment="top" width="0">
35707 <column alignment="center" valignment="top" width="0">
35709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35712 \begin_layout Plain Layout
35713 \begin_inset Graphics
35714 filename ../images/dialog-show-new-inset_graphics.png
35716 scaleBeforeRotation
35725 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35728 \begin_layout Plain Layout
35736 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35739 \begin_layout Plain Layout
35745 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35748 \begin_layout Plain Layout
35760 \begin_inset Tabular
35761 <lyxtabular version="3" rows="2" columns="2">
35762 <features tabularvalignment="middle">
35763 <column alignment="center" valignment="top" width="0">
35764 <column alignment="center" valignment="top" width="0">
35766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35769 \begin_layout Plain Layout
35775 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35778 \begin_layout Plain Layout
35779 \begin_inset Graphics
35780 filename ../images/dialog-show-new-inset_graphics.png
35782 scaleBeforeRotation
35793 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35796 \begin_layout Plain Layout
35802 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35805 \begin_layout Plain Layout
35819 \begin_layout Standard
35820 To get an object exactly at the position where it is inserted, for example
35821 to get one of these positions:
35822 \begin_inset VSpace defskip
35828 \begin_layout Standard
35831 \begin_inset Tabular
35832 <lyxtabular version="3" rows="2" columns="2">
35833 <features tabularvalignment="middle">
35834 <column alignment="center" valignment="top" width="0">
35835 <column alignment="center" valignment="top" width="0">
35837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35840 \begin_layout Plain Layout
35846 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35849 \begin_layout Plain Layout
35857 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35860 \begin_layout Plain Layout
35861 \begin_inset Graphics
35862 filename ../images/dialog-show-new-inset_graphics.png
35864 scaleBeforeRotation
35873 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35876 \begin_layout Plain Layout
35888 \begin_inset Tabular
35889 <lyxtabular version="3" rows="2" columns="2">
35890 <features tabularvalignment="middle">
35891 <column alignment="center" valignment="top" width="0">
35892 <column alignment="center" valignment="top" width="0">
35894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35897 \begin_layout Plain Layout
35903 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35906 \begin_layout Plain Layout
35914 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35917 \begin_layout Plain Layout
35923 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
35926 \begin_layout Plain Layout
35927 \begin_inset Graphics
35928 filename ../images/dialog-show-new-inset_graphics.png
35930 scaleBeforeRotation
35945 \begin_inset Tabular
35946 <lyxtabular version="3" rows="2" columns="3">
35947 <features tabularvalignment="middle">
35948 <column alignment="center" valignment="top" width="0">
35949 <column alignment="center" valignment="top" width="0">
35950 <column alignment="center" valignment="top" width="0">
35952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35955 \begin_layout Plain Layout
35961 <cell alignment="center" valignment="top" topline="true" usebox="none">
35964 \begin_layout Plain Layout
35965 \begin_inset Graphics
35966 filename ../images/dialog-show-new-inset_graphics.png
35968 scaleBeforeRotation
35977 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
35980 \begin_layout Plain Layout
35988 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
35991 \begin_layout Plain Layout
35997 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36000 \begin_layout Plain Layout
36006 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36009 \begin_layout Plain Layout
36021 \begin_inset Tabular
36022 <lyxtabular version="3" rows="2" columns="3">
36023 <features tabularvalignment="middle">
36024 <column alignment="center" valignment="top" width="0">
36025 <column alignment="center" valignment="top" width="0">
36026 <column alignment="center" valignment="top" width="0">
36028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36031 \begin_layout Plain Layout
36037 <cell alignment="center" valignment="top" topline="true" usebox="none">
36040 \begin_layout Plain Layout
36046 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36049 \begin_layout Plain Layout
36057 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36060 \begin_layout Plain Layout
36066 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36069 \begin_layout Plain Layout
36070 \begin_inset Graphics
36071 filename ../images/dialog-show-new-inset_graphics.png
36073 scaleBeforeRotation
36082 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36085 \begin_layout Plain Layout
36099 \begin_layout Standard
36102 \begin_inset Tabular
36103 <lyxtabular version="3" rows="3" columns="2">
36104 <features tabularvalignment="middle">
36105 <column alignment="center" valignment="top" width="0">
36106 <column alignment="center" valignment="top" width="0">
36108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36111 \begin_layout Plain Layout
36117 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36120 \begin_layout Plain Layout
36128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36131 \begin_layout Plain Layout
36132 \begin_inset Graphics
36133 filename ../images/dialog-show-new-inset_graphics.png
36135 scaleBeforeRotation
36144 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36147 \begin_layout Plain Layout
36155 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36158 \begin_layout Plain Layout
36164 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36167 \begin_layout Plain Layout
36179 \begin_inset Tabular
36180 <lyxtabular version="3" rows="3" columns="3">
36181 <features tabularvalignment="middle">
36182 <column alignment="center" valignment="top" width="0">
36183 <column alignment="center" valignment="top" width="0">
36184 <column alignment="center" valignment="top" width="0">
36186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36189 \begin_layout Plain Layout
36195 <cell alignment="center" valignment="top" topline="true" usebox="none">
36198 \begin_layout Plain Layout
36204 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36207 \begin_layout Plain Layout
36215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36218 \begin_layout Plain Layout
36224 <cell alignment="center" valignment="top" usebox="none">
36227 \begin_layout Plain Layout
36228 \begin_inset Graphics
36229 filename ../images/dialog-show-new-inset_graphics.png
36231 scaleBeforeRotation
36240 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36243 \begin_layout Plain Layout
36251 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36254 \begin_layout Plain Layout
36260 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36263 \begin_layout Plain Layout
36269 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36272 \begin_layout Plain Layout
36284 \begin_inset Tabular
36285 <lyxtabular version="3" rows="3" columns="2">
36286 <features tabularvalignment="middle">
36287 <column alignment="center" valignment="top" width="0">
36288 <column alignment="center" valignment="top" width="0">
36290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36293 \begin_layout Plain Layout
36299 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36302 \begin_layout Plain Layout
36310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
36313 \begin_layout Plain Layout
36319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
36322 \begin_layout Plain Layout
36323 \begin_inset Graphics
36324 filename ../images/dialog-show-new-inset_graphics.png
36326 scaleBeforeRotation
36337 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36340 \begin_layout Plain Layout
36346 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36349 \begin_layout Plain Layout
36363 \begin_layout Standard
36365 you can use the LaTeX-package
36370 \begin_inset Index idx
36373 \begin_layout Plain Layout
36374 LaTeX-packages ! picinpar
36380 Here is an example:
36383 \begin_layout Standard
36387 \begin_layout Plain Layout
36397 \begin_inset Note Note
36400 \begin_layout Plain Layout
36401 The following section will only be displayed when the LaTeX-package
36413 \begin_layout Standard
36417 \begin_layout Plain Layout
36421 begin{window}[2,c,{
36427 \begin_inset Graphics
36428 filename clipart/mobius.eps
36431 scaleBeforeRotation
36432 rotateOrigin center
36440 \begin_layout Plain Layout
36445 \begin_layout Plain Layout
36454 It was in the spring of the year 1894 that all London was interested, and
36455 the fashionable world dismayed, by the murder of the Honourable Ronald
36456 Adair under most unusual and inexplicable circumstances.
36457 The public has already learned those particulars of the crime which
36463 \begin_layout Plain Layout
36474 came out in the police investigation, but a good deal was suppressed upon
36475 that occasion, since the case for the prosecution was so overwhelmingly
36476 strong that it was not necessary to bring forward all the facts.
36477 Only now, at the end of nearly ten years, am I allowed to supply those
36478 missing links which make up the whole of that remarkable chain.
36484 \begin_layout Plain Layout
36496 \begin_layout Standard
36500 \begin_layout Plain Layout
36509 Footnote of the paragraph with the fixed object.
36513 \begin_layout Plain Layout
36523 \begin_layout Standard
36524 Surrounded fixed objects are used to let text float around them, at which
36525 the object's position in the paragraph can be determined by the number
36527 In contrary to floats is it not possible to have a numbered caption.
36530 \begin_layout Standard
36531 A fixed object is inserted by adding the command
36534 \begin_layout Standard
36539 begin{window}[2,c,{
36542 \begin_layout Standard
36543 as TeX-Code at the beginning of the paragraph.
36544 The first parameter in the bracket, here '2', defines the number of lines
36545 above the object, the second, here 'c', the position of the object.
36546 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
36547 Behind the command you insert the object.
36548 In this example an image with a width of 40
36549 \begin_inset space \thinspace{}
36552 % of the text column width was inserted.
36553 The object can also be a table, a box or an equation.
36554 Behind the object the command
36557 \begin_layout Standard
36560 },description text]
36561 \begin_inset Newline newline
36567 \begin_layout Standard
36570 \begin_inset Quotes eld
36578 \begin_inset Quotes erd
36581 is in the second line.
36582 The description text is optional.
36583 The text surrounding the object must be in the same paragraph as the object,
36584 so it must begin directly after the
36589 At the end of the paragraph insert the command:
36592 \begin_layout Standard
36600 \begin_layout Standard
36601 Within a paragraph with a fixed object, you cannot insert footnotes in the
36603 You have to use instead the command
36609 inside the paragraph and outside the command
36615 as described in sec.
36616 \begin_inset space \thinspace{}
36620 \begin_inset CommandInset ref
36622 reference "sec:Footnotes"
36629 \begin_layout Standard
36633 \begin_layout Plain Layout
36643 \begin_inset Note Note
36646 \begin_layout Plain Layout
36647 The following will be displayed when the LaTeX-package
36659 \begin_layout Standard
36660 You need to install the LaTeX-package
36664 to see the following part of this section in the output.
36667 \begin_layout Standard
36671 \begin_layout Plain Layout
36683 \begin_layout Section
36685 \begin_inset Index idx
36688 \begin_layout Plain Layout
36695 \begin_inset Index idx
36698 \begin_layout Plain Layout
36699 Surrounded by text ! Initials
36707 \begin_layout Standard
36708 To use initials, you must have the LaTeX-package
36713 \begin_inset Index idx
36716 \begin_layout Plain Layout
36717 LaTeX-packages ! lettrine
36722 installed and use the module
36726 in your document (menu
36728 Document\SpecialChar \menuseparator
36729 Settings\SpecialChar \menuseparator
36733 To insert an initial, use the style
36738 This style has a mandatory and an optional argument.
36739 The mandatory argument is inserted via the menu
36741 Insert\SpecialChar \menuseparator
36743 \begin_inset space ~
36748 and contains the letter that is the initial.
36749 To use also the optional argument, insert another argument in front of
36750 the mandatory argument.
36751 This one contains parameters to modify the initial.
36752 For more information about the possible parameters see the documentation
36758 \begin_inset CommandInset citation
36765 The style itself contains the text that is surrounding the initial.
36766 The usual style is hereby that the word whose first letter is the initial,
36772 To tell LaTeX where this word is finished, add a closing brace '
36776 ' as TeX-Code behind it.
36777 At the end of the style there must be an opening brace '
36784 \begin_layout Standard
36785 Here are some examples:
36788 \begin_layout Standard
36792 \begin_layout Plain Layout
36802 \begin_inset Note Note
36805 \begin_layout Plain Layout
36806 The following section will only be displayed when the LaTeX-package
36818 \begin_layout Enumerate
36819 No optional argument, the initial is the letter 'I' in the math font
36820 \begin_inset Formula $\mathfrak{Fraktur}$
36827 \begin_layout Initial
36828 \begin_inset Argument
36831 \begin_layout Plain Layout
36832 \begin_inset Formula $\mathfrak{I}$
36844 \begin_layout Plain Layout
36851 was in the spring of the year 1894 that all London was interested, and
36852 the fashionable world dismayed, by the murder of the Honourable Ronald
36853 Adair under most unusual and inexplicable circumstances.
36854 The public has already learned those particulars of the crime which came
36855 out in the police investigation, but a good deal was suppressed upon that
36856 occasion, since the case for the prosecution was so overwhelmingly strong
36857 that it was not necessary to bring forward all the facts.
36861 \begin_layout Plain Layout
36869 \begin_inset Newpage newpage
36876 \begin_layout Enumerate
36877 Only one line is surrounding the initial, which is formed by two letters
36878 in standard font and no text is printed in small caps:
36882 \begin_layout Initial
36883 \begin_inset Argument
36886 \begin_layout Plain Layout
36893 \begin_inset Argument
36896 \begin_layout Plain Layout
36906 \begin_layout Plain Layout
36913 was in the spring of the year 1894 that all London was interested, and
36914 the fashionable world dismayed, by the murder of the Honourable Ronald
36915 Adair under most unusual and inexplicable circumstances.
36916 The public has already learned those particulars of the crime which came
36917 out in the police investigation, but a good deal was suppressed upon that
36918 occasion, since the case for the prosecution was so overwhelmingly strong
36919 that it was not necessary to bring forward all the facts.
36923 \begin_layout Plain Layout
36934 \begin_layout Enumerate
36935 Magenta, hanging initial over 3
36936 \begin_inset space ~
36939 lines in the math font
36940 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
36944 \begin_inset Quotes eld
36947 t was in the spring
36948 \begin_inset Quotes erd
36955 ; to color the initial, you must insert this command before the initial:
36956 \begin_inset Newline newline
36970 \begin_inset Newline newline
36978 \begin_inset Quotes eld
36982 \begin_inset Quotes erd
36986 \begin_inset Quotes eld
36990 \begin_inset Quotes erd
36994 \begin_inset Quotes eld
36998 \begin_inset Quotes erd
37002 \begin_inset Quotes eld
37006 \begin_inset Quotes erd
37010 \begin_inset Quotes eld
37014 \begin_inset Quotes erd
37018 \begin_inset Quotes eld
37022 \begin_inset Quotes erd
37026 \begin_inset Quotes eld
37030 \begin_inset Quotes erd
37034 \begin_inset Quotes eld
37038 \begin_inset Quotes erd
37041 , and add this command to the document preamble:
37042 \begin_inset Newline newline
37049 @ifundefined{textcolor}
37050 \begin_inset Newline newline
37054 \begin_inset space ~
37059 usepackage{color}}{}
37063 \begin_layout Standard
37067 \begin_layout Plain Layout
37081 \begin_inset Note Note
37084 \begin_layout Plain Layout
37085 makes the initial magenta
37093 \begin_layout Initial
37094 \begin_inset Argument
37097 \begin_layout Plain Layout
37098 lines=3, lhang=0.33, loversize=0.25
37104 \begin_inset Argument
37107 \begin_layout Plain Layout
37108 \begin_inset Formula $\mathcal{I}$
37116 t was in the spring
37120 \begin_layout Plain Layout
37127 of the year 1894 that all London was interested, and the fashionable world
37128 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37129 and inexplicable circumstances.
37130 The public has already learned those particulars of the crime which came
37131 out in the police investigation, but a good deal was suppressed upon that
37132 occasion, since the case for the prosecution was so overwhelmingly strong
37133 that it was not necessary to bring forward all the facts.
37137 \begin_layout Plain Layout
37148 \begin_layout Standard
37152 \begin_layout Plain Layout
37162 \begin_inset Note Note
37165 \begin_layout Plain Layout
37166 The following will be displayed when the LaTeX-package
37178 \begin_layout Standard
37179 You need to install the LaTeX-package
37183 to see the following part of this section in the output.
37186 \begin_layout Standard
37190 \begin_layout Plain Layout
37202 \begin_layout Chapter
37203 External Document Parts
37204 \begin_inset Index idx
37207 \begin_layout Plain Layout
37208 External Document Parts
37216 \begin_layout Standard
37219 Insert\SpecialChar \menuseparator
37222 you can insert external material to your document.
37226 \begin_layout Description
37228 \begin_inset space ~
37231 Document Another LyX document; its content is directly inserted to your
37235 \begin_layout Description
37237 \begin_inset space ~
37240 Text A text document; each line is inserted in your document as a separate
37244 \begin_layout Description
37246 \begin_inset space ~
37250 \begin_inset space ~
37254 \begin_inset space ~
37257 Lines A text document; text lines are inserted in your document continuously
37258 but an empty text line creates a new paragraph.
37261 \begin_layout Description
37263 \begin_inset space ~
37266 Material Files in various formats.
37269 \begin_layout Description
37271 \begin_inset space ~
37274 Document LyX or LaTeX-documents.
37277 \begin_layout Section
37279 \begin_inset Index idx
37282 \begin_layout Plain Layout
37283 External Document Parts ! External Material
37291 \begin_layout Standard
37292 The external material feature allows you to insert files in to your document
37293 without converting them to a format that can be read by the document output
37295 LyX takes care of the necessary conversions.
37296 This is similar to images that can be inserted in various image formats
37298 When you have enabled Instant Preview in LyX's preferences under
37301 \begin_inset space ~
37305 \begin_inset space ~
37308 feel\SpecialChar \menuseparator
37311 , the external material types Dia and Xfig are directly shown in LyX.
37314 \begin_layout Standard
37315 External material can be inserted via the
37319 dialog that is accessible with the menu
37321 Insert\SpecialChar \menuseparator
37322 File\SpecialChar \menuseparator
37324 \begin_inset space ~
37330 Currently the following file types (
37337 \begin_layout Description
37338 ChessDiagram This template supports chess position diagrams made with the
37342 \begin_inset CommandInset href
37345 target "http://en.wikipedia.org/wiki/XBoard"
37354 \begin_layout Description
37355 Date This inserts the date in the form
37360 This is a date inserted as external material:
37361 \begin_inset External
37368 \begin_inset space ~
37372 \begin_inset Note Note
37375 \begin_layout Plain Layout
37376 Remove the protected space when bug 4398 is fixed!
37382 \begin_inset Newline newline
37385 The date is not shown within LyX, only in the output.
37386 There are two other methods of inserting a date: Via menu
37388 Insert\SpecialChar \menuseparator
37391 and with the LaTeX command
37398 The different methods are compared in Table
37399 \begin_inset space ~
37403 \begin_inset CommandInset ref
37405 reference "tab:Comparison-of-the"
37412 \begin_layout Description
37413 Dia This template supports diagrams created with the program
37416 \begin_inset CommandInset href
37419 target "http://en.wikipedia.org/wiki/Dia_(software)"
37428 \begin_layout Description
37429 GnumericSpreadsheet With this template you can insert spreadsheets
37430 \begin_inset space \thinspace{}
37434 \begin_inset space \thinspace{}
37437 tables in the format of
37440 \begin_inset CommandInset href
37443 target "http://en.wikipedia.org/wiki/Gnumeric"
37450 \begin_inset CommandInset href
37452 name "OpenDocument"
37453 target "http://en.wikipedia.org/wiki/OpenDocument"
37458 \begin_inset CommandInset href
37460 name "Microsoft Office XML"
37461 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
37466 \begin_inset CommandInset href
37468 name "Office Open XML"
37469 target "http://en.wikipedia.org/wiki/Office_Open_XML"
37474 For this feature LyX must have found the program
37478 during its configuration.
37479 This program is part of Gnumeric, so that you must have Gnumeric installed,
37480 also if you don't have tables in the Gnumeric format.
37481 For examples and possible limitations have a look at LyX's example file
37489 \begin_layout Description
37490 LilyPond This template is used for music notation typeset with the program
37491 \begin_inset Newline linebreak
37497 \begin_inset CommandInset href
37500 target "http://en.wikipedia.org/wiki/LilyPond"
37507 For LyX's extended support for LilyPond have a look at LyX's example file
37515 \begin_layout Description
37516 PDFPages With this template you can insert PDF documents to your document.
37517 To specify the range of pages that should be included, use the option
37527 LaTeX and LyX options
37530 The argument of this option is a comma separated list, containing page
37531 numbers (insert as option
37535 ), ranges of page numbers (
37539 ) or any combination.
37540 To insert empty pages use {}.
37542 \begin_inset space \thinspace{}
37546 \begin_inset space ~
37551 pages={3,{},8-11,15}
37553 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
37554 Page ranges are specified in the syntax
37563 This selects all pages from
37576 defaults to the first page; omitting
37580 defaults to the last page of the document.
37581 The last page can also be selected with the keyword
37586 (This is only permitted in a page range.) So
37590 will insert all pages of the document and
37594 will insert all pages in reverse order.
37595 If the pages option is not specified, only the first page of the PDF is
37597 \begin_inset Newline newline
37604 inserts the pages with their original size, if this option is not given,
37605 the pages will be resized to fith the width of the page of your document.
37610 you can specify the width and height of the input pages and their rotation.
37611 If another width than 100
37612 \begin_inset space \thinspace{}
37615 Scale% is used, the option
37619 will be overwritten.
37620 For more info and possible options, have a look into the documentation
37621 of the LaTeX-package
37626 \begin_inset CommandInset citation
37633 \begin_inset Index idx
37636 \begin_layout Plain Layout
37637 LaTeX-packages ! pdfpages
37643 \begin_inset Newline newline
37646 To use this template in a
37650 presentation you need to first insert an
37654 environment and in a subsequent paragraph a TeX-Code box containing the
37659 setbeamertemplate{background canvas}{}
37662 Then you can insert as many paragraphs containing the PDFPages template
37664 Behind the included PDF pages you can resume the Beamer presentation by
37665 beginning a new frame or by starting a new section.
37666 To avoid stray blank pages prior to the PDF pages, make sure to use the
37671 alignment for the paragraph containing the template.
37672 \begin_inset Newline newline
37675 Here is an included PDF which is rotated by -5°:
37676 \begin_inset External
37678 filename clipart/Abstract.pdf
37679 extra LaTeX "noautoscale, pages=-"
37681 rotateOrigin bottomleft
37688 \begin_layout Description
37689 RasterImage This can be used for bitmap images.
37690 The image can be treated in the
37694 dialog like the images that are usually included via the
37698 dialog as described in section
37699 \begin_inset space ~
37703 \begin_inset CommandInset ref
37705 reference "sec:Graphics-Dialog"
37710 The difference to the normal image input is that only raster images are
37711 allowed; that means that PDF and EPS-images are not supported.
37712 Here is an inserted raster image:
37713 \begin_inset External
37714 template RasterImage
37715 filename clipart/ToolbarEnvBox.png
37722 \begin_layout Description
37723 XFig This template supports images created with the program
37726 \begin_inset CommandInset href
37729 target "http://en.wikipedia.org/wiki/Xfig"
37738 \begin_layout Standard
37739 \begin_inset Float table
37745 \begin_layout Plain Layout
37746 \begin_inset Caption
37748 \begin_layout Plain Layout
37749 \begin_inset CommandInset label
37751 name "tab:Comparison-of-the"
37755 Comparison of the date input methods.
37763 \begin_layout Plain Layout
37765 \begin_inset Tabular
37766 <lyxtabular version="3" rows="4" columns="4">
37767 <features tabularvalignment="middle">
37768 <column alignment="center" valignment="top" width="0">
37769 <column alignment="center" valignment="top" width="0">
37770 <column alignment="center" valignment="top" width="0">
37771 <column alignment="center" valignment="top" width="0">
37773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37776 \begin_layout Plain Layout
37782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37785 \begin_layout Plain Layout
37788 External Material\SpecialChar \menuseparator
37794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37797 \begin_layout Plain Layout
37800 Insert\SpecialChar \menuseparator
37806 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37809 \begin_layout Plain Layout
37821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37824 \begin_layout Plain Layout
37830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37833 \begin_layout Plain Layout
37839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37842 \begin_layout Plain Layout
37848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37851 \begin_layout Plain Layout
37852 as TeX-Code inset box
37859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37862 \begin_layout Plain Layout
37868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37871 \begin_layout Plain Layout
37877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37880 \begin_layout Plain Layout
37886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
37889 \begin_layout Plain Layout
37897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37900 \begin_layout Plain Layout
37906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37909 \begin_layout Plain Layout
37915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
37918 \begin_layout Plain Layout
37924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
37927 \begin_layout Plain Layout
37946 \begin_layout Standard
37947 When you use the option
37959 dialog, only the path to the inserted file is shown in the output.
37960 \begin_inset Newline newline
37963 External material is displayed in LyX either as a box like this:
37964 \begin_inset Graphics
37965 filename clipart/ExternalMaterialQt4.png
37967 scaleBeforeRotation
37971 or as image, depending on the option
37977 LaTeX and LyX options
37982 \begin_layout Standard
37989 manual explains how you can define your own templates.
37992 \begin_layout Section
37994 \begin_inset CommandInset label
37996 name "sec:Child-Documents"
38001 \begin_inset Index idx
38004 \begin_layout Plain Layout
38005 External Document Parts ! Child Documents
38011 \begin_inset Index idx
38014 \begin_layout Plain Layout
38023 \begin_layout Standard
38024 Child documents are used if you have a long document consisting of several
38025 larger parts or sections.
38026 For maintenance it is often useful and sometimes even required to split
38027 the document into several files that can be revised separately.
38028 The different documents are then the so called
38029 \begin_inset Quotes eld
38033 \begin_inset Quotes erd
38036 , and a master document connects them to print the full document or parts
38038 A child document inherits elements of its master, for example the LaTeX
38039 preamble, the bibliography, and labels for cross-references.
38042 \begin_layout Standard
38043 To be able to work on child documents without the need to open their master,
38044 specify in the child document the master in the menu
38046 Document\SpecialChar \menuseparator
38047 Settings\SpecialChar \menuseparator
38049 \begin_inset space ~
38055 This master document will then be used in the background by LyX when you
38056 edit the child document.
38059 \begin_layout Standard
38060 Included documents are displayed in LyX as a box like this:
38061 \begin_inset Graphics
38062 filename clipart/ChildDocumentQt4.png
38064 scaleBeforeRotation
38068 To include child documents in a master document use the menu
38070 Insert\SpecialChar \menuseparator
38071 File\SpecialChar \menuseparator
38073 \begin_inset space ~
38079 A dialog pops up where you can choose between four include methods:
38082 \begin_layout Description
38083 Include You can include LyX- and LaTeX-documents.
38092 dialog, the included documents will be opened in LyX in a new file tab
38093 so that you can modify them.
38094 \begin_inset Newline newline
38100 \begin_layout Standard
38101 Here is a child document inserted using
38106 \begin_inset CommandInset include
38107 LatexCommand include
38108 filename "DummyDocument1.lyx"
38115 \begin_layout Standard
38116 The section numbering includes the sections of the included files in the
38117 order they are inserted in the master document.
38118 The included example document has for example a subsection that is numbered
38119 as a subsection of this section.
38120 Labels of included documents can be referenced: Subsection
38121 \begin_inset space ~
38125 \begin_inset CommandInset ref
38127 reference "sub:External-Subsection-1"
38134 \begin_layout Standard
38135 The preamble of the child document is ignored; only the preamble of the
38136 master document is used.
38137 Branches in child documents will be ignored by the master document when
38138 the master document does not have a branch with the same name.
38139 Included documents are inserted starting on a new page and ending with
38143 \begin_layout Standard
38144 \begin_inset Note Greyedout
38147 \begin_layout Plain Layout
38152 If you have included a LyX- or LaTeX-file, you are warned when you export/view
38153 the document in case the child document uses another document class than
38154 the master document as this will lead to unexpected outputs.
38162 \begin_layout Description
38163 Input This method is very similar to the Include method.
38164 The differences are:
38168 \begin_layout Itemize
38169 Input files don't start with a new page and don't end with a page break.
38172 \begin_layout Itemize
38173 Input files can be previewed in LyX when
38176 \begin_inset space ~
38181 is enabled in LyX's preferences under
38184 \begin_inset space ~
38188 \begin_inset space ~
38191 feel\SpecialChar \menuseparator
38197 \begin_layout Itemize
38198 You cannot exclude Input files via the menu
38200 Document\SpecialChar \menuseparator
38201 Settings\SpecialChar \menuseparator
38208 \begin_layout Standard
38209 Here is a child document inserted using
38214 \begin_inset CommandInset include
38216 filename "DummyDocument2.lyx"
38223 \begin_layout Description
38224 Verbatim With this method any text file can be included.
38225 The file is shown in the output with its source code; no command used in
38226 the text is invoked.
38227 You can use the option
38229 Mark spaces in output
38231 that displays the character
38232 \begin_inset Quotes eld
38239 \begin_layout Plain Layout
38249 \begin_inset Quotes erd
38252 for every space character in the source code.
38253 The difference from the method via the menu
38255 Insert\SpecialChar \menuseparator
38256 File\SpecialChar \menuseparator
38258 \begin_inset space ~
38263 is that the document content is not shown in LyX.
38266 \begin_layout Standard
38267 Here is a child document inserted as Verbatim:
38268 \begin_inset CommandInset include
38269 LatexCommand verbatiminput
38270 filename "DummyTextDocument.txt"
38275 \begin_inset VSpace bigskip
38278 Here is a child document inserted as Verbatim using the
38280 Mark spaces in output
38283 \begin_inset CommandInset include
38284 LatexCommand verbatiminput*
38285 filename "DummyTextDocument.txt"
38292 \begin_layout Standard
38293 \begin_inset VSpace bigskip
38299 \begin_layout Standard
38300 \begin_inset Note Greyedout
38303 \begin_layout Plain Layout
38308 As you can see in the examples above, the text of the documents included
38313 is not broken at the end of the document lines.
38321 \begin_layout Description
38322 Listings This type is described in chapter
38323 \begin_inset space ~
38327 \begin_inset CommandInset ref
38329 reference "cha:Program-Code-Listings"
38336 \begin_layout Standard
38337 \begin_inset Note Greyedout
38340 \begin_layout Plain Layout
38345 Including the same document twice in a document using different methods
38346 could cause LaTeX-problems.
38354 \begin_layout Standard
38355 If you want to view/export only selected children of your master document,
38356 either because you want to save compiling time or because you want to distribut
38357 e single chapters of the book you are just writing, you can exclude children
38359 This is done via the menu
38361 Document\SpecialChar \menuseparator
38362 Settings\SpecialChar \menuseparator
38366 You can exclude\SpecialChar \slash{}
38367 include children by double-clicking on the
38371 column of the respective child document in the list (note that this only
38372 works for documents embedded via
38373 \begin_inset Quotes eld
38377 \begin_inset Quotes erd
38381 \begin_inset Quotes eld
38385 \begin_inset Quotes erd
38391 Maintain counters and references
38393 is enabled, LyX will assure that all page numbers, references etc.
38394 \begin_inset space ~
38397 are correct as if the whole document was processed.
38398 This is useful if you want the selected sub-documents to look exactly as
38399 in the context of the whole document.
38400 However, LyX needs to process the whole document in the background for
38402 So if you want to save compile time and if counters and references do not
38403 need to be correct, disable this checkbox.
38406 \begin_layout Standard
38407 Alternatively, you can put each included file into a branch.
38411 \begin_layout Plain Layout
38412 Branches are described in section
38425 By enabling\SpecialChar \slash{}
38426 disabling branches you can decide which included files will
38427 appear in the output.
38428 This has the advantage that it also works with Input'ed sub-documents.
38429 However, counters and references will not be maintained with this approach.
38432 \begin_layout Chapter
38433 Program Code Listings
38434 \begin_inset CommandInset label
38436 name "cha:Program-Code-Listings"
38441 \begin_inset Index idx
38444 \begin_layout Plain Layout
38451 \begin_inset Index idx
38454 \begin_layout Plain Layout
38461 \begin_inset Index idx
38464 \begin_layout Plain Layout
38473 \begin_layout Standard
38474 To include and typeset program code you can use the
38478 inset that can be inserted via the menu
38480 Insert\SpecialChar \menuseparator
38489 \begin_inset Index idx
38492 \begin_layout Plain Layout
38493 LaTeX-packages ! listings
38498 provides a powerful and flexible way to insert program source code into
38502 \begin_layout Standard
38503 Right-clicking on a listings inset opens the context menu containing where
38504 you can set the listings format.
38507 \begin_layout Standard
38508 By default, a listing starts a new paragraph in the output.
38509 The placement option
38512 \begin_inset space ~
38517 prints the listing inline like this:
38518 \begin_inset listings
38519 lstparams "language={C++}"
38523 \begin_layout Plain Layout
38531 \begin_inset Newline newline
38538 creates a listings float where you can specify the placement options
38539 \begin_inset Quotes eld
38547 \begin_inset Quotes erd
38551 \begin_inset Quotes eld
38559 \begin_inset Quotes erd
38563 \begin_inset Quotes eld
38571 \begin_inset Quotes erd
38575 \begin_inset Quotes eld
38583 \begin_inset Quotes erd
38586 corresponding to the float placement options described in section
38587 \begin_inset space ~
38591 \begin_inset CommandInset ref
38593 reference "sec:Float-Placement"
38598 The placement options can be mixed and are inserted without any separation,
38600 \begin_inset space \thinspace{}
38604 \begin_inset space \space{}
38608 \begin_inset Quotes eld
38616 \begin_inset Quotes erd
38621 \begin_inset Quotes eld
38625 \begin_inset Quotes erd
38628 has sometimes no effect, but you don't need to use the
38632 option in this case as also non-float listings can have captions and be
38636 \begin_layout Standard
38637 You can add captions to listings with the menu
38639 Insert\SpecialChar \menuseparator
38643 Listings can be referenced like floats: Listing
38644 \begin_inset space ~
38648 \begin_inset CommandInset ref
38650 reference "lst:Example-Listing"
38657 \begin_layout Standard
38658 \begin_inset listings
38659 lstparams "language=Python"
38663 \begin_layout Plain Layout
38665 \begin_inset Caption
38667 \begin_layout Plain Layout
38668 \begin_inset CommandInset label
38670 name "lst:Example-Listing"
38674 Example Listing float
38679 # Example listing float
38682 \begin_layout Plain Layout
38687 \begin_layout Plain Layout
38689 'this is a python function'
38692 \begin_layout Plain Layout
38702 \begin_layout Standard
38703 When you have set a programming language in the listings dialog, the keywords
38704 of this language will be recognized and specially typeset in the output.
38705 In the example listings the Python keyword
38706 \begin_inset Quotes eld
38710 \begin_inset Quotes erd
38713 is recognized and printed bold in the output.
38716 \begin_layout Standard
38717 \begin_inset Note Greyedout
38720 \begin_layout Plain Layout
38725 If you don't get bold keywords when using typewriter fonts, your
38729 font probably doesn't provide a bold shape.
38730 In this case select a different one in the menu
38732 Document\SpecialChar \menuseparator
38733 Settings\SpecialChar \menuseparator
38745 provide bold shapes.)
38753 \begin_layout Standard
38757 \begin_inset space ~
38762 of the listings dialog you can specify the line numbering style.
38763 You can insert a number to specify which lines are numbered in the field
38770 \begin_inset space \thinspace{}
38774 \begin_inset space \space{}
38778 \begin_inset Quotes eld
38782 \begin_inset Quotes erd
38785 , only every 3rd line will be numbered.
38788 \begin_layout Standard
38789 You can furthermore specify a range of lines; only these will then appear
38793 Extended character table
38795 should be used when you use national characters like the German umlauts
38797 \begin_inset Newline newline
38800 Here is an example listing with left line numbering, step
38801 \begin_inset Quotes eld
38805 \begin_inset Quotes erd
38809 \begin_inset Quotes eld
38813 \begin_inset Quotes erd
38817 \begin_inset Quotes eld
38820 Extended character table
38821 \begin_inset Quotes erd
38825 \begin_inset Quotes eld
38829 \begin_inset space ~
38833 \begin_inset space ~
38837 \begin_inset Quotes erd
38841 \begin_inset space \thinspace{}
38845 \begin_inset space \thinspace{}
38851 \begin_layout Standard
38852 \begin_inset listings
38853 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
38857 \begin_layout Plain Layout
38862 \begin_layout Plain Layout
38864 'this is a python function'
38867 \begin_layout Plain Layout
38872 \begin_layout Plain Layout
38877 \begin_layout Plain Layout
38879 'This is a German word: Tschüß'
38882 \begin_layout Plain Layout
38887 \begin_layout Plain Layout
38892 \begin_layout Plain Layout
38894 'this is a python function'
38897 \begin_layout Plain Layout
38907 \begin_layout Standard
38908 When you have tabulators in your listing, you can specify the number of
38909 characters that are spanned by a tabulator in the field
38912 \begin_inset space ~
38920 \begin_layout Standard
38921 \begin_inset Note Greyedout
38924 \begin_layout Plain Layout
38929 Due to a bug in the
38933 package the line numbering is shifted by a line by every previous listing.
38934 That's the reason why the lines 2 and 5 are numbered in the above listing
38935 and not the lines 3 and 6.
38943 \begin_layout Standard
38944 \begin_inset VSpace bigskip
38950 \begin_layout Standard
38951 It is also possible to print lines from a file as listing.
38952 To do this, use the menu
38954 Insert\SpecialChar \menuseparator
38955 File\SpecialChar \menuseparator
38958 and choose the type
38966 \begin_layout Plain Layout
38967 The other child document types are described in section
38968 \begin_inset space ~
38972 \begin_inset CommandInset ref
38974 reference "sec:Child-Documents"
38983 In the child document dialog you can specify the listing parameters in
38985 To show a list of all available parameters, type in a question mark
38986 \begin_inset Quotes eld
38990 \begin_inset Quotes erd
38996 \begin_layout Standard
38997 To reference child document listings, write a label text into the corresponding
38998 field of the child document dialog.
38999 The label can then be referenced using the menu
39001 Insert\SpecialChar \menuseparator
39007 \begin_layout Standard
39009 \begin_inset space ~
39013 \begin_inset CommandInset ref
39015 reference "lst:file-listing"
39019 is an example for a listing of a file; there the lines 10
39020 \begin_inset space \thinspace{}
39024 \begin_inset space \thinspace{}
39027 15 of this LyX file are listed.
39030 \begin_layout Standard
39031 \begin_inset CommandInset include
39032 LatexCommand lstinputlisting
39033 filename "EmbeddedObjects.lyx"
39034 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
39041 \begin_layout Standard
39042 \begin_inset VSpace bigskip
39048 \begin_layout Standard
39049 Inserting a formula into a listing can be done the following way:
39052 \begin_layout Enumerate
39053 Open the listings dialog and add
39054 \begin_inset Newline newline
39062 \begin_inset Newline newline
39065 to the field of the
39072 \begin_layout Enumerate
39073 Create a formula outside the listing
39076 \begin_layout Enumerate
39077 Copy the content of the formula (not the formula inset) to the clipboard
39087 \begin_layout Enumerate
39088 In the listing write
39089 \begin_inset Quotes eld
39097 \begin_inset Quotes erd
39100 and copy from the clipboard between the dollar-signs (shortcut
39109 \begin_layout Standard
39110 \begin_inset listings
39111 lstparams "language=Python,mathescape=true"
39115 \begin_layout Plain Layout
39117 \begin_inset Caption
39119 \begin_layout Plain Layout
39120 Example Listing float containing a formula
39125 # Example listing float
39128 \begin_layout Plain Layout
39133 \begin_layout Plain Layout
39146 \begin_layout Plain Layout
39156 \begin_layout Standard
39157 \begin_inset VSpace bigskip
39163 \begin_layout Standard
39164 Global listings settings can be set in the
39166 Document\SpecialChar \menuseparator
39167 Settings\SpecialChar \menuseparator
39171 To get there a list of available options, type in a question mark
39172 \begin_inset Quotes eld
39176 \begin_inset Quotes erd
39182 \begin_layout Standard
39183 For more information about the
39187 package, we refer to its documentation
39188 \begin_inset CommandInset citation
39197 \begin_layout Standard
39198 \begin_inset Newpage newpage
39204 \begin_layout Chapter
39206 Units available in LyX
39207 \begin_inset Index idx
39210 \begin_layout Plain Layout
39217 \begin_inset CommandInset label
39219 name "cha:Units-available-in"
39226 \begin_layout Standard
39227 To understand the units described in this documentation, Table
39228 \begin_inset space ~
39232 \begin_inset CommandInset ref
39234 reference "tab:Units"
39238 explains all units available in LyX.
39241 \begin_layout Standard
39242 \begin_inset Float table
39248 \begin_layout Plain Layout
39249 \begin_inset Caption
39251 \begin_layout Plain Layout
39252 \begin_inset CommandInset label
39266 \begin_layout Plain Layout
39267 \begin_inset VSpace medskip
39273 \begin_layout Plain Layout
39275 \begin_inset Tabular
39276 <lyxtabular version="3" rows="20" columns="2">
39277 <features tabularvalignment="middle">
39278 <column alignment="center" valignment="top" width="0">
39279 <column alignment="center" valignment="top" width="0">
39281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39284 \begin_layout Plain Layout
39290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39293 \begin_layout Plain Layout
39301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39304 \begin_layout Plain Layout
39310 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39313 \begin_layout Plain Layout
39321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39324 \begin_layout Plain Layout
39330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39333 \begin_layout Plain Layout
39341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39344 \begin_layout Plain Layout
39350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39353 \begin_layout Plain Layout
39361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39364 \begin_layout Plain Layout
39370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39373 \begin_layout Plain Layout
39375 \begin_inset space \thinspace{}
39379 \begin_inset space \thinspace{}
39389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39392 \begin_layout Plain Layout
39398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39401 \begin_layout Plain Layout
39403 \begin_inset space \thinspace{}
39407 \begin_inset space \thinspace{}
39417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39420 \begin_layout Plain Layout
39426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39429 \begin_layout Plain Layout
39430 scaled point (65536
39431 \begin_inset space \thinspace{}
39435 \begin_inset space \thinspace{}
39445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39448 \begin_layout Plain Layout
39454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39457 \begin_layout Plain Layout
39459 \begin_inset space \thinspace{}
39463 \begin_inset space \thinspace{}
39473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39476 \begin_layout Plain Layout
39482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39485 \begin_layout Plain Layout
39487 \begin_inset space \thinspace{}
39491 \begin_inset Formula $\approx$
39495 \begin_inset space \thinspace{}
39505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39508 \begin_layout Plain Layout
39514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39517 \begin_layout Plain Layout
39519 \begin_inset space \thinspace{}
39523 \begin_inset space \thinspace{}
39533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39536 \begin_layout Plain Layout
39542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39545 \begin_layout Plain Layout
39546 % of original image width
39553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39556 \begin_layout Plain Layout
39562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39565 \begin_layout Plain Layout
39573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39576 \begin_layout Plain Layout
39582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39585 \begin_layout Plain Layout
39593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39596 \begin_layout Plain Layout
39602 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39605 \begin_layout Plain Layout
39613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39616 \begin_layout Plain Layout
39622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39625 \begin_layout Plain Layout
39633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39636 \begin_layout Plain Layout
39642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39645 \begin_layout Plain Layout
39653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39656 \begin_layout Plain Layout
39662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39665 \begin_layout Plain Layout
39673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39676 \begin_layout Plain Layout
39682 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39685 \begin_layout Plain Layout
39697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
39700 \begin_layout Plain Layout
39706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39709 \begin_layout Plain Layout
39721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39724 \begin_layout Plain Layout
39730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39733 \begin_layout Plain Layout
39735 \begin_inset space \thinspace{}
39739 \begin_inset space \thinspace{}
39760 \begin_layout Chapter
39761 Output File Formats with Graphics
39762 \begin_inset CommandInset label
39764 name "cha:Output-File-Formats"
39771 \begin_layout Section
39773 \begin_inset Index idx
39776 \begin_layout Plain Layout
39783 \begin_inset Index idx
39786 \begin_layout Plain Layout
39791 \begin_layout Plain Layout
39802 \begin_layout Plain Layout
39817 \begin_layout Standard
39818 This file type has the extension
39819 \begin_inset Quotes eld
39827 \begin_inset Quotes erd
39832 \begin_inset Quotes eld
39836 \begin_inset Quotes erd
39839 (DVI), because it is completely portable; you can move them from one machine
39840 to another without needing to do any sort of conversion.
39841 At the time when this file-format was developed, this was no matter of
39843 DVIs are used for quick previews and as pre-stage for other output formats,
39847 \begin_layout Standard
39848 \begin_inset Note Greyedout
39851 \begin_layout Plain Layout
39856 DVI-files do not contain images; they will only be a linked.
39861 So don't forget this, if you move your
39865 file to another computer.
39866 This property can also slow down your computer when you view the DVI, because
39867 the DVI-viewer has to convert the image in the background to make it visible
39868 when you scroll in the DVI.
39869 So it is recommended that you use PDF for files with many images.
39872 \begin_layout Standard
39873 You can export your document to DVI by using the menu
39875 File\SpecialChar \menuseparator
39876 Export\SpecialChar \menuseparator
39880 You can view your document as DVI via the
39887 \begin_layout Section
39889 \begin_inset CommandInset label
39891 name "sec:PostScript"
39896 \begin_inset Index idx
39899 \begin_layout Plain Layout
39900 File Formats ! PostScript
39906 \begin_inset Index idx
39909 \begin_layout Plain Layout
39914 \begin_layout Plain Layout
39925 \begin_layout Plain Layout
39940 \begin_layout Standard
39941 This file type has the extension
39942 \begin_inset Quotes eld
39950 \begin_inset Quotes erd
39954 PostScript was developed by the company
39958 as a printer language.
39959 The file therefore contains commands that the printer uses to print the
39961 PostScript can be seen as a
39962 \begin_inset Quotes eld
39965 programming language
39966 \begin_inset Quotes erd
39969 ; you can calculate with it and draw diagrams and images
39973 \begin_layout Plain Layout
39974 If you are interested to learn more about this, have a look at the LaTeX-package
39980 \begin_inset CommandInset citation
39992 Due to this ability, the files are often bigger than PDFs.
39995 \begin_layout Standard
39996 PostScript can only contain images in the format
39997 \begin_inset Quotes eld
40000 Encapsulated PostScript
40001 \begin_inset Quotes erd
40004 (EPS, file extension
40005 \begin_inset Quotes eld
40013 \begin_inset Quotes erd
40017 As LyX allows you to use any known image format in your document, it has
40018 to convert images in the background to EPS.
40020 \begin_inset space ~
40024 \begin_inset space ~
40027 images in your document, LyX has to do 50
40028 \begin_inset space ~
40031 conversions whenever you view or export your document.
40032 This will slow down your work flow with LyX drastically.
40033 So if you plan to use PostScript, you can insert your images directly as
40034 EPS to avoid this problem.
40037 \begin_layout Standard
40038 You can export your document to PostScript using the menu
40040 File\SpecialChar \menuseparator
40041 Export\SpecialChar \menuseparator
40045 You can view your document as PostScript via the
40049 menu or by using the toolbar button
40050 \begin_inset Graphics
40051 filename ../images/buffer-view_ps.png
40053 scaleBeforeRotation
40060 \begin_layout Section
40062 \begin_inset Index idx
40065 \begin_layout Plain Layout
40072 \begin_inset Index idx
40075 \begin_layout Plain Layout
40084 \begin_layout Standard
40085 This file type has the extension
40086 \begin_inset Quotes eld
40094 \begin_inset Quotes erd
40099 \begin_inset Quotes eld
40102 Portable Document Format
40103 \begin_inset Quotes erd
40106 (PDF) was developed by
40110 as a derivative of PostScript.
40111 It is more compressed and it uses fewer commands than PostScript.
40113 \begin_inset Quotes eld
40117 \begin_inset Quotes erd
40120 implies, it can be processed at any computer system and the printed output
40121 looks exactly the same.
40124 \begin_layout Standard
40125 PDF can contain images in its own PDF format, in the format
40126 \begin_inset Quotes eld
40129 Joint Photographic Experts Group
40130 \begin_inset Quotes erd
40133 (JPG, file extension
40134 \begin_inset Quotes eld
40142 \begin_inset Quotes erd
40146 \begin_inset Quotes eld
40154 \begin_inset Quotes erd
40157 ), and in the format
40158 \begin_inset Quotes eld
40161 Portable Network Graphics
40162 \begin_inset Quotes erd
40165 (PNG, file extension
40166 \begin_inset Quotes eld
40174 \begin_inset Quotes erd
40178 Nevertheless you can use any other image format, because LyX converts them
40179 in the background to one of these formats.
40180 But as described in the section about PostScript, the image conversion
40181 will slow down your work flow.
40182 So it is recommended that you use images in one of the three mentioned
40186 \begin_layout Standard
40187 You can export your document to PDF via the menu
40189 File\SpecialChar \menuseparator
40192 in three different ways:
40195 \begin_layout Description
40197 \begin_inset space ~
40200 (ps2pdf) This uses the program
40204 that creates a PDF from a PostScript-version of your file.
40205 The PostScript-version is produced by the program
40209 which uses a DVI-version as intermediate step.
40210 So this export variant consists of three conversions.
40213 \begin_layout Description
40215 \begin_inset space ~
40218 (dvipdfm) This uses the program
40222 that converts your file in the background to DVI and in a second step to
40226 \begin_layout Description
40228 \begin_inset space ~
40231 (pdflatex) This uses the program
40235 that converts your file directly to PDF.
40238 \begin_layout Standard
40239 It is recommended that you use
40242 \begin_inset space ~
40251 supports all features of actual PDF-versions, is quick and works stable.
40256 is not under development and therefore a bit outdated.
40259 \begin_layout Standard
40260 You can view your document as PDF via the
40264 menu or by using the toolbar button
40265 \begin_inset Graphics
40266 filename ../images/buffer-view_pdf2.png
40268 scaleBeforeRotation
40279 \begin_inset space ~
40287 \begin_layout Chapter
40288 List of dvips color names
40289 \begin_inset CommandInset label
40291 name "chap:List-of-dvips-colornames"
40298 \begin_layout Standard
40299 \begin_inset Tabular
40300 <lyxtabular version="3" rows="17" columns="4">
40301 <features tabularvalignment="middle">
40302 <column alignment="left" valignment="top" width="0pt">
40303 <column alignment="left" valignment="top" width="0pt">
40304 <column alignment="left" valignment="top" width="0pt">
40305 <column alignment="left" valignment="top" width="0pt">
40307 <cell alignment="left" valignment="top" usebox="none">
40310 \begin_layout Plain Layout
40314 \begin_layout Plain Layout
40327 \begin_layout Plain Layout
40338 \begin_layout Plain Layout
40350 <cell alignment="left" valignment="top" usebox="none">
40353 \begin_layout Plain Layout
40357 \begin_layout Plain Layout
40370 \begin_layout Plain Layout
40381 \begin_layout Plain Layout
40393 <cell alignment="left" valignment="top" usebox="none">
40396 \begin_layout Plain Layout
40400 \begin_layout Plain Layout
40413 \begin_layout Plain Layout
40424 \begin_layout Plain Layout
40436 <cell alignment="left" valignment="top" usebox="none">
40439 \begin_layout Plain Layout
40443 \begin_layout Plain Layout
40456 \begin_layout Plain Layout
40467 \begin_layout Plain Layout
40481 <cell alignment="center" valignment="top" usebox="none">
40484 \begin_layout Plain Layout
40488 \begin_layout Plain Layout
40501 \begin_layout Plain Layout
40509 \begin_inset Phantom Phantom
40512 \begin_layout Plain Layout
40522 \begin_layout Plain Layout
40534 <cell alignment="center" valignment="top" usebox="none">
40537 \begin_layout Plain Layout
40541 \begin_layout Plain Layout
40554 \begin_layout Plain Layout
40562 \begin_inset Phantom Phantom
40565 \begin_layout Plain Layout
40575 \begin_layout Plain Layout
40587 <cell alignment="center" valignment="top" usebox="none">
40590 \begin_layout Plain Layout
40594 \begin_layout Plain Layout
40607 \begin_layout Plain Layout
40615 \begin_inset Phantom Phantom
40618 \begin_layout Plain Layout
40628 \begin_layout Plain Layout
40640 <cell alignment="center" valignment="top" usebox="none">
40643 \begin_layout Plain Layout
40647 \begin_layout Plain Layout
40660 \begin_layout Plain Layout
40668 \begin_inset Phantom Phantom
40671 \begin_layout Plain Layout
40681 \begin_layout Plain Layout
40695 <cell alignment="left" valignment="top" usebox="none">
40698 \begin_layout Plain Layout
40702 \begin_layout Plain Layout
40715 \begin_layout Plain Layout
40723 \begin_inset Phantom Phantom
40726 \begin_layout Plain Layout
40736 \begin_layout Plain Layout
40748 <cell alignment="left" valignment="top" usebox="none">
40751 \begin_layout Plain Layout
40755 \begin_layout Plain Layout
40768 \begin_layout Plain Layout
40776 \begin_inset Phantom Phantom
40779 \begin_layout Plain Layout
40789 \begin_layout Plain Layout
40801 <cell alignment="left" valignment="top" usebox="none">
40804 \begin_layout Plain Layout
40808 \begin_layout Plain Layout
40821 \begin_layout Plain Layout
40829 \begin_inset Phantom Phantom
40832 \begin_layout Plain Layout
40842 \begin_layout Plain Layout
40854 <cell alignment="left" valignment="top" usebox="none">
40857 \begin_layout Plain Layout
40861 \begin_layout Plain Layout
40874 \begin_layout Plain Layout
40882 \begin_inset Phantom Phantom
40885 \begin_layout Plain Layout
40895 \begin_layout Plain Layout
40909 <cell alignment="left" valignment="top" usebox="none">
40912 \begin_layout Plain Layout
40916 \begin_layout Plain Layout
40929 \begin_layout Plain Layout
40937 \begin_inset Phantom Phantom
40940 \begin_layout Plain Layout
40950 \begin_layout Plain Layout
40962 <cell alignment="left" valignment="top" usebox="none">
40965 \begin_layout Plain Layout
40969 \begin_layout Plain Layout
40982 \begin_layout Plain Layout
40990 \begin_inset Phantom Phantom
40993 \begin_layout Plain Layout
41003 \begin_layout Plain Layout
41015 <cell alignment="left" valignment="top" usebox="none">
41018 \begin_layout Plain Layout
41022 \begin_layout Plain Layout
41035 \begin_layout Plain Layout
41043 \begin_inset Phantom Phantom
41046 \begin_layout Plain Layout
41056 \begin_layout Plain Layout
41068 <cell alignment="left" valignment="top" usebox="none">
41071 \begin_layout Plain Layout
41075 \begin_layout Plain Layout
41088 \begin_layout Plain Layout
41096 \begin_inset Phantom Phantom
41099 \begin_layout Plain Layout
41109 \begin_layout Plain Layout
41123 <cell alignment="left" valignment="top" usebox="none">
41126 \begin_layout Plain Layout
41130 \begin_layout Plain Layout
41143 \begin_layout Plain Layout
41151 \begin_inset Phantom Phantom
41154 \begin_layout Plain Layout
41164 \begin_layout Plain Layout
41176 <cell alignment="left" valignment="top" usebox="none">
41179 \begin_layout Plain Layout
41183 \begin_layout Plain Layout
41196 \begin_layout Plain Layout
41204 \begin_inset Phantom Phantom
41207 \begin_layout Plain Layout
41217 \begin_layout Plain Layout
41229 <cell alignment="left" valignment="top" usebox="none">
41232 \begin_layout Plain Layout
41236 \begin_layout Plain Layout
41249 \begin_layout Plain Layout
41257 \begin_inset Phantom Phantom
41260 \begin_layout Plain Layout
41270 \begin_layout Plain Layout
41282 <cell alignment="left" valignment="top" usebox="none">
41285 \begin_layout Plain Layout
41289 \begin_layout Plain Layout
41302 \begin_layout Plain Layout
41310 \begin_inset Phantom Phantom
41313 \begin_layout Plain Layout
41323 \begin_layout Plain Layout
41337 <cell alignment="left" valignment="top" usebox="none">
41340 \begin_layout Plain Layout
41344 \begin_layout Plain Layout
41357 \begin_layout Plain Layout
41365 \begin_inset Phantom Phantom
41368 \begin_layout Plain Layout
41378 \begin_layout Plain Layout
41390 <cell alignment="left" valignment="top" usebox="none">
41393 \begin_layout Plain Layout
41397 \begin_layout Plain Layout
41410 \begin_layout Plain Layout
41418 \begin_inset Phantom Phantom
41421 \begin_layout Plain Layout
41431 \begin_layout Plain Layout
41443 <cell alignment="left" valignment="top" usebox="none">
41446 \begin_layout Plain Layout
41450 \begin_layout Plain Layout
41463 \begin_layout Plain Layout
41471 \begin_inset Phantom Phantom
41474 \begin_layout Plain Layout
41484 \begin_layout Plain Layout
41496 <cell alignment="left" valignment="top" usebox="none">
41499 \begin_layout Plain Layout
41503 \begin_layout Plain Layout
41516 \begin_layout Plain Layout
41524 \begin_inset Phantom Phantom
41527 \begin_layout Plain Layout
41537 \begin_layout Plain Layout
41551 <cell alignment="center" valignment="top" usebox="none">
41554 \begin_layout Plain Layout
41558 \begin_layout Plain Layout
41571 \begin_layout Plain Layout
41579 \begin_inset Phantom Phantom
41582 \begin_layout Plain Layout
41592 \begin_layout Plain Layout
41604 <cell alignment="center" valignment="top" usebox="none">
41607 \begin_layout Plain Layout
41611 \begin_layout Plain Layout
41624 \begin_layout Plain Layout
41632 \begin_inset Phantom Phantom
41635 \begin_layout Plain Layout
41645 \begin_layout Plain Layout
41657 <cell alignment="center" valignment="top" usebox="none">
41660 \begin_layout Plain Layout
41664 \begin_layout Plain Layout
41677 \begin_layout Plain Layout
41685 \begin_inset Phantom Phantom
41688 \begin_layout Plain Layout
41698 \begin_layout Plain Layout
41710 <cell alignment="center" valignment="top" usebox="none">
41713 \begin_layout Plain Layout
41717 \begin_layout Plain Layout
41730 \begin_layout Plain Layout
41738 \begin_inset Phantom Phantom
41741 \begin_layout Plain Layout
41751 \begin_layout Plain Layout
41765 <cell alignment="left" valignment="top" usebox="none">
41768 \begin_layout Plain Layout
41772 \begin_layout Plain Layout
41785 \begin_layout Plain Layout
41793 \begin_inset Phantom Phantom
41796 \begin_layout Plain Layout
41806 \begin_layout Plain Layout
41818 <cell alignment="left" valignment="top" usebox="none">
41821 \begin_layout Plain Layout
41825 \begin_layout Plain Layout
41838 \begin_layout Plain Layout
41846 \begin_inset Phantom Phantom
41849 \begin_layout Plain Layout
41859 \begin_layout Plain Layout
41871 <cell alignment="left" valignment="top" usebox="none">
41874 \begin_layout Plain Layout
41878 \begin_layout Plain Layout
41891 \begin_layout Plain Layout
41899 \begin_inset Phantom Phantom
41902 \begin_layout Plain Layout
41912 \begin_layout Plain Layout
41924 <cell alignment="left" valignment="top" usebox="none">
41927 \begin_layout Plain Layout
41931 \begin_layout Plain Layout
41944 \begin_layout Plain Layout
41952 \begin_inset Phantom Phantom
41955 \begin_layout Plain Layout
41965 \begin_layout Plain Layout
41979 <cell alignment="left" valignment="top" usebox="none">
41982 \begin_layout Plain Layout
41986 \begin_layout Plain Layout
41999 \begin_layout Plain Layout
42007 \begin_inset Phantom Phantom
42010 \begin_layout Plain Layout
42020 \begin_layout Plain Layout
42032 <cell alignment="left" valignment="top" usebox="none">
42035 \begin_layout Plain Layout
42039 \begin_layout Plain Layout
42052 \begin_layout Plain Layout
42060 \begin_inset Phantom Phantom
42063 \begin_layout Plain Layout
42073 \begin_layout Plain Layout
42085 <cell alignment="left" valignment="top" usebox="none">
42088 \begin_layout Plain Layout
42092 \begin_layout Plain Layout
42105 \begin_layout Plain Layout
42113 \begin_inset Phantom Phantom
42116 \begin_layout Plain Layout
42126 \begin_layout Plain Layout
42138 <cell alignment="left" valignment="top" usebox="none">
42141 \begin_layout Plain Layout
42145 \begin_layout Plain Layout
42158 \begin_layout Plain Layout
42166 \begin_inset Phantom Phantom
42169 \begin_layout Plain Layout
42179 \begin_layout Plain Layout
42193 <cell alignment="left" valignment="top" usebox="none">
42196 \begin_layout Plain Layout
42200 \begin_layout Plain Layout
42213 \begin_layout Plain Layout
42221 \begin_inset Phantom Phantom
42224 \begin_layout Plain Layout
42234 \begin_layout Plain Layout
42246 <cell alignment="left" valignment="top" usebox="none">
42249 \begin_layout Plain Layout
42253 \begin_layout Plain Layout
42266 \begin_layout Plain Layout
42274 \begin_inset Phantom Phantom
42277 \begin_layout Plain Layout
42287 \begin_layout Plain Layout
42299 <cell alignment="left" valignment="top" usebox="none">
42302 \begin_layout Plain Layout
42306 \begin_layout Plain Layout
42319 \begin_layout Plain Layout
42327 \begin_inset Phantom Phantom
42330 \begin_layout Plain Layout
42340 \begin_layout Plain Layout
42352 <cell alignment="left" valignment="top" usebox="none">
42355 \begin_layout Plain Layout
42359 \begin_layout Plain Layout
42372 \begin_layout Plain Layout
42380 \begin_inset Phantom Phantom
42383 \begin_layout Plain Layout
42393 \begin_layout Plain Layout
42407 <cell alignment="left" valignment="top" usebox="none">
42410 \begin_layout Plain Layout
42414 \begin_layout Plain Layout
42427 \begin_layout Plain Layout
42435 \begin_inset Phantom Phantom
42438 \begin_layout Plain Layout
42448 \begin_layout Plain Layout
42460 <cell alignment="left" valignment="top" usebox="none">
42463 \begin_layout Plain Layout
42467 \begin_layout Plain Layout
42480 \begin_layout Plain Layout
42488 \begin_inset Phantom Phantom
42491 \begin_layout Plain Layout
42501 \begin_layout Plain Layout
42513 <cell alignment="left" valignment="top" usebox="none">
42516 \begin_layout Plain Layout
42520 \begin_layout Plain Layout
42533 \begin_layout Plain Layout
42541 \begin_inset Phantom Phantom
42544 \begin_layout Plain Layout
42554 \begin_layout Plain Layout
42566 <cell alignment="left" valignment="top" usebox="none">
42569 \begin_layout Plain Layout
42573 \begin_layout Plain Layout
42586 \begin_layout Plain Layout
42594 \begin_inset Phantom Phantom
42597 \begin_layout Plain Layout
42607 \begin_layout Plain Layout
42621 <cell alignment="left" valignment="top" usebox="none">
42624 \begin_layout Plain Layout
42628 \begin_layout Plain Layout
42641 \begin_layout Plain Layout
42649 \begin_inset Phantom Phantom
42652 \begin_layout Plain Layout
42662 \begin_layout Plain Layout
42674 <cell alignment="left" valignment="top" usebox="none">
42677 \begin_layout Plain Layout
42681 \begin_layout Plain Layout
42694 \begin_layout Plain Layout
42702 \begin_inset Phantom Phantom
42705 \begin_layout Plain Layout
42715 \begin_layout Plain Layout
42727 <cell alignment="left" valignment="top" usebox="none">
42730 \begin_layout Plain Layout
42734 \begin_layout Plain Layout
42747 \begin_layout Plain Layout
42755 \begin_inset Phantom Phantom
42758 \begin_layout Plain Layout
42768 \begin_layout Plain Layout
42780 <cell alignment="left" valignment="top" usebox="none">
42783 \begin_layout Plain Layout
42787 \begin_layout Plain Layout
42800 \begin_layout Plain Layout
42808 \begin_inset Phantom Phantom
42811 \begin_layout Plain Layout
42821 \begin_layout Plain Layout
42835 <cell alignment="left" valignment="top" usebox="none">
42838 \begin_layout Plain Layout
42842 \begin_layout Plain Layout
42855 \begin_layout Plain Layout
42863 \begin_inset Phantom Phantom
42866 \begin_layout Plain Layout
42876 \begin_layout Plain Layout
42888 <cell alignment="left" valignment="top" usebox="none">
42891 \begin_layout Plain Layout
42895 \begin_layout Plain Layout
42908 \begin_layout Plain Layout
42916 \begin_inset Phantom Phantom
42919 \begin_layout Plain Layout
42929 \begin_layout Plain Layout
42941 <cell alignment="left" valignment="top" usebox="none">
42944 \begin_layout Plain Layout
42948 \begin_layout Plain Layout
42961 \begin_layout Plain Layout
42969 \begin_inset Phantom Phantom
42972 \begin_layout Plain Layout
42982 \begin_layout Plain Layout
42994 <cell alignment="left" valignment="top" usebox="none">
42997 \begin_layout Plain Layout
43001 \begin_layout Plain Layout
43014 \begin_layout Plain Layout
43022 \begin_inset Phantom Phantom
43025 \begin_layout Plain Layout
43035 \begin_layout Plain Layout
43049 <cell alignment="left" valignment="top" usebox="none">
43052 \begin_layout Plain Layout
43056 \begin_layout Plain Layout
43069 \begin_layout Plain Layout
43077 \begin_inset Phantom Phantom
43080 \begin_layout Plain Layout
43090 \begin_layout Plain Layout
43102 <cell alignment="left" valignment="top" usebox="none">
43105 \begin_layout Plain Layout
43109 \begin_layout Plain Layout
43122 \begin_layout Plain Layout
43130 \begin_inset Phantom Phantom
43133 \begin_layout Plain Layout
43143 \begin_layout Plain Layout
43155 <cell alignment="left" valignment="top" usebox="none">
43158 \begin_layout Plain Layout
43162 \begin_layout Plain Layout
43175 \begin_layout Plain Layout
43183 \begin_inset Phantom Phantom
43186 \begin_layout Plain Layout
43196 \begin_layout Plain Layout
43208 <cell alignment="left" valignment="top" usebox="none">
43211 \begin_layout Plain Layout
43215 \begin_layout Plain Layout
43228 \begin_layout Plain Layout
43236 \begin_inset Phantom Phantom
43239 \begin_layout Plain Layout
43249 \begin_layout Plain Layout
43263 <cell alignment="left" valignment="top" usebox="none">
43266 \begin_layout Plain Layout
43270 \begin_layout Plain Layout
43283 \begin_layout Plain Layout
43291 \begin_inset Phantom Phantom
43294 \begin_layout Plain Layout
43304 \begin_layout Plain Layout
43316 <cell alignment="left" valignment="top" usebox="none">
43319 \begin_layout Plain Layout
43323 \begin_layout Plain Layout
43336 \begin_layout Plain Layout
43344 \begin_inset Phantom Phantom
43347 \begin_layout Plain Layout
43357 \begin_layout Plain Layout
43369 <cell alignment="left" valignment="top" usebox="none">
43372 \begin_layout Plain Layout
43376 \begin_layout Plain Layout
43389 \begin_layout Plain Layout
43397 \begin_inset Phantom Phantom
43400 \begin_layout Plain Layout
43410 \begin_layout Plain Layout
43422 <cell alignment="left" valignment="top" usebox="none">
43425 \begin_layout Plain Layout
43429 \begin_layout Plain Layout
43442 \begin_layout Plain Layout
43450 \begin_inset Phantom Phantom
43453 \begin_layout Plain Layout
43463 \begin_layout Plain Layout
43477 <cell alignment="left" valignment="top" usebox="none">
43480 \begin_layout Plain Layout
43484 \begin_layout Plain Layout
43497 \begin_layout Plain Layout
43505 \begin_inset Phantom Phantom
43508 \begin_layout Plain Layout
43518 \begin_layout Plain Layout
43530 <cell alignment="left" valignment="top" usebox="none">
43533 \begin_layout Plain Layout
43537 \begin_layout Plain Layout
43550 \begin_layout Plain Layout
43558 \begin_inset Phantom Phantom
43561 \begin_layout Plain Layout
43571 \begin_layout Plain Layout
43583 <cell alignment="left" valignment="top" usebox="none">
43586 \begin_layout Plain Layout
43590 \begin_layout Plain Layout
43603 \begin_layout Plain Layout
43611 \begin_inset Phantom Phantom
43614 \begin_layout Plain Layout
43624 \begin_layout Plain Layout
43636 <cell alignment="left" valignment="top" usebox="none">
43639 \begin_layout Plain Layout
43643 \begin_layout Plain Layout
43656 \begin_layout Plain Layout
43664 \begin_inset Phantom Phantom
43667 \begin_layout Plain Layout
43677 \begin_layout Plain Layout
43691 <cell alignment="left" valignment="top" usebox="none">
43694 \begin_layout Plain Layout
43698 \begin_layout Plain Layout
43711 \begin_layout Plain Layout
43719 \begin_inset Phantom Phantom
43722 \begin_layout Plain Layout
43732 \begin_layout Plain Layout
43744 <cell alignment="left" valignment="top" usebox="none">
43747 \begin_layout Plain Layout
43753 <cell alignment="left" valignment="top" usebox="none">
43756 \begin_layout Plain Layout
43762 <cell alignment="left" valignment="top" usebox="none">
43765 \begin_layout Plain Layout
43779 \begin_layout Chapter
43780 Explanation of Equation
43781 \begin_inset space ~
43785 \begin_inset CommandInset ref
43792 \begin_inset CommandInset label
43794 name "cha:Explanation-of-Equation"
43801 \begin_layout Standard
43802 We can calculate the total width of
43807 \begin_inset Formula $W_{\mathrm{tot\, n}}$
43811 \begin_inset Formula
43813 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
43819 \begin_inset Formula $W_{g\, n}$
43822 is the given width of all cells,
43828 is the LaTeX-length between the cell text and the cell border (its default
43830 \begin_inset space \thinspace{}
43840 is the thickness of the cell border line, the default is 0.4
43841 \begin_inset space \thinspace{}
43847 \begin_layout Standard
43849 \begin_inset space ~
43853 \begin_inset CommandInset ref
43855 reference "eq:Wtot_n"
43859 , the total width of a multicolumn
43860 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
43864 \begin_inset Formula
43866 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
43874 \begin_layout Standard
43875 By setting equation
43876 \begin_inset space ~
43880 \begin_inset CommandInset ref
43882 reference "eq:Wtot_n"
43887 \begin_inset CommandInset ref
43889 reference "eq:Wtot_mult"
43893 equal we can calculate the needed given width
43894 \begin_inset Formula $W_{g\, n}$
43901 columns are spanned, so that each column has a total width of
43902 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
43906 \begin_inset Formula
43908 W_{g\, n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
43916 \begin_layout Bibliography
43917 \labelwidthstring Bibliography
43918 \begin_inset CommandInset bibitem
43919 LatexCommand bibitem
43920 key "latexcompanion"
43924 Frank Mittelbach and Michel Goossens:
43926 The LaTeX Companion Second Edition.
43929 Addison-Wesley, 2004
43932 \begin_layout Bibliography
43933 \labelwidthstring Bibliography
43934 \begin_inset CommandInset bibitem
43935 LatexCommand bibitem
43940 Helmut Kopka and Patrick W.
43943 A Guide to LaTeX Fourth Edition.
43946 Addison-Wesley, 2003
43949 \begin_layout Bibliography
43950 \labelwidthstring Bibliography
43951 \begin_inset CommandInset bibitem
43952 LatexCommand bibitem
43959 LaTeX: A Document Preparation System.
43962 Addison-Wesley, second edition, 1994
43965 \begin_layout Bibliography
43966 \labelwidthstring Bibliography
43967 \begin_inset CommandInset bibitem
43968 LatexCommand bibitem
43973 Documentation of the LaTeX-package
43976 \begin_inset CommandInset href
43979 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
43986 \begin_inset Index idx
43989 \begin_layout Plain Layout
43990 LaTeX-packages ! arydshln
43998 \begin_layout Bibliography
43999 \labelwidthstring Bibliography
44000 \begin_inset CommandInset bibitem
44001 LatexCommand bibitem
44006 Documentation of the LaTeX-package
44009 \begin_inset CommandInset href
44012 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
44019 \begin_inset Index idx
44022 \begin_layout Plain Layout
44023 LaTeX-packages ! booktabs
44031 \begin_layout Bibliography
44032 \labelwidthstring Bibliography
44033 \begin_inset CommandInset bibitem
44034 LatexCommand bibitem
44039 Documentation of the LaTeX-package
44042 \begin_inset CommandInset href
44045 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
44052 \begin_inset Index idx
44055 \begin_layout Plain Layout
44056 LaTeX-packages ! caption
44064 \begin_layout Bibliography
44065 \labelwidthstring Bibliography
44066 \begin_inset CommandInset bibitem
44067 LatexCommand bibitem
44072 Documentation of the LaTeX-package
44075 \begin_inset CommandInset href
44078 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
44085 \begin_inset Index idx
44088 \begin_layout Plain Layout
44089 LaTeX-packages ! diagbox
44097 \begin_layout Bibliography
44098 \labelwidthstring Bibliography
44099 \begin_inset CommandInset bibitem
44100 LatexCommand bibitem
44105 Documentation of the LaTeX-package
44108 \begin_inset CommandInset href
44111 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
44118 \begin_inset Index idx
44121 \begin_layout Plain Layout
44122 LaTeX-packages ! endfloat
44130 \begin_layout Bibliography
44131 \labelwidthstring Bibliography
44132 \begin_inset CommandInset bibitem
44133 LatexCommand bibitem
44138 Documentation of the LaTeX-package
44141 \begin_inset CommandInset href
44144 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
44151 \begin_inset Index idx
44154 \begin_layout Plain Layout
44155 LaTeX-packages ! footmisc
44163 \begin_layout Bibliography
44164 \labelwidthstring Bibliography
44165 \begin_inset CommandInset bibitem
44166 LatexCommand bibitem
44171 Documentation of the LaTeX-package
44174 \begin_inset CommandInset href
44177 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
44184 \begin_inset Index idx
44187 \begin_layout Plain Layout
44188 LaTeX-packages ! hyperref
44196 \begin_layout Bibliography
44197 \labelwidthstring Bibliography
44198 \begin_inset CommandInset bibitem
44199 LatexCommand bibitem
44204 Documentation of the LaTeX-package
44207 \begin_inset CommandInset href
44210 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
44217 \begin_inset Index idx
44220 \begin_layout Plain Layout
44221 LaTeX-packages ! hyperref
44229 \begin_layout Bibliography
44230 \labelwidthstring Bibliography
44231 \begin_inset CommandInset bibitem
44232 LatexCommand bibitem
44237 Documentation of the LaTeX-package
44240 \begin_inset CommandInset href
44243 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
44250 \begin_inset Index idx
44253 \begin_layout Plain Layout
44254 LaTeX-packages ! KOMA-Script
44262 \begin_layout Bibliography
44263 \labelwidthstring Bibliography
44264 \begin_inset CommandInset bibitem
44265 LatexCommand bibitem
44270 Documentation of the LaTeX-package
44273 \begin_inset CommandInset href
44276 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
44283 \begin_inset CommandInset href
44286 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
44291 \begin_inset Index idx
44294 \begin_layout Plain Layout
44295 LaTeX-packages ! lettrine
44303 \begin_layout Bibliography
44304 \labelwidthstring Bibliography
44305 \begin_inset CommandInset bibitem
44306 LatexCommand bibitem
44311 Documentation of the LaTeX-package
44314 \begin_inset CommandInset href
44317 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
44324 \begin_inset Index idx
44327 \begin_layout Plain Layout
44328 LaTeX-packages ! listings
44336 \begin_layout Bibliography
44337 \labelwidthstring Bibliography
44338 \begin_inset CommandInset bibitem
44339 LatexCommand bibitem
44344 Documentation of the LaTeX-package
44347 \begin_inset CommandInset href
44350 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
44357 \begin_inset Index idx
44360 \begin_layout Plain Layout
44361 LaTeX-packages ! marginnote
44369 \begin_layout Bibliography
44370 \labelwidthstring Bibliography
44371 \begin_inset CommandInset bibitem
44372 LatexCommand bibitem
44377 Documentation of the LaTeX-package
44380 \begin_inset CommandInset href
44383 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
44390 \begin_inset Index idx
44393 \begin_layout Plain Layout
44394 LaTeX-packages ! pdfpages
44402 \begin_layout Bibliography
44403 \labelwidthstring Bibliography
44404 \begin_inset CommandInset bibitem
44405 LatexCommand bibitem
44410 Documentation of the LaTeX-package
44413 \begin_inset CommandInset href
44416 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
44423 \begin_inset Index idx
44426 \begin_layout Plain Layout
44427 LaTeX-packages ! prettyref
44435 \begin_layout Bibliography
44436 \labelwidthstring Bibliography
44437 \begin_inset CommandInset bibitem
44438 LatexCommand bibitem
44443 Web page of the LaTeX-package
44446 \begin_inset CommandInset href
44449 target "http://tug.org/PSTricks/"
44456 \begin_inset Index idx
44459 \begin_layout Plain Layout
44460 LaTeX-packages ! PSTricks
44468 \begin_layout Bibliography
44469 \labelwidthstring Bibliography
44470 \begin_inset CommandInset bibitem
44471 LatexCommand bibitem
44476 Documentation of the LaTeX-package
44479 \begin_inset CommandInset href
44482 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
44489 \begin_inset Index idx
44492 \begin_layout Plain Layout
44493 LaTeX-packages ! refstyle
44501 \begin_layout Bibliography
44502 \labelwidthstring Bibliography
44503 \begin_inset CommandInset bibitem
44504 LatexCommand bibitem
44509 Documentation of the LaTeX-package
44512 \begin_inset CommandInset href
44515 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
44522 \begin_inset Index idx
44525 \begin_layout Plain Layout
44526 LaTeX-packages ! sidecap
44534 \begin_layout Bibliography
44535 \labelwidthstring Bibliography
44536 \begin_inset CommandInset bibitem
44537 LatexCommand bibitem
44543 \begin_inset CommandInset href
44546 target "http://wiki.lyx.org/LyX/NewInLyX20"
44550 about new features in
44557 \begin_layout Standard
44558 \begin_inset CommandInset index_print
44559 LatexCommand printindex