1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
147 % redefine the \LyX macro for PDF bookmarks
148 \def\LyX{\texorpdfstring{%
149 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
152 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
153 \use_default_options false
154 \maintain_unincluded_children false
156 \language_package default
161 \font_typewriter default
162 \font_default_family default
163 \use_non_tex_fonts false
169 \default_output_format default
171 \bibtex_command default
172 \index_command default
176 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
177 \pdf_author "LyX Team, Uwe Stöhr"
178 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
179 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
181 \pdf_bookmarksnumbered true
182 \pdf_bookmarksopen true
183 \pdf_bookmarksopenlevel 1
184 \pdf_breaklinks false
188 \pdf_pdfusetitle false
189 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \paperorientation portrait
202 \notefontcolor #0000ff
209 \paragraph_separation skip
211 \quotes_language english
214 \paperpagestyle default
218 \tracking_changes false
219 \output_changes false
222 \html_be_strict false
228 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
237 \begin_layout Plain Layout
239 If you have comments or error corrections, please send them to the LyX Documenta
241 \begin_inset CommandInset href
243 name "lyx-docs@lists.lyx.org"
244 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
255 \begin_inset Note Note
258 \begin_layout Plain Layout
265 \begin_inset Newline newline
269 \begin_inset Newline newline
277 \begin_layout Standard
278 \begin_inset CommandInset toc
279 LatexCommand tableofcontents
286 \begin_layout Standard
287 \begin_inset Note Note
290 \begin_layout Plain Layout
291 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
309 If they are not installed you can export the document anyway but the sections
310 where the packages are required won't appear in the output.
313 \begin_layout Plain Layout
314 The latest PDF-version of this document can be found here:
315 \begin_inset Newline newline
320 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
328 \begin_layout Chapter
330 \begin_inset Index idx
333 \begin_layout Plain Layout
340 \begin_inset Index idx
343 \begin_layout Plain Layout
348 \begin_layout Plain Layout
359 \begin_layout Plain Layout
374 \begin_layout Section
376 \begin_inset Index idx
379 \begin_layout Plain Layout
380 Figures ! Graphics Dialog
386 \begin_inset CommandInset label
388 name "sec:Graphics-Dialog"
395 \begin_layout Standard
396 To insert an image into your document, place the cursor at the text position
397 you want and click on the toolbar icon
398 \begin_inset Graphics
399 filename ../images/dialog-show-new-inset_graphics.png
407 Insert\SpecialChar \menuseparator
411 Then a dialog will appear to choose the file to load.
412 The image will appear in the output exactly at the position where it is
416 \begin_layout Standard
417 The graphics dialog can be called at any time by clicking on an image.
418 This dialog has three tabs:
421 \begin_layout Description
426 Here you can choose an image file and adjust its appearance in the output.
427 The available units for the image size are explained in appendix
432 \begin_inset CommandInset ref
434 reference "cha:Units-available-in"
439 \begin_inset Newline newline
443 \begin_inset Index idx
446 \begin_layout Plain Layout
452 You can rotate images counter-clockwise by setting a rotation angle and
454 The image will also be rotated inside LyX.
455 \begin_inset Newline newline
459 \begin_inset Index idx
462 \begin_layout Plain Layout
468 Images can be scaled by using a percentage value or by setting the width
469 and height explicitly.
470 If you set only the width or only the height, the other size will be determined
472 If you set both, then the image will be transformed to the given size,
473 possibly distorting it.
474 To prevent the image from distortion, use the option
476 Maintain aspect ratio
479 The image will then be scaled so that its width and height don't exceed
480 the specified dimensions.
481 \begin_inset Newline newline
484 Images can be opened in a program of your choice by right-clicking on it
485 and choosing the entry
494 The program can be set for every image format in the file format settings
495 in LyX's preferences.
498 \begin_layout Description
503 Alternatively to the usage of scaling units it is possible to set image
504 coordinates to adjust the height and width of the image in the output.
505 The coordinates can also be calculated automatically by pressing the button
535 will only print the image region within the given coordinates.
536 Normally you don't need to take care about image coordinates and can ignore
540 \begin_layout Description
557 In this tab you can modify the appearance of the image within LyX and LaTeX
558 experts can specify additional LaTeX options.
559 \begin_inset Newline newline
570 makes the image appear in the output only as a frame with the size of the
572 \begin_inset Newline newline
591 option only affects zipped EPS-graphics, e.
592 \begin_inset space \thinspace{}
596 \begin_inset space \space{}
604 When the option is used the images will not be unzipped on export, since
605 LaTeX can handle them as they are.
606 \begin_inset Newline newline
609 Zipped EPS-graphics are useful to save disk space when you choose PostScript
610 as output format, see appendix
615 \begin_inset CommandInset ref
617 reference "sec:PostScript"
622 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
624 \begin_inset Newline newline
632 \begin_inset Newline newline
637 zgrep %%Bounding x.eps.gz > x.eps.bb
640 \begin_inset Newline newline
643 The second command creates the bounding box file
644 \begin_inset Quotes eld
648 \begin_inset Quotes erd
651 that is needed by LaTeX for zipped graphics.
652 \begin_inset Newline newline
667 allows you define or join an image settings group.
668 \begin_inset Index idx
671 \begin_layout Plain Layout
672 Figures ! Settings grouping
677 Images within such a group share their settings, so adjusting one image
678 of the group automatically also adjusts all other images of the group in
680 So you can for example change the size for a bunch of images without the
681 need to manually change each of them.
682 Joining an existing group can also be done using the context menu of the
683 image by checking the name of the desired group.
686 \begin_layout Standard
687 \begin_inset VSpace bigskip
693 \begin_layout Standard
694 This is an example image in EPS format
698 \begin_layout Plain Layout
699 Image formats are explained in section
704 \begin_inset CommandInset ref
706 reference "sec:Image-Formats"
715 within a separate, horizontally centered paragraph:
718 \begin_layout Standard
720 \begin_inset Graphics
721 filename clipart/mobius.eps
731 \begin_layout Standard
732 This is the same image like the one above but in draft mode:
735 \begin_layout Standard
737 \begin_inset Graphics
738 filename clipart/mobius.eps
749 \begin_layout Standard
750 \begin_inset Newpage newpage
756 \begin_layout Section
758 \begin_inset CommandInset label
760 name "sec:Figure-Floats"
765 \begin_inset Index idx
768 \begin_layout Plain Layout
775 \begin_inset Index idx
778 \begin_layout Plain Layout
787 \begin_layout Standard
788 For general explanations about floats, have a look at section
793 \begin_inset CommandInset ref
795 reference "sec:FloatIntroduction"
802 \begin_layout Standard
804 \begin_inset Graphics
805 filename ../images/float-insert_figure.png
813 Insert\SpecialChar \menuseparator
814 Float\SpecialChar \menuseparator
817 inserts a float with a caption that has the label
818 \begin_inset Quotes eld
826 \begin_inset Quotes erd
829 (# is the actual number).
830 You can insert the image above the caption, like in Figure
835 \begin_inset CommandInset ref
837 reference "fig:kill-plat"
841 or below the caption, like in Figure
846 \begin_inset CommandInset ref
848 reference "fig:escher"
853 More about caption placement is described in section
858 \begin_inset CommandInset ref
860 reference "sec:Caption-Placement"
867 \begin_layout Standard
868 \begin_inset Float figure
873 \begin_layout Plain Layout
875 \begin_inset Graphics
876 filename clipart/platypus.eps
886 \begin_layout Plain Layout
889 \begin_layout Plain Layout
890 \begin_inset CommandInset label
896 A severely distorted platypus in a float.
909 \begin_layout Standard
910 \begin_inset Float figure
915 \begin_layout Plain Layout
918 \begin_layout Plain Layout
919 \begin_inset CommandInset label
934 \begin_layout Plain Layout
936 \begin_inset Graphics
937 filename clipart/escher-lsd.eps
952 \begin_layout Standard
953 \begin_inset Index idx
956 \begin_layout Plain Layout
957 References ! to Figures
967 \begin_inset CommandInset ref
969 reference "fig:kill-plat"
974 \begin_inset CommandInset ref
976 reference "fig:escher"
980 are examples of referenced figures.
981 Figures can be referenced in the text by referencing their label.
982 To do this insert a label in the caption using the menu
984 Insert\SpecialChar \menuseparator
987 or the toolbar button
988 \begin_inset Graphics
989 filename ../images/label-insert.png
996 You can now refer to the label using the menu
998 Insert\SpecialChar \menuseparator
1000 \begin_inset space ~
1005 or the toolbar button
1006 \begin_inset Graphics
1007 filename ../images/dialog-show-new-inset_ref.png
1014 It is important to use references to floats, rather than using vague references
1016 \begin_inset Quotes eld
1020 \begin_inset Quotes erd
1023 , because LaTeX will reposition the floats in the final document and it
1025 \begin_inset Quotes eld
1029 \begin_inset Quotes erd
1033 \begin_inset Newline newline
1036 Referencing is explained in detail in section
1037 \begin_inset space ~
1041 \begin_inset CommandInset ref
1043 reference "sec:Referencing-Floats"
1050 \begin_layout Standard
1051 Normally only one image is inserted to a figure float, but sometimes you
1052 might want to use two images with separate subcaptions.
1053 This can be done by inserting image floats into existing image floats.
1054 Note that only the main caption of the float is added to the List of Figures.
1056 \begin_inset space ~
1060 \begin_inset CommandInset ref
1062 reference "fig:Two-distorted-images"
1066 is an example of a figure float with two images set side by side.
1067 You can also set the images one below the other.
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "fig:Undefinable-structure"
1080 \begin_inset CommandInset ref
1082 reference "fig:A-Platypus"
1089 \begin_layout Standard
1090 \begin_inset Float figure
1095 \begin_layout Plain Layout
1096 \begin_inset space \hfill{}
1100 \begin_inset Float figure
1105 \begin_layout Plain Layout
1106 \begin_inset Caption
1108 \begin_layout Plain Layout
1109 \begin_inset CommandInset label
1111 name "fig:Undefinable-structure"
1115 Undefinable structure.
1123 \begin_layout Plain Layout
1124 \begin_inset Graphics
1125 filename clipart/escher-lsd.eps
1138 \begin_inset space \hfill{}
1142 \begin_inset Float figure
1147 \begin_layout Plain Layout
1148 \begin_inset Caption
1150 \begin_layout Plain Layout
1151 \begin_inset CommandInset label
1153 name "fig:A-Platypus"
1165 \begin_layout Plain Layout
1166 \begin_inset Graphics
1167 filename clipart/platypus.eps
1180 \begin_inset space \hfill{}
1186 \begin_layout Plain Layout
1187 \begin_inset Caption
1189 \begin_layout Plain Layout
1190 \begin_inset CommandInset label
1192 name "fig:Two-distorted-images"
1197 \begin_inset CommandInset label
1199 name "fig2:Two-distorted-images-2"
1203 Two distorted images.
1204 Both images are in the image settings group named
1205 \begin_inset Quotes eld
1209 \begin_inset Quotes erd
1225 \begin_layout Standard
1226 \begin_inset Newpage newpage
1232 \begin_layout Section
1234 \begin_inset CommandInset label
1236 name "sec:Image-Formats"
1241 \begin_inset Index idx
1244 \begin_layout Plain Layout
1251 \begin_inset Index idx
1254 \begin_layout Plain Layout
1255 Figures ! Image Formats
1263 \begin_layout Standard
1264 You can insert images in any known file format.
1265 But as explained in appendix
1266 \begin_inset space ~
1270 \begin_inset CommandInset ref
1272 reference "cha:Output-File-Formats"
1276 , each output document format allows only a few image formats.
1277 LyX uses therefore the program
1281 in the background to convert the images to the right format.
1282 To increase your work flow by avoiding these conversions in the background,
1283 you can use only the image formats that can directly be embedded in the
1285 The output file formats are explained in appendix
1286 \begin_inset space ~
1290 \begin_inset CommandInset ref
1292 reference "cha:Output-File-Formats"
1299 \begin_layout Standard
1300 Similar to fonts there are two types of image formats:
1303 \begin_layout Description
1305 \begin_inset space ~
1308 images consist of pixel values, often in a compressed form.
1309 They are therefore not fully scalable and look pixelated in large zooms.
1310 Well-known bitmap image formats are
1311 \begin_inset Quotes eld
1314 Graphics Interchange Format
1315 \begin_inset Quotes erd
1318 (GIF, file extension
1319 \begin_inset Quotes eld
1327 \begin_inset Quotes erd
1331 \begin_inset Index idx
1334 \begin_layout Plain Layout
1339 \begin_layout Plain Layout
1350 \begin_layout Plain Layout
1363 \begin_inset Quotes eld
1366 Portable Network Graphics
1367 \begin_inset Quotes erd
1370 (PNG, file extension
1371 \begin_inset Quotes eld
1379 \begin_inset Quotes erd
1383 \begin_inset Index idx
1386 \begin_layout Plain Layout
1391 \begin_layout Plain Layout
1402 \begin_layout Plain Layout
1415 \begin_inset Quotes eld
1418 Joint Photographic Experts Group
1419 \begin_inset Quotes erd
1422 (JPG, file extension
1423 \begin_inset Quotes eld
1431 \begin_inset Quotes erd
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
1481 \begin_layout Description
1483 \begin_inset space ~
1486 images consist of vectors and can therefore be scaled to any size without
1488 The scaling ability is necessary if you want to create presentations, because
1489 presentations are always scaled by the video projector.
1490 Scaling is also useful for online documents to let the user zoom into diagrams.
1491 \begin_inset Newline newline
1494 Well-known scalable image formats are
1495 \begin_inset Quotes eld
1498 Scalable Vector Graphics
1499 \begin_inset Quotes erd
1502 (SVG, file extension
1503 \begin_inset Quotes eld
1511 \begin_inset Quotes erd
1515 \begin_inset Index idx
1518 \begin_layout Plain Layout
1523 \begin_layout Plain Layout
1534 \begin_layout Plain Layout
1547 \begin_inset Quotes eld
1550 Encapsulated PostScript
1551 \begin_inset Quotes erd
1554 (EPS, file extension
1555 \begin_inset Quotes eld
1563 \begin_inset Quotes erd
1567 \begin_inset Index idx
1570 \begin_layout Plain Layout
1575 \begin_layout Plain Layout
1586 \begin_layout Plain Layout
1599 \begin_inset Quotes eld
1602 Portable Document Format
1603 \begin_inset Quotes erd
1606 (PDF, file extension
1607 \begin_inset Quotes eld
1615 \begin_inset Quotes erd
1619 \begin_inset Index idx
1622 \begin_layout Plain Layout
1629 \begin_inset Quotes eld
1633 \begin_inset Quotes erd
1636 (WMF, file extension
1637 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1649 \begin_inset Index idx
1652 \begin_layout Plain Layout
1657 \begin_layout Plain Layout
1668 \begin_layout Plain Layout
1682 \begin_inset Quotes eld
1686 \begin_inset Quotes erd
1689 , because you can convert any bitmap image to a PDF or EPS-image and the
1690 result will still be a bitmap image.
1691 In such cases only a header with the image properties is added to the original
1696 \begin_layout Plain Layout
1697 In the case of PDF, the original image is additionally compressed.
1703 The PDF-files generated by
1707 are for example bitmap images.
1710 \begin_layout Standard
1711 Normally it is not possible to convert a bitmap image into a scalable one,
1713 Only the image formats PDF and EPS can directly be embedded to PDF and
1714 PostScript output files, respectively.
1715 SVG and WMF-images are recalculated to bitmaps when the output file is
1716 generated because there is currently no adequate WMF/SVG
1717 \begin_inset Formula $\to$
1720 PDF/EPS converter available.
1723 \begin_layout Chapter
1725 \begin_inset Index idx
1728 \begin_layout Plain Layout
1737 \begin_layout Section
1739 \begin_inset Index idx
1742 \begin_layout Plain Layout
1743 Table ! Introduction
1751 \begin_layout Standard
1752 You can insert a table using either the toolbar button
1753 \begin_inset Graphics
1754 filename ../images/tabular-insert.png
1762 Insert\SpecialChar \menuseparator
1766 The toolbar button offers you a graphical selection: move the mouse to
1767 set the column/row number of the table that should be created and then
1768 press a mouse button.
1769 When you use the menu to create a table, a dialog will appear, asking you
1770 for the number of rows and columns.
1771 \begin_inset Newline newline
1774 The default table has lines around any cell and the first row appears separated
1775 from the rest of the table.
1776 This separation occurs due to a double line: The cells of the first row
1777 have a line below them and the cells of the second row have a line above
1779 Here is an example table:
1782 \begin_layout Standard
1784 \begin_inset Tabular
1785 <lyxtabular version="3" rows="4" columns="4">
1786 <features tabularvalignment="middle">
1787 <column alignment="center" valignment="top" width="0">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1790 <column alignment="center" valignment="top" width="0">
1792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1795 \begin_layout Plain Layout
1801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1804 \begin_layout Plain Layout
1819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1822 \begin_layout Plain Layout
1828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1831 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1842 \begin_layout Plain Layout
1857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1860 \begin_layout Plain Layout
1866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1869 \begin_layout Plain Layout
1875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1878 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1889 \begin_layout Plain Layout
1904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1907 \begin_layout Plain Layout
1913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1916 \begin_layout Plain Layout
1922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1925 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1936 \begin_layout Plain Layout
1951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1954 \begin_layout Plain Layout
1960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1963 \begin_layout Plain Layout
1969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1972 \begin_layout Plain Layout
1986 \begin_layout Section
1988 \begin_inset Index idx
1991 \begin_layout Plain Layout
2000 \begin_layout Standard
2001 You can alter a table by clicking on it with the right mouse button, which
2002 brings up the table dialog.
2003 Here you can adjust the settings of that cell and row/column respectively
2004 where the cursor is currently placed.
2005 Most of the dialog options also work on selections.
2006 This means if you select more cells, columns or rows, the action is done
2007 for the whole selection.
2008 Note that there is a difference between selecting the
2012 of the cell, and the cell itself.
2013 \begin_inset Newline newline
2016 With the dialog option
2019 \begin_inset space ~
2024 every change you make in the dialog is directly applied.
2025 If you move the cursor to another table cell the dialog will then also
2026 be updated with the parameters of the new cell.
2027 If you change length values in the dialog you must press return to get
2029 \begin_inset Newline newline
2032 You can alter tables with the following tabs of the table dialog:
2035 \begin_layout Description
2039 \begin_inset space ~
2044 Here you can set the table width
2045 \begin_inset Index idx
2048 \begin_layout Plain Layout
2054 , and the horizontal alignment and the width of the current column.
2058 \begin_inset space ~
2062 \begin_inset space ~
2067 is described in section
2068 \begin_inset space ~
2072 \begin_inset CommandInset ref
2074 reference "sub:Special-Cell-Alignment"
2079 When you have set a width you can also adjust the vertical alignment of
2081 A given width will allow the cell to have line breaks and multiple paragraphs
2082 of text, see section
2083 \begin_inset space ~
2087 \begin_inset CommandInset ref
2089 reference "sub:Multiple-Lines-in"
2094 If you set no width, the column is as wide as the content of its widest
2096 \begin_inset Newline newline
2099 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2101 \begin_inset space ~
2105 \begin_inset CommandInset ref
2107 reference "sub:Multicolumns"
2111 or the cells of one column as multirow cell, see section
2112 \begin_inset space ~
2116 \begin_inset CommandInset ref
2118 reference "sub:Multirows"
2123 \begin_inset Newline newline
2126 The rotate check boxes rotate the current cell, a selection, or the whole
2127 table counter-clockwise by 90°.
2128 The rotation is not shown within LyX, only in the output.
2129 \begin_inset Newline newline
2133 \begin_inset Note Greyedout
2136 \begin_layout Plain Layout
2141 Not all DVI-viewers are able to display rotations.
2147 \begin_inset Newline newline
2150 The table-wide vertical alignment is used for tables within text lines:
2151 \begin_inset Newline newline
2154 A line with tables with different alignments:
2155 \begin_inset Tabular
2156 <lyxtabular version="3" rows="2" columns="2">
2157 <features tabularvalignment="top">
2158 <column alignment="center" valignment="top" width="0pt">
2159 <column alignment="center" valignment="top" width="0">
2161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2164 \begin_layout Plain Layout
2170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2173 \begin_layout Plain Layout
2190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2193 \begin_layout Plain Layout
2208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2211 \begin_layout Plain Layout
2223 \begin_inset Tabular
2224 <lyxtabular version="3" rows="2" columns="2">
2225 <features tabularvalignment="middle">
2226 <column alignment="center" valignment="top" width="0">
2227 <column alignment="center" valignment="top" width="0">
2229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2232 \begin_layout Plain Layout
2238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2241 \begin_layout Plain Layout
2258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2261 \begin_layout Plain Layout
2276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2279 \begin_layout Plain Layout
2291 \begin_inset Tabular
2292 <lyxtabular version="3" rows="2" columns="2">
2293 <features tabularvalignment="bottom">
2294 <column alignment="center" valignment="top" width="0pt">
2295 <column alignment="center" valignment="top" width="0">
2297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2300 \begin_layout Plain Layout
2306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2309 \begin_layout Plain Layout
2326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2329 \begin_layout Plain Layout
2344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2347 \begin_layout Plain Layout
2359 \begin_inset Newline newline
2362 It is also possible to enter a LaTeX-argument which is needed for special
2363 table formattings, see section
2364 \begin_inset space ~
2368 \begin_inset CommandInset ref
2370 reference "sub:Multicolumn-Calculations"
2375 \begin_inset CommandInset ref
2377 reference "sec:Colored-Tables"
2384 \begin_layout Description
2389 In this tab you can add and delete border lines for the current row/column.
2390 \begin_inset Newline newline
2393 Using the style option
2397 will convert the table to a formal table as described in section
2398 \begin_inset space ~
2402 \begin_inset CommandInset ref
2404 reference "sec:Formal-Tables"
2409 \begin_inset Newline newline
2412 You can also add here space to table rows as described in section
2413 \begin_inset space ~
2417 \begin_inset CommandInset ref
2419 reference "sub:Row-Spacing"
2426 \begin_layout Description
2431 This tab is to make a table a so called
2432 \begin_inset Quotes eld
2440 \begin_inset Quotes erd
2443 that can run over several pages.
2445 \begin_inset space ~
2449 \begin_inset CommandInset ref
2451 reference "sec:Longtables"
2456 \begin_inset CommandInset ref
2458 reference "sec:Special-Longtable-Issues"
2462 describe the longtable features in detail.
2465 \begin_layout Section
2467 \begin_inset Index idx
2470 \begin_layout Plain Layout
2479 \begin_layout Standard
2480 The table toolbar is an alternative to the table dialog to be able to alter
2482 It should normally appear at the bottom of LyX's main window when the cursor
2484 You can alternatively switch it on to appear always, by right-clicking
2485 in LyX's main menu bar.
2488 \begin_layout Standard
2489 The toolbar has the following icons:
2492 \begin_layout Labeling
2493 \labelwidthstring 00.00.0000
2494 \begin_inset Graphics
2495 filename ../images/tabular-feature_append-row.png
2500 adds a row below the current cell or selection
2503 \begin_layout Labeling
2504 \labelwidthstring 00.00.0000
2505 \begin_inset Graphics
2506 filename ../images/tabular-feature_append-column.png
2511 adds a column right beside the current cell or selection
2514 \begin_layout Labeling
2515 \labelwidthstring 00.00.0000
2516 \begin_inset Graphics
2517 filename ../images/tabular-feature_delete-row.png
2522 deletes the current row or selection
2525 \begin_layout Labeling
2526 \labelwidthstring 00.00.0000
2527 \begin_inset Graphics
2528 filename ../images/tabular-feature_delete-column.png
2533 deletes the current column or selection
2536 \begin_layout Labeling
2537 \labelwidthstring 00.00.0000
2538 \begin_inset Graphics
2539 filename ../images/tabular-feature_toggle-line-top.png
2544 adds a line at the top of the current cell / row or of a selection
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2549 \begin_inset Graphics
2550 filename ../images/tabular-feature_toggle-line-bottom.png
2555 adds a line at the bottom of the current cell / row or of a selection
2558 \begin_layout Labeling
2559 \labelwidthstring 00.00.0000
2560 \begin_inset Graphics
2561 filename ../images/tabular-feature_toggle-line-left.png
2566 adds a line at the left side of the current cell / row or of a selection
2569 \begin_layout Labeling
2570 \labelwidthstring 00.00.0000
2571 \begin_inset Graphics
2572 filename ../images/tabular-feature_toggle-line-right.png
2577 adds a line at the right side of the current cell / row or of a selection
2580 \begin_layout Labeling
2581 \labelwidthstring 00.00.0000
2582 \begin_inset Graphics
2583 filename ../images/tabular-feature_set-all-lines.png
2588 adds lines around the current or selected cells - if the current cell no
2589 multicolumn cell this also affects the current row and column
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2594 \begin_inset Graphics
2595 filename ../images/tabular-feature_unset-all-lines.png
2600 deletes all lines of the current or selected cells - if the current cell
2601 no multicolumn cell this also affects the current row and column
2604 \begin_layout Labeling
2605 \labelwidthstring 00.00.0000
2606 \begin_inset Graphics
2607 filename ../images/tabular-feature_m-align-left.png
2612 left-aligns the content of the current cell / column
2615 \begin_layout Labeling
2616 \labelwidthstring 00.00.0000
2617 \begin_inset Graphics
2618 filename ../images/tabular-feature_m-align-center.png
2623 centers the content of the current cell / column horizontally
2626 \begin_layout Labeling
2627 \labelwidthstring 00.00.0000
2628 \begin_inset Graphics
2629 filename ../images/tabular-feature_m-align-right.png
2634 right-aligns the content of the current cell / column
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2639 \begin_inset Graphics
2640 filename ../images/tabular-feature_align-decimal.png
2645 aligns the content of the current column at a character
2648 \begin_layout Labeling
2649 \labelwidthstring 00.00.0000
2650 \begin_inset Graphics
2651 filename ../images/tabular-feature_m-valign-top.png
2656 aligns the content of the current cell vertically to the top
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2661 \begin_inset Graphics
2662 filename ../images/tabular-feature_m-valign-middle.png
2667 centers the content of the current cell vertically
2670 \begin_layout Labeling
2671 \labelwidthstring 00.00.0000
2672 \begin_inset Graphics
2673 filename ../images/tabular-feature_m-valign-bottom.png
2678 aligns the content of the current cell vertically to the bottom
2681 \begin_layout Labeling
2682 \labelwidthstring 00.00.0000
2683 \begin_inset Graphics
2684 filename ../images/tabular-feature_set-rotate-cell.png
2689 rotates the current cell or selection counter-clockwise by 90°
2692 \begin_layout Labeling
2693 \labelwidthstring 00.00.0000
2694 \begin_inset Graphics
2695 filename ../images/tabular-feature_set-rotate-tabular.png
2700 rotates the whole table counter-clockwise by 90°
2703 \begin_layout Labeling
2704 \labelwidthstring 00.00.0000
2705 \begin_inset Graphics
2706 filename ../images/tabular-feature_multicolumn.png
2711 sets the current cell or selection as a multicolumn
2714 \begin_layout Labeling
2715 \labelwidthstring 00.00.0000
2716 \begin_inset Graphics
2717 filename ../images/tabular-feature_multirow.png
2722 sets the current cell or selection as a multirow
2725 \begin_layout Standard
2726 \begin_inset Note Greyedout
2729 \begin_layout Plain Layout
2734 For the output the vertical alignment of the first cell in a row is used
2735 for all following cells in the row.
2743 \begin_layout Section
2745 \begin_inset Index idx
2748 \begin_layout Plain Layout
2757 \begin_layout Standard
2758 Additionally to the table dialog and toolbar, the menu
2760 Edit\SpecialChar \menuseparator
2763 allows you to add and delete border lines for the current row/column and
2764 to set the current selection as multicolumn.
2765 The menu is only available when the cursor is inside a table.
2768 \begin_layout Section
2770 \begin_inset CommandInset label
2772 name "sec:Table-Floats"
2777 \begin_inset Index idx
2780 \begin_layout Plain Layout
2787 \begin_inset Index idx
2790 \begin_layout Plain Layout
2799 \begin_layout Standard
2800 For general explanations about floats, have a look at section
2801 \begin_inset space ~
2805 \begin_inset CommandInset ref
2807 reference "sec:FloatIntroduction"
2814 \begin_layout Standard
2815 \begin_inset Float table
2821 \begin_layout Plain Layout
2822 \begin_inset Caption
2824 \begin_layout Plain Layout
2825 \begin_inset CommandInset label
2827 name "tab:a table float"
2839 \begin_layout Plain Layout
2841 \begin_inset Tabular
2842 <lyxtabular version="3" rows="3" columns="3">
2843 <features tabularvalignment="middle">
2844 <column alignment="center" valignment="top" width="0pt">
2845 <column alignment="center" valignment="top" width="0pt">
2846 <column alignment="center" valignment="top" width="0pt">
2848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2851 \begin_layout Plain Layout
2866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2869 \begin_layout Plain Layout
2884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2887 \begin_layout Plain Layout
2904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2907 \begin_layout Plain Layout
2922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2925 \begin_layout Plain Layout
2940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2943 \begin_layout Plain Layout
2960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2963 \begin_layout Plain Layout
2973 \begin_inset Formula $\int x^{2}dx$
2981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2984 \begin_layout Plain Layout
2994 \begin_inset Formula $\left[\begin{array}{cc}
3005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3008 \begin_layout Plain Layout
3018 \begin_inset Formula $1+1=2$
3039 \begin_layout Standard
3040 Table floats can be inserted using the menu
3042 Insert\SpecialChar \menuseparator
3043 Float\SpecialChar \menuseparator
3046 or the toolbar button
3047 \begin_inset Graphics
3048 filename ../images/float-insert_table.png
3057 \begin_layout Standard
3058 The float appears as a collapsible box with a caption that has the label
3060 \begin_inset Quotes eld
3064 \begin_inset space ~
3068 \begin_inset Quotes erd
3071 (# is the actual table number).
3072 You can insert tables in the float above or below the caption.
3075 \begin_layout Standard
3077 \begin_inset space ~
3081 \begin_inset CommandInset ref
3083 reference "tab:a table float"
3087 is an example table within a table float.
3090 \begin_layout Standard
3091 Having the caption above the table is the common rule that is unfortunately
3092 not supported in LaTeX's standard classes.
3093 This means that, if you are using the document classes
3109 , there will be no space between the caption and the table.
3110 To insert the needed space, add the following option to the load command
3111 of the LaTeX-package
3116 \begin_inset Index idx
3119 \begin_layout Plain Layout
3120 LaTeX-packages ! caption
3125 in your document preamble
3129 \begin_layout Plain Layout
3130 For more information have a look at section
3131 \begin_inset space ~
3135 \begin_inset CommandInset ref
3137 reference "sec:Caption-Placement"
3149 \begin_layout Standard
3155 \begin_layout Standard
3160 , which is described in section
3161 \begin_inset space ~
3165 \begin_inset CommandInset ref
3167 reference "sec:Caption-Formatting"
3171 , is used to adjust the caption format.
3174 \begin_layout Standard
3175 \begin_inset Index idx
3178 \begin_layout Plain Layout
3179 References ! to Tables
3184 Tables can be cross-referenced in the text by referencing their label.
3185 To do this insert a label in the caption using the menu
3187 Insert\SpecialChar \menuseparator
3190 or the toolbar button
3191 \begin_inset Graphics
3192 filename ../images/label-insert.png
3199 You can now refer to the label using the menu
3201 Insert\SpecialChar \menuseparator
3203 \begin_inset space ~
3208 or the toolbar button
3209 \begin_inset Graphics
3210 filename ../images/dialog-show-new-inset_ref.png
3217 \begin_inset Newline newline
3220 Referencing is explained in detail in section
3221 \begin_inset space ~
3225 \begin_inset CommandInset ref
3227 reference "sec:Referencing-Floats"
3234 \begin_layout Section
3236 \begin_inset CommandInset label
3238 name "sec:Longtables"
3243 \begin_inset Index idx
3246 \begin_layout Plain Layout
3253 \begin_inset Index idx
3256 \begin_layout Plain Layout
3265 \begin_layout Standard
3266 If the table is too long to fit on one page, you can use the option
3269 \begin_inset space ~
3273 \begin_inset space ~
3282 of the table dialog to split the table automatically over more pages.
3283 Doing this enables the following options:
3286 \begin_layout Description
3287 Header: The current row is defined to be a header row that appears on all
3288 pages of the longtable; except for the first page, if
3291 \begin_inset space ~
3297 This is therefore called the main header.
3300 \begin_layout Description
3302 \begin_inset space ~
3305 header: The current row is defined to be a header row that appears on the
3306 first page of the longtable.
3309 \begin_layout Description
3310 Footer: The current row is defined to be a footer row that appears on all
3311 pages of the longtable; except for the last page, if
3314 \begin_inset space ~
3322 \begin_layout Description
3324 \begin_inset space ~
3327 footer: The current row is defined to be a footer row that appears on the
3328 last page of the longtable.
3331 \begin_layout Description
3332 Caption: The current row contains the table caption.
3333 The row is reset as single column and a caption is inserted.
3334 More about longtable captions is explained in sec.
3335 \begin_inset space \thinspace{}
3339 \begin_inset CommandInset ref
3341 reference "sub:Longtable-Captions"
3348 \begin_layout Standard
3349 You can also specify a row where the table is split.
3350 See the following longtable to see how it works:
3353 \begin_layout Standard
3355 \begin_inset Tabular
3356 <lyxtabular version="3" rows="69" columns="3">
3357 <features islongtable="true" longtabularalignment="center">
3358 <column alignment="left" valignment="top" width="0cm">
3359 <column alignment="left" valignment="top" width="0pt">
3360 <column alignment="center" valignment="top" width="0pt">
3361 <row endfirsthead="true">
3362 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3365 \begin_layout Plain Layout
3368 Example Phone List (ignore the names)
3373 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3376 \begin_layout Plain Layout
3382 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3385 \begin_layout Plain Layout
3392 <row endfirsthead="true">
3393 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3396 \begin_layout Plain Layout
3404 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3407 \begin_layout Plain Layout
3413 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3416 \begin_layout Plain Layout
3425 <row endhead="true">
3426 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3429 \begin_layout Plain Layout
3437 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3440 \begin_layout Plain Layout
3446 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3449 \begin_layout Plain Layout
3456 <row endhead="true">
3457 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3460 \begin_layout Plain Layout
3468 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3471 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3480 \begin_layout Plain Layout
3489 <row endfoot="true">
3490 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3493 \begin_layout Plain Layout
3494 continued on next page
3499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3502 \begin_layout Plain Layout
3508 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3522 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" usebox="none">
3533 \begin_layout Plain Layout
3539 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3553 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" usebox="none">
3564 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3584 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" usebox="none">
3595 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3615 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" usebox="none">
3626 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3646 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" usebox="none">
3657 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3677 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" usebox="none">
3688 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3708 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" usebox="none">
3719 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3739 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" usebox="none">
3750 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3770 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" usebox="none">
3781 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3801 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" usebox="none">
3812 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3832 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" usebox="none">
3843 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3863 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" usebox="none">
3874 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3894 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" usebox="none">
3905 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3925 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" usebox="none">
3936 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3956 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" usebox="none">
3967 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3987 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" usebox="none">
3998 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4018 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" usebox="none">
4029 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4049 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" usebox="none">
4060 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4080 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" usebox="none">
4091 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4111 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" usebox="none">
4122 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4142 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" usebox="none">
4153 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4173 \begin_layout Plain Layout
4181 <cell alignment="center" valignment="top" usebox="none">
4184 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4204 \begin_layout Plain Layout
4212 <cell alignment="center" valignment="top" usebox="none">
4215 \begin_layout Plain Layout
4221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4235 \begin_layout Plain Layout
4243 <cell alignment="center" valignment="top" usebox="none">
4246 \begin_layout Plain Layout
4252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4266 \begin_layout Plain Layout
4274 <cell alignment="center" valignment="top" usebox="none">
4277 \begin_layout Plain Layout
4283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="center" valignment="top" usebox="none">
4308 \begin_layout Plain Layout
4314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4328 \begin_layout Plain Layout
4336 <cell alignment="center" valignment="top" usebox="none">
4339 \begin_layout Plain Layout
4345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4359 \begin_layout Plain Layout
4367 <cell alignment="center" valignment="top" usebox="none">
4370 \begin_layout Plain Layout
4376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4390 \begin_layout Plain Layout
4398 <cell alignment="center" valignment="top" usebox="none">
4401 \begin_layout Plain Layout
4407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4421 \begin_layout Plain Layout
4429 <cell alignment="center" valignment="top" usebox="none">
4432 \begin_layout Plain Layout
4438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4441 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4452 \begin_layout Plain Layout
4460 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4463 \begin_layout Plain Layout
4469 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4483 \begin_layout Plain Layout
4489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4492 \begin_layout Plain Layout
4498 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4512 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" usebox="none">
4523 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4543 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" usebox="none">
4554 \begin_layout Plain Layout
4560 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4574 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" usebox="none">
4585 \begin_layout Plain Layout
4591 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4605 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" usebox="none">
4616 \begin_layout Plain Layout
4622 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4636 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" usebox="none">
4647 \begin_layout Plain Layout
4653 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4667 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" usebox="none">
4678 \begin_layout Plain Layout
4684 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4698 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" usebox="none">
4709 \begin_layout Plain Layout
4715 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4729 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" usebox="none">
4740 \begin_layout Plain Layout
4746 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4760 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" usebox="none">
4771 \begin_layout Plain Layout
4777 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4791 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" usebox="none">
4802 \begin_layout Plain Layout
4808 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4822 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" usebox="none">
4833 \begin_layout Plain Layout
4839 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4853 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" usebox="none">
4864 \begin_layout Plain Layout
4870 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4884 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" usebox="none">
4895 \begin_layout Plain Layout
4901 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4915 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" usebox="none">
4926 \begin_layout Plain Layout
4932 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4946 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" usebox="none">
4957 \begin_layout Plain Layout
4963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4977 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" usebox="none">
4988 \begin_layout Plain Layout
4994 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5008 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" usebox="none">
5019 \begin_layout Plain Layout
5025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5039 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" usebox="none">
5050 \begin_layout Plain Layout
5056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5070 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" usebox="none">
5081 \begin_layout Plain Layout
5087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5101 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" usebox="none">
5112 \begin_layout Plain Layout
5118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5132 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" usebox="none">
5143 \begin_layout Plain Layout
5149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5163 \begin_layout Plain Layout
5171 <cell alignment="center" valignment="top" usebox="none">
5174 \begin_layout Plain Layout
5180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5194 \begin_layout Plain Layout
5202 <cell alignment="center" valignment="top" usebox="none">
5205 \begin_layout Plain Layout
5211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5214 \begin_layout Plain Layout
5222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5225 \begin_layout Plain Layout
5233 <cell alignment="center" valignment="top" usebox="none">
5236 \begin_layout Plain Layout
5242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5245 \begin_layout Plain Layout
5253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5256 \begin_layout Plain Layout
5264 <cell alignment="center" valignment="top" usebox="none">
5267 \begin_layout Plain Layout
5273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5276 \begin_layout Plain Layout
5284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5287 \begin_layout Plain Layout
5295 <cell alignment="center" valignment="top" usebox="none">
5298 \begin_layout Plain Layout
5304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5307 \begin_layout Plain Layout
5315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5318 \begin_layout Plain Layout
5326 <cell alignment="center" valignment="top" usebox="none">
5329 \begin_layout Plain Layout
5335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5338 \begin_layout Plain Layout
5346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5349 \begin_layout Plain Layout
5357 <cell alignment="center" valignment="top" usebox="none">
5360 \begin_layout Plain Layout
5366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5369 \begin_layout Plain Layout
5377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5380 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" usebox="none">
5391 \begin_layout Plain Layout
5397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5400 \begin_layout Plain Layout
5408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5411 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" usebox="none">
5422 \begin_layout Plain Layout
5428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5431 \begin_layout Plain Layout
5439 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5442 \begin_layout Plain Layout
5450 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5453 \begin_layout Plain Layout
5459 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5462 \begin_layout Plain Layout
5469 <row endlastfoot="true">
5470 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5473 \begin_layout Plain Layout
5479 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5482 \begin_layout Plain Layout
5488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5491 \begin_layout Plain Layout
5506 \begin_layout Plain Layout
5510 addtocounter{table}{-1}
5516 \begin_inset Note Note
5519 \begin_layout Plain Layout
5520 See the first greyed-out note in section
5521 \begin_inset space ~
5525 \begin_inset CommandInset ref
5527 reference "sub:Longtable-Captions"
5531 for an explanation of this command.
5539 \begin_layout Subsection
5540 Footnotes in Longtables
5541 \begin_inset CommandInset label
5543 name "sub:Footnotes-in-Longtables"
5548 \begin_inset Index idx
5551 \begin_layout Plain Layout
5552 Longtables ! Footnotes
5560 \begin_layout Standard
5561 Footnotes can be inserted to every longtable cell.
5562 They appear at the bottom of the page where the table cell with the footnote
5565 \begin_inset space ~
5569 \begin_inset CommandInset ref
5571 reference "tab:DiffCaptions"
5575 has for example a footnote.
5578 \begin_layout Subsection
5580 \begin_inset Index idx
5583 \begin_layout Plain Layout
5584 Longtables ! Alignment
5592 \begin_layout Standard
5593 The horizontal alignment of longtables can be set in the table settings
5595 For left- and right-alignment the table will be directly at the page border.
5596 To add space between the table and the border one has to set the alignment
5597 to center and change the value of the LaTeX-lengths
5609 by inserting this line as TeX-Code before the longtable:
5612 \begin_layout Standard
5622 \begin_layout Standard
5623 The value can have any of the units listed in Table
5624 \begin_inset space ~
5628 \begin_inset CommandInset ref
5630 reference "tab:Units"
5641 controls the horizontal distance from the left page border to the longtable,
5648 the distance from the right side.
5649 The default value for both lengths is
5655 , which is in this case the same as an horizontal fill in LyX.
5658 \begin_layout Standard
5659 The following longtable was centered and
5675 \begin_layout Plain Layout
5691 \begin_layout Standard
5692 \begin_inset Tabular
5693 <lyxtabular version="3" rows="5" columns="5">
5694 <features islongtable="true" longtabularalignment="center">
5695 <column alignment="center" valignment="top" width="0">
5696 <column alignment="center" valignment="top" width="0pt">
5697 <column alignment="center" valignment="top" width="0">
5698 <column alignment="center" valignment="top" width="0">
5699 <column alignment="center" valignment="top" width="0">
5701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5704 \begin_layout Plain Layout
5710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5713 \begin_layout Plain Layout
5719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5722 \begin_layout Plain Layout
5728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5731 \begin_layout Plain Layout
5737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5740 \begin_layout Plain Layout
5748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5751 \begin_layout Plain Layout
5757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5760 \begin_layout Plain Layout
5766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5769 \begin_layout Plain Layout
5775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5778 \begin_layout Plain Layout
5784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5787 \begin_layout Plain Layout
5795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5798 \begin_layout Plain Layout
5804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5807 \begin_layout Plain Layout
5813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5816 \begin_layout Plain Layout
5822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5825 \begin_layout Plain Layout
5831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5834 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5845 \begin_layout Plain Layout
5851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5854 \begin_layout Plain Layout
5860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5863 \begin_layout Plain Layout
5869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5872 \begin_layout Plain Layout
5878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5881 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5892 \begin_layout Plain Layout
5898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5901 \begin_layout Plain Layout
5907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5910 \begin_layout Plain Layout
5916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5919 \begin_layout Plain Layout
5925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5928 \begin_layout Plain Layout
5943 \begin_layout Plain Layout
5960 \begin_layout Plain Layout
5964 addtocounter{table}{-1}
5970 \begin_inset Note Note
5973 \begin_layout Plain Layout
5974 See the first greyed-out note in section
5975 \begin_inset space ~
5979 \begin_inset CommandInset ref
5981 reference "sub:Longtable-Captions"
5985 for an explanation of this command.
5993 \begin_layout Subsection
5995 \begin_inset Index idx
5998 \begin_layout Plain Layout
5999 Longtables ! Captions
6005 \begin_inset CommandInset label
6007 name "sub:Longtable-Captions"
6014 \begin_layout Standard
6015 A longtable cannot be put into a table float because floats can only be
6017 But the caption environment of floats can also be used for longtables when
6018 you use the longtable option
6022 as described in sec.
6023 \begin_inset space \thinspace{}
6027 \begin_inset CommandInset ref
6029 reference "sec:Longtables"
6034 Only one table row can contain the caption.
6037 \begin_layout Standard
6038 Here is a short longtable to see how it works:
6041 \begin_layout Standard
6042 \begin_inset Tabular
6043 <lyxtabular version="3" rows="6" columns="5">
6044 <features islongtable="true" longtabularalignment="center">
6045 <column alignment="center" valignment="top" width="0">
6046 <column alignment="center" valignment="top" width="0">
6047 <column alignment="center" valignment="top" width="0">
6048 <column alignment="center" valignment="top" width="0">
6049 <column alignment="center" valignment="top" width="0">
6050 <row caption="true">
6051 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6054 \begin_layout Plain Layout
6055 \begin_inset Caption
6057 \begin_layout Plain Layout
6058 Longtable with caption
6059 \begin_inset Argument
6062 \begin_layout Plain Layout
6078 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6081 \begin_layout Plain Layout
6087 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6090 \begin_layout Plain Layout
6096 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6099 \begin_layout Plain Layout
6105 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6108 \begin_layout Plain Layout
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6119 \begin_layout Plain Layout
6125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6128 \begin_layout Plain Layout
6134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_layout Plain Layout
6143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6146 \begin_layout Plain Layout
6152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6155 \begin_layout Plain Layout
6163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6166 \begin_layout Plain Layout
6172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_layout Plain Layout
6181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6184 \begin_layout Plain Layout
6190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6193 \begin_layout Plain Layout
6199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6202 \begin_layout Plain Layout
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6213 \begin_layout Plain Layout
6219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6222 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6240 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6249 \begin_layout Plain Layout
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6269 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6296 \begin_layout Plain Layout
6304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6307 \begin_layout Plain Layout
6313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6316 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6334 \begin_layout Plain Layout
6340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6343 \begin_layout Plain Layout
6357 \begin_layout Standard
6358 \begin_inset VSpace medskip
6362 \begin_inset Note Greyedout
6365 \begin_layout Plain Layout
6369 \begin_inset space ~
6374 The table number is increased for for every longtable, even if you did
6375 not set a caption for it.
6376 For this reason you could have the case that e.
6377 \begin_inset space \thinspace{}
6381 \begin_inset space \space{}
6385 \begin_inset space ~
6389 \begin_inset space ~
6392 2.1 in the list of tables if there are two longtables without captions.
6393 To avoid this you can add the following command in TeX-Code after every
6394 longtable without a caption:
6397 \begin_layout Plain Layout
6402 addtocounter{table}{-1}
6405 \begin_layout Plain Layout
6406 This is not needed when none of your longtables have a caption and you add
6407 the following code to the document preamble:
6410 \begin_layout Plain Layout
6420 \begin_inset Newline newline
6431 addtocounter{table}{-1}}
6439 \begin_layout Standard
6440 \begin_inset Note Greyedout
6443 \begin_layout Plain Layout
6447 \begin_inset space ~
6457 \begin_inset Index idx
6460 \begin_layout Plain Layout
6461 LaTeX-packages ! hyperref
6474 dialog to link cross-references, the link to a longtable caption will always
6475 point to the beginning of the document.
6483 \begin_layout Subsubsection
6484 References to Longtables
6485 \begin_inset Index idx
6488 \begin_layout Plain Layout
6489 Longtables ! References
6497 \begin_layout Standard
6498 \begin_inset Tabular
6499 <lyxtabular version="3" rows="6" columns="5">
6500 <features islongtable="true" longtabularalignment="center">
6501 <column alignment="center" valignment="top" width="0">
6502 <column alignment="center" valignment="top" width="0">
6503 <column alignment="center" valignment="top" width="0">
6504 <column alignment="center" valignment="top" width="0">
6505 <column alignment="center" valignment="top" width="0">
6506 <row caption="true">
6507 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6510 \begin_layout Plain Layout
6511 \begin_inset Caption
6513 \begin_layout Plain Layout
6514 Referenced longtable
6515 \begin_inset CommandInset label
6517 name "tab:RefExample"
6531 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6534 \begin_layout Plain Layout
6540 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6543 \begin_layout Plain Layout
6549 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6552 \begin_layout Plain Layout
6558 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6561 \begin_layout Plain Layout
6569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6572 \begin_layout Plain Layout
6578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6581 \begin_layout Plain Layout
6587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6590 \begin_layout Plain Layout
6596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6599 \begin_layout Plain Layout
6605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6608 \begin_layout Plain Layout
6616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6646 \begin_layout Plain Layout
6652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6655 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6693 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6702 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6740 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6749 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6787 \begin_layout Plain Layout
6793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6796 \begin_layout Plain Layout
6810 \begin_layout Standard
6811 To reference a longtable, insert a label into the caption.
6814 \begin_layout Standard
6815 This is a reference to Table
6816 \begin_inset space ~
6820 \begin_inset CommandInset ref
6822 reference "tab:RefExample"
6829 \begin_layout Standard
6830 The caption layout can be set together with all other captions of your document
6831 using the LaTeX-package
6836 \begin_inset Index idx
6839 \begin_layout Plain Layout
6840 LaTeX-packages ! caption
6846 \begin_inset space ~
6850 \begin_inset CommandInset ref
6852 reference "sec:Caption-Formatting"
6859 \begin_layout Subsubsection
6861 \begin_inset Index idx
6864 \begin_layout Plain Layout
6865 Longtables ! Caption Width
6873 \begin_layout Standard
6874 The maximal width of of caption lines is defined by the length
6881 Its default value is 4
6882 \begin_inset space \thinspace{}
6886 To change it add the following command to your document preamble or as
6887 TeX-Code into your document before the longtable that should be affected
6890 \begin_layout Standard
6900 \begin_layout Standard
6901 where the width could have one of the units listed in appendix
6902 \begin_inset space ~
6906 \begin_inset CommandInset ref
6908 reference "cha:Units-available-in"
6915 \begin_layout Standard
6916 The following tables show the difference:
6919 \begin_layout Standard
6920 \begin_inset Tabular
6921 <lyxtabular version="3" rows="6" columns="5">
6922 <features islongtable="true" longtabularalignment="center">
6923 <column alignment="center" valignment="top" width="0">
6924 <column alignment="center" valignment="top" width="0">
6925 <column alignment="center" valignment="top" width="0">
6926 <column alignment="center" valignment="top" width="0">
6927 <column alignment="center" valignment="top" width="0">
6928 <row caption="true">
6929 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6932 \begin_layout Plain Layout
6933 \begin_inset Caption
6935 \begin_layout Plain Layout
6936 long full title with default width long full title with default width long
6937 full title with default width
6938 \begin_inset Argument
6941 \begin_layout Plain Layout
6942 caption with default width
6957 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6960 \begin_layout Plain Layout
6966 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6969 \begin_layout Plain Layout
6975 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6978 \begin_layout Plain Layout
6984 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6987 \begin_layout Plain Layout
6995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6998 \begin_layout Plain Layout
7004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7007 \begin_layout Plain Layout
7013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7016 \begin_layout Plain Layout
7022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7025 \begin_layout Plain Layout
7031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7034 \begin_layout Plain Layout
7042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7045 \begin_layout Plain Layout
7051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7054 \begin_layout Plain Layout
7060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7063 \begin_layout Plain Layout
7069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7072 \begin_layout Plain Layout
7078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7081 \begin_layout Plain Layout
7089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7092 \begin_layout Plain Layout
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7101 \begin_layout Plain Layout
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7110 \begin_layout Plain Layout
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7119 \begin_layout Plain Layout
7125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7128 \begin_layout Plain Layout
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Plain Layout
7145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7148 \begin_layout Plain Layout
7154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7157 \begin_layout Plain Layout
7163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7166 \begin_layout Plain Layout
7172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7175 \begin_layout Plain Layout
7183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7186 \begin_layout Plain Layout
7192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7195 \begin_layout Plain Layout
7201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7204 \begin_layout Plain Layout
7210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7213 \begin_layout Plain Layout
7219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7222 \begin_layout Plain Layout
7236 \begin_layout Standard
7240 \begin_layout Plain Layout
7252 \begin_inset Tabular
7253 <lyxtabular version="3" rows="6" columns="5">
7254 <features islongtable="true" longtabularalignment="center">
7255 <column alignment="center" valignment="top" width="0">
7256 <column alignment="center" valignment="top" width="0">
7257 <column alignment="center" valignment="top" width="0">
7258 <column alignment="center" valignment="top" width="0">
7259 <column alignment="center" valignment="top" width="0">
7260 <row caption="true">
7261 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7264 \begin_layout Plain Layout
7265 \begin_inset Caption
7267 \begin_layout Plain Layout
7268 long full title with width set to 5
7269 \begin_inset space \thinspace{}
7272 cm long full title with width set to 5
7273 \begin_inset space \thinspace{}
7276 cm long full title with width set to 5
7277 \begin_inset space \thinspace{}
7281 \begin_inset Argument
7284 \begin_layout Plain Layout
7286 \begin_inset space \thinspace{}
7290 \begin_inset space \thinspace{}
7294 \begin_inset space \thinspace{}
7312 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7315 \begin_layout Plain Layout
7321 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7324 \begin_layout Plain Layout
7330 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7333 \begin_layout Plain Layout
7339 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7342 \begin_layout Plain Layout
7350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7353 \begin_layout Plain Layout
7359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7362 \begin_layout Plain Layout
7368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7371 \begin_layout Plain Layout
7377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7380 \begin_layout Plain Layout
7386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7389 \begin_layout Plain Layout
7397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7400 \begin_layout Plain Layout
7406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7409 \begin_layout Plain Layout
7415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7418 \begin_layout Plain Layout
7424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7427 \begin_layout Plain Layout
7433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7436 \begin_layout Plain Layout
7444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7447 \begin_layout Plain Layout
7453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7456 \begin_layout Plain Layout
7462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7465 \begin_layout Plain Layout
7471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7474 \begin_layout Plain Layout
7480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7483 \begin_layout Plain Layout
7491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7494 \begin_layout Plain Layout
7500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7503 \begin_layout Plain Layout
7509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7512 \begin_layout Plain Layout
7518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7521 \begin_layout Plain Layout
7527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7530 \begin_layout Plain Layout
7538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7541 \begin_layout Plain Layout
7547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7559 \begin_layout Plain Layout
7565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7568 \begin_layout Plain Layout
7574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7577 \begin_layout Plain Layout
7591 \begin_layout Standard
7595 \begin_layout Plain Layout
7609 \begin_layout Standard
7610 \begin_inset Note Greyedout
7613 \begin_layout Plain Layout
7618 When the LaTeX-package
7623 \begin_inset Index idx
7626 \begin_layout Plain Layout
7627 LaTeX-packages ! caption
7632 is used, as in this document, the full page width is used for the caption
7633 when you use the default value of 4
7634 \begin_inset space \thinspace{}
7644 To get in this case exactly a 4
7645 \begin_inset space \thinspace{}
7648 in wide caption, you can either use a value slightly different from 4.0
7649 \begin_inset space \thinspace{}
7653 \begin_inset space \thinspace{}
7657 \begin_inset space \space{}
7661 \begin_inset space \thinspace{}
7664 in, or the LaTeX-command
7668 captionsetup{width=value}
7670 that is provided by the
7682 \begin_layout Subsubsection
7683 Different Captions for Table Pages
7684 \begin_inset Index idx
7687 \begin_layout Plain Layout
7688 Longtables ! Different Captions for Pages
7696 \begin_layout Standard
7697 When the table captions for the following pages should differ from the one
7698 of the first table page, insert a caption with the TeX code command
7701 \begin_layout Standard
7706 caption*{caption text}
7713 \begin_layout Standard
7714 in a dummy caption row that is marked as a header.
7716 \begin_inset space ~
7720 \begin_inset CommandInset ref
7722 reference "tab:DiffCaptions"
7726 is an example of a longtable with different heading where the second caption
7727 doesn't include the table number.
7730 \begin_layout Standard
7732 \begin_inset Tabular
7733 <lyxtabular version="3" rows="59" columns="3">
7734 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7735 <column alignment="left" valignment="top" width="0cm">
7736 <column alignment="left" valignment="top" width="0pt">
7737 <column alignment="center" valignment="top" width="0pt">
7738 <row caption="true">
7739 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7742 \begin_layout Plain Layout
7743 \begin_inset Caption
7745 \begin_layout Plain Layout
7747 \begin_inset CommandInset label
7749 name "tab:DiffCaptions"
7754 \begin_inset Argument
7757 \begin_layout Plain Layout
7773 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7776 \begin_layout Plain Layout
7782 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7785 \begin_layout Plain Layout
7792 <row endfirsthead="true">
7793 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7796 \begin_layout Plain Layout
7799 Example Phone List (ignore the names)
7804 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7807 \begin_layout Plain Layout
7813 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7816 \begin_layout Plain Layout
7823 <row endfirsthead="true">
7824 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7827 \begin_layout Plain Layout
7835 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7838 \begin_layout Plain Layout
7844 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7847 \begin_layout Plain Layout
7856 <row endhead="true">
7857 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7860 \begin_layout Plain Layout
7864 \begin_layout Plain Layout
7868 caption*{Continued Example Phone List}
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7901 <row endhead="true">
7902 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7932 <row endhead="true">
7933 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7965 <row endfoot="true">
7966 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7969 \begin_layout Plain Layout
7970 continued on next page
7975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8133 \begin_layout Plain Layout
8139 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8142 \begin_layout Plain Layout
8150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8153 \begin_layout Plain Layout
8161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8164 \begin_layout Plain Layout
8170 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8173 \begin_layout Plain Layout
8181 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8184 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8195 \begin_layout Plain Layout
8201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8204 \begin_layout Plain Layout
8212 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8215 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8226 \begin_layout Plain Layout
8232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8235 \begin_layout Plain Layout
8243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8246 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8257 \begin_layout Plain Layout
8263 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8266 \begin_layout Plain Layout
8274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8277 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8288 \begin_layout Plain Layout
8294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8297 \begin_layout Plain Layout
8305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8308 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8319 \begin_layout Plain Layout
8325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8328 \begin_layout Plain Layout
8336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8339 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8350 \begin_layout Plain Layout
8356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8359 \begin_layout Plain Layout
8367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8370 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8381 \begin_layout Plain Layout
8387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8390 \begin_layout Plain Layout
8398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8401 \begin_layout Plain Layout
8409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8412 \begin_layout Plain Layout
8418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8421 \begin_layout Plain Layout
8429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8432 \begin_layout Plain Layout
8441 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8661 \begin_layout Plain Layout
8669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8672 \begin_layout Plain Layout
8678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8681 \begin_layout Plain Layout
8689 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8692 \begin_layout Plain Layout
8700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8703 \begin_layout Plain Layout
8709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8712 \begin_layout Plain Layout
8720 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8723 \begin_layout Plain Layout
8731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8734 \begin_layout Plain Layout
8740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8743 \begin_layout Plain Layout
8751 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8754 \begin_layout Plain Layout
8762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8765 \begin_layout Plain Layout
8771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8774 \begin_layout Plain Layout
8782 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8785 \begin_layout Plain Layout
8793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8796 \begin_layout Plain Layout
8802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8805 \begin_layout Plain Layout
8813 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8816 \begin_layout Plain Layout
8824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8827 \begin_layout Plain Layout
8833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8836 \begin_layout Plain Layout
8844 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8847 \begin_layout Plain Layout
8855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8858 \begin_layout Plain Layout
8864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8867 \begin_layout Plain Layout
8875 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8878 \begin_layout Plain Layout
8886 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8889 \begin_layout Plain Layout
8895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8898 \begin_layout Plain Layout
8906 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8909 \begin_layout Plain Layout
8917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8920 \begin_layout Plain Layout
8926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8929 \begin_layout Plain Layout
8937 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8940 \begin_layout Plain Layout
8948 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8951 \begin_layout Plain Layout
8957 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8960 \begin_layout Plain Layout
8968 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8971 \begin_layout Plain Layout
8977 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9307 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9310 \begin_layout Plain Layout
9318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9321 \begin_layout Plain Layout
9327 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9330 \begin_layout Plain Layout
9338 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9341 \begin_layout Plain Layout
9349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9352 \begin_layout Plain Layout
9358 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9361 \begin_layout Plain Layout
9369 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9372 \begin_layout Plain Layout
9380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9383 \begin_layout Plain Layout
9389 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9392 \begin_layout Plain Layout
9400 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9403 \begin_layout Plain Layout
9411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9414 \begin_layout Plain Layout
9420 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9423 \begin_layout Plain Layout
9431 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9434 \begin_layout Plain Layout
9442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9445 \begin_layout Plain Layout
9451 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9454 \begin_layout Plain Layout
9462 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9465 \begin_layout Plain Layout
9473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9476 \begin_layout Plain Layout
9482 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9485 \begin_layout Plain Layout
9493 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9496 \begin_layout Plain Layout
9504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9507 \begin_layout Plain Layout
9513 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9516 \begin_layout Plain Layout
9524 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9527 \begin_layout Plain Layout
9535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9538 \begin_layout Plain Layout
9544 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9547 \begin_layout Plain Layout
9555 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9558 \begin_layout Plain Layout
9566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9569 \begin_layout Plain Layout
9575 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9578 \begin_layout Plain Layout
9586 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9589 \begin_layout Plain Layout
9597 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9600 \begin_layout Plain Layout
9606 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9609 \begin_layout Plain Layout
9623 \begin_layout Section
9624 Special Longtable Issues
9625 \begin_inset CommandInset label
9627 name "sec:Special-Longtable-Issues"
9634 \begin_layout Subsection
9635 Longtable Calculation
9636 \begin_inset Index idx
9639 \begin_layout Plain Layout
9640 Longtables ! Calculation
9648 \begin_layout Standard
9649 LaTeX calculates the height of table pages and their page breaks using so
9651 Chunks are parts of tables that held at the same time in LaTeX's memory.
9652 The default value was historically set to only 20 table rows.
9653 If you are using longtables with many pages this may slow down the creation
9655 You can safely increase the chunk size to values of 100-1000 by adding
9656 this command line to your document preamble:
9659 \begin_layout Standard
9664 setcounter{LTchunksize}{100}
9667 \begin_layout Subsection
9668 Floats and Longtables
9669 \begin_inset Index idx
9672 \begin_layout Plain Layout
9681 \begin_layout Standard
9682 There might be problems when a float appears on the same page where a longtable
9684 To avoid such a situation, insert a
9685 \begin_inset Quotes eld
9689 \begin_inset Quotes erd
9694 Insert\SpecialChar \menuseparator
9695 Formatting\SpecialChar \menuseparator
9697 \begin_inset space ~
9702 ) before your longtable.
9705 \begin_layout Subsection
9707 \begin_inset Index idx
9710 \begin_layout Plain Layout
9711 Longtables ! Forced Page Breaks
9719 \begin_layout Standard
9720 By default tables are only broken between rows.
9721 If you have a cell with multiples lines and want to have a page break within
9722 the cell, insert the new line command
9723 \begin_inset Quotes eld
9735 \begin_inset Quotes erd
9738 as TeX-Code at the point of the cell where it can be broken.
9747 command you have to insert in TeX-Code as many
9748 \begin_inset Quotes eld
9756 \begin_inset Quotes erd
9759 characters as the number of the following table columns.
9764 is the character to separate table cells.
9765 Write in TeX-Code after each
9769 the content of the corresponding following cell and delete the content
9771 \begin_inset Newline newline
9782 command, insert as many
9786 characters as the number of table columns before the current column.
9788 \begin_inset space ~
9792 \begin_inset CommandInset ref
9794 reference "tab:ForcedPagebreak"
9798 the cell that should be broken is in the second column followed by another
9800 Therefore the following command was inserted in the cell as TeX-Code after
9802 \begin_inset Quotes eld
9810 \begin_inset Quotes erd
9816 \begin_layout Standard
9826 \begin_inset Newline newline
9832 \begin_layout Standard
9834 \begin_inset Quotes eld
9838 \begin_inset Quotes erd
9841 in the third column of the row was deleted.
9848 is only needed when a page break should definitely occur at this position,
9849 otherwise it would be a conditional break.
9850 If your footer row of the longtable has for a certain reason no upper line
9851 but you would have a horizontal line where the cell is broken, use this
9855 \begin_layout Standard
9863 \begin_inset Newline newline
9871 \begin_layout Standard
9872 When the cell to be broken is in the last column, the command
9875 \begin_layout Standard
9885 \begin_layout Standard
9886 must be inserted as TeX-Code at the beginning of the cell.
9887 This ensures that the part of the cell that will be displayed on the new
9888 page appears with the full width.
9891 \begin_layout Standard
9893 \begin_inset Tabular
9894 <lyxtabular version="3" rows="38" columns="3">
9895 <features islongtable="true" lastFootEmpty="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 caption="true">
9900 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9903 \begin_layout Plain Layout
9904 \begin_inset Caption
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
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">
10018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10021 \begin_layout Plain Layout
10025 \begin_layout Plain Layout
10029 caption*{Continued Example Phone List}
10043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10062 <row endhead="true">
10063 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10093 <row endhead="true">
10094 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10097 \begin_layout Plain Layout
10105 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10126 <row endfoot="true">
10127 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10130 \begin_layout Plain Layout
10131 continued on next page
10136 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10548 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10551 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10562 \begin_layout Plain Layout
10570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10573 \begin_layout Plain Layout
10579 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10582 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10593 \begin_layout Plain Layout
10601 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10604 \begin_layout Plain Layout
10610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10613 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10624 \begin_layout Plain Layout
10632 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10641 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10644 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10655 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10675 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10686 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10703 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10706 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10717 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10737 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10748 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10765 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10768 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10779 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10796 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10799 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10810 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10827 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10830 \begin_layout Plain Layout
10838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10841 \begin_layout Plain Layout
10849 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10852 \begin_layout Plain Layout
10854 Fürst von Montecompatri, 11.
10855 Fürst von Sulmona und Vivaro, 10.
10856 Fürst von Rossano, 5.
10857 Herzog von Canemorte, 11.
10858 Herzog von Palombara, 5.
10859 Herzog von Castelchiodato,
10863 \begin_layout Plain Layout
10874 \begin_layout Plain Layout
10882 Herzog von Poggionativo, 11.
10883 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10884 Graf von Valinfreda, 11.
10885 Baron von Cropalati, 11.
10886 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10894 \begin_layout Plain Layout
10902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10905 \begin_layout Plain Layout
10913 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10916 \begin_layout Plain Layout
10922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10925 \begin_layout Plain Layout
10933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10936 \begin_layout Plain Layout
10944 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10947 \begin_layout Plain Layout
10953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10956 \begin_layout Plain Layout
10964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10967 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10978 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
10995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10998 \begin_layout Plain Layout
11006 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11009 \begin_layout Plain Layout
11015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11018 \begin_layout Plain Layout
11026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11029 \begin_layout Plain Layout
11037 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11040 \begin_layout Plain Layout
11046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11049 \begin_layout Plain Layout
11057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11060 \begin_layout Plain Layout
11068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11071 \begin_layout Plain Layout
11077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11080 \begin_layout Plain Layout
11088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11091 \begin_layout Plain Layout
11099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11102 \begin_layout Plain Layout
11108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11111 \begin_layout Plain Layout
11119 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11122 \begin_layout Plain Layout
11130 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11133 \begin_layout Plain Layout
11139 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11142 \begin_layout Plain Layout
11156 \begin_layout Section
11157 Multiple Lines Columns and Rows
11160 \begin_layout Subsection
11161 Multiple Lines in Table Cells
11162 \begin_inset CommandInset label
11164 name "sub:Multiple-Lines-in"
11169 \begin_inset Index idx
11172 \begin_layout Plain Layout
11173 Multiple Lines in Table Cells
11179 \begin_inset Index idx
11182 \begin_layout Plain Layout
11191 \begin_layout Standard
11193 \begin_inset Float table
11199 \begin_layout Plain Layout
11200 \begin_inset Caption
11202 \begin_layout Plain Layout
11203 \begin_inset CommandInset label
11205 name "tab:Table-with-multiple"
11209 Table with multiple lines in cells
11217 \begin_layout Plain Layout
11219 \begin_inset Tabular
11220 <lyxtabular version="3" rows="3" columns="3">
11221 <features tabularvalignment="middle">
11222 <column alignment="center" valignment="middle" width="2.5cm">
11223 <column alignment="center" valignment="middle" width="0">
11224 <column alignment="center" valignment="middle" width="0">
11226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11229 \begin_layout Plain Layout
11231 \begin_inset Newline linebreak
11239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11242 \begin_layout Plain Layout
11248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11251 \begin_layout Plain Layout
11259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11262 \begin_layout Plain Layout
11268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11271 \begin_layout Plain Layout
11277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11280 \begin_layout Plain Layout
11288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11291 \begin_layout Plain Layout
11297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11300 \begin_layout Plain Layout
11306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11309 \begin_layout Plain Layout
11328 \begin_layout Standard
11329 Setting a fixed width for a column enables you to enter text as a paragraph
11330 with multiple lines and hyphenation.
11333 \begin_layout Standard
11335 \begin_inset space ~
11339 \begin_inset CommandInset ref
11341 reference "tab:Table-with-multiple"
11345 , create a 3×3 table, mark the first cell and right-click on it.
11346 In the appearing table dialog we set a cell width of 2.5
11347 \begin_inset space \thinspace{}
11350 cm and choose centered for the vertical and horizontal alignment.
11351 The vertical alignment is used for all cells of the row.
11352 As our text is smaller than 2.5
11353 \begin_inset space \thinspace{}
11356 cm, only one line will appear.
11357 To get two lines, a justified line break (shortcut
11360 arg "newline-insert linebreak"
11364 If the text is wider than the set cell width, it will automatically be
11365 broken to several lines.
11368 \begin_layout Standard
11369 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11370 by LaTeX if it is the first entry.
11371 Therefore you need to insert something to prevent the word not being the
11373 So add a horizontal space of 0
11374 \begin_inset space \thinspace{}
11377 pt before the word.
11378 As the space is zero, it doesn't change the output.
11380 \begin_inset space ~
11384 \begin_inset CommandInset ref
11386 reference "tab:Table-with-and"
11393 \begin_layout Standard
11394 \begin_inset Float table
11400 \begin_layout Plain Layout
11401 \begin_inset Caption
11403 \begin_layout Plain Layout
11404 \begin_inset CommandInset label
11406 name "tab:Table-with-and"
11410 Table with and without hyphenation
11418 \begin_layout Plain Layout
11419 \begin_inset space \hfill{}
11423 \begin_inset Tabular
11424 <lyxtabular version="3" rows="3" columns="3">
11425 <features tabularvalignment="middle">
11426 <column alignment="center" valignment="middle" width="2.5cm">
11427 <column alignment="center" valignment="middle" width="0">
11428 <column alignment="center" valignment="middle" width="0">
11430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11433 \begin_layout Plain Layout
11434 verylongtablecellword
11439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11442 \begin_layout Plain Layout
11448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11451 \begin_layout Plain Layout
11459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11462 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11471 \begin_layout Plain Layout
11477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11480 \begin_layout Plain Layout
11488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11491 \begin_layout Plain Layout
11497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11500 \begin_layout Plain Layout
11506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11509 \begin_layout Plain Layout
11521 \begin_inset space \hfill{}
11525 \begin_inset Tabular
11526 <lyxtabular version="3" rows="3" columns="3">
11527 <features tabularvalignment="middle">
11528 <column alignment="center" valignment="middle" width="2.5cm">
11529 <column alignment="center" valignment="middle" width="0">
11530 <column alignment="center" valignment="middle" width="0">
11532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11535 \begin_layout Plain Layout
11536 \begin_inset space \hspace{}
11540 verylongtablecellword
11545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11548 \begin_layout Plain Layout
11554 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11557 \begin_layout Plain Layout
11565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11568 \begin_layout Plain Layout
11574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11577 \begin_layout Plain Layout
11583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11586 \begin_layout Plain Layout
11594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11597 \begin_layout Plain Layout
11603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11606 \begin_layout Plain Layout
11612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11615 \begin_layout Plain Layout
11627 \begin_inset space \hfill{}
11638 \begin_layout Subsection
11640 \begin_inset CommandInset label
11642 name "sub:Multicolumns"
11647 \begin_inset Index idx
11650 \begin_layout Plain Layout
11657 \begin_inset Index idx
11660 \begin_layout Plain Layout
11661 Table ! Multicolumns
11669 \begin_layout Subsubsection
11673 \begin_layout Standard
11674 To merge cells over multiple columns, select as many cells within a row
11675 as you want to merge and use either the table-toolbar button
11676 \begin_inset Graphics
11677 filename ../images/tabular-feature_multicolumn.png
11679 scaleBeforeRotation
11685 Edit\SpecialChar \menuseparator
11686 Table\SpecialChar \menuseparator
11689 , or right click on the marked cells and choose
11693 in the context menu.
11696 \begin_layout Standard
11697 Multicolumns have there own cell settings.
11698 That means changing cell borders, cell alignment, and the width only affects
11700 Here is an example table with a multicolumn cell in the first row and one
11701 in the last row without the upper border:
11704 \begin_layout Standard
11706 \begin_inset Tabular
11707 <lyxtabular version="3" rows="3" columns="4">
11708 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11709 <column alignment="center" valignment="top" width="0pt">
11710 <column alignment="center" valignment="middle" width="0">
11711 <column alignment="center" valignment="top" width="0in">
11712 <column alignment="center" valignment="top" width="0pt">
11714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11717 \begin_layout Plain Layout
11723 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11726 \begin_layout Plain Layout
11732 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11735 \begin_layout Plain Layout
11741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11744 \begin_layout Plain Layout
11752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11755 \begin_layout Plain Layout
11770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11773 \begin_layout Plain Layout
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11791 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11802 \begin_layout Plain Layout
11808 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11829 \begin_layout Plain Layout
11843 \begin_layout Subsubsection
11844 Multicolumn Calculations
11845 \begin_inset CommandInset label
11847 name "sub:Multicolumn-Calculations"
11852 \begin_inset Index idx
11855 \begin_layout Plain Layout
11856 Multicolumns ! Calculations
11864 \begin_layout Standard
11865 LyX supports multicolumns directly, but we have to take account of the cell
11866 width of the columns spanned by the multicolumn cell.
11869 \begin_layout Standard
11870 \begin_inset Float table
11876 \begin_layout Plain Layout
11877 \begin_inset Caption
11879 \begin_layout Plain Layout
11880 \begin_inset CommandInset label
11882 name "tab:Table-with-centered"
11886 Table with centered multicolumn text above two columns that have exactly
11887 half the width of the multicolumn cell
11888 \begin_inset Argument
11891 \begin_layout Plain Layout
11892 Perfect multicolumn table
11905 \begin_layout Plain Layout
11907 \begin_inset Tabular
11908 <lyxtabular version="3" rows="3" columns="3">
11909 <features tabularvalignment="middle">
11910 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11911 <column alignment="center" valignment="middle" width="0">
11912 <column alignment="center" valignment="top" width="0">
11914 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11917 \begin_layout Plain Layout
11918 multiple lines multicolumn
11923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11926 \begin_layout Plain Layout
11932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11935 \begin_layout Plain Layout
11943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11946 \begin_layout Plain Layout
11952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11955 \begin_layout Plain Layout
11961 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11964 \begin_layout Plain Layout
11972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11975 \begin_layout Plain Layout
11981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11984 \begin_layout Plain Layout
11990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11993 \begin_layout Plain Layout
12012 \begin_layout Standard
12013 To create for example Table
12014 \begin_inset space ~
12018 \begin_inset CommandInset ref
12020 reference "tab:Table-with-centered"
12024 , mark the first two cells in the first row of a 3×3 table and right-click
12026 Now choose for this cell
12035 \begin_inset space \thinspace{}
12038 cm in the table dialog.
12039 The merged columns should have exactly half the width of the multicolumn
12040 cell, so that you would set a width of 1.25
12041 \begin_inset space \thinspace{}
12044 cm for the first column.
12045 The second column has then automatically a width of 1.25
12046 \begin_inset space \thinspace{}
12049 cm (multicolumn width - width of first column).
12050 This was done for Table
12051 \begin_inset space ~
12055 \begin_inset CommandInset ref
12057 reference "tab:Table-without-half"
12064 \begin_layout Standard
12065 \begin_inset Float table
12070 \begin_layout Plain Layout
12071 \begin_inset Caption
12073 \begin_layout Plain Layout
12074 \begin_inset CommandInset label
12076 name "tab:Table-without-half"
12080 Table where the spanned table columns are not exactly half the width of
12081 the multicolumn cell
12082 \begin_inset Argument
12085 \begin_layout Plain Layout
12086 Imperfect multicolumn table
12099 \begin_layout Plain Layout
12101 \begin_inset Tabular
12102 <lyxtabular version="3" rows="3" columns="3">
12103 <features tabularvalignment="middle">
12104 <column alignment="center" valignment="top" width="1.25cm">
12105 <column alignment="center" valignment="top" width="0">
12106 <column alignment="center" valignment="top" width="0">
12108 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12111 \begin_layout Plain Layout
12112 multiple lines multicolumn
12117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12120 \begin_layout Plain Layout
12126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12129 \begin_layout Plain Layout
12137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12140 \begin_layout Plain Layout
12146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12149 \begin_layout Plain Layout
12155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12158 \begin_layout Plain Layout
12166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12169 \begin_layout Plain Layout
12175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12178 \begin_layout Plain Layout
12184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12187 \begin_layout Plain Layout
12206 \begin_layout Standard
12207 You can see that the first column is not half the width of the multicolumn
12208 cell, it is a bit bigger.
12209 The reason is that the specified width of a cell
12210 \begin_inset Formula $W_{g}$
12213 is not its total width
12214 \begin_inset Formula $W_{\mathrm{tot}}$
12217 because a cell is always a bit larger than specified.
12219 \begin_inset space ~
12223 \begin_inset CommandInset ref
12225 reference "cha:Explanation-of-Equation"
12229 explains this in detail.
12232 \begin_layout Standard
12234 \begin_inset Formula $W_{g\, n}$
12237 which the user needs to set when
12241 columns are spanned can be calculated, so that each column has a total
12243 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12247 \begin_inset Formula
12249 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12257 \begin_layout Standard
12258 In our case we have
12259 \begin_inset Formula $n=2$
12263 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12266 cm and the default values for the lengths, so that equation
12267 \begin_inset CommandInset ref
12274 \begin_inset Formula
12276 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12284 \begin_layout Standard
12285 To enable calculations in LaTeX, the LaTeX-package
12289 must be loaded with the document preamble line
12290 \begin_inset Index idx
12293 \begin_layout Plain Layout
12294 LaTeX-packages ! calc
12302 \begin_layout Standard
12310 \begin_layout Standard
12311 LyX 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 LaTeX-argument in
12318 Here is an overview about the arguments:
12321 \begin_layout Itemize
12326 creates cell with a fixed width, its text is vertically top-aligned
12329 \begin_layout Itemize
12334 creates cell with a fixed width, its text is vertically centered
12337 \begin_layout Itemize
12342 creates cell with a fixed width, its text is vertically bottom-aligned
12345 \begin_layout Standard
12346 By entering a LaTeX-argument, all cell settings set in the table dialog
12350 \begin_layout Standard
12351 \begin_inset Note Greyedout
12354 \begin_layout Plain Layout
12359 Due to a bug, LyX shows the overwritten settings anyway.
12367 \begin_layout Standard
12368 As the text should be horizontally centered, the command
12375 You can now enter the following LaTeX-argument for the first spanned column:
12378 \begin_layout Standard
12383 centering}m{1.25cm-6.2pt}
12386 \begin_layout Standard
12391 means, that the commands inside the braces are applied before the cell
12395 \begin_layout Standard
12396 Although we have chosen centered alignment for the text of the multicolumn
12397 cell, it is still left aligned.
12398 This is because LyX only applies the alignment to single columns.
12399 So for the multicolumn cell we have to use the LaTeX-argument
12402 \begin_layout Standard
12410 \begin_layout Subsection
12412 \begin_inset CommandInset label
12414 name "sub:Multirows"
12419 \begin_inset Index idx
12422 \begin_layout Plain Layout
12429 \begin_inset Index idx
12432 \begin_layout Plain Layout
12441 \begin_layout Standard
12442 To merge cells over multiple rows, select as many cells within a column
12443 as you want to merge and use either the table-toolbar button
12444 \begin_inset Graphics
12445 filename ../images/tabular-feature_multirow.png
12447 scaleBeforeRotation
12453 Edit\SpecialChar \menuseparator
12454 Table\SpecialChar \menuseparator
12457 , or right click on the marked cells and choose
12461 in the context menu.
12464 \begin_layout Standard
12465 Here is an example table with a multirow in the first column:
12468 \begin_layout Standard
12470 \begin_inset Tabular
12471 <lyxtabular version="3" rows="3" columns="3">
12472 <features tabularvalignment="middle">
12473 <column alignment="center" valignment="top" width="0pt">
12474 <column alignment="center" valignment="top" width="0">
12475 <column alignment="center" valignment="top" width="0">
12477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12480 \begin_layout Plain Layout
12486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12489 \begin_layout Plain Layout
12495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12498 \begin_layout Plain Layout
12506 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12509 \begin_layout Plain Layout
12515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12518 \begin_layout Plain Layout
12524 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12527 \begin_layout Plain Layout
12535 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12538 \begin_layout Plain Layout
12544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12547 \begin_layout Plain Layout
12553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12556 \begin_layout Plain Layout
12570 \begin_layout Standard
12571 The width of multirow cells is set by setting the width and alignment for
12577 shifts the content of the multirow up/down if the offset is positive/negative.
12580 \begin_layout Standard
12581 If the column of a multirow cell has no explicit width, the multirow cell
12582 inherits the alignment of the column.
12583 Otherwise it is by default left-aligned.
12584 To override the default, renew the command
12593 \begin_layout Standard
12605 \begin_layout Standard
12606 in the document preamble.
12607 Then all entries of multirow cells in the document are centered.
12608 If centering is only needed for several tables, you can renew the command
12609 in a TeX-Code box just before the table instead of the preamble.
12610 If the text should be right-aligned, replace
12623 To return to left-alignment
12632 \begin_layout Standard
12633 This is an example table with a right-aligned multirow cell that has a vertical
12635 \begin_inset space \thinspace{}
12639 \begin_inset space \thinspace{}
12645 \begin_layout Standard
12651 \begin_layout Plain Layout
12665 \begin_inset Tabular
12666 <lyxtabular version="3" rows="4" columns="3">
12667 <features tabularvalignment="middle">
12668 <column alignment="center" valignment="top" width="3cm">
12669 <column alignment="center" valignment="top" width="0">
12670 <column alignment="center" valignment="top" width="0">
12672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12675 \begin_layout Plain Layout
12681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12684 \begin_layout Plain Layout
12690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12693 \begin_layout Plain Layout
12701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12704 \begin_layout Plain Layout
12710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12722 \begin_layout Plain Layout
12730 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12733 \begin_layout Plain Layout
12739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12742 \begin_layout Plain Layout
12748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12751 \begin_layout Plain Layout
12759 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12762 \begin_layout Plain Layout
12768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12771 \begin_layout Plain Layout
12777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12780 \begin_layout Plain Layout
12795 \begin_layout Plain Layout
12811 \begin_layout Section
12813 \begin_inset CommandInset label
12815 name "sec:Formal-Tables"
12820 \begin_inset Index idx
12823 \begin_layout Plain Layout
12832 \begin_layout Standard
12833 Tables are often typeset in books similar to Table
12834 \begin_inset space ~
12838 \begin_inset CommandInset ref
12840 reference "tab:Example-booktabs-table"
12845 This kind of tables is called
12846 \begin_inset Quotes eld
12854 \begin_inset Quotes erd
12858 To make a table a formal table use the option
12866 tab of the table dialog.
12869 \begin_layout Standard
12870 \begin_inset Float table
12876 \begin_layout Plain Layout
12877 \begin_inset Caption
12879 \begin_layout Plain Layout
12880 \begin_inset CommandInset label
12882 name "tab:Example-booktabs-table"
12886 Example booktabs-table
12894 \begin_layout Plain Layout
12896 \begin_inset Tabular
12897 <lyxtabular version="3" rows="8" columns="4">
12898 <features booktabs="true" tabularvalignment="middle">
12899 <column alignment="center" valignment="top" width="0">
12900 <column alignment="center" valignment="top" width="0">
12901 <column alignment="center" valignment="top" width="0">
12902 <column alignment="center" valignment="top" width="0">
12904 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12907 \begin_layout Plain Layout
12913 <cell alignment="center" valignment="top" topline="true" usebox="none">
12916 \begin_layout Plain Layout
12918 \begin_inset space \thinspace{}
12926 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12929 \begin_layout Plain Layout
12931 \begin_inset space \thinspace{}
12939 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12942 \begin_layout Plain Layout
12950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12953 \begin_layout Plain Layout
12957 \begin_layout Plain Layout
12970 \begin_layout Plain Layout
12979 Detector thickness in µm
12984 <cell alignment="center" valignment="top" usebox="none">
12987 \begin_layout Plain Layout
12993 <cell alignment="center" valignment="top" usebox="none">
12996 \begin_layout Plain Layout
13002 <cell alignment="center" valignment="top" usebox="none">
13005 \begin_layout Plain Layout
13013 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13016 \begin_layout Plain Layout
13022 <cell alignment="center" valignment="top" topline="true" usebox="none">
13025 \begin_layout Plain Layout
13031 <cell alignment="center" valignment="top" topline="true" usebox="none">
13034 \begin_layout Plain Layout
13040 <cell alignment="center" valignment="top" topline="true" usebox="none">
13043 \begin_layout Plain Layout
13050 <row topspace="default">
13051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13054 \begin_layout Plain Layout
13055 Spatial resolution in µm
13060 <cell alignment="center" valignment="top" usebox="none">
13063 \begin_layout Plain Layout
13069 <cell alignment="center" valignment="top" usebox="none">
13072 \begin_layout Plain Layout
13078 <cell alignment="center" valignment="top" usebox="none">
13081 \begin_layout Plain Layout
13088 <row topspace="default">
13089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13092 \begin_layout Plain Layout
13094 \begin_inset Formula $f_{\mathrm{max}}$
13102 <cell alignment="center" valignment="top" usebox="none">
13105 \begin_layout Plain Layout
13111 <cell alignment="center" valignment="top" usebox="none">
13114 \begin_layout Plain Layout
13120 <cell alignment="center" valignment="top" usebox="none">
13123 \begin_layout Plain Layout
13130 <row topspace="default">
13131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13134 \begin_layout Plain Layout
13138 \begin_layout Plain Layout
13142 cmidrule(l{10pt}){1-1}
13147 LSF-spatial resolution
13152 <cell alignment="center" valignment="top" usebox="none">
13155 \begin_layout Plain Layout
13161 <cell alignment="center" valignment="top" usebox="none">
13164 \begin_layout Plain Layout
13170 <cell alignment="center" valignment="top" usebox="none">
13173 \begin_layout Plain Layout
13181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13184 \begin_layout Plain Layout
13190 <cell alignment="center" valignment="top" usebox="none">
13193 \begin_layout Plain Layout
13199 <cell alignment="center" valignment="top" usebox="none">
13202 \begin_layout Plain Layout
13208 <cell alignment="center" valignment="top" usebox="none">
13211 \begin_layout Plain Layout
13219 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13222 \begin_layout Plain Layout
13228 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13231 \begin_layout Plain Layout
13237 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13240 \begin_layout Plain Layout
13246 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13249 \begin_layout Plain Layout
13268 \begin_layout Standard
13269 Spaces to table rows can be added using the
13273 tab of the table dialog as described in section
13274 \begin_inset space ~
13278 \begin_inset CommandInset ref
13280 reference "sub:Row-Spacing"
13287 \begin_layout Standard
13288 Unlike normal tables, formal tables have no vertical table lines.
13289 The horizontal table lines can be set as for normal tables but they appear
13290 with different widths in the output:
13291 \begin_inset Newline newline
13294 The first and the last table line have a default width of 0.08
13295 \begin_inset space \thinspace{}
13298 em while the other lines have a default width of 0.05
13299 \begin_inset space \thinspace{}
13305 \begin_layout Standard
13306 The default widths can be changed with the following preamble lines
13309 \begin_layout Standard
13319 \begin_inset Newline newline
13331 \begin_layout Standard
13332 This example is for the first line, the so called
13337 If you want to change the width for the last line, replace
13346 To change the width for the other lines replace
13355 You can use all units listed in appendix
13356 \begin_inset space ~
13360 \begin_inset CommandInset ref
13362 reference "cha:Units-available-in"
13369 \begin_layout Standard
13370 Lines that do not span all table columns can be created by setting a table
13371 line for multicolumn cells.
13372 LyX will then internally use the command
13378 to create this line.
13382 \begin_layout Standard
13387 cmidrule[width](trim){startcol-endcol}
13390 \begin_layout Standard
13397 are currently not supported by LyX so you have to use TeX-Code to be able
13405 s can manually be created by inserting the command as TeX-Code as the first
13406 cell entry of the first cell of a row.
13407 The line is then drawn in the output above the current row.
13410 \begin_layout Standard
13411 The default for the width is 0.03
13412 \begin_inset space \thinspace{}
13416 Startcol is the number of the column where the line starts and endcol the
13417 column number where the line ends.
13418 The endcol always needs to be specified, also when the line should span
13420 The optional parameter trim could be either
13428 where the trimwidth is also optional.
13429 Using for example the parameter
13433 means that the line is trimmed from its left end by 2
13434 \begin_inset space \thinspace{}
13438 If you don't specify the trimwidth the lines are trimmed by the default
13440 \begin_inset space \thinspace{}
13446 \begin_layout Standard
13447 \begin_inset VSpace bigskip
13451 \begin_inset space ~
13455 \begin_inset CommandInset ref
13457 reference "tab:Example-booktabs-table"
13461 was created using the commands
13464 \begin_layout Standard
13474 \begin_layout Standard
13475 at the beginning of the second row and
13478 \begin_layout Standard
13483 cmidrule(l{10pt}){1-1}
13486 \begin_layout Standard
13490 \begin_layout Standard
13491 \begin_inset VSpace bigskip
13497 \begin_layout Standard
13498 You might want to have overlapping
13505 \begin_inset space ~
13509 \begin_inset CommandInset ref
13511 reference "tab:Special-booktabs-table"
13516 This can be achieved with the TeX-Code command
13519 \begin_layout Standard
13527 \begin_layout Standard
13528 The command that was used for the second row of Table
13529 \begin_inset space ~
13533 \begin_inset CommandInset ref
13535 reference "tab:Special-booktabs-table"
13542 \begin_layout Standard
13556 \begin_layout Standard
13557 The command for the sixth row is
13560 \begin_layout Standard
13572 \begin_layout Standard
13573 \begin_inset VSpace bigskip
13579 \begin_layout Standard
13580 If you are anyway not satisfied with the border line spacing, you can use
13581 the following command to produce lines that span over all table columns
13586 \begin_layout Standard
13591 specialrule{width}{space above}{space below}
13594 \begin_layout Standard
13595 For more information about these features, refer to the manual of the LaTeX-pack
13601 \begin_inset CommandInset citation
13608 \begin_inset Index idx
13611 \begin_layout Plain Layout
13612 LaTeX-packages ! booktabs
13620 \begin_layout Standard
13621 \begin_inset Float table
13627 \begin_layout Plain Layout
13628 \begin_inset Caption
13630 \begin_layout Plain Layout
13631 \begin_inset CommandInset label
13633 name "tab:Special-booktabs-table"
13637 Special booktabs-table
13645 \begin_layout Plain Layout
13647 \begin_inset Tabular
13648 <lyxtabular version="3" rows="8" columns="4">
13649 <features booktabs="true" tabularvalignment="middle">
13650 <column alignment="center" valignment="top" width="0">
13651 <column alignment="center" valignment="top" width="0">
13652 <column alignment="center" valignment="top" width="0">
13653 <column alignment="center" valignment="top" width="0">
13655 <cell alignment="center" valignment="top" topline="true" usebox="none">
13658 \begin_layout Plain Layout
13664 <cell alignment="center" valignment="top" topline="true" usebox="none">
13667 \begin_layout Plain Layout
13669 \begin_inset space \thinspace{}
13677 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13680 \begin_layout Plain Layout
13682 \begin_inset space \thinspace{}
13690 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13693 \begin_layout Plain Layout
13701 <cell alignment="center" valignment="top" usebox="none">
13704 \begin_layout Plain Layout
13708 \begin_layout Plain Layout
13721 \begin_layout Plain Layout
13734 \begin_layout Plain Layout
13747 \begin_layout Plain Layout
13756 Detector thickness in µm
13761 <cell alignment="center" valignment="top" usebox="none">
13764 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" usebox="none">
13773 \begin_layout Plain Layout
13779 <cell alignment="center" valignment="top" usebox="none">
13782 \begin_layout Plain Layout
13790 <cell alignment="center" valignment="top" topline="true" usebox="none">
13793 \begin_layout Plain Layout
13799 <cell alignment="center" valignment="top" topline="true" usebox="none">
13802 \begin_layout Plain Layout
13808 <cell alignment="center" valignment="top" topline="true" usebox="none">
13811 \begin_layout Plain Layout
13817 <cell alignment="center" valignment="top" topline="true" usebox="none">
13820 \begin_layout Plain Layout
13827 <row topspace="default">
13828 <cell alignment="center" valignment="top" usebox="none">
13831 \begin_layout Plain Layout
13832 Spatial resolution in µm
13837 <cell alignment="center" valignment="top" usebox="none">
13840 \begin_layout Plain Layout
13846 <cell alignment="center" valignment="top" usebox="none">
13849 \begin_layout Plain Layout
13855 <cell alignment="center" valignment="top" usebox="none">
13858 \begin_layout Plain Layout
13865 <row topspace="default">
13866 <cell alignment="center" valignment="top" usebox="none">
13869 \begin_layout Plain Layout
13871 \begin_inset Formula $f_{\mathrm{max}}$
13879 <cell alignment="center" valignment="top" usebox="none">
13882 \begin_layout Plain Layout
13888 <cell alignment="center" valignment="top" usebox="none">
13891 \begin_layout Plain Layout
13897 <cell alignment="center" valignment="top" usebox="none">
13900 \begin_layout Plain Layout
13908 <cell alignment="center" valignment="top" topline="true" usebox="none">
13911 \begin_layout Plain Layout
13915 \begin_layout Plain Layout
13928 \begin_layout Plain Layout
13937 LSF-spatial resolution
13942 <cell alignment="center" valignment="top" topline="true" usebox="none">
13945 \begin_layout Plain Layout
13951 <cell alignment="center" valignment="top" topline="true" usebox="none">
13954 \begin_layout Plain Layout
13960 <cell alignment="center" valignment="top" topline="true" usebox="none">
13963 \begin_layout Plain Layout
13971 <cell alignment="center" valignment="top" usebox="none">
13974 \begin_layout Plain Layout
13980 <cell alignment="center" valignment="top" usebox="none">
13983 \begin_layout Plain Layout
13989 <cell alignment="center" valignment="top" usebox="none">
13992 \begin_layout Plain Layout
13998 <cell alignment="center" valignment="top" usebox="none">
14001 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14012 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14021 \begin_layout Plain Layout
14027 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14030 \begin_layout Plain Layout
14036 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14039 \begin_layout Plain Layout
14058 \begin_layout Section
14059 Vertical Table Alignment
14060 \begin_inset Index idx
14063 \begin_layout Plain Layout
14072 \begin_layout Standard
14073 To align tables vertically in a text line the table must be inside a box.
14074 The box can then be vertically aligned as described in section
14075 \begin_inset space ~
14079 \begin_inset CommandInset ref
14081 reference "sec:Box-Dialog"
14088 \begin_layout Standard
14089 In the following example the tables are inside a minipage
14093 \begin_layout Plain Layout
14094 Minipages are described in section
14095 \begin_inset space ~
14099 \begin_inset CommandInset ref
14101 reference "sec:Minipages"
14110 box that has a width of 15
14111 \begin_inset space \thinspace{}
14117 \begin_layout Itemize
14119 \begin_inset Box Frameless
14129 height_special "totalheight"
14132 \begin_layout Plain Layout
14133 \begin_inset Tabular
14134 <lyxtabular version="3" rows="3" columns="3">
14135 <features tabularvalignment="middle">
14136 <column alignment="center" valignment="top" width="0">
14137 <column alignment="center" valignment="top" width="0">
14138 <column alignment="center" valignment="top" width="0">
14140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14143 \begin_layout Plain Layout
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14161 \begin_layout Plain Layout
14169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14172 \begin_layout Plain Layout
14178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14181 \begin_layout Plain Layout
14187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14190 \begin_layout Plain Layout
14198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14201 \begin_layout Plain Layout
14207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14210 \begin_layout Plain Layout
14216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14219 \begin_layout Plain Layout
14239 \begin_layout Plain Layout
14251 \begin_inset Box Frameless
14261 height_special "totalheight"
14264 \begin_layout Plain Layout
14265 \begin_inset Tabular
14266 <lyxtabular version="3" rows="3" columns="3">
14267 <features tabularvalignment="middle">
14268 <column alignment="center" valignment="top" width="0">
14269 <column alignment="center" valignment="top" width="0">
14270 <column alignment="center" valignment="top" width="0">
14272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14275 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14284 \begin_layout Plain Layout
14290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14293 \begin_layout Plain Layout
14301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14304 \begin_layout Plain Layout
14310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14313 \begin_layout Plain Layout
14319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14322 \begin_layout Plain Layout
14330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14333 \begin_layout Plain Layout
14339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14342 \begin_layout Plain Layout
14348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14351 \begin_layout Plain Layout
14371 \begin_layout Plain Layout
14381 \begin_layout Itemize
14383 \begin_inset Box Frameless
14393 height_special "totalheight"
14396 \begin_layout Plain Layout
14397 \begin_inset Tabular
14398 <lyxtabular version="3" rows="3" columns="3">
14399 <features tabularvalignment="middle">
14400 <column alignment="center" valignment="top" width="0">
14401 <column alignment="center" valignment="top" width="0">
14402 <column alignment="center" valignment="top" width="0">
14404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14407 \begin_layout Plain Layout
14413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14416 \begin_layout Plain Layout
14422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14425 \begin_layout Plain Layout
14433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14436 \begin_layout Plain Layout
14442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14445 \begin_layout Plain Layout
14451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14454 \begin_layout Plain Layout
14462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14465 \begin_layout Plain Layout
14471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14474 \begin_layout Plain Layout
14480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14483 \begin_layout Plain Layout
14502 \begin_layout Itemize
14504 \begin_inset Box Frameless
14514 height_special "totalheight"
14517 \begin_layout Plain Layout
14518 \begin_inset Tabular
14519 <lyxtabular version="3" rows="3" columns="3">
14520 <features tabularvalignment="middle">
14521 <column alignment="center" valignment="top" width="0">
14522 <column alignment="center" valignment="top" width="0">
14523 <column alignment="center" valignment="top" width="0">
14525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14528 \begin_layout Plain Layout
14534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14537 \begin_layout Plain Layout
14543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14546 \begin_layout Plain Layout
14554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14557 \begin_layout Plain Layout
14563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14566 \begin_layout Plain Layout
14572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14575 \begin_layout Plain Layout
14583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14586 \begin_layout Plain Layout
14592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14595 \begin_layout Plain Layout
14601 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14604 \begin_layout Plain Layout
14624 \begin_layout Plain Layout
14636 \begin_inset Box Frameless
14646 height_special "totalheight"
14649 \begin_layout Plain Layout
14650 \begin_inset Tabular
14651 <lyxtabular version="3" rows="3" columns="3">
14652 <features tabularvalignment="middle">
14653 <column alignment="center" valignment="top" width="0">
14654 <column alignment="center" valignment="top" width="0">
14655 <column alignment="center" valignment="top" width="0">
14657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14660 \begin_layout Plain Layout
14666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14669 \begin_layout Plain Layout
14675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14678 \begin_layout Plain Layout
14686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14689 \begin_layout Plain Layout
14695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14698 \begin_layout Plain Layout
14704 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14707 \begin_layout Plain Layout
14715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14718 \begin_layout Plain Layout
14724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14727 \begin_layout Plain Layout
14733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14736 \begin_layout Plain Layout
14756 \begin_layout Plain Layout
14766 \begin_layout Standard
14767 As you will see, the content of the first and last table row is not correctly
14769 To get this alignment, the minipage box must be set into a raisebox
14773 \begin_layout Plain Layout
14774 Raiseboxes are described in section
14775 \begin_inset space ~
14779 \begin_inset CommandInset ref
14781 reference "sub:Vertical-Alignment"
14791 In the example above the second table in the first item is aligned using
14792 the TeX-Code-command
14795 \begin_layout Standard
14805 \begin_layout Standard
14807 After the box the closing brace
14811 is inserted as TeX-Code.
14812 For the second table in the last item the command
14815 \begin_layout Standard
14825 \begin_layout Standard
14829 \begin_layout Standard
14830 \begin_inset Note Greyedout
14833 \begin_layout Plain Layout
14838 The alignment of the table row content to the surrounding text line is
14840 The required value for the
14846 command for this alignment depends on the document font, the font size,
14847 and the table line thickness.
14855 \begin_layout Section
14857 \begin_inset CommandInset label
14859 name "sec:Colored-Tables"
14864 \begin_inset Index idx
14867 \begin_layout Plain Layout
14876 \begin_layout Subsection
14878 \begin_inset Index idx
14881 \begin_layout Plain Layout
14882 Table Color ! for Cells
14888 \begin_inset Index idx
14891 \begin_layout Plain Layout
14892 Color ! for Table Cells
14900 \begin_layout Standard
14901 \begin_inset Float table
14907 \begin_layout Plain Layout
14908 \begin_inset Caption
14910 \begin_layout Plain Layout
14911 \begin_inset CommandInset label
14913 name "tab:Table-colored-without"
14917 Table colored without using the package
14922 \begin_inset Argument
14925 \begin_layout Plain Layout
14926 Table without colortbl
14939 \begin_layout Plain Layout
14941 \begin_inset Tabular
14942 <lyxtabular version="3" rows="3" columns="3">
14943 <features tabularvalignment="middle">
14944 <column alignment="center" valignment="top" width="0">
14945 <column alignment="center" valignment="top" width="0">
14946 <column alignment="center" valignment="top" width="0">
14948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14951 \begin_layout Plain Layout
14959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14962 \begin_layout Plain Layout
14970 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14973 \begin_layout Plain Layout
14983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14986 \begin_layout Plain Layout
14994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14997 \begin_layout Plain Layout
15005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15008 \begin_layout Plain Layout
15018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15021 \begin_layout Plain Layout
15029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15032 \begin_layout Plain Layout
15040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15043 \begin_layout Plain Layout
15064 \begin_layout Standard
15065 If you only need colored text, mark the cells and choose a color in the
15068 Edit\SpecialChar \menuseparator
15070 \begin_inset space ~
15076 This was used to create Table
15077 \begin_inset space ~
15081 \begin_inset CommandInset ref
15083 reference "tab:Table-colored-without"
15088 In any other case you have to use the LaTeX-package
15093 \begin_inset Index idx
15096 \begin_layout Plain Layout
15097 LaTeX-packages ! colortbl
15105 \begin_layout Standard
15109 \begin_layout Plain Layout
15119 \begin_inset Note Note
15122 \begin_layout Plain Layout
15123 The following section part will only be displayed when the LaTeX-package
15136 \begin_layout Standard
15137 To create colored tables,
15141 must be loaded in the preamble with the line
15144 \begin_layout Standard
15149 usepackage{colortbl}
15152 \begin_layout Standard
15153 The color of a column is adjusted with the command
15156 \begin_layout Standard
15161 columncolor{name of color}
15164 \begin_layout Standard
15170 More about the command
15174 is contained in section
15175 \begin_inset space ~
15179 \begin_inset CommandInset ref
15181 reference "sub:Multicolumn-Calculations"
15188 \begin_layout Standard
15189 The following color names are predefined:
15192 \begin_layout Standard
15226 \begin_layout Standard
15227 \begin_inset VSpace medskip
15233 \begin_layout Standard
15234 You can also define your own color with the command
15237 \begin_layout Standard
15242 definecolor{color name}{color model}{color values}
15245 \begin_layout Standard
15246 The color model can be
15249 \begin_layout Labeling
15250 \labelwidthstring 00.00.0000
15251 cmyk: cyan, magenta, yellow, black
15254 \begin_layout Labeling
15255 \labelwidthstring 00.00.0000
15256 rgb: red, green blue
15259 \begin_layout Labeling
15260 \labelwidthstring 00.00.0000
15264 \begin_layout Standard
15265 and the color values are comma separated numbers between 0 and 1 describing
15266 the factor for the corresponding color of the color model.
15269 \begin_layout Standard
15271 \begin_inset space \thinspace{}
15275 \begin_inset space \space{}
15282 " in the preamble with
15285 \begin_layout Standard
15290 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15293 \begin_layout Standard
15301 \begin_layout Standard
15306 definecolor{lightgray}{gray}{0.8}
15309 \begin_layout Standard
15310 \begin_inset VSpace medskip
15316 \begin_layout Standard
15317 Lines are colored with the command
15320 \begin_layout Standard
15325 rowcolor{name of color}
15328 \begin_layout Standard
15329 and cells are colored with the command
15332 \begin_layout Standard
15337 cellcolor{name of color}
15340 \begin_layout Standard
15341 Both commands are inserted at the beginning of a cell as TeX-Code.
15344 \begin_layout Standard
15345 To color characters in the table, mark the cells and use the LyX menu
15347 Edit\SpecialChar \menuseparator
15349 \begin_inset space ~
15355 If a cell contains TeX-Code mark only the characters, otherwise the colored
15356 TeX-Code will cause LaTeX-errors.
15359 \begin_layout Standard
15360 \begin_inset Note Greyedout
15363 \begin_layout Plain Layout
15368 Not all DVI-viewers are able to display self-defined colors.
15376 \begin_layout Standard
15377 \begin_inset VSpace bigskip
15383 \begin_layout Standard
15385 \begin_inset space ~
15389 \begin_inset CommandInset ref
15391 reference "tab:Table-colored-using"
15395 do the following: The color of the first column should be
15403 \begin_layout Standard
15408 columncolor{darkgreen}
15413 \begin_layout Standard
15414 as LaTeX-argument for this column.
15415 The first row should be blue, therefore the TeX-Code command
15418 \begin_layout Standard
15426 \begin_layout Standard
15427 is inserted to the first cell of this row.
15428 Note that this overwrites the column color for the first cell.
15429 The last cell of the last row is colored magenta by inserting the TeX-Code
15433 \begin_layout Standard
15441 \begin_layout Standard
15442 The characters could now be colored using the menu
15444 Edit\SpecialChar \menuseparator
15446 \begin_inset space ~
15454 \begin_layout Standard
15455 \begin_inset Float table
15461 \begin_layout Plain Layout
15462 \begin_inset Caption
15464 \begin_layout Plain Layout
15465 \begin_inset CommandInset label
15467 name "tab:Table-colored-using"
15471 Table colored using the package
15476 \begin_inset Argument
15479 \begin_layout Plain Layout
15480 Table with colortbl
15493 \begin_layout Plain Layout
15495 \begin_inset Tabular
15496 <lyxtabular version="3" rows="3" columns="3">
15497 <features tabularvalignment="middle">
15498 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15499 <column alignment="center" valignment="top" width="0">
15500 <column alignment="center" valignment="top" width="0">
15502 <cell alignment="center" valignment="top" usebox="none">
15505 \begin_layout Plain Layout
15509 \begin_layout Plain Layout
15525 <cell alignment="center" valignment="top" usebox="none">
15528 \begin_layout Plain Layout
15536 <cell alignment="center" valignment="top" usebox="none">
15539 \begin_layout Plain Layout
15549 <cell alignment="center" valignment="top" usebox="none">
15552 \begin_layout Plain Layout
15560 <cell alignment="center" valignment="top" usebox="none">
15563 \begin_layout Plain Layout
15571 <cell alignment="center" valignment="top" usebox="none">
15574 \begin_layout Plain Layout
15584 <cell alignment="center" valignment="top" usebox="none">
15587 \begin_layout Plain Layout
15595 <cell alignment="center" valignment="top" usebox="none">
15598 \begin_layout Plain Layout
15606 <cell alignment="center" valignment="top" usebox="none">
15609 \begin_layout Plain Layout
15613 \begin_layout Plain Layout
15642 \begin_layout Standard
15646 \begin_layout Plain Layout
15656 \begin_inset Note Note
15659 \begin_layout Plain Layout
15660 The following will be displayed when the LaTeX-package
15672 \begin_layout Standard
15673 You need to install the package
15677 to see the content of this section in the output.
15680 \begin_layout Standard
15684 \begin_layout Plain Layout
15696 \begin_layout Subsection
15698 \begin_inset Index idx
15701 \begin_layout Plain Layout
15702 Table Color ! for Lines
15708 \begin_inset Index idx
15711 \begin_layout Plain Layout
15712 Color ! for Table Lines
15720 \begin_layout Standard
15721 As described in section
15722 \begin_inset space ~
15726 \begin_inset CommandInset ref
15728 reference "sub:Line-Thickness"
15732 , the line thickness for all lines in a table can be adjusted with the length
15741 \begin_inset space \thinspace{}
15744 pt for all tables of this section.
15748 \begin_layout Plain Layout
15754 arrayrulewidth}{1.5pt}
15762 \begin_layout Standard
15763 To color vertical lines for example with green, create the following column
15764 format in the document preamble, according to the description in section
15765 \begin_inset space ~
15769 \begin_inset CommandInset ref
15771 reference "sub:Customized-Format"
15778 \begin_layout Standard
15783 newcolumntype{W}{!{
15790 \begin_layout Standard
15792 \begin_inset space ~
15796 \begin_inset CommandInset ref
15798 reference "tab:Table-with-vertical-colored"
15806 was used for the last column and
15810 for the other columns.
15813 \begin_layout Standard
15814 If you want to have several colors, define more column formats.
15817 \begin_layout Standard
15818 \begin_inset Float table
15824 \begin_layout Plain Layout
15825 \begin_inset Caption
15827 \begin_layout Plain Layout
15828 \begin_inset CommandInset label
15830 name "tab:Table-with-vertical-colored"
15834 Table with colored vertical lines
15842 \begin_layout Plain Layout
15844 \begin_inset Tabular
15845 <lyxtabular version="3" rows="3" columns="3">
15846 <features tabularvalignment="middle">
15847 <column alignment="center" valignment="top" width="0" special="Wc">
15848 <column alignment="center" valignment="top" width="0" special="Wc">
15849 <column alignment="center" valignment="top" width="0" special="WcW">
15851 <cell alignment="center" valignment="top" topline="true" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" topline="true" usebox="none">
15872 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" topline="true" usebox="none">
15901 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15912 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15930 \begin_layout Plain Layout
15949 \begin_layout Standard
15950 \begin_inset VSpace bigskip
15953 To color horizontal lines for example with red, as in Table
15954 \begin_inset space ~
15958 \begin_inset CommandInset ref
15960 reference "tab:Table-with-horizontal-colored"
15964 , insert these commands in TeX-Code before the table or table float:
15967 \begin_layout Standard
15977 \begin_inset Newline newline
15985 \begin_inset Newline newline
15989 \begin_inset Phantom HPhantom
15992 \begin_layout Plain Layout
15995 \begin_inset space ~
16005 arrayrulecolor{red}
16009 arrayrulecolor{black}}
16012 \begin_layout Standard
16016 \begin_layout Plain Layout
16027 \begin_layout Plain Layout
16036 \begin_layout Plain Layout
16040 arrayrulecolor{red}
16044 arrayrulecolor{black}}
16050 \begin_inset Float table
16056 \begin_layout Plain Layout
16057 \begin_inset Caption
16059 \begin_layout Plain Layout
16060 \begin_inset CommandInset label
16062 name "tab:Table-with-horizontal-colored"
16066 Table with colored horizontal lines
16074 \begin_layout Plain Layout
16076 \begin_inset Tabular
16077 <lyxtabular version="3" rows="3" columns="3">
16078 <features tabularvalignment="middle">
16079 <column alignment="center" valignment="top" width="0">
16080 <column alignment="center" valignment="top" width="0">
16081 <column alignment="center" valignment="top" width="0">
16083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16086 \begin_layout Plain Layout
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16095 \begin_layout Plain Layout
16101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16104 \begin_layout Plain Layout
16112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16115 \begin_layout Plain Layout
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16124 \begin_layout Plain Layout
16130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16133 \begin_layout Plain Layout
16141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16144 \begin_layout Plain Layout
16150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16153 \begin_layout Plain Layout
16159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16162 \begin_layout Plain Layout
16181 \begin_layout Standard
16182 To return to the default line color black, insert this command in TeX-Code
16183 after the table or table float:
16186 \begin_layout Standard
16198 \begin_layout Standard
16200 \begin_inset space ~
16204 \begin_inset CommandInset ref
16206 reference "tab:Table-with-colored"
16210 is an example with colored vertical and horizontal lines.
16213 \begin_layout Standard
16214 \begin_inset Float table
16220 \begin_layout Plain Layout
16221 \begin_inset Caption
16223 \begin_layout Plain Layout
16224 \begin_inset CommandInset label
16226 name "tab:Table-with-colored"
16230 Table with colored lines
16238 \begin_layout Plain Layout
16240 \begin_inset Tabular
16241 <lyxtabular version="3" rows="3" columns="3">
16242 <features tabularvalignment="middle">
16243 <column alignment="center" valignment="top" width="0" special="Wc">
16244 <column alignment="center" valignment="top" width="0" special="Wc">
16245 <column alignment="center" valignment="top" width="0" special="WcW">
16247 <cell alignment="center" valignment="top" topline="true" usebox="none">
16250 \begin_layout Plain Layout
16256 <cell alignment="center" valignment="top" topline="true" usebox="none">
16259 \begin_layout Plain Layout
16265 <cell alignment="center" valignment="top" topline="true" usebox="none">
16268 \begin_layout Plain Layout
16276 <cell alignment="center" valignment="top" topline="true" usebox="none">
16279 \begin_layout Plain Layout
16285 <cell alignment="center" valignment="top" topline="true" usebox="none">
16288 \begin_layout Plain Layout
16294 <cell alignment="center" valignment="top" topline="true" usebox="none">
16297 \begin_layout Plain Layout
16304 <row topspace="default">
16305 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16308 \begin_layout Plain Layout
16314 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16317 \begin_layout Plain Layout
16323 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16326 \begin_layout Plain Layout
16345 \begin_layout Standard
16349 \begin_layout Plain Layout
16365 \begin_layout Standard
16369 \begin_layout Plain Layout
16375 arrayrulewidth}{0.4pt}
16383 \begin_layout Section
16384 Table Customization
16385 \begin_inset Index idx
16388 \begin_layout Plain Layout
16389 Table Customization
16395 \begin_inset Index idx
16398 \begin_layout Plain Layout
16399 Table ! Customization
16407 \begin_layout Subsection
16409 \begin_inset CommandInset label
16411 name "sub:Row-Spacing"
16416 \begin_inset Index idx
16419 \begin_layout Plain Layout
16420 Table Customization ! Row Spacing
16428 \begin_layout Standard
16429 You can add vertical space to table rows in the
16433 tab of the table dialog.
16434 You find there three possibilities:
16437 \begin_layout Description
16439 \begin_inset space ~
16443 \begin_inset space ~
16446 row will add space above the characters of the table row.
16447 If the table is a formal table
16451 \begin_layout Plain Layout
16452 Formal tables are explained in section
16453 \begin_inset space ~
16457 \begin_inset CommandInset ref
16459 reference "sec:Formal-Tables"
16468 LyX will insert as default 0.5
16469 \begin_inset space \thinspace{}
16473 For normal tables the inserted space will unfortunately destroy the vertical
16474 table lines as in the following table:
16475 \begin_inset VSpace medskip
16479 \begin_inset Newline newline
16483 \begin_inset space \hspace*{}
16488 \begin_inset space \hfill{}
16492 \begin_inset Tabular
16493 <lyxtabular version="3" rows="3" columns="1">
16494 <features tabularvalignment="middle">
16495 <column alignment="center" valignment="top" width="0">
16497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16500 \begin_layout Plain Layout
16507 <row topspace="3mm">
16508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16511 \begin_layout Plain Layout
16513 \begin_inset space \thinspace{}
16516 mm space top of row
16523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16526 \begin_layout Plain Layout
16538 \begin_inset space \hfill{}
16542 \begin_inset space \hspace*{}
16547 \begin_inset VSpace medskip
16551 \begin_inset Newline newline
16554 So inserting space in the top of row for normal tables is only useful when
16555 you don't have vertical lines.
16558 \begin_layout Description
16560 \begin_inset space ~
16564 \begin_inset space ~
16567 row will add space below the characters of the table row.
16568 If the table is a formal table LyX will insert as default 0.5
16569 \begin_inset space \thinspace{}
16572 em space, for normal tables the default size is 2
16573 \begin_inset space \thinspace{}
16579 \begin_layout Description
16581 \begin_inset space ~
16584 rows adds space between the current and the following row.
16585 If the table is a formal table LyX will insert as default 0.5
16586 \begin_inset space \thinspace{}
16590 For normal tables the inserted space will unfortunately destroy the vertical
16591 table lines as in the following table:
16592 \begin_inset VSpace medskip
16596 \begin_inset Newline newline
16600 \begin_inset space \hspace*{}
16605 \begin_inset space \hfill{}
16609 \begin_inset Tabular
16610 <lyxtabular version="3" rows="3" columns="1">
16611 <features tabularvalignment="middle">
16612 <column alignment="center" valignment="top" width="0">
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16617 \begin_layout Plain Layout
16624 <row interlinespace="3mm">
16625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16628 \begin_layout Plain Layout
16629 \begin_inset Formula $\downarrow$
16633 \begin_inset space \thinspace{}
16636 mm space between row
16637 \begin_inset Formula $\downarrow$
16647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16650 \begin_layout Plain Layout
16651 \begin_inset Formula $\uparrow$
16655 \begin_inset space \thinspace{}
16658 mm space between row
16659 \begin_inset Formula $\uparrow$
16673 \begin_inset space \hfill{}
16677 \begin_inset space \hspace*{}
16682 \begin_inset VSpace medskip
16686 \begin_inset Newline newline
16689 So inserting space between rows for normal tables is only useful when you
16690 don't have vertical lines.
16693 \begin_layout Standard
16694 \begin_inset VSpace bigskip
16697 When you want to add extra height to all cells of all tables, you can do
16698 this with the following preamble lines:
16701 \begin_layout Standard
16706 @ifundefined{extrarowheight}
16707 \begin_inset Newline newline
16711 \begin_inset Phantom HPhantom
16714 \begin_layout Plain Layout
16717 \begin_inset space ~
16727 usepackage{array}}{}
16728 \begin_inset Newline newline
16735 extrarowheight}{height}
16738 \begin_layout Standard
16739 But this has the disadvantage that the cell texts are no longer exactly
16740 vertically centered.
16745 will be loaded automatically by LyX when you use self defined table formats.
16746 To avoid that it being loaded twice the command
16752 is used in the above command.)
16755 \begin_layout Standard
16756 If you are using font sizes larger than the normal size, the table borders
16757 are often too close to the letters.
16758 This can be corrected by inserting the command
16764 in TeX code at the beginning of a table row.
16766 \begin_inset space ~
16770 \begin_inset CommandInset ref
16772 reference "tab:Vertical-alignment-of"
16776 illustrates the effect.
16779 \begin_layout Standard
16781 \begin_inset Float table
16787 \begin_layout Plain Layout
16788 \begin_inset Caption
16790 \begin_layout Plain Layout
16791 \begin_inset CommandInset label
16793 name "tab:Vertical-alignment-of"
16797 Vertical alignment of text with large font sizes.
16805 \begin_layout Plain Layout
16806 \begin_inset space \hfill{}
16810 \begin_inset Float table
16815 \begin_layout Plain Layout
16816 \begin_inset Caption
16818 \begin_layout Plain Layout
16827 \begin_layout Plain Layout
16830 \begin_inset Tabular
16831 <lyxtabular version="3" rows="6" columns="1">
16832 <features tabularvalignment="middle">
16833 <column alignment="left" valignment="top" width="0">
16835 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16838 \begin_layout Plain Layout
16846 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16849 \begin_layout Plain Layout
16859 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16862 \begin_layout Plain Layout
16872 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16875 \begin_layout Plain Layout
16885 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16888 \begin_layout Plain Layout
16898 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16901 \begin_layout Plain Layout
16920 \begin_inset space \hfill{}
16924 \begin_inset Float table
16929 \begin_layout Plain Layout
16930 \begin_inset Caption
16932 \begin_layout Plain Layout
16933 Table using the command
16947 \begin_layout Plain Layout
16950 \begin_inset Tabular
16951 <lyxtabular version="3" rows="6" columns="1">
16952 <features tabularvalignment="middle">
16953 <column alignment="left" valignment="top" width="0">
16955 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16966 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16969 \begin_layout Plain Layout
16975 \begin_layout Plain Layout
16991 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16994 \begin_layout Plain Layout
17000 \begin_layout Plain Layout
17016 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17019 \begin_layout Plain Layout
17025 \begin_layout Plain Layout
17041 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17044 \begin_layout Plain Layout
17050 \begin_layout Plain Layout
17066 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17069 \begin_layout Plain Layout
17075 \begin_layout Plain Layout
17102 \begin_inset space \hfill{}
17113 \begin_layout Subsection
17114 Special Cell Alignment
17115 \begin_inset CommandInset label
17117 name "sub:Special-Cell-Alignment"
17122 \begin_inset Index idx
17125 \begin_layout Plain Layout
17126 Table Customization ! Special Cell Alignment
17134 \begin_layout Standard
17135 Sometimes it looks better when the cell entries of a column are aligned
17136 with a special character, e.
17137 \begin_inset space \thinspace{}
17141 \begin_inset space \space{}
17144 with the decimal separator as in Table
17145 \begin_inset space ~
17149 \begin_inset CommandInset ref
17151 reference "tab:Table-cells-align"
17156 This alignment is achieved by setting the cursor into the column and then
17157 either pressing the toolbar button
17158 \begin_inset Graphics
17159 filename ../images/tabular-feature_align-decimal.png
17161 scaleBeforeRotation
17165 or setting the alignment in the table settings to
17168 \begin_inset space ~
17172 \begin_inset space ~
17178 The alignment character can be a character of your choice and is specified
17179 in the table settings.
17182 \begin_layout Standard
17183 \begin_inset Float table
17189 \begin_layout Plain Layout
17190 \begin_inset Caption
17192 \begin_layout Plain Layout
17193 \begin_inset CommandInset label
17195 name "tab:Table-cells-align"
17199 Table cells of a column aligned with the decimal separator.
17207 \begin_layout Plain Layout
17209 \begin_inset Tabular
17210 <lyxtabular version="3" rows="4" columns="1">
17211 <features booktabs="true" tabularvalignment="middle">
17212 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17217 \begin_layout Plain Layout
17225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17228 \begin_layout Plain Layout
17236 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17239 \begin_layout Plain Layout
17247 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17250 \begin_layout Plain Layout
17269 \begin_layout Standard
17270 \begin_inset Float table
17276 \begin_layout Plain Layout
17277 \begin_inset Caption
17279 \begin_layout Plain Layout
17280 \begin_inset CommandInset label
17282 name "tab:Table-align-operator"
17286 Table cells of a column aligned with the operators.
17294 \begin_layout Plain Layout
17296 \begin_inset Tabular
17297 <lyxtabular version="3" rows="4" columns="2">
17298 <features booktabs="true" tabularvalignment="middle">
17299 <column alignment="right" valignment="top" width="0pt">
17300 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17302 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17305 \begin_layout Plain Layout
17311 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17314 \begin_layout Plain Layout
17322 <cell alignment="center" valignment="top" usebox="none">
17325 \begin_layout Plain Layout
17326 \begin_inset Formula $12\,+$
17334 <cell alignment="center" valignment="top" usebox="none">
17337 \begin_layout Plain Layout
17338 \begin_inset Formula $\,6$
17348 <cell alignment="center" valignment="top" usebox="none">
17351 \begin_layout Plain Layout
17352 \begin_inset Formula $0\,-$
17360 <cell alignment="center" valignment="top" usebox="none">
17363 \begin_layout Plain Layout
17364 \begin_inset Formula $\,68$
17374 <cell alignment="center" valignment="top" usebox="none">
17377 \begin_layout Plain Layout
17378 \begin_inset Formula $-123\,/$
17386 <cell alignment="center" valignment="top" usebox="none">
17389 \begin_layout Plain Layout
17390 \begin_inset Formula $\,0$
17411 \begin_layout Standard
17412 For alignments at characters in formulas this method does not work because
17413 the field to specify the alignment character does not allow formulas.
17414 In this case one need to use the method from Table
17415 \begin_inset space ~
17419 \begin_inset CommandInset ref
17421 reference "tab:Table-align-operator"
17426 This table was created with a 4×2 table.
17427 The heading is a centered multicolumn.
17428 The first column is right-aligned and contains the first part including
17430 The second column is left aligned and contains the rest.
17431 A small space was added at the beginning of each cell of the second column
17432 to get the space that is usually around operators.
17433 To omit the space that is normally between two table columns, the following
17434 LaTeX-argument was used for the second column:
17437 \begin_layout Standard
17443 \begin_layout Standard
17445 \begin_inset space ~
17449 \begin_inset CommandInset ref
17451 reference "tab:Several-table-cell"
17455 shows some example alignments.
17456 For the alignment with the relation sign, a small space was added like
17457 for the second column of Table
17458 \begin_inset space ~
17462 \begin_inset CommandInset ref
17464 reference "tab:Table-align-operator"
17471 \begin_layout Standard
17472 \begin_inset Float table
17478 \begin_layout Plain Layout
17479 \begin_inset Caption
17481 \begin_layout Plain Layout
17482 \begin_inset CommandInset label
17484 name "tab:Several-table-cell"
17488 Several table cell alignments.
17496 \begin_layout Plain Layout
17498 \begin_inset Tabular
17499 <lyxtabular version="3" rows="4" columns="6">
17500 <features tabularvalignment="middle">
17501 <column alignment="right" valignment="top" width="0">
17502 <column alignment="left" valignment="top" width="0" special="@{}l">
17503 <column alignment="right" valignment="top" width="0">
17504 <column alignment="left" valignment="top" width="0" special="@{}l">
17505 <column alignment="right" valignment="top" width="0">
17506 <column alignment="left" valignment="top" width="0" special="@{}l">
17508 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17511 \begin_layout Plain Layout
17517 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17520 \begin_layout Plain Layout
17526 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17529 \begin_layout Plain Layout
17535 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17538 \begin_layout Plain Layout
17544 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17547 \begin_layout Plain Layout
17553 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17556 \begin_layout Plain Layout
17564 <cell alignment="center" valignment="top" usebox="none">
17567 \begin_layout Plain Layout
17573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17576 \begin_layout Plain Layout
17578 \begin_inset space \thinspace{}
17586 <cell alignment="center" valignment="top" usebox="none">
17589 \begin_layout Plain Layout
17590 \begin_inset Formula $10\cdot$
17598 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17601 \begin_layout Plain Layout
17602 \begin_inset Formula $10^{\mbox{-}17}$
17610 <cell alignment="center" valignment="top" usebox="none">
17613 \begin_layout Plain Layout
17614 \begin_inset Formula $\Gamma(t)\propto$
17622 <cell alignment="center" valignment="top" usebox="none">
17625 \begin_layout Plain Layout
17626 \begin_inset Formula $\:\Upsilon(t)$
17636 <cell alignment="center" valignment="top" usebox="none">
17639 \begin_layout Plain Layout
17645 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17648 \begin_layout Plain Layout
17650 \begin_inset space \thinspace{}
17658 <cell alignment="center" valignment="top" usebox="none">
17661 \begin_layout Plain Layout
17662 \begin_inset Formula $5.78\cdot$
17670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17673 \begin_layout Plain Layout
17674 \begin_inset Formula $10^{7}$
17682 <cell alignment="center" valignment="top" usebox="none">
17685 \begin_layout Plain Layout
17686 \begin_inset Formula $A\ne$
17694 <cell alignment="center" valignment="top" usebox="none">
17697 \begin_layout Plain Layout
17698 \begin_inset Formula $\: B_{\mathrm{red}}$
17708 <cell alignment="center" valignment="top" usebox="none">
17711 \begin_layout Plain Layout
17717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17720 \begin_layout Plain Layout
17722 \begin_inset space \thinspace{}
17730 <cell alignment="center" valignment="top" usebox="none">
17733 \begin_layout Plain Layout
17735 \begin_inset Formula $33.5\cdot$
17743 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17746 \begin_layout Plain Layout
17747 \begin_inset Formula $10^{4}$
17755 <cell alignment="center" valignment="top" usebox="none">
17758 \begin_layout Plain Layout
17759 \begin_inset Formula $\sin(\alpha)\ge$
17767 <cell alignment="center" valignment="top" usebox="none">
17770 \begin_layout Plain Layout
17771 \begin_inset Formula $\:\sin(\beta)$
17792 \begin_layout Subsection
17793 Customized Cell/Column Format
17794 \begin_inset CommandInset label
17796 name "sub:Customized-Format"
17801 \begin_inset Index idx
17804 \begin_layout Plain Layout
17805 Table Customization ! Cell/Column Format
17813 \begin_layout Standard
17814 Calculating the required width for spanned columns as in section
17815 \begin_inset space ~
17819 \begin_inset CommandInset ref
17821 reference "sub:Multicolumn-Calculations"
17825 is very annoying if you have several tables with multicolumn cells.
17826 To make life easier, you can define a cell/column format in the preamble,
17827 so that it can be used in all tables of the document.
17828 The format is defined with the command
17831 \begin_layout Standard
17836 newcolumntype{name of format}[number of arguments]{commands}
17839 \begin_layout Standard
17840 The format name may only consist of one letter.
17865 are predefined and cannot be used.
17866 But all letters are allowed as capitals.
17869 \begin_layout Standard
17870 \begin_inset VSpace medskip
17876 \begin_layout Standard
17877 For vertically and horizontally centered multicolumn cells with a fixed
17878 width you can define the cell format
17881 \begin_layout Standard
17886 newcolumntype{M}[1]{>{
17893 \begin_layout Standard
17900 avoids the problem of hyphenating the first word, as described in section
17901 \begin_inset space ~
17905 \begin_inset CommandInset ref
17907 reference "sub:Multiple-Lines-in"
17912 Now you can simply enter
17915 \begin_layout Standard
17921 \begin_layout Standard
17922 as LaTeX-argument in the table dialog to create a multicolumn.
17925 \begin_layout Standard
17926 \begin_inset VSpace bigskip
17932 \begin_layout Standard
17933 For cells spanned by a multicolumn cell, you can define the format
17936 \begin_layout Standard
17941 newcolumntype{S}[2]{>{
17946 \begin_inset Newline newline
17950 \begin_inset Phantom HPhantom
17953 \begin_layout Plain Layout
17967 arrayrulewidth)*(1-#2))/#2}}
17970 \begin_layout Standard
17971 This format uses equation
17972 \begin_inset CommandInset ref
17978 to calculate the required width so that each spanned cell has the same
17982 \begin_layout Standard
17986 \begin_layout Standard
17989 S{width of multicolumn cell}{number of spanned columns}
17992 \begin_layout Standard
17993 as LaTeX-argument of the column.
17996 \begin_layout Standard
17997 \begin_inset VSpace bigskip
18003 \begin_layout Standard
18004 For colored columns, you can define
18007 \begin_layout Standard
18012 newcolumntype{K}[1]{>{
18019 \begin_layout Standard
18021 \begin_inset Quotes eld
18025 \begin_inset Quotes erd
18028 at the end creates a column with a flexible width whose text is horizontally
18033 \begin_layout Standard
18039 \begin_layout Standard
18043 \begin_layout Standard
18044 \begin_inset VSpace bigskip
18050 \begin_layout Standard
18052 \begin_inset space ~
18056 \begin_inset CommandInset ref
18058 reference "tab:Table-using-user-defined"
18062 use the LaTeX-arguments
18065 \begin_layout Standard
18071 \begin_layout Standard
18072 for the first column and the multicolumn,
18075 \begin_layout Standard
18081 \begin_layout Standard
18082 for the last column, and
18085 \begin_layout Standard
18091 \begin_layout Standard
18092 for the cells in the second column.
18095 \begin_layout Standard
18096 \begin_inset Float table
18102 \begin_layout Plain Layout
18103 \begin_inset Caption
18105 \begin_layout Plain Layout
18106 \begin_inset CommandInset label
18108 name "tab:Table-using-user-defined"
18112 Table using user-defined table formats
18120 \begin_layout Plain Layout
18122 \begin_inset Tabular
18123 <lyxtabular version="3" rows="3" columns="4">
18124 <features tabularvalignment="middle">
18125 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18126 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18127 <column alignment="center" valignment="middle" width="0">
18128 <column alignment="center" valignment="middle" width="0" special="K{red}">
18130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18133 \begin_layout Plain Layout
18134 verylongtablecellword
18139 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18142 \begin_layout Plain Layout
18143 multiple lines multicolumn
18148 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18151 \begin_layout Plain Layout
18157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18160 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18171 \begin_layout Plain Layout
18177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18180 \begin_layout Plain Layout
18186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18189 \begin_layout Plain Layout
18195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18198 \begin_layout Plain Layout
18206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18209 \begin_layout Plain Layout
18215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18218 \begin_layout Plain Layout
18224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18227 \begin_layout Plain Layout
18233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18236 \begin_layout Plain Layout
18255 \begin_layout Subsection
18257 \begin_inset CommandInset label
18259 name "sub:Line-Thickness"
18264 \begin_inset Index idx
18267 \begin_layout Plain Layout
18268 Table Customization ! Line Thickness
18276 \begin_layout Standard
18277 The line thickness for all lines in a table can be adjusted with the length
18285 To set for example a line thickness of 1.5
18286 \begin_inset space \thinspace{}
18290 \begin_inset space ~
18294 \begin_inset CommandInset ref
18296 reference "tab:Table-with-1.5"
18300 , insert the command
18303 \begin_layout Standard
18310 arrayrulewidth}{1.5pt}
18313 \begin_layout Standard
18314 in TeX-Code before the table or table float.
18315 The changed thickness is valid for all subsequent tables.
18316 To use the default value again, set
18323 \begin_inset space \thinspace{}
18326 pt in TeX-Code after the table or table float.
18329 \begin_layout Standard
18333 \begin_layout Plain Layout
18339 arrayrulewidth}{1.5pt}
18345 \begin_inset Float table
18350 \begin_layout Plain Layout
18351 \begin_inset Caption
18353 \begin_layout Plain Layout
18354 \begin_inset CommandInset label
18356 name "tab:Table-with-1.5"
18361 \begin_inset space \thinspace{}
18372 \begin_layout Plain Layout
18374 \begin_inset Tabular
18375 <lyxtabular version="3" rows="3" columns="3">
18376 <features tabularvalignment="middle">
18377 <column alignment="center" valignment="top" width="0">
18378 <column alignment="center" valignment="top" width="0">
18379 <column alignment="center" valignment="top" width="0">
18381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18384 \begin_layout Plain Layout
18390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18393 \begin_layout Plain Layout
18399 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18402 \begin_layout Plain Layout
18410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18413 \begin_layout Plain Layout
18419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18422 \begin_layout Plain Layout
18428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18431 \begin_layout Plain Layout
18439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18442 \begin_layout Plain Layout
18448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18451 \begin_layout Plain Layout
18457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18460 \begin_layout Plain Layout
18480 \begin_layout Plain Layout
18486 arrayrulewidth}{0.4pt}
18494 \begin_layout Standard
18495 \begin_inset VSpace bigskip
18498 To set the line thickness to 1.5
18499 \begin_inset space \thinspace{}
18502 pt only for horizontal lines, as in Table
18503 \begin_inset space ~
18507 \begin_inset CommandInset ref
18509 reference "tab:Table-with-horizontal"
18513 , insert these commands in TeX-Code before the table or table float:
18516 \begin_layout Standard
18526 \begin_inset Newline newline
18534 \begin_inset Newline newline
18543 arrayrulewidth 1.5pt}
18544 \begin_inset Newline newline
18555 arrayrulewidth 0.4pt}}
18558 \begin_layout Standard
18559 To return to the default line thickness, insert this command in TeX-Code
18560 after the table or table float:
18563 \begin_layout Standard
18575 \begin_layout Standard
18579 \begin_layout Plain Layout
18590 \begin_layout Plain Layout
18599 \begin_layout Plain Layout
18607 arrayrulewidth 1.5pt}
18610 \begin_layout Plain Layout
18620 arrayrulewidth 0.4pt}}
18626 \begin_inset Float table
18631 \begin_layout Plain Layout
18632 \begin_inset Caption
18634 \begin_layout Plain Layout
18635 \begin_inset CommandInset label
18637 name "tab:Table-with-horizontal"
18642 \begin_inset space \thinspace{}
18645 pt thick horizontal lines
18653 \begin_layout Plain Layout
18655 \begin_inset Tabular
18656 <lyxtabular version="3" rows="3" columns="3">
18657 <features tabularvalignment="middle">
18658 <column alignment="center" valignment="top" width="0">
18659 <column alignment="center" valignment="top" width="0">
18660 <column alignment="center" valignment="top" width="0">
18662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18665 \begin_layout Plain Layout
18671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18674 \begin_layout Plain Layout
18680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18683 \begin_layout Plain Layout
18691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18694 \begin_layout Plain Layout
18700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18703 \begin_layout Plain Layout
18709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18712 \begin_layout Plain Layout
18720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18723 \begin_layout Plain Layout
18729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18732 \begin_layout Plain Layout
18738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18741 \begin_layout Plain Layout
18761 \begin_layout Plain Layout
18777 \begin_layout Standard
18778 \begin_inset VSpace bigskip
18781 To set the line thickness to 1.5
18782 \begin_inset space \thinspace{}
18785 pt only for vertical lines, create the following column format in the document
18786 preamble, according to the description in section
18787 \begin_inset space ~
18791 \begin_inset CommandInset ref
18793 reference "sub:Customized-Format"
18800 \begin_layout Standard
18805 newcolumntype{V}{!{
18807 vrule width 1.5pt}}
18810 \begin_layout Standard
18812 \begin_inset space ~
18816 \begin_inset CommandInset ref
18818 reference "tab:Table-with-vertical"
18825 \begin_layout Standard
18831 \begin_layout Standard
18832 was used for the last column and
18835 \begin_layout Standard
18841 \begin_layout Standard
18842 for the other columns.
18845 \begin_layout Standard
18846 \begin_inset Float table
18851 \begin_layout Plain Layout
18852 \begin_inset Caption
18854 \begin_layout Plain Layout
18855 \begin_inset CommandInset label
18857 name "tab:Table-with-vertical"
18862 \begin_inset space \thinspace{}
18865 pt thick vertical lines
18873 \begin_layout Plain Layout
18875 \begin_inset Tabular
18876 <lyxtabular version="3" rows="3" columns="3">
18877 <features tabularvalignment="middle">
18878 <column alignment="center" valignment="top" width="0" special="Vc">
18879 <column alignment="center" valignment="top" width="0" special="Vc">
18880 <column alignment="center" valignment="top" width="0" special="VcV">
18882 <cell alignment="center" valignment="top" topline="true" usebox="none">
18885 \begin_layout Plain Layout
18891 <cell alignment="center" valignment="top" topline="true" usebox="none">
18894 \begin_layout Plain Layout
18900 <cell alignment="center" valignment="top" topline="true" usebox="none">
18903 \begin_layout Plain Layout
18911 <cell alignment="center" valignment="top" topline="true" usebox="none">
18914 \begin_layout Plain Layout
18920 <cell alignment="center" valignment="top" topline="true" usebox="none">
18923 \begin_layout Plain Layout
18929 <cell alignment="center" valignment="top" topline="true" usebox="none">
18932 \begin_layout Plain Layout
18940 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18943 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18952 \begin_layout Plain Layout
18958 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18961 \begin_layout Plain Layout
18980 \begin_layout Subsection
18982 \begin_inset Index idx
18985 \begin_layout Plain Layout
18986 Table Customization ! Dashed Lines
18994 \begin_layout Standard
18998 \begin_layout Plain Layout
19008 \begin_inset Note Note
19011 \begin_layout Plain Layout
19012 The following section will only be displayed when the LaTeX-package
19024 \begin_layout Standard
19025 \begin_inset Float table
19031 \begin_layout Plain Layout
19032 \begin_inset Caption
19034 \begin_layout Plain Layout
19035 \begin_inset CommandInset label
19037 name "tab:Table-with-dashed"
19041 Table with dashed lines
19049 \begin_layout Plain Layout
19051 \begin_inset Tabular
19052 <lyxtabular version="3" rows="5" columns="5">
19053 <features tabularvalignment="middle">
19054 <column alignment="center" valignment="top" width="0">
19055 <column alignment="center" valignment="top" width="0">
19056 <column alignment="center" valignment="top" width="0" special=":c">
19057 <column alignment="center" valignment="top" width="0">
19058 <column alignment="center" valignment="top" width="0">
19060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19063 \begin_layout Plain Layout
19069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19072 \begin_layout Plain Layout
19078 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19081 \begin_layout Plain Layout
19087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19090 \begin_layout Plain Layout
19096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19099 \begin_layout Plain Layout
19107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19110 \begin_layout Plain Layout
19116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19119 \begin_layout Plain Layout
19125 <cell alignment="center" valignment="top" topline="true" usebox="none">
19128 \begin_layout Plain Layout
19134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19137 \begin_layout Plain Layout
19143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19146 \begin_layout Plain Layout
19154 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19157 \begin_layout Plain Layout
19161 \begin_layout Plain Layout
19175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19178 \begin_layout Plain Layout
19184 <cell alignment="center" valignment="top" usebox="none">
19187 \begin_layout Plain Layout
19193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19196 \begin_layout Plain Layout
19202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19205 \begin_layout Plain Layout
19213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19216 \begin_layout Plain Layout
19220 \begin_layout Plain Layout
19234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19237 \begin_layout Plain Layout
19243 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19246 \begin_layout Plain Layout
19252 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19255 \begin_layout Plain Layout
19261 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19264 \begin_layout Plain Layout
19272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19275 \begin_layout Plain Layout
19281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19284 \begin_layout Plain Layout
19290 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19293 \begin_layout Plain Layout
19299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19302 \begin_layout Plain Layout
19308 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19311 \begin_layout Plain Layout
19330 \begin_layout Standard
19331 LyX does not natively support dashed lines, so you have to use TeX-Code.
19332 As a prerequisite the LaTeX-package
19337 \begin_inset Index idx
19340 \begin_layout Plain Layout
19341 LaTeX-packages ! arydshln
19346 must be loaded in the document preamble with the command
19349 \begin_layout Standard
19354 usepackage{arydshln}
19357 \begin_layout Standard
19358 To make a vertical line dashed, enter the colon
19359 \begin_inset Quotes eld
19363 \begin_inset Quotes erd
19366 together with the character for the horizontal alignment as LaTeX-argument
19367 in the table cell dialog.
19370 \begin_layout Standard
19371 For a horizontal dashed line add the command
19374 \begin_layout Standard
19382 \begin_layout Standard
19383 in TeX-Code as first element of the first cell in the table row.
19386 \begin_layout Standard
19387 For dashed multicolumn lines use the command
19390 \begin_layout Standard
19395 cdashline{line number
19400 \begin_layout Standard
19401 in TeX-Code as the first element of the first cell in the table row.
19402 If you have for example a multicolumn spanning columns 2 to 4 and you want
19403 to have a dashed line above, add the command
19406 \begin_layout Standard
19414 \begin_layout Standard
19415 as the first element of the first cell in the row of the multicolumn.
19418 \begin_layout Standard
19419 \begin_inset VSpace bigskip
19425 \begin_layout Standard
19427 \begin_inset space ~
19431 \begin_inset CommandInset ref
19433 reference "tab:Table-with-dashed"
19438 \begin_inset Quotes eld
19446 \begin_inset Quotes erd
19449 as LaTeX-argument of the third column.
19450 The TeX-Code command
19456 was inserted in the first cell of the third row and the TeX-Code command
19457 \begin_inset Newline newline
19466 was inserted in the first cell of the fourth row.
19469 \begin_layout Standard
19470 \begin_inset Note Greyedout
19473 \begin_layout Plain Layout
19482 is apparently not compatible with the LaTeX-package
19487 \begin_inset Index idx
19490 \begin_layout Plain Layout
19491 LaTeX-packages ! colortbl
19496 that is used for colored tables in section
19497 \begin_inset space ~
19501 \begin_inset CommandInset ref
19503 reference "sec:Colored-Tables"
19508 That means colored tables cannot have dashed lines.
19516 \begin_layout Standard
19520 \begin_layout Plain Layout
19530 \begin_inset Note Note
19533 \begin_layout Plain Layout
19534 The following will be displayed when the LaTeX-package
19546 \begin_layout Standard
19547 You need to install the package
19551 to see the content of this section in the output.
19554 \begin_layout Standard
19558 \begin_layout Plain Layout
19570 \begin_layout Chapter
19572 \begin_inset Index idx
19575 \begin_layout Plain Layout
19584 \begin_layout Section
19586 \begin_inset CommandInset label
19588 name "sec:FloatIntroduction"
19593 \begin_inset Index idx
19596 \begin_layout Plain Layout
19597 Floats ! Introduction
19605 \begin_layout Standard
19606 A float is a block of text associated with some sort of label, which doesn't
19607 have a fixed location.
19609 \begin_inset Quotes eld
19613 \begin_inset Quotes erd
19616 forward or backward a page or two, to wherever it fits best.
19624 \begin_inset space ~
19629 are also floats, because they can float to the next page when there are
19630 too many notes on the page.
19633 \begin_layout Standard
19634 Floats allow a high quality layout.
19635 Images and tables can be spread evenly to the pages to avoid white space
19636 and pages without text.
19637 As the floating often destroys the context between the text and the image/table
19638 , every float can be referenced in the text.
19639 Floats are therefore numbered.
19640 Referencing is described in section
19641 \begin_inset space ~
19645 \begin_inset CommandInset ref
19647 reference "sec:Referencing-Floats"
19654 \begin_layout Standard
19655 To insert a float, use the menu
19657 Insert\SpecialChar \menuseparator
19665 inset, a box with a label.
19666 The label will automatically be translated to the document language in
19668 After the label you can insert the caption text.
19669 The image or table is inserted above or below the caption in a separate
19670 paragraph within the float.
19671 More about the caption placement is contained in section
19672 \begin_inset space ~
19676 \begin_inset CommandInset ref
19678 reference "sec:Caption-Placement"
19683 To keep your LyX-document readable, you can open and close the float box
19684 by left-clicking on the box label.
19685 A closed float box looks like this:
19686 \begin_inset Graphics
19687 filename clipart/floatQt4.png
19689 scaleBeforeRotation
19693 – a gray button with a red label.
19696 \begin_layout Standard
19697 It is recommended that you insert floats as a separate standard paragraph
19698 to avoid possible LaTeX-errors that can occur when the surrounding text
19699 is specially formatted.
19702 \begin_layout Standard
19703 Existing figures or tables can be put into a float by highlighting them
19704 and then pressing the corresponding toolbar button for a new float.
19707 \begin_layout Section
19711 \begin_layout Standard
19712 Besides figure and table floats that are described in sections
19713 \begin_inset space ~
19717 \begin_inset CommandInset ref
19719 reference "sec:Figure-Floats"
19724 \begin_inset CommandInset ref
19726 reference "sec:Table-Floats"
19730 respectively, LyX offers the float types
19741 \begin_layout Subsection
19743 \begin_inset Index idx
19746 \begin_layout Plain Layout
19747 Floats ! Algorithms
19755 \begin_layout Standard
19756 \begin_inset Float algorithm
19762 \begin_layout Plain Layout
19763 \begin_inset Caption
19765 \begin_layout Plain Layout
19766 \begin_inset CommandInset label
19768 name "alg:Example-Algorithm-float"
19772 Example Algorithm float
19780 \begin_layout LyX-Code
19782 \begin_inset Newline newline
19785 Sum:= Sum + A(I); /*comment*/
19786 \begin_inset Newline newline
19790 \begin_inset VSpace -4mm
19801 \begin_layout Standard
19802 This float type is inserted with the menu
19804 Insert\SpecialChar \menuseparator
19805 Floats\SpecialChar \menuseparator
19809 It is used for program codes and descriptions of algorithms and can be
19810 seen as an alternative to program code listings that are explained in chapter
19811 \begin_inset space ~
19815 \begin_inset CommandInset ref
19817 reference "cha:Program-Code-Listings"
19822 A possible environment for algorithms is the
19826 , described in LyX's
19832 \begin_inset space ~
19836 \begin_inset CommandInset ref
19838 reference "alg:Example-Algorithm-float"
19842 is an example of an algorithm float where -4
19843 \begin_inset space \thinspace{}
19846 mm vertical space was added at the end of the float to have the bottom rule
19847 exactly below the last text line.
19850 \begin_layout Standard
19851 The float label is not automatically translated into the document language.
19852 If your document is not in English, you have to do this manually by adding
19853 the following line to the document preamble
19858 \begin_layout Standard
19863 floatname{algorithm}{your
19864 \begin_inset space ~
19870 \begin_layout Standard
19874 \begin_inset space ~
19880 \begin_inset Quotes eld
19888 \begin_inset Quotes erd
19894 \begin_layout Standard
19895 To insert the list of algorithms you can use the menu
19897 Insert\SpecialChar \menuseparator
19899 \begin_inset space \thinspace{}
19903 \begin_inset space \thinspace{}
19906 TOC\SpecialChar \menuseparator
19909 when your document has the same language as LyX's menu names.
19910 In other cases use this command in TeX-Code instead:
19913 \begin_layout Standard
19918 listof{algorithm}{your
19919 \begin_inset space ~
19925 \begin_layout Standard
19929 \begin_inset space ~
19935 \begin_inset Quotes eld
19943 \begin_inset Quotes erd
19949 \begin_layout Standard
19950 Algorithm floats are not by default numbered in the scheme
19951 \begin_inset Quotes eld
19955 \begin_inset Quotes erd
19958 as is the case for table and figure floats in many document-classes.
19959 To number algorithm floats in the same scheme, add this command to your
19963 \begin_layout Standard
19968 numberwithin{algorithm}{chapter}
19971 \begin_layout Standard
19972 To be able to use the command
19981 \begin_inset space ~
19986 in the document settings the option
19989 \begin_inset space ~
19993 \begin_inset space ~
19997 \begin_inset space ~
20005 \begin_layout Subsection
20007 \begin_inset Index idx
20010 \begin_layout Plain Layout
20011 Floats ! Wrap Floats
20019 \begin_layout Standard
20020 \begin_inset Wrap figure
20027 \begin_layout Plain Layout
20028 \begin_inset Graphics
20029 filename clipart/mobius.eps
20031 scaleBeforeRotation
20032 rotateOrigin center
20039 \begin_layout Plain Layout
20040 \begin_inset Caption
20042 \begin_layout Plain Layout
20043 \begin_inset CommandInset label
20045 name "fig:This-is-a"
20049 This is a figure wrap float.
20059 This float type is used if you want to wrap text around a figure or table
20060 so that it only occupies some fraction of the column width.
20061 It can be inserted using the menu
20063 Insert\SpecialChar \menuseparator
20064 Floats\SpecialChar \menuseparator
20066 \begin_inset space ~
20070 \begin_inset space ~
20078 \begin_inset space ~
20082 \begin_inset space ~
20087 if the LaTeX-package
20092 \begin_inset Index idx
20095 \begin_layout Plain Layout
20096 LaTeX-packages ! wrapfig
20100 \begin_layout Plain Layout
20118 \begin_layout Plain Layout
20119 Installing a LaTeX-package is explained it in the
20122 \begin_inset space ~
20132 The settings of the float can be modified by right-clicking on the float
20134 The mandatory settings are the float
20147 that specifies how much the float is set into the paragraph
20148 \begin_inset space \thinspace{}
20152 \begin_inset space \thinspace{}
20155 page margin, and the
20158 \begin_inset space ~
20163 that specifies how many text lines the float will approximately need.
20164 The line span is often hard to approximate; so it is better only to use
20165 it when you encounter float placement problems.
20166 You can furthermore decide if LaTeX is allowed to let the float float within
20167 the paragraph or to surrounding paragraphs.
20169 \begin_inset space ~
20173 \begin_inset CommandInset ref
20175 reference "fig:This-is-a"
20179 is an example text wrap float with a width of 40
20180 \begin_inset space \thinspace{}
20184 \begin_inset space \thinspace{}
20187 cm overhang, set to the left.
20191 \begin_layout Plain Layout
20192 Available units are explained in appendix
20193 \begin_inset space ~
20197 \begin_inset CommandInset ref
20199 reference "cha:Units-available-in"
20211 \begin_layout Standard
20212 \begin_inset Note Greyedout
20215 \begin_layout Plain Layout
20221 \begin_inset space ~
20224 wrap float floats are fragile! E.
20225 \begin_inset space \thinspace{}
20229 \begin_inset space \space{}
20232 having a figure too close to the bottom of the page can mess things up in
20233 such a way that the float does not appear in the output or that it is placed
20234 over some other text.
20242 \begin_layout Standard
20246 \begin_layout Itemize
20247 Wrap floats should not be placed in paragraphs that run over a page break.
20248 That means that wrap floats are better inserted in their exact place when
20249 the document is almost finished and you are able to estimate where page
20250 breaks will appear.
20253 \begin_layout Itemize
20254 Wrap floats should either be placed in their own paragraph before the paragraph
20255 where they should wrap into or within a paragraph.
20258 \begin_layout Itemize
20259 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20260 there is a text paragraph between them as separator.
20263 \begin_layout Itemize
20264 Wrap floats are not allowed in section headings or tables.
20267 \begin_layout Section
20269 \begin_inset Index idx
20272 \begin_layout Plain Layout
20281 \begin_layout Standard
20282 Floats are usually numbered either independently from the sections the floats
20283 are in, or in the scheme
20284 \begin_inset Quotes eld
20288 \begin_inset Quotes erd
20292 \begin_inset Quotes eld
20296 \begin_inset Quotes erd
20300 This depends on the document class used.
20303 \begin_layout Standard
20304 To change section-independent numbering, you can use this command in the
20308 \begin_layout Standard
20320 \begin_layout Standard
20327 is the command that prints the table number, for figure floats, the command
20341 in the command above prints the table number as small roman number.
20344 \begin_layout Standard
20345 To change the numbering scheme for example to
20346 \begin_inset Quotes eld
20350 \begin_inset Quotes erd
20353 , use this command in the preamble:
20356 \begin_layout Standard
20361 numberwithin{table}{subsection}
20364 \begin_layout Standard
20365 To be able to use the command
20374 \begin_inset space ~
20379 in the document settings the option
20382 \begin_inset space ~
20386 \begin_inset space ~
20390 \begin_inset space ~
20398 \begin_layout Standard
20399 Please also have a look at section
20400 \begin_inset space ~
20404 \begin_inset CommandInset ref
20406 reference "sub:Footnote-Numbering"
20410 for the details and important notes about the numbering commands.
20413 \begin_layout Section
20415 \begin_inset CommandInset label
20417 name "sec:Referencing-Floats"
20422 \begin_inset Index idx
20425 \begin_layout Plain Layout
20426 Floats ! References
20432 \begin_inset Index idx
20435 \begin_layout Plain Layout
20436 References ! to Floats
20444 \begin_layout Standard
20445 To reference a float, insert a label into its caption using the menu
20447 Insert\SpecialChar \menuseparator
20450 or the toolbar button
20451 \begin_inset Graphics
20452 filename ../images/label-insert.png
20454 scaleBeforeRotation
20459 A grey label box like this one:
20460 \begin_inset Graphics
20461 filename clipart/labelQt4.png
20463 scaleBeforeRotation
20467 will be inserted and the label window pops up asking for the label text.
20468 LyX offers as text the first words of the caption with a prefix.
20469 The prefix depends on the float type, e.
20470 \begin_inset space \thinspace{}
20474 \begin_inset space \space{}
20477 for figure floats the prefix will be "
20484 \begin_layout Standard
20485 The label is used as anchor and name for the reference.
20486 You can refer to the label using the menu
20488 Insert\SpecialChar \menuseparator
20491 or the toolbar button
20492 \begin_inset Graphics
20493 filename ../images/dialog-show-new-inset_ref.png
20495 scaleBeforeRotation
20500 A grey cross-reference box like this one:
20501 \begin_inset Graphics
20502 filename clipart/referenceQt4.png
20504 scaleBeforeRotation
20508 will be inserted and the cross-reference window appear showing all labels
20510 If you have multiple LyX-documents opened, choose the one you are working
20511 on from the drop-list at the top of the dialog.
20512 You can now sort the labels alphabetically and then choose one.
20513 At the position of the cross-reference box the float number will appear
20517 \begin_layout Standard
20518 It is recommended that you use a protected space between the cross-reference
20519 name and its number to avoid line breaks between them.
20520 If a cross-reference refers to a non-existing label, you will see two question
20521 marks in the output instead of the reference.
20524 \begin_layout Standard
20525 You can change labels at any time by clicking on the label box.
20526 References to the changed label will automatically change its link to the
20527 new label text, so that you don't need to take care about this.
20530 \begin_layout Standard
20534 \begin_inset space ~
20538 \begin_inset space ~
20543 in the cross-reference window sets the cursor before the referred label.
20544 The button text changes then to Go
20545 \begin_inset space ~
20548 Back and you can use it to set the cursor back to the cross-reference.
20549 Right-clicking on a cross-reference box also sets the cursor before the
20550 referenced label but without the possibility of going back.
20553 \begin_layout Subsection
20554 Cross-Reference Formats
20555 \begin_inset CommandInset label
20557 name "sub:Cross-Reference-Formats"
20562 \begin_inset Index idx
20565 \begin_layout Plain Layout
20566 References ! Formats
20574 \begin_layout Standard
20575 There are six varieties of cross-references:
20578 \begin_layout Description
20579 <reference>: prints the float number, this is the default:
20580 \begin_inset CommandInset ref
20582 reference "fig:Two-distorted-images"
20589 \begin_layout Description
20590 (<reference>): prints the float number within two parentheses, this is the
20591 style normally used to reference formulas, especially when the reference
20593 \begin_inset Quotes eld
20597 \begin_inset Quotes erd
20601 \begin_inset CommandInset ref
20610 \begin_layout Description
20611 <page>: prints the page number: Page
20612 \begin_inset space ~
20616 \begin_inset CommandInset ref
20617 LatexCommand pageref
20618 reference "fig:Two-distorted-images"
20625 \begin_layout Description
20627 \begin_inset space ~
20631 \begin_inset space ~
20634 <page>: prints the text "on page" and the page number:
20635 \begin_inset CommandInset ref
20636 LatexCommand vpageref
20637 reference "fig:Two-distorted-images"
20644 \begin_layout Description
20646 \begin_inset space ~
20650 \begin_inset space ~
20654 \begin_inset space ~
20657 <page>: prints the float number, the text "on page", and the page number:
20659 \begin_inset CommandInset ref
20661 reference "fig:Two-distorted-images"
20668 \begin_layout Description
20670 \begin_inset space ~
20673 reference: prints a self-defined cross-reference format.
20674 \begin_inset Newline newline
20678 \begin_inset Note Greyedout
20681 \begin_layout Plain Layout
20686 This feature is only available when you have the LaTeX-package
20695 \begin_inset Index idx
20698 \begin_layout Plain Layout
20699 LaTeX-packages ! prettyref
20705 \begin_inset Index idx
20708 \begin_layout Plain Layout
20709 LaTeX-packages ! refstyle
20720 \begin_inset Newline newline
20723 You can select which LaTeX-package should be used for this feature by setting
20726 Use refstyle (not prettyref) for cross-references
20730 Document\SpecialChar \menuseparator
20731 Settings\SpecialChar \menuseparator
20735 The format is specified by adding the command
20747 (refstyle) to the preamble of the document.
20748 For example redefining all references to figures (which have the label
20750 \begin_inset Quotes eld
20758 \begin_inset Quotes erd
20761 ) can be done with this command
20762 \begin_inset Newline newline
20769 newref{fig}{refcmd={Image on page
20774 \begin_inset Newline newline
20777 For more information about the format, have a look at the package documentations
20779 \begin_inset CommandInset citation
20781 key "prettyref,refstyle"
20788 \begin_layout Description
20790 \begin_inset space ~
20793 reference: prints the caption of the reference:
20794 \begin_inset CommandInset ref
20795 LatexCommand nameref
20796 reference "fig:Two-distorted-images"
20803 \begin_layout Standard
20808 will not print the page number if the label is on the previous, the same,
20811 \begin_inset space \thinspace{}
20815 \begin_inset space \space{}
20819 \begin_inset Quotes eld
20827 \begin_inset Quotes erd
20833 <reference> on page <page>
20835 will not print anything about the page if the label is on the same page.
20838 \begin_layout Standard
20839 The number and current page of the part of the document referred to in the
20840 output is automatically calculated by LaTeX.
20841 The varieties are adjusted in the field
20845 of the cross-reference window that appears when you click on the cross-referenc
20849 \begin_layout Standard
20850 \begin_inset Note Greyedout
20853 \begin_layout Plain Layout
20858 It is recommended to use the LaTeX-package
20863 \begin_inset Index idx
20866 \begin_layout Plain Layout
20867 LaTeX-packages ! refstyle
20877 \begin_inset Index idx
20880 \begin_layout Plain Layout
20881 LaTeX-packages ! prettyref
20886 does not know all of LyX's possible label shortcuts
20890 \begin_layout Plain Layout
20891 \begin_inset Quotes eld
20895 \begin_inset Quotes erd
20898 is for example LyX's shortcut for labels in figure captions.
20903 and is not internationalized.
20911 \begin_layout Standard
20912 \begin_inset Note Greyedout
20915 \begin_layout Plain Layout
20920 Due to a bug in the LaTeX-package
20924 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20925 languages that make the period character active (like French).
20926 For a workaround, see
20927 \begin_inset Newline newline
20931 \begin_inset CommandInset href
20933 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20945 \begin_layout Subsection
20946 Automatic Reference Naming
20947 \begin_inset Index idx
20950 \begin_layout Plain Layout
20951 References ! Automatic Reference Naming
20959 \begin_layout Standard
20965 \begin_inset Index idx
20968 \begin_layout Plain Layout
20969 LaTeX-packages ! hyperref
20974 , that is enabled in the
20982 dialog, provides a very useful feature that cross-references automatically
20983 include the name of the referenced floats (or text parts like
20988 So you will save having to write e.
20989 \begin_inset space \thinspace{}
20993 \begin_inset space \space{}
20997 \begin_inset Quotes eld
21001 \begin_inset Quotes erd
21004 before every reference to a figure.
21005 To use this feature, enable
21009 and insert this line to the LaTeX preamble:
21012 \begin_layout Standard
21028 \begin_layout Standard
21029 When you prefer other reference names than the default ones, for example
21030 you want instead of
21031 \begin_inset Quotes eld
21035 \begin_inset Quotes erd
21039 \begin_inset Quotes eld
21043 \begin_inset space \thinspace{}
21047 \begin_inset Quotes eld
21050 , you can redefine the name by inserting this in the preamble:
21053 \begin_layout Standard
21064 sectionautorefname}
21065 \begin_inset Newline newline
21069 \begin_inset Phantom HPhantom
21072 \begin_layout Plain Layout
21075 \begin_inset space ~
21088 \begin_layout Standard
21089 When you are using another document language than English, replace
21090 \begin_inset Newline newline
21105 , where *** is the name of the language used.
21108 \begin_layout Standard
21109 To get automatic names, but not for certain reference types, for example
21110 not for equations, use this preamble code:
21113 \begin_layout Standard
21121 \begin_inset Newline newline
21131 \begin_inset Newline newline
21142 equationautorefname}
21143 \begin_inset Newline newline
21147 \begin_inset Phantom HPhantom
21150 \begin_layout Plain Layout
21153 \begin_inset space ~
21168 \begin_layout Standard
21169 More about this topic can be found in
21174 \begin_inset CommandInset citation
21183 \begin_layout Standard
21184 \begin_inset Note Greyedout
21187 \begin_layout Plain Layout
21192 Automatic reference naming cannot be used when you use cross-references
21196 \begin_inset space ~
21201 style, as described in section
21202 \begin_inset space ~
21206 \begin_inset CommandInset ref
21208 reference "sub:Cross-Reference-Formats"
21220 \begin_layout Standard
21225 manual is an example where automatic reference naming is used.
21228 \begin_layout Subsection
21230 \begin_inset CommandInset label
21232 name "sub:Reference-Position"
21237 \begin_inset Index idx
21240 \begin_layout Plain Layout
21241 References ! Reference Position
21249 \begin_layout Standard
21255 \begin_inset Index idx
21258 \begin_layout Plain Layout
21259 LaTeX-packages ! hyperref
21272 dialog to link cross-references in the output, you will see that clicking
21273 on an image float reference jumps to the image label.
21274 The caption will be the first text part on the screen, so that you cannot
21275 see the image without scrolling.
21276 This is because the reference link anchor is placed at the position of
21278 With the use of the package
21283 \begin_inset Index idx
21286 \begin_layout Plain Layout
21287 LaTeX-packages ! hypcap
21292 , which is part of the LaTeX-package
21297 \begin_inset Index idx
21300 \begin_layout Plain Layout
21301 LaTeX-packages ! oberdiek
21306 , the link anchor is placed at the beginning of a float.
21307 To use this feature for figure floats, load
21311 in the document preamble with the line
21314 \begin_layout Standard
21319 usepackage[figure]{hypcap}
21322 \begin_layout Standard
21327 for all float types but this is not recommended for stability reasons.
21328 For more information, have a look at
21333 \begin_inset CommandInset citation
21342 \begin_layout Standard
21343 \begin_inset Note Greyedout
21346 \begin_layout Plain Layout
21355 has no effect on references to subfigures.
21363 \begin_layout Section
21365 \begin_inset CommandInset label
21367 name "sec:Float-Placement"
21372 \begin_inset Index idx
21375 \begin_layout Plain Layout
21384 \begin_layout Standard
21385 Right-clicking on a float-box opens a dialog where you can alter the placement
21386 options that LaTeX uses for positioning the float.
21387 \begin_inset Newline newline
21393 \begin_inset space ~
21398 is only useful for two-column documents: If you select it, the float will
21399 span both columns on the page instead of being confined to just one.
21400 \begin_inset Newline newline
21406 \begin_inset space ~
21411 is used to rotate floats, see section
21412 \begin_inset CommandInset ref
21414 reference "sec:Rotated-Floats"
21421 \begin_layout Standard
21422 You can use one ore more of the following options in the float dialog to
21423 set the placement for a particular float when you uncheck the option
21426 \begin_inset space ~
21430 \begin_inset space ~
21438 \begin_layout Description
21440 \begin_inset space ~
21444 \begin_inset space ~
21447 possible try to place the float on the position where it has been inserted
21450 \begin_layout Description
21452 \begin_inset space ~
21456 \begin_inset space ~
21459 page try to place the float at the top of the current page
21462 \begin_layout Description
21464 \begin_inset space ~
21468 \begin_inset space ~
21471 page try to place the float at the bottom of the current page
21474 \begin_layout Description
21476 \begin_inset space ~
21480 \begin_inset space ~
21483 floats try to place the float on its own page
21486 \begin_layout Standard
21487 The order of the above option is
21492 That means, if you use the default placement, LaTeX will first try out
21496 \begin_inset space ~
21500 \begin_inset space ~
21508 \begin_inset space ~
21512 \begin_inset space ~
21517 , and then the others.
21518 If you do not use the default, LaTeX will try only the checked options
21519 but in the same order.
21521 \begin_inset space ~
21524 placements are possible the procedure is internally repeated but it is tried
21525 to put the float on the following page.
21528 \begin_layout Standard
21529 By default, each option has its own rules:
21532 \begin_layout Labeling
21533 \labelwidthstring 00.00.0000
21537 \begin_inset space ~
21541 \begin_inset space ~
21546 only floats occupying less than 70
21547 \begin_inset space \thinspace{}
21550 % of the page can be placed at the top of a page (
21559 \begin_layout Labeling
21560 \labelwidthstring 00.00.0000
21564 \begin_inset space ~
21568 \begin_inset space ~
21573 : only floats occupying less than 30
21574 \begin_inset space \thinspace{}
21577 % of the page can be placed at the bottom of a page.
21587 \begin_layout Labeling
21588 \labelwidthstring 00.00.0000
21592 \begin_inset space ~
21596 \begin_inset space ~
21601 : only if more than 50
21602 \begin_inset space \thinspace{}
21605 % of the page are occupied by floats, several floats can be set together
21616 \begin_layout Standard
21617 If you don't like these rules, you can ignore them by using the additional
21621 \begin_inset space ~
21625 \begin_inset space ~
21631 \begin_inset Newline newline
21634 You can also redefine the rules with LaTeX-commands that are given in parenthese
21635 s after the rules description above.
21636 To increase for example the often too small default of the bottom-rule
21638 \begin_inset space \thinspace{}
21641 % of the page, add this line to your document preamble:
21644 \begin_layout Standard
21651 bottomfraction}{0.5}
21654 \begin_layout Standard
21655 Sometimes you might need, under all circumstances, a float to be placed
21656 exactly at the position where it is inserted.
21657 For this case you can use the option
21660 \begin_inset space ~
21666 Use this option very rarely and only if the document is almost ready to
21667 be printed, because the float is then no longer able to
21668 \begin_inset Quotes eld
21672 \begin_inset Quotes erd
21675 when you change your document and this will often destroy the page layout.
21678 \begin_layout Standard
21679 There are no placement options for text wrap floats, because they are always
21680 surrounded by the text of a certain paragraph.
21681 \begin_inset VSpace bigskip
21687 \begin_layout Standard
21688 Sometimes you have the problem that a float is placed at the top of a page
21689 while its corresponding section starts at the middle of the page, so that
21690 the reader could think the float is part of the previous section.
21691 To avoid this the LaTeX-command
21698 It suppresses a given float placement for the page where it is inserted
21699 and can therefore be used to avoid floats being set before a section starts.
21700 To get this, add these commands to your document preamble:
21703 \begin_layout Standard
21713 \begin_inset Newline newline
21727 \begin_layout Standard
21728 You can define the same for all section headings, like chapters and subsections.
21729 This definition is not recommended to be used for small text parts like
21730 subsubsections because LaTeX may then have problems finding a suitable
21734 \begin_layout Standard
21735 \begin_inset VSpace bigskip
21738 In some cases it is required to have all figures/tables at the end of the
21740 For this purpose the LaTeX-package
21745 \begin_inset Index idx
21748 \begin_layout Plain Layout
21749 LaTeX-packages ! endfloat
21755 It puts all figure and table floats at the end of the document into their
21757 At the original float position a text hint like
21758 \begin_inset Quotes eld
21764 \begin_inset space ~
21770 \begin_inset Quotes erd
21774 The endfloat-package is loaded in the preamble with the line
21777 \begin_layout Standard
21782 usepackage[options]{endfloat}
21785 \begin_layout Standard
21786 There are various package options to format the created figure/table sections.
21787 For more information we refer to the
21792 \begin_inset CommandInset citation
21799 \begin_inset Newline newline
21803 \begin_inset Note Greyedout
21806 \begin_layout Plain Layout
21811 doesn't provide an automatic translation for the text hint, you have to
21812 do this manually, see section
21813 \begin_inset space ~
21817 \begin_inset CommandInset citation
21829 \begin_inset Newline newline
21833 \begin_inset Note Greyedout
21836 \begin_layout Plain Layout
21841 There is currently a bug in
21845 when the caption contains a German
21846 \begin_inset Quotes eld
21850 \begin_inset Quotes erd
21854 Use in this case the command
21855 \begin_inset Quotes eld
21865 \begin_inset Quotes erd
21868 in TeX-Code instead of
21869 \begin_inset Quotes eld
21873 \begin_inset Quotes erd
21884 \begin_layout Standard
21885 \begin_inset VSpace bigskip
21888 For more details about float placements, have a look at LaTeX books,
21889 \begin_inset CommandInset citation
21891 key "latexcompanion,latexguide,latexbook"
21898 \begin_layout Section
21900 \begin_inset CommandInset label
21902 name "sec:Rotated-Floats"
21907 \begin_inset Index idx
21910 \begin_layout Plain Layout
21919 \begin_layout Standard
21920 Especially for wide tables you might have floats rotated.
21921 To rotate a whole float including the caption, right-click on the float-box
21925 \begin_inset space ~
21933 \begin_layout Standard
21934 Rotated floats are always placed on a page of their own (or column of their
21935 own; in case you have a multi-column document).
21936 You can let them span several columns using the float settings option
21939 \begin_inset space ~
21945 Floats are rotated so that you can read them from the outside margin.
21946 To force a certain rotation direction for all pages, you can add either
21955 to the document class options.
21958 \begin_layout Standard
21959 Referencing rotated floats is the same as for normal floats, the caption
21960 format is also the same: Table
21961 \begin_inset space ~
21965 \begin_inset CommandInset ref
21967 reference "tab:Rotated-table"
21971 is an example of a rotated table float.
21974 \begin_layout Standard
21975 \begin_inset Note Greyedout
21978 \begin_layout Plain Layout
21983 Not all DVI-viewers are able to display rotated floats.
21991 \begin_layout Standard
21992 \begin_inset Float table
21997 \begin_layout Plain Layout
21998 \begin_inset Caption
22000 \begin_layout Plain Layout
22001 \begin_inset CommandInset label
22003 name "tab:Rotated-table"
22015 \begin_layout Plain Layout
22017 \begin_inset Tabular
22018 <lyxtabular version="3" rows="1" columns="5">
22019 <features tabularvalignment="middle">
22020 <column alignment="center" valignment="top" width="0">
22021 <column alignment="center" valignment="top" width="0">
22022 <column alignment="center" valignment="top" width="0">
22023 <column alignment="center" valignment="top" width="0">
22024 <column alignment="center" valignment="top" width="0">
22026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22029 \begin_layout Plain Layout
22035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22038 \begin_layout Plain Layout
22044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22047 \begin_layout Plain Layout
22053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22056 \begin_layout Plain Layout
22062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22065 \begin_layout Plain Layout
22084 \begin_layout Section
22086 \begin_inset Index idx
22089 \begin_layout Plain Layout
22098 \begin_layout Standard
22099 Subfloats are for example used when a figure consists of several images.
22100 They are created by inserting a float into an existing float.
22101 The placement of the subfloats can be controlled in the same way as for
22102 paragraphs as shown in table
22103 \begin_inset space ~
22107 \begin_inset CommandInset ref
22109 reference "tab:Two-subtables-side"
22114 \begin_inset CommandInset ref
22116 reference "tab:Two-subtables-upon"
22123 \begin_layout Standard
22124 Referencing subfloats works as for normal floats: Table
22125 \begin_inset space ~
22129 \begin_inset CommandInset ref
22131 reference "tab:This-is-subtable-a"
22136 \begin_inset CommandInset ref
22138 reference "tab:This-is-subtable-b"
22142 are subtables of table
22143 \begin_inset space ~
22147 \begin_inset CommandInset ref
22149 reference "tab:Two-subtables-side"
22156 \begin_layout Standard
22157 \begin_inset Float table
22162 \begin_layout Plain Layout
22163 \begin_inset Caption
22165 \begin_layout Plain Layout
22166 \begin_inset CommandInset label
22168 name "tab:Two-subtables-side"
22172 Two subtables placed side by side.
22180 \begin_layout Plain Layout
22182 \begin_inset space \hfill{}
22186 \begin_inset Float table
22191 \begin_layout Plain Layout
22192 \begin_inset Caption
22194 \begin_layout Plain Layout
22195 \begin_inset CommandInset label
22197 name "tab:This-is-subtable-a"
22201 This is subtable a.
22209 \begin_layout Plain Layout
22211 \begin_inset Tabular
22212 <lyxtabular version="3" rows="1" columns="5">
22213 <features tabularvalignment="middle">
22214 <column alignment="center" valignment="top" width="0">
22215 <column alignment="center" valignment="top" width="0">
22216 <column alignment="center" valignment="top" width="0">
22217 <column alignment="center" valignment="top" width="0">
22218 <column alignment="center" valignment="top" width="0">
22220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22223 \begin_layout Plain Layout
22229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22232 \begin_layout Plain Layout
22238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22241 \begin_layout Plain Layout
22247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22250 \begin_layout Plain Layout
22256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22259 \begin_layout Plain Layout
22276 \begin_inset space \hfill{}
22280 \begin_inset Float table
22285 \begin_layout Plain Layout
22286 \begin_inset Caption
22288 \begin_layout Plain Layout
22289 \begin_inset CommandInset label
22291 name "tab:This-is-subtable-b"
22295 This is subtable b.
22303 \begin_layout Plain Layout
22305 \begin_inset Tabular
22306 <lyxtabular version="3" rows="1" columns="5">
22307 <features tabularvalignment="middle">
22308 <column alignment="center" valignment="top" width="0">
22309 <column alignment="center" valignment="top" width="0">
22310 <column alignment="center" valignment="top" width="0">
22311 <column alignment="center" valignment="top" width="0">
22312 <column alignment="center" valignment="top" width="0">
22314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22317 \begin_layout Plain Layout
22323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22326 \begin_layout Plain Layout
22332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22335 \begin_layout Plain Layout
22341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22344 \begin_layout Plain Layout
22350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22353 \begin_layout Plain Layout
22370 \begin_inset space \hfill{}
22381 \begin_layout Standard
22382 \begin_inset Float table
22387 \begin_layout Plain Layout
22388 \begin_inset Caption
22390 \begin_layout Plain Layout
22391 \begin_inset CommandInset label
22393 name "tab:Two-subtables-upon"
22397 Two subtables placed one above the other.
22398 (a) table with 4 cells, (b) table with 5 cells.
22406 \begin_layout Plain Layout
22408 \begin_inset Float table
22413 \begin_layout Plain Layout
22414 \begin_inset Caption
22416 \begin_layout Plain Layout
22425 \begin_layout Plain Layout
22427 \begin_inset Tabular
22428 <lyxtabular version="3" rows="1" columns="4">
22429 <features tabularvalignment="middle">
22430 <column alignment="center" valignment="top" width="0">
22431 <column alignment="center" valignment="top" width="0">
22432 <column alignment="center" valignment="top" width="0">
22433 <column alignment="center" valignment="top" width="0">
22435 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22438 \begin_layout Plain Layout
22444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22447 \begin_layout Plain Layout
22453 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22456 \begin_layout Plain Layout
22462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22465 \begin_layout Plain Layout
22484 \begin_layout Plain Layout
22486 \begin_inset Float table
22491 \begin_layout Plain Layout
22492 \begin_inset Caption
22494 \begin_layout Plain Layout
22503 \begin_layout Plain Layout
22505 \begin_inset Tabular
22506 <lyxtabular version="3" rows="1" columns="5">
22507 <features tabularvalignment="middle">
22508 <column alignment="center" valignment="top" width="0">
22509 <column alignment="center" valignment="top" width="0">
22510 <column alignment="center" valignment="top" width="0">
22511 <column alignment="center" valignment="top" width="0">
22512 <column alignment="center" valignment="top" width="0">
22514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22517 \begin_layout Plain Layout
22523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22526 \begin_layout Plain Layout
22532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22535 \begin_layout Plain Layout
22541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22544 \begin_layout Plain Layout
22550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22553 \begin_layout Plain Layout
22577 \begin_layout Section
22578 Floats Side by Side
22579 \begin_inset Index idx
22582 \begin_layout Plain Layout
22583 Floats ! Side by side
22591 \begin_layout Standard
22592 To place floats side by side, as in Figures
22593 \begin_inset space ~
22597 \begin_inset CommandInset ref
22599 reference "fig:Float-left"
22604 \begin_inset CommandInset ref
22606 reference "fig:Float-right"
22615 In it two minipage boxes are inserted.
22619 \begin_layout Plain Layout
22620 Minipages are explained in section
22621 \begin_inset space ~
22625 \begin_inset CommandInset ref
22627 reference "sec:Minipages"
22636 The width is set to 45
22637 \begin_inset space \thinspace{}
22641 \begin_inset space \thinspace{}
22644 column% and the box alignment to
22649 The minipage boxes contain the image and the caption in the same way as
22650 they are in a float.
22651 The only difference is that the image unit
22654 \begin_inset space ~
22658 \begin_inset space ~
22663 is now calculated according to the width of the minipage boxes.
22666 \begin_layout Standard
22667 \begin_inset Float figure
22672 \begin_layout Plain Layout
22673 \begin_inset Box Frameless
22683 height_special "totalheight"
22686 \begin_layout Plain Layout
22688 \begin_inset Graphics
22689 filename clipart/mobius.eps
22692 scaleBeforeRotation
22699 \begin_layout Plain Layout
22700 \begin_inset Caption
22702 \begin_layout Plain Layout
22703 \begin_inset CommandInset label
22705 name "fig:Float-left"
22709 Float on the left side.
22720 \begin_inset space \hfill{}
22724 \begin_inset Box Frameless
22734 height_special "totalheight"
22737 \begin_layout Plain Layout
22739 \begin_inset Graphics
22740 filename clipart/platypus.eps
22743 scaleBeforeRotation
22750 \begin_layout Plain Layout
22751 \begin_inset Caption
22753 \begin_layout Plain Layout
22754 \begin_inset CommandInset label
22756 name "fig:Float-right"
22760 Float on the right side.
22773 \begin_layout Plain Layout
22782 \begin_layout Section
22784 \begin_inset Index idx
22787 \begin_layout Plain Layout
22788 Caption ! Formatting
22794 \begin_inset Index idx
22797 \begin_layout Plain Layout
22798 Floats ! Caption Formatting
22804 \begin_inset CommandInset label
22806 name "sec:Caption-Formatting"
22813 \begin_layout Standard
22818 environment is the default paragraph environment for
22823 On the LyX screen captions appear as label, e.
22824 \begin_inset space \thinspace{}
22828 \begin_inset space \space{}
22832 \begin_inset Quotes eld
22840 \begin_inset Quotes erd
22843 followed by the caption text.
22845 \begin_inset Quotes eld
22849 \begin_inset Quotes erd
22852 is the actual reference number.
22853 By default the label and the number are in the same font as the caption
22854 text and a colon follows the number to divide the label from the text.
22855 This caption format is not suitable for all document formats.
22859 \begin_layout Standard
22860 To change the default caption format, load the LaTeX-package
22865 \begin_inset Index idx
22868 \begin_layout Plain Layout
22869 LaTeX-packages ! caption
22874 in the document preamble with this line:
22877 \begin_layout Standard
22882 usepackage[format definition]{caption}
22885 \begin_layout Standard
22886 To have for example the label and the number in sans-serif bold font and
22887 the table captions always above the table as in this document, use the
22891 \begin_layout Standard
22896 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22899 \begin_layout Standard
22900 You can also define different caption formats for the different float types.
22901 In this case load the
22905 package without format specific options and define the different formats
22906 with the help of the command
22909 \begin_layout Standard
22914 captionsetup[float type]{format definition}
22917 \begin_layout Standard
22918 in the document preamble.
22919 For example the caption formats of Figure
22920 \begin_inset space ~
22924 \begin_inset CommandInset ref
22926 reference "fig:This-is-an-fig"
22931 \begin_inset space ~
22935 \begin_inset CommandInset ref
22937 reference "tab:This-is-an-tab"
22941 can be created using these commands in the document preamble:
22944 \begin_layout Standard
22949 usepackage[tableposition=top]{caption}
22952 \begin_inset Newline newline
22959 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22960 \begin_inset Newline newline
22964 \begin_inset Phantom HPhantom
22967 \begin_layout Plain Layout
22972 captionsetup[figure]{
22978 \begin_inset Newline newline
22983 captionsetup[table]{labelfont={bf,sf}}
22986 \begin_layout Standard
22987 \begin_inset Note Greyedout
22990 \begin_layout Plain Layout
22999 has no effect when a
23004 \begin_inset Index idx
23007 \begin_layout Plain Layout
23008 LaTeX-packages ! KOMA-Script
23013 document class is used.
23014 In this case the document class option
23016 captions=tableheading
23026 \begin_layout Standard
23027 For more information about the package
23031 we refer to its documentation
23032 \begin_inset CommandInset citation
23041 \begin_layout Standard
23042 To change the label name from e.
23043 \begin_inset space \thinspace{}
23047 \begin_inset space \space{}
23051 \begin_inset Quotes eld
23055 \begin_inset Quotes erd
23059 \begin_inset Quotes eld
23063 \begin_inset Quotes erd
23066 use this preamble command:
23069 \begin_layout Standard
23076 fnum@figure}{Image~
23081 \begin_layout Standard
23088 inserts the figure number and
23091 \begin_inset Quotes eld
23097 \begin_inset Quotes erd
23100 creates a protected space.
23103 \begin_layout Standard
23104 \begin_inset VSpace bigskip
23112 \begin_inset Index idx
23115 \begin_layout Plain Layout
23116 LaTeX-packages ! KOMA-Script
23123 article (KOMA-Script)
23131 letter (KOMA-Script)
23135 report (KOMA-Script)
23138 \begin_inset space \thinspace{}
23141 ), you can alternatively to the
23149 's built-in command
23156 For example, to have the caption label in bold, add this command to your
23160 \begin_layout Standard
23165 setkomafont{captionlabel}{
23170 \begin_layout Standard
23171 For more information about
23182 \begin_inset CommandInset citation
23191 \begin_layout Standard
23195 \begin_layout Plain Layout
23199 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23206 \begin_inset Note Note
23209 \begin_layout Plain Layout
23210 The caption format is changed only for this example.
23218 \begin_layout Standard
23219 \begin_inset Float figure
23225 \begin_layout Plain Layout
23227 \begin_inset Graphics
23228 filename clipart/mobius.eps
23231 scaleBeforeRotation
23238 \begin_layout Plain Layout
23239 \begin_inset Caption
23241 \begin_layout Plain Layout
23242 \begin_inset CommandInset label
23244 name "fig:This-is-an-fig"
23248 This is an example figure caption that is longer than one line to show the
23249 different caption format.
23250 Here a self-defined caption format is used.
23263 \begin_layout Standard
23267 \begin_layout Plain Layout
23271 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23280 \begin_layout Standard
23281 \begin_inset Float table
23287 \begin_layout Plain Layout
23288 \begin_inset Caption
23290 \begin_layout Plain Layout
23291 \begin_inset CommandInset label
23293 name "tab:This-is-an-tab"
23297 This is an example table caption that is longer than one line to show the
23298 different caption format.
23299 Here the standard caption format for tables in this document is used.
23307 \begin_layout Plain Layout
23309 \begin_inset Tabular
23310 <lyxtabular version="3" rows="1" columns="5">
23311 <features tabularvalignment="middle">
23312 <column alignment="center" valignment="top" width="0">
23313 <column alignment="center" valignment="top" width="0">
23314 <column alignment="center" valignment="top" width="0">
23315 <column alignment="center" valignment="top" width="0">
23316 <column alignment="center" valignment="top" width="0">
23318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23321 \begin_layout Plain Layout
23327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23330 \begin_layout Plain Layout
23336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23339 \begin_layout Plain Layout
23345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23348 \begin_layout Plain Layout
23354 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23357 \begin_layout Plain Layout
23376 \begin_layout Section
23378 \begin_inset Index idx
23381 \begin_layout Plain Layout
23382 Caption ! Placement
23388 \begin_inset Index idx
23391 \begin_layout Plain Layout
23392 Floats ! Caption Placement
23398 \begin_inset CommandInset label
23400 name "sec:Caption-Placement"
23407 \begin_layout Standard
23408 The common caption placement rule is:
23411 \begin_layout Description
23412 Figure: Caption is set below the figure
23415 \begin_layout Description
23416 Table: Caption is set above the table
23419 \begin_layout Standard
23420 Having the caption above the table is unfortunately not supported in LaTeX's
23422 That means if you are using the document classes
23438 there will be no space between the caption and the table.
23439 To insert the necessary space, add the following option to the load command
23440 of the LaTeX-package
23444 in your document preamble
23448 \begin_layout Plain Layout
23450 \begin_inset space ~
23454 \begin_inset CommandInset ref
23456 reference "sec:Caption-Formatting"
23460 for more information of the package
23472 \begin_layout Standard
23478 \begin_layout Standard
23484 \begin_inset Index idx
23487 \begin_layout Plain Layout
23488 LaTeX-packages ! KOMA-Script
23495 article (KOMA-Script)
23503 letter (KOMA-Script)
23507 report (KOMA-Script)
23510 \begin_inset space \thinspace{}
23513 ), you can alternatively to the
23517 package set the document class option
23519 captions=tableheading
23524 \begin_layout Standard
23525 \begin_inset VSpace bigskip
23528 It is also possible to set the caption beside a figure or table.
23529 To get this the LaTeX-package
23534 \begin_inset Index idx
23537 \begin_layout Plain Layout
23538 LaTeX-packages ! sidecap
23543 has to be loaded in the document preamble with the line
23546 \begin_layout Standard
23551 usepackage[option]{sidecap}
23554 \begin_layout Standard
23555 If you set no option, the caption is placed on the side of the outer page
23556 margin – to the right on odd pages, to the left on even pages.
23557 You can change the placement to inner margin with the option
23562 To force the placement always to the right or left, use the option
23573 \begin_layout Standard
23577 \begin_layout Plain Layout
23587 \begin_inset Note Note
23590 \begin_layout Plain Layout
23591 The following section will only be displayed when the LaTeX-package
23603 \begin_layout Standard
23604 To place in LyX the caption of a float on the side, it is necessary to add
23605 these commands to the document preamble:
23608 \begin_layout Standard
23610 \begin_inset CommandInset line
23621 \begin_layout Standard
23629 \begin_inset Newline newline
23633 \begin_inset Phantom HPhantom
23636 \begin_layout Plain Layout
23639 \begin_inset space ~
23654 \begin_inset Newline newline
23658 \begin_inset Phantom HPhantom
23661 \begin_layout Plain Layout
23664 \begin_inset space ~
23679 \begin_inset Newline newline
23683 \begin_inset Phantom HPhantom
23686 \begin_layout Plain Layout
23689 \begin_inset space ~
23699 renewenvironment{table}{
23706 \begin_layout Standard
23714 \begin_inset Newline newline
23718 \begin_inset Phantom HPhantom
23721 \begin_layout Plain Layout
23724 \begin_inset space ~
23739 \begin_inset Newline newline
23743 \begin_inset Phantom HPhantom
23746 \begin_layout Plain Layout
23749 \begin_inset space ~
23766 \begin_layout Standard
23774 \begin_inset Newline newline
23778 \begin_inset Phantom HPhantom
23781 \begin_layout Plain Layout
23784 \begin_inset space ~
23799 \begin_inset Newline newline
23803 \begin_inset Phantom HPhantom
23806 \begin_layout Plain Layout
23809 \begin_inset space ~
23824 \begin_inset Newline newline
23828 \begin_inset Phantom HPhantom
23831 \begin_layout Plain Layout
23834 \begin_inset space ~
23844 renewenvironment{figure}{
23851 \begin_layout Standard
23859 \begin_inset Newline newline
23863 \begin_inset Phantom HPhantom
23866 \begin_layout Plain Layout
23869 \begin_inset space ~
23884 \begin_inset Newline newline
23888 \begin_inset Phantom HPhantom
23891 \begin_layout Plain Layout
23894 \begin_inset space ~
23911 \begin_layout Standard
23913 \begin_inset CommandInset line
23924 \begin_layout Standard
23925 The commands allow you to redefine the floats so that the caption is set
23927 For figure floats use the command
23930 \begin_layout Standard
23938 \begin_layout Standard
23939 in TeX-Code before the float.
23940 After the float insert the command
23943 \begin_layout Standard
23951 \begin_layout Standard
23952 in TeX-Code to get back to the original float definition.
23955 \begin_layout Standard
23956 For table floats use the corresponding commands
23959 \begin_layout Standard
23973 \begin_layout Standard
23975 \begin_inset space ~
23979 \begin_inset CommandInset ref
23981 reference "fig:cap-beside-fig"
23986 \begin_inset space ~
23990 \begin_inset CommandInset ref
23992 reference "tab:cap-beside-tab"
23996 are examples where the caption is set beside.
23999 \begin_layout Standard
24000 You can see in the examples that the caption text appears at the top of
24001 the floats for table floats and at the bottom for figure floats.
24002 To change this, you can use the command
24005 \begin_layout Standard
24010 sidecaptionvpos{float type}{placement}
24013 \begin_layout Standard
24014 in the document preamble or in TeX-Code before the float.
24015 The float type is either
24023 , the placement can be
24024 \begin_inset Quotes eld
24032 \begin_inset Quotes erd
24036 \begin_inset Quotes eld
24044 \begin_inset Quotes erd
24048 \begin_inset Quotes eld
24056 \begin_inset Quotes erd
24060 To have for example the caption of figure floats vertically centered, use
24064 \begin_layout Standard
24069 sidecaptionvpos{figure}{c}
24072 \begin_layout Standard
24073 This was used for Figure
24074 \begin_inset space ~
24078 \begin_inset CommandInset ref
24080 reference "fig:cap-beside-fig-2"
24087 \begin_layout Standard
24088 \begin_inset VSpace medskip
24091 For more information about the package
24095 we refer to its documentation
24096 \begin_inset CommandInset citation
24105 \begin_layout Standard
24106 \begin_inset Note Greyedout
24109 \begin_layout Plain Layout
24119 \begin_inset Index idx
24122 \begin_layout Plain Layout
24123 LaTeX-packages ! hypcap
24128 , described in section
24129 \begin_inset space ~
24133 \begin_inset CommandInset ref
24135 reference "sub:Reference-Position"
24139 , has no effect on floats with the caption set beside.
24147 \begin_layout Standard
24151 \begin_layout Plain Layout
24163 \begin_layout Standard
24164 \begin_inset Float figure
24169 \begin_layout Plain Layout
24170 \begin_inset Graphics
24171 filename clipart/escher-lsd.eps
24173 scaleBeforeRotation
24180 \begin_layout Plain Layout
24181 \begin_inset Caption
24183 \begin_layout Plain Layout
24184 \begin_inset CommandInset label
24186 name "fig:cap-beside-fig"
24190 This is a caption beside a figure.
24203 \begin_layout Standard
24207 \begin_layout Plain Layout
24219 \begin_layout Standard
24220 \begin_inset Float table
24225 \begin_layout Plain Layout
24226 \begin_inset Caption
24228 \begin_layout Plain Layout
24229 \begin_inset CommandInset label
24231 name "tab:cap-beside-tab"
24235 This is a caption beside a table.
24243 \begin_layout Plain Layout
24244 \begin_inset Tabular
24245 <lyxtabular version="3" rows="4" columns="5">
24246 <features tabularvalignment="middle">
24247 <column alignment="center" valignment="top" width="0">
24248 <column alignment="center" valignment="top" width="0">
24249 <column alignment="center" valignment="top" width="0">
24250 <column alignment="center" valignment="top" width="0">
24251 <column alignment="center" valignment="top" width="0">
24253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24256 \begin_layout Plain Layout
24262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24265 \begin_layout Plain Layout
24271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24274 \begin_layout Plain Layout
24280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24283 \begin_layout Plain Layout
24289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24292 \begin_layout Plain Layout
24300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24303 \begin_layout Plain Layout
24309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24312 \begin_layout Plain Layout
24318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24321 \begin_layout Plain Layout
24327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24330 \begin_layout Plain Layout
24336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24339 \begin_layout Plain Layout
24347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24350 \begin_layout Plain Layout
24356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24359 \begin_layout Plain Layout
24365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24368 \begin_layout Plain Layout
24374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24377 \begin_layout Plain Layout
24383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24386 \begin_layout Plain Layout
24394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24397 \begin_layout Plain Layout
24403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24406 \begin_layout Plain Layout
24412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24415 \begin_layout Plain Layout
24421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24424 \begin_layout Plain Layout
24430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24433 \begin_layout Plain Layout
24452 \begin_layout Standard
24456 \begin_layout Plain Layout
24468 \begin_layout Standard
24472 \begin_layout Plain Layout
24476 sidecaptionvpos{figure}{c}
24482 \begin_inset Float figure
24487 \begin_layout Plain Layout
24488 \begin_inset Graphics
24489 filename clipart/escher-lsd.eps
24491 scaleBeforeRotation
24498 \begin_layout Plain Layout
24499 \begin_inset Caption
24501 \begin_layout Plain Layout
24502 \begin_inset CommandInset label
24504 name "fig:cap-beside-fig-2"
24508 This is a vertically centered caption beside a figure.
24521 \begin_layout Standard
24525 \begin_layout Plain Layout
24537 \begin_layout Standard
24541 \begin_layout Plain Layout
24551 \begin_inset Note Note
24554 \begin_layout Plain Layout
24555 The following will be displayed when the LaTeX-package
24567 \begin_layout Standard
24568 You need to install the LaTeX-package
24572 to see the following part of this section in the output.
24575 \begin_layout Standard
24579 \begin_layout Plain Layout
24591 \begin_layout Section
24593 \begin_inset Index idx
24596 \begin_layout Plain Layout
24597 Floats ! Float Lists
24605 \begin_layout Standard
24606 Similar to the table of contents where the sections of the document are
24607 listed, there are listings for all float types, like the figures of the
24609 You can insert them via the
24611 Insert\SpecialChar \menuseparator
24613 \begin_inset space ~
24617 \begin_inset space ~
24625 \begin_layout Standard
24626 The list entries are the float captions or its short title, the float number,
24627 and the page number where they appear in the document.
24630 \begin_layout Standard
24631 You can find the list of figures and tables at the end of this document.
24634 \begin_layout Chapter
24638 \begin_layout Section
24640 \begin_inset Index idx
24643 \begin_layout Plain Layout
24652 \begin_layout Standard
24653 Notes are inserted with the toolbar button
24654 \begin_inset Graphics
24655 filename ../images/note-insert.png
24657 scaleBeforeRotation
24663 Insert\SpecialChar \menuseparator
24667 There are three types of notes:
24670 \begin_layout Description
24672 \begin_inset space ~
24675 Note This note type is for internal notes that won't appear in the output.
24676 Its note-box looks like this:
24677 \begin_inset Newline newline
24681 \begin_inset Newline newline
24685 \begin_inset Graphics
24686 filename clipart/LyXNoteImageQt4.png
24689 scaleBeforeRotation
24694 \begin_inset Note Note
24697 \begin_layout Plain Layout
24698 This is text in a note box that doesn't appear in the output.
24706 \begin_layout Description
24707 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24708 ent, when you export the document to LaTeX via the menu
24710 File\SpecialChar \menuseparator
24711 Export\SpecialChar \menuseparator
24712 LaTeX (pdflatex) / (plain)
24715 Its note-box looks like this:
24716 \begin_inset Newline newline
24720 \begin_inset Newline newline
24724 \begin_inset Graphics
24725 filename clipart/CommentNoteImageQt4.png
24728 scaleBeforeRotation
24733 \begin_inset Note Comment
24736 \begin_layout Plain Layout
24737 This is text in a note box that only appears as comment in LaTeX-files.
24745 \begin_layout Description
24747 \begin_inset space ~
24750 Out This note will appear in the output as grey text.
24751 Its note-box looks like this:
24752 \begin_inset Newline newline
24756 \begin_inset Newline newline
24760 \begin_inset Graphics
24761 filename clipart/GreyedOutNoteImageQt4.png
24764 scaleBeforeRotation
24769 \begin_inset Newline newline
24776 \begin_layout Plain Layout
24780 renewenvironment{lyxgreyedout}
24783 \begin_layout Plain Layout
24787 textcolor[gray]{0.8}
24797 \begin_inset Note Greyedout
24800 \begin_layout Plain Layout
24805 \begin_layout Plain Layout
24806 This is an example footnote within a greyed out note.
24811 of a comment that appears in the output as grey text.
24820 \begin_layout Plain Layout
24824 renewenvironment{lyxgreyedout}
24827 \begin_layout Plain Layout
24841 \begin_inset Note Note
24844 \begin_layout Plain Layout
24845 The greyed out note is here redefined to show it with the original LyX definitio
24846 n because greyed out notes are redefined in the preamble of this document,
24847 as described below, to have blue text.
24853 \begin_inset Newline newline
24857 \begin_inset Newline newline
24860 As you can see in the example, the first line of greyed out notes is a bit
24861 indented and greyed out notes can have footnotes.
24864 \begin_layout Standard
24865 \begin_inset VSpace bigskip
24868 When you use the toolbar button
24869 \begin_inset Graphics
24870 filename ../images/note-insert.png
24872 scaleBeforeRotation
24879 \begin_inset space ~
24885 You can switch between the five note types by right-clicking on the note-box.
24890 If you want to turn existing text into a note, mark it and click on the
24904 To change a note to text, press the backspace key when the cursor is in
24905 the first position of a note, or press the delete key when the cursor is
24906 in the very last position of the note, respectively.
24909 \begin_layout Standard
24910 \begin_inset VSpace bigskip
24913 You can change the text color of the greyed out notes in the preamble with
24914 the following command:
24917 \begin_layout Standard
24922 renewenvironment{lyxgreyedout}
24923 \begin_inset Newline newline
24927 \begin_inset Phantom HPhantom
24930 \begin_layout Plain Layout
24933 \begin_inset space ~
24950 \begin_layout Standard
24951 The available colors and the method to define colors is explained in section
24952 \begin_inset space ~
24956 \begin_inset CommandInset ref
24958 reference "sec:Colored-Tables"
24965 \begin_layout Standard
24966 Notes that appear in blue in this document are set using greyed out notes
24970 \begin_layout Section
24972 \begin_inset CommandInset label
24974 name "sec:Footnotes"
24979 \begin_inset Index idx
24982 \begin_layout Plain Layout
24989 \begin_inset Index idx
24992 \begin_layout Plain Layout
25001 \begin_layout Standard
25002 Footnotes can be inserted using the toolbar button
25003 \begin_inset Graphics
25004 filename ../images/footnote-insert.png
25006 scaleBeforeRotation
25012 Insert\SpecialChar \menuseparator
25024 then the following footnote-box:
25025 \begin_inset Graphics
25026 filename clipart/footnoteQt4.png
25028 scaleBeforeRotation
25036 where you can enter the footnote text.
25037 If you want to turn existing text into a footnote, mark it and click on
25059 to text, press the Backspace key when the cursor is in the first position
25068 , or press the Delete key when the cursor is in the very last position of
25080 \begin_layout Standard
25081 Here is an example footnote:
25089 \begin_layout Plain Layout
25090 \begin_inset CommandInset label
25092 name "foot:This-is-an"
25096 This is an example footnote.
25109 \begin_layout Plain Layout
25113 newcounter{MyRepeatFoot}
25116 \begin_layout Plain Layout
25120 setcounter{MyRepeatFoot}{
25130 \begin_layout Standard
25131 The footnote will appear in the output as a superscript number at the text
25132 position where the footnote box is placed.
25133 The footnote text is placed at the bottom of the current page.
25134 The footnote number is calculated by LaTeX; the numbers are consecutive.
25135 It depends on your document-class, whether the footnote number is reset
25139 \begin_layout Standard
25140 Footnotes can be referenced like floats: Insert a label into the footnote
25141 and cross-reference this label in the text as described in section
25142 \begin_inset space ~
25146 \begin_inset CommandInset ref
25148 reference "sec:Referencing-Floats"
25153 \begin_inset Newline newline
25156 This is a cross-reference of Footnote
25157 \begin_inset space ~
25161 \begin_inset CommandInset ref
25163 reference "foot:This-is-an"
25170 \begin_layout Standard
25171 \begin_inset VSpace defskip
25174 Footnotes in tables are not printed by LaTeX due to technical reasons.
25175 However there exists another method to print them: Instead of the footnote
25182 is inserted as TeX-code.
25183 The text of the footnote is entered as an argument of the TeX-code command
25191 \begin_inset Newline newline
25194 This was done for the following table with the command
25197 \begin_layout Standard
25204 Printed table footnote.
25209 \begin_layout Standard
25210 \begin_inset Tabular
25211 <lyxtabular version="3" rows="2" columns="1">
25212 <features tabularvalignment="middle">
25213 <column alignment="center" valignment="top" width="0">
25215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25218 \begin_layout Plain Layout
25219 This an example text.
25223 \begin_layout Plain Layout
25224 This footnote will not be printed!
25236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25239 \begin_layout Plain Layout
25240 This an example text.
25244 \begin_layout Plain Layout
25267 \begin_layout Plain Layout
25276 Printed table footnote.
25280 \begin_layout Plain Layout
25290 \begin_layout Standard
25291 Footnotes in longtables are described in section
25292 \begin_inset space ~
25296 \begin_inset CommandInset ref
25298 reference "sub:Footnotes-in-Longtables"
25305 \begin_layout Standard
25306 Footnotes in minipage boxes are printed, but inside the box and with a different
25307 numbering because a minipage box is like a page inside a page.
25308 (For more about minipages, see section
25309 \begin_inset space ~
25313 \begin_inset CommandInset ref
25315 reference "sec:Minipages"
25319 .) To get a footnote in the minipage that is output at the bottom of the
25320 page like normal footnotes, also use the method of
25335 \begin_layout Standard
25336 \begin_inset Box Frameless
25346 height_special "totalheight"
25349 \begin_layout Plain Layout
25350 This an example text in a minipage.
25354 \begin_layout Plain Layout
25355 Footnote in the minipage.
25363 \begin_layout Plain Layout
25364 This an example text in a minipage.
25368 \begin_layout Plain Layout
25385 \begin_layout Standard
25389 \begin_layout Plain Layout
25398 Footnote outside the minipage.
25402 \begin_layout Plain Layout
25412 \begin_layout Standard
25413 \begin_inset VSpace defskip
25419 \begin_layout Standard
25420 To refer to the same footnote several times without printing the footnote
25421 text every time, use the command
25425 footnotemark[number]
25428 \begin_inset Newline newline
25431 As you do not know the number of the repeating footnote while you are writing
25432 the text, you have to store its number.
25433 For the following footnote mark example, these commands were inserted in
25434 TeX-code after Footnote
25435 \begin_inset space ~
25439 \begin_inset CommandInset ref
25441 reference "foot:This-is-an"
25445 to store the footnote number:
25448 \begin_layout Standard
25453 newcounter{MyRepeatFoot}
25454 \begin_inset Newline newline
25459 setcounter{MyRepeatFoot}{
25464 \begin_layout Standard
25465 The footnote mark was then created with this command:
25468 \begin_layout Standard
25478 \begin_layout Standard
25479 Here is a repeated footnote:
25487 \begin_layout Plain Layout
25501 \begin_layout Standard
25502 If you want to repeat the previous footnote, you can omit the storage of
25503 the footnote number and just use this command instead:
25506 \begin_layout Standard
25516 \begin_layout Standard
25517 Here is another repeated footnote:
25525 \begin_layout Plain Layout
25539 \begin_layout Subsection
25541 \begin_inset CommandInset label
25543 name "sub:Footnote-Numbering"
25548 \begin_inset Index idx
25551 \begin_layout Plain Layout
25552 Footnotes ! Numbering
25560 \begin_layout Standard
25561 To reset the footnote number back to 1 after each section
25563 , add this command to your document preamble:
25566 \begin_layout Standard
25571 @addtoreset{footnote}{section}
25574 \begin_layout Standard
25575 \begin_inset VSpace bigskip
25578 The following preamble command changes the footnote numbering style to small
25582 \begin_layout Standard
25594 \begin_layout Standard
25598 \begin_layout Plain Layout
25611 This is a footnote with roman numbering:
25615 \begin_layout Plain Layout
25616 This is an example footnote with roman numbering.
25624 \begin_layout Standard
25625 To change the numbering style to capital roman numerals replace in the command
25640 \begin_inset Quotes eld
25644 \begin_inset Quotes erd
25647 footnotes with capital or small Latin letters use
25661 \begin_inset Quotes eld
25665 \begin_inset Quotes erd
25668 footnotes with symbols use
25677 \begin_layout Standard
25678 \begin_inset Note Greyedout
25681 \begin_layout Plain Layout
25686 You can only number 26 footnotes with Latin letters, because this numbering
25687 is limited to single letters.
25693 \begin_inset Newline newline
25697 \begin_inset Note Greyedout
25700 \begin_layout Plain Layout
25705 You can only number 9 footnotes with symbols.
25713 \begin_layout Standard
25714 To return to the default numbering style after you have changed to another
25727 in the command above.
25731 \begin_layout Plain Layout
25747 \begin_layout Standard
25748 \begin_inset VSpace bigskip
25754 \begin_layout Standard
25755 If you want to have footnotes numbered in the scheme
25756 \begin_inset Quotes eld
25760 \begin_inset Quotes erd
25763 , add the following command to your document preamble:
25766 \begin_layout Standard
25771 numberwithin{footnote}{chapter}
25774 \begin_layout Standard
25775 To be able to use the command
25784 \begin_inset space ~
25789 in the document settings the option
25792 \begin_inset space ~
25796 \begin_inset space ~
25800 \begin_inset space ~
25808 \begin_layout Standard
25812 \begin_layout Plain Layout
25816 numberwithin{footnote}{chapter}
25821 This is another example footnote:
25827 \begin_layout Plain Layout
25828 This is a footnote numbered in the scheme
25829 \begin_inset Quotes eld
25833 \begin_inset Quotes erd
25847 \begin_layout Plain Layout
25863 \begin_layout Standard
25864 \begin_inset Note Greyedout
25867 \begin_layout Plain Layout
25878 always prints out the footnote number as arabic number; previous redefinitions
25879 to get non-arabic numbers are overwritten.
25887 \begin_layout Standard
25888 So to get for example the scheme
25889 \begin_inset Quotes eld
25895 \begin_inset Quotes erd
25898 , use this command instead of
25907 \begin_layout Standard
25921 \begin_layout Subsection
25923 \begin_inset Index idx
25926 \begin_layout Plain Layout
25927 Footnotes ! Placement
25935 \begin_layout Standard
25936 If you have several footnotes in one page, they appear without vertical
25937 space between them at the bottom of the page.
25938 To make them more readable you can e.
25939 \begin_inset space \thinspace{}
25943 \begin_inset space \space{}
25947 \begin_inset space \thinspace{}
25950 mm space with the following preamble command:
25953 \begin_layout Standard
25963 \begin_inset Newline newline
25977 \begin_layout Standard
25978 \begin_inset VSpace bigskip
25981 In a two-column document the footnotes appear at the bottom of every column,
25983 \begin_inset space ~
25987 \begin_inset CommandInset ref
25989 reference "fig:Standard-footnote-placement"
25994 If the footnotes should only appear at the bottom of the right column,
25996 \begin_inset space ~
26000 \begin_inset CommandInset ref
26002 reference "fig:Footnote-placement-in"
26006 , use the LaTeX-package
26011 \begin_inset Index idx
26014 \begin_layout Plain Layout
26015 LaTeX-packages ! ftnright
26020 with this command in the document preamble:
26023 \begin_layout Standard
26028 usepackage{ftnright}
26031 \begin_layout Standard
26032 \begin_inset Float figure
26038 \begin_layout Plain Layout
26042 \begin_layout Plain Layout
26052 \begin_inset Graphics
26053 filename clipart/without_fntright.pdf
26055 scaleBeforeRotation
26063 \begin_layout Plain Layout
26073 \begin_layout Plain Layout
26074 \begin_inset Caption
26076 \begin_layout Plain Layout
26077 \begin_inset CommandInset label
26079 name "fig:Standard-footnote-placement"
26083 Standard footnote placement in two-column documents.
26096 \begin_layout Standard
26097 \begin_inset Float figure
26103 \begin_layout Plain Layout
26107 \begin_layout Plain Layout
26117 \begin_inset Graphics
26118 filename clipart/with_fntright.pdf
26120 scaleBeforeRotation
26128 \begin_layout Plain Layout
26138 \begin_layout Plain Layout
26139 \begin_inset Caption
26141 \begin_layout Plain Layout
26142 \begin_inset CommandInset label
26144 name "fig:Footnote-placement-in"
26148 Footnote placement in two-column documents when the LaTeX-package
26165 \begin_layout Standard
26166 \begin_inset VSpace bigskip
26169 In some scientific literature it is usual to collect the footnotes and print
26170 them in a separate paragraph at the end of a section, as in Figure
26171 \begin_inset space ~
26175 \begin_inset CommandInset ref
26177 reference "fig:Endnotes"
26182 They are then called
26183 \begin_inset Quotes eld
26187 \begin_inset Quotes erd
26191 \begin_inset Index idx
26194 \begin_layout Plain Layout
26200 To use endnotes instead of footnotes in your document, load in the menu
26203 Document\SpecialChar \menuseparator
26204 Settings\SpecialChar \menuseparator
26210 \begin_inset space ~
26214 \begin_inset space ~
26220 To insert the collected footnotes, insert the command
26223 \begin_layout Standard
26231 \begin_layout Standard
26232 in TeX-Code at the end of a section or chapter.
26235 \begin_layout Standard
26236 \begin_inset Float figure
26241 \begin_layout Plain Layout
26246 \begin_layout Plain Layout
26256 \begin_inset Graphics
26257 filename clipart/endnotes.pdf
26258 scaleBeforeRotation
26266 \begin_layout Plain Layout
26276 \begin_layout Plain Layout
26277 \begin_inset Caption
26279 \begin_layout Plain Layout
26280 \begin_inset CommandInset label
26282 name "fig:Endnotes"
26286 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26300 \begin_layout Standard
26301 \begin_inset VSpace medskip
26304 The paragraph heading for the endnotes isn't automatically translated into
26305 the document language, this must be done manually.
26306 The following preamble command translates the default English
26307 \begin_inset Quotes eld
26311 \begin_inset Quotes erd
26315 \begin_inset Quotes eld
26319 \begin_inset Quotes erd
26325 \begin_layout Standard
26332 notesname}{Anmerkungen}
26335 \begin_layout Standard
26336 \begin_inset VSpace medskip
26339 The numbering of endnotes can be changed like the footnote numbering as
26340 described in section
26341 \begin_inset space ~
26345 \begin_inset CommandInset ref
26347 reference "sub:Footnote-Numbering"
26351 ; just replace the command
26364 To reset the endnote number use the command
26370 as described in section
26371 \begin_inset space ~
26375 \begin_inset CommandInset ref
26377 reference "sub:Footnote-Numbering"
26381 and replace the command parameter
26392 \begin_layout Standard
26393 For endnotes there is the command
26397 endnotemark[number]
26399 similar to the command
26405 , that is described in section
26406 \begin_inset space ~
26410 \begin_inset CommandInset ref
26412 reference "sec:Footnotes"
26419 \begin_layout Standard
26420 \begin_inset VSpace bigskip
26423 Footnotes can also be placed in the page margin and the footnote text alignment
26424 can be changed, see the LaTeX-package
26429 \begin_inset Index idx
26432 \begin_layout Plain Layout
26433 LaTeX-packages ! footmisc
26439 \begin_inset CommandInset citation
26445 for more information about this.
26448 \begin_layout Standard
26449 For various further footnote formatting issues have a look at LaTeX-books,
26451 \begin_inset CommandInset citation
26453 key "latexcompanion,latexguide,latexbook"
26460 \begin_layout Section
26462 \begin_inset Index idx
26465 \begin_layout Plain Layout
26466 Notes ! Margin Notes
26474 \begin_layout Standard
26475 Margin notes look and behave in LyX like footnotes.
26476 They are inserted via the menu
26478 Insert\SpecialChar \menuseparator
26480 \begin_inset space ~
26485 or the toolbar button
26486 \begin_inset Graphics
26487 filename ../images/marginalnote-insert.png
26489 scaleBeforeRotation
26504 \begin_inset Quotes eld
26508 \begin_inset Quotes erd
26511 appears where you can enter the text of the margin note.
26514 \begin_layout Standard
26515 At the side is an example margin note.
26520 \begin_inset Marginal
26523 \begin_layout Plain Layout
26524 This is a margin note.
26532 \begin_layout Standard
26533 Margin notes appear at the right side in single-sided documents.
26534 In double-sided documents they appear in the outer margin – left on even
26535 pages, right on odd pages.
26536 The text of margin notes is aligned opposite to the outer margin – right-aligne
26537 d when the note appears in the left margin.
26538 The first line of the margin note is placed at the position of the text
26539 line where it is inserted in the document.
26542 \begin_layout Standard
26543 \begin_inset VSpace bigskip
26546 To place the margin note in the inner margin, add the command
26549 \begin_layout Standard
26557 \begin_layout Standard
26558 in TeX-Code before a margin note.
26559 The new placement is valid for all subsequent margin notes.
26564 \begin_layout Plain Layout
26574 \begin_inset Marginal
26577 \begin_layout Plain Layout
26578 This is a margin note in the inner margin.
26586 \begin_inset Newline newline
26592 \begin_inset Note Greyedout
26595 \begin_layout Plain Layout
26600 There is often not enough space in the inner margin so that the notes are
26601 not correctly displayed in the output.
26609 \begin_layout Standard
26610 To return to the default placement insert the command
26613 \begin_layout Standard
26621 \begin_layout Standard
26626 \begin_layout Plain Layout
26636 \begin_inset Note Greyedout
26639 \begin_layout Plain Layout
26644 The command is ignored when it is within a paragraph where also the command
26659 \begin_layout Standard
26660 \begin_inset VSpace bigskip
26667 \begin_inset Marginal
26670 \begin_layout Plain Layout
26671 AVeryLongMarginParWord that isn't hyphenated.
26679 Similar to the case described in section
26680 \begin_inset space ~
26684 \begin_inset CommandInset ref
26686 reference "sub:Multiple-Lines-in"
26690 , long words cannot be hyphenated when they are the first word in a margin
26692 To avoid this, insert 0
26693 \begin_inset space \thinspace{}
26696 pt horizontal space before the word
26701 \begin_inset Marginal
26704 \begin_layout Plain Layout
26705 \begin_inset space \hspace*{}
26709 AVeryLongMarginParWord that is hyphenated.
26717 \begin_layout Standard
26718 \begin_inset VSpace bigskip
26724 \begin_layout Standard
26725 \begin_inset Note Greyedout
26728 \begin_layout Plain Layout
26733 Margin notes can normally not be used inside tables, floats, and footnotes.
26741 \begin_layout Standard
26742 \begin_inset VSpace bigskip
26748 \begin_layout Standard
26752 \begin_layout Plain Layout
26762 \begin_inset Note Note
26765 \begin_layout Plain Layout
26766 The following section will only be displayed when the LaTeX-package
26778 \begin_layout Standard
26779 This restriction can be evaded by using the LaTeX-package
26784 \begin_inset Index idx
26787 \begin_layout Plain Layout
26788 LaTeX-packages ! marginnote
26794 By adding these two lines to your document preamble, the command used by
26795 LyX for margin notes is redefined to use the command provided by the
26802 \begin_layout Standard
26807 usepackage{marginnote}
26808 \begin_inset Newline newline
26820 \begin_layout Standard
26821 This is also used in this document because
26825 has another useful feature: You can set a vertical offset for the note.
26826 This is often needed when too many margin notes are too close together
26827 or for a better page layout.
26828 The offset is set in LyX as TeX-Code directly after the margin note in
26832 \begin_layout Standard
26838 \begin_layout Standard
26839 where the offset is a length with one of the units listed in Table
26840 \begin_inset space ~
26844 \begin_inset CommandInset ref
26846 reference "tab:Units"
26851 A negative value shifts the note up, a positive value shifts it down.
26855 For example the margin note beside this text line is shifted up 1.5
26856 \begin_inset space \thinspace{}
26859 cm with the TeX-Code-command
26860 \begin_inset Quotes eld
26870 \begin_inset Quotes erd
26874 \begin_inset Marginal
26877 \begin_layout Plain Layout
26878 This margin note is shifted up 1.5
26879 \begin_inset space \thinspace{}
26882 cm from its original position.
26894 \begin_layout Plain Layout
26904 \begin_layout Standard
26905 \begin_inset VSpace medskip
26912 you can also change the alignment of the text in the margin note.
26913 For example the commands
26916 \begin_layout Standard
26923 raggedleftmarginnote}{
26926 \begin_inset Newline newline
26933 raggedrightmarginnote}{
26938 \begin_layout Standard
26939 set the alignment to centered.
26944 raggedleftmarginnote
26946 denotes margin notes that appear at the left side.
26953 \begin_layout Plain Layout
26959 raggedleftmarginnote}{
26964 \begin_layout Plain Layout
26970 raggedrightmarginnote}{
26978 \begin_inset Marginal
26981 \begin_layout Plain Layout
26982 The text of this margin note is centered.
26993 \begin_layout Standard
27000 raggedleftmarginnote}{
27003 \begin_inset Newline newline
27010 raggedrightmarginnote}{
27019 \begin_layout Plain Layout
27025 raggedleftmarginnote}{
27030 \begin_layout Plain Layout
27036 raggedrightmarginnote}{
27046 \begin_layout Standard
27047 \begin_inset VSpace medskip
27050 For the other features of
27054 refer to its documentation
27055 \begin_inset CommandInset citation
27064 \begin_layout Standard
27065 \begin_inset VSpace bigskip
27068 You can adjust the layout of margin notes by changing its definition.
27069 To create for example a header for all margin notes with the underlined,
27070 sans-serif, and bold header text
27071 \begin_inset Quotes eld
27083 \begin_inset Quotes erd
27086 , add this to your document preamble:
27089 \begin_layout Standard
27099 \begin_inset Newline newline
27109 \begin_inset Newline newline
27113 \begin_inset Phantom HPhantom
27116 \begin_layout Plain Layout
27119 \begin_inset space ~
27135 underbar{Attention!}}}%
27136 \begin_inset Newline newline
27140 \begin_inset Phantom HPhantom
27143 \begin_layout Plain Layout
27146 \begin_inset space ~
27163 \begin_layout Standard
27170 \begin_layout Plain Layout
27181 \begin_layout Plain Layout
27192 \begin_layout Plain Layout
27200 underbar{Attention!}}}%
27203 \begin_layout Plain Layout
27217 \begin_inset Marginal
27220 \begin_layout Plain Layout
27221 This is a margin note with a defined heading.
27233 \begin_layout Plain Layout
27247 \begin_layout Plain Layout
27264 \begin_inset Note Note
27267 \begin_layout Plain Layout
27268 The margin note format is changed only for this example.
27276 \begin_layout Standard
27280 \begin_layout Plain Layout
27290 \begin_inset Note Note
27293 \begin_layout Plain Layout
27294 The following will be displayed when the LaTeX-package
27306 \begin_layout Standard
27307 You need to install the LaTeX-package
27311 to see the following part of this section in the output.
27314 \begin_layout Standard
27318 \begin_layout Plain Layout
27330 \begin_layout Chapter
27334 \begin_layout Section
27336 \begin_inset Index idx
27339 \begin_layout Plain Layout
27340 Boxes ! Introduction
27348 \begin_layout Standard
27349 Boxes are used to format a block of text.
27350 Boxes can be used to write documents with multiple languages, see section
27351 \begin_inset space ~
27355 \begin_inset CommandInset ref
27357 reference "sec:Minipages"
27361 , to frame texts, see section
27362 \begin_inset space ~
27366 \begin_inset CommandInset ref
27368 reference "sec:Decoration"
27372 , to prevent words from being hyphenated, see section
27373 \begin_inset space ~
27377 \begin_inset CommandInset ref
27379 reference "sec:Prevent-Hyphenation"
27383 , to align text, see section
27384 \begin_inset space ~
27388 \begin_inset CommandInset ref
27390 reference "sub:Vertical-Alignment"
27394 , or to set the background color of texts, see section
27395 \begin_inset space ~
27399 \begin_inset CommandInset ref
27401 reference "sec:Colored-Boxes"
27408 \begin_layout Standard
27409 Boxes can be inserted with the menu
27411 Insert\SpecialChar \menuseparator
27414 or the toolbar button
27415 \begin_inset Graphics
27416 filename ../images/box-insert.png
27418 scaleBeforeRotation
27423 A grey box with the label
27428 \begin_inset Graphics
27429 filename clipart/BoxInsetDefaultQt4.png
27431 scaleBeforeRotation
27436 The box type can be specified by right-clicking on the box and selecting
27442 The box dialog offers the
27445 \begin_inset space ~
27467 is the default for new boxes and is explained in section
27468 \begin_inset space ~
27472 \begin_inset CommandInset ref
27474 reference "sec:Minipages"
27482 is described in section
27483 \begin_inset space ~
27487 \begin_inset CommandInset ref
27489 reference "sec:Parboxes"
27498 \begin_inset CommandInset ref
27500 reference "sec:Prevent-Hyphenation"
27507 \begin_layout Standard
27508 Boxes are not numbered and can therefore not be referenced like floats or
27512 \begin_layout Standard
27513 \begin_inset Note Greyedout
27516 \begin_layout Plain Layout
27521 Boxes must not be the item in an
27537 \begin_layout Standard
27538 \begin_inset Note Greyedout
27541 \begin_layout Plain Layout
27546 For an unknown reason you can only set the
27549 \begin_inset space ~
27558 when you use a framed box.
27562 \begin_inset space ~
27567 type and without frames are explained in section
27568 \begin_inset space ~
27572 \begin_inset CommandInset ref
27574 reference "sec:Prevent-Hyphenation"
27586 \begin_layout Section
27588 \begin_inset CommandInset label
27590 name "sec:Box-Dialog"
27595 \begin_inset Index idx
27598 \begin_layout Plain Layout
27607 \begin_layout Subsection
27609 \begin_inset Index idx
27612 \begin_layout Plain Layout
27621 \begin_layout Standard
27622 In the box dialog you can adjust the box geometry in the fields
27631 The available units for the geometry are explained in Table
27632 \begin_inset space ~
27636 \begin_inset CommandInset ref
27638 reference "tab:Units"
27647 offers the following additional sizes:
27650 \begin_layout Description
27651 Depth This is the plain text
27652 \begin_inset Quotes eld
27656 \begin_inset Quotes erd
27660 It ignores the total depth when there are multiple text lines in the box:
27661 \begin_inset Newline newline
27665 \begin_inset Newline newline
27669 \begin_inset Newline newline
27673 \begin_inset Box Boxed
27683 height_special "depth"
27686 \begin_layout Plain Layout
27688 Box height set to 1
27689 \begin_inset space \thinspace{}
27698 \begin_inset Newline newline
27702 \begin_inset Newline newline
27708 \begin_layout Description
27709 Height This is the height of the text that is inside the box.
27711 \begin_inset space \thinspace{}
27715 \begin_inset space \space{}
27718 2 for this size will set the box height to 2
27719 \begin_inset space ~
27722 times the text height:
27723 \begin_inset Box Boxed
27733 height_special "height"
27736 \begin_layout Plain Layout
27738 Box height set to 2
27739 \begin_inset space \thinspace{}
27750 \begin_layout Description
27752 \begin_inset space ~
27755 Height This is the Height
27756 \begin_inset space \thinspace{}
27760 \begin_inset space \thinspace{}
27764 \begin_inset Box Boxed
27774 height_special "totalheight"
27777 \begin_layout Plain Layout
27779 Box height set to 1
27780 \begin_inset space \thinspace{}
27784 \begin_inset space ~
27795 \begin_layout Description
27796 Width This sets the width of the box as height:
27797 \begin_inset Box Boxed
27807 height_special "width"
27810 \begin_layout Plain Layout
27812 Box height set to 1
27813 \begin_inset space \thinspace{}
27824 \begin_layout Subsection
27826 \begin_inset Index idx
27829 \begin_layout Plain Layout
27838 \begin_layout Standard
27839 When you have chosen an
27842 \begin_inset space ~
27847 , the vertical box alignment can be:
27850 \begin_layout Description
27851 Top This is an example text line.
27853 \begin_inset Box Boxed
27863 height_special "totalheight"
27866 \begin_layout Plain Layout
27868 This box is top-aligned.
27873 This is an example text line.
27876 \begin_layout Description
27877 Middle This is an example text line.
27879 \begin_inset Box Boxed
27889 height_special "totalheight"
27892 \begin_layout Plain Layout
27894 This box is middle-aligned.
27899 This is an example text line.
27902 \begin_layout Description
27903 Bottom This is an example text line.
27905 \begin_inset Box Boxed
27915 height_special "totalheight"
27918 \begin_layout Plain Layout
27920 This box is bottom-aligned.
27925 This is an example text line.
27928 \begin_layout Standard
27929 \begin_inset Note Greyedout
27932 \begin_layout Plain Layout
27937 The vertical box alignment can be lost in the output when you have two
27938 boxes in a line and one has e.
27939 \begin_inset space \thinspace{}
27943 \begin_inset space \space{}
27946 a shadow and the other one not.
27954 \begin_layout Standard
27955 The horizontal box alignment can be set via LyX's paragraph dialog when
27956 you set the box into its own paragraph.
27959 \begin_layout Standard
27960 \begin_inset VSpace bigskip
27963 When you have chosen an
27966 \begin_inset space ~
27971 , the box content can be aligned vertically to:
27974 \begin_layout Description
27975 top This is an example text line.
27977 \begin_inset Box Boxed
27987 height_special "totalheight"
27990 \begin_layout Plain Layout
27992 This box text is top-aligned.
27997 This is an example text line.
28000 \begin_layout Description
28001 middle This is an example text line.
28003 \begin_inset Box Boxed
28013 height_special "totalheight"
28016 \begin_layout Plain Layout
28018 This box text is middle-aligned.
28023 This is an example text line.
28026 \begin_layout Description
28027 bottom This is an example text line.
28029 \begin_inset Box Boxed
28039 height_special "totalheight"
28042 \begin_layout Plain Layout
28044 This box text is bottom-aligned.
28049 This is an example text line.
28052 \begin_layout Description
28053 stretch This is an example text line.
28055 \begin_inset Box Boxed
28065 height_special "totalheight"
28068 \begin_layout Plain Layout
28073 \begin_layout Plain Layout
28078 \begin_layout Plain Layout
28085 This is an example text line.
28088 \begin_layout Standard
28089 To stretch the box content, it must consist of more than one paragraph.
28090 In the example above every text line is in an own paragraph.
28093 \begin_layout Standard
28094 \begin_inset VSpace bigskip
28097 To align the box content horizontally you can use LyX's paragraph dialog
28098 when you have chosen an
28101 \begin_inset space ~
28109 \begin_layout Standard
28111 \begin_inset Box Boxed
28121 height_special "totalheight"
28124 \begin_layout Plain Layout
28129 \begin_layout Plain Layout
28134 \begin_layout Plain Layout
28144 \begin_layout Standard
28145 If you have not set an
28148 \begin_inset space ~
28153 , you can align the box content horizontally in the box dialog.
28156 \begin_layout Standard
28158 \begin_inset Box Boxed
28168 height_special "totalheight"
28171 \begin_layout Plain Layout
28172 This box text is horizontally stretched.
28180 \begin_layout Subsection
28182 \begin_inset CommandInset label
28184 name "sec:Decoration"
28189 \begin_inset Index idx
28192 \begin_layout Plain Layout
28201 \begin_layout Standard
28202 The type of the box can be specified in the box dialog in the drop-down
28208 The following types are possible:
28211 \begin_layout Description
28213 \begin_inset space ~
28216 frame Nothing is drawn.
28219 \begin_layout Description
28221 \begin_inset space ~
28225 \begin_inset space ~
28228 frame This draws a rectangular frame around the box.
28229 The frame line thickness has the size of
28237 \begin_inset Box Boxed
28247 height_special "totalheight"
28250 \begin_layout Plain Layout
28260 \begin_layout Description
28262 \begin_inset space ~
28266 \begin_inset space ~
28269 thin This draws an oval frame around the box.
28270 The frame line thickness has the size 0.4
28271 \begin_inset space \thinspace{}
28276 \begin_inset Box ovalbox
28286 height_special "totalheight"
28289 \begin_layout Plain Layout
28299 \begin_layout Description
28301 \begin_inset space ~
28305 \begin_inset space ~
28308 thick This draws an oval frame around the box.
28309 The frame line thickness has the size 0.8
28310 \begin_inset space \thinspace{}
28315 \begin_inset Box Ovalbox
28325 height_special "totalheight"
28328 \begin_layout Plain Layout
28338 \begin_layout Description
28340 \begin_inset space ~
28343 shadow This draws a rectangular frame with a shadow around the box.
28344 The frame line thickness has the size of
28350 , the shadow has a width of 4
28351 \begin_inset space \thinspace{}
28356 \begin_inset Box Shadowbox
28366 height_special "totalheight"
28369 \begin_layout Plain Layout
28379 \begin_layout Description
28381 \begin_inset space ~
28384 background This draws a box with a red background.
28385 Unlike colored boxes
28389 \begin_layout Plain Layout
28391 \begin_inset space \thinspace{}
28395 \begin_inset CommandInset ref
28397 reference "sec:Colored-Boxes"
28406 , it always uses the whole column width and the box is set as its own paragraph.
28408 \begin_inset Box Shaded
28418 height_special "totalheight"
28421 \begin_layout Plain Layout
28422 Shaded background box
28430 \begin_layout Description
28432 \begin_inset space ~
28436 \begin_inset space ~
28439 frame This draws a double-line rectangular frame around the box.
28440 The line thickness of the inner frame is 0.75
28441 \begin_inset space \thinspace{}
28450 , the thickness of the outer frame is 1.5
28451 \begin_inset space \thinspace{}
28461 The distance between the lines is 1.5
28462 \begin_inset space \thinspace{}
28472 \begin_inset space \thinspace{}
28476 \begin_inset space \thinspace{}
28480 \begin_inset space \thinspace{}
28485 \begin_inset Box Doublebox
28495 height_special "totalheight"
28498 \begin_layout Plain Layout
28500 Double rectangular box
28508 \begin_layout Standard
28509 \begin_inset VSpace bigskip
28512 LyX's box label will reflect the different frame types.
28513 To be able to use all types, the LaTeX-package
28518 \begin_inset Index idx
28521 \begin_layout Plain Layout
28522 LaTeX-packages ! fancybox
28530 \begin_layout Standard
28531 \begin_inset VSpace bigskip
28534 When you use the decoration
28536 simple rectangular frame
28538 and no inner box, you can allow page breaks within a box.
28539 Note that then, unlike other framed boxes, the frame always uses the whole
28540 column width, the box is set as its own paragraph, and
28552 have no effect on this box type.
28553 The frame line thickness has the size of
28561 \begin_inset Box Framed
28571 height_special "totalheight"
28574 \begin_layout Plain Layout
28575 Allow page break box
28583 \begin_layout Section
28585 \begin_inset Index idx
28588 \begin_layout Plain Layout
28589 Boxes ! Customization
28597 \begin_layout Standard
28598 The default value for the size
28605 \begin_inset space \thinspace{}
28609 It can be changed with the following command in TeX-Code to e.
28610 \begin_inset space \thinspace{}
28614 \begin_inset space \space{}
28618 \begin_inset space \thinspace{}
28624 \begin_layout Standard
28634 \begin_layout Standard
28638 \begin_layout Plain Layout
28650 \begin_inset Box Boxed
28660 height_special "totalheight"
28663 \begin_layout Plain Layout
28665 Rectangular box with
28672 \begin_inset space \thinspace{}
28676 \begin_inset space \thinspace{}
28680 \begin_inset space \thinspace{}
28692 \begin_layout Plain Layout
28706 \begin_layout Standard
28707 \begin_inset VSpace bigskip
28710 The space between the frame and the box content is for all frame styles
28712 \begin_inset space \thinspace{}
28716 You can change it by setting the length
28723 For example the command
28726 \begin_layout Standard
28736 \begin_layout Standard
28737 sets the value to 10
28738 \begin_inset space \thinspace{}
28741 pt, as with the following box:
28744 \begin_layout Standard
28748 \begin_layout Plain Layout
28760 \begin_inset Box Boxed
28770 height_special "totalheight"
28773 \begin_layout Plain Layout
28775 Rectangular box with
28782 \begin_inset space \thinspace{}
28786 \begin_inset space \thinspace{}
28790 \begin_inset space \thinspace{}
28802 \begin_layout Plain Layout
28816 \begin_layout Standard
28817 \begin_inset VSpace bigskip
28820 The diameter of the round corners of the oval boxes can be set with the
28831 \begin_layout Standard
28839 \begin_layout Standard
28840 sets the diameter to 1
28841 \begin_inset space \thinspace{}
28848 \begin_layout Standard
28856 \begin_layout Standard
28857 sets the diameter to
28860 \begin_inset space \thinspace{}
28864 \begin_inset space \thinspace{}
28867 minimum(width and heigth of box)
28879 \begin_layout Standard
28883 \begin_layout Plain Layout
28893 \begin_inset Box Ovalbox
28903 height_special "totalheight"
28906 \begin_layout Plain Layout
28915 \begin_inset space \thinspace{}
28919 \begin_inset space \thinspace{}
28923 \begin_inset space \thinspace{}
28935 \begin_layout Plain Layout
28947 \begin_layout Standard
28948 \begin_inset VSpace bigskip
28951 The size of the shadow can be adjusted by changing the length
28959 \begin_inset space \thinspace{}
28962 pt for the following box by this command:
28965 \begin_layout Standard
28975 \begin_layout Standard
28979 \begin_layout Plain Layout
28991 \begin_inset Box Shadowbox
29001 height_special "totalheight"
29004 \begin_layout Plain Layout
29013 \begin_inset space \thinspace{}
29017 \begin_inset space \thinspace{}
29021 \begin_inset space \thinspace{}
29033 \begin_layout Plain Layout
29047 \begin_layout Standard
29048 \begin_inset VSpace bigskip
29054 \begin_layout Standard
29055 The default value for the size
29062 \begin_inset space \thinspace{}
29066 The default space between the note content and the frame is 9
29067 \begin_inset space \thinspace{}
29070 pt and can be changed with the value of
29077 For example the frame appearance of the following
29081 is set with the TeX-Code commands
29084 \begin_layout Standard
29092 \begin_inset Newline newline
29102 \begin_layout Standard
29106 \begin_layout Plain Layout
29115 \begin_layout Plain Layout
29127 \begin_inset Box Framed
29137 height_special "totalheight"
29140 \begin_layout Plain Layout
29154 \begin_layout Plain Layout
29163 \begin_layout Plain Layout
29177 \begin_layout Standard
29178 \begin_inset VSpace bigskip
29184 \begin_layout Standard
29189 boxes the default space between the box content and the box border is 3
29190 \begin_inset space \thinspace{}
29193 pt and can be changed with the value of
29200 The default background color red can either be changed locally with the
29205 definecolor{shadecolor}
29207 or globally with the menu
29209 Tools\SpecialChar \menuseparator
29210 Preferences\SpecialChar \menuseparator
29211 Colors\SpecialChar \menuseparator
29213 \begin_inset space ~
29225 command is explained in section
29226 \begin_inset space ~
29230 \begin_inset CommandInset ref
29232 reference "sec:Colored-Tables"
29240 \begin_layout Plain Layout
29247 requires the LaTeX-package
29251 in the preamble, see section
29252 \begin_inset space ~
29256 \begin_inset CommandInset ref
29258 reference "sec:Colored-Boxes"
29267 For example the appearance of the following shaded background box is set
29268 with the TeX-Code commands
29271 \begin_layout Standard
29281 \begin_inset Newline newline
29288 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29291 \begin_layout Standard
29295 \begin_layout Plain Layout
29304 \begin_layout Plain Layout
29308 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29314 \begin_inset Box Shaded
29324 height_special "totalheight"
29327 \begin_layout Plain Layout
29330 This is yellow text in a
29340 box with dark green background.
29349 \begin_layout Plain Layout
29358 \begin_layout Plain Layout
29362 definecolor{shadecolor}{rgb}{1,0,0}
29370 \begin_layout Standard
29371 \begin_inset VSpace bigskip
29374 Changed lengths and widths are valid for all boxes following the commands
29378 \begin_layout Section
29380 \begin_inset CommandInset label
29382 name "sec:Minipages"
29387 \begin_inset Index idx
29390 \begin_layout Plain Layout
29399 \begin_layout Standard
29400 Minipages are treated by LaTeX as pages within pages and can therefore for
29401 example have their own footnotes.
29404 \begin_layout Standard
29405 Minipages are useful when you write documents with different languages.
29408 \begin_layout Standard
29409 Below are two example minipages side by side.
29410 Their width is set to 45
29411 \begin_inset space \thinspace{}
29414 col% and they are separated by a horizontal fill, that was inserted via
29417 Insert\SpecialChar \menuseparator
29419 \begin_inset space ~
29422 Formatting\SpecialChar \menuseparator
29424 \begin_inset space ~
29430 \begin_inset Newpage newpage
29436 \begin_layout Standard
29437 \begin_inset Box Frameless
29447 height_special "totalheight"
29450 \begin_layout Plain Layout
29453 Dies ist ein deutscher Text.
29454 Dies ist ein deutscher Text.
29455 Dies ist ein deutscher Text.
29456 Dies ist ein deutscher Text.
29457 Dies ist ein deutscher Text.
29458 Dies ist ein deutscher Text.
29459 Dies ist ein deutscher Text.
29460 Dies ist ein deutscher Text.
29461 Dies ist ein deutscher Text.
29462 Dies ist ein deutscher Text.
29463 Dies ist ein deutscher Text.
29464 Dies ist ein deutscher Text.
29465 Dies ist ein deutscher Text
29469 \begin_layout Plain Layout
29472 Dies ist eine deutsche Fußnote.
29478 Dies ist ein deutscher Text.
29479 Dies ist ein deutscher Text.
29485 \begin_inset space \hfill{}
29489 \begin_inset Box Frameless
29499 height_special "totalheight"
29502 \begin_layout Plain Layout
29503 This is an English Text.
29504 This is an English Text.
29505 This is an English Text.
29506 This is an English Text.
29507 This is an English Text.
29508 This is an English Text.
29509 This is an English Text.
29510 This is an English Text.
29511 This is an English Text.
29512 This is an English Text.
29513 This is an English Text.
29514 This is an English Text.
29515 This is an English Text.
29516 This is an English Text.
29517 This is an English Text.
29518 This is an English Text.
29522 \begin_layout Plain Layout
29523 This is an English footnote.
29528 This is an English Text.
29537 \begin_layout Standard
29538 \begin_inset VSpace bigskip
29541 The document-wide paragraph settings are ignored within minipages.
29542 That means that there will be no space between paragraphs in minipages
29543 although you set it to e.
29544 \begin_inset space \thinspace{}
29548 \begin_inset space \space{}
29555 in the document settings.
29558 \begin_layout Standard
29559 Minipages can also be used to set a background color for text parts, see
29561 \begin_inset space ~
29565 \begin_inset CommandInset ref
29567 reference "sub:Color-for-Paragraphs"
29574 \begin_layout Standard
29575 \begin_inset Note Greyedout
29578 \begin_layout Plain Layout
29583 You cannot have floats or margin notes inside minipages but minipages can
29584 be used inside tables, floats, and other boxes.
29592 \begin_layout Section
29594 \begin_inset CommandInset label
29596 name "sec:Parboxes"
29601 \begin_inset Index idx
29604 \begin_layout Plain Layout
29613 \begin_layout Standard
29614 Parboxes are very similar to minipages with the difference that they cannot
29618 \begin_layout Standard
29620 \begin_inset Box Frameless
29630 height_special "totalheight"
29633 \begin_layout Plain Layout
29634 This a text within a parbox.
29635 This a text within a parbox.
29638 \begin_layout Plain Layout
29639 This footnote won't appear:
29643 \begin_layout Plain Layout
29644 This footnote is inside a parbox and will therefore not appear.
29657 \begin_layout Section
29658 Boxes for Words and Characters
29659 \begin_inset Index idx
29662 \begin_layout Plain Layout
29663 Boxes ! for Characters
29671 \begin_layout Subsection
29672 Prevent Hyphenation
29673 \begin_inset CommandInset label
29675 name "sec:Prevent-Hyphenation"
29680 \begin_inset Index idx
29683 \begin_layout Plain Layout
29684 Boxes ! to Prevent Hyphenation
29692 \begin_layout Standard
29693 You can use the box type
29697 to prevent words or text from being hyphenated.
29698 \begin_inset Newline newline
29701 Here is an example text:
29704 \begin_layout Standard
29705 This line is an example to show how you can prevent the hyphenation of
29706 \begin_inset Quotes eld
29710 \begin_inset Quotes erd
29716 \begin_layout Standard
29717 To prevent the hyphenation of the word
29718 \begin_inset Quotes eld
29722 \begin_inset Quotes erd
29725 , put the word into a box, set the
29728 \begin_inset space ~
29738 \begin_inset space \thinspace{}
29744 \begin_layout Standard
29745 This is the result:
29748 \begin_layout Standard
29749 This line is an example to show how you can prevent the hyphenation of
29750 \begin_inset Box Frameless
29760 height_special "totalheight"
29763 \begin_layout Plain Layout
29764 \begin_inset Quotes eld
29768 \begin_inset Quotes erd
29779 \begin_layout Standard
29780 You can alternatively set the command
29781 \begin_inset Quotes eld
29791 \begin_inset Quotes grd
29794 as TeX-Code directly before the word:
29797 \begin_layout Standard
29798 This line is an example to show how you can prevent the hyphenation of
29799 \begin_inset Quotes eld
29806 \begin_layout Plain Layout
29816 \begin_inset Quotes erd
29822 \begin_layout Standard
29823 Of course the word now protrudes over the side margin.
29824 To avoid this, add via the menu
29826 Insert\SpecialChar \menuseparator
29828 \begin_inset space ~
29831 Formatting\SpecialChar \menuseparator
29833 \begin_inset space ~
29841 arg "newline-insert newline"
29844 ) a line break before the word:
29847 \begin_layout Standard
29848 This line is an example to show how you can prevent the hyphenation of
29849 \begin_inset Newline newline
29853 \begin_inset Box Frameless
29863 height_special "totalheight"
29866 \begin_layout Plain Layout
29867 \begin_inset Quotes eld
29871 \begin_inset Quotes erd
29882 \begin_layout Subsection
29884 \begin_inset CommandInset label
29886 name "sub:Vertical-Alignment"
29891 \begin_inset Index idx
29894 \begin_layout Plain Layout
29895 Boxes ! for Vertical Alignment
29901 \begin_inset Index idx
29904 \begin_layout Plain Layout
29913 \begin_layout Standard
29914 With the help of the command
29920 you can align words, characters or other boxes vertically relative to the
29928 is used with the following scheme:
29931 \begin_layout Standard
29936 raisebox{lift}[height][depth]{box content}
29939 \begin_layout Standard
29940 The lift can be a positive value to raise the box or a negative value to
29944 \begin_layout Standard
29945 To align for example the word
29946 \begin_inset Quotes eld
29950 \begin_inset Quotes erd
29953 so that the bottom of the
29954 \begin_inset Quotes eld
29958 \begin_inset Quotes erd
29962 \begin_inset Quotes eld
29966 \begin_inset Quotes erd
29969 is at the baseline, insert the command
29972 \begin_layout Standard
29982 \begin_layout Standard
29983 in TeX-Code before the word.
29984 After the word insert a closing brace
29985 \begin_inset Quotes eld
29993 \begin_inset Quotes erd
29997 \begin_inset Newline newline
30000 This is the result:
30003 \begin_layout Standard
30004 This is a text line with the word
30008 \begin_layout Plain Layout
30020 \begin_inset Quotes eld
30024 \begin_inset Quotes erd
30031 \begin_layout Plain Layout
30041 \begin_layout Standard
30042 \begin_inset VSpace bigskip
30045 When you raise or lower characters in a line, the line distance will be
30049 \begin_layout Standard
30050 This is a text line with the word
30054 \begin_layout Plain Layout
30066 \begin_inset Quotes eld
30070 \begin_inset Quotes erd
30077 \begin_layout Plain Layout
30085 \begin_inset Newline newline
30088 This is a text line with the word
30092 \begin_layout Plain Layout
30102 \begin_inset Quotes eld
30106 \begin_inset Quotes erd
30113 \begin_layout Plain Layout
30123 \begin_layout Standard
30124 If you want to prevent this for a certain reason, set the box height to
30129 \begin_layout Standard
30139 \begin_layout Standard
30140 This is a text line with the word
30144 \begin_layout Plain Layout
30156 \begin_inset Quotes eld
30160 \begin_inset Quotes erd
30167 \begin_layout Plain Layout
30175 \begin_inset Newline newline
30178 This is a text line with the word
30182 \begin_layout Plain Layout
30186 raisebox{0.5cm}[0pt]{
30192 \begin_inset Quotes eld
30196 \begin_inset Quotes erd
30203 \begin_layout Plain Layout
30213 \begin_layout Section
30215 \begin_inset CommandInset label
30217 name "sec:Colored-Boxes"
30222 \begin_inset Index idx
30225 \begin_layout Plain Layout
30234 \begin_layout Subsection
30236 \begin_inset Index idx
30239 \begin_layout Plain Layout
30248 \begin_layout Standard
30249 To color the background of text the text must be put into a so called
30250 \begin_inset Quotes eld
30254 \begin_inset Quotes erd
30258 This requires that the LaTeX-package
30263 \begin_inset Index idx
30266 \begin_layout Plain Layout
30267 LaTeX-packages ! color
30272 is loaded in the document preamble with the command
30275 \begin_layout Standard
30280 @ifundefined{textcolor}
30281 \begin_inset Newline newline
30285 \begin_inset Phantom HPhantom
30288 \begin_layout Plain Layout
30291 \begin_inset space ~
30301 usepackage{color}}{}
30304 \begin_layout Standard
30309 will be loaded automatically by LyX when you color text.
30313 \begin_layout Plain Layout
30314 To avoid it being loaded twice the command
30328 \begin_layout Standard
30329 \begin_inset VSpace medskip
30332 Colorboxes are created with the command
30339 This will be used with the following scheme:
30342 \begin_layout Standard
30347 colorbox{color}{box content}
30350 \begin_layout Standard
30351 The box content can also be a box and colorboxes can also be within other
30355 \begin_layout Standard
30356 The following colors are predefined:
30357 \begin_inset Newline newline
30396 \begin_inset Newline newline
30399 You can also define your own color as described in section
30400 \begin_inset space ~
30404 \begin_inset CommandInset ref
30406 reference "sec:Colored-Tables"
30413 \begin_layout Standard
30415 \begin_inset space \thinspace{}
30419 \begin_inset space \space{}
30422 a red background for a word, insert the command
30425 \begin_layout Standard
30433 \begin_layout Standard
30434 before the word in TeX-Code.
30435 After the word insert a closing brace
30436 \begin_inset Quotes eld
30444 \begin_inset Quotes erd
30448 \begin_inset Newline newline
30451 This is the result:
30454 \begin_layout Standard
30455 This is a line where the word
30459 \begin_layout Plain Layout
30469 \begin_inset Quotes eld
30473 \begin_inset Quotes erd
30480 \begin_layout Plain Layout
30487 has a red background.
30490 \begin_layout Standard
30491 \begin_inset VSpace bigskip
30494 If you would like the box frame in a different color, you can use the command
30501 with the following scheme:
30504 \begin_layout Standard
30509 fcolorbox{frame color}{box color}{box content}
30512 \begin_layout Standard
30526 The frame thickness and the space between the frame and the box content
30527 can be adjusted with the lengths
30539 , respectively, as described in section
30540 \begin_inset space ~
30544 \begin_inset CommandInset ref
30546 reference "sec:Decoration"
30553 \begin_layout Standard
30554 For the following example the command
30557 \begin_layout Standard
30562 fcolorbox{cyan}{magenta}{
30565 \begin_layout Standard
30569 \begin_layout Standard
30570 Here is an example where the frame line thickness was set to 1
30571 \begin_inset space \thinspace{}
30575 \begin_inset Newline newline
30582 \begin_layout Plain Layout
30597 \begin_layout Plain Layout
30601 fcolorbox{cyan}{magenta}{
30606 This is text within a colored, framed box.
30610 \begin_layout Plain Layout
30620 \begin_layout Standard
30621 \begin_inset VSpace bigskip
30624 Of course you can also have colored text inside a colorbox:
30625 \begin_inset Newline newline
30632 \begin_layout Plain Layout
30636 fcolorbox{cyan}{magenta}{
30643 This is colored text within a colored, framed box.
30649 \begin_layout Plain Layout
30660 \begin_layout Plain Layout
30674 \begin_layout Standard
30675 \begin_inset VSpace medskip
30681 \begin_layout Standard
30682 \begin_inset Note Greyedout
30685 \begin_layout Plain Layout
30690 Text in colorboxes cannot have line breaks.
30691 To color multiple text lines or paragraphs, use a box inside a colorbox
30692 as described in the following.
30700 \begin_layout Subsection
30701 Color for Paragraphs
30702 \begin_inset CommandInset label
30704 name "sub:Color-for-Paragraphs"
30709 \begin_inset Index idx
30712 \begin_layout Plain Layout
30713 Color ! for Paragraphs
30721 \begin_layout Standard
30722 To set the background color for more than one text line, put the text into
30724 Before the minipage insert the
30733 \begin_layout Standard
30741 \begin_layout Standard
30743 After the minipage insert a closing brace
30744 \begin_inset Quotes eld
30752 \begin_inset Quotes erd
30758 \begin_layout Standard
30762 \begin_layout Plain Layout
30766 colorbox{lightgrey}{
30772 \begin_inset Box Frameless
30782 height_special "totalheight"
30785 \begin_layout Plain Layout
30786 This is text with background color.
30787 This is text with background color.
30790 \begin_layout Plain Layout
30791 \begin_inset VSpace defskip
30794 The text can have footnotes
30798 \begin_layout Plain Layout
30799 Another example footnote
30804 and can include tables and figures.
30807 \begin_layout Plain Layout
30809 \begin_inset Tabular
30810 <lyxtabular version="3" rows="3" columns="3">
30811 <features tabularvalignment="middle">
30812 <column alignment="center" valignment="top" width="0">
30813 <column alignment="center" valignment="top" width="0">
30814 <column alignment="center" valignment="top" width="0">
30816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30819 \begin_layout Plain Layout
30825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30828 \begin_layout Plain Layout
30834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30837 \begin_layout Plain Layout
30845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30848 \begin_layout Plain Layout
30854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30857 \begin_layout Plain Layout
30859 \begin_inset Quotes erd
30867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30870 \begin_layout Plain Layout
30878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30881 \begin_layout Plain Layout
30887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30890 \begin_layout Plain Layout
30896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30899 \begin_layout Plain Layout
30919 \begin_layout Plain Layout
30929 \begin_layout Section
30930 Rotated and Scaled Boxes
30933 \begin_layout Standard
30934 To use the commands described in this section, the LaTeX-package
30939 \begin_inset Index idx
30942 \begin_layout Plain Layout
30943 LaTeX-packages ! graphicx
30948 needs to be loaded in the document preamble with the command
30951 \begin_layout Standard
30956 @ifundefined{rotatebox}
30957 \begin_inset Newline newline
30961 \begin_inset Phantom HPhantom
30964 \begin_layout Plain Layout
30967 \begin_inset space ~
30977 usepackage{graphicx}}{}
30980 \begin_layout Standard
30981 \begin_inset Note Greyedout
30984 \begin_layout Plain Layout
30989 Some DVI-viewers can't display rotated or scaled material.
30997 \begin_layout Standard
30998 \begin_inset Note Greyedout
31001 \begin_layout Plain Layout
31006 Floats mustn't be inside a rotated or scaled box.
31014 \begin_layout Subsection
31016 \begin_inset Index idx
31019 \begin_layout Plain Layout
31026 \begin_inset Index idx
31029 \begin_layout Plain Layout
31036 \begin_inset Index idx
31039 \begin_layout Plain Layout
31046 \begin_inset Index idx
31049 \begin_layout Plain Layout
31050 Table Customization ! Rotating
31058 \begin_layout Standard
31059 To rotate material, you can put it into a rotated box.
31060 Such a box is created using the command
31066 in TeX-Code with the following scheme:
31069 \begin_layout Standard
31074 rotatebox[rotation origin]{rotation angle}{box content}
31077 \begin_layout Standard
31078 The rotation origin is specified in the form
31083 The following positions are possible:
31103 (top), along with meaningful combinations of the four base positions.
31108 means that the rotation origin is at the top left corner of the box.
31109 When no rotation origin is specified, the position
31114 The rotation angle is a number that can be negative that specifies the
31116 The rotation direction is counterclockwise.
31119 \begin_layout Standard
31120 In the following example the command
31124 rotatebox[origin=c]{60}{
31126 was inserted as TeX-Code before the text
31127 \begin_inset Quotes eld
31131 \begin_inset Quotes erd
31134 ; after the text the box was closed by a closing brace
31141 \begin_layout Standard
31146 \begin_layout Plain Layout
31150 rotatebox[origin=c]{60}{
31159 \begin_layout Plain Layout
31169 \begin_layout Standard
31170 The box content can also be another box or an inline formula:
31173 \begin_layout Standard
31178 \begin_layout Plain Layout
31182 rotatebox[origin=r]{-60}{
31188 \begin_inset Box Doublebox
31198 height_special "totalheight"
31201 \begin_layout Plain Layout
31211 \begin_layout Plain Layout
31222 \begin_layout Plain Layout
31226 rotatebox[origin=lb]{60}{
31232 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31239 \begin_layout Plain Layout
31249 \begin_layout Standard
31250 or an image or table:
31253 \begin_layout Standard
31258 \begin_layout Plain Layout
31262 rotatebox[origin=lb]{90}{
31268 \begin_inset Graphics
31269 filename clipart/platypus.eps
31279 \begin_layout Plain Layout
31286 with a rotated image
31290 \begin_layout Plain Layout
31294 rotatebox[origin=l]{-90}{
31300 \begin_inset Tabular
31301 <lyxtabular version="3" rows="2" columns="2">
31302 <features tabularvalignment="middle">
31303 <column alignment="center" valignment="top" width="0">
31304 <column alignment="center" valignment="top" width="0">
31306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31309 \begin_layout Plain Layout
31315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31318 \begin_layout Plain Layout
31326 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31329 \begin_layout Plain Layout
31335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31338 \begin_layout Plain Layout
31353 \begin_layout Plain Layout
31363 \begin_layout Subsection
31365 \begin_inset Index idx
31368 \begin_layout Plain Layout
31375 \begin_inset Index idx
31378 \begin_layout Plain Layout
31385 \begin_inset Index idx
31388 \begin_layout Plain Layout
31395 \begin_inset Index idx
31398 \begin_layout Plain Layout
31399 Table Customization ! Scaling
31407 \begin_layout Standard
31408 To scale material the commands
31420 can be used as TeX-Code.
31423 \begin_layout Standard
31430 is used with the following scheme:
31433 \begin_layout Standard
31438 scalebox{horizontal}[vertical]{box content}
31441 \begin_layout Standard
31442 Horizontal and vertical are the corresponding scaling factors.
31443 If no vertical scaling factor is given, the horizontal factor will also
31444 be used as the vertical one.
31447 \begin_layout Standard
31454 creates for example a double size
31458 \begin_layout Plain Layout
31471 \begin_layout Plain Layout
31478 , compared with the document text size.
31481 \begin_layout Standard
31486 scalebox{2}[1]{Hello}
31488 on the other hand distorts the
31492 \begin_layout Plain Layout
31505 \begin_layout Plain Layout
31515 \begin_layout Standard
31516 If the scaling factor is negative, the box content will be mirrored.
31517 Therefore the command
31521 scalebox{-1}[1]{Hello}
31523 can be used to create mirror writing:
31527 \begin_layout Plain Layout
31540 \begin_layout Plain Layout
31550 \begin_layout Standard
31555 scalebox{1}[-1]{Hello}
31561 \begin_layout Plain Layout
31574 \begin_layout Plain Layout
31584 \begin_layout Standard
31589 scalebox{-1}[1]{box content}
31591 there exists the command
31592 \begin_inset Newline newline
31599 reflectbox{box content}
31604 \begin_layout Standard
31605 \begin_inset VSpace bigskip
31614 is used to scale the box to a defined width and height.
31615 The command scheme is:
31618 \begin_layout Standard
31623 resizebox{width}{height}{box content}
31626 \begin_layout Standard
31627 If one of the two command arguments given is an exclamation mark
31631 , the size is set so that the aspect ratio of the box content is kept.
31634 \begin_layout Standard
31639 resizebox{2cm}{1cm}{Hello}
31645 \begin_layout Plain Layout
31649 resizebox{2cm}{1cm}{
31658 \begin_layout Plain Layout
31666 \begin_inset Newline newline
31673 resizebox{2cm}{!}{Hello}
31679 \begin_layout Plain Layout
31692 \begin_layout Plain Layout
31702 \begin_layout Standard
31703 \begin_inset VSpace bigskip
31707 \begin_inset Note Greyedout
31710 \begin_layout Plain Layout
31727 are set to zero, no LaTeX-errors occur when exporting the document but
31728 the exported files can not or only partly be displayed.
31736 \begin_layout Standard
31737 \begin_inset VSpace bigskip
31743 \begin_layout Standard
31744 The boxes can be combined in any order.
31746 \begin_inset space \thinspace{}
31750 \begin_inset space \space{}
31754 \begin_inset Newline newline
31761 rotatebox[origin=c]{-45}{
31765 reflectbox{Hello}}}
31766 \begin_inset Newline newline
31774 \begin_layout Standard
31779 \begin_layout Plain Layout
31783 rotatebox[origin=c]{-45}{
31796 \begin_layout Plain Layout
31806 \begin_layout Standard
31808 Images, tables, and inline formulas are allowed as box content:
31811 \begin_layout Standard
31816 \begin_layout Plain Layout
31820 rotatebox[origin=c]{-30}{
31830 \begin_inset Graphics
31831 filename clipart/platypus.eps
31841 \begin_layout Plain Layout
31852 \begin_layout Plain Layout
31856 rotatebox[origin=c]{-45}{
31866 \begin_inset Tabular
31867 <lyxtabular version="3" rows="2" columns="2">
31868 <features tabularvalignment="middle">
31869 <column alignment="center" valignment="top" width="0">
31870 <column alignment="center" valignment="top" width="0">
31872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31875 \begin_layout Plain Layout
31881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31884 \begin_layout Plain Layout
31892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31895 \begin_layout Plain Layout
31901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31904 \begin_layout Plain Layout
31919 \begin_layout Plain Layout
31930 \begin_layout Plain Layout
31934 rotatebox[origin=c]{-45}{
31944 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31951 \begin_layout Plain Layout
31961 \begin_layout Standard
31962 When the global formula style
31966 is used in the document
31970 \begin_layout Plain Layout
31972 \begin_inset Quotes eld
31976 \begin_inset Quotes erd
31979 is added to the document class options.
31984 , display style formulas can also be scaled.
31987 \begin_layout Chapter
31988 External Document Parts
31989 \begin_inset Index idx
31992 \begin_layout Plain Layout
31993 External Document Parts
32001 \begin_layout Standard
32004 Insert\SpecialChar \menuseparator
32007 you can insert external material to your document.
32011 \begin_layout Description
32013 \begin_inset space ~
32016 Document Another LyX document; its content is directly inserted to your
32020 \begin_layout Description
32022 \begin_inset space ~
32025 Text A text document; each line is inserted in your document as a separate
32029 \begin_layout Description
32031 \begin_inset space ~
32035 \begin_inset space ~
32039 \begin_inset space ~
32042 Lines A text document; text lines are inserted in your document continuously
32043 but an empty text line creates a new paragraph.
32046 \begin_layout Description
32048 \begin_inset space ~
32051 Material Files in various formats.
32054 \begin_layout Description
32056 \begin_inset space ~
32059 Document LyX or LaTeX-documents.
32062 \begin_layout Section
32064 \begin_inset Index idx
32067 \begin_layout Plain Layout
32068 External Document Parts ! External Material
32076 \begin_layout Standard
32077 The external material feature allows you to insert files in to your document
32078 without converting them to a format that can be read by the document output
32080 LyX takes care of the necessary conversions.
32081 This is similar to images that can be inserted in various image formats
32083 When you have enabled Instant Preview in LyX's preferences under
32086 \begin_inset space ~
32090 \begin_inset space ~
32093 feel\SpecialChar \menuseparator
32096 , the external material types Dia and Xfig are directly shown in LyX.
32099 \begin_layout Standard
32100 External material can be inserted via the
32104 dialog that is accessible with the menu
32106 Insert\SpecialChar \menuseparator
32107 File\SpecialChar \menuseparator
32109 \begin_inset space ~
32115 Currently the following file types (
32122 \begin_layout Description
32123 ChessDiagram This template supports chess position diagrams made with the
32127 \begin_inset CommandInset href
32130 target "http://en.wikipedia.org/wiki/XBoard"
32139 \begin_layout Description
32140 Date This inserts the date in the form
32145 This is a date inserted as external material:
32146 \begin_inset External
32153 \begin_inset space ~
32157 \begin_inset Note Note
32160 \begin_layout Plain Layout
32161 Remove the protected space when bug 4398 is fixed!
32167 \begin_inset Newline newline
32170 The date is not shown within LyX, only in the output.
32171 There are two other methods of inserting a date: Via menu
32173 Insert\SpecialChar \menuseparator
32176 and with the LaTeX command
32183 The different methods are compared in Table
32184 \begin_inset space ~
32188 \begin_inset CommandInset ref
32190 reference "tab:Comparison-of-the"
32197 \begin_layout Description
32198 Dia This template supports diagrams created with the program
32201 \begin_inset CommandInset href
32204 target "http://en.wikipedia.org/wiki/Dia_(software)"
32213 \begin_layout Description
32214 LilyPond This template is used for music notation typeset with the program
32215 \begin_inset Newline linebreak
32221 \begin_inset CommandInset href
32224 target "http://en.wikipedia.org/wiki/LilyPond"
32233 \begin_layout Description
32234 PDFPages With this template you can insert PDF documents to your document.
32235 To insert certain or all pages of a PDF, use the
32245 LaTeX and LyX options
32247 tab according to the template description in the dialog.
32252 option is given, only the first page of the PDF will be inserted.
32255 \begin_layout Description
32256 RasterImage This can be used for bitmap images.
32257 Nearly all popular image formats are supported.
32258 The image can be treated in the
32262 dialog like the images that are usually included via the
32266 dialog as described in section
32267 \begin_inset space ~
32271 \begin_inset CommandInset ref
32273 reference "sec:Graphics-Dialog"
32278 The difference is that only raster images are allowed; that means that
32279 PDF and EPS-images are not supported.
32282 \begin_layout Description
32283 XFig This template supports images created with the program
32286 \begin_inset CommandInset href
32289 target "http://en.wikipedia.org/wiki/Xfig"
32298 \begin_layout Standard
32299 \begin_inset Float table
32305 \begin_layout Plain Layout
32306 \begin_inset Caption
32308 \begin_layout Plain Layout
32309 \begin_inset CommandInset label
32311 name "tab:Comparison-of-the"
32315 Comparison of the date input methods.
32323 \begin_layout Plain Layout
32325 \begin_inset Tabular
32326 <lyxtabular version="3" rows="4" columns="4">
32327 <features tabularvalignment="middle">
32328 <column alignment="center" valignment="top" width="0">
32329 <column alignment="center" valignment="top" width="0">
32330 <column alignment="center" valignment="top" width="0">
32331 <column alignment="center" valignment="top" width="0">
32333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32336 \begin_layout Plain Layout
32342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32345 \begin_layout Plain Layout
32348 External Material\SpecialChar \menuseparator
32354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32357 \begin_layout Plain Layout
32360 Insert\SpecialChar \menuseparator
32366 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32369 \begin_layout Plain Layout
32381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32384 \begin_layout Plain Layout
32390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32393 \begin_layout Plain Layout
32399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32402 \begin_layout Plain Layout
32408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32411 \begin_layout Plain Layout
32412 as TeX-Code inset box
32419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32422 \begin_layout Plain Layout
32428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32431 \begin_layout Plain Layout
32437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32440 \begin_layout Plain Layout
32446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32449 \begin_layout Plain Layout
32457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32460 \begin_layout Plain Layout
32466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32469 \begin_layout Plain Layout
32475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32478 \begin_layout Plain Layout
32484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32487 \begin_layout Plain Layout
32506 \begin_layout Standard
32507 When you use the option
32519 dialog, only the path to the inserted file is shown in the output.
32520 \begin_inset Newline newline
32523 External material is displayed in LyX either as a box like this:
32524 \begin_inset Graphics
32525 filename clipart/ExternalMaterialQt4.png
32527 scaleBeforeRotation
32531 or as image, depending on the option
32537 LaTeX and LyX options
32542 \begin_layout Standard
32549 manual explains how you can define your own templates.
32552 \begin_layout Section
32554 \begin_inset CommandInset label
32556 name "sec:Child-Documents"
32561 \begin_inset Index idx
32564 \begin_layout Plain Layout
32565 External Document Parts ! Child Documents
32571 \begin_inset Index idx
32574 \begin_layout Plain Layout
32583 \begin_layout Standard
32584 Child documents are used if you have a long document consisting of several
32585 larger parts or sections.
32586 For maintenance it is often useful and sometimes even required to split
32587 the document into several files that can be revised separately.
32588 The different documents are then the so called
32589 \begin_inset Quotes eld
32593 \begin_inset Quotes erd
32596 , and a master document connects them to print the full document or parts
32598 A child document inherits elements of its master, for example the LaTeX
32599 preamble, the bibliography, and labels for cross-references.
32602 \begin_layout Standard
32603 To be able to work on child documents without the need to open their master,
32604 specify in the child document the master in the menu
32606 Document\SpecialChar \menuseparator
32607 Settings\SpecialChar \menuseparator
32609 \begin_inset space ~
32615 This master document will then be used in the background by LyX when you
32616 edit the child document.
32619 \begin_layout Standard
32620 Included documents are displayed in LyX as a box like this:
32621 \begin_inset Graphics
32622 filename clipart/ChildDocumentQt4.png
32624 scaleBeforeRotation
32628 To include child documents in a master document use the menu
32630 Insert\SpecialChar \menuseparator
32631 File\SpecialChar \menuseparator
32633 \begin_inset space ~
32639 A dialog pops up where you can choose between four include methods:
32642 \begin_layout Description
32643 Include You can include LyX- and LaTeX-documents.
32652 dialog, the included documents will be opened in LyX in a new file tab
32653 so that you can modify them.
32654 \begin_inset Newline newline
32660 \begin_layout Standard
32661 Here is a child document inserted using
32666 \begin_inset CommandInset include
32667 LatexCommand include
32668 filename "DummyDocument1.lyx"
32675 \begin_layout Standard
32676 The section numbering includes the sections of the included files in the
32677 order they are inserted in the master document.
32678 The included example document has for example a subsection that is numbered
32679 as a subsection of this section.
32680 Labels of included documents can be referenced: Subsection
32681 \begin_inset space ~
32685 \begin_inset CommandInset ref
32687 reference "sub:External-Subsection-1"
32694 \begin_layout Standard
32695 The preamble of the child document is ignored; only the preamble of the
32696 master document is used.
32697 Branches in child documents will be ignored by the master document when
32698 the master document does not have a branch with the same name.
32699 Included documents are inserted starting on a new page and ending with
32703 \begin_layout Standard
32704 \begin_inset Note Greyedout
32707 \begin_layout Plain Layout
32712 If you have included a LyX- or LaTeX-file, you are warned when you export/view
32713 the document in case the child document uses another document class than
32714 the master document as this will lead to unexpected outputs.
32722 \begin_layout Description
32723 Input This method is very similar to the Include method.
32724 The differences are:
32728 \begin_layout Itemize
32729 Input files don't start with a new page and don't end with a page break.
32732 \begin_layout Itemize
32733 Input files can be previewed in LyX when
32736 \begin_inset space ~
32741 is enabled in LyX's preferences under
32744 \begin_inset space ~
32748 \begin_inset space ~
32751 feel\SpecialChar \menuseparator
32757 \begin_layout Itemize
32758 You cannot exclude Input files via the menu
32760 Document\SpecialChar \menuseparator
32761 Settings\SpecialChar \menuseparator
32768 \begin_layout Standard
32769 Here is a child document inserted using
32774 \begin_inset CommandInset include
32776 filename "DummyDocument2.lyx"
32783 \begin_layout Description
32784 Verbatim With this method any text file can be included.
32785 The file is shown in the output with its source code; no command used in
32786 the text is invoked.
32787 You can use the option
32789 Mark spaces in output
32791 that displays the character
32792 \begin_inset Quotes eld
32799 \begin_layout Plain Layout
32809 \begin_inset Quotes erd
32812 for every space character in the source code.
32813 The difference from the method via the menu
32815 Insert\SpecialChar \menuseparator
32816 File\SpecialChar \menuseparator
32818 \begin_inset space ~
32823 is that the document content is not shown in LyX.
32826 \begin_layout Standard
32827 Here is a child document inserted as Verbatim:
32828 \begin_inset CommandInset include
32829 LatexCommand verbatiminput
32830 filename "DummyTextDocument.txt"
32835 \begin_inset VSpace bigskip
32838 Here is a child document inserted as Verbatim using the
32840 Mark spaces in output
32843 \begin_inset CommandInset include
32844 LatexCommand verbatiminput*
32845 filename "DummyTextDocument.txt"
32852 \begin_layout Standard
32853 \begin_inset VSpace bigskip
32859 \begin_layout Standard
32860 \begin_inset Note Greyedout
32863 \begin_layout Plain Layout
32868 As you can see in the examples above, the text of the documents included
32873 is not broken at the end of the document lines.
32881 \begin_layout Description
32882 Listings This type is described in chapter
32883 \begin_inset space ~
32887 \begin_inset CommandInset ref
32889 reference "cha:Program-Code-Listings"
32896 \begin_layout Standard
32897 \begin_inset Note Greyedout
32900 \begin_layout Plain Layout
32905 Including the same document twice in a document using different methods
32906 could cause LaTeX-problems.
32914 \begin_layout Standard
32915 If you want to view/export only selected children of your master document,
32916 either because you want to save compiling time or because you want to distribut
32917 e single chapters of the book you are just writing, you can exclude children
32919 This is done via the menu
32921 Document\SpecialChar \menuseparator
32922 Settings\SpecialChar \menuseparator
32926 You can exclude\SpecialChar \slash{}
32927 include children by double-clicking on the
32931 column of the respective child document in the list (note that this only
32932 works for documents embedded via
32933 \begin_inset Quotes eld
32937 \begin_inset Quotes erd
32941 \begin_inset Quotes eld
32945 \begin_inset Quotes erd
32951 Maintain counters and references
32953 is enabled, LyX will assure that all page numbers, references etc.
32954 \begin_inset space ~
32957 are correct as if the whole document was processed.
32958 This is useful if you want the selected sub-documents to look exactly as
32959 in the context of the whole document.
32960 However, LyX needs to process the whole document in the background for
32962 So if you want to save compile time and if counters and references do not
32963 need to be correct, disable this checkbox.
32966 \begin_layout Standard
32967 Alternatively, you can put each included file into a branch.
32971 \begin_layout Plain Layout
32972 Branches are described in section
32985 By enabling\SpecialChar \slash{}
32986 disabling branches you can decide which included files will
32987 appear in the output.
32988 This has the advantage that it also works with Input'ed sub-documents.
32989 However, counters and references will not be maintained with this approach.
32992 \begin_layout Chapter
32993 Program Code Listings
32994 \begin_inset CommandInset label
32996 name "cha:Program-Code-Listings"
33001 \begin_inset Index idx
33004 \begin_layout Plain Layout
33011 \begin_inset Index idx
33014 \begin_layout Plain Layout
33021 \begin_inset Index idx
33024 \begin_layout Plain Layout
33033 \begin_layout Standard
33034 To include and typeset program code you can use the
33038 inset that can be inserted via the menu
33040 Insert\SpecialChar \menuseparator
33049 \begin_inset Index idx
33052 \begin_layout Plain Layout
33053 LaTeX-packages ! listings
33058 provides a powerful and flexible way to insert program source code into
33062 \begin_layout Standard
33063 Right-clicking on a listings inset opens the context menu containing where
33064 you can set the listings format.
33067 \begin_layout Standard
33068 By default, a listing starts a new paragraph in the output.
33069 The placement option
33072 \begin_inset space ~
33077 prints the listing inline like this:
33078 \begin_inset listings
33079 lstparams "language={C++}"
33083 \begin_layout Plain Layout
33091 \begin_inset Newline newline
33098 creates a listings float where you can specify the placement options
33099 \begin_inset Quotes eld
33107 \begin_inset Quotes erd
33111 \begin_inset Quotes eld
33119 \begin_inset Quotes erd
33123 \begin_inset Quotes eld
33131 \begin_inset Quotes erd
33135 \begin_inset Quotes eld
33143 \begin_inset Quotes erd
33146 corresponding to the float placement options described in section
33147 \begin_inset space ~
33151 \begin_inset CommandInset ref
33153 reference "sec:Float-Placement"
33158 The placement options can be mixed and are inserted without any separation,
33160 \begin_inset space \thinspace{}
33164 \begin_inset space \space{}
33168 \begin_inset Quotes eld
33176 \begin_inset Quotes erd
33181 \begin_inset Quotes eld
33185 \begin_inset Quotes erd
33188 has sometimes no effect, but you don't need to use the
33192 option in this case as also non-float listings can have captions and be
33196 \begin_layout Standard
33197 You can add captions to listings with the menu
33199 Insert\SpecialChar \menuseparator
33203 Listings can be referenced like floats: Listing
33204 \begin_inset space ~
33208 \begin_inset CommandInset ref
33210 reference "lst:Example-Listing"
33217 \begin_layout Standard
33218 \begin_inset listings
33219 lstparams "language=Python"
33223 \begin_layout Plain Layout
33225 \begin_inset Caption
33227 \begin_layout Plain Layout
33228 \begin_inset CommandInset label
33230 name "lst:Example-Listing"
33234 Example Listing float
33239 # Example listing float
33242 \begin_layout Plain Layout
33247 \begin_layout Plain Layout
33249 'this is a python function'
33252 \begin_layout Plain Layout
33262 \begin_layout Standard
33263 When you have set a programming language in the listings dialog, the keywords
33264 of this language will be recognized and specially typeset in the output.
33265 In the example listings the Python keyword
33266 \begin_inset Quotes eld
33270 \begin_inset Quotes erd
33273 is recognized and printed bold in the output.
33276 \begin_layout Standard
33277 \begin_inset Note Greyedout
33280 \begin_layout Plain Layout
33285 If you don't get bold keywords when using typewriter fonts, your
33289 font probably doesn't provide a bold shape.
33290 In this case select a different one in the menu
33292 Document\SpecialChar \menuseparator
33293 Settings\SpecialChar \menuseparator
33305 provide bold shapes.)
33313 \begin_layout Standard
33317 \begin_inset space ~
33322 of the listings dialog you can specify the line numbering style.
33323 You can insert a number to specify which lines are numbered in the field
33330 \begin_inset space \thinspace{}
33334 \begin_inset space \space{}
33338 \begin_inset Quotes eld
33342 \begin_inset Quotes erd
33345 , only every 3rd line will be numbered.
33348 \begin_layout Standard
33349 You can furthermore specify a range of lines; only these will then appear
33353 Extended character table
33355 should be used when you use national characters like the German umlauts
33357 \begin_inset Newline newline
33360 Here is an example listing with left line numbering, step
33361 \begin_inset Quotes eld
33365 \begin_inset Quotes erd
33369 \begin_inset Quotes eld
33373 \begin_inset Quotes erd
33377 \begin_inset Quotes eld
33380 Extended character table
33381 \begin_inset Quotes erd
33385 \begin_inset Quotes eld
33389 \begin_inset space ~
33393 \begin_inset space ~
33397 \begin_inset Quotes erd
33401 \begin_inset space \thinspace{}
33405 \begin_inset space \thinspace{}
33411 \begin_layout Standard
33412 \begin_inset listings
33413 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33417 \begin_layout Plain Layout
33422 \begin_layout Plain Layout
33424 'this is a python function'
33427 \begin_layout Plain Layout
33432 \begin_layout Plain Layout
33437 \begin_layout Plain Layout
33439 'This is a German word: Tschüß'
33442 \begin_layout Plain Layout
33447 \begin_layout Plain Layout
33452 \begin_layout Plain Layout
33454 'this is a python function'
33457 \begin_layout Plain Layout
33467 \begin_layout Standard
33468 When you have tabulators in your listing, you can specify the number of
33469 characters that are spanned by a tabulator in the field
33472 \begin_inset space ~
33480 \begin_layout Standard
33481 \begin_inset Note Greyedout
33484 \begin_layout Plain Layout
33489 Due to a bug in the
33493 package the line numbering is shifted by a line by every previous listing.
33494 That's the reason why the lines 2 and 5 are numbered in the above listing
33495 and not the lines 3 and 6.
33503 \begin_layout Standard
33504 \begin_inset VSpace bigskip
33510 \begin_layout Standard
33511 It is also possible to print lines from a file as listing.
33512 To do this, use the menu
33514 Insert\SpecialChar \menuseparator
33515 File\SpecialChar \menuseparator
33518 and choose the type
33526 \begin_layout Plain Layout
33527 The other child document types are described in section
33528 \begin_inset space ~
33532 \begin_inset CommandInset ref
33534 reference "sec:Child-Documents"
33543 In the child document dialog you can specify the listing parameters in
33545 To show a list of all available parameters, type in a question mark
33546 \begin_inset Quotes eld
33550 \begin_inset Quotes erd
33556 \begin_layout Standard
33557 To reference child document listings, write a label text into the corresponding
33558 field of the child document dialog.
33559 The label can then be referenced using the menu
33561 Insert\SpecialChar \menuseparator
33567 \begin_layout Standard
33569 \begin_inset space ~
33573 \begin_inset CommandInset ref
33575 reference "lst:file-listing"
33579 is an example for a listing of a file; there the lines 10
33580 \begin_inset space \thinspace{}
33584 \begin_inset space \thinspace{}
33587 15 of this LyX file are listed.
33590 \begin_layout Standard
33591 \begin_inset CommandInset include
33592 LatexCommand lstinputlisting
33593 filename "EmbeddedObjects.lyx"
33594 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33601 \begin_layout Standard
33602 \begin_inset VSpace bigskip
33608 \begin_layout Standard
33609 Inserting a formula into a listing can be done the following way:
33612 \begin_layout Enumerate
33613 Open the listings dialog and add
33614 \begin_inset Newline newline
33622 \begin_inset Newline newline
33625 to the field of the
33632 \begin_layout Enumerate
33633 Create a formula outside the listing
33636 \begin_layout Enumerate
33637 Copy the content of the formula (not the formula inset) to the clipboard
33647 \begin_layout Enumerate
33648 In the listing write
33649 \begin_inset Quotes eld
33657 \begin_inset Quotes erd
33660 and copy from the clipboard between the dollar-signs (shortcut
33669 \begin_layout Standard
33670 \begin_inset listings
33671 lstparams "language=Python,mathescape=true"
33675 \begin_layout Plain Layout
33677 \begin_inset Caption
33679 \begin_layout Plain Layout
33680 Example Listing float containing a formula
33685 # Example listing float
33688 \begin_layout Plain Layout
33693 \begin_layout Plain Layout
33706 \begin_layout Plain Layout
33716 \begin_layout Standard
33717 \begin_inset VSpace bigskip
33723 \begin_layout Standard
33724 Global listings settings can be set in the
33726 Document\SpecialChar \menuseparator
33727 Settings\SpecialChar \menuseparator
33731 To get there a list of available options, type in a question mark
33732 \begin_inset Quotes eld
33736 \begin_inset Quotes erd
33742 \begin_layout Standard
33743 For more information about the
33747 package, we refer to its documentation
33748 \begin_inset CommandInset citation
33757 \begin_layout Standard
33758 \begin_inset Newpage newpage
33764 \begin_layout Chapter
33766 Units available in LyX
33767 \begin_inset Index idx
33770 \begin_layout Plain Layout
33777 \begin_inset CommandInset label
33779 name "cha:Units-available-in"
33786 \begin_layout Standard
33787 To understand the units described in this documentation, Table
33788 \begin_inset space ~
33792 \begin_inset CommandInset ref
33794 reference "tab:Units"
33798 explains all units available in LyX.
33801 \begin_layout Standard
33802 \begin_inset Float table
33808 \begin_layout Plain Layout
33809 \begin_inset Caption
33811 \begin_layout Plain Layout
33812 \begin_inset CommandInset label
33826 \begin_layout Plain Layout
33827 \begin_inset VSpace medskip
33833 \begin_layout Plain Layout
33835 \begin_inset Tabular
33836 <lyxtabular version="3" rows="20" columns="2">
33837 <features tabularvalignment="middle">
33838 <column alignment="center" valignment="top" width="0">
33839 <column alignment="center" valignment="top" width="0">
33841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33844 \begin_layout Plain Layout
33850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33853 \begin_layout Plain Layout
33861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33864 \begin_layout Plain Layout
33870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33873 \begin_layout Plain Layout
33881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33884 \begin_layout Plain Layout
33890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33893 \begin_layout Plain Layout
33901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33904 \begin_layout Plain Layout
33910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33913 \begin_layout Plain Layout
33921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33924 \begin_layout Plain Layout
33930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33933 \begin_layout Plain Layout
33935 \begin_inset space \thinspace{}
33939 \begin_inset space \thinspace{}
33949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33952 \begin_layout Plain Layout
33958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33961 \begin_layout Plain Layout
33963 \begin_inset space \thinspace{}
33967 \begin_inset space \thinspace{}
33977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33980 \begin_layout Plain Layout
33986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33989 \begin_layout Plain Layout
33990 scaled point (65536
33991 \begin_inset space \thinspace{}
33995 \begin_inset space \thinspace{}
34005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34008 \begin_layout Plain Layout
34014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34017 \begin_layout Plain Layout
34019 \begin_inset space \thinspace{}
34023 \begin_inset space \thinspace{}
34033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34036 \begin_layout Plain Layout
34042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34045 \begin_layout Plain Layout
34047 \begin_inset space \thinspace{}
34051 \begin_inset Formula $\approx$
34055 \begin_inset space \thinspace{}
34065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34068 \begin_layout Plain Layout
34074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34077 \begin_layout Plain Layout
34079 \begin_inset space \thinspace{}
34083 \begin_inset space \thinspace{}
34093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34096 \begin_layout Plain Layout
34102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34105 \begin_layout Plain Layout
34106 % of original image width
34113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34116 \begin_layout Plain Layout
34122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34125 \begin_layout Plain Layout
34133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34136 \begin_layout Plain Layout
34142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34145 \begin_layout Plain Layout
34153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34156 \begin_layout Plain Layout
34162 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34165 \begin_layout Plain Layout
34173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34176 \begin_layout Plain Layout
34182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34185 \begin_layout Plain Layout
34193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34196 \begin_layout Plain Layout
34202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34205 \begin_layout Plain Layout
34213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34216 \begin_layout Plain Layout
34222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34225 \begin_layout Plain Layout
34233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34236 \begin_layout Plain Layout
34242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34245 \begin_layout Plain Layout
34257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34260 \begin_layout Plain Layout
34266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34269 \begin_layout Plain Layout
34281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34284 \begin_layout Plain Layout
34290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34293 \begin_layout Plain Layout
34295 \begin_inset space \thinspace{}
34299 \begin_inset space \thinspace{}
34320 \begin_layout Chapter
34321 Output File Formats with Graphics
34322 \begin_inset CommandInset label
34324 name "cha:Output-File-Formats"
34331 \begin_layout Section
34333 \begin_inset Index idx
34336 \begin_layout Plain Layout
34343 \begin_inset Index idx
34346 \begin_layout Plain Layout
34351 \begin_layout Plain Layout
34362 \begin_layout Plain Layout
34377 \begin_layout Standard
34378 This file type has the extension
34379 \begin_inset Quotes eld
34387 \begin_inset Quotes erd
34392 \begin_inset Quotes eld
34396 \begin_inset Quotes erd
34399 (DVI), because it is completely portable; you can move them from one machine
34400 to another without needing to do any sort of conversion.
34401 At the time when this file-format was developed, this was no matter of
34403 DVIs are used for quick previews and as pre-stage for other output formats,
34407 \begin_layout Standard
34408 \begin_inset Note Greyedout
34411 \begin_layout Plain Layout
34416 DVI-files do not contain images; they will only be a linked.
34421 So don't forget this, if you move your
34425 file to another computer.
34426 This property can also slow down your computer when you view the DVI, because
34427 the DVI-viewer has to convert the image in the background to make it visible
34428 when you scroll in the DVI.
34429 So it is recommended that you use PDF for files with many images.
34432 \begin_layout Standard
34433 You can export your document to DVI by using the menu
34435 File\SpecialChar \menuseparator
34436 Export\SpecialChar \menuseparator
34440 You can view your document as DVI via the
34444 menu or by using the toolbar button
34445 \begin_inset Graphics
34446 filename ../images/buffer-view_dvi.png
34448 scaleBeforeRotation
34455 \begin_layout Section
34457 \begin_inset CommandInset label
34459 name "sec:PostScript"
34464 \begin_inset Index idx
34467 \begin_layout Plain Layout
34468 File Formats ! PostScript
34474 \begin_inset Index idx
34477 \begin_layout Plain Layout
34482 \begin_layout Plain Layout
34493 \begin_layout Plain Layout
34508 \begin_layout Standard
34509 This file type has the extension
34510 \begin_inset Quotes eld
34518 \begin_inset Quotes erd
34522 PostScript was developed by the company
34526 as a printer language.
34527 The file therefore contains commands that the printer uses to print the
34529 PostScript can be seen as a
34530 \begin_inset Quotes eld
34533 programming language
34534 \begin_inset Quotes erd
34537 ; you can calculate with it and draw diagrams and images
34541 \begin_layout Plain Layout
34542 If you are interested to learn more about this, have a look at the LaTeX-package
34548 \begin_inset CommandInset citation
34560 Due to this ability, the files are often bigger than PDFs.
34563 \begin_layout Standard
34564 PostScript can only contain images in the format
34565 \begin_inset Quotes eld
34568 Encapsulated PostScript
34569 \begin_inset Quotes erd
34572 (EPS, file extension
34573 \begin_inset Quotes eld
34581 \begin_inset Quotes erd
34585 As LyX allows you to use any known image format in your document, it has
34586 to convert images in the background to EPS.
34588 \begin_inset space ~
34592 \begin_inset space ~
34595 images in your document, LyX has to do 50
34596 \begin_inset space ~
34599 conversions whenever you view or export your document.
34600 This will slow down your work flow with LyX drastically.
34601 So if you plan to use PostScript, you can insert your images directly as
34602 EPS to avoid this problem.
34605 \begin_layout Standard
34606 You can export your document to PostScript using the menu
34608 File\SpecialChar \menuseparator
34609 Export\SpecialChar \menuseparator
34613 You can view your document as PostScript via the
34617 menu or by using the toolbar button
34618 \begin_inset Graphics
34619 filename ../images/buffer-view_ps.png
34621 scaleBeforeRotation
34628 \begin_layout Section
34630 \begin_inset Index idx
34633 \begin_layout Plain Layout
34640 \begin_inset Index idx
34643 \begin_layout Plain Layout
34652 \begin_layout Standard
34653 This file type has the extension
34654 \begin_inset Quotes eld
34662 \begin_inset Quotes erd
34667 \begin_inset Quotes eld
34670 Portable Document Format
34671 \begin_inset Quotes erd
34674 (PDF) was developed by
34678 as a derivative of PostScript.
34679 It is more compressed and it uses fewer commands than PostScript.
34681 \begin_inset Quotes eld
34685 \begin_inset Quotes erd
34688 implies, it can be processed at any computer system and the printed output
34689 looks exactly the same.
34692 \begin_layout Standard
34693 PDF can contain images in its own PDF format, in the format
34694 \begin_inset Quotes eld
34697 Joint Photographic Experts Group
34698 \begin_inset Quotes erd
34701 (JPG, file extension
34702 \begin_inset Quotes eld
34710 \begin_inset Quotes erd
34714 \begin_inset Quotes eld
34722 \begin_inset Quotes erd
34725 ), and in the format
34726 \begin_inset Quotes eld
34729 Portable Network Graphics
34730 \begin_inset Quotes erd
34733 (PNG, file extension
34734 \begin_inset Quotes eld
34742 \begin_inset Quotes erd
34746 Nevertheless you can use any other image format, because LyX converts them
34747 in the background to one of these formats.
34748 But as described in the section about PostScript, the image conversion
34749 will slow down your work flow.
34750 So it is recommended that you use images in one of the three mentioned
34754 \begin_layout Standard
34755 You can export your document to PDF via the menu
34757 File\SpecialChar \menuseparator
34760 in three different ways:
34763 \begin_layout Description
34765 \begin_inset space ~
34768 (ps2pdf) This uses the program
34772 that creates a PDF from a PostScript-version of your file.
34773 The PostScript-version is produced by the program
34777 which uses a DVI-version as intermediate step.
34778 So this export variant consists of three conversions.
34781 \begin_layout Description
34783 \begin_inset space ~
34786 (dvipdfm) This uses the program
34790 that converts your file in the background to DVI and in a second step to
34794 \begin_layout Description
34796 \begin_inset space ~
34799 (pdflatex) This uses the program
34803 that converts your file directly to PDF.
34806 \begin_layout Standard
34807 It is recommended that you use
34810 \begin_inset space ~
34819 supports all features of actual PDF-versions, is quick and works stable.
34824 is not under development and therefore a bit outdated.
34827 \begin_layout Standard
34828 You can view your document as PDF via the
34832 menu or by using the toolbar button
34833 \begin_inset Graphics
34834 filename ../images/buffer-view_pdf2.png
34836 scaleBeforeRotation
34847 \begin_inset space ~
34855 \begin_layout Chapter
34856 Explanation of Equation
34857 \begin_inset space ~
34861 \begin_inset CommandInset ref
34868 \begin_inset CommandInset label
34870 name "cha:Explanation-of-Equation"
34877 \begin_layout Standard
34878 We can calculate the total width of
34883 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34889 \begin_layout Standard
34890 \begin_inset Formula
34892 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
34898 \begin_inset Formula $W_{g\, n}$
34901 is the given width of all cells,
34907 is the LaTeX-length between the cell text and the cell border (its default
34909 \begin_inset space \thinspace{}
34919 is the thickness of the cell border line, the default is 0.4
34920 \begin_inset space \thinspace{}
34926 \begin_layout Standard
34928 \begin_inset space ~
34932 \begin_inset CommandInset ref
34934 reference "eq:Wtot_n"
34938 , the total width of a multicolumn
34939 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34945 \begin_layout Standard
34946 \begin_inset Formula
34948 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
34956 \begin_layout Standard
34957 By setting equation
34958 \begin_inset space ~
34962 \begin_inset CommandInset ref
34964 reference "eq:Wtot_n"
34969 \begin_inset CommandInset ref
34971 reference "eq:Wtot_mult"
34975 equal we can calculate the needed given width
34976 \begin_inset Formula $W_{g\, n}$
34983 columns are spanned, so that each column has a total width of
34984 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34990 \begin_layout Standard
34991 \begin_inset Formula
34993 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
35001 \begin_layout Bibliography
35002 \labelwidthstring Bibliography
35003 \begin_inset CommandInset bibitem
35004 LatexCommand bibitem
35005 key "latexcompanion"
35009 Frank Mittelbach and Michel Goossens:
35011 The LaTeX Companion Second Edition.
35014 Addison-Wesley, 2004
35017 \begin_layout Bibliography
35018 \labelwidthstring Bibliography
35019 \begin_inset CommandInset bibitem
35020 LatexCommand bibitem
35025 Helmut Kopka and Patrick W.
35028 A Guide to LaTeX Fourth Edition.
35031 Addison-Wesley, 2003
35034 \begin_layout Bibliography
35035 \labelwidthstring Bibliography
35036 \begin_inset CommandInset bibitem
35037 LatexCommand bibitem
35044 LaTeX: A Document Preparation System.
35047 Addison-Wesley, second edition, 1994
35050 \begin_layout Bibliography
35051 \labelwidthstring Bibliography
35052 \begin_inset CommandInset bibitem
35053 LatexCommand bibitem
35058 Documentation of the LaTeX-package
35061 \begin_inset CommandInset href
35064 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
35071 \begin_inset Index idx
35074 \begin_layout Plain Layout
35075 LaTeX-packages ! booktabs
35083 \begin_layout Bibliography
35084 \labelwidthstring Bibliography
35085 \begin_inset CommandInset bibitem
35086 LatexCommand bibitem
35091 Documentation of the LaTeX-package
35094 \begin_inset CommandInset href
35097 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
35104 \begin_inset Index idx
35107 \begin_layout Plain Layout
35108 LaTeX-packages ! caption
35116 \begin_layout Bibliography
35117 \labelwidthstring Bibliography
35118 \begin_inset CommandInset bibitem
35119 LatexCommand bibitem
35124 Documentation of the LaTeX-package
35127 \begin_inset CommandInset href
35130 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
35137 \begin_inset Index idx
35140 \begin_layout Plain Layout
35141 LaTeX-packages ! endfloat
35149 \begin_layout Bibliography
35150 \labelwidthstring Bibliography
35151 \begin_inset CommandInset bibitem
35152 LatexCommand bibitem
35157 Documentation of the LaTeX-package
35160 \begin_inset CommandInset href
35163 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
35170 \begin_inset Index idx
35173 \begin_layout Plain Layout
35174 LaTeX-packages ! wrapfig
35178 \begin_layout Plain Layout
35195 \begin_layout Bibliography
35196 \labelwidthstring Bibliography
35197 \begin_inset CommandInset bibitem
35198 LatexCommand bibitem
35203 Documentation of the LaTeX-package
35206 \begin_inset CommandInset href
35209 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
35216 \begin_inset Index idx
35219 \begin_layout Plain Layout
35220 LaTeX-packages ! footmisc
35228 \begin_layout Bibliography
35229 \labelwidthstring Bibliography
35230 \begin_inset CommandInset bibitem
35231 LatexCommand bibitem
35236 Documentation of the LaTeX-package
35239 \begin_inset CommandInset href
35242 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
35249 \begin_inset Index idx
35252 \begin_layout Plain Layout
35253 LaTeX-packages ! hyperref
35261 \begin_layout Bibliography
35262 \labelwidthstring Bibliography
35263 \begin_inset CommandInset bibitem
35264 LatexCommand bibitem
35269 Documentation of the LaTeX-package
35272 \begin_inset CommandInset href
35275 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35282 \begin_inset Index idx
35285 \begin_layout Plain Layout
35286 LaTeX-packages ! hyperref
35294 \begin_layout Bibliography
35295 \labelwidthstring Bibliography
35296 \begin_inset CommandInset bibitem
35297 LatexCommand bibitem
35302 Documentation of the LaTeX-package
35305 \begin_inset CommandInset href
35308 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35315 \begin_inset Index idx
35318 \begin_layout Plain Layout
35319 LaTeX-packages ! KOMA-Script
35327 \begin_layout Bibliography
35328 \labelwidthstring Bibliography
35329 \begin_inset CommandInset bibitem
35330 LatexCommand bibitem
35335 Documentation of the LaTeX-package
35338 \begin_inset CommandInset href
35341 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35348 \begin_inset Index idx
35351 \begin_layout Plain Layout
35352 LaTeX-packages ! listings
35360 \begin_layout Bibliography
35361 \labelwidthstring Bibliography
35362 \begin_inset CommandInset bibitem
35363 LatexCommand bibitem
35368 Documentation of the LaTeX-package
35371 \begin_inset CommandInset href
35374 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35381 \begin_inset Index idx
35384 \begin_layout Plain Layout
35385 LaTeX-packages ! marginnote
35393 \begin_layout Bibliography
35394 \labelwidthstring Bibliography
35395 \begin_inset CommandInset bibitem
35396 LatexCommand bibitem
35401 Web page of the LaTeX-package
35404 \begin_inset CommandInset href
35407 target "http://tug.org/PSTricks/"
35414 \begin_inset Index idx
35417 \begin_layout Plain Layout
35418 LaTeX-packages ! PSTricks
35426 \begin_layout Bibliography
35427 \labelwidthstring Bibliography
35428 \begin_inset CommandInset bibitem
35429 LatexCommand bibitem
35434 Documentation of the LaTeX-package
35437 \begin_inset CommandInset href
35440 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35447 \begin_inset Index idx
35450 \begin_layout Plain Layout
35451 LaTeX-packages ! sidecap
35459 \begin_layout Bibliography
35460 \labelwidthstring Bibliography
35461 \begin_inset CommandInset bibitem
35462 LatexCommand bibitem
35467 Documentation of the LaTeX-package
35470 \begin_inset CommandInset href
35473 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35480 \begin_inset Index idx
35483 \begin_layout Plain Layout
35484 LaTeX-packages ! prettyref
35492 \begin_layout Bibliography
35493 \labelwidthstring Bibliography
35494 \begin_inset CommandInset bibitem
35495 LatexCommand bibitem
35500 Documentation of the LaTeX-package
35503 \begin_inset CommandInset href
35506 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35513 \begin_inset Index idx
35516 \begin_layout Plain Layout
35517 LaTeX-packages ! refstyle
35525 \begin_layout Bibliography
35526 \labelwidthstring Bibliography
35527 \begin_inset CommandInset bibitem
35528 LatexCommand bibitem
35534 \begin_inset CommandInset href
35537 target "http://wiki.lyx.org/LyX/NewInLyX20"
35541 about new features in
35548 \begin_layout Standard
35549 \begin_inset CommandInset index_print
35550 LatexCommand printindex