1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
9 % that links to image floats jumps
10 % to the beginning of the float and
12 \usepackage[figure]{hypcap}
14 % the pages of the TOC is numbered roman
15 % and a PDF-bookmark for the TOC is added
16 \let\myTOC\tableofcontents
17 \renewcommand\tableofcontents{%
19 \pdfbookmark[1]{\contentsname}{}
23 % provides caption formatting
24 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
26 % provides commands to set caption
27 % beside tables/images
28 \newcommand{\TabBesBeg}[1][1.0]{%
30 \let\MyEndtable\endtable
31 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
33 \newcommand{\TabBesEnd}{%
35 \let\endtable\MyEndtable}
37 \newcommand{\FigBesBeg}[1][1.0]{%
39 \let\MyEndfigure\endfigure
40 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
42 \newcommand{\FigBesEnd}{%
44 \let\endfigure\MyEndfigure}
46 % enables calculation of values,
49 % increase the bottom float placement fraction
50 \renewcommand{\bottomfraction}{0.5}
52 % avoids that floats are placed before their
53 % corresponding section starts
54 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
56 % speed up the longtable calculation
57 \setcounter{LTchunksize}{100}
59 % used for colored tables
60 \@ifundefined{textcolor}
61 {\usepackage{color}}{}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
63 \definecolor{lightgrey}{gray}{0.8}
65 % check for package colortbl
66 % used for colored table cells
68 \IfFileExists{colortbl.sty}
69 {\usepackage{colortbl}
70 \setboolean{colortbl}{true}}
71 {\setboolean{colortbl}{false}}
73 % used to have extra space in table cells
74 \@ifundefined{extrarowheight}
75 {\usepackage{array}}{}
76 \setlength{\extrarowheight}{2pt}
78 % used for customized tables
81 {>{\centering\hspace{0pt}}m{#1}}
84 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
87 {>{\columncolor{#1}\hspace{0pt}}c}
89 \newcolumntype{V}{!{\vrule width 1.5pt}}
91 \newcolumntype{W}{!{\color{green}\vline}}
94 % insert additional vertical space of
95 % 1.5 mm between footnotes
97 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
99 % number algorithm floats within chapters
100 \numberwithin{algorithm}{chapter}
102 % ------------------------------------
103 % used to check for needed LaTeX packages
106 % check for package arydshln
107 % used for tables with dashed lines
108 \newboolean{arydshln}
109 \IfFileExists{arydshln.sty}
110 {\usepackage{arydshln}
111 \setboolean{arydshln}{true}}
112 {\setboolean{arydshln}{false}}
114 % check for package marginnote
115 % used for margin notes
116 \newboolean{marginnote}
117 \IfFileExists{marginnote.sty}
118 {\usepackage{marginnote}
119 \let\marginpar\marginnote
120 \setboolean{marginnote}{true}}
121 {\setboolean{marginnote}{false}}
123 % check for package sidecap
124 % used for captions on the side
126 \IfFileExists{sidecap.sty}
127 {\usepackage{sidecap}
128 \setboolean{sidecap}{true}}
129 {\setboolean{sidecap}{false}}
132 % used for surrounded fixed objects
133 \newboolean{picinpar}
134 \IfFileExists{picinpar.sty}
135 {\usepackage{picinpar}
136 \setboolean{picinpar}{true}}
137 {\setboolean{picinpar}{false}}
140 \newboolean{lettrine}
141 \IfFileExists{lettrine.sty}
142 {\usepackage{lettrine}
143 \setboolean{lettrine}{true}}
144 {\setboolean{lettrine}{false}}
148 \IfFileExists{diagbox.sty}
149 {\usepackage{diagbox}
150 \setboolean{diagbox}{true}}
151 {\setboolean{diagbox}{false}}
153 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,dvipsnames,table
154 \use_default_options false
159 \maintain_unincluded_children false
161 \language_package default
164 \font_roman "lmodern" "default"
165 \font_sans "lmss" "default"
166 \font_typewriter "lmtt" "default"
167 \font_math "auto" "auto"
168 \font_default_family default
169 \use_non_tex_fonts false
172 \font_sf_scale 100 100
173 \font_tt_scale 100 100
176 \default_output_format pdf2
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \use_package amsmath 2
200 \use_package amssymb 2
201 \use_package cancel 0
203 \use_package mathdots 1
204 \use_package mathtools 0
205 \use_package mhchem 1
206 \use_package stackrel 0
207 \use_package stmaryrd 0
208 \use_package undertilde 0
210 \cite_engine_type default
214 \paperorientation portrait
218 \notefontcolor #0000ff
225 \paragraph_separation skip
227 \quotes_language english
230 \paperpagestyle default
231 \tracking_changes true
232 \output_changes false
235 \html_be_strict false
236 \author 227574939 "Kyttj"
243 's detailed Figure, Table, Floats, Notes, Boxes and External Material manual
247 by the \SpecialChar LyX
252 \begin_layout Plain Layout
254 If you have comments or error corrections, please send them to the \SpecialChar LyX
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 \SpecialChar LaTeX
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
416 arg "dialog-show-new-inset graphics"
421 Insert\SpecialChar menuseparator
425 Then a dialog will appear to choose the file to load.
426 The image will appear in the output exactly at the position where it is
430 \begin_layout Standard
431 The graphics dialog can be called at any time by clicking on an image.
432 This dialog has three tabs:
435 \begin_layout Description
440 Here you can choose an image file and adjust its appearance in the output.
441 The available units for the image size are explained in appendix
446 \begin_inset CommandInset ref
448 reference "cha:Units-available-in"
453 \begin_inset Newline newline
457 \begin_inset Index idx
460 \begin_layout Plain Layout
466 You can rotate images counter-clockwise by setting a rotation angle and
468 The image will also be rotated inside \SpecialChar LyX
470 \begin_inset Newline newline
474 \begin_inset Index idx
477 \begin_layout Plain Layout
483 Images can be scaled by using a percentage value or by setting the width
484 and height explicitly.
485 If you set only the width or only the height, the other size will be determined
487 If you set both, then the image will be transformed to the given size,
488 possibly distorting it.
489 To prevent the image from distortion, use the option
491 Maintain aspect ratio
494 The image will then be scaled so that its width and height don't exceed
495 the specified dimensions.
496 \begin_inset Newline newline
499 Images can be opened in a program of your choice by right-clicking on it
500 and choosing the entry
509 The program can be set for every image format in the file format settings
514 \begin_layout Description
519 Alternatively to the usage of scaling units it is possible to set image
520 coordinates to adjust the height and width of the image in the output.
521 The coordinates can also be calculated automatically by pressing the button
551 will only print the image region within the given coordinates.
552 Normally you don't need to worry about image coordinates and can ignore
556 \begin_layout Description
573 In this tab you can modify the appearance of the image within \SpecialChar LyX
574 and \SpecialChar LaTeX
576 can specify additional \SpecialChar LaTeX
578 \begin_inset Newline newline
589 makes the image appear in the output only as a frame with the size of the
591 \begin_inset Newline newline
602 you can define or join an image settings group.
603 \begin_inset Index idx
606 \begin_layout Plain Layout
607 Figures ! Settings grouping
612 Images within such a group share their settings, so adjusting one image
613 of the group automatically also adjusts all other images of the group in
615 So you can for example change the size for a bunch of images without the
616 need to manually change each of them.
617 Joining an existing group can also be done using the context menu of the
618 image by checking the name of the desired group.
621 \begin_layout Standard
622 \begin_inset VSpace bigskip
628 \begin_layout Standard
629 This is an example image in EPS format
633 \begin_layout Plain Layout
634 Image formats are explained in section
639 \begin_inset CommandInset ref
641 reference "sec:Image-Formats"
650 within a separate, horizontally centered paragraph:
651 \begin_inset Separator latexpar
657 \begin_layout Standard
659 \begin_inset Graphics
660 filename clipart/mobius.eps
670 \begin_layout Standard
671 This is the same image like the one above but in draft mode:
672 \begin_inset Separator latexpar
678 \begin_layout Standard
680 \begin_inset Graphics
681 filename clipart/mobius.eps
692 \begin_layout Standard
693 \begin_inset Newpage newpage
699 \begin_layout Section
701 \begin_inset CommandInset label
703 name "sec:Figure-Floats"
708 \begin_inset Index idx
711 \begin_layout Plain Layout
718 \begin_inset Index idx
721 \begin_layout Plain Layout
730 \begin_layout Standard
731 For general explanations about floats, have a look at section
736 \begin_inset CommandInset ref
738 reference "sec:FloatIntroduction"
745 \begin_layout Standard
749 arg "float-insert figure"
754 Insert\SpecialChar menuseparator
755 Float\SpecialChar menuseparator
758 inserts a float with a caption that has the label
759 \begin_inset Quotes eld
767 \begin_inset Quotes erd
770 (# is the actual number).
771 You can insert the image above the caption, like in Figure
776 \begin_inset CommandInset ref
778 reference "fig:kill-plat"
782 or below the caption, like in Figure
787 \begin_inset CommandInset ref
789 reference "fig:escher"
794 More about caption placement is described in section
799 \begin_inset CommandInset ref
801 reference "sec:Caption-Placement"
808 \begin_layout Standard
809 \begin_inset Float figure
814 \begin_layout Plain Layout
816 \begin_inset Graphics
817 filename clipart/platypus.eps
827 \begin_layout Plain Layout
828 \begin_inset Caption Standard
830 \begin_layout Plain Layout
831 \begin_inset CommandInset label
837 A severely distorted platypus in a float.
850 \begin_layout Standard
851 \begin_inset Float figure
856 \begin_layout Plain Layout
857 \begin_inset Caption Standard
859 \begin_layout Plain Layout
860 \begin_inset CommandInset label
875 \begin_layout Plain Layout
877 \begin_inset Graphics
878 filename clipart/escher-lsd.eps
893 \begin_layout Standard
894 \begin_inset Index idx
897 \begin_layout Plain Layout
898 References ! to Figures
908 \begin_inset CommandInset ref
910 reference "fig:kill-plat"
915 \begin_inset CommandInset ref
917 reference "fig:escher"
921 are examples of referenced figures.
922 Figures can be referenced in the text by referencing their label.
923 To do this insert a label in the caption using the menu
925 Insert\SpecialChar menuseparator
928 or the toolbar button
935 You can now refer to the label using the menu
937 Insert\SpecialChar menuseparator
944 or the toolbar button
947 arg "dialog-show-new-inset ref"
951 It is important to use references to floats, rather than using vague references
953 \begin_inset Quotes eld
957 \begin_inset Quotes erd
960 , because \SpecialChar LaTeX
961 will reposition the floats in the final document and it might
963 \begin_inset Quotes eld
967 \begin_inset Quotes erd
971 \begin_inset Newline newline
974 Referencing is explained in detail in section
979 \begin_inset CommandInset ref
981 reference "sec:Referencing-Floats"
988 \begin_layout Standard
989 Normally only one image is inserted to a figure float, but sometimes you
990 might want to use two images with separate subcaptions.
991 This can be done by inserting image floats into existing image floats.
992 Note that only the main caption of the float is added to the List of Figures.
998 \begin_inset CommandInset ref
1000 reference "fig:Two-distorted-images"
1004 is an example of a figure float with two images set side by side.
1005 You can also set the images one below the other.
1007 \begin_inset space ~
1011 \begin_inset CommandInset ref
1013 reference "fig:Undefinable-structure"
1018 \begin_inset CommandInset ref
1020 reference "fig:A-Platypus"
1027 \begin_layout Standard
1028 \begin_inset Float figure
1033 \begin_layout Plain Layout
1034 \begin_inset space \hfill{}
1038 \begin_inset Float figure
1043 \begin_layout Plain Layout
1044 \begin_inset Caption Standard
1046 \begin_layout Plain Layout
1047 \begin_inset CommandInset label
1049 name "fig:Undefinable-structure"
1053 Undefinable structure.
1061 \begin_layout Plain Layout
1062 \begin_inset Graphics
1063 filename clipart/escher-lsd.eps
1076 \begin_inset space \hfill{}
1080 \begin_inset Float figure
1085 \begin_layout Plain Layout
1086 \begin_inset Caption Standard
1088 \begin_layout Plain Layout
1089 \begin_inset CommandInset label
1091 name "fig:A-Platypus"
1103 \begin_layout Plain Layout
1104 \begin_inset Graphics
1105 filename clipart/platypus.eps
1118 \begin_inset space \hfill{}
1124 \begin_layout Plain Layout
1125 \begin_inset Caption Standard
1127 \begin_layout Plain Layout
1128 \begin_inset CommandInset label
1130 name "fig:Two-distorted-images"
1134 Two distorted images.
1135 Both images are in the image settings group named
1136 \begin_inset Quotes eld
1140 \begin_inset Quotes erd
1156 \begin_layout Standard
1157 \begin_inset Newpage newpage
1163 \begin_layout Section
1165 \begin_inset CommandInset label
1167 name "sec:Image-Formats"
1172 \begin_inset Index idx
1175 \begin_layout Plain Layout
1182 \begin_inset Index idx
1185 \begin_layout Plain Layout
1186 Figures ! Image Formats
1194 \begin_layout Standard
1195 You can insert images in any known file format.
1196 But as explained in appendix
1197 \begin_inset space ~
1201 \begin_inset CommandInset ref
1203 reference "cha:Output-File-Formats"
1207 , each output document format allows only a few image formats.
1209 uses therefore the program
1213 in the background to convert the images to the right format.
1214 To increase your work flow by avoiding these conversions in the background,
1215 you could choose to use only the image formats that can directly be embedded
1216 in the output file format.
1217 The output file formats are explained in appendix
1218 \begin_inset space ~
1222 \begin_inset CommandInset ref
1224 reference "cha:Output-File-Formats"
1231 \begin_layout Standard
1232 Similar to fonts there are two types of image formats:
1235 \begin_layout Description
1237 \begin_inset space ~
1240 images consist of pixel values, often in a compressed form.
1241 They are therefore not fully scalable and look pixelated in large zooms.
1242 Well-known bitmap image formats are
1243 \begin_inset Quotes eld
1246 Graphics Interchange Format
1247 \begin_inset Quotes erd
1250 (GIF, file extension
1251 \begin_inset Quotes eld
1259 \begin_inset Quotes erd
1263 \begin_inset Index idx
1266 \begin_layout Plain Layout
1271 \begin_layout Plain Layout
1282 \begin_layout Plain Layout
1295 \begin_inset Quotes eld
1298 Portable Network Graphics
1299 \begin_inset Quotes erd
1302 (PNG, file extension
1303 \begin_inset Quotes eld
1311 \begin_inset Quotes erd
1315 \begin_inset Index idx
1318 \begin_layout Plain Layout
1323 \begin_layout Plain Layout
1334 \begin_layout Plain Layout
1347 \begin_inset Quotes eld
1350 Joint Photographic Experts Group
1351 \begin_inset Quotes erd
1354 (JPG, file extension
1355 \begin_inset Quotes eld
1363 \begin_inset Quotes erd
1367 \begin_inset Quotes eld
1375 \begin_inset Quotes erd
1379 \begin_inset Index idx
1382 \begin_layout Plain Layout
1387 \begin_layout Plain Layout
1398 \begin_layout Plain Layout
1413 \begin_layout Description
1415 \begin_inset space ~
1418 images consist of vectors and can therefore be scaled to any size without
1420 The scaling ability is necessary if you want to create presentations, because
1421 presentations are always scaled by the video projector.
1422 Scaling is also useful for online documents to let the user zoom into diagrams.
1423 \begin_inset Newline newline
1426 Well-known scalable image formats are
1427 \begin_inset Quotes eld
1430 Scalable Vector Graphics
1431 \begin_inset Quotes erd
1434 (SVG, file extension
1435 \begin_inset Quotes eld
1443 \begin_inset Quotes erd
1447 \begin_inset Index idx
1450 \begin_layout Plain Layout
1455 \begin_layout Plain Layout
1466 \begin_layout Plain Layout
1479 \begin_inset Quotes eld
1482 Encapsulated PostScript
1483 \begin_inset Quotes erd
1486 (EPS, file extension
1487 \begin_inset Quotes eld
1495 \begin_inset Quotes erd
1499 \begin_inset Index idx
1502 \begin_layout Plain Layout
1507 \begin_layout Plain Layout
1518 \begin_layout Plain Layout
1531 \begin_inset Quotes eld
1534 Portable Document Format
1535 \begin_inset Quotes erd
1538 (PDF, file extension
1539 \begin_inset Quotes eld
1547 \begin_inset Quotes erd
1551 \begin_inset Index idx
1554 \begin_layout Plain Layout
1561 \begin_inset Quotes eld
1565 \begin_inset Quotes erd
1568 (WMF, file extension
1569 \begin_inset Quotes eld
1577 \begin_inset Quotes erd
1581 \begin_inset Index idx
1584 \begin_layout Plain Layout
1589 \begin_layout Plain Layout
1600 \begin_layout Plain Layout
1614 \begin_inset Quotes eld
1618 \begin_inset Quotes erd
1621 , because you can convert any bitmap image to a PDF or EPS-image and the
1622 result will still be a bitmap image.
1623 In such cases only a header with the image properties is added to the original
1628 \begin_layout Plain Layout
1629 In the case of PDF, the original image is additionally compressed.
1635 The PDF-files generated by
1639 are for example bitmap images.
1642 \begin_layout Standard
1643 Normally it is not possible to convert a bitmap image into a scalable one,
1645 Only the image formats PDF and EPS can directly be embedded to PDF and
1646 PostScript output files, respectively.
1647 SVG and WMF-images are recalculated to bitmaps when the output file is
1648 generated because there is currently no adequate WMF/SVG
1649 \begin_inset Formula $\to$
1652 PDF/EPS converter available.
1655 \begin_layout Chapter
1657 \begin_inset Index idx
1660 \begin_layout Plain Layout
1669 \begin_layout Section
1671 \begin_inset Index idx
1674 \begin_layout Plain Layout
1675 Table ! Introduction
1683 \begin_layout Standard
1684 You can insert a table using either the toolbar button
1687 arg "tabular-insert"
1692 Insert\SpecialChar menuseparator
1696 The toolbar button offers you a graphical selection: move the mouse to
1697 set the column/row number of the table that should be created and then
1698 press a mouse button.
1699 When you use the menu to create a table, a dialog will appear, asking you
1700 for the number of rows and columns.
1701 \begin_inset Newline newline
1704 The default table has lines around any cell and the first row appears separated
1705 from the rest of the table.
1706 This separation occurs due to a double line: The cells of the first row
1707 have a line below them and the cells of the second row have a line above
1709 Here is an example table:
1710 \begin_inset Separator latexpar
1716 \begin_layout Standard
1718 \begin_inset Tabular
1719 <lyxtabular version="3" rows="4" columns="4">
1720 <features tabularvalignment="middle">
1721 <column alignment="center" valignment="top">
1722 <column alignment="center" valignment="top">
1723 <column alignment="center" valignment="top">
1724 <column alignment="center" valignment="top">
1726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1729 \begin_layout Plain Layout
1735 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1738 \begin_layout Plain Layout
1753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1756 \begin_layout Plain Layout
1762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1765 \begin_layout Plain Layout
1773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1776 \begin_layout Plain Layout
1791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1812 \begin_layout Plain Layout
1820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1823 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1850 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1859 \begin_layout Plain Layout
1867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1870 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1897 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1906 \begin_layout Plain Layout
1920 \begin_layout Section
1922 \begin_inset Index idx
1925 \begin_layout Plain Layout
1934 \begin_layout Standard
1935 You can alter a table by clicking on it with the right mouse button, which
1936 brings up the context menu.
1937 Under the menu entry
1941 you can adjust the settings of that cell and row/column respectively where
1942 the cursor is currently placed.
1945 More\SpecialChar menuseparator
1948 opens the table dialog where you can adjust more things.
1949 Most of the dialog options also work on selections.
1950 This means if you select more cells, columns or rows, the action is done
1951 for the whole selection.
1952 Note that there is a difference between selecting the
1956 of the cell, and the cell itself.
1957 \begin_inset Newline newline
1960 With the dialog option
1963 \begin_inset space ~
1968 every change you make in the dialog is directly applied.
1969 If you move the cursor to another table cell the dialog will then also
1970 be updated with the parameters of the new cell.
1971 If you change length values in the dialog you must press
1975 to get the change applied.
1976 \begin_inset Newline newline
1979 You can alter tables with the following tabs of the table dialog:
1982 \begin_layout Description
1984 \begin_inset space ~
1987 Settings Here you can set the table width
1988 \begin_inset Index idx
1991 \begin_layout Plain Layout
1997 , and the horizontal alignment and the width of the current column.
2001 \begin_inset space ~
2005 \begin_inset space ~
2010 is described in section
2011 \begin_inset space ~
2015 \begin_inset CommandInset ref
2017 reference "subsec:Special-Cell-Alignment"
2022 When you have set a width you can also adjust the vertical alignment of
2024 A given width will allow the cell to have line breaks and multiple paragraphs
2026 \begin_inset space \thinspace{}
2030 \begin_inset CommandInset ref
2032 reference "subsec:Multiple-Lines-in"
2037 If you set no width, the column is as wide as the content of its widest
2039 \begin_inset Newline newline
2042 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2044 \begin_inset space \thinspace{}
2048 \begin_inset CommandInset ref
2050 reference "subsec:Multicolumns"
2054 or the cells of one column as multirow cell, see sec.
2055 \begin_inset space \thinspace{}
2059 \begin_inset CommandInset ref
2061 reference "subsec:Multirows"
2066 \begin_inset Newline newline
2069 The rotate check boxes rotate the current cell, a selection, or the whole
2070 table counter-clockwise by 90
2071 \begin_inset space \thinspace{}
2075 The rotation is not shown within \SpecialChar LyX
2076 , only in the output.
2077 For more information see sec.
2078 \begin_inset space \thinspace{}
2082 \begin_inset CommandInset ref
2084 reference "sec:Rotated-Table-Cells"
2089 \begin_inset Newline newline
2093 \begin_inset Note Greyedout
2096 \begin_layout Plain Layout
2101 Not all DVI-viewers are able to display rotations.
2107 \begin_inset Newline newline
2110 The table-wide vertical alignment is used for tables within text lines:
2111 \begin_inset Newline newline
2114 A line with tables with different alignments:
2115 \begin_inset Tabular
2116 <lyxtabular version="3" rows="2" columns="2">
2117 <features tabularvalignment="top">
2118 <column alignment="center" valignment="top" width="0pt">
2119 <column alignment="center" valignment="top">
2121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2124 \begin_layout Plain Layout
2130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2133 \begin_layout Plain Layout
2150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2153 \begin_layout Plain Layout
2168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2171 \begin_layout Plain Layout
2183 \begin_inset Tabular
2184 <lyxtabular version="3" rows="2" columns="2">
2185 <features tabularvalignment="middle">
2186 <column alignment="center" valignment="top">
2187 <column alignment="center" valignment="top">
2189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2192 \begin_layout Plain Layout
2198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2201 \begin_layout Plain Layout
2218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2221 \begin_layout Plain Layout
2236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2239 \begin_layout Plain Layout
2251 \begin_inset Tabular
2252 <lyxtabular version="3" rows="2" columns="2">
2253 <features tabularvalignment="bottom">
2254 <column alignment="center" valignment="top" width="0pt">
2255 <column alignment="center" valignment="top">
2257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2260 \begin_layout Plain Layout
2266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2269 \begin_layout Plain Layout
2286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2289 \begin_layout Plain Layout
2304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2307 \begin_layout Plain Layout
2319 \begin_inset Newline newline
2322 It is also possible to enter a \SpecialChar LaTeX
2323 -argument which is needed for special table
2324 formattings, see sec.
2325 \begin_inset space \thinspace{}
2329 \begin_inset CommandInset ref
2331 reference "subsec:Multicolumn-Calculations"
2336 \begin_inset CommandInset ref
2338 reference "sec:Colored-Tables"
2345 \begin_layout Description
2346 Borders In this tab you can add and delete border lines for the current
2348 \begin_inset Newline newline
2351 Using the style option
2355 will convert the table to a formal table as described in sec.
2356 \begin_inset space \thinspace{}
2360 \begin_inset CommandInset ref
2362 reference "sec:Formal-Tables"
2367 \begin_inset Newline newline
2370 You can also add space here to table rows as described in sec.
2371 \begin_inset space \thinspace{}
2375 \begin_inset CommandInset ref
2377 reference "subsec:Row-Spacing"
2384 \begin_layout Description
2386 \begin_inset space ~
2389 table This tab is to make a table a multi-page table that can run over several
2392 \begin_inset space ~
2396 \begin_inset CommandInset ref
2398 reference "sec:Multi-page-Tables"
2403 \begin_inset CommandInset ref
2405 reference "sec:Special-Longtable-Issues"
2409 describe the multi-page table features in detail.
2412 \begin_layout Section
2414 \begin_inset Index idx
2417 \begin_layout Plain Layout
2426 \begin_layout Standard
2427 The table toolbar is an alternative to the table dialog to be able to alter
2429 It should normally appear at the bottom of \SpecialChar LyX
2430 's main window when the cursor
2432 You can alternatively switch it on to appear always, by right-clicking
2437 \begin_layout Standard
2438 The toolbar has the following icons:
2441 \begin_layout Labeling
2442 \labelwidthstring 00.00.0000
2445 arg "tabular-feature append-row"
2448 adds a row below the current cell or selection
2451 \begin_layout Labeling
2452 \labelwidthstring 00.00.0000
2455 arg "tabular-feature append-column"
2458 adds a column right beside the current cell or selection
2461 \begin_layout Labeling
2462 \labelwidthstring 00.00.0000
2465 arg "tabular-feature delete-row"
2468 deletes the current row or selection
2471 \begin_layout Labeling
2472 \labelwidthstring 00.00.0000
2475 arg "tabular-feature delete-column"
2478 deletes the current column or selection
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2485 arg "tabular-feature move-row-up"
2491 \begin_layout Labeling
2492 \labelwidthstring 00.00.0000
2495 arg "tabular-feature move-column-left"
2498 moves the column to the left
2501 \begin_layout Labeling
2502 \labelwidthstring 00.00.0000
2505 arg "tabular-feature move-row-down"
2511 \begin_layout Labeling
2512 \labelwidthstring 00.00.0000
2515 arg "tabular-feature move-column-right"
2518 moves the column to the right
2521 \begin_layout Labeling
2522 \labelwidthstring 00.00.0000
2525 arg "tabular-feature toggle-line-top"
2528 adds a line at the top of the current cell / row or of a selection
2531 \begin_layout Labeling
2532 \labelwidthstring 00.00.0000
2535 arg "tabular-feature toggle-line-bottom"
2538 adds a line at the bottom of the current cell / row or of a selection
2541 \begin_layout Labeling
2542 \labelwidthstring 00.00.0000
2545 arg "tabular-feature toggle-line-left"
2548 adds a line at the left side of the current cell / row or of a selection
2551 \begin_layout Labeling
2552 \labelwidthstring 00.00.0000
2555 arg "tabular-feature toggle-line-right"
2558 adds a line at the right side of the current cell / row or of a selection
2561 \begin_layout Labeling
2562 \labelwidthstring 00.00.0000
2565 arg "tabular-feature set-all-lines"
2568 adds lines around the current or selected cells - if the current cell no
2569 multicolumn cell this also affects the current row and column
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2576 arg "tabular-feature unset-all-lines"
2579 deletes all lines of the current or selected cells - if the current cell
2580 no multicolumn cell this also affects the current row and column
2583 \begin_layout Labeling
2584 \labelwidthstring 00.00.0000
2587 arg "tabular-feature m-align-left"
2590 left-aligns the content of the current cell / column
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2597 arg "tabular-feature m-align-center"
2600 centers the content of the current cell / column horizontally
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2607 arg "tabular-feature m-align-right"
2610 right-aligns the content of the current cell / column
2613 \begin_layout Labeling
2614 \labelwidthstring 00.00.0000
2617 arg "tabular-feature align-decimal"
2620 aligns the content of the current column at a character
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2627 arg "tabular-feature m-valign-top"
2630 aligns the content of the current cell vertically to the top
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2637 arg "tabular-feature m-valign-middle"
2640 centers the content of the current cell vertically
2643 \begin_layout Labeling
2644 \labelwidthstring 00.00.0000
2647 arg "tabular-feature m-valign-bottom"
2650 aligns the content of the current cell vertically to the bottom
2653 \begin_layout Labeling
2654 \labelwidthstring 00.00.0000
2657 arg "tabular-feature set-rotate-cell"
2660 rotates the current cell or selection counter-clockwise by 90°
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2667 arg "tabular-feature set-rotate-tabular"
2670 rotates the whole table counter-clockwise by 90°
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2677 arg "tabular-feature multicolumn"
2680 sets the current cell or selection as a multicolumn
2683 \begin_layout Labeling
2684 \labelwidthstring 00.00.0000
2687 arg "tabular-feature multirow"
2690 sets the current cell or selection as a multirow
2693 \begin_layout Standard
2694 \begin_inset Note Greyedout
2697 \begin_layout Plain Layout
2702 For the output the vertical alignment of the first cell in a row is used
2703 for all following cells in the row.
2711 \begin_layout Section
2713 \begin_inset Index idx
2716 \begin_layout Plain Layout
2725 \begin_layout Standard
2726 In addition to the table dialog and toolbar, the menu
2728 Edit\SpecialChar menuseparator
2731 allows you to add and delete border lines for the current row/column and
2732 to set the current selection as multicolumn.
2733 The menu is only available when the cursor is inside a table.
2736 \begin_layout Section
2738 \begin_inset CommandInset label
2740 name "sec:Table-Floats"
2745 \begin_inset Index idx
2748 \begin_layout Plain Layout
2755 \begin_inset Index idx
2758 \begin_layout Plain Layout
2767 \begin_layout Standard
2768 For general explanations about floats, have a look at section
2769 \begin_inset space ~
2773 \begin_inset CommandInset ref
2775 reference "sec:FloatIntroduction"
2782 \begin_layout Standard
2783 \begin_inset Float table
2789 \begin_layout Plain Layout
2790 \begin_inset Caption Standard
2792 \begin_layout Plain Layout
2793 \begin_inset CommandInset label
2795 name "tab:a table float"
2807 \begin_layout Plain Layout
2809 \begin_inset Tabular
2810 <lyxtabular version="3" rows="3" columns="3">
2811 <features tabularvalignment="middle">
2812 <column alignment="center" valignment="top" width="0pt">
2813 <column alignment="center" valignment="top" width="0pt">
2814 <column alignment="center" valignment="top" width="0pt">
2816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2819 \begin_layout Plain Layout
2834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2837 \begin_layout Plain Layout
2852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2855 \begin_layout Plain Layout
2872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2875 \begin_layout Plain Layout
2890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2893 \begin_layout Plain Layout
2908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2911 \begin_layout Plain Layout
2928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2931 \begin_layout Plain Layout
2941 \begin_inset Formula $\int x^{2}dx$
2949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2952 \begin_layout Plain Layout
2962 \begin_inset Formula $\left[\begin{array}{cc}
2973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2976 \begin_layout Plain Layout
2986 \begin_inset Formula $1+1=2$
3007 \begin_layout Standard
3008 Table floats can be inserted using the menu
3010 Insert\SpecialChar menuseparator
3011 Float\SpecialChar menuseparator
3014 or the toolbar button
3017 arg "float-insert table"
3023 \begin_layout Standard
3024 The float appears as a collapsible box with a caption that has the label
3026 \begin_inset Quotes eld
3030 \begin_inset space ~
3034 \begin_inset Quotes erd
3037 (# is the actual table number).
3038 You can insert tables in the float above or below the caption.
3041 \begin_layout Standard
3043 \begin_inset space ~
3047 \begin_inset CommandInset ref
3049 reference "tab:a table float"
3053 is an example table within a table float.
3056 \begin_layout Standard
3057 Having the caption above the table is the common rule that is unfortunately
3058 not supported in \SpecialChar LaTeX
3059 's standard classes.
3060 This means that, if you are using the document classes
3076 , there will be no space between the caption and the table.
3077 To insert the needed space, add the following option to the load command
3078 of the \SpecialChar LaTeX
3084 \begin_inset Index idx
3087 \begin_layout Plain Layout
3094 in your document preamble:
3098 \begin_layout Plain Layout
3099 For more information have a look at section
3100 \begin_inset space ~
3104 \begin_inset CommandInset ref
3106 reference "sec:Caption-Placement"
3118 \begin_layout Standard
3124 \begin_layout Standard
3129 , which is described in section
3130 \begin_inset space ~
3134 \begin_inset CommandInset ref
3136 reference "sec:Caption-Formatting"
3140 , is used to adjust the caption format.
3143 \begin_layout Standard
3144 \begin_inset Index idx
3147 \begin_layout Plain Layout
3148 References ! to Tables
3153 Tables can be cross-referenced in the text by referencing their label.
3154 To do this insert a label in the caption using the menu
3156 Insert\SpecialChar menuseparator
3159 or the toolbar button
3166 You can now refer to the label using the menu
3168 Insert\SpecialChar menuseparator
3170 \begin_inset space ~
3175 or the toolbar button
3178 arg "dialog-show-new-inset ref"
3182 \begin_inset Newline newline
3185 Referencing is explained in detail in section
3186 \begin_inset space ~
3190 \begin_inset CommandInset ref
3192 reference "sec:Referencing-Floats"
3199 \begin_layout Section
3205 \begin_inset CommandInset label
3207 name "sec:Multi-page-Tables"
3212 \begin_inset Index idx
3215 \begin_layout Plain Layout
3222 \begin_inset Index idx
3225 \begin_layout Plain Layout
3226 Table ! Multi-page Table
3234 \begin_layout Standard
3235 If the table is too long to fit on one page, you can use the option
3238 \begin_inset space ~
3246 \begin_inset space ~
3251 of the table dialog to split the table automatically over more pages.
3252 Doing this enables the following options:
3255 \begin_layout Description
3256 Header: The current row is defined to be a header row that appears on all
3257 pages of the multi-page table; except for the first page, if
3260 \begin_inset space ~
3266 This is therefore called the main header.
3269 \begin_layout Description
3271 \begin_inset space ~
3274 header: The current row is defined to be a header row that appears on the
3275 first page of the multi-page table.
3278 \begin_layout Description
3279 Footer: The current row is defined to be a footer row that appears on all
3280 pages of the multi-page table; except for the last page, if
3283 \begin_inset space ~
3291 \begin_layout Description
3293 \begin_inset space ~
3296 footer: The current row is defined to be a footer row that appears on the
3297 last page of the multi-page table.
3300 \begin_layout Description
3301 Caption: The current row contains the table caption.
3302 The row is reset as single column and a caption is inserted.
3303 More about multi-page table captions is explained in sec.
3304 \begin_inset space \thinspace{}
3308 \begin_inset CommandInset ref
3310 reference "subsec:Multi-page-Table-Captions"
3317 \begin_layout Standard
3318 You can also specify a row where the table is split.
3319 See the following multi-page table to see how it works:
3320 \begin_inset Separator latexpar
3326 \begin_layout Standard
3328 \begin_inset Tabular
3329 <lyxtabular version="3" rows="69" columns="3">
3330 <features islongtable="true" longtabularalignment="center">
3331 <column alignment="left" valignment="top" width="0cm">
3332 <column alignment="left" valignment="top" width="0pt">
3333 <column alignment="center" valignment="top" width="0pt">
3334 <row endfirsthead="true">
3335 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3338 \begin_layout Plain Layout
3341 Example Phone List (ignore the names)
3346 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3349 \begin_layout Plain Layout
3355 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3358 \begin_layout Plain Layout
3365 <row endfirsthead="true">
3366 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3369 \begin_layout Plain Layout
3377 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3380 \begin_layout Plain Layout
3386 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3389 \begin_layout Plain Layout
3398 <row endhead="true">
3399 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3429 <row endhead="true">
3430 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3462 <row endfoot="true">
3463 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3466 \begin_layout Plain Layout
3467 continued on next page
3472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4177 \begin_layout Plain Layout
4185 <cell alignment="center" valignment="top" usebox="none">
4188 \begin_layout Plain Layout
4194 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4197 \begin_layout Plain Layout
4205 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4208 \begin_layout Plain Layout
4216 <cell alignment="center" valignment="top" usebox="none">
4219 \begin_layout Plain Layout
4225 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4228 \begin_layout Plain Layout
4236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4239 \begin_layout Plain Layout
4247 <cell alignment="center" valignment="top" usebox="none">
4250 \begin_layout Plain Layout
4256 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4259 \begin_layout Plain Layout
4267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4270 \begin_layout Plain Layout
4278 <cell alignment="center" valignment="top" usebox="none">
4281 \begin_layout Plain Layout
4287 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4290 \begin_layout Plain Layout
4298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4301 \begin_layout Plain Layout
4309 <cell alignment="center" valignment="top" usebox="none">
4312 \begin_layout Plain Layout
4318 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4321 \begin_layout Plain Layout
4329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4332 \begin_layout Plain Layout
4340 <cell alignment="center" valignment="top" usebox="none">
4343 \begin_layout Plain Layout
4349 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4352 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4363 \begin_layout Plain Layout
4371 <cell alignment="center" valignment="top" usebox="none">
4374 \begin_layout Plain Layout
4380 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4383 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4394 \begin_layout Plain Layout
4402 <cell alignment="center" valignment="top" usebox="none">
4405 \begin_layout Plain Layout
4411 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4414 \begin_layout Plain Layout
4422 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4425 \begin_layout Plain Layout
4433 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4436 \begin_layout Plain Layout
4442 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4445 \begin_layout Plain Layout
4453 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Plain Layout
4462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5164 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5167 \begin_layout Plain Layout
5175 <cell alignment="center" valignment="top" usebox="none">
5178 \begin_layout Plain Layout
5184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5187 \begin_layout Plain Layout
5195 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5198 \begin_layout Plain Layout
5206 <cell alignment="center" valignment="top" usebox="none">
5209 \begin_layout Plain Layout
5215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5218 \begin_layout Plain Layout
5226 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5229 \begin_layout Plain Layout
5237 <cell alignment="center" valignment="top" usebox="none">
5240 \begin_layout Plain Layout
5246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5249 \begin_layout Plain Layout
5257 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5260 \begin_layout Plain Layout
5268 <cell alignment="center" valignment="top" usebox="none">
5271 \begin_layout Plain Layout
5277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5280 \begin_layout Plain Layout
5288 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5291 \begin_layout Plain Layout
5299 <cell alignment="center" valignment="top" usebox="none">
5302 \begin_layout Plain Layout
5308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5311 \begin_layout Plain Layout
5319 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5322 \begin_layout Plain Layout
5330 <cell alignment="center" valignment="top" usebox="none">
5333 \begin_layout Plain Layout
5339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5342 \begin_layout Plain Layout
5350 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5353 \begin_layout Plain Layout
5361 <cell alignment="center" valignment="top" usebox="none">
5364 \begin_layout Plain Layout
5370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5373 \begin_layout Plain Layout
5381 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5384 \begin_layout Plain Layout
5392 <cell alignment="center" valignment="top" usebox="none">
5395 \begin_layout Plain Layout
5401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5404 \begin_layout Plain Layout
5412 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5415 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5426 \begin_layout Plain Layout
5432 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5435 \begin_layout Plain Layout
5442 <row endlastfoot="true">
5443 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5446 \begin_layout Plain Layout
5452 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5464 \begin_layout Plain Layout
5479 \begin_layout Plain Layout
5483 addtocounter{table}{-1}
5489 \begin_inset Note Note
5492 \begin_layout Plain Layout
5493 See the first greyed-out note in section
5494 \begin_inset space ~
5498 \begin_inset CommandInset ref
5500 reference "subsec:Multi-page-Table-Captions"
5504 for an explanation of this command.
5512 \begin_layout Subsection
5513 Footnotes in Multi-page tables
5514 \begin_inset CommandInset label
5516 name "subsec:Footnotes-in-Multi-page"
5521 \begin_inset Index idx
5524 \begin_layout Plain Layout
5525 Table ! Multi-page Table ! Footnotes
5533 \begin_layout Standard
5534 Footnotes can be inserted to every Multi-page table cell.
5535 They appear at the bottom of the page where the table cell with the footnote
5538 \begin_inset space ~
5542 \begin_inset CommandInset ref
5544 reference "tab:DiffCaptions"
5548 has for example a footnote.
5551 \begin_layout Subsection
5552 Multi-page Table Alignment
5553 \begin_inset Index idx
5556 \begin_layout Plain Layout
5557 Table ! Multi-page Table ! Alignment
5565 \begin_layout Standard
5566 The horizontal alignment of multi-page tables can be set in the table settings
5568 For left- and right-alignment the table will be directly at the page border.
5569 To add space between the table and the border one has to set the alignment
5570 to center and change the value of the \SpecialChar LaTeX
5583 by inserting this line as \SpecialChar TeX
5584 Code before the multi-page table:
5587 \begin_layout Standard
5597 \begin_layout Standard
5598 The value can have any of the units listed in Table
5599 \begin_inset space ~
5603 \begin_inset CommandInset ref
5605 reference "tab:Units"
5616 controls the horizontal distance from the left page border to the multi-page
5623 the distance from the right side.
5624 The default value for both lengths is
5630 , which is in this case the same as an horizontal fill in \SpecialChar LyX
5634 \begin_layout Standard
5635 The following multi-page table was centered and
5651 \begin_layout Plain Layout
5667 \begin_layout Standard
5668 \begin_inset Tabular
5669 <lyxtabular version="3" rows="5" columns="5">
5670 <features islongtable="true" longtabularalignment="center">
5671 <column alignment="center" valignment="top">
5672 <column alignment="center" valignment="top" width="0pt">
5673 <column alignment="center" valignment="top">
5674 <column alignment="center" valignment="top">
5675 <column alignment="center" valignment="top">
5677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5680 \begin_layout Plain Layout
5686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5689 \begin_layout Plain Layout
5695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5698 \begin_layout Plain Layout
5704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5707 \begin_layout Plain Layout
5713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5716 \begin_layout Plain Layout
5724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_layout Plain Layout
5733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5736 \begin_layout Plain Layout
5742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5745 \begin_layout Plain Layout
5751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5754 \begin_layout Plain Layout
5760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5763 \begin_layout Plain Layout
5771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5774 \begin_layout Plain Layout
5780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5783 \begin_layout Plain Layout
5789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5792 \begin_layout Plain Layout
5798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5810 \begin_layout Plain Layout
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Plain Layout
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5839 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5857 \begin_layout Plain Layout
5865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5868 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5886 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5904 \begin_layout Plain Layout
5919 \begin_layout Plain Layout
5936 \begin_layout Plain Layout
5940 addtocounter{table}{-1}
5946 \begin_inset Note Note
5949 \begin_layout Plain Layout
5950 See the first greyed-out note in section
5951 \begin_inset space ~
5955 \begin_inset CommandInset ref
5957 reference "subsec:Multi-page-Table-Captions"
5961 for an explanation of this command.
5969 \begin_layout Subsection
5970 Multi-page Table Captions
5971 \begin_inset Index idx
5974 \begin_layout Plain Layout
5975 Table ! Multi-page Table ! Captions
5981 \begin_inset CommandInset label
5983 name "subsec:Multi-page-Table-Captions"
5990 \begin_layout Standard
5991 A multi-page table cannot be put into a table float because floats can only
5993 But the caption environment of floats can also be used for multi-page tables
5994 when you use the multi-page table option
5998 as described in sec.
5999 \begin_inset space \thinspace{}
6003 \begin_inset CommandInset ref
6005 reference "sec:Multi-page-Tables"
6010 Only one table row should contain a caption, either a header or a footer
6014 \begin_layout Standard
6015 Here is a short multi-page table to see how it works:
6018 \begin_layout Standard
6019 \begin_inset Tabular
6020 <lyxtabular version="3" rows="6" columns="5">
6021 <features islongtable="true" longtabularalignment="center">
6022 <column alignment="center" valignment="top">
6023 <column alignment="center" valignment="top">
6024 <column alignment="center" valignment="top">
6025 <column alignment="center" valignment="top">
6026 <column alignment="center" valignment="top">
6027 <row endfirsthead="true" caption="true">
6028 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6031 \begin_layout Plain Layout
6032 \begin_inset Caption Standard
6034 \begin_layout Plain Layout
6035 Multi-page table with caption
6036 \begin_inset Argument 1
6039 \begin_layout Plain Layout
6055 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6058 \begin_layout Plain Layout
6064 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6067 \begin_layout Plain Layout
6073 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6076 \begin_layout Plain Layout
6082 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6085 \begin_layout Plain Layout
6093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6096 \begin_layout Plain Layout
6102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6105 \begin_layout Plain Layout
6111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6114 \begin_layout Plain Layout
6120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6123 \begin_layout Plain Layout
6129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6132 \begin_layout Plain Layout
6140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6143 \begin_layout Plain Layout
6149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6152 \begin_layout Plain Layout
6158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6161 \begin_layout Plain Layout
6167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6170 \begin_layout Plain Layout
6176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6179 \begin_layout Plain Layout
6187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6190 \begin_layout Plain Layout
6196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6199 \begin_layout Plain Layout
6205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6208 \begin_layout Plain Layout
6214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6217 \begin_layout Plain Layout
6223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6226 \begin_layout Plain Layout
6234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6237 \begin_layout Plain Layout
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Plain Layout
6252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6255 \begin_layout Plain Layout
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6264 \begin_layout Plain Layout
6270 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6273 \begin_layout Plain Layout
6281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6284 \begin_layout Plain Layout
6290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6293 \begin_layout Plain Layout
6299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6302 \begin_layout Plain Layout
6308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6311 \begin_layout Plain Layout
6317 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6320 \begin_layout Plain Layout
6334 \begin_layout Standard
6335 \begin_inset VSpace medskip
6339 \begin_inset Note Greyedout
6342 \begin_layout Plain Layout
6346 \begin_inset space ~
6351 The table number is increased for every multi-page table, even if you did
6352 not set a caption for it.
6353 For this reason you could have the case that e.
6354 \begin_inset space \thinspace{}
6358 \begin_inset space \space{}
6362 \begin_inset space ~
6366 \begin_inset space ~
6369 2.1 in the list of tables if there are two multi-page tables without captions.
6370 To avoid this you can add the following command in \SpecialChar TeX
6371 Code after every multi-page
6372 table without a caption:
6375 \begin_layout Plain Layout
6380 addtocounter{table}{-1}
6383 \begin_layout Plain Layout
6384 This is not needed when none of your multi-page tables has a caption and
6385 you add the following code to the document preamble:
6388 \begin_layout Plain Layout
6398 \begin_inset Newline newline
6409 addtocounter{table}{-1}}
6417 \begin_layout Standard
6418 \begin_inset Note Greyedout
6421 \begin_layout Plain Layout
6425 \begin_inset space ~
6435 \begin_inset Index idx
6438 \begin_layout Plain Layout
6440 -packages ! hyperref
6453 dialog to link cross-references, the link to a multi-page table caption
6454 will always point to the beginning of the document.
6462 \begin_layout Subsubsection
6463 References to multi-page tables
6464 \begin_inset Index idx
6467 \begin_layout Plain Layout
6468 Table ! Multi-page Table ! References
6476 \begin_layout Standard
6477 \begin_inset Tabular
6478 <lyxtabular version="3" rows="6" columns="5">
6479 <features islongtable="true" longtabularalignment="center">
6480 <column alignment="center" valignment="top">
6481 <column alignment="center" valignment="top">
6482 <column alignment="center" valignment="top">
6483 <column alignment="center" valignment="top">
6484 <column alignment="center" valignment="top">
6485 <row endfirsthead="true" caption="true">
6486 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6489 \begin_layout Plain Layout
6490 \begin_inset Caption Standard
6492 \begin_layout Plain Layout
6493 Referenced multi-page table
6494 \begin_inset CommandInset label
6496 name "tab:Referenced-multi-page-table"
6510 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6513 \begin_layout Plain Layout
6519 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6522 \begin_layout Plain Layout
6528 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6531 \begin_layout Plain Layout
6537 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6540 \begin_layout Plain Layout
6548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6551 \begin_layout Plain Layout
6557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6560 \begin_layout Plain Layout
6566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6569 \begin_layout Plain Layout
6575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6578 \begin_layout Plain Layout
6584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6587 \begin_layout Plain Layout
6595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6598 \begin_layout Plain Layout
6604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6607 \begin_layout Plain Layout
6613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6616 \begin_layout Plain Layout
6622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6625 \begin_layout Plain Layout
6631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6634 \begin_layout Plain Layout
6642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6645 \begin_layout Plain Layout
6651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6654 \begin_layout Plain Layout
6660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6663 \begin_layout Plain Layout
6669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6672 \begin_layout Plain Layout
6678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6681 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6692 \begin_layout Plain Layout
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Plain Layout
6707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6710 \begin_layout Plain Layout
6716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6719 \begin_layout Plain Layout
6725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6728 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6739 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6748 \begin_layout Plain Layout
6754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6757 \begin_layout Plain Layout
6763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6766 \begin_layout Plain Layout
6772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6775 \begin_layout Plain Layout
6789 \begin_layout Standard
6790 To reference a multi-page table, insert a label into the caption.
6793 \begin_layout Standard
6794 This is a reference to Table
6795 \begin_inset space ~
6799 \begin_inset CommandInset ref
6801 reference "tab:Referenced-multi-page-table"
6808 \begin_layout Standard
6809 The caption layout can be set together with all other captions of your document
6810 using the \SpecialChar LaTeX
6816 \begin_inset Index idx
6819 \begin_layout Plain Layout
6827 \begin_inset space ~
6831 \begin_inset CommandInset ref
6833 reference "sec:Caption-Formatting"
6840 \begin_layout Subsubsection
6842 \begin_inset Index idx
6845 \begin_layout Plain Layout
6846 Table ! Multi-page Table ! Caption Width
6854 \begin_layout Standard
6855 The maximal width of caption lines is defined by the length
6862 Its default value is 4
6863 \begin_inset space \thinspace{}
6867 To change it add the following command to your document preamble or as
6869 Code into your document before the multi-page table that should be affected
6872 \begin_layout Standard
6882 \begin_layout Standard
6887 can have one of the units listed in appendix
6888 \begin_inset space ~
6892 \begin_inset CommandInset ref
6894 reference "cha:Units-available-in"
6901 \begin_layout Standard
6902 The following tables show the difference:
6905 \begin_layout Standard
6906 \begin_inset Tabular
6907 <lyxtabular version="3" rows="6" columns="5">
6908 <features islongtable="true" longtabularalignment="center">
6909 <column alignment="center" valignment="top">
6910 <column alignment="center" valignment="top">
6911 <column alignment="center" valignment="top">
6912 <column alignment="center" valignment="top">
6913 <column alignment="center" valignment="top">
6914 <row endfirsthead="true" caption="true">
6915 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6918 \begin_layout Plain Layout
6919 \begin_inset Caption Standard
6921 \begin_layout Plain Layout
6922 Long full title with default width long full title with default width long
6923 full title with default width
6924 \begin_inset Argument 1
6927 \begin_layout Plain Layout
6928 caption with default width
6943 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6946 \begin_layout Plain Layout
6952 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6955 \begin_layout Plain Layout
6961 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6964 \begin_layout Plain Layout
6970 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6973 \begin_layout Plain Layout
6981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6984 \begin_layout Plain Layout
6990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6993 \begin_layout Plain Layout
6999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7002 \begin_layout Plain Layout
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7011 \begin_layout Plain Layout
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7020 \begin_layout Plain Layout
7028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7031 \begin_layout Plain Layout
7037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7040 \begin_layout Plain Layout
7046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7049 \begin_layout Plain Layout
7055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7058 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7067 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7078 \begin_layout Plain Layout
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7096 \begin_layout Plain Layout
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7105 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7114 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7125 \begin_layout Plain Layout
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7134 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7143 \begin_layout Plain Layout
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7161 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7172 \begin_layout Plain Layout
7178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7181 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7190 \begin_layout Plain Layout
7196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7199 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7208 \begin_layout Plain Layout
7222 \begin_layout Standard
7226 \begin_layout Plain Layout
7238 \begin_inset Tabular
7239 <lyxtabular version="3" rows="6" columns="5">
7240 <features islongtable="true" longtabularalignment="center">
7241 <column alignment="center" valignment="top">
7242 <column alignment="center" valignment="top">
7243 <column alignment="center" valignment="top">
7244 <column alignment="center" valignment="top">
7245 <column alignment="center" valignment="top">
7246 <row endfirsthead="true" caption="true">
7247 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7250 \begin_layout Plain Layout
7251 \begin_inset Caption Standard
7253 \begin_layout Plain Layout
7254 Long full title with width set to 5
7255 \begin_inset space \thinspace{}
7258 cm long full title with width set to 5
7259 \begin_inset space \thinspace{}
7262 cm long full title with width set to 5
7263 \begin_inset space \thinspace{}
7267 \begin_inset Argument 1
7270 \begin_layout Plain Layout
7272 \begin_inset space \thinspace{}
7276 \begin_inset space \thinspace{}
7280 \begin_inset space \thinspace{}
7298 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7301 \begin_layout Plain Layout
7307 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7310 \begin_layout Plain Layout
7316 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7319 \begin_layout Plain Layout
7325 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7328 \begin_layout Plain Layout
7336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7339 \begin_layout Plain Layout
7345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7348 \begin_layout Plain Layout
7354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7357 \begin_layout Plain Layout
7363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7366 \begin_layout Plain Layout
7372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7375 \begin_layout Plain Layout
7383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7386 \begin_layout Plain Layout
7392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7395 \begin_layout Plain Layout
7401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7404 \begin_layout Plain Layout
7410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7413 \begin_layout Plain Layout
7419 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7422 \begin_layout Plain Layout
7430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7433 \begin_layout Plain Layout
7439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7442 \begin_layout Plain Layout
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7451 \begin_layout Plain Layout
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7460 \begin_layout Plain Layout
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7469 \begin_layout Plain Layout
7477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7480 \begin_layout Plain Layout
7486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7489 \begin_layout Plain Layout
7495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7498 \begin_layout Plain Layout
7504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7516 \begin_layout Plain Layout
7524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7527 \begin_layout Plain Layout
7533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7536 \begin_layout Plain Layout
7542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7545 \begin_layout Plain Layout
7551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7563 \begin_layout Plain Layout
7577 \begin_layout Standard
7581 \begin_layout Plain Layout
7595 \begin_layout Standard
7596 \begin_inset Note Greyedout
7599 \begin_layout Plain Layout
7604 When the \SpecialChar LaTeX
7610 \begin_inset Index idx
7613 \begin_layout Plain Layout
7620 is used, as in this document, the full page width is used for the caption
7621 when you use the default value of 4
7622 \begin_inset space \thinspace{}
7632 To get in this case exactly a 4
7633 \begin_inset space \thinspace{}
7636 in wide caption, you can either use a value slightly different from 4.0
7637 \begin_inset space \thinspace{}
7641 \begin_inset space \thinspace{}
7645 \begin_inset space \space{}
7649 \begin_inset space \thinspace{}
7652 in, or the \SpecialChar LaTeX
7657 captionsetup{width=value}
7659 that is provided by the
7671 \begin_layout Subsubsection
7672 Different Captions for Table Pages
7673 \begin_inset Index idx
7676 \begin_layout Plain Layout
7677 Table ! Multi-page Table ! Different Captions for Pages
7685 \begin_layout Standard
7686 When the table captions for the following pages should differ from the one
7687 of the first table page, mark a empty row as header which contains a caption.
7688 Then right-click on the caption and select in the context menu
7691 \begin_inset space ~
7698 \begin_inset space ~
7702 \begin_inset CommandInset ref
7704 reference "tab:DiffCaptions"
7708 is an example of a multi-page table with different heading where the second
7709 caption does not include the table number.
7710 \begin_inset Separator latexpar
7716 \begin_layout Standard
7718 \begin_inset Tabular
7719 <lyxtabular version="3" rows="59" columns="3">
7720 <features islongtable="true" longtabularalignment="center">
7721 <column alignment="left" valignment="top" width="0cm">
7722 <column alignment="left" valignment="top" width="0pt">
7723 <column alignment="center" valignment="top" width="0pt">
7724 <row endfirsthead="true" caption="true">
7725 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7728 \begin_layout Plain Layout
7729 \begin_inset Caption Standard
7731 \begin_layout Plain Layout
7733 \begin_inset CommandInset label
7735 name "tab:DiffCaptions"
7740 \begin_inset Argument 1
7743 \begin_layout Plain Layout
7759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7762 \begin_layout Plain Layout
7768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7771 \begin_layout Plain Layout
7778 <row endfirsthead="true">
7779 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7782 \begin_layout Plain Layout
7785 Example Phone List (ignore the names)
7790 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7793 \begin_layout Plain Layout
7799 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7802 \begin_layout Plain Layout
7809 <row endfirsthead="true">
7810 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7813 \begin_layout Plain Layout
7821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7824 \begin_layout Plain Layout
7830 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7833 \begin_layout Plain Layout
7842 <row endhead="true" caption="true">
7843 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7846 \begin_layout Plain Layout
7847 \begin_inset Caption Unnumbered
7849 \begin_layout Plain Layout
7850 Continued Example Phone List
7860 <cell multicolumn="2" alignment="left" valignment="top" leftline="true" usebox="none">
7863 \begin_layout Plain Layout
7869 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7872 \begin_layout Plain Layout
7879 <row endhead="true">
7880 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7883 \begin_layout Plain Layout
7891 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7894 \begin_layout Plain Layout
7900 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7903 \begin_layout Plain Layout
7910 <row endhead="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 endfoot="true">
7944 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7947 \begin_layout Plain Layout
7948 continued on next page
7953 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7956 \begin_layout Plain Layout
7962 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7965 \begin_layout Plain Layout
7973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7976 \begin_layout Plain Layout
7984 <cell alignment="left" valignment="top" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
7996 \begin_layout Plain Layout
8004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8007 \begin_layout Plain Layout
8015 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8027 \begin_layout Plain Layout
8035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8038 \begin_layout Plain Layout
8046 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8058 \begin_layout Plain Layout
8066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8069 \begin_layout Plain Layout
8077 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8089 \begin_layout Plain Layout
8097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8100 \begin_layout Plain Layout
8108 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8120 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8131 \begin_layout Plain Layout
8139 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8142 \begin_layout Plain Layout
8148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8151 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8162 \begin_layout Plain Layout
8170 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8173 \begin_layout Plain Layout
8179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8182 \begin_layout Plain Layout
8190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8193 \begin_layout Plain Layout
8201 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8204 \begin_layout Plain Layout
8210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8213 \begin_layout Plain Layout
8221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8224 \begin_layout Plain Layout
8232 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8235 \begin_layout Plain Layout
8241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8244 \begin_layout Plain Layout
8252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8255 \begin_layout Plain Layout
8263 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8266 \begin_layout Plain Layout
8272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8275 \begin_layout Plain Layout
8283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8286 \begin_layout Plain Layout
8294 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8297 \begin_layout Plain Layout
8303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8306 \begin_layout Plain Layout
8314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8317 \begin_layout Plain Layout
8325 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8328 \begin_layout Plain Layout
8334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8337 \begin_layout Plain Layout
8345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8348 \begin_layout Plain Layout
8356 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8359 \begin_layout Plain Layout
8365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8368 \begin_layout Plain Layout
8376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8379 \begin_layout Plain Layout
8387 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8390 \begin_layout Plain Layout
8396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8399 \begin_layout Plain Layout
8407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8410 \begin_layout Plain Layout
8419 \begin_layout Plain Layout
8430 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8439 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8442 \begin_layout Plain Layout
8450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8453 \begin_layout Plain Layout
8461 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8470 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8473 \begin_layout Plain Layout
8481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8484 \begin_layout Plain Layout
8492 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8501 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8504 \begin_layout Plain Layout
8512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8515 \begin_layout Plain Layout
8523 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8532 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8535 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8546 \begin_layout Plain Layout
8554 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8563 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8566 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8577 \begin_layout Plain Layout
8585 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8594 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8597 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8608 \begin_layout Plain Layout
8616 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8625 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8628 \begin_layout Plain Layout
8636 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8639 \begin_layout Plain Layout
8647 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8659 \begin_layout Plain Layout
8667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8670 \begin_layout Plain Layout
8678 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8681 \begin_layout Plain Layout
8687 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8709 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8712 \begin_layout Plain Layout
8718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8740 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8743 \begin_layout Plain Layout
8749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8771 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8774 \begin_layout Plain Layout
8780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8802 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8805 \begin_layout Plain Layout
8811 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8833 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8836 \begin_layout Plain Layout
8842 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8864 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8867 \begin_layout Plain Layout
8873 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8895 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8898 \begin_layout Plain Layout
8904 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8926 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
8929 \begin_layout Plain Layout
8935 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8958 \begin_layout Plain Layout
8964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8967 \begin_layout Plain Layout
8975 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8978 \begin_layout Plain Layout
8986 <cell alignment="left" valignment="top" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
8998 \begin_layout Plain Layout
9006 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9009 \begin_layout Plain Layout
9017 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9029 \begin_layout Plain Layout
9037 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9040 \begin_layout Plain Layout
9048 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9060 \begin_layout Plain Layout
9068 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9071 \begin_layout Plain Layout
9079 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9091 \begin_layout Plain Layout
9099 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9102 \begin_layout Plain Layout
9110 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9122 \begin_layout Plain Layout
9130 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9133 \begin_layout Plain Layout
9141 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9153 \begin_layout Plain Layout
9161 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9164 \begin_layout Plain Layout
9172 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9184 \begin_layout Plain Layout
9192 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9195 \begin_layout Plain Layout
9203 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9215 \begin_layout Plain Layout
9223 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9226 \begin_layout Plain Layout
9234 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9246 \begin_layout Plain Layout
9254 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9257 \begin_layout Plain Layout
9265 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9274 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9277 \begin_layout Plain Layout
9285 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9288 \begin_layout Plain Layout
9296 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9305 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9308 \begin_layout Plain Layout
9316 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9319 \begin_layout Plain Layout
9327 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9330 \begin_layout Plain Layout
9336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9339 \begin_layout Plain Layout
9347 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9350 \begin_layout Plain Layout
9358 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9361 \begin_layout Plain Layout
9367 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9370 \begin_layout Plain Layout
9378 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9381 \begin_layout Plain Layout
9389 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9392 \begin_layout Plain Layout
9398 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9401 \begin_layout Plain Layout
9409 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9412 \begin_layout Plain Layout
9420 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9423 \begin_layout Plain Layout
9429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9432 \begin_layout Plain Layout
9440 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9443 \begin_layout Plain Layout
9451 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9454 \begin_layout Plain Layout
9460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9463 \begin_layout Plain Layout
9471 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9474 \begin_layout Plain Layout
9482 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9485 \begin_layout Plain Layout
9491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9494 \begin_layout Plain Layout
9502 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9505 \begin_layout Plain Layout
9513 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9516 \begin_layout Plain Layout
9522 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9525 \begin_layout Plain Layout
9533 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9536 \begin_layout Plain Layout
9544 <cell alignment="left" valignment="top" rightline="true" usebox="none">
9547 \begin_layout Plain Layout
9553 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9556 \begin_layout Plain Layout
9564 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9567 \begin_layout Plain Layout
9575 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
9578 \begin_layout Plain Layout
9584 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9587 \begin_layout Plain Layout
9601 \begin_layout Section
9602 Special Multi-page Table Issues
9603 \begin_inset CommandInset label
9605 name "sec:Special-Longtable-Issues"
9612 \begin_layout Subsection
9613 Multi-page Table Calculation
9614 \begin_inset Index idx
9617 \begin_layout Plain Layout
9618 Table ! Multi-page Table ! Calculation
9626 \begin_layout Standard
9628 calculates the height of table pages and their page breaks using so called
9630 Chunks are parts of tables that held at the same time in \SpecialChar LaTeX
9632 The default value was historically set to only 20
9633 \begin_inset space ~
9637 If you are using multi-page tables with many pages this may slow down the
9638 creation of your document.
9639 You can safely increase the chunk size to values of 100
9640 \begin_inset space \thinspace{}
9644 \begin_inset space \thinspace{}
9647 1000 by adding this command line to your document preamble:
9650 \begin_layout Standard
9655 setcounter{LTchunksize}{100}
9658 \begin_layout Subsection
9659 Floats and Multi-page Tables
9660 \begin_inset Index idx
9663 \begin_layout Plain Layout
9664 Table ! Multi-page Table ! Floats
9672 \begin_layout Standard
9673 There might be problems when a float appears on the same page where a multi-page
9675 To avoid such a situation, insert a
9676 \begin_inset Quotes eld
9680 \begin_inset Quotes erd
9685 Insert\SpecialChar menuseparator
9686 Formatting\SpecialChar menuseparator
9688 \begin_inset space ~
9693 ) before your multi-page table.
9696 \begin_layout Subsection
9698 \begin_inset Index idx
9701 \begin_layout Plain Layout
9702 Table ! Multi-page Table ! Forced Page Breaks
9710 \begin_layout Standard
9711 By default tables are only broken between rows.
9712 If you have a cell with multiples lines and want to have a page break within
9713 the cell, insert the new line command
9714 \begin_inset Quotes eld
9726 \begin_inset Quotes erd
9730 Code at the point of the cell where it can be broken.
9739 command you have to insert in \SpecialChar TeX
9741 \begin_inset Quotes eld
9749 \begin_inset Quotes erd
9752 characters as the number of the following table columns.
9757 is the character to separate table cells.
9758 Write in \SpecialChar TeX
9763 the content of the corresponding following cell and delete the content
9765 \begin_inset Newline newline
9776 command, insert as many
9780 characters as the number of table columns before the current column.
9782 \begin_inset space ~
9786 \begin_inset CommandInset ref
9788 reference "tab:ForcedPagebreak"
9792 the cell that should be broken is in the second column followed by another
9794 Therefore the following command was inserted in the cell as \SpecialChar TeX
9797 \begin_inset Quotes eld
9805 \begin_inset Quotes erd
9811 \begin_layout Standard
9821 \begin_inset Newline newline
9827 \begin_layout Standard
9829 \begin_inset Quotes eld
9833 \begin_inset Quotes erd
9836 in the third column of the row was deleted.
9843 is only needed when a page break should definitely occur at this position,
9844 otherwise it would be a conditional break.
9845 If your footer row of the multi-page table has for a certain reason no
9846 upper line but you would have a horizontal line where the cell is broken,
9847 use this command instead:
9850 \begin_layout Standard
9858 \begin_inset Newline newline
9866 \begin_layout Standard
9867 When the cell to be broken is in the last column, the command
9870 \begin_layout Standard
9880 \begin_layout Standard
9881 must be inserted as \SpecialChar TeX
9882 Code at the beginning of the cell.
9883 This ensures that the part of the cell that will be displayed on the new
9884 page appears with the full width.
9885 \begin_inset Separator latexpar
9891 \begin_layout Standard
9893 \begin_inset Tabular
9894 <lyxtabular version="3" rows="38" columns="3">
9895 <features islongtable="true" longtabularalignment="center">
9896 <column alignment="left" valignment="top" width="0cm">
9897 <column alignment="left" valignment="top" width="3cm">
9898 <column alignment="center" valignment="top" width="0pt">
9899 <row endfirsthead="true" caption="true">
9900 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9903 \begin_layout Plain Layout
9904 \begin_inset Caption Standard
9906 \begin_layout Plain Layout
9907 Table with forced page break in table cell
9908 \begin_inset CommandInset label
9910 name "tab:ForcedPagebreak"
9915 \begin_inset Argument 1
9918 \begin_layout Plain Layout
9919 Table with forced page break in table cell
9934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9937 \begin_layout Plain Layout
9943 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9946 \begin_layout Plain Layout
9953 <row endfirsthead="true">
9954 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9957 \begin_layout Plain Layout
9960 Example Phone List (ignore the names)
9965 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9968 \begin_layout Plain Layout
9974 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9977 \begin_layout Plain Layout
9984 <row endfirsthead="true">
9985 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9988 \begin_layout Plain Layout
9996 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9999 \begin_layout Plain Layout
10005 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10008 \begin_layout Plain Layout
10017 <row endhead="true" caption="true">
10018 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10021 \begin_layout Plain Layout
10022 \begin_inset Caption Unnumbered
10024 \begin_layout Plain Layout
10025 Continued Example Phone List
10035 <cell multicolumn="2" alignment="left" valignment="top" rightline="true" usebox="none">
10038 \begin_layout Plain Layout
10044 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10054 <row endhead="true">
10055 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10069 \begin_layout Plain Layout
10075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10078 \begin_layout Plain Layout
10085 <row endhead="true">
10086 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10089 \begin_layout Plain Layout
10097 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10100 \begin_layout Plain Layout
10106 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10109 \begin_layout Plain Layout
10118 <row endfoot="true">
10119 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10122 \begin_layout Plain Layout
10123 continued on next page
10128 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10131 \begin_layout Plain Layout
10137 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10140 \begin_layout Plain Layout
10148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10162 \begin_layout Plain Layout
10168 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10171 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10193 \begin_layout Plain Layout
10199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10202 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10224 \begin_layout Plain Layout
10230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10233 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10255 \begin_layout Plain Layout
10261 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10264 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10286 \begin_layout Plain Layout
10292 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10295 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10317 \begin_layout Plain Layout
10323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10326 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10348 \begin_layout Plain Layout
10354 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10357 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10379 \begin_layout Plain Layout
10385 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10388 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10410 \begin_layout Plain Layout
10416 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10419 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10441 \begin_layout Plain Layout
10447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10450 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10472 \begin_layout Plain Layout
10478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10481 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10492 \begin_layout Plain Layout
10500 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10503 \begin_layout Plain Layout
10509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10512 \begin_layout Plain Layout
10520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10523 \begin_layout Plain Layout
10531 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10534 \begin_layout Plain Layout
10540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10543 \begin_layout Plain Layout
10551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10565 \begin_layout Plain Layout
10571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10574 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10596 \begin_layout Plain Layout
10602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10605 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10627 \begin_layout Plain Layout
10633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10636 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10658 \begin_layout Plain Layout
10664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10667 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10689 \begin_layout Plain Layout
10695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10698 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10720 \begin_layout Plain Layout
10726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10729 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10751 \begin_layout Plain Layout
10757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10760 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10771 \begin_layout Plain Layout
10779 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10782 \begin_layout Plain Layout
10788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10791 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10802 \begin_layout Plain Layout
10810 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10813 \begin_layout Plain Layout
10819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10833 \begin_layout Plain Layout
10841 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10844 \begin_layout Plain Layout
10846 Fürst von Montecompatri, 11.
10847 Fürst von Sulmona und Vivaro, 10.
10848 Fürst von Rossano, 5.
10849 Herzog von Canemorte, 11.
10850 Herzog von Palombara, 5.
10851 Herzog von Castelchiodato,
10855 \begin_layout Plain Layout
10866 \begin_layout Plain Layout
10874 Herzog von Poggionativo, 11.
10875 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10876 Graf von Valinfreda, 11.
10877 Baron von Cropalati, 11.
10878 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
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="left" 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="left" valignment="top" rightline="true" usebox="none">
10939 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10948 \begin_layout Plain Layout
10956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10959 \begin_layout Plain Layout
10967 <cell alignment="left" valignment="top" rightline="true" usebox="none">
10970 \begin_layout Plain Layout
10976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10979 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10990 \begin_layout Plain Layout
10998 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11001 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11010 \begin_layout Plain Layout
11018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11021 \begin_layout Plain Layout
11029 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11032 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11041 \begin_layout Plain Layout
11049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11052 \begin_layout Plain Layout
11060 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11063 \begin_layout Plain Layout
11069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11072 \begin_layout Plain Layout
11080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11083 \begin_layout Plain Layout
11091 <cell alignment="left" valignment="top" rightline="true" usebox="none">
11094 \begin_layout Plain Layout
11100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11103 \begin_layout Plain Layout
11111 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11114 \begin_layout Plain Layout
11122 <cell alignment="left" valignment="top" bottomline="true" rightline="true" usebox="none">
11125 \begin_layout Plain Layout
11131 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11134 \begin_layout Plain Layout
11148 \begin_layout Section
11149 Multiple Lines, Columns and Rows
11152 \begin_layout Subsection
11153 Multiple Lines in Table Cells
11154 \begin_inset CommandInset label
11156 name "subsec:Multiple-Lines-in"
11161 \begin_inset Index idx
11164 \begin_layout Plain Layout
11165 Multiple Lines in Table Cells
11171 \begin_inset Index idx
11174 \begin_layout Plain Layout
11183 \begin_layout Standard
11185 \begin_inset Float table
11191 \begin_layout Plain Layout
11192 \begin_inset Caption Standard
11194 \begin_layout Plain Layout
11195 \begin_inset CommandInset label
11197 name "tab:Table-with-multiple"
11201 Table with multiple lines in cells
11209 \begin_layout Plain Layout
11211 \begin_inset Tabular
11212 <lyxtabular version="3" rows="3" columns="3">
11213 <features tabularvalignment="middle">
11214 <column alignment="center" valignment="middle" width="2.5cm">
11215 <column alignment="center" valignment="middle">
11216 <column alignment="center" valignment="middle">
11218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11221 \begin_layout Plain Layout
11223 \begin_inset Newline linebreak
11231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11234 \begin_layout Plain Layout
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11243 \begin_layout Plain Layout
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11254 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11263 \begin_layout Plain Layout
11269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11272 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11283 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11292 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11301 \begin_layout Plain Layout
11320 \begin_layout Standard
11321 Setting a fixed width for a column enables you to enter text as a paragraph
11322 with multiple lines and hyphenation.
11325 \begin_layout Standard
11327 \begin_inset space ~
11331 \begin_inset CommandInset ref
11333 reference "tab:Table-with-multiple"
11337 , create a 3×3 table, mark the first cell and right-click on it.
11338 In the appearing table dialog we set a cell width of 2.5
11339 \begin_inset space \thinspace{}
11342 cm and choose centered for the vertical and horizontal alignment.
11343 The vertical alignment is used for all cells of the row.
11344 As our text is smaller than 2.5
11345 \begin_inset space \thinspace{}
11348 cm, only one line will appear.
11349 To get two lines, a justified line break (shortcut
11352 arg "newline-insert linebreak"
11356 If the text is wider than the set cell width, it will automatically be
11357 broken to several lines.
11360 \begin_layout Standard
11361 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11362 by \SpecialChar LaTeX
11363 if it is the first entry.
11364 Therefore you need to insert something to prevent the word not being the
11366 So add a horizontal space of 0
11367 \begin_inset space \thinspace{}
11370 pt before the word.
11371 As the space is zero, it doesn't change the output.
11373 \begin_inset space ~
11377 \begin_inset CommandInset ref
11379 reference "tab:Table-with-and"
11386 \begin_layout Standard
11387 \begin_inset Float table
11393 \begin_layout Plain Layout
11394 \begin_inset Caption Standard
11396 \begin_layout Plain Layout
11397 \begin_inset CommandInset label
11399 name "tab:Table-with-and"
11403 Table with and without hyphenation
11411 \begin_layout Plain Layout
11412 \begin_inset space \hfill{}
11416 \begin_inset Tabular
11417 <lyxtabular version="3" rows="3" columns="3">
11418 <features tabularvalignment="middle">
11419 <column alignment="center" valignment="middle" width="2.5cm">
11420 <column alignment="center" valignment="middle">
11421 <column alignment="center" valignment="middle">
11423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11426 \begin_layout Plain Layout
11427 verylongtablecellword
11432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11435 \begin_layout Plain Layout
11441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11444 \begin_layout Plain Layout
11452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11455 \begin_layout Plain Layout
11461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11464 \begin_layout Plain Layout
11470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11473 \begin_layout Plain Layout
11481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11484 \begin_layout Plain Layout
11490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11493 \begin_layout Plain Layout
11499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11502 \begin_layout Plain Layout
11514 \begin_inset space \hfill{}
11518 \begin_inset Tabular
11519 <lyxtabular version="3" rows="3" columns="3">
11520 <features tabularvalignment="middle">
11521 <column alignment="center" valignment="middle" width="2.5cm">
11522 <column alignment="center" valignment="middle">
11523 <column alignment="center" valignment="middle">
11525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11528 \begin_layout Plain Layout
11529 \begin_inset space \hspace{}
11533 verylongtablecellword
11538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11541 \begin_layout Plain Layout
11547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11550 \begin_layout Plain Layout
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11561 \begin_layout Plain Layout
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11570 \begin_layout Plain Layout
11576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11579 \begin_layout Plain Layout
11587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11590 \begin_layout Plain Layout
11596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11599 \begin_layout Plain Layout
11605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11608 \begin_layout Plain Layout
11620 \begin_inset space \hfill{}
11631 \begin_layout Subsection
11633 \begin_inset CommandInset label
11635 name "subsec:Multicolumns"
11640 \begin_inset Index idx
11643 \begin_layout Plain Layout
11650 \begin_inset Index idx
11653 \begin_layout Plain Layout
11654 Table ! Multicolumns
11662 \begin_layout Subsubsection
11666 \begin_layout Standard
11667 To merge cells over multiple columns, select as many cells within a row
11668 as you want to merge and use either the table-toolbar button
11671 arg "tabular-feature multicolumn"
11676 Edit\SpecialChar menuseparator
11677 Table\SpecialChar menuseparator
11680 , or right click on the marked cells and choose
11684 in the context menu.
11687 \begin_layout Standard
11688 Multicolumns have their own cell settings.
11689 That means changing cell borders, cell alignment, and the width only affects
11691 Here is an example table with a multicolumn cell in the first row and one
11692 in the last row without the upper border:
11693 \begin_inset Separator latexpar
11699 \begin_layout Standard
11701 \begin_inset Tabular
11702 <lyxtabular version="3" rows="3" columns="4">
11703 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11704 <column alignment="center" valignment="top" width="0pt">
11705 <column alignment="center" valignment="middle">
11706 <column alignment="center" valignment="top" width="0in">
11707 <column alignment="center" valignment="top" width="0pt">
11709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11712 \begin_layout Plain Layout
11718 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11721 \begin_layout Plain Layout
11727 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11730 \begin_layout Plain Layout
11736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11739 \begin_layout Plain Layout
11747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11750 \begin_layout Plain Layout
11765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11768 \begin_layout Plain Layout
11774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11777 \begin_layout Plain Layout
11783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11786 \begin_layout Plain Layout
11794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11797 \begin_layout Plain Layout
11803 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11806 \begin_layout Plain Layout
11812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11824 \begin_layout Plain Layout
11838 \begin_layout Subsubsection
11839 Multicolumn Calculations
11840 \begin_inset CommandInset label
11842 name "subsec:Multicolumn-Calculations"
11847 \begin_inset Index idx
11850 \begin_layout Plain Layout
11851 Multicolumns ! Calculations
11859 \begin_layout Standard
11861 supports multicolumns directly, but we have to take account of the cell
11862 width of the columns spanned by the multicolumn cell.
11865 \begin_layout Standard
11866 \begin_inset Float table
11872 \begin_layout Plain Layout
11873 \begin_inset Caption Standard
11875 \begin_layout Plain Layout
11876 \begin_inset CommandInset label
11878 name "tab:Table-with-centered"
11882 Table with centered multicolumn text above two columns that have exactly
11883 half the width of the multicolumn cell
11884 \begin_inset Argument 1
11887 \begin_layout Plain Layout
11888 Perfect multicolumn table
11901 \begin_layout Plain Layout
11903 \begin_inset Tabular
11904 <lyxtabular version="3" rows="3" columns="3">
11905 <features tabularvalignment="middle">
11906 <column alignment="center" valignment="middle" special=">{\centering}m{1.25cm-6.2pt}">
11907 <column alignment="center" valignment="middle">
11908 <column alignment="center" valignment="top">
11910 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11913 \begin_layout Plain Layout
11914 multiple lines multicolumn
11919 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11922 \begin_layout Plain Layout
11928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11931 \begin_layout Plain Layout
11939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11942 \begin_layout Plain Layout
11948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11951 \begin_layout Plain Layout
11957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11960 \begin_layout Plain Layout
11968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11971 \begin_layout Plain Layout
11977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11980 \begin_layout Plain Layout
11986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11989 \begin_layout Plain Layout
12008 \begin_layout Standard
12009 To create for example Table
12010 \begin_inset space ~
12014 \begin_inset CommandInset ref
12016 reference "tab:Table-with-centered"
12020 , mark the first two cells in the first row of a 3×3 table and right-click
12022 Now choose for this cell
12031 \begin_inset space \thinspace{}
12034 cm in the table dialog.
12035 The merged columns should have exactly half the width of the multicolumn
12036 cell, so that you would set a width of 1.25
12037 \begin_inset space \thinspace{}
12040 cm for the first column.
12041 The second column has then automatically a width of 1.25
12042 \begin_inset space \thinspace{}
12045 cm (multicolumn width - width of first column).
12046 This was done for Table
12047 \begin_inset space ~
12051 \begin_inset CommandInset ref
12053 reference "tab:Table-without-half"
12060 \begin_layout Standard
12061 \begin_inset Float table
12066 \begin_layout Plain Layout
12067 \begin_inset Caption Standard
12069 \begin_layout Plain Layout
12070 \begin_inset CommandInset label
12072 name "tab:Table-without-half"
12076 Table where the spanned table columns are not exactly half the width of
12077 the multicolumn cell
12078 \begin_inset Argument 1
12081 \begin_layout Plain Layout
12082 Imperfect multicolumn table
12095 \begin_layout Plain Layout
12097 \begin_inset Tabular
12098 <lyxtabular version="3" rows="3" columns="3">
12099 <features tabularvalignment="middle">
12100 <column alignment="center" valignment="top" width="1.25cm">
12101 <column alignment="center" valignment="top">
12102 <column alignment="center" valignment="top">
12104 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12107 \begin_layout Plain Layout
12108 multiple lines multicolumn
12113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12116 \begin_layout Plain Layout
12122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12125 \begin_layout Plain Layout
12133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12136 \begin_layout Plain Layout
12142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12145 \begin_layout Plain Layout
12151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12154 \begin_layout Plain Layout
12162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12165 \begin_layout Plain Layout
12171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12174 \begin_layout Plain Layout
12180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12183 \begin_layout Plain Layout
12202 \begin_layout Standard
12203 You can see that the first column is not half the width of the multicolumn
12204 cell, it is a bit bigger.
12205 The reason is that the specified width of a cell
12206 \begin_inset Formula $W_{g}$
12209 is not its total width
12210 \begin_inset Formula $W_{\mathrm{tot}}$
12213 because a cell is always a bit larger than specified.
12215 \begin_inset space ~
12219 \begin_inset CommandInset ref
12221 reference "cha:Explanation-of-Equation"
12225 explains this in detail.
12228 \begin_layout Standard
12230 \begin_inset Formula $W_{g\,n}$
12233 which the user needs to set when
12237 columns are spanned can be calculated, so that each column has a total
12239 \begin_inset Formula $W_{\mathrm{tot\,multicolumn}}/n$
12243 \begin_inset Formula
12245 W_{g\,n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12253 \begin_layout Standard
12254 In our case we have
12255 \begin_inset Formula $n=2$
12259 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12262 cm and the default values for the lengths, so that equation
12263 \begin_inset CommandInset ref
12270 \begin_inset Formula
12272 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12280 \begin_layout Standard
12281 To enable calculations in \SpecialChar LaTeX
12282 , the \SpecialChar LaTeX
12287 must be loaded with the document preamble line
12288 \begin_inset Index idx
12291 \begin_layout Plain Layout
12301 \begin_layout Standard
12309 \begin_layout Standard
12311 does not allow you to calculate lengths in the
12315 field of the table dialog.
12316 Therefore you have to format the column by inserting a \SpecialChar LaTeX
12319 Here is an overview about the arguments:
12322 \begin_layout Itemize
12327 creates cell with a fixed width, its text is vertically top-aligned
12330 \begin_layout Itemize
12335 creates cell with a fixed width, its text is vertically centered
12338 \begin_layout Itemize
12343 creates cell with a fixed width, its text is vertically bottom-aligned
12346 \begin_layout Standard
12347 By entering a \SpecialChar LaTeX
12348 -argument, all cell settings set in the table dialog are overwritt
12352 \begin_layout Standard
12353 \begin_inset Note Greyedout
12356 \begin_layout Plain Layout
12361 Due to a bug, \SpecialChar LyX
12362 shows the overwritten settings anyway.
12370 \begin_layout Standard
12371 As the text should be horizontally centered, the command
12378 You can now enter the following \SpecialChar LaTeX
12379 -argument for the first spanned column:
12382 \begin_layout Standard
12387 centering}m{1.25cm-6.2pt}
12390 \begin_layout Standard
12395 means, that the commands inside the braces are applied before the cell
12399 \begin_layout Standard
12400 Although we have chosen centered alignment for the text of the multicolumn
12401 cell, it is still left aligned.
12402 This is because \SpecialChar LyX
12403 only applies the alignment to single columns.
12404 So for the multicolumn cell we have to use the \SpecialChar LaTeX
12408 \begin_layout Standard
12416 \begin_layout Subsection
12418 \begin_inset CommandInset label
12420 name "subsec:Multirows"
12425 \begin_inset Index idx
12428 \begin_layout Plain Layout
12435 \begin_inset Index idx
12438 \begin_layout Plain Layout
12447 \begin_layout Standard
12448 To merge cells over multiple rows, select as many cells within a column
12449 as you want to merge and use either the table-toolbar button
12452 arg "tabular-feature multirow"
12457 Edit\SpecialChar menuseparator
12458 Table\SpecialChar menuseparator
12461 , or right click on the marked cells and choose
12465 in the context menu.
12468 \begin_layout Standard
12469 Here is an example table with a multirow in the first column:
12470 \begin_inset Separator latexpar
12476 \begin_layout Standard
12478 \begin_inset Tabular
12479 <lyxtabular version="3" rows="3" columns="3">
12480 <features tabularvalignment="middle">
12481 <column alignment="center" valignment="top" width="0pt">
12482 <column alignment="center" valignment="top">
12483 <column alignment="center" valignment="top">
12485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12488 \begin_layout Plain Layout
12494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12497 \begin_layout Plain Layout
12503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12514 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12517 \begin_layout Plain Layout
12523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12526 \begin_layout Plain Layout
12532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12535 \begin_layout Plain Layout
12543 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12546 \begin_layout Plain Layout
12552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12555 \begin_layout Plain Layout
12561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12564 \begin_layout Plain Layout
12578 \begin_layout Standard
12579 The width of multirow cells is set by setting the width and alignment for
12585 shifts the content of the multirow up/down if the offset is positive/negative.
12588 \begin_layout Standard
12589 If the column of a multirow cell has no explicit width, the multirow cell
12590 inherits the alignment of the column.
12591 Otherwise it is by default left-aligned.
12592 To override the default, renew the command
12601 \begin_layout Standard
12613 \begin_layout Standard
12614 in the document preamble.
12615 Then all entries of multirow cells in the document are centered.
12616 If centering is only needed for several tables, you can renew the command
12617 in a \SpecialChar TeX
12618 Code box just before the table instead of the preamble.
12619 If the text should be right-aligned, replace
12632 To return to left-alignment
12641 \begin_layout Standard
12642 This is an example table with a right-aligned multirow cell that has a vertical
12644 \begin_inset space \thinspace{}
12648 \begin_inset space \thinspace{}
12652 \begin_inset Separator latexpar
12658 \begin_layout Standard
12664 \begin_layout Plain Layout
12678 \begin_inset Tabular
12679 <lyxtabular version="3" rows="4" columns="3">
12680 <features tabularvalignment="middle">
12681 <column alignment="center" valignment="top" width="3cm">
12682 <column alignment="center" valignment="top">
12683 <column alignment="center" valignment="top">
12685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12688 \begin_layout Plain Layout
12694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12697 \begin_layout Plain Layout
12703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12706 \begin_layout Plain Layout
12714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12717 \begin_layout Plain Layout
12723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12726 \begin_layout Plain Layout
12732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12735 \begin_layout Plain Layout
12743 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12746 \begin_layout Plain Layout
12752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12755 \begin_layout Plain Layout
12761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12764 \begin_layout Plain Layout
12772 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12775 \begin_layout Plain Layout
12781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12784 \begin_layout Plain Layout
12790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12793 \begin_layout Plain Layout
12808 \begin_layout Plain Layout
12824 \begin_layout Standard
12825 To start a new line in a multirow you can use a forced line break (shortcut
12829 arg "newline-insert newline"
12832 ) but this will not respect the cell lines as demonstrated in this table:
12833 \begin_inset Separator latexpar
12839 \begin_layout Standard
12842 \begin_inset Tabular
12843 <lyxtabular version="3" rows="3" columns="2">
12844 <features tabularvalignment="middle">
12845 <column alignment="left" valignment="middle" width="2cm">
12846 <column alignment="center" valignment="top">
12848 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12851 \begin_layout Plain Layout
12853 \begin_inset Newline newline
12857 \begin_inset Newline newline
12865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12868 \begin_layout Plain Layout
12876 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12879 \begin_layout Plain Layout
12885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12888 \begin_layout Plain Layout
12896 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12899 \begin_layout Plain Layout
12905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12908 \begin_layout Plain Layout
12922 \begin_layout Standard
12923 Therefore be careful with forced line breaks.
12926 \begin_layout Subsection
12927 Cells with diagonal line(s)
12930 \begin_layout Standard
12931 To tell the reader what is meant by column and row headings in a table,
12932 it is helpful to split the first cell of the table by one or two diagonal
12934 This can be achieved by loading the \SpecialChar LaTeX
12940 \begin_inset Index idx
12943 \begin_layout Plain Layout
12945 -packages ! picinpar
12950 in the document preamble.
12951 The package provides the command
12957 that is inserted as \SpecialChar TeX
12958 Code and that can take 2 or 3
12959 \begin_inset space ~
12965 \begin_layout Standard
12970 diagbox[options]{lower left}{upper right}
12973 \begin_layout Standard
12978 diagbox[options]{lower left}{upper left}{upper right}
12981 \begin_layout Standard
12982 The first scheme divides the cell by a single diagonal line and the arguments
12983 are placed below and above this line.
12984 The second scheme divides the cell by 2
12985 \begin_inset space ~
12991 \begin_layout Standard
12995 \begin_layout Plain Layout
13005 \begin_inset Note Note
13008 \begin_layout Plain Layout
13009 The following section will only be displayed when the \SpecialChar LaTeX
13022 \begin_layout Standard
13023 Here is an example table where
13029 is used in the 2-argument scheme in the first cell:
13030 \begin_inset VSpace medskip
13036 \begin_layout Standard
13038 \begin_inset Tabular
13039 <lyxtabular version="3" rows="4" columns="4">
13040 <features tabularvalignment="middle">
13041 <column alignment="center" valignment="top">
13042 <column alignment="center" valignment="top">
13043 <column alignment="center" valignment="top">
13044 <column alignment="center" valignment="top">
13046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13049 \begin_layout Plain Layout
13053 \begin_layout Plain Layout
13066 \begin_layout Plain Layout
13077 \begin_layout Plain Layout
13089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13092 \begin_layout Plain Layout
13098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13101 \begin_layout Plain Layout
13107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13110 \begin_layout Plain Layout
13118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13121 \begin_layout Plain Layout
13127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13130 \begin_layout Plain Layout
13136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13139 \begin_layout Plain Layout
13145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13148 \begin_layout Plain Layout
13156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13159 \begin_layout Plain Layout
13165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13168 \begin_layout Plain Layout
13174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13177 \begin_layout Plain Layout
13183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13186 \begin_layout Plain Layout
13194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13197 \begin_layout Plain Layout
13203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13206 \begin_layout Plain Layout
13212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13215 \begin_layout Plain Layout
13221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13224 \begin_layout Plain Layout
13236 \begin_inset VSpace medskip
13242 \begin_layout Standard
13243 The 3-argument scheme is for example useful for cross-tables of sports leagues
13245 \begin_inset Separator latexpar
13251 \begin_layout Standard
13254 \begin_inset Tabular
13255 <lyxtabular version="3" rows="4" columns="4">
13256 <features tabularvalignment="middle">
13257 <column alignment="center" valignment="top" width="0pt">
13258 <column alignment="center" valignment="top">
13259 <column alignment="center" valignment="top">
13260 <column alignment="center" valignment="top">
13262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13265 \begin_layout Plain Layout
13269 \begin_layout Plain Layout
13282 \begin_layout Plain Layout
13293 \begin_layout Plain Layout
13304 \begin_layout Plain Layout
13316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13319 \begin_layout Plain Layout
13325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13328 \begin_layout Plain Layout
13334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13337 \begin_layout Plain Layout
13345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13348 \begin_layout Plain Layout
13354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13357 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13375 \begin_layout Plain Layout
13383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13386 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13413 \begin_layout Plain Layout
13421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13424 \begin_layout Plain Layout
13430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13433 \begin_layout Plain Layout
13439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13442 \begin_layout Plain Layout
13448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13451 \begin_layout Plain Layout
13465 \begin_layout Standard
13466 For larger cross-tables one might use split cells in 2 or every corner of
13467 the table like in this example:
13468 \begin_inset Separator latexpar
13474 \begin_layout Standard
13477 \begin_inset Tabular
13478 <lyxtabular version="3" rows="5" columns="5">
13479 <features tabularvalignment="middle">
13480 <column alignment="center" valignment="top" width="0pt">
13481 <column alignment="center" valignment="top">
13482 <column alignment="center" valignment="top">
13483 <column alignment="center" valignment="top">
13484 <column alignment="center" valignment="top">
13486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13489 \begin_layout Plain Layout
13493 \begin_layout Plain Layout
13506 \begin_layout Plain Layout
13517 \begin_layout Plain Layout
13528 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13543 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13552 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13570 \begin_layout Plain Layout
13574 \begin_layout Plain Layout
13587 \begin_layout Plain Layout
13598 \begin_layout Plain Layout
13609 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13626 \begin_layout Plain Layout
13632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13644 \begin_layout Plain Layout
13650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13653 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13662 \begin_layout Plain Layout
13670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13673 \begin_layout Plain Layout
13679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13682 \begin_layout Plain Layout
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13729 \begin_layout Plain Layout
13735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13738 \begin_layout Plain Layout
13744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13747 \begin_layout Plain Layout
13753 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13756 \begin_layout Plain Layout
13764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13767 \begin_layout Plain Layout
13771 \begin_layout Plain Layout
13784 \begin_layout Plain Layout
13795 \begin_layout Plain Layout
13806 \begin_layout Plain Layout
13818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13821 \begin_layout Plain Layout
13827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13830 \begin_layout Plain Layout
13836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13839 \begin_layout Plain Layout
13845 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
13848 \begin_layout Plain Layout
13852 \begin_layout Plain Layout
13865 \begin_layout Plain Layout
13876 \begin_layout Plain Layout
13887 \begin_layout Plain Layout
13907 \begin_layout Standard
13908 To rotate the diagonal lines, the command option
13933 and represent a point of a compass.
13938 is for example the south-west corner.
13939 Thus in the lower left cell of the above table the command
13942 \begin_layout Standard
13947 diagbox[dir=SW]{Team home}{Result}{Team away}
13950 \begin_layout Standard
13952 If no direction is given, it will be NW.
13955 \begin_layout Standard
13956 The necessary width of split cells is automatically calculated.
13957 Thus if you set a fixed column width smaller than the calculated one, the
13958 cell's content will protrude the cell borders:
13959 \begin_inset Separator latexpar
13965 \begin_layout Standard
13968 \begin_inset Tabular
13969 <lyxtabular version="3" rows="2" columns="2">
13970 <features tabularvalignment="middle">
13971 <column alignment="center" valignment="top" width="3cm">
13972 <column alignment="center" valignment="top">
13974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13977 \begin_layout Plain Layout
13981 \begin_layout Plain Layout
13994 \begin_layout Plain Layout
14005 \begin_layout Plain Layout
14017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14020 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14040 \begin_layout Plain Layout
14054 \begin_layout Standard
14055 If you need a certain width for columns with a split cell, use the command
14060 (replace '3cm' by the width you need).
14061 In the following table the width of the first column is set to 4
14062 \begin_inset space \thinspace{}
14073 \begin_inset space \thinspace{}
14077 \begin_inset space \thinspace{}
14082 tabcolsep is necessary because the overall width is the width for the text
14083 (in this case the 4
14084 \begin_inset space \thinspace{}
14087 cm) plus two times the separation of the text and the cell border.
14088 The calculation of the width cannot be done in the command option of
14094 so one needs to create a new length which can be used later.
14095 This is done with the \SpecialChar TeX
14099 \begin_layout Standard
14107 \begin_inset Newline newline
14119 \begin_layout Standard
14123 \begin_layout Plain Layout
14132 \begin_layout Plain Layout
14148 \begin_layout Standard
14149 To enable calculations in \SpecialChar LaTeX
14150 one needs to load the package
14155 \begin_inset Index idx
14158 \begin_layout Plain Layout
14165 in the document preamble.
14168 \begin_layout Standard
14169 In this table you can now use the command
14172 \begin_layout Standard
14182 \begin_layout Standard
14184 \begin_inset Separator latexpar
14190 \begin_layout Standard
14193 \begin_inset Tabular
14194 <lyxtabular version="3" rows="2" columns="2">
14195 <features tabularvalignment="middle">
14196 <column alignment="center" valignment="top" width="4cm">
14197 <column alignment="center" valignment="top">
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14202 \begin_layout Plain Layout
14206 \begin_layout Plain Layout
14221 \begin_layout Plain Layout
14232 \begin_layout Plain Layout
14244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14247 \begin_layout Plain Layout
14255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14258 \begin_layout Plain Layout
14264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14267 \begin_layout Plain Layout
14281 \begin_layout Standard
14282 Note that the split cell needs to be the widest one in the column.
14283 Otherwise the length of the diagonal line cannot be calculated correctly
14284 like in this table:
14285 \begin_inset Separator latexpar
14291 \begin_layout Standard
14294 \begin_inset Tabular
14295 <lyxtabular version="3" rows="2" columns="2">
14296 <features tabularvalignment="middle">
14297 <column alignment="center" valignment="top" width="0pt">
14298 <column alignment="center" valignment="top">
14300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14303 \begin_layout Plain Layout
14307 \begin_layout Plain Layout
14320 \begin_layout Plain Layout
14331 \begin_layout Plain Layout
14343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14346 \begin_layout Plain Layout
14354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14357 \begin_layout Plain Layout
14363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14366 \begin_layout Plain Layout
14380 \begin_layout Standard
14381 In this case use the
14392 It is then not necessary to add 2
14394 tabcolsep because the cell width is now the width of the column.
14395 In this table a width of 3
14396 \begin_inset space \thinspace{}
14400 \begin_inset Separator latexpar
14406 \begin_layout Standard
14409 \begin_inset Tabular
14410 <lyxtabular version="3" rows="2" columns="2">
14411 <features tabularvalignment="middle">
14412 <column alignment="center" valignment="top" width="0pt">
14413 <column alignment="center" valignment="top">
14415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14418 \begin_layout Plain Layout
14422 \begin_layout Plain Layout
14426 diagbox[width=3cm]{
14435 \begin_layout Plain Layout
14446 \begin_layout Plain Layout
14458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14461 \begin_layout Plain Layout
14469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14472 \begin_layout Plain Layout
14478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14481 \begin_layout Plain Layout
14495 \begin_layout Standard
14496 For multiple text lines in split cells one needs some extra height to fit
14497 the text to the cell.
14498 This can be achieved with the
14508 (replace '3cm' by the height you need).
14509 In the following table the command
14512 \begin_layout Standard
14517 diagbox[width=3cm,height=1.4cm]{A
14528 \begin_layout Standard
14529 is used in the first cell.
14538 creates hereby the line break.
14542 \begin_layout Plain Layout
14543 Breaking lines with
14547 is only possible when the column has a fixed width.
14553 \begin_inset Separator latexpar
14559 \begin_layout Standard
14562 \begin_inset Tabular
14563 <lyxtabular version="3" rows="2" columns="2">
14564 <features tabularvalignment="middle">
14565 <column alignment="center" valignment="top">
14566 <column alignment="center" valignment="top">
14568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14571 \begin_layout Plain Layout
14575 \begin_layout Plain Layout
14579 diagbox[width=3cm,height=1.4cm]{
14588 \begin_layout Plain Layout
14603 \begin_layout Plain Layout
14614 \begin_layout Plain Layout
14629 \begin_layout Plain Layout
14641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14644 \begin_layout Plain Layout
14652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14655 \begin_layout Plain Layout
14661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14664 \begin_layout Plain Layout
14678 \begin_layout Standard
14682 \begin_layout Plain Layout
14692 \begin_inset Note Note
14695 \begin_layout Plain Layout
14696 The following will be displayed when the \SpecialChar LaTeX
14709 \begin_layout Standard
14710 You need to install the \SpecialChar LaTeX
14715 to see the following part of this section in the output.
14718 \begin_layout Standard
14722 \begin_layout Plain Layout
14734 \begin_layout Standard
14735 For more info about the \SpecialChar LaTeX
14740 , see its documentation,
14741 \begin_inset CommandInset citation
14750 \begin_layout Section
14752 \begin_inset CommandInset label
14754 name "sec:Formal-Tables"
14759 \begin_inset Index idx
14762 \begin_layout Plain Layout
14771 \begin_layout Standard
14772 Tables are often typeset in books similar to Table
14773 \begin_inset space ~
14777 \begin_inset CommandInset ref
14779 reference "tab:Example-booktabs-table"
14784 This kind of tables is called
14785 \begin_inset Quotes eld
14793 \begin_inset Quotes erd
14797 To make a table a formal table use the option
14805 tab of the table dialog.
14808 \begin_layout Standard
14809 \begin_inset Float table
14815 \begin_layout Plain Layout
14816 \begin_inset Caption Standard
14818 \begin_layout Plain Layout
14819 \begin_inset CommandInset label
14821 name "tab:Example-booktabs-table"
14825 Example booktabs-table
14833 \begin_layout Plain Layout
14835 \begin_inset Tabular
14836 <lyxtabular version="3" rows="8" columns="4">
14837 <features booktabs="true" tabularvalignment="middle">
14838 <column alignment="center" valignment="top">
14839 <column alignment="center" valignment="top">
14840 <column alignment="center" valignment="top">
14841 <column alignment="center" valignment="top">
14843 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14846 \begin_layout Plain Layout
14852 <cell alignment="center" valignment="top" topline="true" usebox="none">
14855 \begin_layout Plain Layout
14857 \begin_inset space \thinspace{}
14865 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
14868 \begin_layout Plain Layout
14870 \begin_inset space \thinspace{}
14878 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14881 \begin_layout Plain Layout
14889 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14892 \begin_layout Plain Layout
14896 \begin_layout Plain Layout
14909 \begin_layout Plain Layout
14918 Detector thickness in µm
14923 <cell alignment="center" valignment="top" usebox="none">
14926 \begin_layout Plain Layout
14932 <cell alignment="center" valignment="top" usebox="none">
14935 \begin_layout Plain Layout
14941 <cell alignment="center" valignment="top" usebox="none">
14944 \begin_layout Plain Layout
14952 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
14955 \begin_layout Plain Layout
14961 <cell alignment="center" valignment="top" topline="true" usebox="none">
14964 \begin_layout Plain Layout
14970 <cell alignment="center" valignment="top" topline="true" usebox="none">
14973 \begin_layout Plain Layout
14979 <cell alignment="center" valignment="top" topline="true" usebox="none">
14982 \begin_layout Plain Layout
14989 <row topspace="default">
14990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
14993 \begin_layout Plain Layout
14994 Spatial resolution in µm
14999 <cell alignment="center" valignment="top" usebox="none">
15002 \begin_layout Plain Layout
15008 <cell alignment="center" valignment="top" usebox="none">
15011 \begin_layout Plain Layout
15017 <cell alignment="center" valignment="top" usebox="none">
15020 \begin_layout Plain Layout
15027 <row topspace="default">
15028 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15031 \begin_layout Plain Layout
15033 \begin_inset Formula $f_{\mathrm{max}}$
15041 <cell alignment="center" valignment="top" usebox="none">
15044 \begin_layout Plain Layout
15050 <cell alignment="center" valignment="top" usebox="none">
15053 \begin_layout Plain Layout
15059 <cell alignment="center" valignment="top" usebox="none">
15062 \begin_layout Plain Layout
15069 <row topspace="default">
15070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15073 \begin_layout Plain Layout
15077 \begin_layout Plain Layout
15081 cmidrule[2pt](l{10pt}){1-1}
15086 LSF-spatial resolution
15091 <cell alignment="center" valignment="top" usebox="none">
15094 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" usebox="none">
15103 \begin_layout Plain Layout
15109 <cell alignment="center" valignment="top" usebox="none">
15112 \begin_layout Plain Layout
15120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
15123 \begin_layout Plain Layout
15129 <cell alignment="center" valignment="top" usebox="none">
15132 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" usebox="none">
15141 \begin_layout Plain Layout
15147 <cell alignment="center" valignment="top" usebox="none">
15150 \begin_layout Plain Layout
15158 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
15161 \begin_layout Plain Layout
15167 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15170 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15179 \begin_layout Plain Layout
15185 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15188 \begin_layout Plain Layout
15207 \begin_layout Standard
15208 Spaces to table rows can be added using the
15212 tab of the table dialog as described in section
15213 \begin_inset space ~
15217 \begin_inset CommandInset ref
15219 reference "subsec:Row-Spacing"
15226 \begin_layout Standard
15227 Unlike normal tables, formal tables have no vertical table lines.
15228 The horizontal table lines can be set as for normal tables but they appear
15229 with different widths in the output:
15230 \begin_inset Newline newline
15233 The first and the last table line have a default width of 0.08
15234 \begin_inset space \thinspace{}
15237 em while the other lines have a default width of 0.05
15238 \begin_inset space \thinspace{}
15244 \begin_layout Standard
15245 The default widths can be changed with the following preamble lines
15248 \begin_layout Standard
15258 \begin_inset Newline newline
15270 \begin_layout Standard
15271 This example is for the first line, the so called
15276 If you want to change the width for the last line, replace
15285 To change the width for the other lines replace
15294 You can use all units listed in appendix
15295 \begin_inset space ~
15299 \begin_inset CommandInset ref
15301 reference "cha:Units-available-in"
15308 \begin_layout Standard
15309 Lines that do not span all table columns can be created by setting a table
15310 line for multicolumn cells.
15312 will then internally use the command
15318 to create this line.
15322 \begin_layout Standard
15327 cmidrule[height](trim){startcol-endcol}
15330 \begin_layout Standard
15337 are currently not supported by \SpecialChar LyX
15338 so you have to use \SpecialChar TeX
15347 s can manually be created by inserting the command as \SpecialChar TeX
15349 cell entry of the first cell of a row.
15350 The line is then drawn in the output above the current row.
15353 \begin_layout Standard
15354 The default for the optional
15359 \begin_inset space \thinspace{}
15367 is the number of the column where the line starts and
15371 the column number where the line ends.
15376 always needs to be specified, also when the line should span only one column.
15377 The optional parameter
15394 Using for example the parameter
15398 means that the line is trimmed from its left end by 2
15399 \begin_inset space \thinspace{}
15403 If you don't specify the
15407 the line is trimmed by the default of 0.5
15408 \begin_inset space \thinspace{}
15414 \begin_layout Standard
15415 \begin_inset VSpace bigskip
15419 \begin_inset space ~
15423 \begin_inset CommandInset ref
15425 reference "tab:Example-booktabs-table"
15429 was created using the commands
15432 \begin_layout Standard
15442 \begin_layout Standard
15443 at the beginning of the second row and
15446 \begin_layout Standard
15451 cmidrule[2pt](l{10pt}){1-1}
15454 \begin_layout Standard
15458 \begin_layout Standard
15459 \begin_inset VSpace bigskip
15465 \begin_layout Standard
15466 You might want to have overlapping
15473 \begin_inset space ~
15477 \begin_inset CommandInset ref
15479 reference "tab:Special-booktabs-table"
15484 This can be achieved with the \SpecialChar TeX
15488 \begin_layout Standard
15496 \begin_layout Standard
15497 The command that was used for the second row of Table
15498 \begin_inset space ~
15502 \begin_inset CommandInset ref
15504 reference "tab:Special-booktabs-table"
15511 \begin_layout Standard
15525 \begin_layout Standard
15526 The command for the sixth row is
15529 \begin_layout Standard
15541 \begin_layout Standard
15542 \begin_inset VSpace bigskip
15548 \begin_layout Standard
15549 If you are in any way not satisfied with the border line spacing, you can
15550 use the following command to produce lines that span over all table columns
15555 \begin_layout Standard
15560 specialrule{width}{space above}{space below}
15563 \begin_layout Standard
15564 For more information about these features, refer to the manual of the \SpecialChar LaTeX
15571 \begin_inset CommandInset citation
15578 \begin_inset Index idx
15581 \begin_layout Plain Layout
15583 -packages ! booktabs
15591 \begin_layout Standard
15592 \begin_inset Float table
15598 \begin_layout Plain Layout
15599 \begin_inset Caption Standard
15601 \begin_layout Plain Layout
15602 \begin_inset CommandInset label
15604 name "tab:Special-booktabs-table"
15608 Special booktabs-table
15616 \begin_layout Plain Layout
15618 \begin_inset Tabular
15619 <lyxtabular version="3" rows="8" columns="4">
15620 <features booktabs="true" tabularvalignment="middle">
15621 <column alignment="center" valignment="top">
15622 <column alignment="center" valignment="top">
15623 <column alignment="center" valignment="top">
15624 <column alignment="center" valignment="top">
15626 <cell alignment="center" valignment="top" topline="true" usebox="none">
15629 \begin_layout Plain Layout
15635 <cell alignment="center" valignment="top" topline="true" usebox="none">
15638 \begin_layout Plain Layout
15640 \begin_inset space \thinspace{}
15648 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
15651 \begin_layout Plain Layout
15653 \begin_inset space \thinspace{}
15661 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15664 \begin_layout Plain Layout
15672 <cell alignment="center" valignment="top" usebox="none">
15675 \begin_layout Plain Layout
15679 \begin_layout Plain Layout
15692 \begin_layout Plain Layout
15705 \begin_layout Plain Layout
15718 \begin_layout Plain Layout
15727 Detector thickness in µm
15732 <cell alignment="center" valignment="top" usebox="none">
15735 \begin_layout Plain Layout
15741 <cell alignment="center" valignment="top" usebox="none">
15744 \begin_layout Plain Layout
15750 <cell alignment="center" valignment="top" usebox="none">
15753 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" topline="true" usebox="none">
15764 \begin_layout Plain Layout
15770 <cell alignment="center" valignment="top" topline="true" usebox="none">
15773 \begin_layout Plain Layout
15779 <cell alignment="center" valignment="top" topline="true" usebox="none">
15782 \begin_layout Plain Layout
15788 <cell alignment="center" valignment="top" topline="true" usebox="none">
15791 \begin_layout Plain Layout
15798 <row topspace="default">
15799 <cell alignment="center" valignment="top" usebox="none">
15802 \begin_layout Plain Layout
15803 Spatial resolution in µm
15808 <cell alignment="center" valignment="top" usebox="none">
15811 \begin_layout Plain Layout
15817 <cell alignment="center" valignment="top" usebox="none">
15820 \begin_layout Plain Layout
15826 <cell alignment="center" valignment="top" usebox="none">
15829 \begin_layout Plain Layout
15836 <row topspace="default">
15837 <cell alignment="center" valignment="top" usebox="none">
15840 \begin_layout Plain Layout
15842 \begin_inset Formula $f_{\mathrm{max}}$
15850 <cell alignment="center" valignment="top" usebox="none">
15853 \begin_layout Plain Layout
15859 <cell alignment="center" valignment="top" usebox="none">
15862 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" usebox="none">
15871 \begin_layout Plain Layout
15879 <cell alignment="center" valignment="top" topline="true" usebox="none">
15882 \begin_layout Plain Layout
15886 \begin_layout Plain Layout
15899 \begin_layout Plain Layout
15908 LSF-spatial resolution
15913 <cell alignment="center" valignment="top" topline="true" usebox="none">
15916 \begin_layout Plain Layout
15922 <cell alignment="center" valignment="top" topline="true" usebox="none">
15925 \begin_layout Plain Layout
15931 <cell alignment="center" valignment="top" topline="true" usebox="none">
15934 \begin_layout Plain Layout
15942 <cell alignment="center" valignment="top" usebox="none">
15945 \begin_layout Plain Layout
15951 <cell alignment="center" valignment="top" usebox="none">
15954 \begin_layout Plain Layout
15960 <cell alignment="center" valignment="top" usebox="none">
15963 \begin_layout Plain Layout
15969 <cell alignment="center" valignment="top" usebox="none">
15972 \begin_layout Plain Layout
15980 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15983 \begin_layout Plain Layout
15989 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
15992 \begin_layout Plain Layout
15998 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16001 \begin_layout Plain Layout
16007 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
16010 \begin_layout Plain Layout
16029 \begin_layout Section
16030 Vertical Table Alignment
16031 \begin_inset Index idx
16034 \begin_layout Plain Layout
16043 \begin_layout Standard
16044 To align tables vertically in a text line, the table must be inside a box.
16045 The box can then be vertically aligned as described in section
16046 \begin_inset space ~
16050 \begin_inset CommandInset ref
16052 reference "sec:Box-Dialog"
16059 \begin_layout Standard
16060 In the following example the tables are inside a minipage
16064 \begin_layout Plain Layout
16065 Minipages are described in section
16066 \begin_inset space ~
16070 \begin_inset CommandInset ref
16072 reference "sec:Minipages"
16081 box that has a width of 15
16082 \begin_inset space \thinspace{}
16088 \begin_layout Itemize
16090 \begin_inset Box Frameless
16100 height_special "totalheight"
16105 backgroundcolor "none"
16108 \begin_layout Plain Layout
16109 \begin_inset Tabular
16110 <lyxtabular version="3" rows="3" columns="3">
16111 <features tabularvalignment="middle">
16112 <column alignment="center" valignment="top">
16113 <column alignment="center" valignment="top">
16114 <column alignment="center" valignment="top">
16116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16119 \begin_layout Plain Layout
16125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16128 \begin_layout Plain Layout
16134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16137 \begin_layout Plain Layout
16145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16148 \begin_layout Plain Layout
16154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16157 \begin_layout Plain Layout
16163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16166 \begin_layout Plain Layout
16174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16177 \begin_layout Plain Layout
16183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16186 \begin_layout Plain Layout
16192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16195 \begin_layout Plain Layout
16215 \begin_layout Plain Layout
16227 \begin_inset Box Frameless
16237 height_special "totalheight"
16242 backgroundcolor "none"
16245 \begin_layout Plain Layout
16246 \begin_inset Tabular
16247 <lyxtabular version="3" rows="3" columns="3">
16248 <features tabularvalignment="middle">
16249 <column alignment="center" valignment="top">
16250 <column alignment="center" valignment="top">
16251 <column alignment="center" valignment="top">
16253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16256 \begin_layout Plain Layout
16262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16265 \begin_layout Plain Layout
16271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16274 \begin_layout Plain Layout
16282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16285 \begin_layout Plain Layout
16291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16294 \begin_layout Plain Layout
16300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16303 \begin_layout Plain Layout
16311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16314 \begin_layout Plain Layout
16320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16323 \begin_layout Plain Layout
16329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16332 \begin_layout Plain Layout
16352 \begin_layout Plain Layout
16362 \begin_layout Itemize
16364 \begin_inset Box Frameless
16374 height_special "totalheight"
16379 backgroundcolor "none"
16382 \begin_layout Plain Layout
16383 \begin_inset Tabular
16384 <lyxtabular version="3" rows="3" columns="3">
16385 <features tabularvalignment="middle">
16386 <column alignment="center" valignment="top">
16387 <column alignment="center" valignment="top">
16388 <column alignment="center" valignment="top">
16390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16393 \begin_layout Plain Layout
16399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16402 \begin_layout Plain Layout
16408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16411 \begin_layout Plain Layout
16419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16422 \begin_layout Plain Layout
16428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16431 \begin_layout Plain Layout
16437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16440 \begin_layout Plain Layout
16448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16451 \begin_layout Plain Layout
16457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16460 \begin_layout Plain Layout
16466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16469 \begin_layout Plain Layout
16488 \begin_layout Itemize
16490 \begin_inset Box Frameless
16500 height_special "totalheight"
16505 backgroundcolor "none"
16508 \begin_layout Plain Layout
16509 \begin_inset Tabular
16510 <lyxtabular version="3" rows="3" columns="3">
16511 <features tabularvalignment="middle">
16512 <column alignment="center" valignment="top">
16513 <column alignment="center" valignment="top">
16514 <column alignment="center" valignment="top">
16516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16519 \begin_layout Plain Layout
16525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16528 \begin_layout Plain Layout
16534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16537 \begin_layout Plain Layout
16545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16548 \begin_layout Plain Layout
16554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16557 \begin_layout Plain Layout
16563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16566 \begin_layout Plain Layout
16574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16577 \begin_layout Plain Layout
16583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16586 \begin_layout Plain Layout
16592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16595 \begin_layout Plain Layout
16615 \begin_layout Plain Layout
16627 \begin_inset Box Frameless
16637 height_special "totalheight"
16642 backgroundcolor "none"
16645 \begin_layout Plain Layout
16646 \begin_inset Tabular
16647 <lyxtabular version="3" rows="3" columns="3">
16648 <features tabularvalignment="middle">
16649 <column alignment="center" valignment="top">
16650 <column alignment="center" valignment="top">
16651 <column alignment="center" valignment="top">
16653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16656 \begin_layout Plain Layout
16662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16665 \begin_layout Plain Layout
16671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16674 \begin_layout Plain Layout
16682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16685 \begin_layout Plain Layout
16691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16694 \begin_layout Plain Layout
16700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16703 \begin_layout Plain Layout
16711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16714 \begin_layout Plain Layout
16720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16723 \begin_layout Plain Layout
16729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16732 \begin_layout Plain Layout
16752 \begin_layout Plain Layout
16762 \begin_layout Standard
16763 As you will see, the content of the first and last table row is not correctly
16765 To get this alignment, the minipage box must be set into a raisebox.
16769 \begin_layout Plain Layout
16770 Raiseboxes are described in section
16771 \begin_inset space ~
16775 \begin_inset CommandInset ref
16777 reference "subsec:Vertical-Alignment"
16786 In the example above the second table in the first item is aligned using
16787 the \SpecialChar TeX
16791 \begin_layout Standard
16801 \begin_layout Standard
16803 After the box the closing brace
16807 is inserted as \SpecialChar TeX
16809 For the second table in the last item the command
16812 \begin_layout Standard
16822 \begin_layout Standard
16826 \begin_layout Standard
16827 \begin_inset Note Greyedout
16830 \begin_layout Plain Layout
16835 The alignment of the table row content to the surrounding text line is
16837 The required value for the
16843 command for this alignment depends on the document font, the font size,
16844 and the table line thickness.
16852 \begin_layout Section
16854 \begin_inset CommandInset label
16856 name "sec:Colored-Tables"
16861 \begin_inset Index idx
16864 \begin_layout Plain Layout
16873 \begin_layout Subsection
16875 \begin_inset Index idx
16878 \begin_layout Plain Layout
16879 Table Color ! for Cells
16885 \begin_inset Index idx
16888 \begin_layout Plain Layout
16889 Color ! for Table Cells
16897 \begin_layout Standard
16898 \begin_inset Float table
16904 \begin_layout Plain Layout
16905 \begin_inset Caption Standard
16907 \begin_layout Plain Layout
16908 \begin_inset CommandInset label
16910 name "tab:Table-colored-without"
16914 Table colored without using the package
16919 \begin_inset Argument 1
16922 \begin_layout Plain Layout
16923 Table without colortbl
16936 \begin_layout Plain Layout
16938 \begin_inset Tabular
16939 <lyxtabular version="3" rows="3" columns="3">
16940 <features tabularvalignment="middle">
16941 <column alignment="center" valignment="top">
16942 <column alignment="center" valignment="top">
16943 <column alignment="center" valignment="top">
16945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16948 \begin_layout Plain Layout
16956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16959 \begin_layout Plain Layout
16967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16983 \begin_layout Plain Layout
16991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16994 \begin_layout Plain Layout
17002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17005 \begin_layout Plain Layout
17015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17018 \begin_layout Plain Layout
17026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17029 \begin_layout Plain Layout
17037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17040 \begin_layout Plain Layout
17061 \begin_layout Standard
17062 If you only need colored text, mark the cells and choose a color in the
17066 \begin_inset space ~
17071 dialog (toolbar button
17074 arg "dialog-show character"
17078 This was used to create Table
17079 \begin_inset space ~
17083 \begin_inset CommandInset ref
17085 reference "tab:Table-colored-without"
17090 In any other case you have to use the \SpecialChar LaTeX
17096 \begin_inset Index idx
17099 \begin_layout Plain Layout
17101 -packages ! colortbl
17109 \begin_layout Standard
17113 \begin_layout Plain Layout
17123 \begin_inset Note Note
17126 \begin_layout Plain Layout
17127 The following section part will only be displayed when the \SpecialChar LaTeX
17140 \begin_layout Standard
17141 To create colored tables,
17145 must be loaded in the preamble with the line
17148 \begin_layout Standard
17153 usepackage{colortbl}
17156 \begin_layout Standard
17157 The color of a column is adjusted with the command
17160 \begin_layout Standard
17165 columncolor{name of color}
17168 \begin_layout Standard
17174 More about the command
17178 is contained in section
17179 \begin_inset space ~
17183 \begin_inset CommandInset ref
17185 reference "subsec:Multicolumn-Calculations"
17192 \begin_layout Standard
17193 The following color names are predefined:
17196 \begin_layout Standard
17230 \begin_layout Standard
17231 \begin_inset VSpace medskip
17237 \begin_layout Standard
17238 If you add the option
17241 \begin_layout Standard
17247 \begin_layout Standard
17248 to the document class options in the document settings, you can additionally
17250 \begin_inset space ~
17254 These colors are listed in appendix
17255 \begin_inset space ~
17259 \begin_inset CommandInset ref
17261 reference "chap:List-of-dvips-colornames"
17266 One of these colors,
17270 , is used as example in Table
17271 \begin_inset space ~
17275 \begin_inset CommandInset ref
17277 reference "tab:Table-colored-using"
17284 \begin_layout Standard
17285 \begin_inset VSpace medskip
17291 \begin_layout Standard
17292 You can also define your own color with the command
17295 \begin_layout Standard
17300 definecolor{color name}{color model}{color values}
17303 \begin_layout Standard
17304 The color model can be
17307 \begin_layout Labeling
17308 \labelwidthstring 00.00.0000
17309 cmyk: cyan, magenta, yellow, black
17312 \begin_layout Labeling
17313 \labelwidthstring 00.00.0000
17314 rgb: red, green blue
17317 \begin_layout Labeling
17318 \labelwidthstring 00.00.0000
17322 \begin_layout Standard
17323 and the color values are comma separated numbers between 0 and 1 describing
17324 the factor for the corresponding color of the color model.
17327 \begin_layout Standard
17329 \begin_inset space \thinspace{}
17333 \begin_inset space \space{}
17340 " in the preamble with
17343 \begin_layout Standard
17348 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
17351 \begin_layout Standard
17359 \begin_layout Standard
17364 definecolor{lightgray}{gray}{0.8}
17367 \begin_layout Standard
17368 \begin_inset VSpace medskip
17374 \begin_layout Standard
17375 Lines are colored with the command
17378 \begin_layout Standard
17383 rowcolor{name of color}
17386 \begin_layout Standard
17387 and cells are colored with the command
17390 \begin_layout Standard
17395 cellcolor{name of color}
17398 \begin_layout Standard
17399 Both commands are inserted at the beginning of a cell as \SpecialChar TeX
17403 \begin_layout Standard
17404 To color characters in the table, mark the cells and use the
17407 \begin_inset space ~
17413 If a cell contains \SpecialChar TeX
17414 Code mark only the characters, otherwise the colored
17416 Code will cause \SpecialChar LaTeX
17420 \begin_layout Standard
17421 \begin_inset Note Greyedout
17424 \begin_layout Plain Layout
17429 Not all DVI-viewers are able to display self-defined colors.
17437 \begin_layout Standard
17438 \begin_inset VSpace bigskip
17444 \begin_layout Standard
17446 \begin_inset space ~
17450 \begin_inset CommandInset ref
17452 reference "tab:Table-colored-using"
17456 do the following: The color of the first column should be
17464 \begin_layout Standard
17469 columncolor{darkgreen}
17474 \begin_layout Standard
17475 as \SpecialChar LaTeX
17476 -argument for this column.
17477 The first row should be light blue, therefore the \SpecialChar TeX
17481 \begin_layout Standard
17489 \begin_layout Standard
17490 is inserted to the first cell of this row.
17491 Note that this overwrites the column color for the first cell.
17492 The last cell of the last row is colored maroon by inserting the \SpecialChar TeX
17497 \begin_layout Standard
17505 \begin_layout Standard
17506 The characters could now be colored using the menu
17508 Edit\SpecialChar menuseparator
17510 \begin_inset space ~
17518 \begin_layout Standard
17519 \begin_inset Float table
17525 \begin_layout Plain Layout
17526 \begin_inset Caption Standard
17528 \begin_layout Plain Layout
17529 \begin_inset CommandInset label
17531 name "tab:Table-colored-using"
17535 Table colored using the package
17540 \begin_inset Argument 1
17543 \begin_layout Plain Layout
17544 Table with colortbl
17557 \begin_layout Plain Layout
17559 \begin_inset Tabular
17560 <lyxtabular version="3" rows="3" columns="3">
17561 <features tabularvalignment="middle">
17562 <column alignment="center" valignment="top" special=">{\columncolor{darkgreen}\centering}c">
17563 <column alignment="center" valignment="top">
17564 <column alignment="center" valignment="top">
17566 <cell alignment="center" valignment="top" usebox="none">
17569 \begin_layout Plain Layout
17573 \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
17648 <cell alignment="center" valignment="top" usebox="none">
17651 \begin_layout Plain Layout
17659 <cell alignment="center" valignment="top" usebox="none">
17662 \begin_layout Plain Layout
17670 <cell alignment="center" valignment="top" usebox="none">
17673 \begin_layout Plain Layout
17677 \begin_layout Plain Layout
17706 \begin_layout Standard
17710 \begin_layout Plain Layout
17720 \begin_inset Note Note
17723 \begin_layout Plain Layout
17724 The following will be displayed when the \SpecialChar LaTeX
17737 \begin_layout Standard
17738 You need to install the package
17742 to see the content of this section in the output.
17745 \begin_layout Standard
17749 \begin_layout Plain Layout
17761 \begin_layout Subsection
17763 \begin_inset Index idx
17766 \begin_layout Plain Layout
17767 Table Color ! for Rows
17773 \begin_inset Index idx
17776 \begin_layout Plain Layout
17777 Color ! for Table Rows
17785 \begin_layout Standard
17786 In case every second table row needs to be colored there is an alternative
17787 to the method described in the previous section: One loads the package
17793 \begin_inset Index idx
17796 \begin_layout Plain Layout
17802 \begin_layout Plain Layout
17816 in the document preamble with the command
17819 \begin_layout Standard
17824 usepackage[table]{xcolor}
17827 \begin_layout Standard
17832 automatically loads also the package
17837 \begin_inset Index idx
17840 \begin_layout Plain Layout
17842 -packages ! colortbl
17851 must be installed in your \SpecialChar LaTeX
17852 -distribution, otherwise you get \SpecialChar LaTeX
17856 \begin_layout Standard
17860 \begin_layout Plain Layout
17870 \begin_inset Note Note
17873 \begin_layout Plain Layout
17874 The following section part will only be displayed when the \SpecialChar LaTeX
17887 \begin_layout Standard
17888 The table rows are colored with the command
17891 \begin_layout Standard
17896 rowcolors[commands]{row number}{odd row color}{even row color}
17899 \begin_layout Standard
17900 that is either inserted in the document preamble or as \SpecialChar TeX
17902 first table to be colored.
17904 \begin_inset space ~
17907 number is the number of the first row which should be colored according
17908 to the odd row color.
17909 commands can be additional commands that are executed before every table
17911 So for example the command
17914 \begin_layout Standard
17919 rowcolors{1}{white}{lightgray}
17922 \begin_layout Standard
17923 leads to the coloring scheme of Table
17924 \begin_inset space ~
17928 \begin_inset CommandInset ref
17930 reference "tab:Table-rowcolors"
17938 \begin_layout Standard
17945 hline]{1}{lightgray}{cyan}
17948 \begin_layout Standard
17949 leads to the coloring scheme of Table
17950 \begin_inset space ~
17954 \begin_inset CommandInset ref
17956 reference "tab:Table-rowcolors-2"
17962 \begin_inset space ~
17966 \begin_inset space ~
17970 \begin_inset space ~
17974 \begin_inset space ~
17977 color are left empty, no color will be used so that the command
17980 \begin_layout Standard
17988 \begin_layout Standard
17989 deletes all colors.
17996 affects all tables following that command.
17999 \begin_layout Standard
18003 \begin_layout Plain Layout
18007 rowcolors{1}{white}{lightgray}
18015 \begin_layout Standard
18016 \begin_inset Float table
18022 \begin_layout Plain Layout
18023 \begin_inset Caption Standard
18025 \begin_layout Plain Layout
18026 \begin_inset CommandInset label
18028 name "tab:Table-rowcolors"
18032 Table where every second row is colored light gray.
18040 \begin_layout Plain Layout
18042 \begin_inset Tabular
18043 <lyxtabular version="3" rows="4" columns="3">
18044 <features tabularvalignment="middle">
18045 <column alignment="center" valignment="top">
18046 <column alignment="center" valignment="top" width="0pt">
18047 <column alignment="center" valignment="top" width="0pt">
18049 <cell alignment="center" valignment="top" usebox="none">
18052 \begin_layout Plain Layout
18058 <cell alignment="center" valignment="top" usebox="none">
18061 \begin_layout Plain Layout
18067 <cell alignment="center" valignment="top" usebox="none">
18070 \begin_layout Plain Layout
18078 <cell alignment="center" valignment="top" usebox="none">
18081 \begin_layout Plain Layout
18087 <cell alignment="center" valignment="top" usebox="none">
18090 \begin_layout Plain Layout
18096 <cell alignment="center" valignment="top" usebox="none">
18099 \begin_layout Plain Layout
18107 <cell alignment="center" valignment="top" usebox="none">
18110 \begin_layout Plain Layout
18116 <cell alignment="center" valignment="top" usebox="none">
18119 \begin_layout Plain Layout
18125 <cell alignment="center" valignment="top" usebox="none">
18128 \begin_layout Plain Layout
18136 <cell alignment="center" valignment="top" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" usebox="none">
18148 \begin_layout Plain Layout
18154 <cell alignment="center" valignment="top" usebox="none">
18157 \begin_layout Plain Layout
18176 \begin_layout Standard
18180 \begin_layout Plain Layout
18186 hline]{1}{lightgray}{cyan}
18194 \begin_layout Standard
18195 \begin_inset Float table
18201 \begin_layout Plain Layout
18202 \begin_inset Caption Standard
18204 \begin_layout Plain Layout
18205 \begin_inset CommandInset label
18207 name "tab:Table-rowcolors-2"
18211 Table where every second row is colored cyan and at which there is a line
18220 \begin_layout Plain Layout
18222 \begin_inset Tabular
18223 <lyxtabular version="3" rows="4" columns="3">
18224 <features tabularvalignment="middle">
18225 <column alignment="center" valignment="top">
18226 <column alignment="center" valignment="top">
18227 <column alignment="center" valignment="top" width="0pt">
18229 <cell alignment="center" valignment="top" usebox="none">
18232 \begin_layout Plain Layout
18238 <cell alignment="center" valignment="top" usebox="none">
18241 \begin_layout Plain Layout
18247 <cell alignment="center" valignment="top" usebox="none">
18250 \begin_layout Plain Layout
18258 <cell alignment="center" valignment="top" usebox="none">
18261 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" usebox="none">
18270 \begin_layout Plain Layout
18276 <cell alignment="center" valignment="top" usebox="none">
18279 \begin_layout Plain Layout
18287 <cell alignment="center" valignment="top" usebox="none">
18290 \begin_layout Plain Layout
18296 <cell alignment="center" valignment="top" usebox="none">
18299 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" usebox="none">
18308 \begin_layout Plain Layout
18316 <cell alignment="center" valignment="top" usebox="none">
18319 \begin_layout Plain Layout
18325 <cell alignment="center" valignment="top" usebox="none">
18328 \begin_layout Plain Layout
18334 <cell alignment="center" valignment="top" usebox="none">
18337 \begin_layout Plain Layout
18356 \begin_layout Standard
18360 \begin_layout Plain Layout
18370 \begin_inset Note Note
18373 \begin_layout Plain Layout
18374 turns off the row coloring
18382 \begin_layout Standard
18386 \begin_layout Plain Layout
18396 \begin_inset Note Note
18399 \begin_layout Plain Layout
18400 The following will be displayed when the \SpecialChar LaTeX
18413 \begin_layout Standard
18414 You need to install the package
18418 to see the content of this section in the output.
18421 \begin_layout Standard
18425 \begin_layout Plain Layout
18437 \begin_layout Subsection
18439 \begin_inset Index idx
18442 \begin_layout Plain Layout
18443 Table Color ! for Lines
18449 \begin_inset Index idx
18452 \begin_layout Plain Layout
18453 Color ! for Table Lines
18461 \begin_layout Standard
18462 As described in section
18463 \begin_inset space ~
18467 \begin_inset CommandInset ref
18469 reference "subsec:Line-Thickness"
18473 , the line thickness for all lines in a table can be adjusted with the length
18482 \begin_inset space \thinspace{}
18485 pt for all tables of this section.
18489 \begin_layout Plain Layout
18495 arrayrulewidth}{1.5pt}
18503 \begin_layout Standard
18504 To color vertical lines for example with green, create the following column
18505 format in the document preamble, according to the description in section
18506 \begin_inset space ~
18510 \begin_inset CommandInset ref
18512 reference "subsec:Customized-Format"
18519 \begin_layout Standard
18524 newcolumntype{W}{!{
18531 \begin_layout Standard
18533 \begin_inset space ~
18537 \begin_inset CommandInset ref
18539 reference "tab:Table-with-vertical-colored"
18543 the \SpecialChar LaTeX
18548 was used for the last column and
18552 for the other columns.
18555 \begin_layout Standard
18556 If you want to have several colors, define more column formats.
18559 \begin_layout Standard
18560 \begin_inset Float table
18566 \begin_layout Plain Layout
18567 \begin_inset Caption Standard
18569 \begin_layout Plain Layout
18570 \begin_inset CommandInset label
18572 name "tab:Table-with-vertical-colored"
18576 Table with colored vertical lines
18584 \begin_layout Plain Layout
18586 \begin_inset Tabular
18587 <lyxtabular version="3" rows="3" columns="3">
18588 <features tabularvalignment="middle">
18589 <column alignment="center" valignment="top" special="Wc">
18590 <column alignment="center" valignment="top" special="Wc">
18591 <column alignment="center" valignment="top" special="WcW">
18593 <cell alignment="center" valignment="top" topline="true" usebox="none">
18596 \begin_layout Plain Layout
18602 <cell alignment="center" valignment="top" topline="true" usebox="none">
18605 \begin_layout Plain Layout
18611 <cell alignment="center" valignment="top" topline="true" usebox="none">
18614 \begin_layout Plain Layout
18622 <cell alignment="center" valignment="top" topline="true" usebox="none">
18625 \begin_layout Plain Layout
18631 <cell alignment="center" valignment="top" topline="true" usebox="none">
18634 \begin_layout Plain Layout
18640 <cell alignment="center" valignment="top" topline="true" usebox="none">
18643 \begin_layout Plain Layout
18651 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18654 \begin_layout Plain Layout
18660 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18663 \begin_layout Plain Layout
18669 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18672 \begin_layout Plain Layout
18691 \begin_layout Standard
18692 \begin_inset VSpace bigskip
18695 To color horizontal lines for example with red, as in Table
18696 \begin_inset space ~
18700 \begin_inset CommandInset ref
18702 reference "tab:Table-with-horizontal-colored"
18706 , insert these commands in \SpecialChar TeX
18707 Code before the table or table float:
18710 \begin_layout Standard
18720 \begin_inset Newline newline
18728 \begin_inset Newline newline
18732 \begin_inset Phantom HPhantom
18735 \begin_layout Plain Layout
18738 \begin_inset space ~
18748 arrayrulecolor{red}
18752 arrayrulecolor{black}}
18755 \begin_layout Standard
18759 \begin_layout Plain Layout
18770 \begin_layout Plain Layout
18779 \begin_layout Plain Layout
18783 arrayrulecolor{red}
18787 arrayrulecolor{black}}
18793 \begin_inset Float table
18799 \begin_layout Plain Layout
18800 \begin_inset Caption Standard
18802 \begin_layout Plain Layout
18803 \begin_inset CommandInset label
18805 name "tab:Table-with-horizontal-colored"
18809 Table with colored horizontal lines
18817 \begin_layout Plain Layout
18819 \begin_inset Tabular
18820 <lyxtabular version="3" rows="3" columns="3">
18821 <features tabularvalignment="middle">
18822 <column alignment="center" valignment="top">
18823 <column alignment="center" valignment="top">
18824 <column alignment="center" valignment="top">
18826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18829 \begin_layout Plain Layout
18835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18838 \begin_layout Plain Layout
18844 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18847 \begin_layout Plain Layout
18855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18858 \begin_layout Plain Layout
18864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18867 \begin_layout Plain Layout
18873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18876 \begin_layout Plain Layout
18884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18887 \begin_layout Plain Layout
18893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18896 \begin_layout Plain Layout
18902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18905 \begin_layout Plain Layout
18924 \begin_layout Standard
18925 To return to the default line color black, insert this command in \SpecialChar TeX
18927 after the table or table float:
18930 \begin_layout Standard
18942 \begin_layout Standard
18944 \begin_inset space ~
18948 \begin_inset CommandInset ref
18950 reference "tab:Table-with-colored"
18954 is an example with colored vertical and horizontal lines.
18957 \begin_layout Standard
18958 \begin_inset Float table
18964 \begin_layout Plain Layout
18965 \begin_inset Caption Standard
18967 \begin_layout Plain Layout
18968 \begin_inset CommandInset label
18970 name "tab:Table-with-colored"
18974 Table with colored lines
18982 \begin_layout Plain Layout
18984 \begin_inset Tabular
18985 <lyxtabular version="3" rows="3" columns="3">
18986 <features tabularvalignment="middle">
18987 <column alignment="center" valignment="top" special="Wc">
18988 <column alignment="center" valignment="top" special="Wc">
18989 <column alignment="center" valignment="top" special="WcW">
18991 <cell alignment="center" valignment="top" topline="true" usebox="none">
18994 \begin_layout Plain Layout
19000 <cell alignment="center" valignment="top" topline="true" usebox="none">
19003 \begin_layout Plain Layout
19009 <cell alignment="center" valignment="top" topline="true" usebox="none">
19012 \begin_layout Plain Layout
19020 <cell alignment="center" valignment="top" topline="true" usebox="none">
19023 \begin_layout Plain Layout
19029 <cell alignment="center" valignment="top" topline="true" usebox="none">
19032 \begin_layout Plain Layout
19038 <cell alignment="center" valignment="top" topline="true" usebox="none">
19041 \begin_layout Plain Layout
19048 <row topspace="default">
19049 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19052 \begin_layout Plain Layout
19058 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19061 \begin_layout Plain Layout
19067 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19070 \begin_layout Plain Layout
19089 \begin_layout Standard
19093 \begin_layout Plain Layout
19109 \begin_layout Standard
19113 \begin_layout Plain Layout
19119 arrayrulewidth}{0.4pt}
19127 \begin_layout Section
19128 Rotated Table Cells
19129 \begin_inset CommandInset label
19131 name "sec:Rotated-Table-Cells"
19136 \begin_inset Index idx
19139 \begin_layout Plain Layout
19140 Table ! Rotated Cells
19146 \begin_inset Index idx
19149 \begin_layout Plain Layout
19158 \begin_layout Standard
19159 \begin_inset Note Greyedout
19162 \begin_layout Plain Layout
19167 Not all DVI-viewers are able to display rotations.
19175 \begin_layout Standard
19177 \begin_inset space ~
19181 \begin_inset CommandInset ref
19183 reference "tab:Table-with-rotated-multi"
19187 is an example where 3
19188 \begin_inset space ~
19191 cells were rotated by 45
19192 \begin_inset space \thinspace{}
19198 \begin_layout Standard
19199 \begin_inset Float table
19205 \begin_layout Plain Layout
19206 \begin_inset Caption Standard
19208 \begin_layout Plain Layout
19209 \begin_inset CommandInset label
19211 name "tab:Table-with-rotated"
19215 Table with rotated cells in the first row.
19223 \begin_layout Plain Layout
19226 \begin_inset Tabular
19227 <lyxtabular version="3" rows="2" columns="3">
19228 <features tabularvalignment="middle">
19229 <column alignment="center" valignment="top" width="0pt">
19230 <column alignment="center" valignment="top" width="0pt">
19231 <column alignment="center" valignment="top" width="0pt">
19233 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19236 \begin_layout Plain Layout
19242 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19245 \begin_layout Plain Layout
19251 <cell alignment="center" valignment="top" rotate="45" usebox="none">
19254 \begin_layout Plain Layout
19262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19265 \begin_layout Plain Layout
19271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19274 \begin_layout Plain Layout
19280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19283 \begin_layout Plain Layout
19302 \begin_layout Standard
19303 \begin_inset Note Greyedout
19306 \begin_layout Plain Layout
19311 Line breaks (shortcut
19314 arg "newline-insert newline"
19317 ) are not allowed in rotated cells.
19325 \begin_layout Standard
19326 If you want to rotate table cells containing line breaks, you have to put
19327 the cell content into a minipage or a parbox.
19331 \begin_layout Plain Layout
19332 For more about these boxes see sec.
19333 \begin_inset space \thinspace{}
19337 \begin_inset CommandInset ref
19339 reference "sec:Minipages"
19344 \begin_inset CommandInset ref
19346 reference "sec:Parboxes"
19355 If you rotate this cell by 90
19356 \begin_inset space \thinspace{}
19359 ° the width of the box is the height of the cell.
19361 \begin_inset space ~
19365 \begin_inset CommandInset ref
19367 reference "tab:Table-with-rotated-multi"
19371 is an example for a rotated multiline cell where the box width was set
19373 \begin_inset space \thinspace{}
19379 \begin_layout Standard
19380 \begin_inset Float table
19385 \begin_layout Plain Layout
19386 \begin_inset Caption Standard
19388 \begin_layout Plain Layout
19389 \begin_inset CommandInset label
19391 name "tab:Table-with-rotated-multi"
19395 Table with rotated multiline cell.
19403 \begin_layout Plain Layout
19406 \begin_inset Tabular
19407 <lyxtabular version="3" rows="2" columns="3">
19408 <features tabularvalignment="middle">
19409 <column alignment="center" valignment="top">
19410 <column alignment="center" valignment="top" width="0pt">
19411 <column alignment="center" valignment="top">
19413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19416 \begin_layout Plain Layout
19422 <cell alignment="center" valignment="top" topline="true" leftline="true" rotate="90" usebox="none">
19425 \begin_layout Plain Layout
19426 \begin_inset Box Frameless
19436 height_special "totalheight"
19441 backgroundcolor "none"
19444 \begin_layout Plain Layout
19446 \begin_inset Newline newline
19459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19462 \begin_layout Plain Layout
19470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19473 \begin_layout Plain Layout
19479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19482 \begin_layout Plain Layout
19488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19491 \begin_layout Plain Layout
19510 \begin_layout Section
19511 Table Width Calculation
19512 \begin_inset CommandInset label
19514 name "sec:Table-Width-Calculation"
19521 \begin_layout Standard
19522 For wide tables it is sometimes difficult to assure that the table does
19523 not protrude over the page margin.
19524 Setting a fixed width for every column of the table is the solution, but
19525 what amount of space is needed for each column?
19528 \begin_layout Standard
19530 \begin_inset Formula $W_{\mathrm{table}}$
19533 can be calculated: Every column has the width of the specified column width
19535 \begin_inset Formula $W_{\mathrm{column}}$
19538 (that the content of the column can consume) plus two times the separation
19539 between the column content and the column border (\SpecialChar LaTeX
19547 \begin_inset space \thinspace{}
19550 pt) plus the width of a border line (\SpecialChar LaTeX
19558 \begin_inset space \thinspace{}
19562 \begin_inset Formula $n$
19566 \begin_inset space ~
19569 columns have the same width, the table width is
19570 \begin_inset Formula
19572 W_{\mathrm{table}}=n\left(W_{\mathrm{column}}+2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)+\backslash\mbox{arrayrulewidth}
19580 \begin_layout Standard
19581 The available width for a table is the space between the page margins or
19582 the width of a text column (for a two-column document) (\SpecialChar LaTeX
19590 If all table columns should have the same width and
19591 \begin_inset Formula $W_{\mathrm{table}}$
19595 \begin_inset space \thinspace{}
19601 \begin_inset Formula $W_{\mathrm{column}}$
19604 can easily be calculated.
19607 \begin_layout Standard
19608 To be able to perform calculations you need to load the \SpecialChar LaTeX
19614 \begin_inset Index idx
19617 \begin_layout Plain Layout
19624 in the document preamble.
19625 To set the width in the table dialog you have to use the field
19631 The command scheme for this field is the same that is explained in section
19632 \begin_inset space ~
19636 \begin_inset CommandInset ref
19638 reference "subsec:Multicolumn-Calculations"
19644 \begin_inset space \thinspace{}
19647 columns with an uniform width and centered text, enter there for each column
19651 \begin_layout Standard
19658 columnwidth-62.4pt)/5}
19661 \begin_layout Standard
19663 \begin_inset space \thinspace{}
19666 columns where 2 should have 0.75
19667 \begin_inset space ~
19670 times the width than the 3 others, the calculation is
19671 \begin_inset Formula
19673 \backslash\mbox{columnwidth} & =3\,W_{\mathrm{column}}+2\cdot0.75\,W_{\mathrm{column}}+\backslash\mbox{arrayrulewidth}\nonumber \\
19674 & \phantom{=\,}+5\left(2\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}\right)\nonumber \\
19675 & =4.5\,W_{\mathrm{column}}+62.4\,\mathrm{pt}\nonumber \\
19676 W_{\mathrm{column}} & =\frac{\backslash\mbox{columnwidth}-62.4\,\mathrm{pt}}{4.5}
19684 \begin_layout Standard
19685 In the table therefore the command
19688 \begin_layout Standard
19695 columnwidth-62.4pt)/
19700 \begin_layout Standard
19701 is used for the wider columns and
19704 \begin_layout Standard
19711 columnwidth-62.4pt)/
19718 \begin_layout Standard
19719 for the smaller ones:
19722 \begin_layout Standard
19723 \begin_inset Tabular
19724 <lyxtabular version="3" rows="2" columns="5">
19725 <features tabularvalignment="middle">
19726 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19727 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19728 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19729 <column alignment="center" valignment="top" width="0pt" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}*\real{0.75}}">
19730 <column alignment="center" valignment="top" width="20col%" special=">{\centering}p{(1\columnwidth-62.4pt)/\real{4.5}}">
19732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19735 \begin_layout Plain Layout
19741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19744 \begin_layout Plain Layout
19750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19753 \begin_layout Plain Layout
19759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19762 \begin_layout Plain Layout
19768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19771 \begin_layout Plain Layout
19779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19782 \begin_layout Plain Layout
19783 111111 1111111 111111 111111111 11111 11111 1111
19788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19791 \begin_layout Plain Layout
19797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19800 \begin_layout Plain Layout
19801 2222 22222 222222 222222222 2222222 22 22222
19806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19809 \begin_layout Plain Layout
19815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19818 \begin_layout Plain Layout
19819 333333 333333 333333 33333 3333333 333
19832 \begin_layout Section
19833 Table Customization
19834 \begin_inset Index idx
19837 \begin_layout Plain Layout
19838 Table Customization
19844 \begin_inset Index idx
19847 \begin_layout Plain Layout
19848 Table ! Customization
19856 \begin_layout Subsection
19858 \begin_inset CommandInset label
19860 name "subsec:Row-Spacing"
19865 \begin_inset Index idx
19868 \begin_layout Plain Layout
19869 Table Customization ! Row Spacing
19877 \begin_layout Standard
19878 You can add vertical space to table rows in the
19882 tab of the table dialog.
19883 You find there three possibilities:
19886 \begin_layout Description
19888 \begin_inset space ~
19892 \begin_inset space ~
19895 row will add space above the characters of the table row.
19896 If the table is a formal table
19900 \begin_layout Plain Layout
19901 Formal tables are explained in section
19902 \begin_inset space ~
19906 \begin_inset CommandInset ref
19908 reference "sec:Formal-Tables"
19918 will insert as default 0.5
19919 \begin_inset space \thinspace{}
19923 For normal tables the inserted space will unfortunately destroy the vertical
19924 table lines as in the following table:
19925 \begin_inset VSpace medskip
19929 \begin_inset Newline newline
19933 \begin_inset space \hspace*{}
19938 \begin_inset space \hfill{}
19942 \begin_inset Tabular
19943 <lyxtabular version="3" rows="3" columns="1">
19944 <features tabularvalignment="middle">
19945 <column alignment="center" valignment="top">
19947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19950 \begin_layout Plain Layout
19957 <row topspace="3mm">
19958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19961 \begin_layout Plain Layout
19963 \begin_inset space \thinspace{}
19966 mm space top of row
19973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19976 \begin_layout Plain Layout
19988 \begin_inset space \hfill{}
19992 \begin_inset space \hspace*{}
19997 \begin_inset VSpace medskip
20001 \begin_inset Newline newline
20004 So inserting space in the top of row for normal tables is only useful when
20005 you don't have vertical lines.
20008 \begin_layout Description
20010 \begin_inset space ~
20014 \begin_inset space ~
20017 row will add space below the characters of the table row.
20018 If the table is a formal table \SpecialChar LyX
20019 will insert as default 0.5
20020 \begin_inset space \thinspace{}
20023 em space, for normal tables the default size is 2
20024 \begin_inset space \thinspace{}
20030 \begin_layout Description
20032 \begin_inset space ~
20035 rows adds space between the current and the following row.
20036 If the table is a formal table \SpecialChar LyX
20037 will insert as default 0.5
20038 \begin_inset space \thinspace{}
20042 For normal tables the inserted space will unfortunately destroy the vertical
20043 table lines as in the following table:
20044 \begin_inset VSpace medskip
20048 \begin_inset Newline newline
20052 \begin_inset space \hspace*{}
20057 \begin_inset space \hfill{}
20061 \begin_inset Tabular
20062 <lyxtabular version="3" rows="3" columns="1">
20063 <features tabularvalignment="middle">
20064 <column alignment="center" valignment="top">
20066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20069 \begin_layout Plain Layout
20076 <row interlinespace="3mm">
20077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20080 \begin_layout Plain Layout
20081 \begin_inset Formula $\downarrow$
20085 \begin_inset space \thinspace{}
20088 mm space between row
20089 \begin_inset Formula $\downarrow$
20099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20102 \begin_layout Plain Layout
20103 \begin_inset Formula $\uparrow$
20107 \begin_inset space \thinspace{}
20110 mm space between row
20111 \begin_inset Formula $\uparrow$
20125 \begin_inset space \hfill{}
20129 \begin_inset space \hspace*{}
20134 \begin_inset VSpace medskip
20138 \begin_inset Newline newline
20141 So inserting space between rows for normal tables is only useful when you
20142 don't have vertical lines.
20145 \begin_layout Standard
20146 \begin_inset VSpace bigskip
20149 When you want to add extra height to all cells of all tables, you can do
20150 this with the following preamble lines:
20153 \begin_layout Standard
20158 @ifundefined{extrarowheight}
20159 \begin_inset Newline newline
20163 \begin_inset Phantom HPhantom
20166 \begin_layout Plain Layout
20169 \begin_inset space ~
20179 usepackage{array}}{}
20180 \begin_inset Newline newline
20187 extrarowheight}{height}
20190 \begin_inset Note Note
20193 \begin_layout Plain Layout
20198 will be loaded automatically by \SpecialChar LyX
20199 when you use self defined table formats.
20200 To avoid that it being loaded twice the command
20206 is used in the above command.
20214 \begin_layout Standard
20219 can have one of the units listed in appendix
20220 \begin_inset space ~
20224 \begin_inset CommandInset ref
20226 reference "cha:Units-available-in"
20231 But this has the disadvantage that the cell texts are no longer exactly
20232 vertically centered.
20235 \begin_layout Standard
20236 If you are using font sizes larger than the normal size, the table borders
20237 are often too close to the letters.
20238 This can be corrected by inserting the command
20244 in \SpecialChar TeX
20245 Code at the beginning of a table row.
20247 \begin_inset space ~
20251 \begin_inset CommandInset ref
20253 reference "tab:Vertical-alignment-of"
20257 illustrates the effect.
20260 \begin_layout Standard
20262 \begin_inset Float table
20268 \begin_layout Plain Layout
20269 \begin_inset Caption Standard
20271 \begin_layout Plain Layout
20272 \begin_inset CommandInset label
20274 name "tab:Vertical-alignment-of"
20278 Vertical alignment of text with large font sizes.
20286 \begin_layout Plain Layout
20287 \begin_inset space \hfill{}
20291 \begin_inset Float table
20296 \begin_layout Plain Layout
20297 \begin_inset Caption Standard
20299 \begin_layout Plain Layout
20308 \begin_layout Plain Layout
20311 \begin_inset Tabular
20312 <lyxtabular version="3" rows="6" columns="1">
20313 <features tabularvalignment="middle">
20314 <column alignment="left" valignment="top">
20316 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20319 \begin_layout Plain Layout
20327 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20330 \begin_layout Plain Layout
20340 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20343 \begin_layout Plain Layout
20353 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20356 \begin_layout Plain Layout
20366 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20369 \begin_layout Plain Layout
20379 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20382 \begin_layout Plain Layout
20401 \begin_inset space \hfill{}
20405 \begin_inset Float table
20410 \begin_layout Plain Layout
20411 \begin_inset Caption Standard
20413 \begin_layout Plain Layout
20414 Table using the command
20428 \begin_layout Plain Layout
20431 \begin_inset Tabular
20432 <lyxtabular version="3" rows="6" columns="1">
20433 <features tabularvalignment="middle">
20434 <column alignment="left" valignment="top">
20436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20439 \begin_layout Plain Layout
20447 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20450 \begin_layout Plain Layout
20456 \begin_layout Plain Layout
20472 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20475 \begin_layout Plain Layout
20481 \begin_layout Plain Layout
20497 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20500 \begin_layout Plain Layout
20506 \begin_layout Plain Layout
20522 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20525 \begin_layout Plain Layout
20531 \begin_layout Plain Layout
20547 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20550 \begin_layout Plain Layout
20556 \begin_layout Plain Layout
20583 \begin_inset space \hfill{}
20594 \begin_layout Subsection
20595 Special Cell Alignment
20596 \begin_inset CommandInset label
20598 name "subsec:Special-Cell-Alignment"
20603 \begin_inset Index idx
20606 \begin_layout Plain Layout
20607 Table Customization ! Special Cell Alignment
20615 \begin_layout Standard
20616 Sometimes it looks better when the cell entries of a column are aligned
20617 with a special character, e.
20618 \begin_inset space \thinspace{}
20622 \begin_inset space \space{}
20625 with the decimal separator as in Table
20626 \begin_inset space ~
20630 \begin_inset CommandInset ref
20632 reference "tab:Table-cells-align"
20637 This alignment is achieved by setting the cursor into the column and then
20638 either pressing the toolbar button
20641 arg "tabular-feature align-decimal"
20644 or setting the alignment in the table settings to
20647 \begin_inset space ~
20651 \begin_inset space ~
20657 The alignment character can be a character of your choice and is specified
20658 in the table settings.
20661 \begin_layout Standard
20662 \begin_inset Float table
20668 \begin_layout Plain Layout
20669 \begin_inset Caption Standard
20671 \begin_layout Plain Layout
20672 \begin_inset CommandInset label
20674 name "tab:Table-cells-align"
20678 Table cells of a column aligned with the decimal separator.
20686 \begin_layout Plain Layout
20688 \begin_inset Tabular
20689 <lyxtabular version="3" rows="4" columns="1">
20690 <features booktabs="true" tabularvalignment="middle">
20691 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
20693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20696 \begin_layout Plain Layout
20704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20707 \begin_layout Plain Layout
20715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20718 \begin_layout Plain Layout
20726 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
20729 \begin_layout Plain Layout
20748 \begin_layout Standard
20749 \begin_inset Float table
20755 \begin_layout Plain Layout
20756 \begin_inset Caption Standard
20758 \begin_layout Plain Layout
20759 \begin_inset CommandInset label
20761 name "tab:Table-align-operator"
20765 Table cells of a column aligned with the operators.
20773 \begin_layout Plain Layout
20775 \begin_inset Tabular
20776 <lyxtabular version="3" rows="4" columns="2">
20777 <features booktabs="true" tabularvalignment="middle">
20778 <column alignment="right" valignment="top" width="0pt">
20779 <column alignment="left" valignment="top" width="0pt" special="@{}l">
20781 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
20784 \begin_layout Plain Layout
20790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20793 \begin_layout Plain Layout
20801 <cell alignment="center" valignment="top" usebox="none">
20804 \begin_layout Plain Layout
20805 \begin_inset Formula $12\,+$
20813 <cell alignment="center" valignment="top" usebox="none">
20816 \begin_layout Plain Layout
20817 \begin_inset Formula $\,6$
20827 <cell alignment="center" valignment="top" usebox="none">
20830 \begin_layout Plain Layout
20831 \begin_inset Formula $0\,-$
20839 <cell alignment="center" valignment="top" usebox="none">
20842 \begin_layout Plain Layout
20843 \begin_inset Formula $\,68$
20853 <cell alignment="center" valignment="top" usebox="none">
20856 \begin_layout Plain Layout
20857 \begin_inset Formula $-123\,/$
20865 <cell alignment="center" valignment="top" usebox="none">
20868 \begin_layout Plain Layout
20869 \begin_inset Formula $\,0$
20890 \begin_layout Standard
20891 For alignments at characters in formulas this method does not work because
20892 the field to specify the alignment character does not allow formulas.
20893 In this case one need to use the method from Table
20894 \begin_inset space ~
20898 \begin_inset CommandInset ref
20900 reference "tab:Table-align-operator"
20905 This table was created with a 4×2 table.
20906 The heading is a centered multicolumn.
20907 The first column is right-aligned and contains the first part including
20909 The second column is left aligned and contains the rest.
20910 A small space was added at the beginning of each cell of the second column
20911 to get the space that is usually around operators.
20912 To omit the space that is normally between two table columns, the following
20914 -argument was used for the second column:
20917 \begin_layout Standard
20923 \begin_layout Standard
20925 \begin_inset space ~
20929 \begin_inset CommandInset ref
20931 reference "tab:Several-table-cell"
20935 shows some example alignments.
20936 For the alignment with the relation sign, a small space was added like
20937 for the second column of Table
20938 \begin_inset space ~
20942 \begin_inset CommandInset ref
20944 reference "tab:Table-align-operator"
20951 \begin_layout Standard
20952 \begin_inset Float table
20958 \begin_layout Plain Layout
20959 \begin_inset Caption Standard
20961 \begin_layout Plain Layout
20962 \begin_inset CommandInset label
20964 name "tab:Several-table-cell"
20968 Several table cell alignments.
20976 \begin_layout Plain Layout
20978 \begin_inset Tabular
20979 <lyxtabular version="3" rows="4" columns="6">
20980 <features tabularvalignment="middle">
20981 <column alignment="right" valignment="top">
20982 <column alignment="left" valignment="top" special="@{}l">
20983 <column alignment="right" valignment="top">
20984 <column alignment="left" valignment="top" special="@{}l">
20985 <column alignment="right" valignment="top">
20986 <column alignment="left" valignment="top" special="@{}l">
20988 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
20991 \begin_layout Plain Layout
20997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21000 \begin_layout Plain Layout
21006 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
21009 \begin_layout Plain Layout
21015 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21018 \begin_layout Plain Layout
21024 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
21027 \begin_layout Plain Layout
21033 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21036 \begin_layout Plain Layout
21044 <cell alignment="center" valignment="top" usebox="none">
21047 \begin_layout Plain Layout
21053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21056 \begin_layout Plain Layout
21058 \begin_inset space \thinspace{}
21066 <cell alignment="center" valignment="top" usebox="none">
21069 \begin_layout Plain Layout
21070 \begin_inset Formula $10\cdot$
21078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21081 \begin_layout Plain Layout
21082 \begin_inset Formula $10^{\mbox{-}17}$
21090 <cell alignment="center" valignment="top" usebox="none">
21093 \begin_layout Plain Layout
21094 \begin_inset Formula $\Gamma(t)\propto$
21102 <cell alignment="center" valignment="top" usebox="none">
21105 \begin_layout Plain Layout
21106 \begin_inset Formula $\:\Upsilon(t)$
21116 <cell alignment="center" valignment="top" usebox="none">
21119 \begin_layout Plain Layout
21125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21128 \begin_layout Plain Layout
21130 \begin_inset space \thinspace{}
21138 <cell alignment="center" valignment="top" usebox="none">
21141 \begin_layout Plain Layout
21142 \begin_inset Formula $5.78\cdot$
21150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21153 \begin_layout Plain Layout
21154 \begin_inset Formula $10^{7}$
21162 <cell alignment="center" valignment="top" usebox="none">
21165 \begin_layout Plain Layout
21166 \begin_inset Formula $A\ne$
21174 <cell alignment="center" valignment="top" usebox="none">
21177 \begin_layout Plain Layout
21178 \begin_inset Formula $\:B_{\mathrm{red}}$
21188 <cell alignment="center" valignment="top" usebox="none">
21191 \begin_layout Plain Layout
21197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21200 \begin_layout Plain Layout
21202 \begin_inset space \thinspace{}
21210 <cell alignment="center" valignment="top" usebox="none">
21213 \begin_layout Plain Layout
21215 \begin_inset Formula $33.5\cdot$
21223 <cell alignment="center" valignment="top" rightline="true" usebox="none">
21226 \begin_layout Plain Layout
21227 \begin_inset Formula $10^{4}$
21235 <cell alignment="center" valignment="top" usebox="none">
21238 \begin_layout Plain Layout
21239 \begin_inset Formula $\sin(\alpha)\ge$
21247 <cell alignment="center" valignment="top" usebox="none">
21250 \begin_layout Plain Layout
21251 \begin_inset Formula $\:\sin(\beta)$
21272 \begin_layout Subsection
21273 Customized Cell/Column Format
21274 \begin_inset CommandInset label
21276 name "subsec:Customized-Format"
21281 \begin_inset Index idx
21284 \begin_layout Plain Layout
21285 Table Customization ! Cell/Column Format
21293 \begin_layout Standard
21294 Calculating the required width for normal columns as described in section
21295 \begin_inset space ~
21299 \begin_inset CommandInset ref
21301 reference "sec:Table-Width-Calculation"
21305 or for spanned columns as described in section
21306 \begin_inset space ~
21310 \begin_inset CommandInset ref
21312 reference "subsec:Multicolumn-Calculations"
21316 is very annoying if you have several tables where a calculation is necessary.
21317 To make life easier, you can define a cell/column format in the preamble,
21318 that can be used in all tables of the document.
21319 The format is defined with the command
21322 \begin_layout Standard
21327 newcolumntype{name of format}[number of arguments]{commands}
21330 \begin_layout Standard
21331 The format name may only consist of one letter.
21356 are predefined and cannot be used.
21357 But all letters are allowed as capitals.
21360 \begin_layout Standard
21361 \begin_inset VSpace medskip
21367 \begin_layout Standard
21368 For vertically and horizontally centered multicolumn cells with a fixed
21369 width you can define the cell format
21372 \begin_layout Standard
21377 newcolumntype{M}[1]{>{
21384 \begin_layout Standard
21391 avoids the problem of hyphenating the first word, as described in section
21392 \begin_inset space ~
21396 \begin_inset CommandInset ref
21398 reference "subsec:Multiple-Lines-in"
21403 Now you can simply enter
21406 \begin_layout Standard
21412 \begin_layout Standard
21418 in the table dialog to create a multicolumn.
21421 \begin_layout Standard
21422 \begin_inset VSpace bigskip
21428 \begin_layout Standard
21429 For cells spanned by a multicolumn cell, you can define the format
21432 \begin_layout Standard
21437 newcolumntype{S}[2]{>{
21442 \begin_inset Newline newline
21446 \begin_inset Phantom HPhantom
21449 \begin_layout Plain Layout
21463 arrayrulewidth)*(1-#2))/#2}}
21466 \begin_layout Standard
21467 This format uses equation
21468 \begin_inset CommandInset ref
21474 to calculate the required width so that each spanned cell has the same
21478 \begin_layout Standard
21482 \begin_layout Standard
21485 S{width of multicolumn cell}{number of spanned columns}
21488 \begin_layout Standard
21489 as \SpecialChar LaTeX
21490 -argument of the column.
21493 \begin_layout Standard
21494 \begin_inset VSpace bigskip
21500 \begin_layout Standard
21501 For colored columns, you can define
21504 \begin_layout Standard
21509 newcolumntype{K}[1]{>{
21516 \begin_layout Standard
21518 \begin_inset Quotes eld
21522 \begin_inset Quotes erd
21525 at the end creates a column with a flexible width whose text is horizontally
21530 \begin_layout Standard
21536 \begin_layout Standard
21537 as \SpecialChar LaTeX
21541 \begin_layout Standard
21542 \begin_inset VSpace bigskip
21548 \begin_layout Standard
21550 \begin_inset space ~
21554 \begin_inset CommandInset ref
21556 reference "tab:Table-using-user-defined"
21560 use the \SpecialChar LaTeX
21564 \begin_layout Standard
21570 \begin_layout Standard
21571 for the first column and the multicolumn,
21574 \begin_layout Standard
21580 \begin_layout Standard
21581 for the last column, and
21584 \begin_layout Standard
21590 \begin_layout Standard
21591 for the cells in the second column.
21594 \begin_layout Standard
21595 \begin_inset Float table
21601 \begin_layout Plain Layout
21602 \begin_inset Caption Standard
21604 \begin_layout Plain Layout
21605 \begin_inset CommandInset label
21607 name "tab:Table-using-user-defined"
21611 Table using user-defined table formats
21619 \begin_layout Plain Layout
21621 \begin_inset Tabular
21622 <lyxtabular version="3" rows="3" columns="4">
21623 <features tabularvalignment="middle">
21624 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
21625 <column alignment="center" valignment="middle" special="S{2.5cm}{2}">
21626 <column alignment="center" valignment="middle">
21627 <column alignment="center" valignment="middle" special="K{red}">
21629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21632 \begin_layout Plain Layout
21633 verylongtablecellword
21638 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
21641 \begin_layout Plain Layout
21642 multiple lines multicolumn
21647 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21650 \begin_layout Plain Layout
21656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21659 \begin_layout Plain Layout
21667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21670 \begin_layout Plain Layout
21676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21679 \begin_layout Plain Layout
21685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21688 \begin_layout Plain Layout
21694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21697 \begin_layout Plain Layout
21705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21708 \begin_layout Plain Layout
21714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21717 \begin_layout Plain Layout
21723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21726 \begin_layout Plain Layout
21732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21735 \begin_layout Plain Layout
21754 \begin_layout Subsection
21756 \begin_inset CommandInset label
21758 name "subsec:Line-Thickness"
21763 \begin_inset Index idx
21766 \begin_layout Plain Layout
21767 Table Customization ! Line Thickness
21775 \begin_layout Standard
21776 The line thickness for all lines in a table can be adjusted with the length
21784 To set for example a line thickness of 1.5
21785 \begin_inset space \thinspace{}
21789 \begin_inset space ~
21793 \begin_inset CommandInset ref
21795 reference "tab:Table-with-1.5"
21799 , insert the command
21802 \begin_layout Standard
21809 arrayrulewidth}{1.5pt}
21812 \begin_layout Standard
21813 in \SpecialChar TeX
21814 Code before the table or table float.
21815 The changed thickness is valid for all subsequent tables.
21816 To use the default value again, set
21823 \begin_inset space \thinspace{}
21826 pt in \SpecialChar TeX
21827 Code after the table or table float.
21830 \begin_layout Standard
21834 \begin_layout Plain Layout
21840 arrayrulewidth}{1.5pt}
21846 \begin_inset Float table
21851 \begin_layout Plain Layout
21852 \begin_inset Caption Standard
21854 \begin_layout Plain Layout
21855 \begin_inset CommandInset label
21857 name "tab:Table-with-1.5"
21862 \begin_inset space \thinspace{}
21873 \begin_layout Plain Layout
21875 \begin_inset Tabular
21876 <lyxtabular version="3" rows="3" columns="3">
21877 <features tabularvalignment="middle">
21878 <column alignment="center" valignment="top">
21879 <column alignment="center" valignment="top">
21880 <column alignment="center" valignment="top">
21882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21885 \begin_layout Plain Layout
21891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21894 \begin_layout Plain Layout
21900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21903 \begin_layout Plain Layout
21911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21914 \begin_layout Plain Layout
21920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21923 \begin_layout Plain Layout
21929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21932 \begin_layout Plain Layout
21940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21943 \begin_layout Plain Layout
21949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21952 \begin_layout Plain Layout
21958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21961 \begin_layout Plain Layout
21981 \begin_layout Plain Layout
21987 arrayrulewidth}{0.4pt}
21995 \begin_layout Standard
21996 \begin_inset VSpace bigskip
21999 To set the line thickness to 1.5
22000 \begin_inset space \thinspace{}
22003 pt only for horizontal lines, as in Table
22004 \begin_inset space ~
22008 \begin_inset CommandInset ref
22010 reference "tab:Table-with-horizontal"
22014 , insert these commands in \SpecialChar TeX
22015 Code before the table or table float:
22018 \begin_layout Standard
22028 \begin_inset Newline newline
22036 \begin_inset Newline newline
22045 arrayrulewidth 1.5pt}
22046 \begin_inset Newline newline
22057 arrayrulewidth 0.4pt}}
22060 \begin_layout Standard
22061 To return to the default line thickness, insert this command in \SpecialChar TeX
22063 the table or table float:
22066 \begin_layout Standard
22078 \begin_layout Standard
22082 \begin_layout Plain Layout
22093 \begin_layout Plain Layout
22102 \begin_layout Plain Layout
22110 arrayrulewidth 1.5pt}
22113 \begin_layout Plain Layout
22123 arrayrulewidth 0.4pt}}
22129 \begin_inset Float table
22134 \begin_layout Plain Layout
22135 \begin_inset Caption Standard
22137 \begin_layout Plain Layout
22138 \begin_inset CommandInset label
22140 name "tab:Table-with-horizontal"
22145 \begin_inset space \thinspace{}
22148 pt thick horizontal lines
22156 \begin_layout Plain Layout
22158 \begin_inset Tabular
22159 <lyxtabular version="3" rows="3" columns="3">
22160 <features tabularvalignment="middle">
22161 <column alignment="center" valignment="top">
22162 <column alignment="center" valignment="top">
22163 <column alignment="center" valignment="top">
22165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22168 \begin_layout Plain Layout
22174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22177 \begin_layout Plain Layout
22183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22186 \begin_layout Plain Layout
22194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22197 \begin_layout Plain Layout
22203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22206 \begin_layout Plain Layout
22212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22215 \begin_layout Plain Layout
22223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22226 \begin_layout Plain Layout
22232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22235 \begin_layout Plain Layout
22241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22244 \begin_layout Plain Layout
22264 \begin_layout Plain Layout
22280 \begin_layout Standard
22281 \begin_inset VSpace bigskip
22284 To set the line thickness to 1.5
22285 \begin_inset space \thinspace{}
22288 pt only for vertical lines, create the following column format in the document
22289 preamble, according to the description in section
22290 \begin_inset space ~
22294 \begin_inset CommandInset ref
22296 reference "subsec:Customized-Format"
22303 \begin_layout Standard
22308 newcolumntype{V}{!{
22310 vrule width 1.5pt}}
22313 \begin_layout Standard
22315 \begin_inset space ~
22319 \begin_inset CommandInset ref
22321 reference "tab:Table-with-vertical"
22325 the \SpecialChar LaTeX
22329 \begin_layout Standard
22335 \begin_layout Standard
22336 was used for the last column and
22339 \begin_layout Standard
22345 \begin_layout Standard
22346 for the other columns.
22349 \begin_layout Standard
22350 \begin_inset Float table
22355 \begin_layout Plain Layout
22356 \begin_inset Caption Standard
22358 \begin_layout Plain Layout
22359 \begin_inset CommandInset label
22361 name "tab:Table-with-vertical"
22366 \begin_inset space \thinspace{}
22369 pt thick vertical lines
22377 \begin_layout Plain Layout
22379 \begin_inset Tabular
22380 <lyxtabular version="3" rows="3" columns="3">
22381 <features tabularvalignment="middle">
22382 <column alignment="center" valignment="top" special="Vc">
22383 <column alignment="center" valignment="top" special="Vc">
22384 <column alignment="center" valignment="top" special="VcV">
22386 <cell alignment="center" valignment="top" topline="true" usebox="none">
22389 \begin_layout Plain Layout
22395 <cell alignment="center" valignment="top" topline="true" usebox="none">
22398 \begin_layout Plain Layout
22404 <cell alignment="center" valignment="top" topline="true" usebox="none">
22407 \begin_layout Plain Layout
22415 <cell alignment="center" valignment="top" topline="true" usebox="none">
22418 \begin_layout Plain Layout
22424 <cell alignment="center" valignment="top" topline="true" usebox="none">
22427 \begin_layout Plain Layout
22433 <cell alignment="center" valignment="top" topline="true" usebox="none">
22436 \begin_layout Plain Layout
22444 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22447 \begin_layout Plain Layout
22453 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22456 \begin_layout Plain Layout
22462 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22465 \begin_layout Plain Layout
22484 \begin_layout Subsection
22486 \begin_inset Index idx
22489 \begin_layout Plain Layout
22490 Table Customization ! Dashed Lines
22498 \begin_layout Standard
22502 \begin_layout Plain Layout
22512 \begin_inset Note Note
22515 \begin_layout Plain Layout
22516 The following section will only be displayed when the \SpecialChar LaTeX
22529 \begin_layout Standard
22530 \begin_inset Float table
22536 \begin_layout Plain Layout
22537 \begin_inset Caption Standard
22539 \begin_layout Plain Layout
22540 \begin_inset CommandInset label
22542 name "tab:Table-with-dashed"
22546 Table with dashed lines
22554 \begin_layout Plain Layout
22556 \begin_inset Tabular
22557 <lyxtabular version="3" rows="5" columns="5">
22558 <features tabularvalignment="middle">
22559 <column alignment="center" valignment="top">
22560 <column alignment="center" valignment="top">
22561 <column alignment="center" valignment="top" special=":c">
22562 <column alignment="center" valignment="top">
22563 <column alignment="center" valignment="top">
22565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22568 \begin_layout Plain Layout
22574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22577 \begin_layout Plain Layout
22583 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22586 \begin_layout Plain Layout
22592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22595 \begin_layout Plain Layout
22601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22604 \begin_layout Plain Layout
22612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22615 \begin_layout Plain Layout
22621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22624 \begin_layout Plain Layout
22630 <cell alignment="center" valignment="top" topline="true" usebox="none">
22633 \begin_layout Plain Layout
22639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22642 \begin_layout Plain Layout
22648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22651 \begin_layout Plain Layout
22659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22662 \begin_layout Plain Layout
22666 \begin_layout Plain Layout
22680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22683 \begin_layout Plain Layout
22689 <cell alignment="center" valignment="top" usebox="none">
22692 \begin_layout Plain Layout
22698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
22701 \begin_layout Plain Layout
22707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22710 \begin_layout Plain Layout
22718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22721 \begin_layout Plain Layout
22725 \begin_layout Plain Layout
22739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22742 \begin_layout Plain Layout
22748 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
22751 \begin_layout Plain Layout
22757 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
22760 \begin_layout Plain Layout
22766 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22769 \begin_layout Plain Layout
22777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22780 \begin_layout Plain Layout
22786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22789 \begin_layout Plain Layout
22795 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
22798 \begin_layout Plain Layout
22804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22807 \begin_layout Plain Layout
22813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22816 \begin_layout Plain Layout
22835 \begin_layout Standard
22837 does not natively support dashed lines, so you have to use \SpecialChar TeX
22839 As a prerequisite the \SpecialChar LaTeX
22845 \begin_inset Index idx
22848 \begin_layout Plain Layout
22850 -packages ! arydshln
22855 must be loaded in the document preamble with the command
22858 \begin_layout Standard
22863 usepackage{arydshln}
22866 \begin_layout Standard
22867 To make a vertical line dashed, enter the colon
22868 \begin_inset Quotes eld
22872 \begin_inset Quotes erd
22875 together with the character for the horizontal alignment as \SpecialChar LaTeX
22877 the table cell dialog.
22880 \begin_layout Standard
22881 For a horizontal dashed line add the command
22884 \begin_layout Standard
22892 \begin_layout Standard
22893 in \SpecialChar TeX
22894 Code as first element of the first cell in the table row.
22897 \begin_layout Standard
22898 For dashed multicolumn lines use the command
22901 \begin_layout Standard
22906 cdashline{line number
22911 \begin_layout Standard
22912 in \SpecialChar TeX
22913 Code as the first element of the first cell in the table row.
22914 If you have for example a multicolumn spanning columns 2 to 4 and you want
22915 to have a dashed line above, add the command
22918 \begin_layout Standard
22926 \begin_layout Standard
22927 as the first element of the first cell in the row of the multicolumn.
22930 \begin_layout Standard
22931 \begin_inset VSpace bigskip
22937 \begin_layout Standard
22939 \begin_inset space ~
22943 \begin_inset CommandInset ref
22945 reference "tab:Table-with-dashed"
22950 \begin_inset Quotes eld
22958 \begin_inset Quotes erd
22961 as \SpecialChar LaTeX
22962 argument of the third column.
22963 The \SpecialChar TeX
22970 was inserted in the first cell of the third row and the \SpecialChar TeX
22972 \begin_inset Newline newline
22981 was inserted in the first cell of the fourth row.
22984 \begin_layout Standard
22985 \begin_inset VSpace bigskip
22991 \begin_layout Standard
22992 Tables with dashed lines can also be colored as shown by Table
22993 \begin_inset space ~
22997 \begin_inset CommandInset ref
22999 reference "tab:Colored-table-with"
23006 \begin_layout Standard
23010 \begin_layout Plain Layout
23016 arrayrulewidth}{1pt}
23022 \begin_inset Note Note
23025 \begin_layout Plain Layout
23026 thicker lines for better visualization of the line color
23034 \begin_layout Standard
23038 \begin_layout Plain Layout
23042 dashgapcolor{green}
23048 \begin_inset Note Note
23051 \begin_layout Plain Layout
23052 color gaps between dashes green
23060 \begin_layout Standard
23064 \begin_layout Plain Layout
23075 \begin_layout Plain Layout
23084 \begin_layout Plain Layout
23088 arrayrulecolor{red}
23092 arrayrulecolor{black}}
23098 \begin_inset Note Note
23101 \begin_layout Plain Layout
23102 color horizontal, dashed lines red
23110 \begin_layout Standard
23114 \begin_layout Plain Layout
23125 \begin_layout Plain Layout
23134 \begin_layout Plain Layout
23138 arrayrulecolor{yellow}
23142 arrayrulecolor{black}}
23148 \begin_inset Note Note
23151 \begin_layout Plain Layout
23152 color partial horizontal, dashed lines yellow
23160 \begin_layout Standard
23161 \begin_inset Float table
23167 \begin_layout Plain Layout
23168 \begin_inset Caption Standard
23170 \begin_layout Plain Layout
23171 \begin_inset CommandInset label
23173 name "tab:Colored-table-with"
23177 Colored table with dashed lines
23185 \begin_layout Plain Layout
23187 \begin_inset Tabular
23188 <lyxtabular version="3" rows="5" columns="5">
23189 <features tabularvalignment="middle">
23190 <column alignment="center" valignment="top" width="0pt" special=">{\columncolor{darkgreen}\centering}c">
23191 <column alignment="center" valignment="top" width="0pt">
23192 <column alignment="center" valignment="top" width="0pt" special=":c">
23193 <column alignment="center" valignment="top">
23194 <column alignment="center" valignment="top">
23196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23199 \begin_layout Plain Layout
23205 <cell alignment="center" valignment="top" topline="true" usebox="none">
23208 \begin_layout Plain Layout
23214 <cell alignment="center" valignment="top" topline="true" usebox="none">
23217 \begin_layout Plain Layout
23223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23226 \begin_layout Plain Layout
23232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23235 \begin_layout Plain Layout
23243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23246 \begin_layout Plain Layout
23252 <cell alignment="center" valignment="top" topline="true" usebox="none">
23255 \begin_layout Plain Layout
23261 <cell alignment="center" valignment="top" topline="true" usebox="none">
23264 \begin_layout Plain Layout
23270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23273 \begin_layout Plain Layout
23279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23282 \begin_layout Plain Layout
23290 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23293 \begin_layout Plain Layout
23297 \begin_layout Plain Layout
23310 \begin_layout Plain Layout
23324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23327 \begin_layout Plain Layout
23333 <cell alignment="center" valignment="top" usebox="none">
23336 \begin_layout Plain Layout
23342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
23345 \begin_layout Plain Layout
23351 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23354 \begin_layout Plain Layout
23362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23365 \begin_layout Plain Layout
23369 \begin_layout Plain Layout
23383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23386 \begin_layout Plain Layout
23392 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
23395 \begin_layout Plain Layout
23401 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
23404 \begin_layout Plain Layout
23410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23413 \begin_layout Plain Layout
23421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23424 \begin_layout Plain Layout
23430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23433 \begin_layout Plain Layout
23439 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
23442 \begin_layout Plain Layout
23448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23451 \begin_layout Plain Layout
23457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23460 \begin_layout Plain Layout
23464 \begin_layout Plain Layout
23491 \begin_layout Standard
23495 \begin_layout Plain Layout
23509 \begin_inset Note Note
23512 \begin_layout Plain Layout
23521 \begin_layout Standard
23525 \begin_layout Plain Layout
23539 \begin_inset Note Note
23542 \begin_layout Plain Layout
23551 \begin_layout Standard
23555 \begin_layout Plain Layout
23565 \begin_inset Note Note
23568 \begin_layout Plain Layout
23577 \begin_layout Standard
23581 \begin_layout Plain Layout
23587 arrayrulewidth}{0.4pt}
23593 \begin_inset Note Note
23596 \begin_layout Plain Layout
23605 \begin_layout Standard
23606 The coloring of lines, columns and lines works as decribed in section
23607 \begin_inset space ~
23611 \begin_inset CommandInset ref
23613 reference "sec:Colored-Tables"
23618 Coloring horizontal lines works analogically as described there as well,
23619 one only needs to replace in the commands
23643 ; so one uses the command
23646 \begin_layout Standard
23656 \begin_inset Newline newline
23664 \begin_inset Newline newline
23668 \begin_inset Phantom HPhantom
23671 \begin_layout Plain Layout
23672 \begin_inset space ~
23682 arrayrulecolor{red}
23686 arrayrulecolor{black}}
23689 \begin_layout Standard
23699 \begin_layout Standard
23709 \begin_inset Newline newline
23717 \begin_inset Newline newline
23721 \begin_inset Phantom HPhantom
23724 \begin_layout Plain Layout
23725 \begin_inset space ~
23735 arrayrulecolor{red}
23739 arrayrulecolor{black}}
23742 \begin_layout Standard
23743 To get back the black line color, one needs to insert the following commands
23744 as \SpecialChar TeX
23745 Code behind the table:
23748 \begin_layout Standard
23756 \begin_layout Standard
23768 \begin_layout Standard
23776 \begin_layout Standard
23788 \begin_layout Standard
23789 To color the gaps between the dashes the command
23792 \begin_layout Standard
23797 dashgapcolor{color}
23800 \begin_layout Standard
23801 can be used in front of a table as \SpecialChar TeX
23803 color is hereby the name of a defined color.
23807 \begin_layout Standard
23815 \begin_layout Standard
23816 unsets the changes made by
23825 \begin_layout Standard
23826 \begin_inset Note Greyedout
23829 \begin_layout Plain Layout
23835 : If there are multiple commands in a cell, the command of
23839 needs to be the first one in the cell.
23845 \begin_inset space ~
23849 \begin_inset CommandInset ref
23851 reference "tab:Colored-table-with"
23875 \begin_layout Standard
23876 \begin_inset Note Greyedout
23879 \begin_layout Plain Layout
23885 The \SpecialChar LaTeX
23890 must be loaded in the document preamble before the \SpecialChar LaTeX
23896 \begin_inset Index idx
23899 \begin_layout Plain Layout
23901 -packages ! colortbl
23914 \begin_layout Standard
23918 \begin_layout Plain Layout
23928 \begin_inset Note Note
23931 \begin_layout Plain Layout
23932 The following will be displayed when the \SpecialChar LaTeX
23945 \begin_layout Standard
23946 You need to install the package
23950 to see the content of this section in the output.
23953 \begin_layout Standard
23957 \begin_layout Plain Layout
23969 \begin_layout Standard
23970 For more information about dashed lines see the documentation of
23975 \begin_inset CommandInset citation
23984 \begin_layout Chapter
23986 \begin_inset CommandInset label
23993 \begin_inset Index idx
23996 \begin_layout Plain Layout
24005 \begin_layout Section
24007 \begin_inset CommandInset label
24009 name "sec:FloatIntroduction"
24014 \begin_inset Index idx
24017 \begin_layout Plain Layout
24018 Floats ! Introduction
24026 \begin_layout Standard
24027 A float is a block of text associated with some sort of label, which doesn't
24028 have a fixed location.
24030 \begin_inset Quotes eld
24034 \begin_inset Quotes erd
24037 forward or backward a page or two, to wherever it fits best.
24045 \begin_inset space ~
24050 are also floats because they can float to the next page when there are
24051 too many notes on the page.
24054 \begin_layout Standard
24055 Floats allow a high quality layout.
24056 Images and tables can be spread evenly among the pages to avoid white space
24057 and pages without text.
24058 As the floating often destroys the context between the text and the image/table
24059 , every float can be referenced in the text.
24060 Floats are therefore numbered.
24061 Referencing is described in section
24062 \begin_inset space ~
24066 \begin_inset CommandInset ref
24068 reference "sec:Referencing-Floats"
24075 \begin_layout Standard
24076 To insert a float, use the menu
24078 Insert\SpecialChar menuseparator
24084 arg "float-insert figure"
24090 arg "float-insert table"
24098 inset, a box with a label.
24099 The label will automatically be translated to the document language in
24101 After the label you can insert the caption text.
24102 The image or table is inserted above or below the caption in a separate
24103 paragraph within the float.
24104 More about the caption placement is contained in section
24105 \begin_inset space ~
24109 \begin_inset CommandInset ref
24111 reference "sec:Caption-Placement"
24116 To keep your \SpecialChar LyX
24117 document readable, you can open and close the float box by
24118 left-clicking on the box label.
24119 A closed float box looks like this:
24120 \begin_inset Graphics
24121 filename clipart/float.png
24123 scaleBeforeRotation
24127 – a gray button with a red label.
24130 \begin_layout Standard
24131 It is recommended that you insert floats as separate standard paragraphs
24132 to avoid possible \SpecialChar LaTeX
24133 -errors that can occur when the surrounding text is specially
24137 \begin_layout Standard
24138 Existing figures or tables can be put into a float by highlighting them
24139 and then pressing the corresponding toolbar button for a new float.
24142 \begin_layout Section
24146 \begin_layout Standard
24147 Besides figure and table floats that are described in sections
24148 \begin_inset space ~
24152 \begin_inset CommandInset ref
24154 reference "sec:Figure-Floats"
24159 \begin_inset CommandInset ref
24161 reference "sec:Table-Floats"
24165 respectively, \SpecialChar LyX
24166 offers the float types
24175 The latter are explained in sec.
24176 \begin_inset space \thinspace{}
24180 \begin_inset CommandInset ref
24182 reference "sec:Wrap-Floats"
24189 \begin_layout Subsection
24191 \begin_inset Index idx
24194 \begin_layout Plain Layout
24195 Floats ! Algorithms
24203 \begin_layout Standard
24204 \begin_inset Float algorithm
24210 \begin_layout Plain Layout
24211 \begin_inset Caption Standard
24213 \begin_layout Plain Layout
24214 \begin_inset CommandInset label
24216 name "alg:Example-Algorithm-float"
24220 Example Algorithm float
24228 \begin_layout LyX-Code
24230 \begin_inset Newline newline
24233 Sum:= Sum + A(I); /*comment*/
24234 \begin_inset Newline newline
24238 \begin_inset VSpace -4mm
24249 \begin_layout Standard
24250 This float type is inserted with the menu
24252 Insert\SpecialChar menuseparator
24253 Float\SpecialChar menuseparator
24257 It is used for program codes and descriptions of algorithms and can be
24258 seen as an alternative to program code listings that are explained in chapter
24259 \begin_inset space ~
24263 \begin_inset CommandInset ref
24265 reference "cha:Program-Code-Listings"
24270 A possible environment for algorithms is the
24275 , described in \SpecialChar LyX
24282 \begin_inset space ~
24286 \begin_inset CommandInset ref
24288 reference "alg:Example-Algorithm-float"
24292 is an example of an algorithm float where -4
24293 \begin_inset space \thinspace{}
24296 mm vertical space was added at the end of the float to have the bottom rule
24297 exactly below the last text line.
24300 \begin_layout Standard
24301 The float label is not automatically translated into the document language.
24302 If your document is not in English, you have to do this manually by adding
24303 the following line to the document preamble
24308 \begin_layout Standard
24313 floatname{algorithm}{your
24314 \begin_inset space ~
24320 \begin_layout Standard
24324 \begin_inset space ~
24330 \begin_inset Quotes eld
24338 \begin_inset Quotes erd
24344 \begin_layout Standard
24345 To insert the list of algorithms you can use the menu
24347 Insert\SpecialChar menuseparator
24349 \begin_inset space \thinspace{}
24353 \begin_inset space \thinspace{}
24356 TOC\SpecialChar menuseparator
24359 when your document has the same language as \SpecialChar LyX
24361 In other cases use this command in \SpecialChar TeX
24365 \begin_layout Standard
24370 listof{algorithm}{your
24371 \begin_inset space ~
24377 \begin_layout Standard
24381 \begin_inset space ~
24387 \begin_inset Quotes eld
24395 \begin_inset Quotes erd
24401 \begin_layout Standard
24402 Algorithm floats are not by default numbered in the scheme
24403 \begin_inset Quotes eld
24407 \begin_inset Quotes erd
24410 as is the case for table and figure floats in many document-classes.
24411 To number algorithm floats in the same scheme, add this command to your
24415 \begin_layout Standard
24420 numberwithin{algorithm}{chapter}
24423 \begin_layout Standard
24424 To be able to use the command
24433 \begin_inset space ~
24438 in the document settings the option
24441 \begin_inset space ~
24445 \begin_inset space ~
24449 \begin_inset space ~
24457 \begin_layout Section
24459 \begin_inset Index idx
24462 \begin_layout Plain Layout
24471 \begin_layout Standard
24472 Floats are usually numbered either independently from the sections the floats
24473 are in, or in the scheme
24474 \begin_inset Quotes eld
24478 \begin_inset Quotes erd
24482 \begin_inset Quotes eld
24486 \begin_inset Quotes erd
24490 This depends on the document class used.
24493 \begin_layout Standard
24494 To change section-independent numbering, you can use this command in the
24498 \begin_layout Standard
24510 \begin_layout Standard
24517 is the command that prints the table number.
24518 For figure floats, the command would be
24531 in the command above prints the table number as a small roman number.
24534 \begin_layout Standard
24535 To change the numbering scheme for example to
24536 \begin_inset Quotes eld
24540 \begin_inset Quotes erd
24543 , use this command in the preamble:
24546 \begin_layout Standard
24551 numberwithin{table}{subsection}
24554 \begin_layout Standard
24555 To be able to use the command
24564 \begin_inset space ~
24569 in the document settings the option
24572 \begin_inset space ~
24576 \begin_inset space ~
24580 \begin_inset space ~
24588 \begin_layout Standard
24589 Please also have a look at section
24590 \begin_inset space ~
24594 \begin_inset CommandInset ref
24596 reference "subsec:Footnote-Numbering"
24600 for the details and important notes about the numbering commands.
24603 \begin_layout Section
24605 \begin_inset CommandInset label
24607 name "sec:Referencing-Floats"
24612 \begin_inset Index idx
24615 \begin_layout Plain Layout
24616 Floats ! References
24622 \begin_inset Index idx
24625 \begin_layout Plain Layout
24626 References ! to Floats
24634 \begin_layout Standard
24635 To reference a float, insert a label into its caption using the menu
24637 Insert\SpecialChar menuseparator
24640 or the toolbar button
24647 A grey label box like this one:
24648 \begin_inset Graphics
24649 filename clipart/label.png
24650 scaleBeforeRotation
24654 will be inserted and the label window pops up asking for the label text.
24656 offers as text the first words of the caption with a prefix.
24657 The prefix depends on the float type, e.
24658 \begin_inset space \thinspace{}
24662 \begin_inset space \space{}
24665 for figure floats the prefix will be "
24672 \begin_layout Standard
24673 The label is used as anchor and name for the reference.
24674 You can refer to the label using the menu
24676 Insert\SpecialChar menuseparator
24679 or the toolbar button
24682 arg "dialog-show-new-inset ref"
24686 The cross-reference window appears showing all labels of the document.
24687 If you have multiple \SpecialChar LyX
24688 documents opened, choose the one you are working
24689 on from the drop-list at the top of the dialog.
24690 You can now sort the labels alphabetically and then choose one.
24691 A grey cross-reference box like this one:
24692 \begin_inset Graphics
24693 filename clipart/reference.png
24694 scaleBeforeRotation
24699 At the position of the cross-reference box the float number will appear
24703 \begin_layout Standard
24704 It is recommended that you use a protected space between the cross-reference
24705 name and its number to avoid line breaks between them.
24706 If a cross-reference refers to a non-existing label, you will see two question
24707 marks in the output instead of the reference.
24710 \begin_layout Standard
24711 You can change labels at any time by clicking on the label box.
24712 References to the changed label will automatically update their links to
24713 the new label text.
24716 \begin_layout Standard
24720 \begin_inset space ~
24724 \begin_inset space ~
24729 in the cross-reference window sets the cursor before the referred label.
24730 The button text changes then to Go
24731 \begin_inset space ~
24734 Back and you can use it to set the cursor back to the cross-reference.
24737 \begin_layout Subsection
24738 Cross-Reference Formats
24739 \begin_inset CommandInset label
24741 name "subsec:Cross-Reference-Formats"
24746 \begin_inset Index idx
24749 \begin_layout Plain Layout
24750 References ! Formats
24758 \begin_layout Standard
24759 There are six varieties of cross-references:
24762 \begin_layout Description
24763 <reference>: prints the float number, this is the default:
24764 \begin_inset CommandInset ref
24766 reference "fig:Two-distorted-images"
24773 \begin_layout Description
24774 (<reference>): prints the float number within two parentheses, this is the
24775 style normally used to reference formulas, especially when the reference
24777 \begin_inset Quotes eld
24781 \begin_inset Quotes erd
24785 \begin_inset CommandInset ref
24794 \begin_layout Description
24795 <page>: prints the page number: Page
24796 \begin_inset space ~
24800 \begin_inset CommandInset ref
24801 LatexCommand pageref
24802 reference "fig:Two-distorted-images"
24809 \begin_layout Description
24811 \begin_inset space ~
24815 \begin_inset space ~
24818 <page>: prints the text "on page" and the page number:
24819 \begin_inset CommandInset ref
24820 LatexCommand vpageref
24821 reference "fig:Two-distorted-images"
24828 \begin_layout Description
24830 \begin_inset space ~
24834 \begin_inset space ~
24838 \begin_inset space ~
24841 <page>: prints the float number, the text "on page", and the page number:
24843 \begin_inset CommandInset ref
24845 reference "fig:Two-distorted-images"
24852 \begin_layout Description
24854 \begin_inset space ~
24857 reference: prints a self-defined cross-reference format.
24858 \begin_inset Newline newline
24862 \begin_inset Note Greyedout
24865 \begin_layout Plain Layout
24870 This feature is only available when you have the \SpecialChar LaTeX
24880 \begin_inset Index idx
24883 \begin_layout Plain Layout
24885 -packages ! prettyref
24891 \begin_inset Index idx
24894 \begin_layout Plain Layout
24896 -packages ! refstyle
24907 \begin_inset Newline newline
24910 You can select which \SpecialChar LaTeX
24911 -package should be used for this feature by setting
24914 Use refstyle (not prettyref) for cross-references
24918 Document\SpecialChar menuseparator
24919 Settings\SpecialChar menuseparator
24923 The format is specified by adding the command
24935 (refstyle) to the preamble of the document.
24936 For example redefining all references to figures (which have the label
24938 \begin_inset Quotes eld
24946 \begin_inset Quotes erd
24949 ) can be done with this command
24950 \begin_inset Newline newline
24957 newref{fig}{refcmd={Image on page
24962 \begin_inset Newline newline
24965 For more information about the format, have a look at the package documentations
24967 \begin_inset CommandInset citation
24969 key "prettyref,refstyle"
24976 \begin_layout Description
24978 \begin_inset space ~
24981 reference: prints the caption of the reference:
24982 \begin_inset CommandInset ref
24983 LatexCommand nameref
24984 reference "fig:Two-distorted-images"
24991 \begin_layout Standard
24996 will not print the page number if the label is on the previous, the same,
24999 \begin_inset space \thinspace{}
25003 \begin_inset space \space{}
25007 \begin_inset Quotes eld
25015 \begin_inset Quotes erd
25021 <reference> on page <page>
25023 will not print anything about the page if the label is on the same page.
25026 \begin_layout Standard
25027 The number and current page of the part of the document referred to in the
25028 output is automatically calculated by \SpecialChar LaTeX
25030 The varieties are adjusted in the field
25034 of the cross-reference window that appears when you click on the cross-referenc
25038 \begin_layout Standard
25039 \begin_inset Note Greyedout
25042 \begin_layout Plain Layout
25047 It is recommended to use the \SpecialChar LaTeX
25053 \begin_inset Index idx
25056 \begin_layout Plain Layout
25058 -packages ! refstyle
25068 \begin_inset Index idx
25071 \begin_layout Plain Layout
25073 -packages ! prettyref
25078 does not know all of \SpecialChar LyX
25079 's possible label shortcuts
25083 \begin_layout Plain Layout
25084 \begin_inset Quotes eld
25088 \begin_inset Quotes erd
25091 is for example \SpecialChar LyX
25092 's shortcut for labels in figure captions.
25097 and is not internationalized.
25105 \begin_layout Subsection
25106 Automatic Reference Naming
25107 \begin_inset Index idx
25110 \begin_layout Plain Layout
25111 References ! Automatic Reference Naming
25119 \begin_layout Standard
25120 The \SpecialChar LaTeX
25126 \begin_inset Index idx
25129 \begin_layout Plain Layout
25131 -packages ! hyperref
25136 , that is enabled in the
25144 dialog, provides a very useful feature that cross-references automatically
25145 include the name of the referenced floats (or text parts like
25150 So you will save having to write e.
25151 \begin_inset space \thinspace{}
25155 \begin_inset space \space{}
25159 \begin_inset Quotes eld
25163 \begin_inset Quotes erd
25166 before every reference to a figure.
25167 To use this feature, enable
25171 and insert this line to the \SpecialChar LaTeX
25175 \begin_layout Standard
25191 \begin_layout Standard
25192 When you prefer other reference names than the default ones, for example
25193 you want instead of
25194 \begin_inset Quotes eld
25198 \begin_inset Quotes erd
25202 \begin_inset Quotes eld
25206 \begin_inset space \thinspace{}
25210 \begin_inset Quotes eld
25213 , you can redefine the name by inserting this in the preamble:
25216 \begin_layout Standard
25227 sectionautorefname}
25228 \begin_inset Newline newline
25232 \begin_inset Phantom HPhantom
25235 \begin_layout Plain Layout
25238 \begin_inset space ~
25251 \begin_layout Standard
25252 When you are using another document language than English, replace
25253 \begin_inset Newline newline
25268 , where *** is the name of the language used.
25271 \begin_layout Standard
25272 To get automatic names, but not for certain reference types, for example
25273 not for equations, use this preamble code:
25276 \begin_layout Standard
25287 equationautorefname}[1]{}}
25290 \begin_layout Standard
25291 More about this topic can be found in
25296 \begin_inset CommandInset citation
25305 \begin_layout Standard
25306 \begin_inset Note Greyedout
25309 \begin_layout Plain Layout
25314 Automatic reference naming cannot be used when you use cross-references
25318 \begin_inset space ~
25323 style, as described in section
25324 \begin_inset space ~
25328 \begin_inset CommandInset ref
25330 reference "subsec:Cross-Reference-Formats"
25342 \begin_layout Standard
25347 manual is an example where automatic reference naming is used.
25350 \begin_layout Subsection
25352 \begin_inset CommandInset label
25354 name "subsec:Reference-Position"
25359 \begin_inset Index idx
25362 \begin_layout Plain Layout
25363 References ! Reference Position
25371 \begin_layout Standard
25377 \begin_inset Index idx
25380 \begin_layout Plain Layout
25382 -packages ! hyperref
25395 dialog to link cross-references in the output, you will see that clicking
25396 on an image float reference jumps to the image label.
25397 The caption will be the first text part on the screen, so that you cannot
25398 see the image without scrolling.
25399 This is because the reference link anchor is placed at the position of
25401 With the use of the package
25406 \begin_inset Index idx
25409 \begin_layout Plain Layout
25416 , which is part of the \SpecialChar LaTeX
25422 \begin_inset Index idx
25425 \begin_layout Plain Layout
25427 -packages ! oberdiek
25432 , the link anchor is placed at the beginning of a float.
25433 To use this feature for figure floats, load
25437 in the document preamble with the line
25440 \begin_layout Standard
25445 usepackage[figure]{hypcap}
25448 \begin_layout Standard
25453 for all float types but this is not recommended for stability reasons.
25454 For more information, have a look at
25459 \begin_inset CommandInset citation
25468 \begin_layout Standard
25469 \begin_inset Note Greyedout
25472 \begin_layout Plain Layout
25481 has no effect on references to subfigures.
25489 \begin_layout Section
25491 \begin_inset CommandInset label
25493 name "sec:Float-Placement"
25498 \begin_inset Index idx
25501 \begin_layout Plain Layout
25510 \begin_layout Standard
25511 Right-clicking on a float-box and clicking on
25515 opens a dialog where you can alter the placement options that \SpecialChar LaTeX
25517 positioning the float.
25518 \begin_inset Newline newline
25524 \begin_inset space ~
25529 is only useful for two-column documents: If you select it, the float will
25530 span both columns on the page instead of being confined to just one.
25531 \begin_inset Newline newline
25537 \begin_inset space ~
25542 is used to rotate floats, see section
25543 \begin_inset CommandInset ref
25545 reference "sec:Rotated-Floats"
25552 \begin_layout Standard
25553 You can use one or more of the following options in the float dialog to
25554 set the placement for a particular float when you uncheck the option
25557 \begin_inset space ~
25561 \begin_inset space ~
25569 \begin_layout Description
25571 \begin_inset space ~
25575 \begin_inset space ~
25578 possible try to place the float on the position where it has been inserted
25581 \begin_layout Description
25583 \begin_inset space ~
25587 \begin_inset space ~
25590 page try to place the float at the top of the current page
25593 \begin_layout Description
25595 \begin_inset space ~
25599 \begin_inset space ~
25602 page try to place the float at the bottom of the current page
25605 \begin_layout Description
25607 \begin_inset space ~
25611 \begin_inset space ~
25614 floats try to place the float on its own page
25617 \begin_layout Standard
25618 The order of the above option is
25622 used by \SpecialChar LaTeX
25624 That means, if you use the default placement, \SpecialChar LaTeX
25628 \begin_inset space ~
25632 \begin_inset space ~
25640 \begin_inset space ~
25644 \begin_inset space ~
25649 , and then the others.
25650 If you do not use the default, \SpecialChar LaTeX
25651 will try only the checked options but in
25654 \begin_inset space ~
25657 placements is possible the procedure is internally repeated trying to put
25658 the float on the following page.
25661 \begin_layout Standard
25662 By default, each option has its own rules:
25665 \begin_layout Labeling
25666 \labelwidthstring 00.00.0000
25670 \begin_inset space ~
25674 \begin_inset space ~
25679 only floats occupying less than 70
25680 \begin_inset space \thinspace{}
25683 % of the page can be placed at the top of a page (
25692 \begin_layout Labeling
25693 \labelwidthstring 00.00.0000
25697 \begin_inset space ~
25701 \begin_inset space ~
25706 : only floats occupying less than 30
25707 \begin_inset space \thinspace{}
25710 % of the page can be placed at the bottom of a page.
25720 \begin_layout Labeling
25721 \labelwidthstring 00.00.0000
25725 \begin_inset space ~
25729 \begin_inset space ~
25734 : only if more than 50
25735 \begin_inset space \thinspace{}
25738 % of the page is occupied by floats, several floats can be set together
25749 \begin_layout Standard
25750 If you don't like these rules, you can ignore them by using the additional
25754 \begin_inset space ~
25759 \begin_inset space ~
25765 \begin_inset Newline newline
25768 You can also redefine the rules with \SpecialChar LaTeX
25769 -commands that are given in parentheses
25770 after the rules description above.
25771 To increase for example the often too small default of the bottom-rule
25773 \begin_inset space \thinspace{}
25776 % of the page, add this line to your document preamble:
25779 \begin_layout Standard
25786 bottomfraction}{0.5}
25789 \begin_layout Standard
25790 Sometimes you might need, under all circumstances, a float to be placed
25791 exactly at the position where it is inserted.
25792 For this case you can use the option
25795 \begin_inset space ~
25801 Use this option very rarely and only if the document is almost ready to
25802 be printed, because the float is then no longer able to
25803 \begin_inset Quotes eld
25807 \begin_inset Quotes erd
25810 when you change your document and this will often destroy the page layout.
25813 \begin_layout Standard
25814 There are no placement options for text wrap floats, because they are always
25815 surrounded by the text of a certain paragraph.
25816 \begin_inset VSpace bigskip
25822 \begin_layout Standard
25823 Sometimes you have the problem that a float is placed at the top of a page
25824 while its corresponding section starts at the middle of the page, so that
25825 the reader could think the float is part of the previous section.
25826 To avoid this the \SpecialChar LaTeX
25834 It suppresses a given float placement for the page where it is inserted
25835 and can therefore be used to avoid floats being set before a section starts.
25836 To get this, add these commands to your document preamble:
25839 \begin_layout Standard
25849 \begin_inset Newline newline
25863 \begin_layout Standard
25864 You can define the same for all section headings, like chapters and subsections.
25865 This definition is not recommended to be used for small text parts like
25866 subsubsections because \SpecialChar LaTeX
25867 may then have problems finding a suitable placement.
25870 \begin_layout Standard
25871 \begin_inset VSpace bigskip
25874 In some cases it is required to have all figures/tables at the end of the
25876 For this purpose the \SpecialChar LaTeX
25882 \begin_inset Index idx
25885 \begin_layout Plain Layout
25887 -packages ! endfloat
25893 It puts all figure and table floats at the end of the document into their
25895 At the original float position a text hint like
25896 \begin_inset Quotes eld
25902 \begin_inset space ~
25908 \begin_inset Quotes erd
25912 The endfloat-package is loaded in the preamble with the line
25915 \begin_layout Standard
25920 usepackage[options]{endfloat}
25923 \begin_layout Standard
25924 There are various package options to format the created figure/table sections.
25925 For more information we refer you to the
25930 \begin_inset CommandInset citation
25937 \begin_inset Newline newline
25941 \begin_inset Note Greyedout
25944 \begin_layout Plain Layout
25949 doesn't provide an automatic translation for the text hint, you have to
25950 do this manually, see section
25951 \begin_inset space ~
25955 \begin_inset CommandInset citation
25967 \begin_inset Newline newline
25971 \begin_inset Note Greyedout
25974 \begin_layout Plain Layout
25979 There is currently a bug in
25983 when the caption contains a German
25984 \begin_inset Quotes eld
25988 \begin_inset Quotes erd
25992 Use in this case the command
25993 \begin_inset Quotes eld
26003 \begin_inset Quotes erd
26006 in \SpecialChar TeX
26008 \begin_inset Quotes eld
26012 \begin_inset Quotes erd
26023 \begin_layout Standard
26024 \begin_inset VSpace bigskip
26027 For more details about float placements, have a look at \SpecialChar LaTeX
26029 \begin_inset CommandInset citation
26031 key "latexcompanion,latexguide,latexbook"
26038 \begin_layout Section
26040 \begin_inset CommandInset label
26042 name "sec:Rotated-Floats"
26047 \begin_inset Index idx
26050 \begin_layout Plain Layout
26059 \begin_layout Standard
26060 Especially for wide tables you might have floats rotated.
26061 To rotate a whole float including the caption, right-click on the float-box
26065 \begin_inset space ~
26073 \begin_layout Standard
26074 Rotated floats are always placed on a page of their own (or column of their
26075 own; in case you have a multi-column document).
26076 You can let them span several columns using the float settings option
26079 \begin_inset space ~
26085 Floats are rotated so that you can read them from the outside margin.
26086 To force a certain rotation direction for all pages, you can add either
26095 to the document class options.
26098 \begin_layout Standard
26099 Referencing rotated floats is the same as for normal floats, the caption
26100 format is also the same: Table
26101 \begin_inset space ~
26105 \begin_inset CommandInset ref
26107 reference "tab:Rotated-table"
26111 is an example of a rotated table float.
26114 \begin_layout Standard
26115 \begin_inset Note Greyedout
26118 \begin_layout Plain Layout
26123 Not all DVI-viewers are able to display rotated floats.
26131 \begin_layout Standard
26132 \begin_inset Float table
26137 \begin_layout Plain Layout
26138 \begin_inset Caption Standard
26140 \begin_layout Plain Layout
26141 \begin_inset CommandInset label
26143 name "tab:Rotated-table"
26155 \begin_layout Plain Layout
26157 \begin_inset Tabular
26158 <lyxtabular version="3" rows="1" columns="5">
26159 <features tabularvalignment="middle">
26160 <column alignment="center" valignment="top">
26161 <column alignment="center" valignment="top">
26162 <column alignment="center" valignment="top">
26163 <column alignment="center" valignment="top">
26164 <column alignment="center" valignment="top">
26166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26169 \begin_layout Plain Layout
26175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26178 \begin_layout Plain Layout
26184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26187 \begin_layout Plain Layout
26193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26196 \begin_layout Plain Layout
26202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26205 \begin_layout Plain Layout
26224 \begin_layout Section
26226 \begin_inset Index idx
26229 \begin_layout Plain Layout
26238 \begin_layout Standard
26239 Subfloats are for example used when a figure consists of several images.
26240 They are created by inserting a float into an existing float.
26241 The placement of the subfloats can be controlled in the same way as for
26242 paragraphs as shown in table
26243 \begin_inset space ~
26247 \begin_inset CommandInset ref
26249 reference "tab:Two-subtables-side"
26254 \begin_inset CommandInset ref
26256 reference "tab:Two-subtables-upon"
26263 \begin_layout Standard
26264 Referencing subfloats works as for normal floats: Table
26265 \begin_inset space ~
26269 \begin_inset CommandInset ref
26271 reference "tab:This-is-subtable-a"
26276 \begin_inset CommandInset ref
26278 reference "tab:This-is-subtable-b"
26282 are subtables of table
26283 \begin_inset space ~
26287 \begin_inset CommandInset ref
26289 reference "tab:Two-subtables-side"
26296 \begin_layout Standard
26297 \begin_inset Float table
26302 \begin_layout Plain Layout
26303 \begin_inset Caption Standard
26305 \begin_layout Plain Layout
26306 \begin_inset CommandInset label
26308 name "tab:Two-subtables-side"
26312 Two subtables placed side by side.
26320 \begin_layout Plain Layout
26322 \begin_inset space \hfill{}
26326 \begin_inset Float table
26331 \begin_layout Plain Layout
26332 \begin_inset Caption Standard
26334 \begin_layout Plain Layout
26335 \begin_inset CommandInset label
26337 name "tab:This-is-subtable-a"
26341 This is subtable a.
26349 \begin_layout Plain Layout
26351 \begin_inset Tabular
26352 <lyxtabular version="3" rows="1" columns="5">
26353 <features tabularvalignment="middle">
26354 <column alignment="center" valignment="top">
26355 <column alignment="center" valignment="top">
26356 <column alignment="center" valignment="top">
26357 <column alignment="center" valignment="top">
26358 <column alignment="center" valignment="top">
26360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26363 \begin_layout Plain Layout
26369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26372 \begin_layout Plain Layout
26378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26381 \begin_layout Plain Layout
26387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26390 \begin_layout Plain Layout
26396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26399 \begin_layout Plain Layout
26416 \begin_inset space \hfill{}
26420 \begin_inset Float table
26425 \begin_layout Plain Layout
26426 \begin_inset Caption Standard
26428 \begin_layout Plain Layout
26429 \begin_inset CommandInset label
26431 name "tab:This-is-subtable-b"
26435 This is subtable b.
26443 \begin_layout Plain Layout
26445 \begin_inset Tabular
26446 <lyxtabular version="3" rows="1" columns="5">
26447 <features tabularvalignment="middle">
26448 <column alignment="center" valignment="top">
26449 <column alignment="center" valignment="top">
26450 <column alignment="center" valignment="top">
26451 <column alignment="center" valignment="top">
26452 <column alignment="center" valignment="top">
26454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26457 \begin_layout Plain Layout
26463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26466 \begin_layout Plain Layout
26472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26475 \begin_layout Plain Layout
26481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26484 \begin_layout Plain Layout
26490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26493 \begin_layout Plain Layout
26510 \begin_inset space \hfill{}
26521 \begin_layout Standard
26522 \begin_inset Float table
26527 \begin_layout Plain Layout
26528 \begin_inset Caption Standard
26530 \begin_layout Plain Layout
26531 \begin_inset CommandInset label
26533 name "tab:Two-subtables-upon"
26537 Two subtables placed one above the other.
26538 (a) table with 4 cells, (b) table with 5 cells.
26546 \begin_layout Plain Layout
26548 \begin_inset Float table
26553 \begin_layout Plain Layout
26554 \begin_inset Caption Standard
26556 \begin_layout Plain Layout
26565 \begin_layout Plain Layout
26567 \begin_inset Tabular
26568 <lyxtabular version="3" rows="1" columns="4">
26569 <features tabularvalignment="middle">
26570 <column alignment="center" valignment="top">
26571 <column alignment="center" valignment="top">
26572 <column alignment="center" valignment="top">
26573 <column alignment="center" valignment="top">
26575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26578 \begin_layout Plain Layout
26584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26587 \begin_layout Plain Layout
26593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26596 \begin_layout Plain Layout
26602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26605 \begin_layout Plain Layout
26624 \begin_layout Plain Layout
26626 \begin_inset Float table
26631 \begin_layout Plain Layout
26632 \begin_inset Caption Standard
26634 \begin_layout Plain Layout
26643 \begin_layout Plain Layout
26645 \begin_inset Tabular
26646 <lyxtabular version="3" rows="1" columns="5">
26647 <features tabularvalignment="middle">
26648 <column alignment="center" valignment="top">
26649 <column alignment="center" valignment="top">
26650 <column alignment="center" valignment="top">
26651 <column alignment="center" valignment="top">
26652 <column alignment="center" valignment="top">
26654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26657 \begin_layout Plain Layout
26663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26666 \begin_layout Plain Layout
26672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26675 \begin_layout Plain Layout
26681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26684 \begin_layout Plain Layout
26690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26693 \begin_layout Plain Layout
26717 \begin_layout Section
26718 Floats Side by Side
26719 \begin_inset Index idx
26722 \begin_layout Plain Layout
26723 Floats ! Side by side
26731 \begin_layout Standard
26732 To place floats side by side, as in Figures
26733 \begin_inset space ~
26737 \begin_inset CommandInset ref
26739 reference "fig:Float-left"
26744 \begin_inset CommandInset ref
26746 reference "fig:Float-right"
26755 In it two minipage boxes are inserted.
26759 \begin_layout Plain Layout
26760 Minipages are explained in section
26761 \begin_inset space ~
26765 \begin_inset CommandInset ref
26767 reference "sec:Minipages"
26776 The width is set to 45
26777 \begin_inset space \thinspace{}
26781 \begin_inset space \thinspace{}
26784 column% and the box alignment to
26789 The minipage boxes contain the image and the caption in the same way as
26790 they are in a float.
26791 The only difference is that the image unit
26794 \begin_inset space ~
26798 \begin_inset space ~
26803 is now calculated according to the width of the minipage boxes.
26806 \begin_layout Standard
26807 \begin_inset Float figure
26812 \begin_layout Plain Layout
26813 \begin_inset Box Frameless
26823 height_special "totalheight"
26828 backgroundcolor "none"
26831 \begin_layout Plain Layout
26833 \begin_inset Graphics
26834 filename clipart/mobius.eps
26837 scaleBeforeRotation
26844 \begin_layout Plain Layout
26845 \begin_inset Caption Standard
26847 \begin_layout Plain Layout
26848 \begin_inset CommandInset label
26850 name "fig:Float-left"
26854 Float on the left side.
26865 \begin_inset space \hfill{}
26869 \begin_inset Box Frameless
26879 height_special "totalheight"
26884 backgroundcolor "none"
26887 \begin_layout Plain Layout
26889 \begin_inset Graphics
26890 filename clipart/platypus.eps
26893 scaleBeforeRotation
26900 \begin_layout Plain Layout
26901 \begin_inset Caption Standard
26903 \begin_layout Plain Layout
26904 \begin_inset CommandInset label
26906 name "fig:Float-right"
26910 Float on the right side.
26928 \begin_layout Standard
26929 An alternative and simpler solution is to use the module
26931 Variable-width Minipages
26934 \begin_inset space \thinspace{}
26938 \begin_inset CommandInset ref
26940 reference "sec:Minipages"
26945 Variable-width minipages adapt automatically to the width of the figures
26947 They do not require an explicit width to be given, and they improve the
26948 horizontal alignment of the figures.
26949 The LyX example file
26951 varwidth-floats-side-by-side
26953 gives examples of how to do this.
26956 \begin_layout Section
26958 \begin_inset Index idx
26961 \begin_layout Plain Layout
26962 Caption ! Formatting
26968 \begin_inset Index idx
26971 \begin_layout Plain Layout
26972 Floats ! Caption Formatting
26978 \begin_inset CommandInset label
26980 name "sec:Caption-Formatting"
26987 \begin_layout Standard
26992 environment is the default paragraph environment for
26997 On the \SpecialChar LyX
26998 screen captions appear as a label, e.
26999 \begin_inset space \thinspace{}
27003 \begin_inset space \space{}
27007 \begin_inset Quotes eld
27015 \begin_inset Quotes erd
27018 followed by the caption text.
27020 \begin_inset Quotes eld
27024 \begin_inset Quotes erd
27027 is the actual reference number.
27028 By default the label and the number are in the same font as the caption
27029 text and a colon follows the number to divide the label from the text.
27030 This caption format is suitable for many but not all documents.
27034 \begin_layout Standard
27035 To change the default caption format, load the \SpecialChar LaTeX
27041 \begin_inset Index idx
27044 \begin_layout Plain Layout
27046 -packages ! caption
27051 in the document preamble with this line:
27054 \begin_layout Standard
27059 usepackage[format definition]{caption}
27062 \begin_layout Standard
27063 To have for example the label and the number in sans-serif, bold font and
27064 the table captions always above the table as in this document, use the
27068 \begin_layout Standard
27073 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
27076 \begin_layout Standard
27077 You can also define different caption formats for the different float types.
27078 In this case load the
27082 package without format specific options and define the different formats
27083 with the help of the command
27086 \begin_layout Standard
27091 captionsetup[float type]{format definition}
27094 \begin_layout Standard
27095 in the document preamble.
27096 For example the caption formats of Figure
27097 \begin_inset space ~
27101 \begin_inset CommandInset ref
27103 reference "fig:This-is-an-fig"
27108 \begin_inset space ~
27112 \begin_inset CommandInset ref
27114 reference "tab:This-is-an-tab"
27118 can be created using these commands in the document preamble:
27121 \begin_layout Standard
27126 usepackage[tableposition=top]{caption}
27129 \begin_inset Newline newline
27136 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
27137 \begin_inset Newline newline
27141 \begin_inset Phantom HPhantom
27144 \begin_layout Plain Layout
27149 captionsetup[figure]{
27155 \begin_inset Newline newline
27160 captionsetup[table]{labelfont={bf,sf}}
27163 \begin_layout Standard
27164 \begin_inset Note Greyedout
27167 \begin_layout Plain Layout
27176 has no effect when a
27181 \begin_inset Index idx
27184 \begin_layout Plain Layout
27186 -packages ! KOMA-Script
27191 document class is used.
27192 In this case the document class option
27194 captions=tableheading
27204 \begin_layout Standard
27205 For more information about the package
27209 we refer to its documentation
27210 \begin_inset CommandInset citation
27219 \begin_layout Standard
27220 To change the label name from e.
27221 \begin_inset space \thinspace{}
27225 \begin_inset space \space{}
27229 \begin_inset Quotes eld
27233 \begin_inset Quotes erd
27237 \begin_inset Quotes eld
27241 \begin_inset Quotes erd
27244 use this preamble command:
27247 \begin_layout Standard
27254 fnum@figure}{Image~
27259 \begin_layout Standard
27266 inserts the figure number and
27269 \begin_inset Quotes eld
27275 \begin_inset Quotes erd
27278 creates a protected space.
27281 \begin_layout Standard
27282 \begin_inset VSpace bigskip
27290 \begin_inset Index idx
27293 \begin_layout Plain Layout
27295 -packages ! KOMA-Script
27302 article (KOMA-Script)
27310 letter (KOMA-Script)
27314 report (KOMA-Script)
27317 \begin_inset space \thinspace{}
27320 ), you can alternatively to the
27328 's built-in command
27335 For example, to have the caption label in bold, add this command to your
27339 \begin_layout Standard
27344 setkomafont{captionlabel}{
27349 \begin_layout Standard
27350 For more information about
27361 \begin_inset CommandInset citation
27370 \begin_layout Standard
27374 \begin_layout Plain Layout
27378 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
27385 \begin_inset Note Note
27388 \begin_layout Plain Layout
27389 The caption format is changed only for this example.
27397 \begin_layout Standard
27398 \begin_inset Float figure
27404 \begin_layout Plain Layout
27406 \begin_inset Graphics
27407 filename clipart/mobius.eps
27410 scaleBeforeRotation
27417 \begin_layout Plain Layout
27418 \begin_inset Caption Standard
27420 \begin_layout Plain Layout
27421 \begin_inset CommandInset label
27423 name "fig:This-is-an-fig"
27427 This is an example figure caption that is longer than one line to show the
27428 different caption format.
27429 Here a self-defined caption format is used.
27442 \begin_layout Standard
27446 \begin_layout Plain Layout
27450 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
27459 \begin_layout Standard
27460 \begin_inset Float table
27466 \begin_layout Plain Layout
27467 \begin_inset Caption Standard
27469 \begin_layout Plain Layout
27470 \begin_inset CommandInset label
27472 name "tab:This-is-an-tab"
27476 This is an example table caption that is longer than one line to show the
27477 different caption format.
27478 Here the standard caption format for tables in this document is used.
27486 \begin_layout Plain Layout
27488 \begin_inset Tabular
27489 <lyxtabular version="3" rows="1" columns="5">
27490 <features tabularvalignment="middle">
27491 <column alignment="center" valignment="top">
27492 <column alignment="center" valignment="top">
27493 <column alignment="center" valignment="top">
27494 <column alignment="center" valignment="top">
27495 <column alignment="center" valignment="top">
27497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27500 \begin_layout Plain Layout
27506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27509 \begin_layout Plain Layout
27515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27518 \begin_layout Plain Layout
27524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27527 \begin_layout Plain Layout
27533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27536 \begin_layout Plain Layout
27555 \begin_layout Section
27557 \begin_inset Index idx
27560 \begin_layout Plain Layout
27561 Caption ! Placement
27567 \begin_inset Index idx
27570 \begin_layout Plain Layout
27571 Floats ! Caption Placement
27577 \begin_inset CommandInset label
27579 name "sec:Caption-Placement"
27586 \begin_layout Standard
27587 The common caption placement rule is:
27590 \begin_layout Description
27591 Figure: Caption is set below the figure
27594 \begin_layout Description
27595 Table: Caption is set above the table
27598 \begin_layout Standard
27599 Having the caption above the table is unfortunately not supported in \SpecialChar LaTeX
27602 That means if you are using the document classes
27618 there will be no space between the caption and the table.
27619 To insert the necessary space, load the \SpecialChar LaTeX
27625 \begin_inset Index idx
27628 \begin_layout Plain Layout
27630 -packages ! caption
27635 in your document preamble with the option
27639 \begin_layout Plain Layout
27641 \begin_inset space ~
27645 \begin_inset CommandInset ref
27647 reference "sec:Caption-Formatting"
27651 for more information of the package
27663 \begin_layout Standard
27669 \begin_layout Standard
27675 \begin_inset Index idx
27678 \begin_layout Plain Layout
27680 -packages ! KOMA-Script
27687 article (KOMA-Script)
27695 letter (KOMA-Script)
27699 report (KOMA-Script)
27702 \begin_inset space \thinspace{}
27705 ), you can alternatively to the
27709 package set the document class option
27713 \begin_layout Plain Layout
27714 That option is used in this document.
27722 \begin_layout Standard
27725 captions=tableheading
27728 \begin_layout Standard
27729 In documents with a KOMA-Script document class you can also right-click
27730 on a caption and mark in the context menu if this should be a caption above
27731 or below the table/figure.
27732 This way you can override the document-wide caption placement for certain
27735 \begin_inset space ~
27739 \begin_inset CommandInset ref
27741 reference "tab:A-caption-marked"
27745 is an example where the caption is marked a being below the table while
27747 For comparison the caption in Table
27748 \begin_inset space ~
27752 \begin_inset CommandInset ref
27754 reference "tab:A-standard-table"
27761 \begin_layout Standard
27762 \begin_inset Float table
27767 \begin_layout Plain Layout
27768 \begin_inset Caption Below
27770 \begin_layout Plain Layout
27771 \begin_inset CommandInset label
27773 name "tab:A-caption-marked"
27777 A caption marked as being below the table.
27785 \begin_layout Plain Layout
27787 \begin_inset Tabular
27788 <lyxtabular version="3" rows="3" columns="3">
27789 <features tabularvalignment="middle">
27790 <column alignment="center" valignment="top" width="0pt">
27791 <column alignment="center" valignment="top" width="0pt">
27792 <column alignment="center" valignment="top" width="0pt">
27794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27797 \begin_layout Plain Layout
27803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27806 \begin_layout Plain Layout
27812 <cell alignment="center" valignment="top" topline="true" bottomline="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" rightline="true" usebox="none">
27844 \begin_layout Plain Layout
27852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27855 \begin_layout Plain Layout
27856 \begin_inset Formula $\int x^{2}dx$
27864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27867 \begin_layout Plain Layout
27868 \begin_inset Formula $\left[\begin{array}{cc}
27871 \end{array}\right]$
27879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27882 \begin_layout Plain Layout
27883 \begin_inset Formula $1+1=2$
27904 \begin_layout Standard
27905 \begin_inset Float table
27910 \begin_layout Plain Layout
27911 \begin_inset Caption Standard
27913 \begin_layout Plain Layout
27914 \begin_inset CommandInset label
27916 name "tab:A-standard-table"
27920 A standard table caption.
27928 \begin_layout Plain Layout
27930 \begin_inset Tabular
27931 <lyxtabular version="3" rows="3" columns="3">
27932 <features tabularvalignment="middle">
27933 <column alignment="center" valignment="top" width="0pt">
27934 <column alignment="center" valignment="top" width="0pt">
27935 <column alignment="center" valignment="top" width="0pt">
27937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27940 \begin_layout Plain Layout
27946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27949 \begin_layout Plain Layout
27955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27958 \begin_layout Plain Layout
27966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27969 \begin_layout Plain Layout
27975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27978 \begin_layout Plain Layout
27984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27987 \begin_layout Plain Layout
27995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27998 \begin_layout Plain Layout
27999 \begin_inset Formula $\int x^{2}dx$
28007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28010 \begin_layout Plain Layout
28011 \begin_inset Formula $\left[\begin{array}{cc}
28014 \end{array}\right]$
28022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28025 \begin_layout Plain Layout
28026 \begin_inset Formula $1+1=2$
28047 \begin_layout Standard
28048 \begin_inset VSpace bigskip
28051 It is also possible to set the caption beside a figure or table.
28052 To get this the \SpecialChar LaTeX
28058 \begin_inset Index idx
28061 \begin_layout Plain Layout
28063 -packages ! sidecap
28068 has to be loaded in the document preamble with the line
28071 \begin_layout Standard
28076 usepackage[option]{sidecap}
28079 \begin_layout Standard
28080 If you set no option, the caption is placed on the side of the outer page
28081 margin – to the right on odd pages, to the left on even pages.
28082 You can change the placement to inner margin with the option
28087 To force the placement always to the right or left, use the option
28098 \begin_layout Standard
28102 \begin_layout Plain Layout
28112 \begin_inset Note Note
28115 \begin_layout Plain Layout
28116 The following section will only be displayed when the \SpecialChar LaTeX
28129 \begin_layout Standard
28130 To place in \SpecialChar LyX
28131 the caption of a float on the side, it is necessary to add
28132 these commands to the document preamble:
28135 \begin_layout Standard
28137 \begin_inset CommandInset line
28148 \begin_layout Standard
28155 TabBesBeg}[1][1.0]{%
28156 \begin_inset Newline newline
28160 \begin_inset Phantom HPhantom
28163 \begin_layout Plain Layout
28164 \begin_inset space ~
28179 \begin_inset Newline newline
28183 \begin_inset Phantom HPhantom
28186 \begin_layout Plain Layout
28189 \begin_inset space ~
28204 \begin_inset Newline newline
28208 \begin_inset Phantom HPhantom
28211 \begin_layout Plain Layout
28214 \begin_inset space ~
28224 renewenvironment{table}[1]{
28226 begin{SCtable}[#1]##1}{
28231 \begin_layout Standard
28239 \begin_inset Newline newline
28243 \begin_inset Phantom HPhantom
28246 \begin_layout Plain Layout
28247 \begin_inset space ~
28262 \begin_inset Newline newline
28266 \begin_inset Phantom HPhantom
28269 \begin_layout Plain Layout
28270 \begin_inset space ~
28287 \begin_layout Standard
28294 FigBesBeg}[1][1.0]{%
28295 \begin_inset Newline newline
28299 \begin_inset Phantom HPhantom
28302 \begin_layout Plain Layout
28303 \begin_inset space ~
28318 \begin_inset Newline newline
28322 \begin_inset Phantom HPhantom
28325 \begin_layout Plain Layout
28326 \begin_inset space ~
28341 \begin_inset Newline newline
28345 \begin_inset Phantom HPhantom
28348 \begin_layout Plain Layout
28349 \begin_inset space ~
28359 renewenvironment{figure}[1]{
28361 begin{SCfigure}[#1]##1}{
28366 \begin_layout Standard
28374 \begin_inset Newline newline
28378 \begin_inset Phantom HPhantom
28381 \begin_layout Plain Layout
28382 \begin_inset space ~
28397 \begin_inset Newline newline
28401 \begin_inset Phantom HPhantom
28404 \begin_layout Plain Layout
28405 \begin_inset space ~
28422 \begin_layout Standard
28424 \begin_inset CommandInset line
28435 \begin_layout Standard
28436 The commands allow you to redefine the floats so that the caption is set
28438 For figure floats use the command
28441 \begin_layout Standard
28449 \begin_layout Standard
28450 in \SpecialChar TeX
28451 Code before the float.
28452 And insert the command
28455 \begin_layout Standard
28463 \begin_layout Standard
28464 in \SpecialChar TeX
28465 Code at the point where you want to get back to the original float definitio
28469 \begin_layout Standard
28470 For table floats use the corresponding commands
28473 \begin_layout Standard
28487 \begin_layout Standard
28489 \begin_inset space ~
28493 \begin_inset CommandInset ref
28495 reference "fig:cap-beside-fig"
28500 \begin_inset space ~
28504 \begin_inset CommandInset ref
28506 reference "tab:cap-beside-tab"
28510 are examples where the caption is set beside.
28513 \begin_layout Standard
28514 You can see in the examples that the caption text appears at the top of
28515 the floats for table floats and at the bottom for figure floats.
28516 To change this, you can use the command
28519 \begin_layout Standard
28524 sidecaptionvpos{float type}{placement}
28527 \begin_layout Standard
28528 in the document preamble or in \SpecialChar TeX
28529 Code before the float.
28530 The float type is either
28538 , the placement can be
28539 \begin_inset Quotes eld
28547 \begin_inset Quotes erd
28551 \begin_inset Quotes eld
28559 \begin_inset Quotes erd
28563 \begin_inset Quotes eld
28571 \begin_inset Quotes erd
28575 To have for example the caption of figure floats vertically centered, use
28579 \begin_layout Standard
28584 sidecaptionvpos{figure}{c}
28587 \begin_layout Standard
28588 This was used for Figure
28589 \begin_inset space ~
28593 \begin_inset CommandInset ref
28595 reference "fig:cap-beside-fig-2"
28602 \begin_layout Standard
28603 \begin_inset VSpace medskip
28609 \begin_layout Standard
28610 The default caption width is the width of the image/table.
28611 For thin image/tables, like in Table
28612 \begin_inset space ~
28616 \begin_inset CommandInset ref
28618 reference "tab:cap-beside-tab"
28622 , this leads to captions that are too thin.
28623 You can increase the width by specifying a factor that will be multiplied
28624 with the image/table width to get the caption width.
28625 The caption width will automatically be recalculated in case it would protrude
28626 over the page or column margin due to the specified width.
28631 can either be given as optional argument for
28640 \begin_layout Standard
28648 \begin_layout Standard
28649 or in the definition of
28659 with another value.
28660 If you do the latter, your factor will be the default if
28666 is used without an argument.
28668 \begin_inset space ~
28672 \begin_inset CommandInset ref
28674 reference "tab:cap-beside-tab-wider"
28678 the factor 5 was used.
28681 \begin_layout Standard
28682 \begin_inset Note Greyedout
28685 \begin_layout Plain Layout
28690 For floats with captions set beside, you cannot use the float placement
28694 \begin_inset space ~
28699 because it is not supported by
28711 \begin_layout Standard
28712 \begin_inset VSpace medskip
28715 For more information about the package
28719 we refer to its documentation
28720 \begin_inset CommandInset citation
28729 \begin_layout Standard
28730 \begin_inset Note Greyedout
28733 \begin_layout Plain Layout
28738 The \SpecialChar LaTeX
28744 \begin_inset Index idx
28747 \begin_layout Plain Layout
28754 , described in section
28755 \begin_inset space ~
28759 \begin_inset CommandInset ref
28761 reference "subsec:Reference-Position"
28765 , has no effect on floats with the caption set beside.
28773 \begin_layout Standard
28777 \begin_layout Plain Layout
28789 \begin_layout Standard
28790 \begin_inset Float figure
28795 \begin_layout Plain Layout
28796 \begin_inset Graphics
28797 filename clipart/escher-lsd.eps
28799 scaleBeforeRotation
28806 \begin_layout Plain Layout
28807 \begin_inset Caption Standard
28809 \begin_layout Plain Layout
28810 \begin_inset CommandInset label
28812 name "fig:cap-beside-fig"
28816 This is a caption beside a figure.
28829 \begin_layout Standard
28833 \begin_layout Plain Layout
28845 \begin_layout Standard
28849 \begin_layout Plain Layout
28861 \begin_layout Standard
28862 \begin_inset Float table
28867 \begin_layout Plain Layout
28868 \begin_inset Caption Standard
28870 \begin_layout Plain Layout
28871 \begin_inset CommandInset label
28873 name "tab:cap-beside-tab"
28877 This is a caption beside a table.
28885 \begin_layout Plain Layout
28886 \begin_inset Tabular
28887 <lyxtabular version="3" rows="4" columns="5">
28888 <features tabularvalignment="middle">
28889 <column alignment="center" valignment="top">
28890 <column alignment="center" valignment="top">
28891 <column alignment="center" valignment="top">
28892 <column alignment="center" valignment="top">
28893 <column alignment="center" valignment="top">
28895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28898 \begin_layout Plain Layout
28904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28907 \begin_layout Plain Layout
28913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28916 \begin_layout Plain Layout
28922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28925 \begin_layout Plain Layout
28931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28934 \begin_layout Plain Layout
28942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28945 \begin_layout Plain Layout
28951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28954 \begin_layout Plain Layout
28960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28963 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28981 \begin_layout Plain Layout
28989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28992 \begin_layout Plain Layout
28998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29001 \begin_layout Plain Layout
29007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29010 \begin_layout Plain Layout
29016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29019 \begin_layout Plain Layout
29025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29028 \begin_layout Plain Layout
29036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29039 \begin_layout Plain Layout
29045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29048 \begin_layout Plain Layout
29054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29057 \begin_layout Plain Layout
29063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29066 \begin_layout Plain Layout
29072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29075 \begin_layout Plain Layout
29094 \begin_layout Standard
29098 \begin_layout Plain Layout
29110 \begin_layout Standard
29114 \begin_layout Plain Layout
29127 \begin_layout Plain Layout
29131 sidecaptionvpos{figure}{c}
29137 \begin_inset Float figure
29142 \begin_layout Plain Layout
29143 \begin_inset Graphics
29144 filename clipart/escher-lsd.eps
29146 scaleBeforeRotation
29153 \begin_layout Plain Layout
29154 \begin_inset Caption Standard
29156 \begin_layout Plain Layout
29157 \begin_inset CommandInset label
29159 name "fig:cap-beside-fig-2"
29163 This is a vertically centered caption beside a figure.
29176 \begin_layout Standard
29180 \begin_layout Plain Layout
29192 \begin_layout Standard
29196 \begin_layout Plain Layout
29208 \begin_layout Standard
29209 \begin_inset Float table
29214 \begin_layout Plain Layout
29215 \begin_inset Caption Standard
29217 \begin_layout Plain Layout
29218 \begin_inset CommandInset label
29220 name "tab:cap-beside-tab-wider"
29224 This caption is wider than the one in Table
29225 \begin_inset space ~
29229 \begin_inset CommandInset ref
29231 reference "tab:cap-beside-tab"
29243 \begin_layout Plain Layout
29244 \begin_inset Tabular
29245 <lyxtabular version="3" rows="4" columns="5">
29246 <features tabularvalignment="middle">
29247 <column alignment="center" valignment="top">
29248 <column alignment="center" valignment="top">
29249 <column alignment="center" valignment="top">
29250 <column alignment="center" valignment="top">
29251 <column alignment="center" valignment="top">
29253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29256 \begin_layout Plain Layout
29262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29265 \begin_layout Plain Layout
29271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29274 \begin_layout Plain Layout
29280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29283 \begin_layout Plain Layout
29289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29292 \begin_layout Plain Layout
29300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29303 \begin_layout Plain Layout
29309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29312 \begin_layout Plain Layout
29318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29321 \begin_layout Plain Layout
29327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29330 \begin_layout Plain Layout
29336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29339 \begin_layout Plain Layout
29347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29350 \begin_layout Plain Layout
29356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29359 \begin_layout Plain Layout
29365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29368 \begin_layout Plain Layout
29374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29377 \begin_layout Plain Layout
29383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29386 \begin_layout Plain Layout
29394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29397 \begin_layout Plain Layout
29403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29406 \begin_layout Plain Layout
29412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29415 \begin_layout Plain Layout
29421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29424 \begin_layout Plain Layout
29430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29433 \begin_layout Plain Layout
29452 \begin_layout Standard
29456 \begin_layout Plain Layout
29468 \begin_layout Standard
29472 \begin_layout Plain Layout
29482 \begin_inset Note Note
29485 \begin_layout Plain Layout
29486 The following will be displayed when the \SpecialChar LaTeX
29499 \begin_layout Standard
29500 You need to install the \SpecialChar LaTeX
29505 to see the following part of this section in the output.
29508 \begin_layout Standard
29512 \begin_layout Plain Layout
29524 \begin_layout Section
29526 \begin_inset Index idx
29529 \begin_layout Plain Layout
29530 Floats ! Float Lists
29538 \begin_layout Standard
29539 Similar to the table of contents where the sections of the document are
29540 listed, there are listings for all float types, like the figures of the
29542 You can insert them via the
29544 Insert\SpecialChar menuseparator
29546 \begin_inset space ~
29550 \begin_inset space ~
29558 \begin_layout Standard
29559 The list entries are the float captions or its short title, the float number,
29560 and the page number where they appear in the document.
29563 \begin_layout Standard
29564 You can find the list of figures and tables at the end of this document.
29567 \begin_layout Chapter
29571 \begin_layout Section
29574 \begin_inset Index idx
29577 \begin_layout Plain Layout
29578 Notes ! \SpecialChar LyX
29587 \begin_layout Standard
29588 Notes are inserted with the toolbar button
29596 Insert\SpecialChar menuseparator
29600 There are three types of notes:
29603 \begin_layout Description
29606 \begin_inset space ~
29609 Note This note type is for internal notes that won't appear in the output.
29610 Its note-box looks like this:
29611 \begin_inset Newline newline
29615 \begin_inset Newline newline
29619 \begin_inset Graphics
29620 filename clipart/LyXNoteImage.png
29622 scaleBeforeRotation
29627 \begin_inset Note Note
29630 \begin_layout Plain Layout
29631 This is text in a note box that doesn't appear in the output.
29639 \begin_layout Description
29640 Comment This note also doesn't appear in the output but it appears as \SpecialChar LaTeX
29642 when you export the document to \SpecialChar LaTeX
29645 File\SpecialChar menuseparator
29646 Export\SpecialChar menuseparator
29648 \begin_inset space ~
29651 (pdflatex) / (plain)
29654 Its note-box looks like this:
29655 \begin_inset Newline newline
29659 \begin_inset Newline newline
29663 \begin_inset Graphics
29664 filename clipart/CommentNoteImage.png
29666 scaleBeforeRotation
29671 \begin_inset Note Comment
29674 \begin_layout Plain Layout
29675 This is text in a note box that only appears as comment in \SpecialChar LaTeX
29684 \begin_layout Description
29686 \begin_inset space ~
29689 Out This note will appear in the output as grey text.
29690 Its note-box looks like this:
29691 \begin_inset Newline newline
29695 \begin_inset Newline newline
29699 \begin_inset Graphics
29700 filename clipart/GreyedOutNoteImage.png
29702 scaleBeforeRotation
29707 \begin_inset Newline newline
29714 \begin_layout Plain Layout
29718 renewenvironment{lyxgreyedout}
29721 \begin_layout Plain Layout
29725 textcolor[gray]{0.8}
29735 \begin_inset Note Greyedout
29738 \begin_layout Plain Layout
29739 This is text of a comment that appears grey in the output.
29748 \begin_layout Plain Layout
29752 renewenvironment{lyxgreyedout}
29755 \begin_layout Plain Layout
29769 \begin_inset Note Note
29772 \begin_layout Plain Layout
29773 The greyed out note is here redefined to show it with the original \SpecialChar LyX
29775 because greyed out notes are redefined in the preamble of this document,
29776 as described below, to have blue text.
29782 \begin_inset Newline newline
29786 \begin_inset Newline newline
29789 As you can see in the example, the first line of greyed out notes is a bit
29790 indented and greyed out notes can have footnotes.
29793 \begin_layout Standard
29794 \begin_inset VSpace bigskip
29797 When you use the toolbar button
29807 \begin_inset space ~
29813 You can switch between the three note types by right-clicking on the note-box.
29818 If you want to turn existing text into a note, mark it and click on the
29832 To change a note to text, press the backspace key when the cursor is in
29833 the first position of a note, or press the delete key when the cursor is
29834 in the very last position of the note, respectively.
29837 \begin_layout Standard
29838 \begin_inset VSpace bigskip
29841 You can change the text color of the greyed out notes in the menu
29843 Document\SpecialChar menuseparator
29844 Settings\SpecialChar menuseparator
29850 \begin_layout Section
29852 \begin_inset CommandInset label
29854 name "sec:Footnotes"
29859 \begin_inset Index idx
29862 \begin_layout Plain Layout
29869 \begin_inset Index idx
29872 \begin_layout Plain Layout
29881 \begin_layout Standard
29882 Footnotes can be inserted using the toolbar button
29885 arg "footnote-insert"
29890 Insert\SpecialChar menuseparator
29894 You will then see the following footnote-box:
29895 \begin_inset Graphics
29896 filename clipart/footnote.png
29898 scaleBeforeRotation
29906 where you can enter the footnote text.
29907 If you want to turn existing text into a footnote, mark it and click on
29933 key when the cursor is in the first position of a
29945 key when the cursor is in the very last position of the
29956 \begin_layout Standard
29957 Here is an example footnote:
29965 \begin_layout Plain Layout
29966 \begin_inset CommandInset label
29968 name "foot:This-is-an"
29972 This is an example footnote.
29985 \begin_layout Plain Layout
29989 newcounter{MyRepeatFoot}
29992 \begin_layout Plain Layout
29996 setcounter{MyRepeatFoot}{
30006 \begin_layout Standard
30007 The footnote will appear in the output as a superscript number at the text
30008 position where the footnote box is placed.
30009 The footnote text is placed at the bottom of the current page.
30010 The footnote number is calculated by \SpecialChar LaTeX
30011 ; the numbers are consecutive.
30012 Whether the footnote number is reset for every chapter depends on your
30016 \begin_layout Standard
30017 Footnotes can be referenced like floats: Insert a label into the footnote
30018 and cross-reference this label in the text as described in section
30019 \begin_inset space ~
30023 \begin_inset CommandInset ref
30025 reference "sec:Referencing-Floats"
30030 \begin_inset Newline newline
30033 This is a cross-reference of Footnote
30034 \begin_inset space ~
30038 \begin_inset CommandInset ref
30040 reference "foot:This-is-an"
30047 \begin_layout Standard
30048 \begin_inset VSpace defskip
30051 Footnotes in title environments are usually not numbered with symbols and
30052 they cannot contain several paragraphs.
30053 See for example the footnote in the titling of this document.
30056 \begin_layout Standard
30057 \begin_inset VSpace defskip
30060 Footnotes in tables are not printed by \SpecialChar LaTeX
30061 due to technical reasons.
30062 However there exists another method to print them: Instead of the footnote
30069 is inserted as \SpecialChar TeX
30071 The text of the footnote is entered as an argument of the \SpecialChar TeX
30080 \begin_inset Newline newline
30083 This was done for the following table with the command
30086 \begin_layout Standard
30093 Printed table footnote.
30098 \begin_layout Standard
30099 \begin_inset Tabular
30100 <lyxtabular version="3" rows="2" columns="1">
30101 <features tabularvalignment="middle">
30102 <column alignment="center" valignment="top">
30104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30107 \begin_layout Plain Layout
30108 This an example text.
30112 \begin_layout Plain Layout
30113 This footnote will not be printed!
30125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30128 \begin_layout Plain Layout
30129 This an example text.
30133 \begin_layout Plain Layout
30156 \begin_layout Plain Layout
30165 Printed table footnote.
30169 \begin_layout Plain Layout
30179 \begin_layout Standard
30180 Footnotes in multi-page tables are described in section
30181 \begin_inset space ~
30185 \begin_inset CommandInset ref
30187 reference "subsec:Footnotes-in-Multi-page"
30194 \begin_layout Standard
30195 Footnotes in minipage boxes are printed, but inside the box and with a different
30196 numbering because a minipage box is like a page inside a page.
30197 (For more about minipages, see section
30198 \begin_inset space ~
30202 \begin_inset CommandInset ref
30204 reference "sec:Minipages"
30208 .) To get a footnote in the minipage that is output at the bottom of the
30209 page like normal footnotes, also use the method of
30224 \begin_layout Standard
30225 \begin_inset Box Frameless
30235 height_special "totalheight"
30240 backgroundcolor "none"
30243 \begin_layout Plain Layout
30244 This an example text in a minipage.
30248 \begin_layout Plain Layout
30249 Footnote in the minipage.
30257 \begin_layout Plain Layout
30258 This an example text in a minipage.
30262 \begin_layout Plain Layout
30279 \begin_layout Standard
30283 \begin_layout Plain Layout
30292 Footnote outside the minipage.
30296 \begin_layout Plain Layout
30306 \begin_layout Standard
30307 \begin_inset VSpace defskip
30313 \begin_layout Standard
30314 To refer to the same footnote several times without printing the footnote
30315 text every time, use the command
30319 footnotemark[number]
30321 in \SpecialChar TeX
30323 \begin_inset Newline newline
30326 As you do not know the number of the repeating footnote while you are writing
30327 the text, you have to store its number.
30328 For the following footnote mark example, these commands were inserted in
30330 code after Footnote
30331 \begin_inset space ~
30335 \begin_inset CommandInset ref
30337 reference "foot:This-is-an"
30341 to store the footnote number:
30344 \begin_layout Standard
30349 newcounter{MyRepeatFoot}
30350 \begin_inset Newline newline
30355 setcounter{MyRepeatFoot}{
30360 \begin_layout Standard
30361 The footnote mark was then created with this command:
30364 \begin_layout Standard
30374 \begin_layout Standard
30375 Here is a repeated footnote:
30383 \begin_layout Plain Layout
30397 \begin_layout Standard
30398 If you want to repeat the previous footnote, you can omit the storage of
30399 the footnote number and just use this command instead:
30402 \begin_layout Standard
30412 \begin_layout Standard
30413 Here is another repeated footnote:
30421 \begin_layout Plain Layout
30435 \begin_layout Subsection
30437 \begin_inset CommandInset label
30439 name "subsec:Footnote-Numbering"
30444 \begin_inset Index idx
30447 \begin_layout Plain Layout
30448 Footnotes ! Numbering
30456 \begin_layout Standard
30457 To reset the footnote number back to 1 after each section
30459 , add this command to your document preamble:
30462 \begin_layout Standard
30467 @addtoreset{footnote}{section}
30470 \begin_layout Standard
30471 \begin_inset VSpace bigskip
30474 The following preamble command changes the footnote numbering style to small
30478 \begin_layout Standard
30490 \begin_layout Standard
30494 \begin_layout Plain Layout
30507 This is a footnote with roman numbering:
30511 \begin_layout Plain Layout
30512 This is an example footnote with roman numbering.
30520 \begin_layout Standard
30521 To change the numbering style to capital roman numerals replace in the command
30536 \begin_inset Quotes eld
30540 \begin_inset Quotes erd
30543 footnotes with capital or small Latin letters use
30557 \begin_inset Quotes eld
30561 \begin_inset Quotes erd
30564 footnotes with symbols use
30573 \begin_layout Standard
30574 \begin_inset Note Greyedout
30577 \begin_layout Plain Layout
30582 You can only number 26 footnotes with Latin letters, because this numbering
30583 is limited to single letters.
30589 \begin_inset Newline newline
30593 \begin_inset Note Greyedout
30596 \begin_layout Plain Layout
30601 You can only number 9 footnotes with symbols.
30609 \begin_layout Standard
30610 To return to the default numbering style after you have changed to another
30623 in the command above.
30627 \begin_layout Plain Layout
30643 \begin_layout Standard
30644 \begin_inset VSpace bigskip
30650 \begin_layout Standard
30651 If you want to have footnotes numbered in the scheme
30652 \begin_inset Quotes eld
30656 \begin_inset Quotes erd
30659 , add the following command to your document preamble:
30662 \begin_layout Standard
30667 numberwithin{footnote}{chapter}
30670 \begin_layout Standard
30671 To be able to use the command
30680 \begin_inset space ~
30685 in the document settings the option
30688 \begin_inset space ~
30692 \begin_inset space ~
30696 \begin_inset space ~
30704 \begin_layout Standard
30708 \begin_layout Plain Layout
30712 numberwithin{footnote}{chapter}
30717 This is another example footnote:
30723 \begin_layout Plain Layout
30724 This is a footnote numbered in the scheme
30725 \begin_inset Quotes eld
30729 \begin_inset Quotes erd
30743 \begin_layout Plain Layout
30759 \begin_layout Standard
30760 \begin_inset Note Greyedout
30763 \begin_layout Plain Layout
30774 always prints out the footnote number as arabic number; previous redefinitions
30775 to get non-arabic numbers are overwritten.
30783 \begin_layout Standard
30784 So to get for example the scheme
30785 \begin_inset Quotes eld
30791 \begin_inset Quotes erd
30794 , use this command instead of
30803 \begin_layout Standard
30817 \begin_layout Subsection
30819 \begin_inset Index idx
30822 \begin_layout Plain Layout
30823 Footnotes ! Placement
30831 \begin_layout Standard
30832 If you have several footnotes in one page, they appear without vertical
30833 space between them at the bottom of the page.
30834 To make them more readable you can e.
30835 \begin_inset space \thinspace{}
30839 \begin_inset space \space{}
30843 \begin_inset space \thinspace{}
30846 mm space with the following preamble command:
30849 \begin_layout Standard
30859 \begin_inset Newline newline
30873 \begin_layout Standard
30874 \begin_inset VSpace bigskip
30877 In a two-column document the footnotes appear at the bottom of every column,
30879 \begin_inset space ~
30883 \begin_inset CommandInset ref
30885 reference "fig:Standard-footnote-placement"
30890 If the footnotes should only appear at the bottom of the right column,
30892 \begin_inset space ~
30896 \begin_inset CommandInset ref
30898 reference "fig:Footnote-placement-in"
30902 , use the \SpecialChar LaTeX
30908 \begin_inset Index idx
30911 \begin_layout Plain Layout
30913 -packages ! ftnright
30918 with this command in the document preamble:
30921 \begin_layout Standard
30926 usepackage{ftnright}
30929 \begin_layout Standard
30930 \begin_inset Float figure
30936 \begin_layout Plain Layout
30939 \begin_inset Box Boxed
30949 height_special "totalheight"
30954 backgroundcolor "none"
30957 \begin_layout Plain Layout
30958 \begin_inset Graphics
30959 filename clipart/without_fntright.pdf
30961 scaleBeforeRotation
30973 \begin_layout Plain Layout
30974 \begin_inset Caption Standard
30976 \begin_layout Plain Layout
30977 \begin_inset CommandInset label
30979 name "fig:Standard-footnote-placement"
30983 Standard footnote placement in two-column documents.
30996 \begin_layout Standard
30997 \begin_inset Float figure
31003 \begin_layout Plain Layout
31006 \begin_inset Box Boxed
31016 height_special "totalheight"
31021 backgroundcolor "none"
31024 \begin_layout Plain Layout
31025 \begin_inset Graphics
31026 filename clipart/with_fntright.pdf
31028 scaleBeforeRotation
31040 \begin_layout Plain Layout
31041 \begin_inset Caption Standard
31043 \begin_layout Plain Layout
31044 \begin_inset CommandInset label
31046 name "fig:Footnote-placement-in"
31050 Footnote placement in two-column documents when the \SpecialChar LaTeX
31068 \begin_layout Standard
31069 \begin_inset VSpace bigskip
31072 In some scientific literature it is usual to collect the footnotes and print
31073 them in a separate paragraph at the end of a section, as in Figure
31074 \begin_inset space ~
31078 \begin_inset CommandInset ref
31080 reference "fig:Endnotes"
31085 They are then called
31086 \begin_inset Quotes eld
31090 \begin_inset Quotes erd
31094 \begin_inset Index idx
31097 \begin_layout Plain Layout
31103 To use endnotes instead of footnotes in your document, load in the menu
31106 Document\SpecialChar menuseparator
31107 Settings\SpecialChar menuseparator
31113 \begin_inset space ~
31117 \begin_inset space ~
31123 To insert the collected footnotes, insert the command
31126 \begin_layout Standard
31134 \begin_layout Standard
31135 in \SpecialChar TeX
31136 Code at the end of a section or chapter.
31139 \begin_layout Standard
31140 \begin_inset Float figure
31145 \begin_layout Plain Layout
31148 \begin_inset Box Boxed
31158 height_special "totalheight"
31163 backgroundcolor "none"
31166 \begin_layout Plain Layout
31167 \begin_inset Graphics
31168 filename clipart/endnotes.pdf
31170 scaleBeforeRotation
31182 \begin_layout Plain Layout
31183 \begin_inset Caption Standard
31185 \begin_layout Plain Layout
31186 \begin_inset CommandInset label
31188 name "fig:Endnotes"
31192 Endnotes – footnotes are printed in a separate paragraph at the end of sections
31206 \begin_layout Standard
31207 \begin_inset VSpace medskip
31210 The paragraph heading for the endnotes isn't automatically translated into
31211 the document language, this must be done manually.
31212 The following preamble command translates the default English
31213 \begin_inset Quotes eld
31217 \begin_inset Quotes erd
31221 \begin_inset Quotes eld
31225 \begin_inset Quotes erd
31231 \begin_layout Standard
31238 notesname}{Anmerkungen}
31241 \begin_layout Standard
31242 \begin_inset VSpace medskip
31245 The numbering of endnotes can be changed like the footnote numbering as
31246 described in section
31247 \begin_inset space ~
31251 \begin_inset CommandInset ref
31253 reference "subsec:Footnote-Numbering"
31257 ; just replace the command
31270 To reset the endnote number use the command
31276 as described in section
31277 \begin_inset space ~
31281 \begin_inset CommandInset ref
31283 reference "subsec:Footnote-Numbering"
31287 and replace the command parameter
31298 \begin_layout Standard
31299 For endnotes there is the command
31303 endnotemark[number]
31305 similar to the command
31311 , that is described in section
31312 \begin_inset space ~
31316 \begin_inset CommandInset ref
31318 reference "sec:Footnotes"
31325 \begin_layout Standard
31326 \begin_inset VSpace bigskip
31329 Footnotes can also be placed in the page margin and the footnote text alignment
31330 can be changed, see the \SpecialChar LaTeX
31336 \begin_inset Index idx
31339 \begin_layout Plain Layout
31341 -packages ! footmisc
31347 \begin_inset CommandInset citation
31353 for more information about this.
31356 \begin_layout Standard
31357 For various further footnote formatting issues have a look at \SpecialChar LaTeX
31359 \begin_inset CommandInset citation
31361 key "latexcompanion,latexguide,latexbook"
31371 \begin_inset Index idx
31374 \begin_layout Plain Layout
31376 -packages ! KOMA-Script
31381 document class, you can adjust all footnote settings using class-specific
31383 \begin_inset CommandInset citation
31392 \begin_layout Section
31394 \begin_inset Index idx
31397 \begin_layout Plain Layout
31398 Notes ! Margin Notes
31406 \begin_layout Standard
31407 Margin notes look and behave in \SpecialChar LyX
31409 They are inserted via the menu
31411 Insert\SpecialChar menuseparator
31413 \begin_inset space ~
31418 or the toolbar button
31421 arg "marginalnote-insert"
31435 \begin_inset Quotes eld
31439 \begin_inset Quotes erd
31442 appears where you can enter the text of the margin note.
31445 \begin_layout Standard
31446 At the side is an example margin note.
31451 \begin_inset Marginal
31454 \begin_layout Plain Layout
31455 This is a margin note.
31463 \begin_layout Standard
31464 Margin notes appear at the right side in single-sided documents.
31465 In double-sided documents they appear in the outer margin – left on even
31466 pages, right on odd pages.
31467 The text of margin notes is aligned opposite to the outer margin – right-aligne
31468 d when the note appears in the left margin.
31469 The first line of the margin note is placed at the position of the text
31470 line where it is inserted in the document.
31473 \begin_layout Standard
31474 \begin_inset VSpace bigskip
31477 To place the margin note in the inner margin, add the command
31480 \begin_layout Standard
31488 \begin_layout Standard
31489 in \SpecialChar TeX
31490 Code before a margin note.
31491 The new placement is valid for all subsequent margin notes.
31496 \begin_layout Plain Layout
31506 \begin_inset Marginal
31509 \begin_layout Plain Layout
31510 This is a margin note in the inner margin.
31518 \begin_inset Newline newline
31524 \begin_inset Note Greyedout
31527 \begin_layout Plain Layout
31532 There is often not enough space in the inner margin so that the notes are
31533 not correctly displayed in the output.
31541 \begin_layout Standard
31542 To return to the default placement insert the command
31545 \begin_layout Standard
31553 \begin_layout Standard
31554 in \SpecialChar TeX
31559 \begin_layout Plain Layout
31569 \begin_inset Note Greyedout
31572 \begin_layout Plain Layout
31577 The command is ignored when it is within a paragraph where also the command
31592 \begin_layout Standard
31593 \begin_inset VSpace bigskip
31600 \begin_inset Marginal
31603 \begin_layout Plain Layout
31604 AVeryLongMarginParWord that isn't hyphenated.
31612 Similar to the case described in section
31613 \begin_inset space ~
31617 \begin_inset CommandInset ref
31619 reference "subsec:Multiple-Lines-in"
31623 , long words cannot be hyphenated when they are the first word in a margin
31625 To avoid this, insert 0
31626 \begin_inset space \thinspace{}
31629 pt horizontal space before the word
31634 \begin_inset Marginal
31637 \begin_layout Plain Layout
31638 \begin_inset space \hspace*{}
31642 AVeryLongMarginParWord that is hyphenated.
31650 \begin_layout Standard
31651 \begin_inset VSpace bigskip
31657 \begin_layout Standard
31658 \begin_inset Note Greyedout
31661 \begin_layout Plain Layout
31666 Margin notes can normally not be used inside tables, floats, and footnotes.
31674 \begin_layout Standard
31675 \begin_inset VSpace bigskip
31681 \begin_layout Standard
31685 \begin_layout Plain Layout
31695 \begin_inset Note Note
31698 \begin_layout Plain Layout
31699 The following section will only be displayed when the \SpecialChar LaTeX
31712 \begin_layout Standard
31713 This restriction can be evaded by using the \SpecialChar LaTeX
31719 \begin_inset Index idx
31722 \begin_layout Plain Layout
31724 -packages ! marginnote
31730 By adding these two lines to your document preamble, the command used by
31732 for margin notes is redefined to use the command provided by the
31739 \begin_layout Standard
31744 usepackage{marginnote}
31745 \begin_inset Newline newline
31757 \begin_layout Standard
31758 This is also used in this document because
31762 has another useful feature: You can set a vertical offset for the note.
31763 This is often needed when too many margin notes are too close together
31764 or for a better page layout.
31765 The offset is set in \SpecialChar LyX
31766 as \SpecialChar TeX
31767 Code directly after the margin note in the scheme
31770 \begin_layout Standard
31776 \begin_layout Standard
31777 where the offset is a length with one of the units listed in Table
31778 \begin_inset space ~
31782 \begin_inset CommandInset ref
31784 reference "tab:Units"
31789 A negative value shifts the note up, a positive value shifts it down.
31793 For example the margin note beside this text line is shifted up 1.5
31794 \begin_inset space \thinspace{}
31797 cm with the \SpecialChar TeX
31799 \begin_inset Quotes eld
31809 \begin_inset Quotes erd
31813 \begin_inset Marginal
31816 \begin_layout Plain Layout
31817 This margin note is shifted up 1.5
31818 \begin_inset space \thinspace{}
31821 cm from its original position.
31833 \begin_layout Plain Layout
31843 \begin_layout Standard
31844 \begin_inset VSpace medskip
31851 you can also change the alignment of the text in the margin note.
31852 For example the commands
31855 \begin_layout Standard
31862 raggedleftmarginnote}{
31865 \begin_inset Newline newline
31872 raggedrightmarginnote}{
31877 \begin_layout Standard
31878 set the alignment to centered.
31883 raggedleftmarginnote
31885 denotes margin notes that appear at the left side.
31892 \begin_layout Plain Layout
31898 raggedleftmarginnote}{
31903 \begin_layout Plain Layout
31909 raggedrightmarginnote}{
31917 \begin_inset Marginal
31920 \begin_layout Plain Layout
31921 The text of this margin note is centered.
31932 \begin_layout Standard
31939 raggedleftmarginnote}{
31942 \begin_inset Newline newline
31949 raggedrightmarginnote}{
31958 \begin_layout Plain Layout
31964 raggedleftmarginnote}{
31969 \begin_layout Plain Layout
31975 raggedrightmarginnote}{
31985 \begin_layout Standard
31986 \begin_inset VSpace medskip
31989 For the other features of
31993 refer to its documentation
31994 \begin_inset CommandInset citation
32003 \begin_layout Standard
32004 \begin_inset VSpace bigskip
32007 You can adjust the layout of margin notes by changing its definition.
32008 To create for example a header for all margin notes with the underlined,
32009 sans-serif, and bold header text
32010 \begin_inset Quotes eld
32022 \begin_inset Quotes erd
32025 , add this to your document preamble:
32028 \begin_layout Standard
32038 \begin_inset Newline newline
32048 \begin_inset Newline newline
32052 \begin_inset Phantom HPhantom
32055 \begin_layout Plain Layout
32058 \begin_inset space ~
32074 underbar{Attention!}}}%
32075 \begin_inset Newline newline
32079 \begin_inset Phantom HPhantom
32082 \begin_layout Plain Layout
32085 \begin_inset space ~
32102 \begin_layout Standard
32109 \begin_layout Plain Layout
32120 \begin_layout Plain Layout
32131 \begin_layout Plain Layout
32139 underbar{Attention!}}}%
32142 \begin_layout Plain Layout
32156 \begin_inset Marginal
32159 \begin_layout Plain Layout
32160 This is a margin note with a defined heading.
32172 \begin_layout Plain Layout
32186 \begin_layout Plain Layout
32203 \begin_inset Note Note
32206 \begin_layout Plain Layout
32207 The margin note format is changed only for this example.
32215 \begin_layout Standard
32219 \begin_layout Plain Layout
32229 \begin_inset Note Note
32232 \begin_layout Plain Layout
32233 The following will be displayed when the \SpecialChar LaTeX
32246 \begin_layout Standard
32247 You need to install the \SpecialChar LaTeX
32252 to see the following part of this section in the output.
32255 \begin_layout Standard
32259 \begin_layout Plain Layout
32271 \begin_layout Chapter
32275 \begin_layout Section
32277 \begin_inset Index idx
32280 \begin_layout Plain Layout
32281 Boxes ! Introduction
32289 \begin_layout Standard
32290 Boxes are used to format a block of text.
32291 Boxes can be used to write documents with multiple languages, see section
32292 \begin_inset space ~
32296 \begin_inset CommandInset ref
32298 reference "sec:Minipages"
32302 , to frame texts, see section
32303 \begin_inset space ~
32307 \begin_inset CommandInset ref
32309 reference "sec:Decoration"
32313 , to prevent words from being hyphenated, see section
32314 \begin_inset space ~
32318 \begin_inset CommandInset ref
32320 reference "sec:Prevent-Hyphenation"
32324 , to align text, see section
32325 \begin_inset space ~
32329 \begin_inset CommandInset ref
32331 reference "subsec:Vertical-Alignment"
32335 , or to set the background color of texts, see section
32336 \begin_inset space ~
32340 \begin_inset CommandInset ref
32342 reference "sec:Colored-Boxes"
32349 \begin_layout Standard
32350 Boxes can be inserted with the menu
32352 Insert\SpecialChar menuseparator
32355 or the toolbar button
32358 arg "box-insert Frameless"
32362 A grey box with the label
32367 \begin_inset Graphics
32368 filename clipart/BoxInsetDefault.png
32370 scaleBeforeRotation
32375 The box type can be specified by right-clicking on the box and selecting
32381 The box dialog offers the
32384 \begin_inset space ~
32406 is the default for new boxes and is explained in section
32407 \begin_inset space ~
32411 \begin_inset CommandInset ref
32413 reference "sec:Minipages"
32421 is described in section
32422 \begin_inset space ~
32426 \begin_inset CommandInset ref
32428 reference "sec:Parboxes"
32437 \begin_inset CommandInset ref
32439 reference "sec:Prevent-Hyphenation"
32446 \begin_layout Standard
32447 Boxes are not numbered and can therefore not be referenced like floats or
32451 \begin_layout Standard
32452 \begin_inset Note Greyedout
32455 \begin_layout Plain Layout
32460 Boxes must not be the item in an
32476 \begin_layout Standard
32477 \begin_inset Note Greyedout
32480 \begin_layout Plain Layout
32485 For an unknown reason you can only set the
32488 \begin_inset space ~
32497 when you use a framed box.
32501 \begin_inset space ~
32506 type and without frames are explained in section
32507 \begin_inset space ~
32511 \begin_inset CommandInset ref
32513 reference "sec:Prevent-Hyphenation"
32525 \begin_layout Section
32527 \begin_inset CommandInset label
32529 name "sec:Box-Dialog"
32534 \begin_inset Index idx
32537 \begin_layout Plain Layout
32546 \begin_layout Subsection
32548 \begin_inset Index idx
32551 \begin_layout Plain Layout
32560 \begin_layout Standard
32561 In the box dialog you can adjust the box geometry in the fields
32570 The available units for the geometry are explained in Table
32571 \begin_inset space ~
32575 \begin_inset CommandInset ref
32577 reference "tab:Units"
32586 offers the following additional sizes:
32589 \begin_layout Description
32590 Depth This is the plain text
32591 \begin_inset Quotes eld
32595 \begin_inset Quotes erd
32599 It ignores the total depth when there are multiple text lines in the box:
32600 \begin_inset Newline newline
32604 \begin_inset Newline newline
32608 \begin_inset Newline newline
32612 \begin_inset Box Boxed
32622 height_special "depth"
32627 backgroundcolor "none"
32630 \begin_layout Plain Layout
32632 Box height set to 1
32633 \begin_inset space \thinspace{}
32642 \begin_inset Newline newline
32646 \begin_inset Newline newline
32652 \begin_layout Description
32653 Height This is the height of the text that is inside the box.
32655 \begin_inset space \thinspace{}
32659 \begin_inset space \space{}
32662 2 for this size will set the box height to 2
32663 \begin_inset space ~
32666 times the text height:
32667 \begin_inset Box Boxed
32677 height_special "height"
32682 backgroundcolor "none"
32685 \begin_layout Plain Layout
32687 Box height set to 2
32688 \begin_inset space \thinspace{}
32699 \begin_layout Description
32701 \begin_inset space ~
32704 Height This is the Height
32705 \begin_inset space \thinspace{}
32709 \begin_inset space \thinspace{}
32713 \begin_inset Box Boxed
32723 height_special "totalheight"
32728 backgroundcolor "none"
32731 \begin_layout Plain Layout
32733 Box height set to 1
32734 \begin_inset space \thinspace{}
32738 \begin_inset space ~
32749 \begin_layout Description
32750 Width This sets the width of the box as height:
32751 \begin_inset Box Boxed
32761 height_special "width"
32766 backgroundcolor "none"
32769 \begin_layout Plain Layout
32771 Box height set to 1
32772 \begin_inset space \thinspace{}
32783 \begin_layout Subsection
32785 \begin_inset Index idx
32788 \begin_layout Plain Layout
32797 \begin_layout Standard
32798 When you have chosen an
32801 \begin_inset space ~
32806 , the vertical box alignment can be:
32809 \begin_layout Description
32810 Top This is an example text line.
32812 \begin_inset Box Boxed
32822 height_special "totalheight"
32827 backgroundcolor "none"
32830 \begin_layout Plain Layout
32832 This box is top-aligned.
32837 This is an example text line.
32840 \begin_layout Description
32841 Middle This is an example text line.
32843 \begin_inset Box Boxed
32853 height_special "totalheight"
32858 backgroundcolor "none"
32861 \begin_layout Plain Layout
32863 This box is middle-aligned.
32868 This is an example text line.
32871 \begin_layout Description
32872 Bottom This is an example text line.
32874 \begin_inset Box Boxed
32884 height_special "totalheight"
32889 backgroundcolor "none"
32892 \begin_layout Plain Layout
32894 This box is bottom-aligned.
32899 This is an example text line.
32902 \begin_layout Standard
32903 \begin_inset Note Greyedout
32906 \begin_layout Plain Layout
32911 The vertical box alignment can be lost in the output when you have two
32912 boxes in a line and one has e.
32913 \begin_inset space \thinspace{}
32917 \begin_inset space \space{}
32920 a shadow and the other one not.
32928 \begin_layout Standard
32929 The horizontal box alignment can be set via \SpecialChar LyX
32930 's paragraph dialog when you
32931 set the box into its own paragraph.
32934 \begin_layout Standard
32935 \begin_inset VSpace bigskip
32938 When you have chosen an
32941 \begin_inset space ~
32946 , the box content can be aligned vertically to:
32949 \begin_layout Description
32950 top This is an example text line.
32952 \begin_inset Box Boxed
32962 height_special "totalheight"
32967 backgroundcolor "none"
32970 \begin_layout Plain Layout
32972 This box text is top-aligned.
32977 This is an example text line.
32980 \begin_layout Description
32981 middle This is an example text line.
32983 \begin_inset Box Boxed
32993 height_special "totalheight"
32998 backgroundcolor "none"
33001 \begin_layout Plain Layout
33003 This box text is middle-aligned.
33008 This is an example text line.
33011 \begin_layout Description
33012 bottom This is an example text line.
33014 \begin_inset Box Boxed
33024 height_special "totalheight"
33029 backgroundcolor "none"
33032 \begin_layout Plain Layout
33034 This box text is bottom-aligned.
33039 This is an example text line.
33042 \begin_layout Description
33043 stretch This is an example text line.
33045 \begin_inset Box Boxed
33055 height_special "totalheight"
33060 backgroundcolor "none"
33063 \begin_layout Plain Layout
33068 \begin_layout Plain Layout
33073 \begin_layout Plain Layout
33080 This is an example text line.
33083 \begin_layout Standard
33084 To stretch the box content, it must consist of more than one paragraph.
33085 In the example above every text line is in an own paragraph.
33088 \begin_layout Standard
33089 \begin_inset VSpace bigskip
33092 To align the box content horizontally you can use \SpecialChar LyX
33093 's paragraph dialog when
33097 \begin_inset space ~
33105 \begin_layout Standard
33107 \begin_inset Box Boxed
33117 height_special "totalheight"
33122 backgroundcolor "none"
33125 \begin_layout Plain Layout
33130 \begin_layout Plain Layout
33135 \begin_layout Plain Layout
33145 \begin_layout Standard
33146 If you have not set an
33149 \begin_inset space ~
33154 , you can align the box content horizontally in the box dialog.
33155 \begin_inset Separator latexpar
33161 \begin_layout Standard
33163 \begin_inset Box Boxed
33173 height_special "totalheight"
33178 backgroundcolor "none"
33181 \begin_layout Plain Layout
33182 This box text is horizontally stretched.
33190 \begin_layout Subsection
33192 \begin_inset CommandInset label
33194 name "sec:Decoration"
33199 \begin_inset Index idx
33202 \begin_layout Plain Layout
33211 \begin_layout Standard
33212 The type of the box can be specified in the box dialog in the drop-down
33218 The following types are possible:
33221 \begin_layout Description
33223 \begin_inset space ~
33226 frame Nothing is drawn.
33229 \begin_layout Description
33231 \begin_inset space ~
33235 \begin_inset space ~
33238 frame This draws a rectangular frame around the box.
33239 The frame line thickness can be specified.
33241 \begin_inset Box Boxed
33251 height_special "totalheight"
33256 backgroundcolor "none"
33259 \begin_layout Plain Layout
33269 \begin_layout Description
33271 \begin_inset space ~
33275 \begin_inset space ~
33278 thin This draws an oval frame around the box.
33279 The frame line thickness has the size 0.4
33280 \begin_inset space \thinspace{}
33285 \begin_inset Box ovalbox
33295 height_special "totalheight"
33300 backgroundcolor "none"
33303 \begin_layout Plain Layout
33313 \begin_layout Description
33315 \begin_inset space ~
33319 \begin_inset space ~
33322 thick This draws an oval frame around the box.
33323 The frame line thickness has the size 0.8
33324 \begin_inset space \thinspace{}
33329 \begin_inset Box Ovalbox
33339 height_special "totalheight"
33344 backgroundcolor "none"
33347 \begin_layout Plain Layout
33357 \begin_layout Description
33359 \begin_inset space ~
33362 shadow This draws a rectangular frame with a shadow around the box.
33363 The frame line thickness and the shadow can be specified.
33365 \begin_inset Box Shadowbox
33375 height_special "totalheight"
33380 backgroundcolor "none"
33383 \begin_layout Plain Layout
33393 \begin_layout Description
33395 \begin_inset space ~
33398 background This draws a box with a red background.
33399 Unlike colored boxes
33403 \begin_layout Plain Layout
33405 \begin_inset space \thinspace{}
33409 \begin_inset CommandInset ref
33411 reference "sec:Colored-Boxes"
33420 , it always uses the whole column width and the box is set as its own paragraph.
33422 \begin_inset Box Shaded
33432 height_special "totalheight"
33437 backgroundcolor "none"
33440 \begin_layout Plain Layout
33441 Shaded background box
33449 \begin_layout Description
33451 \begin_inset space ~
33455 \begin_inset space ~
33458 frame This draws a double-line rectangular frame around the box.
33459 The line thickness of the inner frame is 0.75
33460 \begin_inset space \thinspace{}
33464 \begin_inset space ~
33467 thickness, the thickness of the outer frame is 1.5
33468 \begin_inset space \thinspace{}
33472 \begin_inset space ~
33476 The distance between the lines is 1.5
33477 \begin_inset space \thinspace{}
33481 \begin_inset space ~
33485 \begin_inset space \thinspace{}
33489 \begin_inset space \thinspace{}
33493 \begin_inset space \thinspace{}
33498 \begin_inset Box Doublebox
33508 height_special "totalheight"
33513 backgroundcolor "none"
33516 \begin_layout Plain Layout
33518 Double rectangular box
33526 \begin_layout Standard
33527 \begin_inset VSpace bigskip
33531 's box label will reflect the different frame types.
33532 To be able to use all types, the \SpecialChar LaTeX
33538 \begin_inset Index idx
33541 \begin_layout Plain Layout
33543 -packages ! fancybox
33551 \begin_layout Standard
33552 \begin_inset VSpace bigskip
33555 When you use the decoration
33557 simple rectangular frame
33559 and no inner box, you can allow page breaks within a box.
33560 Note that then, unlike other framed boxes, the frame always uses the whole
33561 column width and the box is set as its own paragraph:
33562 \begin_inset Box Framed
33572 height_special "totalheight"
33577 backgroundcolor "none"
33580 \begin_layout Plain Layout
33581 Allow page break box
33589 \begin_layout Section
33591 \begin_inset Index idx
33594 \begin_layout Plain Layout
33595 Boxes ! Customization
33603 \begin_layout Standard
33604 The diameter of the round corners of the oval boxes can be set with the
33615 \begin_layout Standard
33623 \begin_layout Standard
33624 sets the diameter to 1
33625 \begin_inset space \thinspace{}
33632 \begin_layout Standard
33640 \begin_layout Standard
33641 sets the diameter to
33644 \begin_inset space \thinspace{}
33648 \begin_inset space \thinspace{}
33651 minimum(width and height of box)
33663 \begin_layout Standard
33667 \begin_layout Plain Layout
33677 \begin_inset Box Ovalbox
33687 height_special "totalheight"
33692 backgroundcolor "none"
33695 \begin_layout Plain Layout
33704 \begin_inset space \thinspace{}
33708 \begin_inset space \thinspace{}
33712 \begin_inset space \thinspace{}
33724 \begin_layout Plain Layout
33736 \begin_layout Standard
33737 \begin_inset VSpace bigskip
33743 \begin_layout Standard
33744 The default background color red of
33748 boxes can either be changed locally with the command
33752 definecolor{shadecolor}
33754 or globally with the menu
33756 Tools\SpecialChar menuseparator
33757 Preferences\SpecialChar menuseparator
33758 Colors\SpecialChar menuseparator
33760 \begin_inset space ~
33772 command is explained in section
33773 \begin_inset space ~
33777 \begin_inset CommandInset ref
33779 reference "sec:Colored-Tables"
33787 \begin_layout Plain Layout
33794 requires the \SpecialChar LaTeX
33799 in the preamble, see section
33800 \begin_inset space ~
33804 \begin_inset CommandInset ref
33806 reference "sec:Colored-Boxes"
33815 For example the appearance of the following shaded background box is set
33816 with the \SpecialChar TeX
33820 \begin_layout Standard
33825 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33828 \begin_layout Standard
33832 \begin_layout Plain Layout
33836 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
33842 \begin_inset Box Shaded
33852 height_special "totalheight"
33857 backgroundcolor "none"
33860 \begin_layout Plain Layout
33863 This is yellow text in a
33873 box with dark green background.
33882 \begin_layout Plain Layout
33886 definecolor{shadecolor}{rgb}{1,0,0}
33894 \begin_layout Standard
33895 \begin_inset VSpace bigskip
33898 Manually changed sizes and colors are valid for all boxes following the
33899 commands that change them.
33902 \begin_layout Section
33904 \begin_inset CommandInset label
33906 name "sec:Minipages"
33911 \begin_inset Index idx
33914 \begin_layout Plain Layout
33923 \begin_layout Standard
33924 Minipages are treated by \SpecialChar LaTeX
33925 as pages within pages and can therefore for example
33926 have their own footnotes.
33929 \begin_layout Standard
33930 Minipages are useful when you write documents with different languages.
33933 \begin_layout Standard
33934 Below are two example minipages side by side.
33935 Their width is set to 45
33936 \begin_inset space \thinspace{}
33939 col% and they are separated by a horizontal fill, that was inserted via
33942 Insert\SpecialChar menuseparator
33944 \begin_inset space ~
33947 Formatting\SpecialChar menuseparator
33949 \begin_inset space ~
33955 \begin_inset Newpage newpage
33961 \begin_layout Standard
33962 \begin_inset Box Frameless
33972 height_special "totalheight"
33977 backgroundcolor "none"
33980 \begin_layout Plain Layout
33983 Dies ist ein deutscher Text.
33984 Dies ist ein deutscher Text.
33985 Dies ist ein deutscher Text.
33986 Dies ist ein deutscher Text.
33987 Dies ist ein deutscher Text.
33988 Dies ist ein deutscher Text.
33989 Dies ist ein deutscher Text.
33990 Dies ist ein deutscher Text.
33991 Dies ist ein deutscher Text.
33992 Dies ist ein deutscher Text.
33993 Dies ist ein deutscher Text.
33994 Dies ist ein deutscher Text.
33995 Dies ist ein deutscher Text
33999 \begin_layout Plain Layout
34002 Dies ist eine deutsche Fußnote.
34008 Dies ist ein deutscher Text.
34009 Dies ist ein deutscher Text.
34015 \begin_inset space \hfill{}
34019 \begin_inset Box Frameless
34029 height_special "totalheight"
34034 backgroundcolor "none"
34037 \begin_layout Plain Layout
34038 This is an English Text.
34039 This is an English Text.
34040 This is an English Text.
34041 This is an English Text.
34042 This is an English Text.
34043 This is an English Text.
34044 This is an English Text.
34045 This is an English Text.
34046 This is an English Text.
34047 This is an English Text.
34048 This is an English Text.
34049 This is an English Text.
34050 This is an English Text.
34051 This is an English Text.
34052 This is an English Text.
34053 This is an English Text.
34057 \begin_layout Plain Layout
34058 This is an English footnote.
34063 This is an English Text.
34071 \begin_layout Standard
34072 \begin_inset VSpace bigskip
34075 The document-wide paragraph settings are ignored within minipages.
34076 That means that there will be no space between paragraphs in minipages
34077 although you set it to e.
34078 \begin_inset space \thinspace{}
34082 \begin_inset space \space{}
34089 in the document settings.
34092 \begin_layout Standard
34093 Minipages can also be used to set a background color for text parts, see
34095 \begin_inset space ~
34099 \begin_inset CommandInset ref
34101 reference "sec:Colored-Boxes"
34108 \begin_layout Standard
34109 \begin_inset Note Greyedout
34112 \begin_layout Plain Layout
34117 You cannot have floats or margin notes inside minipages but minipages can
34118 be used inside tables, floats, and other boxes.
34126 \begin_layout Standard
34127 \begin_inset VSpace bigskip
34133 \begin_layout Standard
34135 has also basic support for minipages whose size is automatically determined
34136 by the width of their contents, via the module
34138 Variable-width Minipages
34141 The \SpecialChar LyX
34144 varwidth-floats-side-by-side
34146 gives examples of variable-width minipages used for placing two floats
34150 \begin_layout Section
34152 \begin_inset CommandInset label
34154 name "sec:Parboxes"
34159 \begin_inset Index idx
34162 \begin_layout Plain Layout
34171 \begin_layout Standard
34172 Parboxes are very similar to minipages with the difference that they cannot
34174 \begin_inset Separator latexpar
34180 \begin_layout Standard
34182 \begin_inset Box Frameless
34192 height_special "totalheight"
34197 backgroundcolor "none"
34200 \begin_layout Plain Layout
34201 This a text within a parbox.
34202 This a text within a parbox.
34205 \begin_layout Plain Layout
34206 This footnote won't appear:
34210 \begin_layout Plain Layout
34211 This footnote is inside a parbox and will therefore not appear.
34224 \begin_layout Section
34225 Boxes for Words and Characters
34226 \begin_inset Index idx
34229 \begin_layout Plain Layout
34230 Boxes ! for Characters
34238 \begin_layout Subsection
34239 Prevent Hyphenation
34240 \begin_inset CommandInset label
34242 name "sec:Prevent-Hyphenation"
34247 \begin_inset Index idx
34250 \begin_layout Plain Layout
34251 Boxes ! to Prevent Hyphenation
34259 \begin_layout Standard
34260 You can use the box type
34264 to prevent words or text from being hyphenated.
34265 \begin_inset Newline newline
34268 Here is an example text:
34271 \begin_layout Standard
34272 This line is an example to show how you can prevent the hyphenation of
34273 \begin_inset Quotes eld
34277 \begin_inset Quotes erd
34283 \begin_layout Standard
34284 To prevent the hyphenation of the word
34285 \begin_inset Quotes eld
34289 \begin_inset Quotes erd
34292 , put the word into a box, set the
34295 \begin_inset space ~
34304 and use no explicit width.
34307 \begin_layout Standard
34308 This is the result:
34311 \begin_layout Standard
34312 This line is an example to show how you can prevent the hyphenation of
34313 \begin_inset Box Frameless
34323 height_special "totalheight"
34328 backgroundcolor "none"
34331 \begin_layout Plain Layout
34332 \begin_inset Quotes eld
34336 \begin_inset Quotes erd
34347 \begin_layout Standard
34348 You can alternatively set the command
34349 \begin_inset Quotes eld
34359 \begin_inset Quotes grd
34362 as \SpecialChar TeX
34363 Code directly before the word:
34366 \begin_layout Standard
34367 This line is an example to show how you can prevent the hyphenation of
34368 \begin_inset Quotes eld
34375 \begin_layout Plain Layout
34385 \begin_inset Quotes erd
34391 \begin_layout Standard
34392 Of course the word now protrudes over the side margin.
34393 To avoid this, add via the menu
34395 Insert\SpecialChar menuseparator
34396 Formatting\SpecialChar menuseparator
34398 \begin_inset space ~
34402 \begin_inset space ~
34410 arg "newline-insert newline"
34413 ) a line break before the word:
34416 \begin_layout Standard
34417 This line is an example to show how you can prevent the hyphenation of
34418 \begin_inset Newline newline
34422 \begin_inset Box Frameless
34432 height_special "totalheight"
34437 backgroundcolor "none"
34440 \begin_layout Plain Layout
34441 \begin_inset Quotes eld
34445 \begin_inset Quotes erd
34456 \begin_layout Subsection
34458 \begin_inset CommandInset label
34460 name "subsec:Vertical-Alignment"
34465 \begin_inset Index idx
34468 \begin_layout Plain Layout
34469 Boxes ! for Vertical Alignment
34475 \begin_inset Index idx
34478 \begin_layout Plain Layout
34487 \begin_layout Standard
34488 With the help of the command
34494 you can align words, characters or other boxes vertically relative to the
34502 is used with the following scheme:
34505 \begin_layout Standard
34510 raisebox{lift}[height][depth]{box content}
34513 \begin_layout Standard
34514 The lift can be a positive value to raise the box or a negative value to
34518 \begin_layout Standard
34519 To align for example the word
34520 \begin_inset Quotes eld
34524 \begin_inset Quotes erd
34527 so that the bottom of the
34528 \begin_inset Quotes eld
34532 \begin_inset Quotes erd
34536 \begin_inset Quotes eld
34540 \begin_inset Quotes erd
34543 is at the baseline, insert the command
34546 \begin_layout Standard
34556 \begin_layout Standard
34557 in \SpecialChar TeX
34558 Code before the word.
34559 After the word insert a closing brace
34560 \begin_inset Quotes eld
34568 \begin_inset Quotes erd
34571 in \SpecialChar TeX
34573 \begin_inset Newline newline
34576 This is the result:
34579 \begin_layout Standard
34580 This is a text line with the word
34584 \begin_layout Plain Layout
34596 \begin_inset Quotes eld
34600 \begin_inset Quotes erd
34607 \begin_layout Plain Layout
34617 \begin_layout Standard
34618 \begin_inset VSpace bigskip
34621 When you raise or lower characters in a line, the line distance will be
34625 \begin_layout Standard
34626 This is a text line with the word
34630 \begin_layout Plain Layout
34642 \begin_inset Quotes eld
34646 \begin_inset Quotes erd
34653 \begin_layout Plain Layout
34661 \begin_inset Newline newline
34664 This is a text line with the word
34668 \begin_layout Plain Layout
34678 \begin_inset Quotes eld
34682 \begin_inset Quotes erd
34689 \begin_layout Plain Layout
34699 \begin_layout Standard
34700 If you want to prevent this for a certain reason, set the box height to
34705 \begin_layout Standard
34715 \begin_layout Standard
34716 This is a text line with the word
34720 \begin_layout Plain Layout
34732 \begin_inset Quotes eld
34736 \begin_inset Quotes erd
34743 \begin_layout Plain Layout
34751 \begin_inset Newline newline
34755 \begin_inset Newline newline
34758 This is a text line with the word
34762 \begin_layout Plain Layout
34766 raisebox{0.5cm}[0pt]{
34772 \begin_inset Quotes eld
34776 \begin_inset Quotes erd
34783 \begin_layout Plain Layout
34793 \begin_layout Section
34795 \begin_inset CommandInset label
34797 name "sec:Colored-Boxes"
34802 \begin_inset Index idx
34805 \begin_layout Plain Layout
34814 \begin_layout Standard
34815 To color the background of a box just select the color you like in the box
34817 This is for example a box with orange background:
34818 \begin_inset Box Frameless
34828 height_special "totalheight"
34833 backgroundcolor "orange"
34836 \begin_layout Plain Layout
34837 Box with orange background
34845 \begin_layout Standard
34846 If you use the decoration
34849 \begin_inset space ~
34853 \begin_inset space ~
34858 you can set a frame color.
34859 In this case you must also specify a background color (LyX sets white as
34861 Here is an example:
34862 \begin_inset Box Boxed
34872 height_special "totalheight"
34877 backgroundcolor "yellow"
34880 \begin_layout Plain Layout
34881 Box with teal frame color and yellow background color
34889 \begin_layout Standard
34890 \begin_inset VSpace bigskip
34893 Of course you can also have colored text inside a colored box:
34894 \begin_inset Newline newline
34898 \begin_inset Box Boxed
34908 height_special "totalheight"
34913 backgroundcolor "magenta"
34916 \begin_layout Plain Layout
34919 This is colored text within a colored, framed box
34927 \begin_layout Standard
34928 \begin_inset VSpace bigskip
34934 \begin_layout Standard
34935 If you need another color than the predefined ones, you can define your
34936 own color as described in section
34937 \begin_inset space ~
34941 \begin_inset CommandInset ref
34943 reference "sec:Colored-Tables"
34948 To use your own color you must typeset the box by using TeX code:
34951 \begin_layout Standard
34952 Colored boxes without frame are created with the command
34959 It has the following scheme:
34962 \begin_layout Standard
34967 colorbox{color}{box content}
34970 \begin_layout Standard
34971 The box content can also be a box and colored boxes can also be within other
34974 \begin_inset space \thinspace{}
34978 \begin_inset space \space{}
34981 a darkgreen background for a word, insert the command
34984 \begin_layout Standard
34989 colorbox{darkgreen}{
34992 \begin_layout Standard
34993 before the word in \SpecialChar TeX
34995 After the word insert a closing brace
34996 \begin_inset Quotes eld
35004 \begin_inset Quotes erd
35007 in \SpecialChar TeX
35009 \begin_inset Newline newline
35012 This is the result:
35015 \begin_layout Standard
35016 This is a line where the word
35020 \begin_layout Plain Layout
35024 colorbox{darkgreen}{
35030 \begin_inset Quotes eld
35034 \begin_inset Quotes erd
35041 \begin_layout Plain Layout
35048 has a darkgreen background.
35051 \begin_layout Standard
35052 Framed, colored boxes are created with the command
35059 It has the following scheme:
35062 \begin_layout Standard
35067 fcolorbox{frame color}{box color}{box content}
35070 \begin_layout Section
35071 Rotated and Scaled Boxes
35074 \begin_layout Standard
35075 To use the boxes described in this section, the module
35079 must be loaded in the document settings.
35082 \begin_layout Standard
35083 \begin_inset Note Greyedout
35086 \begin_layout Plain Layout
35091 Not all DVI viewers are able to display rotated or scaled material.
35099 \begin_layout Standard
35100 \begin_inset Note Greyedout
35103 \begin_layout Plain Layout
35108 Floats are not allowed inside a rotated or scaled box.
35116 \begin_layout Subsection
35118 \begin_inset Index idx
35121 \begin_layout Plain Layout
35128 \begin_inset Index idx
35131 \begin_layout Plain Layout
35140 \begin_layout Standard
35141 To rotate material, you can put it into a
35146 Such a box is inserted via the menu
35148 Insert\SpecialChar menuseparator
35149 Custom Insets\SpecialChar menuseparator
35155 \begin_layout Standard
35156 The rotation origin can be specified via the inset
35162 Insert\SpecialChar menuseparator
35170 The following positions are possible:
35190 (top), along with meaningful combinations of the four base positions.
35195 means that the rotation origin is at the top left corner of the box.
35196 When no rotation origin is specified, the position
35201 The rotation angle is a number that can be negative that specifies the
35203 The rotation direction is counterclockwise.
35206 \begin_layout Standard
35207 In the following example
35211 was inserted to the
35219 was inserted to the
35226 \begin_layout Standard
35228 \begin_inset Flex Rotatebox
35231 \begin_layout Plain Layout
35232 \begin_inset Argument 1
35235 \begin_layout Plain Layout
35242 \begin_inset Argument 2
35245 \begin_layout Plain Layout
35259 \begin_layout Standard
35260 The box content can also be another box or an inline formula:
35263 \begin_layout Standard
35265 \begin_inset Flex Rotatebox
35268 \begin_layout Plain Layout
35269 \begin_inset Argument 1
35272 \begin_layout Plain Layout
35279 \begin_inset Argument 2
35282 \begin_layout Plain Layout
35289 \begin_inset Box Doublebox
35299 height_special "totalheight"
35304 backgroundcolor "none"
35307 \begin_layout Plain Layout
35319 \begin_inset Flex Rotatebox
35322 \begin_layout Plain Layout
35323 \begin_inset Argument 1
35326 \begin_layout Plain Layout
35333 \begin_inset Argument 2
35336 \begin_layout Plain Layout
35343 \begin_inset Formula $\int A\,\mathrm{d}x=B$
35354 \begin_layout Standard
35355 or an image or table:
35358 \begin_layout Standard
35360 \begin_inset Flex Rotatebox
35363 \begin_layout Plain Layout
35364 \begin_inset Argument 1
35367 \begin_layout Plain Layout
35374 \begin_inset Argument 2
35377 \begin_layout Plain Layout
35384 \begin_inset Graphics
35385 filename clipart/platypus.eps
35396 with a rotated image
35397 \begin_inset Flex Rotatebox
35400 \begin_layout Plain Layout
35401 \begin_inset Argument 2
35404 \begin_layout Plain Layout
35411 \begin_inset Tabular
35412 <lyxtabular version="3" rows="2" columns="2">
35413 <features tabularvalignment="middle">
35414 <column alignment="center" valignment="top">
35415 <column alignment="center" valignment="top">
35417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35420 \begin_layout Plain Layout
35426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35429 \begin_layout Plain Layout
35437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35440 \begin_layout Plain Layout
35446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35449 \begin_layout Plain Layout
35466 \begin_inset Index idx
35469 \begin_layout Plain Layout
35476 \begin_inset Index idx
35479 \begin_layout Plain Layout
35480 Table Customization ! Rotating
35488 \begin_layout Standard
35489 \begin_inset Note Greyedout
35492 \begin_layout Plain Layout
35501 inset is empty or contains other characters than numbers you will get \SpecialChar LaTeX
35503 errors when viewing/exporting the document.
35511 \begin_layout Subsection
35513 \begin_inset Index idx
35516 \begin_layout Plain Layout
35523 \begin_inset Index idx
35526 \begin_layout Plain Layout
35535 \begin_layout Standard
35536 To scale material put it into a
35541 Such a box is inserted via the menu
35543 Insert\SpecialChar menuseparator
35544 Custom Insets\SpecialChar menuseparator
35550 \begin_layout Standard
35555 inset has the mandatory inset
35559 and the optional inset
35563 (inserted via the menu
35565 Insert\SpecialChar menuseparator
35569 Input there the horizontal and vertical scale factor, respectively.
35574 inset is used, the horizontal factor will also be used as the vertical
35578 \begin_layout Standard
35579 To get for example the double text size, compared to the document text size,
35590 \begin_inset Flex Scalebox
35593 \begin_layout Plain Layout
35594 \begin_inset Argument 1
35597 \begin_layout Plain Layout
35611 \begin_layout Standard
35629 \begin_inset Flex Scalebox
35632 \begin_layout Plain Layout
35633 \begin_inset Argument 1
35636 \begin_layout Plain Layout
35643 \begin_inset Argument 2
35646 \begin_layout Plain Layout
35660 \begin_layout Standard
35661 If the scaling factor is negative, the box content will be mirrored.
35678 can be used to create mirror writing:
35679 \begin_inset Flex Scalebox
35682 \begin_layout Plain Layout
35683 \begin_inset Argument 1
35686 \begin_layout Plain Layout
35693 \begin_inset Argument 2
35696 \begin_layout Plain Layout
35710 \begin_layout Standard
35728 \begin_inset Flex Scalebox
35731 \begin_layout Plain Layout
35732 \begin_inset Argument 1
35735 \begin_layout Plain Layout
35742 \begin_inset Argument 2
35745 \begin_layout Plain Layout
35759 \begin_layout Standard
35766 Insert\SpecialChar menuseparator
35767 Custom Insets\SpecialChar menuseparator
35793 \begin_layout Standard
35794 \begin_inset Note Greyedout
35797 \begin_layout Plain Layout
35806 inset is empty or contains other characters than numbers you will get LaTeX
35807 errors when viewing/exporting the document.
35815 \begin_layout Standard
35816 \begin_inset VSpace bigskip
35825 Insert\SpecialChar menuseparator
35826 Custom Insets\SpecialChar menuseparator
35829 ) is used to scale the content to a defined width and height.
35834 inset has the mandatory inset
35838 and the optional inset
35842 (inserted via the menu
35844 Insert\SpecialChar menuseparator
35848 Input there the width and height, respectively, as value with a unit.
35850 \begin_inset CommandInset ref
35852 reference "tab:Units"
35856 lists the possible units.
35857 If there is an exclamation mark
35861 in of of the two insets, the size is set so that the aspect ratio of the
35862 box content is kept.
35867 inset is used an exclamation mark will internally be used for the height.
35870 \begin_layout Standard
35888 \begin_inset Flex Resizebox
35891 \begin_layout Plain Layout
35892 \begin_inset Argument 1
35895 \begin_layout Plain Layout
35902 \begin_inset Argument 2
35905 \begin_layout Plain Layout
35917 \begin_inset Newline newline
35941 \begin_inset Flex Resizebox
35944 \begin_layout Plain Layout
35945 \begin_inset Argument 1
35948 \begin_layout Plain Layout
35955 \begin_inset Argument 2
35958 \begin_layout Plain Layout
35972 \begin_layout Standard
35973 \begin_inset Note Greyedout
35976 \begin_layout Plain Layout
35985 inset is empty or contains an invalid unit you will get LaTeX errors when
35986 viewing/exporting the document.
35994 \begin_layout Standard
35995 \begin_inset VSpace bigskip
36001 \begin_layout Standard
36002 The boxes can be combined in any order.
36011 which is in turn inside a
36018 \begin_layout Standard
36021 \begin_inset Flex Rotatebox
36024 \begin_layout Plain Layout
36025 \begin_inset Argument 1
36028 \begin_layout Plain Layout
36035 \begin_inset Argument 2
36038 \begin_layout Plain Layout
36045 \begin_inset Flex Resizebox
36048 \begin_layout Plain Layout
36049 \begin_inset Argument 1
36052 \begin_layout Plain Layout
36059 \begin_inset Flex Reflectbox
36062 \begin_layout Plain Layout
36081 \begin_layout Standard
36083 Images, tables, and inline formulas are allowed as box content:
36086 \begin_layout Standard
36089 \begin_inset Flex Resizebox
36092 \begin_layout Plain Layout
36093 \begin_inset Argument 1
36096 \begin_layout Plain Layout
36103 \begin_inset Flex Reflectbox
36106 \begin_layout Plain Layout
36107 \begin_inset Graphics
36108 filename clipart/platypus.eps
36125 \begin_inset Flex Resizebox
36128 \begin_layout Plain Layout
36129 \begin_inset Argument 1
36132 \begin_layout Plain Layout
36139 \begin_inset Flex Reflectbox
36142 \begin_layout Plain Layout
36143 \begin_inset Tabular
36144 <lyxtabular version="3" rows="2" columns="2">
36145 <features tabularvalignment="middle">
36146 <column alignment="center" valignment="top">
36147 <column alignment="center" valignment="top">
36149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36152 \begin_layout Plain Layout
36158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36161 \begin_layout Plain Layout
36169 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36172 \begin_layout Plain Layout
36178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36181 \begin_layout Plain Layout
36203 \begin_inset Flex Resizebox
36206 \begin_layout Plain Layout
36207 \begin_inset Argument 1
36210 \begin_layout Plain Layout
36217 \begin_inset Flex Reflectbox
36220 \begin_layout Plain Layout
36221 \begin_inset Formula $\int A\,\mathrm{d}x=B$
36235 \begin_inset Index idx
36238 \begin_layout Plain Layout
36245 \begin_inset Index idx
36248 \begin_layout Plain Layout
36249 Table Customization ! Scaling
36257 \begin_layout Standard
36258 When the global formula style
36262 is used in the document
36266 \begin_layout Plain Layout
36268 \begin_inset Quotes eld
36272 \begin_inset Quotes erd
36275 is added to the document class options.
36280 , display style formulas can also be scaled.
36283 \begin_layout Chapter
36284 Objects Surrounded by Text
36285 \begin_inset Index idx
36288 \begin_layout Plain Layout
36297 \begin_layout Section
36299 \begin_inset CommandInset label
36301 name "sec:Wrap-Floats"
36306 \begin_inset Index idx
36309 \begin_layout Plain Layout
36310 Floats ! Wrap Floats
36316 \begin_inset Index idx
36319 \begin_layout Plain Layout
36320 Surrounded by text ! Wrap Floats
36328 \begin_layout Standard
36329 \begin_inset Wrap figure
36336 \begin_layout Plain Layout
36337 \begin_inset Graphics
36338 filename clipart/mobius.eps
36340 scaleBeforeRotation
36341 rotateOrigin center
36348 \begin_layout Plain Layout
36349 \begin_inset Caption Standard
36351 \begin_layout Plain Layout
36352 \begin_inset CommandInset label
36354 name "fig:This-is-a"
36358 This is a figure wrap float.
36368 This float type is used if you want to wrap text around a figure or table
36369 so that it only occupies some fraction of the column width.
36370 It can be inserted using the menu
36372 Insert\SpecialChar menuseparator
36373 Floats\SpecialChar menuseparator
36375 \begin_inset space ~
36379 \begin_inset space ~
36387 \begin_inset space ~
36391 \begin_inset space ~
36396 if the \SpecialChar LaTeX
36402 \begin_inset Index idx
36405 \begin_layout Plain Layout
36407 -packages ! wrapfig
36416 \begin_layout Plain Layout
36417 Installing a \SpecialChar LaTeX
36418 -package is explained it in the
36422 \begin_inset space ~
36432 The settings of the float can be modified by right-clicking on the float
36434 The mandatory settings are the float
36447 that specifies how much the float is set into the paragraph
36448 \begin_inset space \thinspace{}
36452 \begin_inset space \thinspace{}
36455 page margin, and the
36458 \begin_inset space ~
36463 that specifies how many text lines the float will approximately need.
36464 The line span is often hard to approximate; so it is better only to use
36465 it when you encounter float placement problems.
36466 You can furthermore decide if \SpecialChar LaTeX
36467 is allowed to let the float float within
36468 the paragraph or to surrounding paragraphs.
36470 \begin_inset space ~
36474 \begin_inset CommandInset ref
36476 reference "fig:This-is-a"
36480 is an example text wrap float with a width of 40
36481 \begin_inset space \thinspace{}
36485 \begin_inset space \thinspace{}
36488 cm overhang, set to the left.
36491 \begin_layout Standard
36492 \begin_inset Note Greyedout
36495 \begin_layout Plain Layout
36501 \begin_inset space ~
36504 wrap float floats are fragile! E.
36505 \begin_inset space \thinspace{}
36509 \begin_inset space \space{}
36512 having a figure too close to the bottom of the page can mess things up in
36513 such a way that the float does not appear in the output or that it is placed
36514 over some other text.
36522 \begin_layout Standard
36523 In general, the following applies for wrap floats:
36526 \begin_layout Itemize
36527 They should not be placed in paragraphs that run over a page break.
36528 That means that wrap floats are better inserted in their exact place when
36529 the document is almost finished and you are able to estimate where page
36530 breaks will appear.
36533 \begin_layout Itemize
36534 They should either be placed in their own paragraph before the paragraph
36535 where they should wrap into or within a paragraph.
36538 \begin_layout Itemize
36539 In consecutive paragraphs they may cause troubles, so ensure that there
36540 is a text paragraph between them as separator.
36543 \begin_layout Itemize
36544 They are not allowed in section headings or tables.
36547 \begin_layout Itemize
36548 Their numbering and referencing works as described in chap.
36549 \begin_inset space \thinspace{}
36553 \begin_inset CommandInset ref
36555 reference "chap:Floats"
36562 \begin_layout Section
36563 Surrounded Fixed Objects
36564 \begin_inset Index idx
36567 \begin_layout Plain Layout
36568 Surrounded by text ! Fixed objects
36576 \begin_layout Standard
36577 The wrap floats described in sec.
36578 \begin_inset space \thinspace{}
36582 \begin_inset CommandInset ref
36584 reference "sec:Wrap-Floats"
36588 have these positions in the paragraph:
36589 \begin_inset Separator latexpar
36595 \begin_layout Standard
36598 \begin_inset Tabular
36599 <lyxtabular version="3" rows="2" columns="2">
36600 <features tabularvalignment="middle">
36601 <column alignment="center" valignment="top">
36602 <column alignment="center" valignment="top">
36604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36607 \begin_layout Plain Layout
36610 arg "dialog-show-new-inset graphics"
36618 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36621 \begin_layout Plain Layout
36629 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36632 \begin_layout Plain Layout
36638 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36641 \begin_layout Plain Layout
36653 \begin_inset Tabular
36654 <lyxtabular version="3" rows="2" columns="2">
36655 <features tabularvalignment="middle">
36656 <column alignment="center" valignment="top">
36657 <column alignment="center" valignment="top">
36659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36662 \begin_layout Plain Layout
36668 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36671 \begin_layout Plain Layout
36674 arg "dialog-show-new-inset graphics"
36684 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36687 \begin_layout Plain Layout
36693 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36696 \begin_layout Plain Layout
36710 \begin_layout Standard
36711 To get an object exactly at the position where it is inserted, for example
36712 to get one of these positions:
36713 \begin_inset VSpace defskip
36719 \begin_layout Standard
36722 \begin_inset Tabular
36723 <lyxtabular version="3" rows="2" columns="2">
36724 <features tabularvalignment="middle">
36725 <column alignment="center" valignment="top">
36726 <column alignment="center" valignment="top">
36728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36731 \begin_layout Plain Layout
36737 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36740 \begin_layout Plain Layout
36748 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36751 \begin_layout Plain Layout
36754 arg "dialog-show-new-inset graphics"
36762 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36765 \begin_layout Plain Layout
36777 \begin_inset Tabular
36778 <lyxtabular version="3" rows="2" columns="2">
36779 <features tabularvalignment="middle">
36780 <column alignment="center" valignment="top">
36781 <column alignment="center" valignment="top">
36783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36786 \begin_layout Plain Layout
36792 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36795 \begin_layout Plain Layout
36803 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36806 \begin_layout Plain Layout
36812 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36815 \begin_layout Plain Layout
36818 arg "dialog-show-new-inset graphics"
36832 \begin_inset Tabular
36833 <lyxtabular version="3" rows="2" columns="3">
36834 <features tabularvalignment="middle">
36835 <column alignment="center" valignment="top">
36836 <column alignment="center" valignment="top">
36837 <column alignment="center" valignment="top">
36839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36842 \begin_layout Plain Layout
36848 <cell alignment="center" valignment="top" topline="true" usebox="none">
36851 \begin_layout Plain Layout
36854 arg "dialog-show-new-inset graphics"
36862 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36865 \begin_layout Plain Layout
36873 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36876 \begin_layout Plain Layout
36882 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36885 \begin_layout Plain Layout
36891 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36894 \begin_layout Plain Layout
36906 \begin_inset Tabular
36907 <lyxtabular version="3" rows="2" columns="3">
36908 <features tabularvalignment="middle">
36909 <column alignment="center" valignment="top">
36910 <column alignment="center" valignment="top">
36911 <column alignment="center" valignment="top">
36913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36916 \begin_layout Plain Layout
36922 <cell alignment="center" valignment="top" topline="true" usebox="none">
36925 \begin_layout Plain Layout
36931 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
36934 \begin_layout Plain Layout
36942 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
36945 \begin_layout Plain Layout
36951 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
36954 \begin_layout Plain Layout
36957 arg "dialog-show-new-inset graphics"
36965 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
36968 \begin_layout Plain Layout
36982 \begin_layout Standard
36985 \begin_inset Tabular
36986 <lyxtabular version="3" rows="3" columns="2">
36987 <features tabularvalignment="middle">
36988 <column alignment="center" valignment="top">
36989 <column alignment="center" valignment="top">
36991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36994 \begin_layout Plain Layout
37000 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37003 \begin_layout Plain Layout
37011 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37014 \begin_layout Plain Layout
37017 arg "dialog-show-new-inset graphics"
37025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37028 \begin_layout Plain Layout
37036 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37039 \begin_layout Plain Layout
37045 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37048 \begin_layout Plain Layout
37060 \begin_inset Tabular
37061 <lyxtabular version="3" rows="3" columns="3">
37062 <features tabularvalignment="middle">
37063 <column alignment="center" valignment="top">
37064 <column alignment="center" valignment="top">
37065 <column alignment="center" valignment="top">
37067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37070 \begin_layout Plain Layout
37076 <cell alignment="center" valignment="top" topline="true" usebox="none">
37079 \begin_layout Plain Layout
37085 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37088 \begin_layout Plain Layout
37096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37099 \begin_layout Plain Layout
37105 <cell alignment="center" valignment="top" usebox="none">
37108 \begin_layout Plain Layout
37111 arg "dialog-show-new-inset graphics"
37119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37122 \begin_layout Plain Layout
37130 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37133 \begin_layout Plain Layout
37139 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
37142 \begin_layout Plain Layout
37148 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37151 \begin_layout Plain Layout
37163 \begin_inset Tabular
37164 <lyxtabular version="3" rows="3" columns="2">
37165 <features tabularvalignment="middle">
37166 <column alignment="center" valignment="top">
37167 <column alignment="center" valignment="top">
37169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
37172 \begin_layout Plain Layout
37178 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
37181 \begin_layout Plain Layout
37189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
37192 \begin_layout Plain Layout
37198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
37201 \begin_layout Plain Layout
37204 arg "dialog-show-new-inset graphics"
37214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
37217 \begin_layout Plain Layout
37223 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
37226 \begin_layout Plain Layout
37240 \begin_layout Standard
37242 you can use the \SpecialChar LaTeX
37248 \begin_inset Index idx
37251 \begin_layout Plain Layout
37253 -packages ! picinpar
37259 Here is an example:
37262 \begin_layout Standard
37266 \begin_layout Plain Layout
37276 \begin_inset Note Note
37279 \begin_layout Plain Layout
37280 The following section will only be displayed when the \SpecialChar LaTeX
37293 \begin_layout Standard
37297 \begin_layout Plain Layout
37301 begin{window}[2,c,{
37307 \begin_inset Graphics
37308 filename clipart/mobius.eps
37311 scaleBeforeRotation
37312 rotateOrigin center
37320 \begin_layout Plain Layout
37325 \begin_layout Plain Layout
37334 It was in the spring of the year 1894 that all London was interested, and
37335 the fashionable world dismayed, by the murder of the Honourable Ronald
37336 Adair under most unusual and inexplicable circumstances.
37337 The public has already learned those particulars of the crime which
37343 \begin_layout Plain Layout
37354 came out in the police investigation, but a good deal was suppressed upon
37355 that occasion, since the case for the prosecution was so overwhelmingly
37356 strong that it was not necessary to bring forward all the facts.
37357 Only now, at the end of nearly ten years, am I allowed to supply those
37358 missing links which make up the whole of that remarkable chain.
37364 \begin_layout Plain Layout
37376 \begin_layout Standard
37380 \begin_layout Plain Layout
37389 Footnote of the paragraph with the fixed object.
37393 \begin_layout Plain Layout
37403 \begin_layout Standard
37404 Surrounded fixed objects are used to let text float around them, at which
37405 the object's position in the paragraph can be determined by the number
37407 In contrary to floats is it not possible to have a numbered caption.
37410 \begin_layout Standard
37411 A fixed object is inserted by adding the command
37414 \begin_layout Standard
37419 begin{window}[2,c,{
37422 \begin_layout Standard
37423 as \SpecialChar TeX
37424 Code at the beginning of the paragraph.
37425 The first parameter in the bracket, here '2', defines the number of lines
37426 above the object, the second, here 'c', the position of the object.
37427 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
37428 Behind the command you insert the object.
37429 In this example an image with a width of 40
37430 \begin_inset space \thinspace{}
37433 % of the text column width was inserted.
37434 The object can also be a table, a box or an equation.
37435 Behind the object the command
37438 \begin_layout Standard
37441 },description text]
37442 \begin_inset Newline newline
37448 \begin_layout Standard
37451 \begin_inset Quotes eld
37459 \begin_inset Quotes erd
37462 is in the second line.
37463 The description text is optional.
37464 The text surrounding the object must be in the same paragraph as the object,
37465 so it must begin directly after the
37470 At the end of the paragraph insert the command:
37473 \begin_layout Standard
37481 \begin_layout Standard
37482 Within a paragraph with a fixed object, you cannot insert footnotes in the
37484 You have to use instead the command
37490 inside the paragraph and outside the command
37496 as described in sec.
37497 \begin_inset space \thinspace{}
37501 \begin_inset CommandInset ref
37503 reference "sec:Footnotes"
37510 \begin_layout Standard
37514 \begin_layout Plain Layout
37524 \begin_inset Note Note
37527 \begin_layout Plain Layout
37528 The following will be displayed when the \SpecialChar LaTeX
37541 \begin_layout Standard
37542 You need to install the \SpecialChar LaTeX
37547 to see the following part of this section in the output.
37550 \begin_layout Standard
37554 \begin_layout Plain Layout
37566 \begin_layout Section
37568 \begin_inset Index idx
37571 \begin_layout Plain Layout
37578 \begin_inset Index idx
37581 \begin_layout Plain Layout
37582 Surrounded by text ! Initials
37590 \begin_layout Standard
37591 To use initials, you must have the \SpecialChar LaTeX
37597 \begin_inset Index idx
37600 \begin_layout Plain Layout
37602 -packages ! lettrine
37607 installed and use the module
37611 in your document (menu
37613 Document\SpecialChar menuseparator
37614 Settings\SpecialChar menuseparator
37618 To insert an initial, use the style
37623 This style has a mandatory and two optional arguments.
37624 The arguments are inserted via the
37629 The mandatory argument
37633 contains the letter(s) that is the initial, the argument
37636 \begin_inset space ~
37640 \begin_inset space ~
37645 contains the rest of the word or text of the initial letter(s).
37650 contains parameters to modify the initial.
37651 For more information about the possible parameters see the documentation
37657 \begin_inset CommandInset citation
37664 The style itself contains the text that is surrounding the initial.
37665 The usual style is hereby that the word whose first letter is the initial,
37673 \begin_layout Standard
37674 Here are some examples:
37677 \begin_layout Standard
37681 \begin_layout Plain Layout
37691 \begin_inset Note Note
37694 \begin_layout Plain Layout
37695 The following section will only be displayed when the \SpecialChar LaTeX
37708 \begin_layout Enumerate
37709 No optional argument, the initial is the letter 'I' in the math font
37710 \begin_inset Formula $\mathfrak{Fraktur}$
37714 \begin_inset Separator latexpar
37721 \begin_layout Initial
37722 \begin_inset Argument 2
37725 \begin_layout Plain Layout
37726 \begin_inset Formula $\mathfrak{I}$
37735 \begin_inset Argument 3
37738 \begin_layout Plain Layout
37744 was in the spring of the year 1894 that all London was interested, and
37745 the fashionable world dismayed, by the murder of the Honourable Ronald
37746 Adair under most unusual and inexplicable circumstances.
37747 The public has already learned those particulars of the crime which came
37748 out in the police investigation, but a good deal was suppressed upon that
37749 occasion, since the case for the prosecution was so overwhelmingly strong
37750 that it was not necessary to bring forward all the facts.
37751 \begin_inset Newpage newpage
37758 \begin_layout Enumerate
37759 Only one line is surrounding the initial, which is formed by two letters
37760 in standard font and no text is printed in small caps:
37761 \begin_inset Separator latexpar
37768 \begin_layout Initial
37769 \begin_inset Argument 1
37772 \begin_layout Plain Layout
37779 \begin_inset Argument 2
37782 \begin_layout Plain Layout
37788 was in the spring of the year 1894 that all London was interested, and
37789 the fashionable world dismayed, by the murder of the Honourable Ronald
37790 Adair under most unusual and inexplicable circumstances.
37791 The public has already learned those particulars of the crime which came
37792 out in the police investigation, but a good deal was suppressed upon that
37793 occasion, since the case for the prosecution was so overwhelmingly strong
37794 that it was not necessary to bring forward all the facts.
37798 \begin_layout Enumerate
37799 Magenta, hanging initial over 3
37800 \begin_inset space ~
37803 lines in the math font
37804 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
37808 \begin_inset Quotes eld
37811 t was in the spring
37812 \begin_inset Quotes erd
37819 ; to color the initial, you must insert this command before the initial:
37820 \begin_inset Newline newline
37834 \begin_inset Newline newline
37842 \begin_inset Quotes eld
37846 \begin_inset Quotes erd
37850 \begin_inset Quotes eld
37854 \begin_inset Quotes erd
37858 \begin_inset Quotes eld
37862 \begin_inset Quotes erd
37866 \begin_inset Quotes eld
37870 \begin_inset Quotes erd
37874 \begin_inset Quotes eld
37878 \begin_inset Quotes erd
37882 \begin_inset Quotes eld
37886 \begin_inset Quotes erd
37890 \begin_inset Quotes eld
37894 \begin_inset Quotes erd
37898 \begin_inset Quotes eld
37902 \begin_inset Quotes erd
37905 , and add this command to the document preamble:
37906 \begin_inset Newline newline
37913 @ifundefined{textcolor}
37914 \begin_inset Newline newline
37918 \begin_inset space ~
37923 usepackage{color}}{}
37926 \begin_inset Separator latexpar
37933 \begin_layout Standard
37937 \begin_layout Plain Layout
37951 \begin_inset Note Note
37954 \begin_layout Plain Layout
37955 makes the initial magenta
37963 \begin_layout Initial
37964 \begin_inset Argument 1
37967 \begin_layout Plain Layout
37968 lines=3, lhang=0.33, loversize=0.25
37974 \begin_inset Argument 2
37977 \begin_layout Plain Layout
37978 \begin_inset Formula $\mathcal{I}$
37987 \begin_inset Argument 3
37990 \begin_layout Plain Layout
37991 t was in the spring
37996 of the year 1894 that all London was interested, and the fashionable world
37997 dismayed, by the murder of the Honourable Ronald Adair under most unusual
37998 and inexplicable circumstances.
37999 The public has already learned those particulars of the crime which came
38000 out in the police investigation, but a good deal was suppressed upon that
38001 occasion, since the case for the prosecution was so overwhelmingly strong
38002 that it was not necessary to bring forward all the facts.
38006 \begin_layout Standard
38010 \begin_layout Plain Layout
38020 \begin_inset Note Note
38023 \begin_layout Plain Layout
38024 The following will be displayed when the \SpecialChar LaTeX
38037 \begin_layout Standard
38038 You need to install the \SpecialChar LaTeX
38043 to see the following part of this section in the output.
38046 \begin_layout Standard
38050 \begin_layout Plain Layout
38062 \begin_layout Chapter
38063 External Document Parts
38064 \begin_inset Index idx
38067 \begin_layout Plain Layout
38068 External Document Parts
38076 \begin_layout Standard
38079 Insert\SpecialChar menuseparator
38082 you can insert external material into your document.
38086 \begin_layout Description
38088 \begin_inset space ~
38091 Document Another \SpecialChar LyX
38092 document; its content is directly inserted to your document.
38095 \begin_layout Description
38097 \begin_inset space ~
38100 Text A text document; each line is inserted in your document as a separate
38104 \begin_layout Description
38106 \begin_inset space ~
38110 \begin_inset space ~
38114 \begin_inset space ~
38117 Lines A text document; text lines are inserted in your document continuously
38118 but an empty text line creates a new paragraph.
38121 \begin_layout Description
38123 \begin_inset space ~
38126 Material Files in various formats.
38129 \begin_layout Description
38131 \begin_inset space ~
38134 Document \SpecialChar LyX
38135 or \SpecialChar LaTeX
38139 \begin_layout Section
38141 \begin_inset Index idx
38144 \begin_layout Plain Layout
38145 External Document Parts ! External Material
38153 \begin_layout Standard
38154 The external material feature allows you to insert files into your document
38155 without converting them to a format that can be read by the document output
38158 takes care of the necessary conversions.
38159 This is similar to images that can be inserted in various image formats
38160 in \SpecialChar LyX
38162 When you have enabled Instant Preview in \SpecialChar LyX
38163 's preferences under
38166 \begin_inset space ~
38170 \begin_inset space ~
38173 feel\SpecialChar menuseparator
38176 , the external material types Dia and Xfig are directly shown in \SpecialChar LyX
38180 \begin_layout Standard
38181 External material can be inserted via the
38185 dialog that is accessible with the menu
38187 Insert\SpecialChar menuseparator
38188 File\SpecialChar menuseparator
38190 \begin_inset space ~
38196 Currently the following file types (
38203 \begin_layout Description
38205 \begin_inset space ~
38208 diagram This template supports chess position diagrams made with the program
38212 \begin_inset CommandInset href
38215 target "http://en.wikipedia.org/wiki/XBoard"
38224 \begin_layout Description
38226 \begin_inset space ~
38229 diagram This template supports diagrams created with the program
38232 \begin_inset CommandInset href
38235 target "http://en.wikipedia.org/wiki/Dia_(software)"
38244 \begin_layout Description
38245 Spreadsheet With this template you can insert spreadsheets
38246 \begin_inset space \thinspace{}
38250 \begin_inset space \thinspace{}
38253 tables in the format of
38256 \begin_inset CommandInset href
38259 target "http://en.wikipedia.org/wiki/Gnumeric"
38266 \begin_inset CommandInset href
38268 name "OpenDocument"
38269 target "http://en.wikipedia.org/wiki/OpenDocument"
38274 \begin_inset CommandInset href
38276 name "Microsoft Office XML"
38277 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
38282 \begin_inset CommandInset href
38284 name "Office Open XML"
38285 target "http://en.wikipedia.org/wiki/Office_Open_XML"
38290 For this feature \SpecialChar LyX
38291 must have found the program
38295 during its configuration.
38296 This program is part of Gnumeric, so that you must have Gnumeric installed,
38297 also if you don't have tables in the Gnumeric format.
38298 For examples and possible limitations have a look at \SpecialChar LyX
38306 \begin_layout Description
38308 \begin_inset space ~
38312 \begin_inset space ~
38315 music This template is used for music notation typeset with the program
38316 \begin_inset Newline linebreak
38322 \begin_inset CommandInset href
38325 target "http://en.wikipedia.org/wiki/LilyPond"
38332 For \SpecialChar LyX
38333 's extended support for LilyPond have a look at \SpecialChar LyX
38341 \begin_layout Description
38343 \begin_inset space ~
38346 pages With this template you can insert PDF documents to your document.
38347 To specify the range of pages that should be included, use the option
38357 LaTeX and LyX options
38360 The argument of this option is a comma separated list, containing page
38361 numbers (insert as option
38365 ), ranges of page numbers (
38369 ) or any combination.
38370 To insert empty pages use {}.
38372 \begin_inset space \thinspace{}
38376 \begin_inset space ~
38381 pages={3,{},8-11,15}
38383 will insert page 3, an empty page, and pages 8, 9, 10, 11 and 15.
38384 Page ranges are specified in the syntax
38393 This selects all pages from
38406 defaults to the first page; omitting
38410 defaults to the last page of the document.
38411 The last page can also be selected with the keyword
38416 (This is only permitted in a page range.) So
38420 will insert all pages of the document and
38424 will insert all pages in reverse order.
38425 If the pages option is not specified, only the first page of the PDF is
38427 \begin_inset Newline newline
38434 inserts the pages with their original size, if this option is not given,
38435 the pages will be resized to fith the width of the page of your document.
38440 you can specify the width and height of the input pages and their rotation.
38441 If another width than 100
38442 \begin_inset space \thinspace{}
38445 Scale% is used, the option
38449 will be overwritten.
38450 For more info and possible options, have a look into the documentation
38451 of the \SpecialChar LaTeX
38457 \begin_inset CommandInset citation
38464 \begin_inset Index idx
38467 \begin_layout Plain Layout
38469 -packages ! pdfpages
38475 \begin_inset Newline newline
38478 To use this template in a
38482 presentation you need to first insert an
38486 environment and in a subsequent paragraph a \SpecialChar TeX
38487 Code box containing the command
38492 setbeamertemplate{background canvas}{}
38495 Then you can insert as many paragraphs containing the PDFPages template
38497 Behind the included PDF pages you can resume the Beamer presentation by
38498 beginning a new frame or by starting a new section.
38499 To avoid stray blank pages prior to the PDF pages, make sure to use the
38504 alignment for the paragraph containing the template.
38505 \begin_inset Newline newline
38508 Here is an included PDF which is rotated by -5°:
38509 \begin_inset External
38511 filename clipart/Abstract.pdf
38512 extra LaTeX "noautoscale, pages=-"
38514 rotateOrigin bottomleft
38521 \begin_layout Description
38523 \begin_inset space ~
38526 image This can be used for bitmap images.
38527 The image can be treated in the
38531 dialog like the images that are usually included via the
38535 dialog as described in section
38536 \begin_inset space ~
38540 \begin_inset CommandInset ref
38542 reference "sec:Graphics-Dialog"
38547 Here is an inserted raster image:
38548 \begin_inset External
38549 template RasterImage
38550 filename clipart/ToolbarEnvBox.png
38557 \begin_layout Description
38559 \begin_inset space ~
38562 graphics This can be used for vector graphics.
38563 The image can be treated in the
38567 dialog like the images that are usually included via the
38571 dialog as described in section
38572 \begin_inset space ~
38576 \begin_inset CommandInset ref
38578 reference "sec:Graphics-Dialog"
38583 Here is an inserted vector graphics:
38584 \begin_inset External
38585 template VectorGraphics
38586 filename clipart/SVG-Drawing.svg
38594 \begin_layout Description
38596 \begin_inset space ~
38599 figure This template supports images created with the program
38602 \begin_inset CommandInset href
38605 target "http://en.wikipedia.org/wiki/Xfig"
38612 \change_inserted 227574939 1473131626
38616 \begin_layout Description
38618 \change_inserted 227574939 1473131628
38620 \begin_inset space ~
38623 figure This experimental template supports images created with the program
38625 \begin_inset CommandInset href
38628 target "https://en.wikipedia.org/wiki/Inkscape"
38633 It works very similarly to Xfig support, except that Inkscape is a more
38634 modern image editor than Xfig, which uses Scalable Vector Graphics (SVG)
38635 as its native format.
38639 \begin_layout Standard
38641 \change_inserted 227574939 1473131628
38642 LyX will process the image file in much the same way as it does an Xfig
38643 image, extracting the text into a separate TeX file for the text strings,
38644 and a PDF file for the rest.
38647 \begin_layout Description
38649 \change_inserted 227574939 1473131628
38650 Warning: Unfortunately the latest version of Inkscape, 0.91, contains a bug:
38651 with multi-page PDFs, the TeX file will sometimes reference more pages
38652 than the PDF file contains.
38653 This is the version that ships with Ubuntu 16.04.
38654 Its use with LyX can therefore not be recommended, until the bug is fixed
38658 \begin_layout Plain Layout
38660 \change_inserted 227574939 1473131628
38661 A workaround for those who have already SVG figures in their document is,
38662 to manually do the LaTeX+PDF output from Inkscape, edit the
38666 file to remove the erroneous references, and
38672 it directly into LyX, i.e., not use the external-template mechanism:
38675 \begin_layout Plain Layout
38677 \change_inserted 227574939 1473131628
38678 \begin_inset Graphics
38679 filename clipart/workaround.png
38687 \begin_layout Plain Layout
38689 \change_inserted 227574939 1473131628
38690 Here, the child document input inset (
38692 Insert\SpecialChar menuseparator
38693 File\SpecialChar menuseparator
38696 ) was used, which allows you do directly edit the
38700 file in a text editor.
38701 The LaTeX output is based on this edited snippet as re-generation from
38702 the SVG file has been commented out.
38711 \begin_layout Standard
38713 \change_inserted 227574939 1473131628
38714 The reason why we would use this complicated process at all, like in the
38715 case of Xfig, is that it makes the text strings inside the figure of the
38716 same font type and attributes as the surrounding text, which looks so much
38718 With Inkscape, even the
38722 of the font is taken from the surrounding LaTeX document – in Xfig, you
38723 have to set it by hand to be the same.
38724 Of course you can always embed LaTeX modifiers like
38737 into your figure text strings.
38742 \begin_layout Standard
38743 \begin_inset Float table
38749 \begin_layout Plain Layout
38750 \begin_inset Caption Standard
38752 \begin_layout Plain Layout
38753 \begin_inset CommandInset label
38755 name "tab:Comparison-of-the"
38759 Comparison of the date input methods.
38767 \begin_layout Plain Layout
38769 \begin_inset Tabular
38770 <lyxtabular version="3" rows="4" columns="3">
38771 <features tabularvalignment="middle">
38772 <column alignment="center" valignment="top">
38773 <column alignment="center" valignment="top">
38774 <column alignment="center" valignment="top">
38776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38779 \begin_layout Plain Layout
38785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38788 \begin_layout Plain Layout
38791 Insert\SpecialChar menuseparator
38797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38800 \begin_layout Plain Layout
38812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38815 \begin_layout Plain Layout
38822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38825 \begin_layout Plain Layout
38831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38834 \begin_layout Plain Layout
38835 as \SpecialChar TeX
38843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38846 \begin_layout Plain Layout
38853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
38856 \begin_layout Plain Layout
38862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
38865 \begin_layout Plain Layout
38873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38876 \begin_layout Plain Layout
38882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
38885 \begin_layout Plain Layout
38891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
38894 \begin_layout Plain Layout
38913 \begin_layout Standard
38914 When you use the option
38926 dialog, only the path to the inserted file is shown in the output.
38927 \begin_inset Newline newline
38930 External material is displayed in \SpecialChar LyX
38931 either as a box like this:
38932 \begin_inset Graphics
38933 filename clipart/ExternalMaterial.png
38935 scaleBeforeRotation
38939 or as image, depending on the option
38945 LaTeX and LyX options
38950 \begin_layout Standard
38957 manual explains how you can define your own templates.
38960 \begin_layout Section
38962 \begin_inset CommandInset label
38964 name "sec:Child-Documents"
38969 \begin_inset Index idx
38972 \begin_layout Plain Layout
38973 External Document Parts ! Child Documents
38979 \begin_inset Index idx
38982 \begin_layout Plain Layout
38991 \begin_layout Standard
38992 Child documents are used if you have a long document consisting of several
38993 larger parts or sections.
38994 For maintenance it is often useful and sometimes even required to split
38995 the document into several files that can be revised separately.
38996 The different documents are then the so called
38997 \begin_inset Quotes eld
39001 \begin_inset Quotes erd
39004 , and a master document connects them to print the full document or parts
39006 A child document inherits elements from its master, for example the \SpecialChar LaTeX
39008 the bibliography, and labels for cross-references.
39011 \begin_layout Standard
39012 To be able to work on child documents without the need to open their master,
39013 specify in the child document the master in the menu
39015 Document\SpecialChar menuseparator
39016 Settings\SpecialChar menuseparator
39018 \begin_inset space ~
39024 This master document will then be used in the background by \SpecialChar LyX
39026 the child document.
39029 \begin_layout Standard
39030 Included documents are displayed in \SpecialChar LyX
39031 as a box like this:
39032 \begin_inset Graphics
39033 filename clipart/ChildDocument.png
39034 scaleBeforeRotation
39038 To include child documents in a master document use the menu
39040 Insert\SpecialChar menuseparator
39041 File\SpecialChar menuseparator
39043 \begin_inset space ~
39049 A dialog pops up where you can choose between four include methods:
39052 \begin_layout Description
39053 Include You can include \SpecialChar LyX
39054 and \SpecialChar LaTeX
39064 dialog, the included document will be opened in \SpecialChar LyX
39065 in a new file tab so that
39067 \begin_inset Newline newline
39073 \begin_layout Standard
39074 Here is a child document inserted using
39079 \begin_inset CommandInset include
39080 LatexCommand include
39081 filename "DummyDocument1.lyx"
39088 \begin_layout Standard
39089 The section numbering includes the sections of the included files in the
39090 order they are inserted in the master document.
39091 The included example document has for example a subsection that is numbered
39092 as a subsection of this section.
39093 Labels of included documents can be referenced: Subsection
39094 \begin_inset space ~
39098 \begin_inset CommandInset ref
39100 reference "subsec:External-Subsection-1"
39107 \begin_layout Standard
39108 The preamble of the child document is ignored; only the preamble of the
39109 master document is used.
39110 Branches in child documents will be ignored by the master document when
39111 the master document does not have a branch with the same name.
39112 Included documents are inserted starting on a new page and ending with
39116 \begin_layout Standard
39117 \begin_inset Note Greyedout
39120 \begin_layout Plain Layout
39125 If you have included a \SpecialChar LyX
39126 or \SpecialChar LaTeX
39127 file, you are warned when you export/view the
39128 document in case the child document uses another document class than the
39129 master document as this will lead to unexpected outputs.
39137 \begin_layout Description
39138 Input This method is very similar to the Include method.
39139 The differences are:
39140 \begin_inset Separator latexpar
39147 \begin_layout Itemize
39148 Input files don't start with a new page and don't end with a page break.
39151 \begin_layout Itemize
39152 Input files can be previewed in \SpecialChar LyX
39156 \begin_inset space ~
39161 is enabled in \SpecialChar LyX
39162 's preferences under
39165 \begin_inset space ~
39169 \begin_inset space ~
39172 feel\SpecialChar menuseparator
39178 \begin_layout Itemize
39179 You cannot exclude Input files via the menu
39181 Document\SpecialChar menuseparator
39182 Settings\SpecialChar menuseparator
39189 \begin_layout Standard
39190 Here is a child document inserted using
39195 \begin_inset CommandInset include
39197 filename "DummyDocument2.lyx"
39204 \begin_layout Description
39205 Verbatim With this method any text file can be included.
39206 The file is shown in the output with its source code; no command used in
39207 the text is invoked.
39208 You can use the option
39210 Mark spaces in output
39212 that displays the character
39213 \begin_inset Quotes eld
39220 \begin_layout Plain Layout
39230 \begin_inset Quotes erd
39233 for every space character in the source code.
39234 The difference from the method via the menu
39236 Insert\SpecialChar menuseparator
39237 File\SpecialChar menuseparator
39239 \begin_inset space ~
39244 is that the document content is not shown in \SpecialChar LyX
39248 \begin_layout Standard
39249 Here is a child document inserted as Verbatim:
39250 \begin_inset CommandInset include
39251 LatexCommand verbatiminput
39252 filename "DummyTextDocument.txt"
39257 \begin_inset VSpace bigskip
39260 Here is a child document inserted as Verbatim using the
39262 Mark spaces in output
39265 \begin_inset CommandInset include
39266 LatexCommand verbatiminput*
39267 filename "DummyTextDocument.txt"
39274 \begin_layout Standard
39275 \begin_inset VSpace bigskip
39281 \begin_layout Standard
39282 \begin_inset Note Greyedout
39285 \begin_layout Plain Layout
39290 As you can see in the examples above, the text of the documents included
39295 is not broken at the end of the document lines.
39303 \begin_layout Description
39304 Listings This type is described in chapter
39305 \begin_inset space ~
39309 \begin_inset CommandInset ref
39311 reference "cha:Program-Code-Listings"
39318 \begin_layout Standard
39319 \begin_inset Note Greyedout
39322 \begin_layout Plain Layout
39327 Including the same document twice in a document using different methods
39328 could cause \SpecialChar LaTeX
39337 \begin_layout Standard
39338 If you want to view/export only selected children of your master document,
39339 either because you want to save compiling time or because you want to distribut
39340 e single chapters of the book you are just writing, you can exclude children
39342 This is done via the menu
39344 Document\SpecialChar menuseparator
39345 Settings\SpecialChar menuseparator
39349 You can exclude\SpecialChar breakableslash
39350 include children by double-clicking on the
39354 column of the respective child document in the list (note that this only
39355 works for documents embedded via
39356 \begin_inset Quotes eld
39360 \begin_inset Quotes erd
39364 \begin_inset Quotes eld
39368 \begin_inset Quotes erd
39374 Maintain counters and references
39376 is enabled, \SpecialChar LyX
39377 will assure that all page numbers, references etc.
39378 \begin_inset space ~
39381 are correct as if the whole document was processed.
39382 This is useful if you want the selected sub-documents to look exactly as
39383 in the context of the whole document.
39384 However, \SpecialChar LyX
39385 needs to process the whole document in the background for this
39387 So if you want to save compile time and if counters and references do not
39388 need to be correct, disable this checkbox.
39391 \begin_layout Standard
39392 Alternatively, you can put each included file into a branch.
39396 \begin_layout Plain Layout
39397 Branches are described in section
39401 of the \SpecialChar LyX
39411 By enabling\SpecialChar breakableslash
39412 disabling branches you can decide which included files will
39413 appear in the output.
39414 This has the advantage that it also works with Input'ed sub-documents.
39415 However, counters and references will not be maintained with this approach.
39418 \begin_layout Chapter
39419 Program Code Listings
39420 \begin_inset CommandInset label
39422 name "cha:Program-Code-Listings"
39427 \begin_inset Index idx
39430 \begin_layout Plain Layout
39437 \begin_inset Index idx
39440 \begin_layout Plain Layout
39447 \begin_inset Index idx
39450 \begin_layout Plain Layout
39459 \begin_layout Standard
39460 To include and typeset program code you can use the
39464 inset that can be inserted via the menu
39466 Insert\SpecialChar menuseparator
39470 The \SpecialChar LaTeX
39476 \begin_inset Index idx
39479 \begin_layout Plain Layout
39481 -packages ! listings
39486 provides a powerful and flexible way to insert program source code into
39490 \begin_layout Standard
39491 Right-clicking on a listings inset opens the context menu containing where
39492 you can set the listings format.
39495 \begin_layout Standard
39496 By default, a listing starts a new paragraph in the output.
39497 The placement option
39500 \begin_inset space ~
39505 prints the listing inline like this:
39506 \begin_inset listings
39507 lstparams "language={C++}"
39511 \begin_layout Plain Layout
39519 \begin_inset Newline newline
39526 creates a listings float where you can specify the placement options
39527 \begin_inset Quotes eld
39535 \begin_inset Quotes erd
39539 \begin_inset Quotes eld
39547 \begin_inset Quotes erd
39551 \begin_inset Quotes eld
39559 \begin_inset Quotes erd
39563 \begin_inset Quotes eld
39571 \begin_inset Quotes erd
39574 corresponding to the float placement options described in section
39575 \begin_inset space ~
39579 \begin_inset CommandInset ref
39581 reference "sec:Float-Placement"
39586 The placement options can be mixed and are inserted without any separation,
39588 \begin_inset space \thinspace{}
39592 \begin_inset space \space{}
39596 \begin_inset Quotes eld
39604 \begin_inset Quotes erd
39609 \begin_inset Quotes eld
39613 \begin_inset Quotes erd
39616 has sometimes no effect, but you don't need to use the
39620 option in this case as also non-float listings can have captions and be
39624 \begin_layout Standard
39625 You can add captions to listings with the menu
39627 Insert\SpecialChar menuseparator
39631 Listings can be referenced like floats: Listing
39632 \begin_inset space ~
39636 \begin_inset CommandInset ref
39638 reference "lst:Example-Listing"
39643 A list of listings which contains all listings with captions can be created
39646 Insert\SpecialChar menuseparator
39648 \begin_inset space ~
39652 \begin_inset space ~
39655 TOC\SpecialChar menuseparator
39659 The list entries are the listing caption and the listing number.
39662 \begin_layout Standard
39663 \begin_inset listings
39664 lstparams "language=Python"
39668 \begin_layout Plain Layout
39670 \begin_inset Caption Standard
39672 \begin_layout Plain Layout
39673 \begin_inset CommandInset label
39675 name "lst:Example-Listing"
39679 Example Listing float
39684 # Example listing float
39687 \begin_layout Plain Layout
39692 \begin_layout Plain Layout
39694 'this is a python function'
39697 \begin_layout Plain Layout
39707 \begin_layout Standard
39708 When you have set a programming language in the listings dialog, the keywords
39709 of this language will be recognized and specially typeset in the output.
39710 In the example listings the Python keyword
39711 \begin_inset Quotes eld
39715 \begin_inset Quotes erd
39718 is recognized and printed bold in the output.
39721 \begin_layout Standard
39722 \begin_inset Note Greyedout
39725 \begin_layout Plain Layout
39730 If you don't get bold keywords when using typewriter fonts, your
39734 font probably doesn't provide a bold shape.
39735 In this case select a different one in the menu
39737 Document\SpecialChar menuseparator
39738 Settings\SpecialChar menuseparator
39750 provide bold shapes.)
39758 \begin_layout Standard
39762 \begin_inset space ~
39767 of the listings dialog you can specify the line numbering style.
39768 You can insert a number to specify which lines are numbered in the field
39775 \begin_inset space \thinspace{}
39779 \begin_inset space \space{}
39783 \begin_inset Quotes eld
39787 \begin_inset Quotes erd
39790 , only every 3rd line will be numbered.
39793 \begin_layout Standard
39794 You can furthermore specify a range of lines; only these will then appear
39798 Extended character table
39800 should be used when you use national characters like the German umlauts
39802 \begin_inset Newline newline
39805 Here is an example listing with left line numbering, step
39806 \begin_inset Quotes eld
39810 \begin_inset Quotes erd
39814 \begin_inset Quotes eld
39818 \begin_inset Quotes erd
39822 \begin_inset Quotes eld
39825 Extended character table
39826 \begin_inset Quotes erd
39830 \begin_inset Quotes eld
39834 \begin_inset space ~
39838 \begin_inset space ~
39842 \begin_inset Quotes erd
39846 \begin_inset space \thinspace{}
39850 \begin_inset space \thinspace{}
39856 \begin_layout Standard
39857 \begin_inset listings
39858 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
39862 \begin_layout Plain Layout
39867 \begin_layout Plain Layout
39869 'this is a python function'
39872 \begin_layout Plain Layout
39877 \begin_layout Plain Layout
39882 \begin_layout Plain Layout
39884 'This is a German word: Tschüß'
39887 \begin_layout Plain Layout
39892 \begin_layout Plain Layout
39897 \begin_layout Plain Layout
39899 'this is a python function'
39902 \begin_layout Plain Layout
39912 \begin_layout Standard
39913 When you have tabulators in your listing, you can specify the number of
39914 characters that are spanned by a tabulator in the field
39917 \begin_inset space ~
39925 \begin_layout Standard
39926 \begin_inset Note Greyedout
39929 \begin_layout Plain Layout
39934 Due to a bug in the
39938 package the line numbering is shifted by a line by every previous listing.
39939 That's the reason why the lines 2 and 5 are numbered in the above listing
39940 and not the lines 3 and 6.
39948 \begin_layout Standard
39949 \begin_inset VSpace bigskip
39955 \begin_layout Standard
39956 It is also possible to print lines from a file as listing.
39957 To do this, use the menu
39959 Insert\SpecialChar menuseparator
39960 File\SpecialChar menuseparator
39963 and choose the type
39971 \begin_layout Plain Layout
39972 The other child document types are described in section
39973 \begin_inset space ~
39977 \begin_inset CommandInset ref
39979 reference "sec:Child-Documents"
39988 In the child document dialog you can specify the listing parameters in
39990 To show a list of all available parameters, type in a question mark
39991 \begin_inset Quotes eld
39995 \begin_inset Quotes erd
40001 \begin_layout Standard
40002 To reference child document listings, write a label text into the corresponding
40003 field of the child document dialog.
40004 The label can then be referenced using the menu
40006 Insert\SpecialChar menuseparator
40012 \begin_layout Standard
40014 \begin_inset space ~
40018 \begin_inset CommandInset ref
40020 reference "lst:file-listing"
40024 is an example for a listing of a file; there the lines 10
40025 \begin_inset space \thinspace{}
40029 \begin_inset space \thinspace{}
40032 15 of this \SpecialChar LyX
40036 \begin_layout Standard
40037 \begin_inset CommandInset include
40038 LatexCommand lstinputlisting
40039 filename "EmbeddedObjects.lyx"
40040 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
40047 \begin_layout Standard
40048 \begin_inset VSpace bigskip
40054 \begin_layout Standard
40055 Inserting a formula into a listing can be done the following way:
40058 \begin_layout Enumerate
40059 Open the listings dialog and add
40060 \begin_inset Newline newline
40068 \begin_inset Newline newline
40071 to the field of the
40078 \begin_layout Enumerate
40079 Create a formula outside the listing
40082 \begin_layout Enumerate
40083 Copy the content of the formula (not the formula inset) to the clipboard
40093 \begin_layout Enumerate
40094 In the listing write
40095 \begin_inset Quotes eld
40103 \begin_inset Quotes erd
40106 and copy from the clipboard between the dollar-signs (shortcut
40115 \begin_layout Standard
40116 \begin_inset listings
40117 lstparams "language=Python,mathescape=true"
40121 \begin_layout Plain Layout
40123 \begin_inset Caption Standard
40125 \begin_layout Plain Layout
40126 Example Listing float containing a formula
40131 # Example listing float
40134 \begin_layout Plain Layout
40139 \begin_layout Plain Layout
40152 \begin_layout Plain Layout
40162 \begin_layout Standard
40163 \begin_inset VSpace bigskip
40169 \begin_layout Standard
40170 Global listings settings can be set in the
40172 Document\SpecialChar menuseparator
40173 Settings\SpecialChar menuseparator
40177 To get there a list of available options, type in a question mark
40178 \begin_inset Quotes eld
40182 \begin_inset Quotes erd
40188 \begin_layout Standard
40189 For more information about the
40193 package, we refer to its documentation
40194 \begin_inset CommandInset citation
40203 \begin_layout Standard
40204 \begin_inset Newpage newpage
40210 \begin_layout Chapter
40212 Units available in \SpecialChar LyX
40214 \begin_inset Index idx
40217 \begin_layout Plain Layout
40224 \begin_inset CommandInset label
40226 name "cha:Units-available-in"
40233 \begin_layout Standard
40234 To understand the units described in this documentation, Table
40235 \begin_inset space ~
40239 \begin_inset CommandInset ref
40241 reference "tab:Units"
40245 explains all units available in \SpecialChar LyX
40249 \begin_layout Standard
40250 \begin_inset Float table
40256 \begin_layout Plain Layout
40257 \begin_inset Caption Standard
40259 \begin_layout Plain Layout
40260 \begin_inset CommandInset label
40274 \begin_layout Plain Layout
40275 \begin_inset VSpace medskip
40281 \begin_layout Plain Layout
40283 \begin_inset Tabular
40284 <lyxtabular version="3" rows="20" columns="3">
40285 <features tabularvalignment="middle">
40286 <column alignment="center" valignment="top">
40287 <column alignment="center" valignment="top">
40288 <column alignment="center" valignment="top">
40290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40293 \begin_layout Plain Layout
40299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40302 \begin_layout Plain Layout
40308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40311 \begin_layout Plain Layout
40320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40323 \begin_layout Plain Layout
40329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40332 \begin_layout Plain Layout
40338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40341 \begin_layout Plain Layout
40349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40352 \begin_layout Plain Layout
40358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40361 \begin_layout Plain Layout
40367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40370 \begin_layout Plain Layout
40378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40381 \begin_layout Plain Layout
40387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40390 \begin_layout Plain Layout
40396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40399 \begin_layout Plain Layout
40407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40410 \begin_layout Plain Layout
40416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40419 \begin_layout Plain Layout
40421 \begin_inset space \thinspace{}
40425 \begin_inset space \thinspace{}
40433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40436 \begin_layout Plain Layout
40444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40447 \begin_layout Plain Layout
40453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40456 \begin_layout Plain Layout
40458 \begin_inset space \thinspace{}
40462 \begin_inset space \thinspace{}
40470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40473 \begin_layout Plain Layout
40481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40484 \begin_layout Plain Layout
40490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40493 \begin_layout Plain Layout
40494 scaled point (65536
40495 \begin_inset space \thinspace{}
40499 \begin_inset space \thinspace{}
40507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40510 \begin_layout Plain Layout
40518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40521 \begin_layout Plain Layout
40527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40530 \begin_layout Plain Layout
40532 \begin_inset space \thinspace{}
40536 \begin_inset space \thinspace{}
40544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40547 \begin_layout Plain Layout
40555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40558 \begin_layout Plain Layout
40564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40567 \begin_layout Plain Layout
40569 \begin_inset space \thinspace{}
40573 \begin_inset Formula $\approx$
40577 \begin_inset space \thinspace{}
40585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40588 \begin_layout Plain Layout
40596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40599 \begin_layout Plain Layout
40605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40608 \begin_layout Plain Layout
40610 \begin_inset space \thinspace{}
40614 \begin_inset space \thinspace{}
40622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40625 \begin_layout Plain Layout
40633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40636 \begin_layout Plain Layout
40642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40645 \begin_layout Plain Layout
40646 % of original image width
40651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40654 \begin_layout Plain Layout
40662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40665 \begin_layout Plain Layout
40671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40674 \begin_layout Plain Layout
40680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40683 \begin_layout Plain Layout
40693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40696 \begin_layout Plain Layout
40702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40705 \begin_layout Plain Layout
40711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40714 \begin_layout Plain Layout
40724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40727 \begin_layout Plain Layout
40733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40736 \begin_layout Plain Layout
40742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40745 \begin_layout Plain Layout
40755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40758 \begin_layout Plain Layout
40764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40767 \begin_layout Plain Layout
40773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40776 \begin_layout Plain Layout
40786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40789 \begin_layout Plain Layout
40795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40798 \begin_layout Plain Layout
40804 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40807 \begin_layout Plain Layout
40817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40820 \begin_layout Plain Layout
40826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40829 \begin_layout Plain Layout
40835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40838 \begin_layout Plain Layout
40848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40851 \begin_layout Plain Layout
40857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40860 \begin_layout Plain Layout
40870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40873 \begin_layout Plain Layout
40881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40884 \begin_layout Plain Layout
40890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
40893 \begin_layout Plain Layout
40903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
40906 \begin_layout Plain Layout
40914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40917 \begin_layout Plain Layout
40923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
40926 \begin_layout Plain Layout
40928 \begin_inset space \thinspace{}
40932 \begin_inset space \thinspace{}
40940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
40943 \begin_layout Plain Layout
40962 \begin_layout Chapter
40963 Output File Formats with Graphics
40964 \begin_inset CommandInset label
40966 name "cha:Output-File-Formats"
40973 \begin_layout Section
40975 \begin_inset Index idx
40978 \begin_layout Plain Layout
40985 \begin_inset Index idx
40988 \begin_layout Plain Layout
40993 \begin_layout Plain Layout
41004 \begin_layout Plain Layout
41019 \begin_layout Standard
41020 This file type has the extension
41021 \begin_inset Quotes eld
41029 \begin_inset Quotes erd
41034 \begin_inset Quotes eld
41038 \begin_inset Quotes erd
41041 (DVI), because it is completely portable; you can move them from one machine
41042 to another without needing to do any sort of conversion.
41043 At the time when this file-format was developed, this was no matter of
41045 DVIs are used for quick previews and as pre-stage for other output formats,
41049 \begin_layout Standard
41050 \begin_inset Note Greyedout
41053 \begin_layout Plain Layout
41058 DVI-files do not contain images; they will only be a linked.
41063 So don't forget this, if you move your
41067 file to another computer.
41068 This property can also slow down your computer when you view the DVI, because
41069 the DVI-viewer has to convert the image in the background to make it visible
41070 when you scroll in the DVI.
41071 So it is recommended that you use PDF for files with many images.
41074 \begin_layout Standard
41075 You can export your document to DVI by using the menu
41077 File\SpecialChar menuseparator
41078 Export\SpecialChar menuseparator
41082 You can view your document as DVI via the
41089 \begin_layout Section
41091 \begin_inset Index idx
41094 \begin_layout Plain Layout
41095 File Formats ! PostScript
41101 \begin_inset Index idx
41104 \begin_layout Plain Layout
41109 \begin_layout Plain Layout
41120 \begin_layout Plain Layout
41135 \begin_layout Standard
41136 This file type has the extension
41137 \begin_inset Quotes eld
41145 \begin_inset Quotes erd
41149 PostScript was developed by the company
41153 as a printer language.
41154 The file therefore contains commands that the printer uses to print the
41156 PostScript can be seen as a
41157 \begin_inset Quotes eld
41160 programming language
41161 \begin_inset Quotes erd
41164 ; you can calculate with it and draw diagrams and images.
41168 \begin_layout Plain Layout
41169 If you are interested to learn more about this, have a look at the \SpecialChar LaTeX
41176 \begin_inset CommandInset citation
41187 Due to this ability, the files are often bigger than PDFs.
41190 \begin_layout Standard
41191 PostScript can only contain images in the format
41192 \begin_inset Quotes eld
41195 Encapsulated PostScript
41196 \begin_inset Quotes erd
41199 (EPS, file extension
41200 \begin_inset Quotes eld
41208 \begin_inset Quotes erd
41212 As \SpecialChar LyX
41213 allows you to use any known image format in your document, it has to
41214 convert images in the background to EPS.
41216 \begin_inset space ~
41220 \begin_inset space ~
41223 images in your document, \SpecialChar LyX
41225 \begin_inset space ~
41228 conversions whenever you view or export your document.
41229 This will slow down your work flow with \SpecialChar LyX
41231 So if you plan to use PostScript, you can insert your images directly as
41232 EPS to avoid this problem.
41235 \begin_layout Standard
41236 You can export your document to PostScript using the menu
41238 File\SpecialChar menuseparator
41239 Export\SpecialChar menuseparator
41243 You can view your document as PostScript via the
41250 \begin_layout Section
41252 \begin_inset Index idx
41255 \begin_layout Plain Layout
41262 \begin_inset Index idx
41265 \begin_layout Plain Layout
41274 \begin_layout Standard
41275 This file type has the extension
41276 \begin_inset Quotes eld
41284 \begin_inset Quotes erd
41289 \begin_inset Quotes eld
41292 Portable Document Format
41293 \begin_inset Quotes erd
41296 (PDF) was developed by
41300 as a derivative of PostScript.
41301 It is more compressed and it uses fewer commands than PostScript.
41303 \begin_inset Quotes eld
41307 \begin_inset Quotes erd
41310 implies, it can be processed at any computer system and the printed output
41311 looks exactly the same.
41314 \begin_layout Standard
41315 PDF can contain images in its own PDF format, in the format
41316 \begin_inset Quotes eld
41319 Joint Photographic Experts Group
41320 \begin_inset Quotes erd
41323 (JPG, file extension
41324 \begin_inset Quotes eld
41332 \begin_inset Quotes erd
41336 \begin_inset Quotes eld
41344 \begin_inset Quotes erd
41347 ), and in the format
41348 \begin_inset Quotes eld
41351 Portable Network Graphics
41352 \begin_inset Quotes erd
41355 (PNG, file extension
41356 \begin_inset Quotes eld
41364 \begin_inset Quotes erd
41368 Nevertheless you can use any other image format, because \SpecialChar LyX
41370 in the background to one of these formats.
41371 But as described in the section about PostScript, the image conversion
41372 will slow down your work flow.
41373 So it is recommended that you use images in one of the three mentioned
41377 \begin_layout Standard
41378 You can export your document to PDF via the menu
41380 File\SpecialChar menuseparator
41383 in three different ways:
41386 \begin_layout Description
41388 \begin_inset space ~
41391 (ps2pdf) This uses the program
41395 that creates a PDF from a PostScript-version of your file.
41396 The PostScript-version is produced by the program
41400 which uses a DVI-version as intermediate step.
41401 So this export variant consists of three conversions.
41404 \begin_layout Description
41406 \begin_inset space ~
41409 (dvipdfm) This uses the program
41413 that converts your file in the background to DVI and in a second step to
41417 \begin_layout Description
41419 \begin_inset space ~
41422 (pdflatex) This uses the program
41426 that converts your file directly to PDF.
41429 \begin_layout Standard
41430 It is recommended that you use
41433 \begin_inset space ~
41442 supports all features of actual PDF-versions, is quick and works stable.
41447 is not under development and therefore a bit outdated.
41450 \begin_layout Standard
41451 You can view your document as PDF via the
41455 menu or by using a toolbar button.
41458 \begin_layout Chapter
41459 List of dvips color names
41460 \begin_inset CommandInset label
41462 name "chap:List-of-dvips-colornames"
41469 \begin_layout Standard
41470 \begin_inset Tabular
41471 <lyxtabular version="3" rows="17" columns="4">
41472 <features tabularvalignment="middle">
41473 <column alignment="left" valignment="top" width="0pt">
41474 <column alignment="left" valignment="top" width="0pt">
41475 <column alignment="left" valignment="top" width="0pt">
41476 <column alignment="left" valignment="top" width="0pt">
41478 <cell alignment="left" valignment="top" usebox="none">
41481 \begin_layout Plain Layout
41485 \begin_layout Plain Layout
41498 \begin_layout Plain Layout
41509 \begin_layout Plain Layout
41521 <cell alignment="left" valignment="top" usebox="none">
41524 \begin_layout Plain Layout
41528 \begin_layout Plain Layout
41541 \begin_layout Plain Layout
41552 \begin_layout Plain Layout
41564 <cell alignment="left" valignment="top" usebox="none">
41567 \begin_layout Plain Layout
41571 \begin_layout Plain Layout
41584 \begin_layout Plain Layout
41595 \begin_layout Plain Layout
41607 <cell alignment="left" valignment="top" usebox="none">
41610 \begin_layout Plain Layout
41614 \begin_layout Plain Layout
41627 \begin_layout Plain Layout
41638 \begin_layout Plain Layout
41652 <cell alignment="center" valignment="top" usebox="none">
41655 \begin_layout Plain Layout
41659 \begin_layout Plain Layout
41672 \begin_layout Plain Layout
41680 \begin_inset Phantom Phantom
41683 \begin_layout Plain Layout
41693 \begin_layout Plain Layout
41705 <cell alignment="center" valignment="top" usebox="none">
41708 \begin_layout Plain Layout
41712 \begin_layout Plain Layout
41725 \begin_layout Plain Layout
41733 \begin_inset Phantom Phantom
41736 \begin_layout Plain Layout
41746 \begin_layout Plain Layout
41758 <cell alignment="center" valignment="top" usebox="none">
41761 \begin_layout Plain Layout
41765 \begin_layout Plain Layout
41778 \begin_layout Plain Layout
41786 \begin_inset Phantom Phantom
41789 \begin_layout Plain Layout
41799 \begin_layout Plain Layout
41811 <cell alignment="center" valignment="top" usebox="none">
41814 \begin_layout Plain Layout
41818 \begin_layout Plain Layout
41831 \begin_layout Plain Layout
41839 \begin_inset Phantom Phantom
41842 \begin_layout Plain Layout
41852 \begin_layout Plain Layout
41866 <cell alignment="left" valignment="top" usebox="none">
41869 \begin_layout Plain Layout
41873 \begin_layout Plain Layout
41886 \begin_layout Plain Layout
41894 \begin_inset Phantom Phantom
41897 \begin_layout Plain Layout
41907 \begin_layout Plain Layout
41919 <cell alignment="left" valignment="top" usebox="none">
41922 \begin_layout Plain Layout
41926 \begin_layout Plain Layout
41939 \begin_layout Plain Layout
41947 \begin_inset Phantom Phantom
41950 \begin_layout Plain Layout
41960 \begin_layout Plain Layout
41972 <cell alignment="left" valignment="top" usebox="none">
41975 \begin_layout Plain Layout
41979 \begin_layout Plain Layout
41992 \begin_layout Plain Layout
42000 \begin_inset Phantom Phantom
42003 \begin_layout Plain Layout
42013 \begin_layout Plain Layout
42025 <cell alignment="left" valignment="top" usebox="none">
42028 \begin_layout Plain Layout
42032 \begin_layout Plain Layout
42045 \begin_layout Plain Layout
42053 \begin_inset Phantom Phantom
42056 \begin_layout Plain Layout
42066 \begin_layout Plain Layout
42080 <cell alignment="left" valignment="top" usebox="none">
42083 \begin_layout Plain Layout
42087 \begin_layout Plain Layout
42100 \begin_layout Plain Layout
42108 \begin_inset Phantom Phantom
42111 \begin_layout Plain Layout
42121 \begin_layout Plain Layout
42133 <cell alignment="left" valignment="top" usebox="none">
42136 \begin_layout Plain Layout
42140 \begin_layout Plain Layout
42153 \begin_layout Plain Layout
42161 \begin_inset Phantom Phantom
42164 \begin_layout Plain Layout
42174 \begin_layout Plain Layout
42186 <cell alignment="left" valignment="top" usebox="none">
42189 \begin_layout Plain Layout
42193 \begin_layout Plain Layout
42206 \begin_layout Plain Layout
42214 \begin_inset Phantom Phantom
42217 \begin_layout Plain Layout
42227 \begin_layout Plain Layout
42239 <cell alignment="left" valignment="top" usebox="none">
42242 \begin_layout Plain Layout
42246 \begin_layout Plain Layout
42259 \begin_layout Plain Layout
42267 \begin_inset Phantom Phantom
42270 \begin_layout Plain Layout
42280 \begin_layout Plain Layout
42294 <cell alignment="left" valignment="top" usebox="none">
42297 \begin_layout Plain Layout
42301 \begin_layout Plain Layout
42314 \begin_layout Plain Layout
42322 \begin_inset Phantom Phantom
42325 \begin_layout Plain Layout
42335 \begin_layout Plain Layout
42347 <cell alignment="left" valignment="top" usebox="none">
42350 \begin_layout Plain Layout
42354 \begin_layout Plain Layout
42367 \begin_layout Plain Layout
42375 \begin_inset Phantom Phantom
42378 \begin_layout Plain Layout
42388 \begin_layout Plain Layout
42400 <cell alignment="left" valignment="top" usebox="none">
42403 \begin_layout Plain Layout
42407 \begin_layout Plain Layout
42420 \begin_layout Plain Layout
42428 \begin_inset Phantom Phantom
42431 \begin_layout Plain Layout
42441 \begin_layout Plain Layout
42453 <cell alignment="left" valignment="top" usebox="none">
42456 \begin_layout Plain Layout
42460 \begin_layout Plain Layout
42473 \begin_layout Plain Layout
42481 \begin_inset Phantom Phantom
42484 \begin_layout Plain Layout
42494 \begin_layout Plain Layout
42508 <cell alignment="left" valignment="top" usebox="none">
42511 \begin_layout Plain Layout
42515 \begin_layout Plain Layout
42528 \begin_layout Plain Layout
42536 \begin_inset Phantom Phantom
42539 \begin_layout Plain Layout
42549 \begin_layout Plain Layout
42561 <cell alignment="left" valignment="top" usebox="none">
42564 \begin_layout Plain Layout
42568 \begin_layout Plain Layout
42581 \begin_layout Plain Layout
42589 \begin_inset Phantom Phantom
42592 \begin_layout Plain Layout
42602 \begin_layout Plain Layout
42614 <cell alignment="left" valignment="top" usebox="none">
42617 \begin_layout Plain Layout
42621 \begin_layout Plain Layout
42634 \begin_layout Plain Layout
42642 \begin_inset Phantom Phantom
42645 \begin_layout Plain Layout
42655 \begin_layout Plain Layout
42667 <cell alignment="left" valignment="top" usebox="none">
42670 \begin_layout Plain Layout
42674 \begin_layout Plain Layout
42687 \begin_layout Plain Layout
42695 \begin_inset Phantom Phantom
42698 \begin_layout Plain Layout
42708 \begin_layout Plain Layout
42722 <cell alignment="center" valignment="top" usebox="none">
42725 \begin_layout Plain Layout
42729 \begin_layout Plain Layout
42742 \begin_layout Plain Layout
42750 \begin_inset Phantom Phantom
42753 \begin_layout Plain Layout
42763 \begin_layout Plain Layout
42775 <cell alignment="center" valignment="top" usebox="none">
42778 \begin_layout Plain Layout
42782 \begin_layout Plain Layout
42795 \begin_layout Plain Layout
42803 \begin_inset Phantom Phantom
42806 \begin_layout Plain Layout
42816 \begin_layout Plain Layout
42828 <cell alignment="center" valignment="top" usebox="none">
42831 \begin_layout Plain Layout
42835 \begin_layout Plain Layout
42848 \begin_layout Plain Layout
42856 \begin_inset Phantom Phantom
42859 \begin_layout Plain Layout
42869 \begin_layout Plain Layout
42881 <cell alignment="center" valignment="top" usebox="none">
42884 \begin_layout Plain Layout
42888 \begin_layout Plain Layout
42901 \begin_layout Plain Layout
42909 \begin_inset Phantom Phantom
42912 \begin_layout Plain Layout
42922 \begin_layout Plain Layout
42936 <cell alignment="left" valignment="top" usebox="none">
42939 \begin_layout Plain Layout
42943 \begin_layout Plain Layout
42956 \begin_layout Plain Layout
42964 \begin_inset Phantom Phantom
42967 \begin_layout Plain Layout
42977 \begin_layout Plain Layout
42989 <cell alignment="left" valignment="top" usebox="none">
42992 \begin_layout Plain Layout
42996 \begin_layout Plain Layout
43009 \begin_layout Plain Layout
43017 \begin_inset Phantom Phantom
43020 \begin_layout Plain Layout
43030 \begin_layout Plain Layout
43042 <cell alignment="left" valignment="top" usebox="none">
43045 \begin_layout Plain Layout
43049 \begin_layout Plain Layout
43062 \begin_layout Plain Layout
43070 \begin_inset Phantom Phantom
43073 \begin_layout Plain Layout
43083 \begin_layout Plain Layout
43095 <cell alignment="left" valignment="top" usebox="none">
43098 \begin_layout Plain Layout
43102 \begin_layout Plain Layout
43115 \begin_layout Plain Layout
43123 \begin_inset Phantom Phantom
43126 \begin_layout Plain Layout
43136 \begin_layout Plain Layout
43150 <cell alignment="left" valignment="top" usebox="none">
43153 \begin_layout Plain Layout
43157 \begin_layout Plain Layout
43170 \begin_layout Plain Layout
43178 \begin_inset Phantom Phantom
43181 \begin_layout Plain Layout
43191 \begin_layout Plain Layout
43203 <cell alignment="left" valignment="top" usebox="none">
43206 \begin_layout Plain Layout
43210 \begin_layout Plain Layout
43223 \begin_layout Plain Layout
43231 \begin_inset Phantom Phantom
43234 \begin_layout Plain Layout
43244 \begin_layout Plain Layout
43256 <cell alignment="left" valignment="top" usebox="none">
43259 \begin_layout Plain Layout
43263 \begin_layout Plain Layout
43276 \begin_layout Plain Layout
43284 \begin_inset Phantom Phantom
43287 \begin_layout Plain Layout
43297 \begin_layout Plain Layout
43309 <cell alignment="left" valignment="top" usebox="none">
43312 \begin_layout Plain Layout
43316 \begin_layout Plain Layout
43329 \begin_layout Plain Layout
43337 \begin_inset Phantom Phantom
43340 \begin_layout Plain Layout
43350 \begin_layout Plain Layout
43364 <cell alignment="left" valignment="top" usebox="none">
43367 \begin_layout Plain Layout
43371 \begin_layout Plain Layout
43384 \begin_layout Plain Layout
43392 \begin_inset Phantom Phantom
43395 \begin_layout Plain Layout
43405 \begin_layout Plain Layout
43417 <cell alignment="left" valignment="top" usebox="none">
43420 \begin_layout Plain Layout
43424 \begin_layout Plain Layout
43437 \begin_layout Plain Layout
43445 \begin_inset Phantom Phantom
43448 \begin_layout Plain Layout
43458 \begin_layout Plain Layout
43470 <cell alignment="left" valignment="top" usebox="none">
43473 \begin_layout Plain Layout
43477 \begin_layout Plain Layout
43490 \begin_layout Plain Layout
43498 \begin_inset Phantom Phantom
43501 \begin_layout Plain Layout
43511 \begin_layout Plain Layout
43523 <cell alignment="left" valignment="top" usebox="none">
43526 \begin_layout Plain Layout
43530 \begin_layout Plain Layout
43543 \begin_layout Plain Layout
43551 \begin_inset Phantom Phantom
43554 \begin_layout Plain Layout
43564 \begin_layout Plain Layout
43578 <cell alignment="left" valignment="top" usebox="none">
43581 \begin_layout Plain Layout
43585 \begin_layout Plain Layout
43598 \begin_layout Plain Layout
43606 \begin_inset Phantom Phantom
43609 \begin_layout Plain Layout
43619 \begin_layout Plain Layout
43631 <cell alignment="left" valignment="top" usebox="none">
43634 \begin_layout Plain Layout
43638 \begin_layout Plain Layout
43651 \begin_layout Plain Layout
43659 \begin_inset Phantom Phantom
43662 \begin_layout Plain Layout
43672 \begin_layout Plain Layout
43684 <cell alignment="left" valignment="top" usebox="none">
43687 \begin_layout Plain Layout
43691 \begin_layout Plain Layout
43704 \begin_layout Plain Layout
43712 \begin_inset Phantom Phantom
43715 \begin_layout Plain Layout
43725 \begin_layout Plain Layout
43737 <cell alignment="left" valignment="top" usebox="none">
43740 \begin_layout Plain Layout
43744 \begin_layout Plain Layout
43757 \begin_layout Plain Layout
43765 \begin_inset Phantom Phantom
43768 \begin_layout Plain Layout
43778 \begin_layout Plain Layout
43792 <cell alignment="left" valignment="top" usebox="none">
43795 \begin_layout Plain Layout
43799 \begin_layout Plain Layout
43812 \begin_layout Plain Layout
43820 \begin_inset Phantom Phantom
43823 \begin_layout Plain Layout
43833 \begin_layout Plain Layout
43845 <cell alignment="left" valignment="top" usebox="none">
43848 \begin_layout Plain Layout
43852 \begin_layout Plain Layout
43865 \begin_layout Plain Layout
43873 \begin_inset Phantom Phantom
43876 \begin_layout Plain Layout
43886 \begin_layout Plain Layout
43898 <cell alignment="left" valignment="top" usebox="none">
43901 \begin_layout Plain Layout
43905 \begin_layout Plain Layout
43918 \begin_layout Plain Layout
43926 \begin_inset Phantom Phantom
43929 \begin_layout Plain Layout
43939 \begin_layout Plain Layout
43951 <cell alignment="left" valignment="top" usebox="none">
43954 \begin_layout Plain Layout
43958 \begin_layout Plain Layout
43971 \begin_layout Plain Layout
43979 \begin_inset Phantom Phantom
43982 \begin_layout Plain Layout
43992 \begin_layout Plain Layout
44006 <cell alignment="left" valignment="top" usebox="none">
44009 \begin_layout Plain Layout
44013 \begin_layout Plain Layout
44026 \begin_layout Plain Layout
44034 \begin_inset Phantom Phantom
44037 \begin_layout Plain Layout
44047 \begin_layout Plain Layout
44059 <cell alignment="left" valignment="top" usebox="none">
44062 \begin_layout Plain Layout
44066 \begin_layout Plain Layout
44079 \begin_layout Plain Layout
44087 \begin_inset Phantom Phantom
44090 \begin_layout Plain Layout
44100 \begin_layout Plain Layout
44112 <cell alignment="left" valignment="top" usebox="none">
44115 \begin_layout Plain Layout
44119 \begin_layout Plain Layout
44132 \begin_layout Plain Layout
44140 \begin_inset Phantom Phantom
44143 \begin_layout Plain Layout
44153 \begin_layout Plain Layout
44165 <cell alignment="left" valignment="top" usebox="none">
44168 \begin_layout Plain Layout
44172 \begin_layout Plain Layout
44185 \begin_layout Plain Layout
44193 \begin_inset Phantom Phantom
44196 \begin_layout Plain Layout
44206 \begin_layout Plain Layout
44220 <cell alignment="left" valignment="top" usebox="none">
44223 \begin_layout Plain Layout
44227 \begin_layout Plain Layout
44240 \begin_layout Plain Layout
44248 \begin_inset Phantom Phantom
44251 \begin_layout Plain Layout
44261 \begin_layout Plain Layout
44273 <cell alignment="left" valignment="top" usebox="none">
44276 \begin_layout Plain Layout
44280 \begin_layout Plain Layout
44293 \begin_layout Plain Layout
44301 \begin_inset Phantom Phantom
44304 \begin_layout Plain Layout
44314 \begin_layout Plain Layout
44326 <cell alignment="left" valignment="top" usebox="none">
44329 \begin_layout Plain Layout
44333 \begin_layout Plain Layout
44346 \begin_layout Plain Layout
44354 \begin_inset Phantom Phantom
44357 \begin_layout Plain Layout
44367 \begin_layout Plain Layout
44379 <cell alignment="left" valignment="top" usebox="none">
44382 \begin_layout Plain Layout
44386 \begin_layout Plain Layout
44399 \begin_layout Plain Layout
44407 \begin_inset Phantom Phantom
44410 \begin_layout Plain Layout
44420 \begin_layout Plain Layout
44434 <cell alignment="left" valignment="top" usebox="none">
44437 \begin_layout Plain Layout
44441 \begin_layout Plain Layout
44454 \begin_layout Plain Layout
44462 \begin_inset Phantom Phantom
44465 \begin_layout Plain Layout
44475 \begin_layout Plain Layout
44487 <cell alignment="left" valignment="top" usebox="none">
44490 \begin_layout Plain Layout
44494 \begin_layout Plain Layout
44507 \begin_layout Plain Layout
44515 \begin_inset Phantom Phantom
44518 \begin_layout Plain Layout
44528 \begin_layout Plain Layout
44540 <cell alignment="left" valignment="top" usebox="none">
44543 \begin_layout Plain Layout
44547 \begin_layout Plain Layout
44560 \begin_layout Plain Layout
44568 \begin_inset Phantom Phantom
44571 \begin_layout Plain Layout
44581 \begin_layout Plain Layout
44593 <cell alignment="left" valignment="top" usebox="none">
44596 \begin_layout Plain Layout
44600 \begin_layout Plain Layout
44613 \begin_layout Plain Layout
44621 \begin_inset Phantom Phantom
44624 \begin_layout Plain Layout
44634 \begin_layout Plain Layout
44648 <cell alignment="left" valignment="top" usebox="none">
44651 \begin_layout Plain Layout
44655 \begin_layout Plain Layout
44668 \begin_layout Plain Layout
44676 \begin_inset Phantom Phantom
44679 \begin_layout Plain Layout
44689 \begin_layout Plain Layout
44701 <cell alignment="left" valignment="top" usebox="none">
44704 \begin_layout Plain Layout
44708 \begin_layout Plain Layout
44721 \begin_layout Plain Layout
44729 \begin_inset Phantom Phantom
44732 \begin_layout Plain Layout
44742 \begin_layout Plain Layout
44754 <cell alignment="left" valignment="top" usebox="none">
44757 \begin_layout Plain Layout
44761 \begin_layout Plain Layout
44774 \begin_layout Plain Layout
44782 \begin_inset Phantom Phantom
44785 \begin_layout Plain Layout
44795 \begin_layout Plain Layout
44807 <cell alignment="left" valignment="top" usebox="none">
44810 \begin_layout Plain Layout
44814 \begin_layout Plain Layout
44827 \begin_layout Plain Layout
44835 \begin_inset Phantom Phantom
44838 \begin_layout Plain Layout
44848 \begin_layout Plain Layout
44862 <cell alignment="left" valignment="top" usebox="none">
44865 \begin_layout Plain Layout
44869 \begin_layout Plain Layout
44882 \begin_layout Plain Layout
44890 \begin_inset Phantom Phantom
44893 \begin_layout Plain Layout
44903 \begin_layout Plain Layout
44915 <cell alignment="left" valignment="top" usebox="none">
44918 \begin_layout Plain Layout
44924 <cell alignment="left" valignment="top" usebox="none">
44927 \begin_layout Plain Layout
44933 <cell alignment="left" valignment="top" usebox="none">
44936 \begin_layout Plain Layout
44950 \begin_layout Chapter
44951 Explanation of Equation
44952 \begin_inset space ~
44956 \begin_inset CommandInset ref
44963 \begin_inset CommandInset label
44965 name "cha:Explanation-of-Equation"
44972 \begin_layout Standard
44973 We can calculate the total width of
44978 \begin_inset Formula $W_{\mathrm{tot\,n}}$
44982 \begin_inset Formula
44984 W_{\mathrm{tot}\,n}=n\cdot(W_{g\,n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
44990 \begin_inset Formula $W_{g\,n}$
44993 is the given width of all cells,
44999 is the \SpecialChar LaTeX
45000 -length between the cell text and the cell border (its default value
45002 \begin_inset space \thinspace{}
45012 is the thickness of the cell border line, the default is 0.4
45013 \begin_inset space \thinspace{}
45019 \begin_layout Standard
45021 \begin_inset space ~
45025 \begin_inset CommandInset ref
45027 reference "eq:Wtot_n"
45031 , the total width of a multicolumn
45032 \begin_inset Formula $W_{\mathrm{tot\,mult}}$
45036 \begin_inset Formula
45038 W_{\mathrm{tot\,mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
45046 \begin_layout Standard
45047 By setting equation
45048 \begin_inset space ~
45052 \begin_inset CommandInset ref
45054 reference "eq:Wtot_n"
45059 \begin_inset CommandInset ref
45061 reference "eq:Wtot_mult"
45065 equal we can calculate the needed given width
45066 \begin_inset Formula $W_{g\,n}$
45073 columns are spanned, so that each column has a total width of
45074 \begin_inset Formula $W_{\mathrm{tot\,mult}}/n$
45078 \begin_inset Formula
45080 W_{g\,n}=\frac{W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth})}{n}
45088 \begin_layout Bibliography
45089 \begin_inset CommandInset bibitem
45090 LatexCommand bibitem
45091 key "latexcompanion"
45095 Frank Mittelbach and Michel Goossens:
45097 The \SpecialChar LaTeX
45098 Companion Second Edition.
45101 Addison-Wesley, 2004
45104 \begin_layout Bibliography
45105 \begin_inset CommandInset bibitem
45106 LatexCommand bibitem
45111 Helmut Kopka and Patrick W.
45114 A Guide to \SpecialChar LaTeX
45118 Addison-Wesley, 2003
45121 \begin_layout Bibliography
45122 \begin_inset CommandInset bibitem
45123 LatexCommand bibitem
45131 : A Document Preparation System.
45134 Addison-Wesley, second edition, 1994
45137 \begin_layout Bibliography
45138 \begin_inset CommandInset bibitem
45139 LatexCommand bibitem
45144 Documentation of the \SpecialChar LaTeX
45148 \begin_inset CommandInset href
45151 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/arydshln/arydshln.pdf"
45158 \begin_inset Index idx
45161 \begin_layout Plain Layout
45163 -packages ! arydshln
45171 \begin_layout Bibliography
45172 \begin_inset CommandInset bibitem
45173 LatexCommand bibitem
45178 Documentation of the \SpecialChar LaTeX
45182 \begin_inset CommandInset href
45185 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
45192 \begin_inset Index idx
45195 \begin_layout Plain Layout
45197 -packages ! booktabs
45205 \begin_layout Bibliography
45206 \begin_inset CommandInset bibitem
45207 LatexCommand bibitem
45212 Documentation of the \SpecialChar LaTeX
45216 \begin_inset CommandInset href
45219 target "http://mirrors.ctan.org/macros/latex/contrib/caption/caption-eng.pdf"
45226 \begin_inset Index idx
45229 \begin_layout Plain Layout
45231 -packages ! caption
45239 \begin_layout Bibliography
45240 \begin_inset CommandInset bibitem
45241 LatexCommand bibitem
45246 Documentation of the \SpecialChar LaTeX
45250 \begin_inset CommandInset href
45253 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/diagbox/diagbox.pdf"
45260 \begin_inset Index idx
45263 \begin_layout Plain Layout
45265 -packages ! diagbox
45273 \begin_layout Bibliography
45274 \begin_inset CommandInset bibitem
45275 LatexCommand bibitem
45280 Documentation of the \SpecialChar LaTeX
45284 \begin_inset CommandInset href
45287 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
45294 \begin_inset Index idx
45297 \begin_layout Plain Layout
45299 -packages ! endfloat
45307 \begin_layout Bibliography
45308 \begin_inset CommandInset bibitem
45309 LatexCommand bibitem
45314 Documentation of the \SpecialChar LaTeX
45318 \begin_inset CommandInset href
45321 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
45328 \begin_inset Index idx
45331 \begin_layout Plain Layout
45333 -packages ! footmisc
45341 \begin_layout Bibliography
45342 \begin_inset CommandInset bibitem
45343 LatexCommand bibitem
45348 Documentation of the \SpecialChar LaTeX
45352 \begin_inset CommandInset href
45355 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
45362 \begin_inset Index idx
45365 \begin_layout Plain Layout
45367 -packages ! hyperref
45375 \begin_layout Bibliography
45376 \begin_inset CommandInset bibitem
45377 LatexCommand bibitem
45382 Documentation of the \SpecialChar LaTeX
45386 \begin_inset CommandInset href
45389 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
45396 \begin_inset Index idx
45399 \begin_layout Plain Layout
45401 -packages ! hyperref
45409 \begin_layout Bibliography
45410 \begin_inset CommandInset bibitem
45411 LatexCommand bibitem
45416 Documentation of the \SpecialChar LaTeX
45420 \begin_inset CommandInset href
45423 target "http://mirror.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf"
45430 \begin_inset Index idx
45433 \begin_layout Plain Layout
45435 -packages ! KOMA-Script
45443 \begin_layout Bibliography
45444 \begin_inset CommandInset bibitem
45445 LatexCommand bibitem
45450 Documentation of the \SpecialChar LaTeX
45454 \begin_inset CommandInset href
45457 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
45464 \begin_inset CommandInset href
45467 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
45472 \begin_inset Index idx
45475 \begin_layout Plain Layout
45477 -packages ! lettrine
45485 \begin_layout Bibliography
45486 \begin_inset CommandInset bibitem
45487 LatexCommand bibitem
45492 Documentation of the \SpecialChar LaTeX
45496 \begin_inset CommandInset href
45499 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
45506 \begin_inset Index idx
45509 \begin_layout Plain Layout
45511 -packages ! listings
45519 \begin_layout Bibliography
45520 \begin_inset CommandInset bibitem
45521 LatexCommand bibitem
45526 Documentation of the \SpecialChar LaTeX
45530 \begin_inset CommandInset href
45533 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
45540 \begin_inset Index idx
45543 \begin_layout Plain Layout
45545 -packages ! marginnote
45553 \begin_layout Bibliography
45554 \begin_inset CommandInset bibitem
45555 LatexCommand bibitem
45560 Documentation of the \SpecialChar LaTeX
45564 \begin_inset CommandInset href
45567 target "http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf"
45574 \begin_inset Index idx
45577 \begin_layout Plain Layout
45579 -packages ! pdfpages
45587 \begin_layout Bibliography
45588 \begin_inset CommandInset bibitem
45589 LatexCommand bibitem
45594 Documentation of the \SpecialChar LaTeX
45598 \begin_inset CommandInset href
45601 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
45608 \begin_inset Index idx
45611 \begin_layout Plain Layout
45613 -packages ! prettyref
45621 \begin_layout Bibliography
45622 \begin_inset CommandInset bibitem
45623 LatexCommand bibitem
45628 Web page of the \SpecialChar LaTeX
45632 \begin_inset CommandInset href
45635 target "http://tug.org/PSTricks/"
45642 \begin_inset Index idx
45645 \begin_layout Plain Layout
45647 -packages ! PSTricks
45655 \begin_layout Bibliography
45656 \begin_inset CommandInset bibitem
45657 LatexCommand bibitem
45662 Documentation of the \SpecialChar LaTeX
45666 \begin_inset CommandInset href
45669 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/refstyle.pdf"
45676 \begin_inset Index idx
45679 \begin_layout Plain Layout
45681 -packages ! refstyle
45689 \begin_layout Bibliography
45690 \begin_inset CommandInset bibitem
45691 LatexCommand bibitem
45696 Documentation of the \SpecialChar LaTeX
45700 \begin_inset CommandInset href
45703 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
45710 \begin_inset Index idx
45713 \begin_layout Plain Layout
45715 -packages ! sidecap
45723 \begin_layout Bibliography
45724 \begin_inset CommandInset bibitem
45725 LatexCommand bibitem
45731 \begin_inset CommandInset href
45734 target "http://wiki.lyx.org/LyX/NewInLyX20"
45738 about new features in
45746 \begin_layout Standard
45747 \begin_inset CommandInset index_print
45748 LatexCommand printindex