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}}
148 % used for surrounded fixed objects
149 \newboolean{picinpar}
150 \IfFileExists{picinpar.sty}
151 {\usepackage{picinpar}
152 \setboolean{picinpar}{true}}
153 {\setboolean{picinpar}{false}}
155 % redefine the \LyX macro for PDF bookmarks
156 \def\LyX{\texorpdfstring{%
157 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
160 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
161 \use_default_options false
165 \maintain_unincluded_children false
167 \language_package default
172 \font_typewriter default
173 \font_default_family default
174 \use_non_tex_fonts false
181 \default_output_format default
183 \bibtex_command default
184 \index_command default
188 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
189 \pdf_author "LyX Team, Uwe Stöhr"
190 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
191 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
193 \pdf_bookmarksnumbered true
194 \pdf_bookmarksopen true
195 \pdf_bookmarksopenlevel 1
196 \pdf_breaklinks false
200 \pdf_pdfusetitle false
201 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
211 \paperorientation portrait
214 \notefontcolor #0000ff
221 \paragraph_separation skip
223 \quotes_language english
226 \paperpagestyle default
230 \tracking_changes false
231 \output_changes false
234 \html_be_strict false
240 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
249 \begin_layout Plain Layout
251 If you have comments or error corrections, please send them to the LyX Documenta
253 \begin_inset CommandInset href
255 name "lyx-docs@lists.lyx.org"
256 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
267 \begin_inset Note Note
270 \begin_layout Plain Layout
277 \begin_inset Newline newline
281 \begin_inset Newline newline
289 \begin_layout Standard
290 \begin_inset CommandInset toc
291 LatexCommand tableofcontents
298 \begin_layout Standard
299 \begin_inset Note Note
302 \begin_layout Plain Layout
303 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
321 If they are not installed you can export the document anyway but the sections
322 where the packages are required won't appear in the output.
325 \begin_layout Plain Layout
326 The latest PDF-version of this document can be found here:
327 \begin_inset Newline newline
332 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
340 \begin_layout Chapter
342 \begin_inset Index idx
345 \begin_layout Plain Layout
352 \begin_inset Index idx
355 \begin_layout Plain Layout
360 \begin_layout Plain Layout
371 \begin_layout Plain Layout
386 \begin_layout Section
388 \begin_inset Index idx
391 \begin_layout Plain Layout
392 Figures ! Graphics Dialog
398 \begin_inset CommandInset label
400 name "sec:Graphics-Dialog"
407 \begin_layout Standard
408 To insert an image into your document, place the cursor at the text position
409 you want and click on the toolbar icon
410 \begin_inset Graphics
411 filename ../images/dialog-show-new-inset_graphics.png
419 Insert\SpecialChar \menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside LyX.
467 \begin_inset Newline newline
471 \begin_inset Index idx
474 \begin_layout Plain Layout
480 Images can be scaled by using a percentage value or by setting the width
481 and height explicitly.
482 If you set only the width or only the height, the other size will be determined
484 If you set both, then the image will be transformed to the given size,
485 possibly distorting it.
486 To prevent the image from distortion, use the option
488 Maintain aspect ratio
491 The image will then be scaled so that its width and height don't exceed
492 the specified dimensions.
493 \begin_inset Newline newline
496 Images can be opened in a program of your choice by right-clicking on it
497 and choosing the entry
506 The program can be set for every image format in the file format settings
507 in LyX's preferences.
510 \begin_layout Description
515 Alternatively to the usage of scaling units it is possible to set image
516 coordinates to adjust the height and width of the image in the output.
517 The coordinates can also be calculated automatically by pressing the button
547 will only print the image region within the given coordinates.
548 Normally you don't need to take care about image coordinates and can ignore
552 \begin_layout Description
569 In this tab you can modify the appearance of the image within LyX and LaTeX
570 experts can specify additional LaTeX options.
571 \begin_inset Newline newline
582 makes the image appear in the output only as a frame with the size of the
584 \begin_inset Newline newline
603 option only affects zipped EPS-graphics, e.
604 \begin_inset space \thinspace{}
608 \begin_inset space \space{}
616 When the option is used the images will not be unzipped on export, since
617 LaTeX can handle them as they are.
618 \begin_inset Newline newline
621 Zipped EPS-graphics are useful to save disk space when you choose PostScript
622 as output format, see appendix
627 \begin_inset CommandInset ref
629 reference "sec:PostScript"
634 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
636 \begin_inset Newline newline
644 \begin_inset Newline newline
649 zgrep %%Bounding x.eps.gz > x.eps.bb
652 \begin_inset Newline newline
655 The second command creates the bounding box file
656 \begin_inset Quotes eld
660 \begin_inset Quotes erd
663 that is needed by LaTeX for zipped graphics.
664 \begin_inset Newline newline
679 allows you define or join an image settings group.
680 \begin_inset Index idx
683 \begin_layout Plain Layout
684 Figures ! Settings grouping
689 Images within such a group share their settings, so adjusting one image
690 of the group automatically also adjusts all other images of the group in
692 So you can for example change the size for a bunch of images without the
693 need to manually change each of them.
694 Joining an existing group can also be done using the context menu of the
695 image by checking the name of the desired group.
698 \begin_layout Standard
699 \begin_inset VSpace bigskip
705 \begin_layout Standard
706 This is an example image in EPS format
710 \begin_layout Plain Layout
711 Image formats are explained in section
716 \begin_inset CommandInset ref
718 reference "sec:Image-Formats"
727 within a separate, horizontally centered paragraph:
730 \begin_layout Standard
732 \begin_inset Graphics
733 filename clipart/mobius.eps
743 \begin_layout Standard
744 This is the same image like the one above but in draft mode:
747 \begin_layout Standard
749 \begin_inset Graphics
750 filename clipart/mobius.eps
761 \begin_layout Standard
762 \begin_inset Newpage newpage
768 \begin_layout Section
770 \begin_inset CommandInset label
772 name "sec:Figure-Floats"
777 \begin_inset Index idx
780 \begin_layout Plain Layout
787 \begin_inset Index idx
790 \begin_layout Plain Layout
799 \begin_layout Standard
800 For general explanations about floats, have a look at section
805 \begin_inset CommandInset ref
807 reference "sec:FloatIntroduction"
814 \begin_layout Standard
816 \begin_inset Graphics
817 filename ../images/float-insert_figure.png
825 Insert\SpecialChar \menuseparator
826 Float\SpecialChar \menuseparator
829 inserts a float with a caption that has the label
830 \begin_inset Quotes eld
838 \begin_inset Quotes erd
841 (# is the actual number).
842 You can insert the image above the caption, like in Figure
847 \begin_inset CommandInset ref
849 reference "fig:kill-plat"
853 or below the caption, like in Figure
858 \begin_inset CommandInset ref
860 reference "fig:escher"
865 More about caption placement is described in section
870 \begin_inset CommandInset ref
872 reference "sec:Caption-Placement"
879 \begin_layout Standard
880 \begin_inset Float figure
885 \begin_layout Plain Layout
887 \begin_inset Graphics
888 filename clipart/platypus.eps
898 \begin_layout Plain Layout
901 \begin_layout Plain Layout
902 \begin_inset CommandInset label
908 A severely distorted platypus in a float.
921 \begin_layout Standard
922 \begin_inset Float figure
927 \begin_layout Plain Layout
930 \begin_layout Plain Layout
931 \begin_inset CommandInset label
946 \begin_layout Plain Layout
948 \begin_inset Graphics
949 filename clipart/escher-lsd.eps
964 \begin_layout Standard
965 \begin_inset Index idx
968 \begin_layout Plain Layout
969 References ! to Figures
979 \begin_inset CommandInset ref
981 reference "fig:kill-plat"
986 \begin_inset CommandInset ref
988 reference "fig:escher"
992 are examples of referenced figures.
993 Figures can be referenced in the text by referencing their label.
994 To do this insert a label in the caption using the menu
996 Insert\SpecialChar \menuseparator
999 or the toolbar button
1000 \begin_inset Graphics
1001 filename ../images/label-insert.png
1008 You can now refer to the label using the menu
1010 Insert\SpecialChar \menuseparator
1012 \begin_inset space ~
1017 or the toolbar button
1018 \begin_inset Graphics
1019 filename ../images/dialog-show-new-inset_ref.png
1026 It is important to use references to floats, rather than using vague references
1028 \begin_inset Quotes eld
1032 \begin_inset Quotes erd
1035 , because LaTeX will reposition the floats in the final document and it
1037 \begin_inset Quotes eld
1041 \begin_inset Quotes erd
1045 \begin_inset Newline newline
1048 Referencing is explained in detail in section
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "sec:Referencing-Floats"
1062 \begin_layout Standard
1063 Normally only one image is inserted to a figure float, but sometimes you
1064 might want to use two images with separate subcaptions.
1065 This can be done by inserting image floats into existing image floats.
1066 Note that only the main caption of the float is added to the List of Figures.
1068 \begin_inset space ~
1072 \begin_inset CommandInset ref
1074 reference "fig:Two-distorted-images"
1078 is an example of a figure float with two images set side by side.
1079 You can also set the images one below the other.
1081 \begin_inset space ~
1085 \begin_inset CommandInset ref
1087 reference "fig:Undefinable-structure"
1092 \begin_inset CommandInset ref
1094 reference "fig:A-Platypus"
1101 \begin_layout Standard
1102 \begin_inset Float figure
1107 \begin_layout Plain Layout
1108 \begin_inset space \hfill{}
1112 \begin_inset Float figure
1117 \begin_layout Plain Layout
1118 \begin_inset Caption
1120 \begin_layout Plain Layout
1121 \begin_inset CommandInset label
1123 name "fig:Undefinable-structure"
1127 Undefinable structure.
1135 \begin_layout Plain Layout
1136 \begin_inset Graphics
1137 filename clipart/escher-lsd.eps
1150 \begin_inset space \hfill{}
1154 \begin_inset Float figure
1159 \begin_layout Plain Layout
1160 \begin_inset Caption
1162 \begin_layout Plain Layout
1163 \begin_inset CommandInset label
1165 name "fig:A-Platypus"
1177 \begin_layout Plain Layout
1178 \begin_inset Graphics
1179 filename clipart/platypus.eps
1192 \begin_inset space \hfill{}
1198 \begin_layout Plain Layout
1199 \begin_inset Caption
1201 \begin_layout Plain Layout
1202 \begin_inset CommandInset label
1204 name "fig:Two-distorted-images"
1209 \begin_inset CommandInset label
1211 name "fig2:Two-distorted-images-2"
1215 Two distorted images.
1216 Both images are in the image settings group named
1217 \begin_inset Quotes eld
1221 \begin_inset Quotes erd
1237 \begin_layout Standard
1238 \begin_inset Newpage newpage
1244 \begin_layout Section
1246 \begin_inset CommandInset label
1248 name "sec:Image-Formats"
1253 \begin_inset Index idx
1256 \begin_layout Plain Layout
1263 \begin_inset Index idx
1266 \begin_layout Plain Layout
1267 Figures ! Image Formats
1275 \begin_layout Standard
1276 You can insert images in any known file format.
1277 But as explained in appendix
1278 \begin_inset space ~
1282 \begin_inset CommandInset ref
1284 reference "cha:Output-File-Formats"
1288 , each output document format allows only a few image formats.
1289 LyX uses therefore the program
1293 in the background to convert the images to the right format.
1294 To increase your work flow by avoiding these conversions in the background,
1295 you can use only the image formats that can directly be embedded in the
1297 The output file formats are explained in appendix
1298 \begin_inset space ~
1302 \begin_inset CommandInset ref
1304 reference "cha:Output-File-Formats"
1311 \begin_layout Standard
1312 Similar to fonts there are two types of image formats:
1315 \begin_layout Description
1317 \begin_inset space ~
1320 images consist of pixel values, often in a compressed form.
1321 They are therefore not fully scalable and look pixelated in large zooms.
1322 Well-known bitmap image formats are
1323 \begin_inset Quotes eld
1326 Graphics Interchange Format
1327 \begin_inset Quotes erd
1330 (GIF, file extension
1331 \begin_inset Quotes eld
1339 \begin_inset Quotes erd
1343 \begin_inset Index idx
1346 \begin_layout Plain Layout
1351 \begin_layout Plain Layout
1362 \begin_layout Plain Layout
1375 \begin_inset Quotes eld
1378 Portable Network Graphics
1379 \begin_inset Quotes erd
1382 (PNG, file extension
1383 \begin_inset Quotes eld
1391 \begin_inset Quotes erd
1395 \begin_inset Index idx
1398 \begin_layout Plain Layout
1403 \begin_layout Plain Layout
1414 \begin_layout Plain Layout
1427 \begin_inset Quotes eld
1430 Joint Photographic Experts Group
1431 \begin_inset Quotes erd
1434 (JPG, file extension
1435 \begin_inset Quotes eld
1443 \begin_inset Quotes erd
1447 \begin_inset Quotes eld
1455 \begin_inset Quotes erd
1459 \begin_inset Index idx
1462 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1478 \begin_layout Plain Layout
1493 \begin_layout Description
1495 \begin_inset space ~
1498 images consist of vectors and can therefore be scaled to any size without
1500 The scaling ability is necessary if you want to create presentations, because
1501 presentations are always scaled by the video projector.
1502 Scaling is also useful for online documents to let the user zoom into diagrams.
1503 \begin_inset Newline newline
1506 Well-known scalable image formats are
1507 \begin_inset Quotes eld
1510 Scalable Vector Graphics
1511 \begin_inset Quotes erd
1514 (SVG, file extension
1515 \begin_inset Quotes eld
1523 \begin_inset Quotes erd
1527 \begin_inset Index idx
1530 \begin_layout Plain Layout
1535 \begin_layout Plain Layout
1546 \begin_layout Plain Layout
1559 \begin_inset Quotes eld
1562 Encapsulated PostScript
1563 \begin_inset Quotes erd
1566 (EPS, file extension
1567 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1579 \begin_inset Index idx
1582 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1611 \begin_inset Quotes eld
1614 Portable Document Format
1615 \begin_inset Quotes erd
1618 (PDF, file extension
1619 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1631 \begin_inset Index idx
1634 \begin_layout Plain Layout
1641 \begin_inset Quotes eld
1645 \begin_inset Quotes erd
1648 (WMF, file extension
1649 \begin_inset Quotes eld
1657 \begin_inset Quotes erd
1661 \begin_inset Index idx
1664 \begin_layout Plain Layout
1669 \begin_layout Plain Layout
1680 \begin_layout Plain Layout
1694 \begin_inset Quotes eld
1698 \begin_inset Quotes erd
1701 , because you can convert any bitmap image to a PDF or EPS-image and the
1702 result will still be a bitmap image.
1703 In such cases only a header with the image properties is added to the original
1708 \begin_layout Plain Layout
1709 In the case of PDF, the original image is additionally compressed.
1715 The PDF-files generated by
1719 are for example bitmap images.
1722 \begin_layout Standard
1723 Normally it is not possible to convert a bitmap image into a scalable one,
1725 Only the image formats PDF and EPS can directly be embedded to PDF and
1726 PostScript output files, respectively.
1727 SVG and WMF-images are recalculated to bitmaps when the output file is
1728 generated because there is currently no adequate WMF/SVG
1729 \begin_inset Formula $\to$
1732 PDF/EPS converter available.
1735 \begin_layout Chapter
1737 \begin_inset Index idx
1740 \begin_layout Plain Layout
1749 \begin_layout Section
1751 \begin_inset Index idx
1754 \begin_layout Plain Layout
1755 Table ! Introduction
1763 \begin_layout Standard
1764 You can insert a table using either the toolbar button
1765 \begin_inset Graphics
1766 filename ../images/tabular-insert.png
1774 Insert\SpecialChar \menuseparator
1778 The toolbar button offers you a graphical selection: move the mouse to
1779 set the column/row number of the table that should be created and then
1780 press a mouse button.
1781 When you use the menu to create a table, a dialog will appear, asking you
1782 for the number of rows and columns.
1783 \begin_inset Newline newline
1786 The default table has lines around any cell and the first row appears separated
1787 from the rest of the table.
1788 This separation occurs due to a double line: The cells of the first row
1789 have a line below them and the cells of the second row have a line above
1791 Here is an example table:
1794 \begin_layout Standard
1796 \begin_inset Tabular
1797 <lyxtabular version="3" rows="4" columns="4">
1798 <features tabularvalignment="middle">
1799 <column alignment="center" valignment="top" width="0">
1800 <column alignment="center" valignment="top" width="0">
1801 <column alignment="center" valignment="top" width="0">
1802 <column alignment="center" valignment="top" width="0">
1804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1807 \begin_layout Plain Layout
1813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1816 \begin_layout Plain Layout
1831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1834 \begin_layout Plain Layout
1840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1843 \begin_layout Plain Layout
1851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1854 \begin_layout Plain Layout
1869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1872 \begin_layout Plain Layout
1878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1881 \begin_layout Plain Layout
1887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1890 \begin_layout Plain Layout
1898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1901 \begin_layout Plain Layout
1916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1919 \begin_layout Plain Layout
1925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1928 \begin_layout Plain Layout
1934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1937 \begin_layout Plain Layout
1945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1948 \begin_layout Plain Layout
1963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1966 \begin_layout Plain Layout
1972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1975 \begin_layout Plain Layout
1981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1984 \begin_layout Plain Layout
1998 \begin_layout Section
2000 \begin_inset Index idx
2003 \begin_layout Plain Layout
2012 \begin_layout Standard
2013 You can alter a table by clicking on it with the right mouse button, which
2014 brings up the table dialog.
2015 Here you can adjust the settings of that cell and row/column respectively
2016 where the cursor is currently placed.
2017 Most of the dialog options also work on selections.
2018 This means if you select more cells, columns or rows, the action is done
2019 for the whole selection.
2020 Note that there is a difference between selecting the
2024 of the cell, and the cell itself.
2025 \begin_inset Newline newline
2028 With the dialog option
2031 \begin_inset space ~
2036 every change you make in the dialog is directly applied.
2037 If you move the cursor to another table cell the dialog will then also
2038 be updated with the parameters of the new cell.
2039 If you change length values in the dialog you must press return to get
2041 \begin_inset Newline newline
2044 You can alter tables with the following tabs of the table dialog:
2047 \begin_layout Description
2051 \begin_inset space ~
2056 Here you can set the table width
2057 \begin_inset Index idx
2060 \begin_layout Plain Layout
2066 , and the horizontal alignment and the width of the current column.
2070 \begin_inset space ~
2074 \begin_inset space ~
2079 is described in section
2080 \begin_inset space ~
2084 \begin_inset CommandInset ref
2086 reference "sub:Special-Cell-Alignment"
2091 When you have set a width you can also adjust the vertical alignment of
2093 A given width will allow the cell to have line breaks and multiple paragraphs
2094 of text, see section
2095 \begin_inset space ~
2099 \begin_inset CommandInset ref
2101 reference "sub:Multiple-Lines-in"
2106 If you set no width, the column is as wide as the content of its widest
2108 \begin_inset Newline newline
2111 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2113 \begin_inset space ~
2117 \begin_inset CommandInset ref
2119 reference "sub:Multicolumns"
2123 or the cells of one column as multirow cell, see section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Multirows"
2135 \begin_inset Newline newline
2138 The rotate check boxes rotate the current cell, a selection, or the whole
2139 table counter-clockwise by 90°.
2140 The rotation is not shown within LyX, only in the output.
2141 \begin_inset Newline newline
2145 \begin_inset Note Greyedout
2148 \begin_layout Plain Layout
2153 Not all DVI-viewers are able to display rotations.
2159 \begin_inset Newline newline
2162 The table-wide vertical alignment is used for tables within text lines:
2163 \begin_inset Newline newline
2166 A line with tables with different alignments:
2167 \begin_inset Tabular
2168 <lyxtabular version="3" rows="2" columns="2">
2169 <features tabularvalignment="top">
2170 <column alignment="center" valignment="top" width="0pt">
2171 <column alignment="center" valignment="top" width="0">
2173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2176 \begin_layout Plain Layout
2182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2185 \begin_layout Plain Layout
2202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2205 \begin_layout Plain Layout
2220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2223 \begin_layout Plain Layout
2235 \begin_inset Tabular
2236 <lyxtabular version="3" rows="2" columns="2">
2237 <features tabularvalignment="middle">
2238 <column alignment="center" valignment="top" width="0">
2239 <column alignment="center" valignment="top" width="0">
2241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2244 \begin_layout Plain Layout
2250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2253 \begin_layout Plain Layout
2270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2273 \begin_layout Plain Layout
2288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2291 \begin_layout Plain Layout
2303 \begin_inset Tabular
2304 <lyxtabular version="3" rows="2" columns="2">
2305 <features tabularvalignment="bottom">
2306 <column alignment="center" valignment="top" width="0pt">
2307 <column alignment="center" valignment="top" width="0">
2309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2312 \begin_layout Plain Layout
2318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2321 \begin_layout Plain Layout
2338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2341 \begin_layout Plain Layout
2356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2359 \begin_layout Plain Layout
2371 \begin_inset Newline newline
2374 It is also possible to enter a LaTeX-argument which is needed for special
2375 table formattings, see section
2376 \begin_inset space ~
2380 \begin_inset CommandInset ref
2382 reference "sub:Multicolumn-Calculations"
2387 \begin_inset CommandInset ref
2389 reference "sec:Colored-Tables"
2396 \begin_layout Description
2401 In this tab you can add and delete border lines for the current row/column.
2402 \begin_inset Newline newline
2405 Using the style option
2409 will convert the table to a formal table as described in section
2410 \begin_inset space ~
2414 \begin_inset CommandInset ref
2416 reference "sec:Formal-Tables"
2421 \begin_inset Newline newline
2424 You can also add here space to table rows as described in section
2425 \begin_inset space ~
2429 \begin_inset CommandInset ref
2431 reference "sub:Row-Spacing"
2438 \begin_layout Description
2443 This tab is to make a table a so called
2444 \begin_inset Quotes eld
2452 \begin_inset Quotes erd
2455 that can run over several pages.
2457 \begin_inset space ~
2461 \begin_inset CommandInset ref
2463 reference "sec:Longtables"
2468 \begin_inset CommandInset ref
2470 reference "sec:Special-Longtable-Issues"
2474 describe the longtable features in detail.
2477 \begin_layout Section
2479 \begin_inset Index idx
2482 \begin_layout Plain Layout
2491 \begin_layout Standard
2492 The table toolbar is an alternative to the table dialog to be able to alter
2494 It should normally appear at the bottom of LyX's main window when the cursor
2496 You can alternatively switch it on to appear always, by right-clicking
2497 in LyX's main menu bar.
2500 \begin_layout Standard
2501 The toolbar has the following icons:
2504 \begin_layout Labeling
2505 \labelwidthstring 00.00.0000
2506 \begin_inset Graphics
2507 filename ../images/tabular-feature_append-row.png
2512 adds a row below the current cell or selection
2515 \begin_layout Labeling
2516 \labelwidthstring 00.00.0000
2517 \begin_inset Graphics
2518 filename ../images/tabular-feature_append-column.png
2523 adds a column right beside the current cell or selection
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2528 \begin_inset Graphics
2529 filename ../images/tabular-feature_delete-row.png
2534 deletes the current row or selection
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2539 \begin_inset Graphics
2540 filename ../images/tabular-feature_delete-column.png
2545 deletes the current column or selection
2548 \begin_layout Labeling
2549 \labelwidthstring 00.00.0000
2550 \begin_inset Graphics
2551 filename ../images/tabular-feature_toggle-line-top.png
2556 adds a line at the top of the current cell / row or of a selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2561 \begin_inset Graphics
2562 filename ../images/tabular-feature_toggle-line-bottom.png
2567 adds a line at the bottom of the current cell / row or of a selection
2570 \begin_layout Labeling
2571 \labelwidthstring 00.00.0000
2572 \begin_inset Graphics
2573 filename ../images/tabular-feature_toggle-line-left.png
2578 adds a line at the left side of the current cell / row or of a selection
2581 \begin_layout Labeling
2582 \labelwidthstring 00.00.0000
2583 \begin_inset Graphics
2584 filename ../images/tabular-feature_toggle-line-right.png
2589 adds a line at the right side of the current cell / row or of a selection
2592 \begin_layout Labeling
2593 \labelwidthstring 00.00.0000
2594 \begin_inset Graphics
2595 filename ../images/tabular-feature_set-all-lines.png
2600 adds lines around the current or selected cells - if the current cell no
2601 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_unset-all-lines.png
2612 deletes all lines of the current or selected cells - if the current cell
2613 no multicolumn cell this also affects the current row and column
2616 \begin_layout Labeling
2617 \labelwidthstring 00.00.0000
2618 \begin_inset Graphics
2619 filename ../images/tabular-feature_m-align-left.png
2624 left-aligns the content of the current cell / column
2627 \begin_layout Labeling
2628 \labelwidthstring 00.00.0000
2629 \begin_inset Graphics
2630 filename ../images/tabular-feature_m-align-center.png
2635 centers the content of the current cell / column horizontally
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2640 \begin_inset Graphics
2641 filename ../images/tabular-feature_m-align-right.png
2646 right-aligns the content of the current cell / column
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2651 \begin_inset Graphics
2652 filename ../images/tabular-feature_align-decimal.png
2657 aligns the content of the current column at a character
2660 \begin_layout Labeling
2661 \labelwidthstring 00.00.0000
2662 \begin_inset Graphics
2663 filename ../images/tabular-feature_m-valign-top.png
2668 aligns the content of the current cell vertically to the top
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2673 \begin_inset Graphics
2674 filename ../images/tabular-feature_m-valign-middle.png
2679 centers the content of the current cell vertically
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2684 \begin_inset Graphics
2685 filename ../images/tabular-feature_m-valign-bottom.png
2690 aligns the content of the current cell vertically to the bottom
2693 \begin_layout Labeling
2694 \labelwidthstring 00.00.0000
2695 \begin_inset Graphics
2696 filename ../images/tabular-feature_set-rotate-cell.png
2701 rotates the current cell or selection counter-clockwise by 90°
2704 \begin_layout Labeling
2705 \labelwidthstring 00.00.0000
2706 \begin_inset Graphics
2707 filename ../images/tabular-feature_set-rotate-tabular.png
2712 rotates the whole table counter-clockwise by 90°
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2717 \begin_inset Graphics
2718 filename ../images/tabular-feature_multicolumn.png
2723 sets the current cell or selection as a multicolumn
2726 \begin_layout Labeling
2727 \labelwidthstring 00.00.0000
2728 \begin_inset Graphics
2729 filename ../images/tabular-feature_multirow.png
2734 sets the current cell or selection as a multirow
2737 \begin_layout Standard
2738 \begin_inset Note Greyedout
2741 \begin_layout Plain Layout
2746 For the output the vertical alignment of the first cell in a row is used
2747 for all following cells in the row.
2755 \begin_layout Section
2757 \begin_inset Index idx
2760 \begin_layout Plain Layout
2769 \begin_layout Standard
2770 Additionally to the table dialog and toolbar, the menu
2772 Edit\SpecialChar \menuseparator
2775 allows you to add and delete border lines for the current row/column and
2776 to set the current selection as multicolumn.
2777 The menu is only available when the cursor is inside a table.
2780 \begin_layout Section
2782 \begin_inset CommandInset label
2784 name "sec:Table-Floats"
2789 \begin_inset Index idx
2792 \begin_layout Plain Layout
2799 \begin_inset Index idx
2802 \begin_layout Plain Layout
2811 \begin_layout Standard
2812 For general explanations about floats, have a look at section
2813 \begin_inset space ~
2817 \begin_inset CommandInset ref
2819 reference "sec:FloatIntroduction"
2826 \begin_layout Standard
2827 \begin_inset Float table
2833 \begin_layout Plain Layout
2834 \begin_inset Caption
2836 \begin_layout Plain Layout
2837 \begin_inset CommandInset label
2839 name "tab:a table float"
2851 \begin_layout Plain Layout
2853 \begin_inset Tabular
2854 <lyxtabular version="3" rows="3" columns="3">
2855 <features tabularvalignment="middle">
2856 <column alignment="center" valignment="top" width="0pt">
2857 <column alignment="center" valignment="top" width="0pt">
2858 <column alignment="center" valignment="top" width="0pt">
2860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2863 \begin_layout Plain Layout
2878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2881 \begin_layout Plain Layout
2896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2899 \begin_layout Plain Layout
2916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2919 \begin_layout Plain Layout
2934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2937 \begin_layout Plain Layout
2952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2955 \begin_layout Plain Layout
2972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2975 \begin_layout Plain Layout
2985 \begin_inset Formula $\int x^{2}dx$
2993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2996 \begin_layout Plain Layout
3006 \begin_inset Formula $\left[\begin{array}{cc}
3017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3020 \begin_layout Plain Layout
3030 \begin_inset Formula $1+1=2$
3051 \begin_layout Standard
3052 Table floats can be inserted using the menu
3054 Insert\SpecialChar \menuseparator
3055 Float\SpecialChar \menuseparator
3058 or the toolbar button
3059 \begin_inset Graphics
3060 filename ../images/float-insert_table.png
3069 \begin_layout Standard
3070 The float appears as a collapsible box with a caption that has the label
3072 \begin_inset Quotes eld
3076 \begin_inset space ~
3080 \begin_inset Quotes erd
3083 (# is the actual table number).
3084 You can insert tables in the float above or below the caption.
3087 \begin_layout Standard
3089 \begin_inset space ~
3093 \begin_inset CommandInset ref
3095 reference "tab:a table float"
3099 is an example table within a table float.
3102 \begin_layout Standard
3103 Having the caption above the table is the common rule that is unfortunately
3104 not supported in LaTeX's standard classes.
3105 This means that, if you are using the document classes
3121 , there will be no space between the caption and the table.
3122 To insert the needed space, add the following option to the load command
3123 of the LaTeX-package
3128 \begin_inset Index idx
3131 \begin_layout Plain Layout
3132 LaTeX-packages ! caption
3137 in your document preamble
3141 \begin_layout Plain Layout
3142 For more information have a look at section
3143 \begin_inset space ~
3147 \begin_inset CommandInset ref
3149 reference "sec:Caption-Placement"
3161 \begin_layout Standard
3167 \begin_layout Standard
3172 , which is described in section
3173 \begin_inset space ~
3177 \begin_inset CommandInset ref
3179 reference "sec:Caption-Formatting"
3183 , is used to adjust the caption format.
3186 \begin_layout Standard
3187 \begin_inset Index idx
3190 \begin_layout Plain Layout
3191 References ! to Tables
3196 Tables can be cross-referenced in the text by referencing their label.
3197 To do this insert a label in the caption using the menu
3199 Insert\SpecialChar \menuseparator
3202 or the toolbar button
3203 \begin_inset Graphics
3204 filename ../images/label-insert.png
3211 You can now refer to the label using the menu
3213 Insert\SpecialChar \menuseparator
3215 \begin_inset space ~
3220 or the toolbar button
3221 \begin_inset Graphics
3222 filename ../images/dialog-show-new-inset_ref.png
3229 \begin_inset Newline newline
3232 Referencing is explained in detail in section
3233 \begin_inset space ~
3237 \begin_inset CommandInset ref
3239 reference "sec:Referencing-Floats"
3246 \begin_layout Section
3248 \begin_inset CommandInset label
3250 name "sec:Longtables"
3255 \begin_inset Index idx
3258 \begin_layout Plain Layout
3265 \begin_inset Index idx
3268 \begin_layout Plain Layout
3277 \begin_layout Standard
3278 If the table is too long to fit on one page, you can use the option
3281 \begin_inset space ~
3285 \begin_inset space ~
3294 of the table dialog to split the table automatically over more pages.
3295 Doing this enables the following options:
3298 \begin_layout Description
3299 Header: The current row is defined to be a header row that appears on all
3300 pages of the longtable; except for the first page, if
3303 \begin_inset space ~
3309 This is therefore called the main header.
3312 \begin_layout Description
3314 \begin_inset space ~
3317 header: The current row is defined to be a header row that appears on the
3318 first page of the longtable.
3321 \begin_layout Description
3322 Footer: The current row is defined to be a footer row that appears on all
3323 pages of the longtable; except for the last page, if
3326 \begin_inset space ~
3334 \begin_layout Description
3336 \begin_inset space ~
3339 footer: The current row is defined to be a footer row that appears on the
3340 last page of the longtable.
3343 \begin_layout Description
3344 Caption: The current row contains the table caption.
3345 The row is reset as single column and a caption is inserted.
3346 More about longtable captions is explained in sec.
3347 \begin_inset space \thinspace{}
3351 \begin_inset CommandInset ref
3353 reference "sub:Longtable-Captions"
3360 \begin_layout Standard
3361 You can also specify a row where the table is split.
3362 See the following longtable to see how it works:
3365 \begin_layout Standard
3367 \begin_inset Tabular
3368 <lyxtabular version="3" rows="69" columns="3">
3369 <features islongtable="true" longtabularalignment="center">
3370 <column alignment="left" valignment="top" width="0cm">
3371 <column alignment="left" valignment="top" width="0pt">
3372 <column alignment="center" valignment="top" width="0pt">
3373 <row endfirsthead="true">
3374 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3377 \begin_layout Plain Layout
3380 Example Phone List (ignore the names)
3385 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3388 \begin_layout Plain Layout
3394 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3397 \begin_layout Plain Layout
3404 <row endfirsthead="true">
3405 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3408 \begin_layout Plain Layout
3416 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3419 \begin_layout Plain Layout
3425 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3428 \begin_layout Plain Layout
3437 <row endhead="true">
3438 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3441 \begin_layout Plain Layout
3449 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3452 \begin_layout Plain Layout
3458 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3461 \begin_layout Plain Layout
3468 <row endhead="true">
3469 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3472 \begin_layout Plain Layout
3480 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3483 \begin_layout Plain Layout
3489 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3492 \begin_layout Plain Layout
3501 <row endfoot="true">
3502 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3505 \begin_layout Plain Layout
3506 continued on next page
3511 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3514 \begin_layout Plain Layout
3520 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3523 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3534 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" usebox="none">
3545 \begin_layout Plain Layout
3551 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3554 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3565 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" usebox="none">
3576 \begin_layout Plain Layout
3582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3585 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3596 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" usebox="none">
3607 \begin_layout Plain Layout
3613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3616 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3627 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" usebox="none">
3638 \begin_layout Plain Layout
3644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3647 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3658 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" usebox="none">
3669 \begin_layout Plain Layout
3675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3678 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3689 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" usebox="none">
3700 \begin_layout Plain Layout
3706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3709 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3720 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" usebox="none">
3731 \begin_layout Plain Layout
3737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3740 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3751 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" usebox="none">
3762 \begin_layout Plain Layout
3768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3771 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3782 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" usebox="none">
3793 \begin_layout Plain Layout
3799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3802 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3813 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" usebox="none">
3824 \begin_layout Plain Layout
3830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3833 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3844 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" usebox="none">
3855 \begin_layout Plain Layout
3861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3864 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3875 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" usebox="none">
3886 \begin_layout Plain Layout
3892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3895 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3906 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" usebox="none">
3917 \begin_layout Plain Layout
3923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3926 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3937 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" usebox="none">
3948 \begin_layout Plain Layout
3954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3957 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3968 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" usebox="none">
3979 \begin_layout Plain Layout
3985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3988 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3999 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" usebox="none">
4010 \begin_layout Plain Layout
4016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4019 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4030 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" usebox="none">
4041 \begin_layout Plain Layout
4047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4050 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4061 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" usebox="none">
4072 \begin_layout Plain Layout
4078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4081 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4092 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" usebox="none">
4103 \begin_layout Plain Layout
4109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4112 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" usebox="none">
4134 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4143 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4154 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" usebox="none">
4165 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4174 \begin_layout Plain Layout
4182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4185 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" usebox="none">
4196 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4205 \begin_layout Plain Layout
4213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4216 \begin_layout Plain Layout
4224 <cell alignment="center" valignment="top" usebox="none">
4227 \begin_layout Plain Layout
4233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4236 \begin_layout Plain Layout
4244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4247 \begin_layout Plain Layout
4255 <cell alignment="center" valignment="top" usebox="none">
4258 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4267 \begin_layout Plain Layout
4275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4278 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" usebox="none">
4289 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4298 \begin_layout Plain Layout
4306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4309 \begin_layout Plain Layout
4317 <cell alignment="center" valignment="top" usebox="none">
4320 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4329 \begin_layout Plain Layout
4337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4340 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" usebox="none">
4351 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4360 \begin_layout Plain Layout
4368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4371 \begin_layout Plain Layout
4379 <cell alignment="center" valignment="top" usebox="none">
4382 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4391 \begin_layout Plain Layout
4399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4402 \begin_layout Plain Layout
4410 <cell alignment="center" valignment="top" usebox="none">
4413 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4422 \begin_layout Plain Layout
4430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4433 \begin_layout Plain Layout
4441 <cell alignment="center" valignment="top" usebox="none">
4444 \begin_layout Plain Layout
4450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4453 \begin_layout Plain Layout
4461 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4464 \begin_layout Plain Layout
4472 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4475 \begin_layout Plain Layout
4481 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4484 \begin_layout Plain Layout
4492 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4495 \begin_layout Plain Layout
4501 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4504 \begin_layout Plain Layout
4510 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4513 \begin_layout Plain Layout
4521 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4524 \begin_layout Plain Layout
4532 <cell alignment="center" valignment="top" usebox="none">
4535 \begin_layout Plain Layout
4541 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4544 \begin_layout Plain Layout
4552 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4555 \begin_layout Plain Layout
4563 <cell alignment="center" valignment="top" usebox="none">
4566 \begin_layout Plain Layout
4572 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4575 \begin_layout Plain Layout
4583 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4586 \begin_layout Plain Layout
4594 <cell alignment="center" valignment="top" usebox="none">
4597 \begin_layout Plain Layout
4603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4606 \begin_layout Plain Layout
4614 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4617 \begin_layout Plain Layout
4625 <cell alignment="center" valignment="top" usebox="none">
4628 \begin_layout Plain Layout
4634 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4637 \begin_layout Plain Layout
4645 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4648 \begin_layout Plain Layout
4656 <cell alignment="center" valignment="top" usebox="none">
4659 \begin_layout Plain Layout
4665 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4668 \begin_layout Plain Layout
4676 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4679 \begin_layout Plain Layout
4687 <cell alignment="center" valignment="top" usebox="none">
4690 \begin_layout Plain Layout
4696 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4699 \begin_layout Plain Layout
4707 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4710 \begin_layout Plain Layout
4718 <cell alignment="center" valignment="top" usebox="none">
4721 \begin_layout Plain Layout
4727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4730 \begin_layout Plain Layout
4738 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4741 \begin_layout Plain Layout
4749 <cell alignment="center" valignment="top" usebox="none">
4752 \begin_layout Plain Layout
4758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4761 \begin_layout Plain Layout
4769 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4772 \begin_layout Plain Layout
4780 <cell alignment="center" valignment="top" usebox="none">
4783 \begin_layout Plain Layout
4789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4792 \begin_layout Plain Layout
4800 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4803 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" usebox="none">
4814 \begin_layout Plain Layout
4820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4823 \begin_layout Plain Layout
4831 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4834 \begin_layout Plain Layout
4842 <cell alignment="center" valignment="top" usebox="none">
4845 \begin_layout Plain Layout
4851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4854 \begin_layout Plain Layout
4862 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4865 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" usebox="none">
4876 \begin_layout Plain Layout
4882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4885 \begin_layout Plain Layout
4893 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4896 \begin_layout Plain Layout
4904 <cell alignment="center" valignment="top" usebox="none">
4907 \begin_layout Plain Layout
4913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4916 \begin_layout Plain Layout
4924 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4927 \begin_layout Plain Layout
4935 <cell alignment="center" valignment="top" usebox="none">
4938 \begin_layout Plain Layout
4944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4947 \begin_layout Plain Layout
4955 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4958 \begin_layout Plain Layout
4966 <cell alignment="center" valignment="top" usebox="none">
4969 \begin_layout Plain Layout
4975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4978 \begin_layout Plain Layout
4986 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4989 \begin_layout Plain Layout
4997 <cell alignment="center" valignment="top" usebox="none">
5000 \begin_layout Plain Layout
5006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5009 \begin_layout Plain Layout
5017 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5020 \begin_layout Plain Layout
5028 <cell alignment="center" valignment="top" usebox="none">
5031 \begin_layout Plain Layout
5037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5040 \begin_layout Plain Layout
5048 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5051 \begin_layout Plain Layout
5059 <cell alignment="center" valignment="top" usebox="none">
5062 \begin_layout Plain Layout
5068 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5071 \begin_layout Plain Layout
5079 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5082 \begin_layout Plain Layout
5090 <cell alignment="center" valignment="top" usebox="none">
5093 \begin_layout Plain Layout
5099 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5102 \begin_layout Plain Layout
5110 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5113 \begin_layout Plain Layout
5121 <cell alignment="center" valignment="top" usebox="none">
5124 \begin_layout Plain Layout
5130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5133 \begin_layout Plain Layout
5141 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5144 \begin_layout Plain Layout
5152 <cell alignment="center" valignment="top" usebox="none">
5155 \begin_layout Plain Layout
5161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5164 \begin_layout Plain Layout
5172 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5175 \begin_layout Plain Layout
5183 <cell alignment="center" valignment="top" usebox="none">
5186 \begin_layout Plain Layout
5192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5195 \begin_layout Plain Layout
5203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5206 \begin_layout Plain Layout
5214 <cell alignment="center" valignment="top" usebox="none">
5217 \begin_layout Plain Layout
5223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5226 \begin_layout Plain Layout
5234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5237 \begin_layout Plain Layout
5245 <cell alignment="center" valignment="top" usebox="none">
5248 \begin_layout Plain Layout
5254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5257 \begin_layout Plain Layout
5265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5268 \begin_layout Plain Layout
5276 <cell alignment="center" valignment="top" usebox="none">
5279 \begin_layout Plain Layout
5285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5288 \begin_layout Plain Layout
5296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5299 \begin_layout Plain Layout
5307 <cell alignment="center" valignment="top" usebox="none">
5310 \begin_layout Plain Layout
5316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5319 \begin_layout Plain Layout
5327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5330 \begin_layout Plain Layout
5338 <cell alignment="center" valignment="top" usebox="none">
5341 \begin_layout Plain Layout
5347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5350 \begin_layout Plain Layout
5358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5361 \begin_layout Plain Layout
5369 <cell alignment="center" valignment="top" usebox="none">
5372 \begin_layout Plain Layout
5378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5381 \begin_layout Plain Layout
5389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5392 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5412 \begin_layout Plain Layout
5420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5423 \begin_layout Plain Layout
5431 <cell alignment="center" valignment="top" usebox="none">
5434 \begin_layout Plain Layout
5440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5443 \begin_layout Plain Layout
5451 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5454 \begin_layout Plain Layout
5462 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5465 \begin_layout Plain Layout
5471 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5474 \begin_layout Plain Layout
5481 <row endlastfoot="true">
5482 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5485 \begin_layout Plain Layout
5491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5494 \begin_layout Plain Layout
5500 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5503 \begin_layout Plain Layout
5518 \begin_layout Plain Layout
5522 addtocounter{table}{-1}
5528 \begin_inset Note Note
5531 \begin_layout Plain Layout
5532 See the first greyed-out note in section
5533 \begin_inset space ~
5537 \begin_inset CommandInset ref
5539 reference "sub:Longtable-Captions"
5543 for an explanation of this command.
5551 \begin_layout Subsection
5552 Footnotes in Longtables
5553 \begin_inset CommandInset label
5555 name "sub:Footnotes-in-Longtables"
5560 \begin_inset Index idx
5563 \begin_layout Plain Layout
5564 Longtables ! Footnotes
5572 \begin_layout Standard
5573 Footnotes can be inserted to every longtable cell.
5574 They appear at the bottom of the page where the table cell with the footnote
5577 \begin_inset space ~
5581 \begin_inset CommandInset ref
5583 reference "tab:DiffCaptions"
5587 has for example a footnote.
5590 \begin_layout Subsection
5592 \begin_inset Index idx
5595 \begin_layout Plain Layout
5596 Longtables ! Alignment
5604 \begin_layout Standard
5605 The horizontal alignment of longtables can be set in the table settings
5607 For left- and right-alignment the table will be directly at the page border.
5608 To add space between the table and the border one has to set the alignment
5609 to center and change the value of the LaTeX-lengths
5621 by inserting this line as TeX-Code before the longtable:
5624 \begin_layout Standard
5634 \begin_layout Standard
5635 The value can have any of the units listed in Table
5636 \begin_inset space ~
5640 \begin_inset CommandInset ref
5642 reference "tab:Units"
5653 controls the horizontal distance from the left page border to the longtable,
5660 the distance from the right side.
5661 The default value for both lengths is
5667 , which is in this case the same as an horizontal fill in LyX.
5670 \begin_layout Standard
5671 The following longtable was centered and
5687 \begin_layout Plain Layout
5703 \begin_layout Standard
5704 \begin_inset Tabular
5705 <lyxtabular version="3" rows="5" columns="5">
5706 <features islongtable="true" longtabularalignment="center">
5707 <column alignment="center" valignment="top" width="0">
5708 <column alignment="center" valignment="top" width="0pt">
5709 <column alignment="center" valignment="top" width="0">
5710 <column alignment="center" valignment="top" width="0">
5711 <column alignment="center" valignment="top" width="0">
5713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5716 \begin_layout Plain Layout
5722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5725 \begin_layout Plain Layout
5731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5734 \begin_layout Plain Layout
5740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5743 \begin_layout Plain Layout
5749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5752 \begin_layout Plain Layout
5760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5763 \begin_layout Plain Layout
5769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5790 \begin_layout Plain Layout
5796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5799 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5837 \begin_layout Plain Layout
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5846 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5893 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5913 \begin_layout Plain Layout
5919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5922 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5931 \begin_layout Plain Layout
5937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5940 \begin_layout Plain Layout
5955 \begin_layout Plain Layout
5972 \begin_layout Plain Layout
5976 addtocounter{table}{-1}
5982 \begin_inset Note Note
5985 \begin_layout Plain Layout
5986 See the first greyed-out note in section
5987 \begin_inset space ~
5991 \begin_inset CommandInset ref
5993 reference "sub:Longtable-Captions"
5997 for an explanation of this command.
6005 \begin_layout Subsection
6007 \begin_inset Index idx
6010 \begin_layout Plain Layout
6011 Longtables ! Captions
6017 \begin_inset CommandInset label
6019 name "sub:Longtable-Captions"
6026 \begin_layout Standard
6027 A longtable cannot be put into a table float because floats can only be
6029 But the caption environment of floats can also be used for longtables when
6030 you use the longtable option
6034 as described in sec.
6035 \begin_inset space \thinspace{}
6039 \begin_inset CommandInset ref
6041 reference "sec:Longtables"
6046 Only one table row can contain the caption.
6049 \begin_layout Standard
6050 Here is a short longtable to see how it works:
6053 \begin_layout Standard
6054 \begin_inset Tabular
6055 <lyxtabular version="3" rows="6" columns="5">
6056 <features islongtable="true" longtabularalignment="center">
6057 <column alignment="center" valignment="top" width="0">
6058 <column alignment="center" valignment="top" width="0">
6059 <column alignment="center" valignment="top" width="0">
6060 <column alignment="center" valignment="top" width="0">
6061 <column alignment="center" valignment="top" width="0">
6062 <row caption="true">
6063 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6066 \begin_layout Plain Layout
6067 \begin_inset Caption
6069 \begin_layout Plain Layout
6070 Longtable with caption
6071 \begin_inset Argument
6074 \begin_layout Plain Layout
6090 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6093 \begin_layout Plain Layout
6099 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6102 \begin_layout Plain Layout
6108 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6111 \begin_layout Plain Layout
6117 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6120 \begin_layout Plain Layout
6128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6131 \begin_layout Plain Layout
6137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6140 \begin_layout Plain Layout
6146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6149 \begin_layout Plain Layout
6155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6158 \begin_layout Plain Layout
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6167 \begin_layout Plain Layout
6175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6178 \begin_layout Plain Layout
6184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6187 \begin_layout Plain Layout
6193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6196 \begin_layout Plain Layout
6202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_layout Plain Layout
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6214 \begin_layout Plain Layout
6222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6225 \begin_layout Plain Layout
6231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6234 \begin_layout Plain Layout
6240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_layout Plain Layout
6249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6252 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6261 \begin_layout Plain Layout
6269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6272 \begin_layout Plain Layout
6278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_layout Plain Layout
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6299 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6308 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6319 \begin_layout Plain Layout
6325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6328 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6346 \begin_layout Plain Layout
6352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6355 \begin_layout Plain Layout
6369 \begin_layout Standard
6370 \begin_inset VSpace medskip
6374 \begin_inset Note Greyedout
6377 \begin_layout Plain Layout
6381 \begin_inset space ~
6386 The table number is increased for for every longtable, even if you did
6387 not set a caption for it.
6388 For this reason you could have the case that e.
6389 \begin_inset space \thinspace{}
6393 \begin_inset space \space{}
6397 \begin_inset space ~
6401 \begin_inset space ~
6404 2.1 in the list of tables if there are two longtables without captions.
6405 To avoid this you can add the following command in TeX-Code after every
6406 longtable without a caption:
6409 \begin_layout Plain Layout
6414 addtocounter{table}{-1}
6417 \begin_layout Plain Layout
6418 This is not needed when none of your longtables have a caption and you add
6419 the following code to the document preamble:
6422 \begin_layout Plain Layout
6432 \begin_inset Newline newline
6443 addtocounter{table}{-1}}
6451 \begin_layout Standard
6452 \begin_inset Note Greyedout
6455 \begin_layout Plain Layout
6459 \begin_inset space ~
6469 \begin_inset Index idx
6472 \begin_layout Plain Layout
6473 LaTeX-packages ! hyperref
6486 dialog to link cross-references, the link to a longtable caption will always
6487 point to the beginning of the document.
6495 \begin_layout Subsubsection
6496 References to Longtables
6497 \begin_inset Index idx
6500 \begin_layout Plain Layout
6501 Longtables ! References
6509 \begin_layout Standard
6510 \begin_inset Tabular
6511 <lyxtabular version="3" rows="6" columns="5">
6512 <features islongtable="true" longtabularalignment="center">
6513 <column alignment="center" valignment="top" width="0">
6514 <column alignment="center" valignment="top" width="0">
6515 <column alignment="center" valignment="top" width="0">
6516 <column alignment="center" valignment="top" width="0">
6517 <column alignment="center" valignment="top" width="0">
6518 <row caption="true">
6519 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6522 \begin_layout Plain Layout
6523 \begin_inset Caption
6525 \begin_layout Plain Layout
6526 Referenced longtable
6527 \begin_inset CommandInset label
6529 name "tab:RefExample"
6543 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6546 \begin_layout Plain Layout
6552 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6555 \begin_layout Plain Layout
6561 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6564 \begin_layout Plain Layout
6570 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6573 \begin_layout Plain Layout
6581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6584 \begin_layout Plain Layout
6590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6593 \begin_layout Plain Layout
6599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6602 \begin_layout Plain Layout
6608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6611 \begin_layout Plain Layout
6617 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6620 \begin_layout Plain Layout
6628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6631 \begin_layout Plain Layout
6637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6640 \begin_layout Plain Layout
6646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6649 \begin_layout Plain Layout
6655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6658 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6667 \begin_layout Plain Layout
6675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6678 \begin_layout Plain Layout
6684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6687 \begin_layout Plain Layout
6693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6696 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6705 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6714 \begin_layout Plain Layout
6722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6725 \begin_layout Plain Layout
6731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6752 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6761 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6772 \begin_layout Plain Layout
6778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6781 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6790 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6799 \begin_layout Plain Layout
6805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6808 \begin_layout Plain Layout
6822 \begin_layout Standard
6823 To reference a longtable, insert a label into the caption.
6826 \begin_layout Standard
6827 This is a reference to Table
6828 \begin_inset space ~
6832 \begin_inset CommandInset ref
6834 reference "tab:RefExample"
6841 \begin_layout Standard
6842 The caption layout can be set together with all other captions of your document
6843 using the LaTeX-package
6848 \begin_inset Index idx
6851 \begin_layout Plain Layout
6852 LaTeX-packages ! caption
6858 \begin_inset space ~
6862 \begin_inset CommandInset ref
6864 reference "sec:Caption-Formatting"
6871 \begin_layout Subsubsection
6873 \begin_inset Index idx
6876 \begin_layout Plain Layout
6877 Longtables ! Caption Width
6885 \begin_layout Standard
6886 The maximal width of of caption lines is defined by the length
6893 Its default value is 4
6894 \begin_inset space \thinspace{}
6898 To change it add the following command to your document preamble or as
6899 TeX-Code into your document before the longtable that should be affected
6902 \begin_layout Standard
6912 \begin_layout Standard
6913 where the width could have one of the units listed in appendix
6914 \begin_inset space ~
6918 \begin_inset CommandInset ref
6920 reference "cha:Units-available-in"
6927 \begin_layout Standard
6928 The following tables show the difference:
6931 \begin_layout Standard
6932 \begin_inset Tabular
6933 <lyxtabular version="3" rows="6" columns="5">
6934 <features islongtable="true" longtabularalignment="center">
6935 <column alignment="center" valignment="top" width="0">
6936 <column alignment="center" valignment="top" width="0">
6937 <column alignment="center" valignment="top" width="0">
6938 <column alignment="center" valignment="top" width="0">
6939 <column alignment="center" valignment="top" width="0">
6940 <row caption="true">
6941 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6944 \begin_layout Plain Layout
6945 \begin_inset Caption
6947 \begin_layout Plain Layout
6948 long full title with default width long full title with default width long
6949 full title with default width
6950 \begin_inset Argument
6953 \begin_layout Plain Layout
6954 caption with default width
6969 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6972 \begin_layout Plain Layout
6978 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6981 \begin_layout Plain Layout
6987 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6990 \begin_layout Plain Layout
6996 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6999 \begin_layout Plain Layout
7007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7010 \begin_layout Plain Layout
7016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7028 \begin_layout Plain Layout
7034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7037 \begin_layout Plain Layout
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7046 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7075 \begin_layout Plain Layout
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7084 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7093 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7122 \begin_layout Plain Layout
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7131 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7140 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7169 \begin_layout Plain Layout
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7178 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7187 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7216 \begin_layout Plain Layout
7222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7225 \begin_layout Plain Layout
7231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7234 \begin_layout Plain Layout
7248 \begin_layout Standard
7252 \begin_layout Plain Layout
7264 \begin_inset Tabular
7265 <lyxtabular version="3" rows="6" columns="5">
7266 <features islongtable="true" longtabularalignment="center">
7267 <column alignment="center" valignment="top" width="0">
7268 <column alignment="center" valignment="top" width="0">
7269 <column alignment="center" valignment="top" width="0">
7270 <column alignment="center" valignment="top" width="0">
7271 <column alignment="center" valignment="top" width="0">
7272 <row caption="true">
7273 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7276 \begin_layout Plain Layout
7277 \begin_inset Caption
7279 \begin_layout Plain Layout
7280 long full title with width set to 5
7281 \begin_inset space \thinspace{}
7284 cm long full title with width set to 5
7285 \begin_inset space \thinspace{}
7288 cm long full title with width set to 5
7289 \begin_inset space \thinspace{}
7293 \begin_inset Argument
7296 \begin_layout Plain Layout
7298 \begin_inset space \thinspace{}
7302 \begin_inset space \thinspace{}
7306 \begin_inset space \thinspace{}
7324 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7327 \begin_layout Plain Layout
7333 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7336 \begin_layout Plain Layout
7342 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7345 \begin_layout Plain Layout
7351 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7354 \begin_layout Plain Layout
7362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7365 \begin_layout Plain Layout
7371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7374 \begin_layout Plain Layout
7380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7383 \begin_layout Plain Layout
7389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7392 \begin_layout Plain Layout
7398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7401 \begin_layout Plain Layout
7409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7412 \begin_layout Plain Layout
7418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7430 \begin_layout Plain Layout
7436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7439 \begin_layout Plain Layout
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7448 \begin_layout Plain Layout
7456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7459 \begin_layout Plain Layout
7465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7468 \begin_layout Plain Layout
7474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7477 \begin_layout Plain Layout
7483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7486 \begin_layout Plain Layout
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7495 \begin_layout Plain Layout
7503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7506 \begin_layout Plain Layout
7512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7515 \begin_layout Plain Layout
7521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7524 \begin_layout Plain Layout
7530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7533 \begin_layout Plain Layout
7539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7542 \begin_layout Plain Layout
7550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7553 \begin_layout Plain Layout
7559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7562 \begin_layout Plain Layout
7568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7580 \begin_layout Plain Layout
7586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7589 \begin_layout Plain Layout
7603 \begin_layout Standard
7607 \begin_layout Plain Layout
7621 \begin_layout Standard
7622 \begin_inset Note Greyedout
7625 \begin_layout Plain Layout
7630 When the LaTeX-package
7635 \begin_inset Index idx
7638 \begin_layout Plain Layout
7639 LaTeX-packages ! caption
7644 is used, as in this document, the full page width is used for the caption
7645 when you use the default value of 4
7646 \begin_inset space \thinspace{}
7656 To get in this case exactly a 4
7657 \begin_inset space \thinspace{}
7660 in wide caption, you can either use a value slightly different from 4.0
7661 \begin_inset space \thinspace{}
7665 \begin_inset space \thinspace{}
7669 \begin_inset space \space{}
7673 \begin_inset space \thinspace{}
7676 in, or the LaTeX-command
7680 captionsetup{width=value}
7682 that is provided by the
7694 \begin_layout Subsubsection
7695 Different Captions for Table Pages
7696 \begin_inset Index idx
7699 \begin_layout Plain Layout
7700 Longtables ! Different Captions for Pages
7708 \begin_layout Standard
7709 When the table captions for the following pages should differ from the one
7710 of the first table page, insert a caption with the TeX code command
7713 \begin_layout Standard
7718 caption*{caption text}
7725 \begin_layout Standard
7726 in a dummy caption row that is marked as a header.
7728 \begin_inset space ~
7732 \begin_inset CommandInset ref
7734 reference "tab:DiffCaptions"
7738 is an example of a longtable with different heading where the second caption
7739 doesn't include the table number.
7742 \begin_layout Standard
7744 \begin_inset Tabular
7745 <lyxtabular version="3" rows="59" columns="3">
7746 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7747 <column alignment="left" valignment="top" width="0cm">
7748 <column alignment="left" valignment="top" width="0pt">
7749 <column alignment="center" valignment="top" width="0pt">
7750 <row caption="true">
7751 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7754 \begin_layout Plain Layout
7755 \begin_inset Caption
7757 \begin_layout Plain Layout
7759 \begin_inset CommandInset label
7761 name "tab:DiffCaptions"
7766 \begin_inset Argument
7769 \begin_layout Plain Layout
7785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7788 \begin_layout Plain Layout
7794 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7797 \begin_layout Plain Layout
7804 <row endfirsthead="true">
7805 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7808 \begin_layout Plain Layout
7811 Example Phone List (ignore the names)
7816 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7819 \begin_layout Plain Layout
7825 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7828 \begin_layout Plain Layout
7835 <row endfirsthead="true">
7836 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7839 \begin_layout Plain Layout
7847 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7850 \begin_layout Plain Layout
7856 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7859 \begin_layout Plain Layout
7868 <row endhead="true">
7869 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7872 \begin_layout Plain Layout
7876 \begin_layout Plain Layout
7880 caption*{Continued Example Phone List}
7894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7897 \begin_layout Plain Layout
7903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7906 \begin_layout Plain Layout
7913 <row endhead="true">
7914 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7917 \begin_layout Plain Layout
7925 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7928 \begin_layout Plain Layout
7934 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7937 \begin_layout Plain Layout
7944 <row endhead="true">
7945 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7948 \begin_layout Plain Layout
7956 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7959 \begin_layout Plain Layout
7965 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7968 \begin_layout Plain Layout
7977 <row endfoot="true">
7978 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7981 \begin_layout Plain Layout
7982 continued on next page
7987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7990 \begin_layout Plain Layout
7996 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7999 \begin_layout Plain Layout
8007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8010 \begin_layout Plain Layout
8018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8021 \begin_layout Plain Layout
8027 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8030 \begin_layout Plain Layout
8038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8041 \begin_layout Plain Layout
8049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8052 \begin_layout Plain Layout
8058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8061 \begin_layout Plain Layout
8069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8072 \begin_layout Plain Layout
8080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8083 \begin_layout Plain Layout
8089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8092 \begin_layout Plain Layout
8100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8103 \begin_layout Plain Layout
8111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8114 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8123 \begin_layout Plain Layout
8131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8134 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8453 \begin_layout Plain Layout
8464 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8467 \begin_layout Plain Layout
8473 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8476 \begin_layout Plain Layout
8484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8487 \begin_layout Plain Layout
8495 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8498 \begin_layout Plain Layout
8504 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8507 \begin_layout Plain Layout
8515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8518 \begin_layout Plain Layout
8526 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8529 \begin_layout Plain Layout
8535 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8538 \begin_layout Plain Layout
8546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8549 \begin_layout Plain Layout
8557 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8560 \begin_layout Plain Layout
8566 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8569 \begin_layout Plain Layout
8577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8580 \begin_layout Plain Layout
8588 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8591 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8600 \begin_layout Plain Layout
8608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8611 \begin_layout Plain Layout
8619 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8622 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8631 \begin_layout Plain Layout
8639 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8642 \begin_layout Plain Layout
8650 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8653 \begin_layout Plain Layout
8659 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Plain Layout
8670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8673 \begin_layout Plain Layout
8681 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8684 \begin_layout Plain Layout
8690 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8693 \begin_layout Plain Layout
8701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8704 \begin_layout Plain Layout
8712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8715 \begin_layout Plain Layout
8721 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8724 \begin_layout Plain Layout
8732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8735 \begin_layout Plain Layout
8743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8746 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8755 \begin_layout Plain Layout
8763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8766 \begin_layout Plain Layout
8774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8777 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8786 \begin_layout Plain Layout
8794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8797 \begin_layout Plain Layout
8805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8808 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8817 \begin_layout Plain Layout
8825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8828 \begin_layout Plain Layout
8836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8839 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8848 \begin_layout Plain Layout
8856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8859 \begin_layout Plain Layout
8867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8870 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8879 \begin_layout Plain Layout
8887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8890 \begin_layout Plain Layout
8898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8901 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8910 \begin_layout Plain Layout
8918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8921 \begin_layout Plain Layout
8929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8932 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8941 \begin_layout Plain Layout
8949 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8952 \begin_layout Plain Layout
8960 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8963 \begin_layout Plain Layout
8969 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8972 \begin_layout Plain Layout
8980 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8983 \begin_layout Plain Layout
8989 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8992 \begin_layout Plain Layout
8998 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9001 \begin_layout Plain Layout
9009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9012 \begin_layout Plain Layout
9020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9023 \begin_layout Plain Layout
9029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9032 \begin_layout Plain Layout
9040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9043 \begin_layout Plain Layout
9051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9054 \begin_layout Plain Layout
9060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9063 \begin_layout Plain Layout
9071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9074 \begin_layout Plain Layout
9082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9085 \begin_layout Plain Layout
9091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9094 \begin_layout Plain Layout
9102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9105 \begin_layout Plain Layout
9113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9116 \begin_layout Plain Layout
9122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9125 \begin_layout Plain Layout
9133 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9136 \begin_layout Plain Layout
9144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9147 \begin_layout Plain Layout
9153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9156 \begin_layout Plain Layout
9164 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9167 \begin_layout Plain Layout
9175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9178 \begin_layout Plain Layout
9184 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9187 \begin_layout Plain Layout
9195 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9198 \begin_layout Plain Layout
9206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9209 \begin_layout Plain Layout
9215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9218 \begin_layout Plain Layout
9226 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9229 \begin_layout Plain Layout
9237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9240 \begin_layout Plain Layout
9246 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9249 \begin_layout Plain Layout
9257 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9260 \begin_layout Plain Layout
9268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9271 \begin_layout Plain Layout
9277 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9280 \begin_layout Plain Layout
9288 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9291 \begin_layout Plain Layout
9299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9302 \begin_layout Plain Layout
9308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9311 \begin_layout Plain Layout
9319 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9322 \begin_layout Plain Layout
9330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9333 \begin_layout Plain Layout
9339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9342 \begin_layout Plain Layout
9350 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9353 \begin_layout Plain Layout
9361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9364 \begin_layout Plain Layout
9370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9373 \begin_layout Plain Layout
9381 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9384 \begin_layout Plain Layout
9392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9395 \begin_layout Plain Layout
9401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9404 \begin_layout Plain Layout
9412 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9415 \begin_layout Plain Layout
9423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9426 \begin_layout Plain Layout
9432 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9435 \begin_layout Plain Layout
9443 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9446 \begin_layout Plain Layout
9454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9457 \begin_layout Plain Layout
9463 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9466 \begin_layout Plain Layout
9474 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9477 \begin_layout Plain Layout
9485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9488 \begin_layout Plain Layout
9494 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9497 \begin_layout Plain Layout
9505 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9508 \begin_layout Plain Layout
9516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9519 \begin_layout Plain Layout
9525 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9528 \begin_layout Plain Layout
9536 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9539 \begin_layout Plain Layout
9547 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9550 \begin_layout Plain Layout
9556 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9559 \begin_layout Plain Layout
9567 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9570 \begin_layout Plain Layout
9578 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9581 \begin_layout Plain Layout
9587 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9590 \begin_layout Plain Layout
9598 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9601 \begin_layout Plain Layout
9609 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9612 \begin_layout Plain Layout
9618 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9621 \begin_layout Plain Layout
9635 \begin_layout Section
9636 Special Longtable Issues
9637 \begin_inset CommandInset label
9639 name "sec:Special-Longtable-Issues"
9646 \begin_layout Subsection
9647 Longtable Calculation
9648 \begin_inset Index idx
9651 \begin_layout Plain Layout
9652 Longtables ! Calculation
9660 \begin_layout Standard
9661 LaTeX calculates the height of table pages and their page breaks using so
9663 Chunks are parts of tables that held at the same time in LaTeX's memory.
9664 The default value was historically set to only 20 table rows.
9665 If you are using longtables with many pages this may slow down the creation
9667 You can safely increase the chunk size to values of 100-1000 by adding
9668 this command line to your document preamble:
9671 \begin_layout Standard
9676 setcounter{LTchunksize}{100}
9679 \begin_layout Subsection
9680 Floats and Longtables
9681 \begin_inset Index idx
9684 \begin_layout Plain Layout
9693 \begin_layout Standard
9694 There might be problems when a float appears on the same page where a longtable
9696 To avoid such a situation, insert a
9697 \begin_inset Quotes eld
9701 \begin_inset Quotes erd
9706 Insert\SpecialChar \menuseparator
9707 Formatting\SpecialChar \menuseparator
9709 \begin_inset space ~
9714 ) before your longtable.
9717 \begin_layout Subsection
9719 \begin_inset Index idx
9722 \begin_layout Plain Layout
9723 Longtables ! Forced Page Breaks
9731 \begin_layout Standard
9732 By default tables are only broken between rows.
9733 If you have a cell with multiples lines and want to have a page break within
9734 the cell, insert the new line command
9735 \begin_inset Quotes eld
9747 \begin_inset Quotes erd
9750 as TeX-Code at the point of the cell where it can be broken.
9759 command you have to insert in TeX-Code as many
9760 \begin_inset Quotes eld
9768 \begin_inset Quotes erd
9771 characters as the number of the following table columns.
9776 is the character to separate table cells.
9777 Write in TeX-Code after each
9781 the content of the corresponding following cell and delete the content
9783 \begin_inset Newline newline
9794 command, insert as many
9798 characters as the number of table columns before the current column.
9800 \begin_inset space ~
9804 \begin_inset CommandInset ref
9806 reference "tab:ForcedPagebreak"
9810 the cell that should be broken is in the second column followed by another
9812 Therefore the following command was inserted in the cell as TeX-Code after
9814 \begin_inset Quotes eld
9822 \begin_inset Quotes erd
9828 \begin_layout Standard
9838 \begin_inset Newline newline
9844 \begin_layout Standard
9846 \begin_inset Quotes eld
9850 \begin_inset Quotes erd
9853 in the third column of the row was deleted.
9860 is only needed when a page break should definitely occur at this position,
9861 otherwise it would be a conditional break.
9862 If your footer row of the longtable has for a certain reason no upper line
9863 but you would have a horizontal line where the cell is broken, use this
9867 \begin_layout Standard
9875 \begin_inset Newline newline
9883 \begin_layout Standard
9884 When the cell to be broken is in the last column, the command
9887 \begin_layout Standard
9897 \begin_layout Standard
9898 must be inserted as TeX-Code at the beginning of the cell.
9899 This ensures that the part of the cell that will be displayed on the new
9900 page appears with the full width.
9903 \begin_layout Standard
9905 \begin_inset Tabular
9906 <lyxtabular version="3" rows="38" columns="3">
9907 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9908 <column alignment="left" valignment="top" width="0cm">
9909 <column alignment="left" valignment="top" width="3cm">
9910 <column alignment="center" valignment="top" width="0pt">
9911 <row caption="true">
9912 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9915 \begin_layout Plain Layout
9916 \begin_inset Caption
9918 \begin_layout Plain Layout
9919 Table with forced page break in table cell
9920 \begin_inset CommandInset label
9922 name "tab:ForcedPagebreak"
9927 \begin_inset Argument
9930 \begin_layout Plain Layout
9931 Table with forced page break in table cell
9946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9949 \begin_layout Plain Layout
9955 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9965 <row endfirsthead="true">
9966 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9972 Example Phone List (ignore the names)
9977 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9980 \begin_layout Plain Layout
9986 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9989 \begin_layout Plain Layout
9996 <row endfirsthead="true">
9997 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10000 \begin_layout Plain Layout
10008 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10011 \begin_layout Plain Layout
10017 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10020 \begin_layout Plain Layout
10029 <row endhead="true">
10030 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10033 \begin_layout Plain Layout
10037 \begin_layout Plain Layout
10041 caption*{Continued Example Phone List}
10055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10067 \begin_layout Plain Layout
10074 <row endhead="true">
10075 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10078 \begin_layout Plain Layout
10086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10089 \begin_layout Plain Layout
10095 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10098 \begin_layout Plain Layout
10105 <row endhead="true">
10106 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10109 \begin_layout Plain Layout
10117 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10120 \begin_layout Plain Layout
10126 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10129 \begin_layout Plain Layout
10138 <row endfoot="true">
10139 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10142 \begin_layout Plain Layout
10143 continued on next page
10148 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10151 \begin_layout Plain Layout
10157 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10160 \begin_layout Plain Layout
10168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10171 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10182 \begin_layout Plain Layout
10188 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10191 \begin_layout Plain Layout
10199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10202 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10213 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10222 \begin_layout Plain Layout
10230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10233 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10244 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10253 \begin_layout Plain Layout
10261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10264 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10275 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10284 \begin_layout Plain Layout
10292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10295 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10306 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10315 \begin_layout Plain Layout
10323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10326 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10337 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10346 \begin_layout Plain Layout
10354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10357 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10368 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10377 \begin_layout Plain Layout
10385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10388 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10399 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10408 \begin_layout Plain Layout
10416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10419 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10430 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10439 \begin_layout Plain Layout
10447 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10450 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10461 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10470 \begin_layout Plain Layout
10478 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10481 \begin_layout Plain Layout
10489 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10492 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10501 \begin_layout Plain Layout
10509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10512 \begin_layout Plain Layout
10520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10523 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10532 \begin_layout Plain Layout
10540 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10543 \begin_layout Plain Layout
10551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10554 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10563 \begin_layout Plain Layout
10571 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10574 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10585 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10594 \begin_layout Plain Layout
10602 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10605 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10616 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10625 \begin_layout Plain Layout
10633 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10636 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10647 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10656 \begin_layout Plain Layout
10664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10667 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10678 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10687 \begin_layout Plain Layout
10695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10698 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10709 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10718 \begin_layout Plain Layout
10726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10729 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10740 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10749 \begin_layout Plain Layout
10757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10760 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10771 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10780 \begin_layout Plain Layout
10788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10791 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10802 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10811 \begin_layout Plain Layout
10819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10822 \begin_layout Plain Layout
10830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10833 \begin_layout Plain Layout
10839 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10842 \begin_layout Plain Layout
10850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10853 \begin_layout Plain Layout
10861 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10864 \begin_layout Plain Layout
10866 Fürst von Montecompatri, 11.
10867 Fürst von Sulmona und Vivaro, 10.
10868 Fürst von Rossano, 5.
10869 Herzog von Canemorte, 11.
10870 Herzog von Palombara, 5.
10871 Herzog von Castelchiodato,
10875 \begin_layout Plain Layout
10886 \begin_layout Plain Layout
10894 Herzog von Poggionativo, 11.
10895 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10896 Graf von Valinfreda, 11.
10897 Baron von Cropalati, 11.
10898 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10903 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10906 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10917 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10928 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10937 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10948 \begin_layout Plain Layout
10956 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10959 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10968 \begin_layout Plain Layout
10976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10979 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10990 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11010 \begin_layout Plain Layout
11018 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11021 \begin_layout Plain Layout
11027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11030 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11041 \begin_layout Plain Layout
11049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11052 \begin_layout Plain Layout
11058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11061 \begin_layout Plain Layout
11069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11072 \begin_layout Plain Layout
11080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11083 \begin_layout Plain Layout
11089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11092 \begin_layout Plain Layout
11100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11103 \begin_layout Plain Layout
11111 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11114 \begin_layout Plain Layout
11120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11123 \begin_layout Plain Layout
11131 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11134 \begin_layout Plain Layout
11142 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11145 \begin_layout Plain Layout
11151 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11154 \begin_layout Plain Layout
11168 \begin_layout Section
11169 Multiple Lines Columns and Rows
11172 \begin_layout Subsection
11173 Multiple Lines in Table Cells
11174 \begin_inset CommandInset label
11176 name "sub:Multiple-Lines-in"
11181 \begin_inset Index idx
11184 \begin_layout Plain Layout
11185 Multiple Lines in Table Cells
11191 \begin_inset Index idx
11194 \begin_layout Plain Layout
11203 \begin_layout Standard
11205 \begin_inset Float table
11211 \begin_layout Plain Layout
11212 \begin_inset Caption
11214 \begin_layout Plain Layout
11215 \begin_inset CommandInset label
11217 name "tab:Table-with-multiple"
11221 Table with multiple lines in cells
11229 \begin_layout Plain Layout
11231 \begin_inset Tabular
11232 <lyxtabular version="3" rows="3" columns="3">
11233 <features tabularvalignment="middle">
11234 <column alignment="center" valignment="middle" width="2.5cm">
11235 <column alignment="center" valignment="middle" width="0">
11236 <column alignment="center" valignment="middle" width="0">
11238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11241 \begin_layout Plain Layout
11243 \begin_inset Newline linebreak
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11254 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11263 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11283 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11292 \begin_layout Plain Layout
11300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11303 \begin_layout Plain Layout
11309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11312 \begin_layout Plain Layout
11318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11321 \begin_layout Plain Layout
11340 \begin_layout Standard
11341 Setting a fixed width for a column enables you to enter text as a paragraph
11342 with multiple lines and hyphenation.
11345 \begin_layout Standard
11347 \begin_inset space ~
11351 \begin_inset CommandInset ref
11353 reference "tab:Table-with-multiple"
11357 , create a 3×3 table, mark the first cell and right-click on it.
11358 In the appearing table dialog we set a cell width of 2.5
11359 \begin_inset space \thinspace{}
11362 cm and choose centered for the vertical and horizontal alignment.
11363 The vertical alignment is used for all cells of the row.
11364 As our text is smaller than 2.5
11365 \begin_inset space \thinspace{}
11368 cm, only one line will appear.
11369 To get two lines, a justified line break (shortcut
11372 arg "newline-insert linebreak"
11376 If the text is wider than the set cell width, it will automatically be
11377 broken to several lines.
11380 \begin_layout Standard
11381 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11382 by LaTeX if it is the first entry.
11383 Therefore you need to insert something to prevent the word not being the
11385 So add a horizontal space of 0
11386 \begin_inset space \thinspace{}
11389 pt before the word.
11390 As the space is zero, it doesn't change the output.
11392 \begin_inset space ~
11396 \begin_inset CommandInset ref
11398 reference "tab:Table-with-and"
11405 \begin_layout Standard
11406 \begin_inset Float table
11412 \begin_layout Plain Layout
11413 \begin_inset Caption
11415 \begin_layout Plain Layout
11416 \begin_inset CommandInset label
11418 name "tab:Table-with-and"
11422 Table with and without hyphenation
11430 \begin_layout Plain Layout
11431 \begin_inset space \hfill{}
11435 \begin_inset Tabular
11436 <lyxtabular version="3" rows="3" columns="3">
11437 <features tabularvalignment="middle">
11438 <column alignment="center" valignment="middle" width="2.5cm">
11439 <column alignment="center" valignment="middle" width="0">
11440 <column alignment="center" valignment="middle" width="0">
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11446 verylongtablecellword
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11454 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11463 \begin_layout Plain Layout
11471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11474 \begin_layout Plain Layout
11480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11483 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11492 \begin_layout Plain Layout
11500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11503 \begin_layout Plain Layout
11509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11512 \begin_layout Plain Layout
11518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11521 \begin_layout Plain Layout
11533 \begin_inset space \hfill{}
11537 \begin_inset Tabular
11538 <lyxtabular version="3" rows="3" columns="3">
11539 <features tabularvalignment="middle">
11540 <column alignment="center" valignment="middle" width="2.5cm">
11541 <column alignment="center" valignment="middle" width="0">
11542 <column alignment="center" valignment="middle" width="0">
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Plain Layout
11548 \begin_inset space \hspace{}
11552 verylongtablecellword
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11560 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11569 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11589 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11598 \begin_layout Plain Layout
11606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11609 \begin_layout Plain Layout
11615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11618 \begin_layout Plain Layout
11624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11627 \begin_layout Plain Layout
11639 \begin_inset space \hfill{}
11650 \begin_layout Subsection
11652 \begin_inset CommandInset label
11654 name "sub:Multicolumns"
11659 \begin_inset Index idx
11662 \begin_layout Plain Layout
11669 \begin_inset Index idx
11672 \begin_layout Plain Layout
11673 Table ! Multicolumns
11681 \begin_layout Subsubsection
11685 \begin_layout Standard
11686 To merge cells over multiple columns, select as many cells within a row
11687 as you want to merge and use either the table-toolbar button
11688 \begin_inset Graphics
11689 filename ../images/tabular-feature_multicolumn.png
11691 scaleBeforeRotation
11697 Edit\SpecialChar \menuseparator
11698 Table\SpecialChar \menuseparator
11701 , or right click on the marked cells and choose
11705 in the context menu.
11708 \begin_layout Standard
11709 Multicolumns have there own cell settings.
11710 That means changing cell borders, cell alignment, and the width only affects
11712 Here is an example table with a multicolumn cell in the first row and one
11713 in the last row without the upper border:
11716 \begin_layout Standard
11718 \begin_inset Tabular
11719 <lyxtabular version="3" rows="3" columns="4">
11720 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11721 <column alignment="center" valignment="top" width="0pt">
11722 <column alignment="center" valignment="middle" width="0">
11723 <column alignment="center" valignment="top" width="0in">
11724 <column alignment="center" valignment="top" width="0pt">
11726 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11729 \begin_layout Plain Layout
11735 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11738 \begin_layout Plain Layout
11744 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11747 \begin_layout Plain Layout
11753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11756 \begin_layout Plain Layout
11764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11767 \begin_layout Plain Layout
11782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11785 \begin_layout Plain Layout
11791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11794 \begin_layout Plain Layout
11800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11803 \begin_layout Plain Layout
11811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11814 \begin_layout Plain Layout
11820 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11823 \begin_layout Plain Layout
11829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11832 \begin_layout Plain Layout
11838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11841 \begin_layout Plain Layout
11855 \begin_layout Subsubsection
11856 Multicolumn Calculations
11857 \begin_inset CommandInset label
11859 name "sub:Multicolumn-Calculations"
11864 \begin_inset Index idx
11867 \begin_layout Plain Layout
11868 Multicolumns ! Calculations
11876 \begin_layout Standard
11877 LyX supports multicolumns directly, but we have to take account of the cell
11878 width of the columns spanned by the multicolumn cell.
11881 \begin_layout Standard
11882 \begin_inset Float table
11888 \begin_layout Plain Layout
11889 \begin_inset Caption
11891 \begin_layout Plain Layout
11892 \begin_inset CommandInset label
11894 name "tab:Table-with-centered"
11898 Table with centered multicolumn text above two columns that have exactly
11899 half the width of the multicolumn cell
11900 \begin_inset Argument
11903 \begin_layout Plain Layout
11904 Perfect multicolumn table
11917 \begin_layout Plain Layout
11919 \begin_inset Tabular
11920 <lyxtabular version="3" rows="3" columns="3">
11921 <features tabularvalignment="middle">
11922 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11923 <column alignment="center" valignment="middle" width="0">
11924 <column alignment="center" valignment="top" width="0">
11926 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11929 \begin_layout Plain Layout
11930 multiple lines multicolumn
11935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11938 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11947 \begin_layout Plain Layout
11955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11958 \begin_layout Plain Layout
11964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11967 \begin_layout Plain Layout
11973 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11976 \begin_layout Plain Layout
11984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11987 \begin_layout Plain Layout
11993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11996 \begin_layout Plain Layout
12002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12005 \begin_layout Plain Layout
12024 \begin_layout Standard
12025 To create for example Table
12026 \begin_inset space ~
12030 \begin_inset CommandInset ref
12032 reference "tab:Table-with-centered"
12036 , mark the first two cells in the first row of a 3×3 table and right-click
12038 Now choose for this cell
12047 \begin_inset space \thinspace{}
12050 cm in the table dialog.
12051 The merged columns should have exactly half the width of the multicolumn
12052 cell, so that you would set a width of 1.25
12053 \begin_inset space \thinspace{}
12056 cm for the first column.
12057 The second column has then automatically a width of 1.25
12058 \begin_inset space \thinspace{}
12061 cm (multicolumn width - width of first column).
12062 This was done for Table
12063 \begin_inset space ~
12067 \begin_inset CommandInset ref
12069 reference "tab:Table-without-half"
12076 \begin_layout Standard
12077 \begin_inset Float table
12082 \begin_layout Plain Layout
12083 \begin_inset Caption
12085 \begin_layout Plain Layout
12086 \begin_inset CommandInset label
12088 name "tab:Table-without-half"
12092 Table where the spanned table columns are not exactly half the width of
12093 the multicolumn cell
12094 \begin_inset Argument
12097 \begin_layout Plain Layout
12098 Imperfect multicolumn table
12111 \begin_layout Plain Layout
12113 \begin_inset Tabular
12114 <lyxtabular version="3" rows="3" columns="3">
12115 <features tabularvalignment="middle">
12116 <column alignment="center" valignment="top" width="1.25cm">
12117 <column alignment="center" valignment="top" width="0">
12118 <column alignment="center" valignment="top" width="0">
12120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12123 \begin_layout Plain Layout
12124 multiple lines multicolumn
12129 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12132 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12141 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12152 \begin_layout Plain Layout
12158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12161 \begin_layout Plain Layout
12167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12170 \begin_layout Plain Layout
12178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12181 \begin_layout Plain Layout
12187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12190 \begin_layout Plain Layout
12196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12199 \begin_layout Plain Layout
12218 \begin_layout Standard
12219 You can see that the first column is not half the width of the multicolumn
12220 cell, it is a bit bigger.
12221 The reason is that the specified width of a cell
12222 \begin_inset Formula $W_{g}$
12225 is not its total width
12226 \begin_inset Formula $W_{\mathrm{tot}}$
12229 because a cell is always a bit larger than specified.
12231 \begin_inset space ~
12235 \begin_inset CommandInset ref
12237 reference "cha:Explanation-of-Equation"
12241 explains this in detail.
12244 \begin_layout Standard
12246 \begin_inset Formula $W_{g\, n}$
12249 which the user needs to set when
12253 columns are spanned can be calculated, so that each column has a total
12255 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12259 \begin_inset Formula
12261 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12269 \begin_layout Standard
12270 In our case we have
12271 \begin_inset Formula $n=2$
12275 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12278 cm and the default values for the lengths, so that equation
12279 \begin_inset CommandInset ref
12286 \begin_inset Formula
12288 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12296 \begin_layout Standard
12297 To enable calculations in LaTeX, the LaTeX-package
12301 must be loaded with the document preamble line
12302 \begin_inset Index idx
12305 \begin_layout Plain Layout
12306 LaTeX-packages ! calc
12314 \begin_layout Standard
12322 \begin_layout Standard
12323 LyX does not allow you to calculate lengths in the
12327 field of the table dialog.
12328 Therefore you have to format the column by inserting a LaTeX-argument in
12330 Here is an overview about the arguments:
12333 \begin_layout Itemize
12338 creates cell with a fixed width, its text is vertically top-aligned
12341 \begin_layout Itemize
12346 creates cell with a fixed width, its text is vertically centered
12349 \begin_layout Itemize
12354 creates cell with a fixed width, its text is vertically bottom-aligned
12357 \begin_layout Standard
12358 By entering a LaTeX-argument, all cell settings set in the table dialog
12362 \begin_layout Standard
12363 \begin_inset Note Greyedout
12366 \begin_layout Plain Layout
12371 Due to a bug, LyX shows the overwritten settings anyway.
12379 \begin_layout Standard
12380 As the text should be horizontally centered, the command
12387 You can now enter the following LaTeX-argument for the first spanned column:
12390 \begin_layout Standard
12395 centering}m{1.25cm-6.2pt}
12398 \begin_layout Standard
12403 means, that the commands inside the braces are applied before the cell
12407 \begin_layout Standard
12408 Although we have chosen centered alignment for the text of the multicolumn
12409 cell, it is still left aligned.
12410 This is because LyX only applies the alignment to single columns.
12411 So for the multicolumn cell we have to use the LaTeX-argument
12414 \begin_layout Standard
12422 \begin_layout Subsection
12424 \begin_inset CommandInset label
12426 name "sub:Multirows"
12431 \begin_inset Index idx
12434 \begin_layout Plain Layout
12441 \begin_inset Index idx
12444 \begin_layout Plain Layout
12453 \begin_layout Standard
12454 To merge cells over multiple rows, select as many cells within a column
12455 as you want to merge and use either the table-toolbar button
12456 \begin_inset Graphics
12457 filename ../images/tabular-feature_multirow.png
12459 scaleBeforeRotation
12465 Edit\SpecialChar \menuseparator
12466 Table\SpecialChar \menuseparator
12469 , or right click on the marked cells and choose
12473 in the context menu.
12476 \begin_layout Standard
12477 Here is an example table with a multirow in the first column:
12480 \begin_layout Standard
12482 \begin_inset Tabular
12483 <lyxtabular version="3" rows="3" columns="3">
12484 <features tabularvalignment="middle">
12485 <column alignment="center" valignment="top" width="0pt">
12486 <column alignment="center" valignment="top" width="0">
12487 <column alignment="center" valignment="top" width="0">
12489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12492 \begin_layout Plain Layout
12498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12501 \begin_layout Plain Layout
12507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12510 \begin_layout Plain Layout
12518 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12521 \begin_layout Plain Layout
12527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12530 \begin_layout Plain Layout
12536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12539 \begin_layout Plain Layout
12547 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12550 \begin_layout Plain Layout
12556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12559 \begin_layout Plain Layout
12565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12568 \begin_layout Plain Layout
12582 \begin_layout Standard
12583 The width of multirow cells is set by setting the width and alignment for
12589 shifts the content of the multirow up/down if the offset is positive/negative.
12592 \begin_layout Standard
12593 If the column of a multirow cell has no explicit width, the multirow cell
12594 inherits the alignment of the column.
12595 Otherwise it is by default left-aligned.
12596 To override the default, renew the command
12605 \begin_layout Standard
12617 \begin_layout Standard
12618 in the document preamble.
12619 Then all entries of multirow cells in the document are centered.
12620 If centering is only needed for several tables, you can renew the command
12621 in a TeX-Code box just before the table instead of the preamble.
12622 If the text should be right-aligned, replace
12635 To return to left-alignment
12644 \begin_layout Standard
12645 This is an example table with a right-aligned multirow cell that has a vertical
12647 \begin_inset space \thinspace{}
12651 \begin_inset space \thinspace{}
12657 \begin_layout Standard
12663 \begin_layout Plain Layout
12677 \begin_inset Tabular
12678 <lyxtabular version="3" rows="4" columns="3">
12679 <features tabularvalignment="middle">
12680 <column alignment="center" valignment="top" width="3cm">
12681 <column alignment="center" valignment="top" width="0">
12682 <column alignment="center" valignment="top" width="0">
12684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12687 \begin_layout Plain Layout
12693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12696 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12705 \begin_layout Plain Layout
12713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12716 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12725 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12734 \begin_layout Plain Layout
12742 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12745 \begin_layout Plain Layout
12751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12763 \begin_layout Plain Layout
12771 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12774 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12783 \begin_layout Plain Layout
12789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12792 \begin_layout Plain Layout
12807 \begin_layout Plain Layout
12823 \begin_layout Section
12825 \begin_inset CommandInset label
12827 name "sec:Formal-Tables"
12832 \begin_inset Index idx
12835 \begin_layout Plain Layout
12844 \begin_layout Standard
12845 Tables are often typeset in books similar to Table
12846 \begin_inset space ~
12850 \begin_inset CommandInset ref
12852 reference "tab:Example-booktabs-table"
12857 This kind of tables is called
12858 \begin_inset Quotes eld
12866 \begin_inset Quotes erd
12870 To make a table a formal table use the option
12878 tab of the table dialog.
12881 \begin_layout Standard
12882 \begin_inset Float table
12888 \begin_layout Plain Layout
12889 \begin_inset Caption
12891 \begin_layout Plain Layout
12892 \begin_inset CommandInset label
12894 name "tab:Example-booktabs-table"
12898 Example booktabs-table
12906 \begin_layout Plain Layout
12908 \begin_inset Tabular
12909 <lyxtabular version="3" rows="8" columns="4">
12910 <features booktabs="true" tabularvalignment="middle">
12911 <column alignment="center" valignment="top" width="0">
12912 <column alignment="center" valignment="top" width="0">
12913 <column alignment="center" valignment="top" width="0">
12914 <column alignment="center" valignment="top" width="0">
12916 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12919 \begin_layout Plain Layout
12925 <cell alignment="center" valignment="top" topline="true" usebox="none">
12928 \begin_layout Plain Layout
12930 \begin_inset space \thinspace{}
12938 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12941 \begin_layout Plain Layout
12943 \begin_inset space \thinspace{}
12951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12954 \begin_layout Plain Layout
12962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12965 \begin_layout Plain Layout
12969 \begin_layout Plain Layout
12982 \begin_layout Plain Layout
12991 Detector thickness in µm
12996 <cell alignment="center" valignment="top" usebox="none">
12999 \begin_layout Plain Layout
13005 <cell alignment="center" valignment="top" usebox="none">
13008 \begin_layout Plain Layout
13014 <cell alignment="center" valignment="top" usebox="none">
13017 \begin_layout Plain Layout
13025 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13028 \begin_layout Plain Layout
13034 <cell alignment="center" valignment="top" topline="true" usebox="none">
13037 \begin_layout Plain Layout
13043 <cell alignment="center" valignment="top" topline="true" usebox="none">
13046 \begin_layout Plain Layout
13052 <cell alignment="center" valignment="top" topline="true" usebox="none">
13055 \begin_layout Plain Layout
13062 <row topspace="default">
13063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13066 \begin_layout Plain Layout
13067 Spatial resolution in µm
13072 <cell alignment="center" valignment="top" usebox="none">
13075 \begin_layout Plain Layout
13081 <cell alignment="center" valignment="top" usebox="none">
13084 \begin_layout Plain Layout
13090 <cell alignment="center" valignment="top" usebox="none">
13093 \begin_layout Plain Layout
13100 <row topspace="default">
13101 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13104 \begin_layout Plain Layout
13106 \begin_inset Formula $f_{\mathrm{max}}$
13114 <cell alignment="center" valignment="top" usebox="none">
13117 \begin_layout Plain Layout
13123 <cell alignment="center" valignment="top" usebox="none">
13126 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" usebox="none">
13135 \begin_layout Plain Layout
13142 <row topspace="default">
13143 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13146 \begin_layout Plain Layout
13150 \begin_layout Plain Layout
13154 cmidrule(l{10pt}){1-1}
13159 LSF-spatial resolution
13164 <cell alignment="center" valignment="top" usebox="none">
13167 \begin_layout Plain Layout
13173 <cell alignment="center" valignment="top" usebox="none">
13176 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" usebox="none">
13185 \begin_layout Plain Layout
13193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13196 \begin_layout Plain Layout
13202 <cell alignment="center" valignment="top" usebox="none">
13205 \begin_layout Plain Layout
13211 <cell alignment="center" valignment="top" usebox="none">
13214 \begin_layout Plain Layout
13220 <cell alignment="center" valignment="top" usebox="none">
13223 \begin_layout Plain Layout
13231 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13234 \begin_layout Plain Layout
13240 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13243 \begin_layout Plain Layout
13249 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13252 \begin_layout Plain Layout
13258 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13261 \begin_layout Plain Layout
13280 \begin_layout Standard
13281 Spaces to table rows can be added using the
13285 tab of the table dialog as described in section
13286 \begin_inset space ~
13290 \begin_inset CommandInset ref
13292 reference "sub:Row-Spacing"
13299 \begin_layout Standard
13300 Unlike normal tables, formal tables have no vertical table lines.
13301 The horizontal table lines can be set as for normal tables but they appear
13302 with different widths in the output:
13303 \begin_inset Newline newline
13306 The first and the last table line have a default width of 0.08
13307 \begin_inset space \thinspace{}
13310 em while the other lines have a default width of 0.05
13311 \begin_inset space \thinspace{}
13317 \begin_layout Standard
13318 The default widths can be changed with the following preamble lines
13321 \begin_layout Standard
13331 \begin_inset Newline newline
13343 \begin_layout Standard
13344 This example is for the first line, the so called
13349 If you want to change the width for the last line, replace
13358 To change the width for the other lines replace
13367 You can use all units listed in appendix
13368 \begin_inset space ~
13372 \begin_inset CommandInset ref
13374 reference "cha:Units-available-in"
13381 \begin_layout Standard
13382 Lines that do not span all table columns can be created by setting a table
13383 line for multicolumn cells.
13384 LyX will then internally use the command
13390 to create this line.
13394 \begin_layout Standard
13399 cmidrule[width](trim){startcol-endcol}
13402 \begin_layout Standard
13409 are currently not supported by LyX so you have to use TeX-Code to be able
13417 s can manually be created by inserting the command as TeX-Code as the first
13418 cell entry of the first cell of a row.
13419 The line is then drawn in the output above the current row.
13422 \begin_layout Standard
13423 The default for the width is 0.03
13424 \begin_inset space \thinspace{}
13428 Startcol is the number of the column where the line starts and endcol the
13429 column number where the line ends.
13430 The endcol always needs to be specified, also when the line should span
13432 The optional parameter trim could be either
13440 where the trimwidth is also optional.
13441 Using for example the parameter
13445 means that the line is trimmed from its left end by 2
13446 \begin_inset space \thinspace{}
13450 If you don't specify the trimwidth the lines are trimmed by the default
13452 \begin_inset space \thinspace{}
13458 \begin_layout Standard
13459 \begin_inset VSpace bigskip
13463 \begin_inset space ~
13467 \begin_inset CommandInset ref
13469 reference "tab:Example-booktabs-table"
13473 was created using the commands
13476 \begin_layout Standard
13486 \begin_layout Standard
13487 at the beginning of the second row and
13490 \begin_layout Standard
13495 cmidrule(l{10pt}){1-1}
13498 \begin_layout Standard
13502 \begin_layout Standard
13503 \begin_inset VSpace bigskip
13509 \begin_layout Standard
13510 You might want to have overlapping
13517 \begin_inset space ~
13521 \begin_inset CommandInset ref
13523 reference "tab:Special-booktabs-table"
13528 This can be achieved with the TeX-Code command
13531 \begin_layout Standard
13539 \begin_layout Standard
13540 The command that was used for the second row of Table
13541 \begin_inset space ~
13545 \begin_inset CommandInset ref
13547 reference "tab:Special-booktabs-table"
13554 \begin_layout Standard
13568 \begin_layout Standard
13569 The command for the sixth row is
13572 \begin_layout Standard
13584 \begin_layout Standard
13585 \begin_inset VSpace bigskip
13591 \begin_layout Standard
13592 If you are anyway not satisfied with the border line spacing, you can use
13593 the following command to produce lines that span over all table columns
13598 \begin_layout Standard
13603 specialrule{width}{space above}{space below}
13606 \begin_layout Standard
13607 For more information about these features, refer to the manual of the LaTeX-pack
13613 \begin_inset CommandInset citation
13620 \begin_inset Index idx
13623 \begin_layout Plain Layout
13624 LaTeX-packages ! booktabs
13632 \begin_layout Standard
13633 \begin_inset Float table
13639 \begin_layout Plain Layout
13640 \begin_inset Caption
13642 \begin_layout Plain Layout
13643 \begin_inset CommandInset label
13645 name "tab:Special-booktabs-table"
13649 Special booktabs-table
13657 \begin_layout Plain Layout
13659 \begin_inset Tabular
13660 <lyxtabular version="3" rows="8" columns="4">
13661 <features booktabs="true" tabularvalignment="middle">
13662 <column alignment="center" valignment="top" width="0">
13663 <column alignment="center" valignment="top" width="0">
13664 <column alignment="center" valignment="top" width="0">
13665 <column alignment="center" valignment="top" width="0">
13667 <cell alignment="center" valignment="top" topline="true" usebox="none">
13670 \begin_layout Plain Layout
13676 <cell alignment="center" valignment="top" topline="true" usebox="none">
13679 \begin_layout Plain Layout
13681 \begin_inset space \thinspace{}
13689 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13692 \begin_layout Plain Layout
13694 \begin_inset space \thinspace{}
13702 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13705 \begin_layout Plain Layout
13713 <cell alignment="center" valignment="top" usebox="none">
13716 \begin_layout Plain Layout
13720 \begin_layout Plain Layout
13733 \begin_layout Plain Layout
13746 \begin_layout Plain Layout
13759 \begin_layout Plain Layout
13768 Detector thickness in µm
13773 <cell alignment="center" valignment="top" usebox="none">
13776 \begin_layout Plain Layout
13782 <cell alignment="center" valignment="top" usebox="none">
13785 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" usebox="none">
13794 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" topline="true" usebox="none">
13805 \begin_layout Plain Layout
13811 <cell alignment="center" valignment="top" topline="true" usebox="none">
13814 \begin_layout Plain Layout
13820 <cell alignment="center" valignment="top" topline="true" usebox="none">
13823 \begin_layout Plain Layout
13829 <cell alignment="center" valignment="top" topline="true" usebox="none">
13832 \begin_layout Plain Layout
13839 <row topspace="default">
13840 <cell alignment="center" valignment="top" usebox="none">
13843 \begin_layout Plain Layout
13844 Spatial resolution in µm
13849 <cell alignment="center" valignment="top" usebox="none">
13852 \begin_layout Plain Layout
13858 <cell alignment="center" valignment="top" usebox="none">
13861 \begin_layout Plain Layout
13867 <cell alignment="center" valignment="top" usebox="none">
13870 \begin_layout Plain Layout
13877 <row topspace="default">
13878 <cell alignment="center" valignment="top" usebox="none">
13881 \begin_layout Plain Layout
13883 \begin_inset Formula $f_{\mathrm{max}}$
13891 <cell alignment="center" valignment="top" usebox="none">
13894 \begin_layout Plain Layout
13900 <cell alignment="center" valignment="top" usebox="none">
13903 \begin_layout Plain Layout
13909 <cell alignment="center" valignment="top" usebox="none">
13912 \begin_layout Plain Layout
13920 <cell alignment="center" valignment="top" topline="true" usebox="none">
13923 \begin_layout Plain Layout
13927 \begin_layout Plain Layout
13940 \begin_layout Plain Layout
13949 LSF-spatial resolution
13954 <cell alignment="center" valignment="top" topline="true" usebox="none">
13957 \begin_layout Plain Layout
13963 <cell alignment="center" valignment="top" topline="true" usebox="none">
13966 \begin_layout Plain Layout
13972 <cell alignment="center" valignment="top" topline="true" usebox="none">
13975 \begin_layout Plain Layout
13983 <cell alignment="center" valignment="top" usebox="none">
13986 \begin_layout Plain Layout
13992 <cell alignment="center" valignment="top" usebox="none">
13995 \begin_layout Plain Layout
14001 <cell alignment="center" valignment="top" usebox="none">
14004 \begin_layout Plain Layout
14010 <cell alignment="center" valignment="top" usebox="none">
14013 \begin_layout Plain Layout
14021 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14024 \begin_layout Plain Layout
14030 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14033 \begin_layout Plain Layout
14039 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14042 \begin_layout Plain Layout
14048 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14051 \begin_layout Plain Layout
14070 \begin_layout Section
14071 Vertical Table Alignment
14072 \begin_inset Index idx
14075 \begin_layout Plain Layout
14084 \begin_layout Standard
14085 To align tables vertically in a text line the table must be inside a box.
14086 The box can then be vertically aligned as described in section
14087 \begin_inset space ~
14091 \begin_inset CommandInset ref
14093 reference "sec:Box-Dialog"
14100 \begin_layout Standard
14101 In the following example the tables are inside a minipage
14105 \begin_layout Plain Layout
14106 Minipages are described in section
14107 \begin_inset space ~
14111 \begin_inset CommandInset ref
14113 reference "sec:Minipages"
14122 box that has a width of 15
14123 \begin_inset space \thinspace{}
14129 \begin_layout Itemize
14131 \begin_inset Box Frameless
14141 height_special "totalheight"
14144 \begin_layout Plain Layout
14145 \begin_inset Tabular
14146 <lyxtabular version="3" rows="3" columns="3">
14147 <features tabularvalignment="middle">
14148 <column alignment="center" valignment="top" width="0">
14149 <column alignment="center" valignment="top" width="0">
14150 <column alignment="center" valignment="top" width="0">
14152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14155 \begin_layout Plain Layout
14161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14164 \begin_layout Plain Layout
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14173 \begin_layout Plain Layout
14181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14184 \begin_layout Plain Layout
14190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14193 \begin_layout Plain Layout
14199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14202 \begin_layout Plain Layout
14210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14213 \begin_layout Plain Layout
14219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14222 \begin_layout Plain Layout
14228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14231 \begin_layout Plain Layout
14251 \begin_layout Plain Layout
14263 \begin_inset Box Frameless
14273 height_special "totalheight"
14276 \begin_layout Plain Layout
14277 \begin_inset Tabular
14278 <lyxtabular version="3" rows="3" columns="3">
14279 <features tabularvalignment="middle">
14280 <column alignment="center" valignment="top" width="0">
14281 <column alignment="center" valignment="top" width="0">
14282 <column alignment="center" valignment="top" width="0">
14284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14287 \begin_layout Plain Layout
14293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14296 \begin_layout Plain Layout
14302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14305 \begin_layout Plain Layout
14313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14316 \begin_layout Plain Layout
14322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14325 \begin_layout Plain Layout
14331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14334 \begin_layout Plain Layout
14342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14345 \begin_layout Plain Layout
14351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14354 \begin_layout Plain Layout
14360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14363 \begin_layout Plain Layout
14383 \begin_layout Plain Layout
14393 \begin_layout Itemize
14395 \begin_inset Box Frameless
14405 height_special "totalheight"
14408 \begin_layout Plain Layout
14409 \begin_inset Tabular
14410 <lyxtabular version="3" rows="3" columns="3">
14411 <features tabularvalignment="middle">
14412 <column alignment="center" valignment="top" width="0">
14413 <column alignment="center" valignment="top" width="0">
14414 <column alignment="center" valignment="top" width="0">
14416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14419 \begin_layout Plain Layout
14425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14428 \begin_layout Plain Layout
14434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14437 \begin_layout Plain Layout
14445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14448 \begin_layout Plain Layout
14454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14457 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14466 \begin_layout Plain Layout
14474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14477 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14486 \begin_layout Plain Layout
14492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14495 \begin_layout Plain Layout
14514 \begin_layout Itemize
14516 \begin_inset Box Frameless
14526 height_special "totalheight"
14529 \begin_layout Plain Layout
14530 \begin_inset Tabular
14531 <lyxtabular version="3" rows="3" columns="3">
14532 <features tabularvalignment="middle">
14533 <column alignment="center" valignment="top" width="0">
14534 <column alignment="center" valignment="top" width="0">
14535 <column alignment="center" valignment="top" width="0">
14537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14540 \begin_layout Plain Layout
14546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14549 \begin_layout Plain Layout
14555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14558 \begin_layout Plain Layout
14566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14569 \begin_layout Plain Layout
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14578 \begin_layout Plain Layout
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14587 \begin_layout Plain Layout
14595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14598 \begin_layout Plain Layout
14604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14607 \begin_layout Plain Layout
14613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14616 \begin_layout Plain Layout
14636 \begin_layout Plain Layout
14648 \begin_inset Box Frameless
14658 height_special "totalheight"
14661 \begin_layout Plain Layout
14662 \begin_inset Tabular
14663 <lyxtabular version="3" rows="3" columns="3">
14664 <features tabularvalignment="middle">
14665 <column alignment="center" valignment="top" width="0">
14666 <column alignment="center" valignment="top" width="0">
14667 <column alignment="center" valignment="top" width="0">
14669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14672 \begin_layout Plain Layout
14678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14681 \begin_layout Plain Layout
14687 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14690 \begin_layout Plain Layout
14698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14701 \begin_layout Plain Layout
14707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14710 \begin_layout Plain Layout
14716 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14719 \begin_layout Plain Layout
14727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14730 \begin_layout Plain Layout
14736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14739 \begin_layout Plain Layout
14745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14748 \begin_layout Plain Layout
14768 \begin_layout Plain Layout
14778 \begin_layout Standard
14779 As you will see, the content of the first and last table row is not correctly
14781 To get this alignment, the minipage box must be set into a raisebox
14785 \begin_layout Plain Layout
14786 Raiseboxes are described in section
14787 \begin_inset space ~
14791 \begin_inset CommandInset ref
14793 reference "sub:Vertical-Alignment"
14803 In the example above the second table in the first item is aligned using
14804 the TeX-Code-command
14807 \begin_layout Standard
14817 \begin_layout Standard
14819 After the box the closing brace
14823 is inserted as TeX-Code.
14824 For the second table in the last item the command
14827 \begin_layout Standard
14837 \begin_layout Standard
14841 \begin_layout Standard
14842 \begin_inset Note Greyedout
14845 \begin_layout Plain Layout
14850 The alignment of the table row content to the surrounding text line is
14852 The required value for the
14858 command for this alignment depends on the document font, the font size,
14859 and the table line thickness.
14867 \begin_layout Section
14869 \begin_inset CommandInset label
14871 name "sec:Colored-Tables"
14876 \begin_inset Index idx
14879 \begin_layout Plain Layout
14888 \begin_layout Subsection
14890 \begin_inset Index idx
14893 \begin_layout Plain Layout
14894 Table Color ! for Cells
14900 \begin_inset Index idx
14903 \begin_layout Plain Layout
14904 Color ! for Table Cells
14912 \begin_layout Standard
14913 \begin_inset Float table
14919 \begin_layout Plain Layout
14920 \begin_inset Caption
14922 \begin_layout Plain Layout
14923 \begin_inset CommandInset label
14925 name "tab:Table-colored-without"
14929 Table colored without using the package
14934 \begin_inset Argument
14937 \begin_layout Plain Layout
14938 Table without colortbl
14951 \begin_layout Plain Layout
14953 \begin_inset Tabular
14954 <lyxtabular version="3" rows="3" columns="3">
14955 <features tabularvalignment="middle">
14956 <column alignment="center" valignment="top" width="0">
14957 <column alignment="center" valignment="top" width="0">
14958 <column alignment="center" valignment="top" width="0">
14960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14963 \begin_layout Plain Layout
14971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14974 \begin_layout Plain Layout
14982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14985 \begin_layout Plain Layout
14995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14998 \begin_layout Plain Layout
15006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15009 \begin_layout Plain Layout
15017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15020 \begin_layout Plain Layout
15030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15033 \begin_layout Plain Layout
15041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15044 \begin_layout Plain Layout
15052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15055 \begin_layout Plain Layout
15076 \begin_layout Standard
15077 If you only need colored text, mark the cells and choose a color in the
15080 Edit\SpecialChar \menuseparator
15082 \begin_inset space ~
15088 This was used to create Table
15089 \begin_inset space ~
15093 \begin_inset CommandInset ref
15095 reference "tab:Table-colored-without"
15100 In any other case you have to use the LaTeX-package
15105 \begin_inset Index idx
15108 \begin_layout Plain Layout
15109 LaTeX-packages ! colortbl
15117 \begin_layout Standard
15121 \begin_layout Plain Layout
15131 \begin_inset Note Note
15134 \begin_layout Plain Layout
15135 The following section part will only be displayed when the LaTeX-package
15148 \begin_layout Standard
15149 To create colored tables,
15153 must be loaded in the preamble with the line
15156 \begin_layout Standard
15161 usepackage{colortbl}
15164 \begin_layout Standard
15165 The color of a column is adjusted with the command
15168 \begin_layout Standard
15173 columncolor{name of color}
15176 \begin_layout Standard
15182 More about the command
15186 is contained in section
15187 \begin_inset space ~
15191 \begin_inset CommandInset ref
15193 reference "sub:Multicolumn-Calculations"
15200 \begin_layout Standard
15201 The following color names are predefined:
15204 \begin_layout Standard
15238 \begin_layout Standard
15239 \begin_inset VSpace medskip
15245 \begin_layout Standard
15246 You can also define your own color with the command
15249 \begin_layout Standard
15254 definecolor{color name}{color model}{color values}
15257 \begin_layout Standard
15258 The color model can be
15261 \begin_layout Labeling
15262 \labelwidthstring 00.00.0000
15263 cmyk: cyan, magenta, yellow, black
15266 \begin_layout Labeling
15267 \labelwidthstring 00.00.0000
15268 rgb: red, green blue
15271 \begin_layout Labeling
15272 \labelwidthstring 00.00.0000
15276 \begin_layout Standard
15277 and the color values are comma separated numbers between 0 and 1 describing
15278 the factor for the corresponding color of the color model.
15281 \begin_layout Standard
15283 \begin_inset space \thinspace{}
15287 \begin_inset space \space{}
15294 " in the preamble with
15297 \begin_layout Standard
15302 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15305 \begin_layout Standard
15313 \begin_layout Standard
15318 definecolor{lightgray}{gray}{0.8}
15321 \begin_layout Standard
15322 \begin_inset VSpace medskip
15328 \begin_layout Standard
15329 Lines are colored with the command
15332 \begin_layout Standard
15337 rowcolor{name of color}
15340 \begin_layout Standard
15341 and cells are colored with the command
15344 \begin_layout Standard
15349 cellcolor{name of color}
15352 \begin_layout Standard
15353 Both commands are inserted at the beginning of a cell as TeX-Code.
15356 \begin_layout Standard
15357 To color characters in the table, mark the cells and use the LyX menu
15359 Edit\SpecialChar \menuseparator
15361 \begin_inset space ~
15367 If a cell contains TeX-Code mark only the characters, otherwise the colored
15368 TeX-Code will cause LaTeX-errors.
15371 \begin_layout Standard
15372 \begin_inset Note Greyedout
15375 \begin_layout Plain Layout
15380 Not all DVI-viewers are able to display self-defined colors.
15388 \begin_layout Standard
15389 \begin_inset VSpace bigskip
15395 \begin_layout Standard
15397 \begin_inset space ~
15401 \begin_inset CommandInset ref
15403 reference "tab:Table-colored-using"
15407 do the following: The color of the first column should be
15415 \begin_layout Standard
15420 columncolor{darkgreen}
15425 \begin_layout Standard
15426 as LaTeX-argument for this column.
15427 The first row should be blue, therefore the TeX-Code command
15430 \begin_layout Standard
15438 \begin_layout Standard
15439 is inserted to the first cell of this row.
15440 Note that this overwrites the column color for the first cell.
15441 The last cell of the last row is colored magenta by inserting the TeX-Code
15445 \begin_layout Standard
15453 \begin_layout Standard
15454 The characters could now be colored using the menu
15456 Edit\SpecialChar \menuseparator
15458 \begin_inset space ~
15466 \begin_layout Standard
15467 \begin_inset Float table
15473 \begin_layout Plain Layout
15474 \begin_inset Caption
15476 \begin_layout Plain Layout
15477 \begin_inset CommandInset label
15479 name "tab:Table-colored-using"
15483 Table colored using the package
15488 \begin_inset Argument
15491 \begin_layout Plain Layout
15492 Table with colortbl
15505 \begin_layout Plain Layout
15507 \begin_inset Tabular
15508 <lyxtabular version="3" rows="3" columns="3">
15509 <features tabularvalignment="middle">
15510 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15511 <column alignment="center" valignment="top" width="0">
15512 <column alignment="center" valignment="top" width="0">
15514 <cell alignment="center" valignment="top" usebox="none">
15517 \begin_layout Plain Layout
15521 \begin_layout Plain Layout
15537 <cell alignment="center" valignment="top" usebox="none">
15540 \begin_layout Plain Layout
15548 <cell alignment="center" valignment="top" usebox="none">
15551 \begin_layout Plain Layout
15561 <cell alignment="center" valignment="top" usebox="none">
15564 \begin_layout Plain Layout
15572 <cell alignment="center" valignment="top" usebox="none">
15575 \begin_layout Plain Layout
15583 <cell alignment="center" valignment="top" usebox="none">
15586 \begin_layout Plain Layout
15596 <cell alignment="center" valignment="top" usebox="none">
15599 \begin_layout Plain Layout
15607 <cell alignment="center" valignment="top" usebox="none">
15610 \begin_layout Plain Layout
15618 <cell alignment="center" valignment="top" usebox="none">
15621 \begin_layout Plain Layout
15625 \begin_layout Plain Layout
15654 \begin_layout Standard
15658 \begin_layout Plain Layout
15668 \begin_inset Note Note
15671 \begin_layout Plain Layout
15672 The following will be displayed when the LaTeX-package
15684 \begin_layout Standard
15685 You need to install the package
15689 to see the content of this section in the output.
15692 \begin_layout Standard
15696 \begin_layout Plain Layout
15708 \begin_layout Subsection
15710 \begin_inset Index idx
15713 \begin_layout Plain Layout
15714 Table Color ! for Lines
15720 \begin_inset Index idx
15723 \begin_layout Plain Layout
15724 Color ! for Table Lines
15732 \begin_layout Standard
15733 As described in section
15734 \begin_inset space ~
15738 \begin_inset CommandInset ref
15740 reference "sub:Line-Thickness"
15744 , the line thickness for all lines in a table can be adjusted with the length
15753 \begin_inset space \thinspace{}
15756 pt for all tables of this section.
15760 \begin_layout Plain Layout
15766 arrayrulewidth}{1.5pt}
15774 \begin_layout Standard
15775 To color vertical lines for example with green, create the following column
15776 format in the document preamble, according to the description in section
15777 \begin_inset space ~
15781 \begin_inset CommandInset ref
15783 reference "sub:Customized-Format"
15790 \begin_layout Standard
15795 newcolumntype{W}{!{
15802 \begin_layout Standard
15804 \begin_inset space ~
15808 \begin_inset CommandInset ref
15810 reference "tab:Table-with-vertical-colored"
15818 was used for the last column and
15822 for the other columns.
15825 \begin_layout Standard
15826 If you want to have several colors, define more column formats.
15829 \begin_layout Standard
15830 \begin_inset Float table
15836 \begin_layout Plain Layout
15837 \begin_inset Caption
15839 \begin_layout Plain Layout
15840 \begin_inset CommandInset label
15842 name "tab:Table-with-vertical-colored"
15846 Table with colored vertical lines
15854 \begin_layout Plain Layout
15856 \begin_inset Tabular
15857 <lyxtabular version="3" rows="3" columns="3">
15858 <features tabularvalignment="middle">
15859 <column alignment="center" valignment="top" width="0" special="Wc">
15860 <column alignment="center" valignment="top" width="0" special="Wc">
15861 <column alignment="center" valignment="top" width="0" special="WcW">
15863 <cell alignment="center" valignment="top" topline="true" usebox="none">
15866 \begin_layout Plain Layout
15872 <cell alignment="center" valignment="top" topline="true" usebox="none">
15875 \begin_layout Plain Layout
15881 <cell alignment="center" valignment="top" topline="true" usebox="none">
15884 \begin_layout Plain Layout
15892 <cell alignment="center" valignment="top" topline="true" usebox="none">
15895 \begin_layout Plain Layout
15901 <cell alignment="center" valignment="top" topline="true" usebox="none">
15904 \begin_layout Plain Layout
15910 <cell alignment="center" valignment="top" topline="true" usebox="none">
15913 \begin_layout Plain Layout
15921 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15924 \begin_layout Plain Layout
15930 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15933 \begin_layout Plain Layout
15939 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15942 \begin_layout Plain Layout
15961 \begin_layout Standard
15962 \begin_inset VSpace bigskip
15965 To color horizontal lines for example with red, as in Table
15966 \begin_inset space ~
15970 \begin_inset CommandInset ref
15972 reference "tab:Table-with-horizontal-colored"
15976 , insert these commands in TeX-Code before the table or table float:
15979 \begin_layout Standard
15989 \begin_inset Newline newline
15997 \begin_inset Newline newline
16001 \begin_inset Phantom HPhantom
16004 \begin_layout Plain Layout
16007 \begin_inset space ~
16017 arrayrulecolor{red}
16021 arrayrulecolor{black}}
16024 \begin_layout Standard
16028 \begin_layout Plain Layout
16039 \begin_layout Plain Layout
16048 \begin_layout Plain Layout
16052 arrayrulecolor{red}
16056 arrayrulecolor{black}}
16062 \begin_inset Float table
16068 \begin_layout Plain Layout
16069 \begin_inset Caption
16071 \begin_layout Plain Layout
16072 \begin_inset CommandInset label
16074 name "tab:Table-with-horizontal-colored"
16078 Table with colored horizontal lines
16086 \begin_layout Plain Layout
16088 \begin_inset Tabular
16089 <lyxtabular version="3" rows="3" columns="3">
16090 <features tabularvalignment="middle">
16091 <column alignment="center" valignment="top" width="0">
16092 <column alignment="center" valignment="top" width="0">
16093 <column alignment="center" valignment="top" width="0">
16095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16098 \begin_layout Plain Layout
16104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16107 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16116 \begin_layout Plain Layout
16124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16127 \begin_layout Plain Layout
16133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16136 \begin_layout Plain Layout
16142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16145 \begin_layout Plain Layout
16153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16156 \begin_layout Plain Layout
16162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16165 \begin_layout Plain Layout
16171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16174 \begin_layout Plain Layout
16193 \begin_layout Standard
16194 To return to the default line color black, insert this command in TeX-Code
16195 after the table or table float:
16198 \begin_layout Standard
16210 \begin_layout Standard
16212 \begin_inset space ~
16216 \begin_inset CommandInset ref
16218 reference "tab:Table-with-colored"
16222 is an example with colored vertical and horizontal lines.
16225 \begin_layout Standard
16226 \begin_inset Float table
16232 \begin_layout Plain Layout
16233 \begin_inset Caption
16235 \begin_layout Plain Layout
16236 \begin_inset CommandInset label
16238 name "tab:Table-with-colored"
16242 Table with colored lines
16250 \begin_layout Plain Layout
16252 \begin_inset Tabular
16253 <lyxtabular version="3" rows="3" columns="3">
16254 <features tabularvalignment="middle">
16255 <column alignment="center" valignment="top" width="0" special="Wc">
16256 <column alignment="center" valignment="top" width="0" special="Wc">
16257 <column alignment="center" valignment="top" width="0" special="WcW">
16259 <cell alignment="center" valignment="top" topline="true" usebox="none">
16262 \begin_layout Plain Layout
16268 <cell alignment="center" valignment="top" topline="true" usebox="none">
16271 \begin_layout Plain Layout
16277 <cell alignment="center" valignment="top" topline="true" usebox="none">
16280 \begin_layout Plain Layout
16288 <cell alignment="center" valignment="top" topline="true" usebox="none">
16291 \begin_layout Plain Layout
16297 <cell alignment="center" valignment="top" topline="true" usebox="none">
16300 \begin_layout Plain Layout
16306 <cell alignment="center" valignment="top" topline="true" usebox="none">
16309 \begin_layout Plain Layout
16316 <row topspace="default">
16317 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16320 \begin_layout Plain Layout
16326 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16329 \begin_layout Plain Layout
16335 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16338 \begin_layout Plain Layout
16357 \begin_layout Standard
16361 \begin_layout Plain Layout
16377 \begin_layout Standard
16381 \begin_layout Plain Layout
16387 arrayrulewidth}{0.4pt}
16395 \begin_layout Section
16396 Table Customization
16397 \begin_inset Index idx
16400 \begin_layout Plain Layout
16401 Table Customization
16407 \begin_inset Index idx
16410 \begin_layout Plain Layout
16411 Table ! Customization
16419 \begin_layout Subsection
16421 \begin_inset CommandInset label
16423 name "sub:Row-Spacing"
16428 \begin_inset Index idx
16431 \begin_layout Plain Layout
16432 Table Customization ! Row Spacing
16440 \begin_layout Standard
16441 You can add vertical space to table rows in the
16445 tab of the table dialog.
16446 You find there three possibilities:
16449 \begin_layout Description
16451 \begin_inset space ~
16455 \begin_inset space ~
16458 row will add space above the characters of the table row.
16459 If the table is a formal table
16463 \begin_layout Plain Layout
16464 Formal tables are explained in section
16465 \begin_inset space ~
16469 \begin_inset CommandInset ref
16471 reference "sec:Formal-Tables"
16480 LyX will insert as default 0.5
16481 \begin_inset space \thinspace{}
16485 For normal tables the inserted space will unfortunately destroy the vertical
16486 table lines as in the following table:
16487 \begin_inset VSpace medskip
16491 \begin_inset Newline newline
16495 \begin_inset space \hspace*{}
16500 \begin_inset space \hfill{}
16504 \begin_inset Tabular
16505 <lyxtabular version="3" rows="3" columns="1">
16506 <features tabularvalignment="middle">
16507 <column alignment="center" valignment="top" width="0">
16509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16512 \begin_layout Plain Layout
16519 <row topspace="3mm">
16520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16523 \begin_layout Plain Layout
16525 \begin_inset space \thinspace{}
16528 mm space top of row
16535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16538 \begin_layout Plain Layout
16550 \begin_inset space \hfill{}
16554 \begin_inset space \hspace*{}
16559 \begin_inset VSpace medskip
16563 \begin_inset Newline newline
16566 So inserting space in the top of row for normal tables is only useful when
16567 you don't have vertical lines.
16570 \begin_layout Description
16572 \begin_inset space ~
16576 \begin_inset space ~
16579 row will add space below the characters of the table row.
16580 If the table is a formal table LyX will insert as default 0.5
16581 \begin_inset space \thinspace{}
16584 em space, for normal tables the default size is 2
16585 \begin_inset space \thinspace{}
16591 \begin_layout Description
16593 \begin_inset space ~
16596 rows adds space between the current and the following row.
16597 If the table is a formal table LyX will insert as default 0.5
16598 \begin_inset space \thinspace{}
16602 For normal tables the inserted space will unfortunately destroy the vertical
16603 table lines as in the following table:
16604 \begin_inset VSpace medskip
16608 \begin_inset Newline newline
16612 \begin_inset space \hspace*{}
16617 \begin_inset space \hfill{}
16621 \begin_inset Tabular
16622 <lyxtabular version="3" rows="3" columns="1">
16623 <features tabularvalignment="middle">
16624 <column alignment="center" valignment="top" width="0">
16626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16629 \begin_layout Plain Layout
16636 <row interlinespace="3mm">
16637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16640 \begin_layout Plain Layout
16641 \begin_inset Formula $\downarrow$
16645 \begin_inset space \thinspace{}
16648 mm space between row
16649 \begin_inset Formula $\downarrow$
16659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16662 \begin_layout Plain Layout
16663 \begin_inset Formula $\uparrow$
16667 \begin_inset space \thinspace{}
16670 mm space between row
16671 \begin_inset Formula $\uparrow$
16685 \begin_inset space \hfill{}
16689 \begin_inset space \hspace*{}
16694 \begin_inset VSpace medskip
16698 \begin_inset Newline newline
16701 So inserting space between rows for normal tables is only useful when you
16702 don't have vertical lines.
16705 \begin_layout Standard
16706 \begin_inset VSpace bigskip
16709 When you want to add extra height to all cells of all tables, you can do
16710 this with the following preamble lines:
16713 \begin_layout Standard
16718 @ifundefined{extrarowheight}
16719 \begin_inset Newline newline
16723 \begin_inset Phantom HPhantom
16726 \begin_layout Plain Layout
16729 \begin_inset space ~
16739 usepackage{array}}{}
16740 \begin_inset Newline newline
16747 extrarowheight}{height}
16750 \begin_layout Standard
16751 But this has the disadvantage that the cell texts are no longer exactly
16752 vertically centered.
16757 will be loaded automatically by LyX when you use self defined table formats.
16758 To avoid that it being loaded twice the command
16764 is used in the above command.)
16767 \begin_layout Standard
16768 If you are using font sizes larger than the normal size, the table borders
16769 are often too close to the letters.
16770 This can be corrected by inserting the command
16776 in TeX code at the beginning of a table row.
16778 \begin_inset space ~
16782 \begin_inset CommandInset ref
16784 reference "tab:Vertical-alignment-of"
16788 illustrates the effect.
16791 \begin_layout Standard
16793 \begin_inset Float table
16799 \begin_layout Plain Layout
16800 \begin_inset Caption
16802 \begin_layout Plain Layout
16803 \begin_inset CommandInset label
16805 name "tab:Vertical-alignment-of"
16809 Vertical alignment of text with large font sizes.
16817 \begin_layout Plain Layout
16818 \begin_inset space \hfill{}
16822 \begin_inset Float table
16827 \begin_layout Plain Layout
16828 \begin_inset Caption
16830 \begin_layout Plain Layout
16839 \begin_layout Plain Layout
16842 \begin_inset Tabular
16843 <lyxtabular version="3" rows="6" columns="1">
16844 <features tabularvalignment="middle">
16845 <column alignment="left" valignment="top" width="0">
16847 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16850 \begin_layout Plain Layout
16858 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16861 \begin_layout Plain Layout
16871 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16874 \begin_layout Plain Layout
16884 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16887 \begin_layout Plain Layout
16897 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16900 \begin_layout Plain Layout
16910 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16913 \begin_layout Plain Layout
16932 \begin_inset space \hfill{}
16936 \begin_inset Float table
16941 \begin_layout Plain Layout
16942 \begin_inset Caption
16944 \begin_layout Plain Layout
16945 Table using the command
16959 \begin_layout Plain Layout
16962 \begin_inset Tabular
16963 <lyxtabular version="3" rows="6" columns="1">
16964 <features tabularvalignment="middle">
16965 <column alignment="left" valignment="top" width="0">
16967 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16978 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16981 \begin_layout Plain Layout
16987 \begin_layout Plain Layout
17003 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17006 \begin_layout Plain Layout
17012 \begin_layout Plain Layout
17028 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17031 \begin_layout Plain Layout
17037 \begin_layout Plain Layout
17053 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17056 \begin_layout Plain Layout
17062 \begin_layout Plain Layout
17078 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17081 \begin_layout Plain Layout
17087 \begin_layout Plain Layout
17114 \begin_inset space \hfill{}
17125 \begin_layout Subsection
17126 Special Cell Alignment
17127 \begin_inset CommandInset label
17129 name "sub:Special-Cell-Alignment"
17134 \begin_inset Index idx
17137 \begin_layout Plain Layout
17138 Table Customization ! Special Cell Alignment
17146 \begin_layout Standard
17147 Sometimes it looks better when the cell entries of a column are aligned
17148 with a special character, e.
17149 \begin_inset space \thinspace{}
17153 \begin_inset space \space{}
17156 with the decimal separator as in Table
17157 \begin_inset space ~
17161 \begin_inset CommandInset ref
17163 reference "tab:Table-cells-align"
17168 This alignment is achieved by setting the cursor into the column and then
17169 either pressing the toolbar button
17170 \begin_inset Graphics
17171 filename ../images/tabular-feature_align-decimal.png
17173 scaleBeforeRotation
17177 or setting the alignment in the table settings to
17180 \begin_inset space ~
17184 \begin_inset space ~
17190 The alignment character can be a character of your choice and is specified
17191 in the table settings.
17194 \begin_layout Standard
17195 \begin_inset Float table
17201 \begin_layout Plain Layout
17202 \begin_inset Caption
17204 \begin_layout Plain Layout
17205 \begin_inset CommandInset label
17207 name "tab:Table-cells-align"
17211 Table cells of a column aligned with the decimal separator.
17219 \begin_layout Plain Layout
17221 \begin_inset Tabular
17222 <lyxtabular version="3" rows="4" columns="1">
17223 <features booktabs="true" tabularvalignment="middle">
17224 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17229 \begin_layout Plain Layout
17237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17240 \begin_layout Plain Layout
17248 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17251 \begin_layout Plain Layout
17259 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17262 \begin_layout Plain Layout
17281 \begin_layout Standard
17282 \begin_inset Float table
17288 \begin_layout Plain Layout
17289 \begin_inset Caption
17291 \begin_layout Plain Layout
17292 \begin_inset CommandInset label
17294 name "tab:Table-align-operator"
17298 Table cells of a column aligned with the operators.
17306 \begin_layout Plain Layout
17308 \begin_inset Tabular
17309 <lyxtabular version="3" rows="4" columns="2">
17310 <features booktabs="true" tabularvalignment="middle">
17311 <column alignment="right" valignment="top" width="0pt">
17312 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17314 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17317 \begin_layout Plain Layout
17323 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17326 \begin_layout Plain Layout
17334 <cell alignment="center" valignment="top" usebox="none">
17337 \begin_layout Plain Layout
17338 \begin_inset Formula $12\,+$
17346 <cell alignment="center" valignment="top" usebox="none">
17349 \begin_layout Plain Layout
17350 \begin_inset Formula $\,6$
17360 <cell alignment="center" valignment="top" usebox="none">
17363 \begin_layout Plain Layout
17364 \begin_inset Formula $0\,-$
17372 <cell alignment="center" valignment="top" usebox="none">
17375 \begin_layout Plain Layout
17376 \begin_inset Formula $\,68$
17386 <cell alignment="center" valignment="top" usebox="none">
17389 \begin_layout Plain Layout
17390 \begin_inset Formula $-123\,/$
17398 <cell alignment="center" valignment="top" usebox="none">
17401 \begin_layout Plain Layout
17402 \begin_inset Formula $\,0$
17423 \begin_layout Standard
17424 For alignments at characters in formulas this method does not work because
17425 the field to specify the alignment character does not allow formulas.
17426 In this case one need to use the method from Table
17427 \begin_inset space ~
17431 \begin_inset CommandInset ref
17433 reference "tab:Table-align-operator"
17438 This table was created with a 4×2 table.
17439 The heading is a centered multicolumn.
17440 The first column is right-aligned and contains the first part including
17442 The second column is left aligned and contains the rest.
17443 A small space was added at the beginning of each cell of the second column
17444 to get the space that is usually around operators.
17445 To omit the space that is normally between two table columns, the following
17446 LaTeX-argument was used for the second column:
17449 \begin_layout Standard
17455 \begin_layout Standard
17457 \begin_inset space ~
17461 \begin_inset CommandInset ref
17463 reference "tab:Several-table-cell"
17467 shows some example alignments.
17468 For the alignment with the relation sign, a small space was added like
17469 for the second column of Table
17470 \begin_inset space ~
17474 \begin_inset CommandInset ref
17476 reference "tab:Table-align-operator"
17483 \begin_layout Standard
17484 \begin_inset Float table
17490 \begin_layout Plain Layout
17491 \begin_inset Caption
17493 \begin_layout Plain Layout
17494 \begin_inset CommandInset label
17496 name "tab:Several-table-cell"
17500 Several table cell alignments.
17508 \begin_layout Plain Layout
17510 \begin_inset Tabular
17511 <lyxtabular version="3" rows="4" columns="6">
17512 <features tabularvalignment="middle">
17513 <column alignment="right" valignment="top" width="0">
17514 <column alignment="left" valignment="top" width="0" special="@{}l">
17515 <column alignment="right" valignment="top" width="0">
17516 <column alignment="left" valignment="top" width="0" special="@{}l">
17517 <column alignment="right" valignment="top" width="0">
17518 <column alignment="left" valignment="top" width="0" special="@{}l">
17520 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17523 \begin_layout Plain Layout
17529 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17532 \begin_layout Plain Layout
17538 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17541 \begin_layout Plain Layout
17547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17550 \begin_layout Plain Layout
17556 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17559 \begin_layout Plain Layout
17565 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17568 \begin_layout Plain Layout
17576 <cell alignment="center" valignment="top" usebox="none">
17579 \begin_layout Plain Layout
17585 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17588 \begin_layout Plain Layout
17590 \begin_inset space \thinspace{}
17598 <cell alignment="center" valignment="top" usebox="none">
17601 \begin_layout Plain Layout
17602 \begin_inset Formula $10\cdot$
17610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17613 \begin_layout Plain Layout
17614 \begin_inset Formula $10^{\mbox{-}17}$
17622 <cell alignment="center" valignment="top" usebox="none">
17625 \begin_layout Plain Layout
17626 \begin_inset Formula $\Gamma(t)\propto$
17634 <cell alignment="center" valignment="top" usebox="none">
17637 \begin_layout Plain Layout
17638 \begin_inset Formula $\:\Upsilon(t)$
17648 <cell alignment="center" valignment="top" usebox="none">
17651 \begin_layout Plain Layout
17657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17660 \begin_layout Plain Layout
17662 \begin_inset space \thinspace{}
17670 <cell alignment="center" valignment="top" usebox="none">
17673 \begin_layout Plain Layout
17674 \begin_inset Formula $5.78\cdot$
17682 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17685 \begin_layout Plain Layout
17686 \begin_inset Formula $10^{7}$
17694 <cell alignment="center" valignment="top" usebox="none">
17697 \begin_layout Plain Layout
17698 \begin_inset Formula $A\ne$
17706 <cell alignment="center" valignment="top" usebox="none">
17709 \begin_layout Plain Layout
17710 \begin_inset Formula $\: B_{\mathrm{red}}$
17720 <cell alignment="center" valignment="top" usebox="none">
17723 \begin_layout Plain Layout
17729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17732 \begin_layout Plain Layout
17734 \begin_inset space \thinspace{}
17742 <cell alignment="center" valignment="top" usebox="none">
17745 \begin_layout Plain Layout
17747 \begin_inset Formula $33.5\cdot$
17755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17758 \begin_layout Plain Layout
17759 \begin_inset Formula $10^{4}$
17767 <cell alignment="center" valignment="top" usebox="none">
17770 \begin_layout Plain Layout
17771 \begin_inset Formula $\sin(\alpha)\ge$
17779 <cell alignment="center" valignment="top" usebox="none">
17782 \begin_layout Plain Layout
17783 \begin_inset Formula $\:\sin(\beta)$
17804 \begin_layout Subsection
17805 Customized Cell/Column Format
17806 \begin_inset CommandInset label
17808 name "sub:Customized-Format"
17813 \begin_inset Index idx
17816 \begin_layout Plain Layout
17817 Table Customization ! Cell/Column Format
17825 \begin_layout Standard
17826 Calculating the required width for spanned columns as in section
17827 \begin_inset space ~
17831 \begin_inset CommandInset ref
17833 reference "sub:Multicolumn-Calculations"
17837 is very annoying if you have several tables with multicolumn cells.
17838 To make life easier, you can define a cell/column format in the preamble,
17839 so that it can be used in all tables of the document.
17840 The format is defined with the command
17843 \begin_layout Standard
17848 newcolumntype{name of format}[number of arguments]{commands}
17851 \begin_layout Standard
17852 The format name may only consist of one letter.
17877 are predefined and cannot be used.
17878 But all letters are allowed as capitals.
17881 \begin_layout Standard
17882 \begin_inset VSpace medskip
17888 \begin_layout Standard
17889 For vertically and horizontally centered multicolumn cells with a fixed
17890 width you can define the cell format
17893 \begin_layout Standard
17898 newcolumntype{M}[1]{>{
17905 \begin_layout Standard
17912 avoids the problem of hyphenating the first word, as described in section
17913 \begin_inset space ~
17917 \begin_inset CommandInset ref
17919 reference "sub:Multiple-Lines-in"
17924 Now you can simply enter
17927 \begin_layout Standard
17933 \begin_layout Standard
17934 as LaTeX-argument in the table dialog to create a multicolumn.
17937 \begin_layout Standard
17938 \begin_inset VSpace bigskip
17944 \begin_layout Standard
17945 For cells spanned by a multicolumn cell, you can define the format
17948 \begin_layout Standard
17953 newcolumntype{S}[2]{>{
17958 \begin_inset Newline newline
17962 \begin_inset Phantom HPhantom
17965 \begin_layout Plain Layout
17979 arrayrulewidth)*(1-#2))/#2}}
17982 \begin_layout Standard
17983 This format uses equation
17984 \begin_inset CommandInset ref
17990 to calculate the required width so that each spanned cell has the same
17994 \begin_layout Standard
17998 \begin_layout Standard
18001 S{width of multicolumn cell}{number of spanned columns}
18004 \begin_layout Standard
18005 as LaTeX-argument of the column.
18008 \begin_layout Standard
18009 \begin_inset VSpace bigskip
18015 \begin_layout Standard
18016 For colored columns, you can define
18019 \begin_layout Standard
18024 newcolumntype{K}[1]{>{
18031 \begin_layout Standard
18033 \begin_inset Quotes eld
18037 \begin_inset Quotes erd
18040 at the end creates a column with a flexible width whose text is horizontally
18045 \begin_layout Standard
18051 \begin_layout Standard
18055 \begin_layout Standard
18056 \begin_inset VSpace bigskip
18062 \begin_layout Standard
18064 \begin_inset space ~
18068 \begin_inset CommandInset ref
18070 reference "tab:Table-using-user-defined"
18074 use the LaTeX-arguments
18077 \begin_layout Standard
18083 \begin_layout Standard
18084 for the first column and the multicolumn,
18087 \begin_layout Standard
18093 \begin_layout Standard
18094 for the last column, and
18097 \begin_layout Standard
18103 \begin_layout Standard
18104 for the cells in the second column.
18107 \begin_layout Standard
18108 \begin_inset Float table
18114 \begin_layout Plain Layout
18115 \begin_inset Caption
18117 \begin_layout Plain Layout
18118 \begin_inset CommandInset label
18120 name "tab:Table-using-user-defined"
18124 Table using user-defined table formats
18132 \begin_layout Plain Layout
18134 \begin_inset Tabular
18135 <lyxtabular version="3" rows="3" columns="4">
18136 <features tabularvalignment="middle">
18137 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18138 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18139 <column alignment="center" valignment="middle" width="0">
18140 <column alignment="center" valignment="middle" width="0" special="K{red}">
18142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18145 \begin_layout Plain Layout
18146 verylongtablecellword
18151 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18154 \begin_layout Plain Layout
18155 multiple lines multicolumn
18160 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18163 \begin_layout Plain Layout
18169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18172 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18183 \begin_layout Plain Layout
18189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18192 \begin_layout Plain Layout
18198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18201 \begin_layout Plain Layout
18207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18210 \begin_layout Plain Layout
18218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18221 \begin_layout Plain Layout
18227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18230 \begin_layout Plain Layout
18236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18239 \begin_layout Plain Layout
18245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18248 \begin_layout Plain Layout
18267 \begin_layout Subsection
18269 \begin_inset CommandInset label
18271 name "sub:Line-Thickness"
18276 \begin_inset Index idx
18279 \begin_layout Plain Layout
18280 Table Customization ! Line Thickness
18288 \begin_layout Standard
18289 The line thickness for all lines in a table can be adjusted with the length
18297 To set for example a line thickness of 1.5
18298 \begin_inset space \thinspace{}
18302 \begin_inset space ~
18306 \begin_inset CommandInset ref
18308 reference "tab:Table-with-1.5"
18312 , insert the command
18315 \begin_layout Standard
18322 arrayrulewidth}{1.5pt}
18325 \begin_layout Standard
18326 in TeX-Code before the table or table float.
18327 The changed thickness is valid for all subsequent tables.
18328 To use the default value again, set
18335 \begin_inset space \thinspace{}
18338 pt in TeX-Code after the table or table float.
18341 \begin_layout Standard
18345 \begin_layout Plain Layout
18351 arrayrulewidth}{1.5pt}
18357 \begin_inset Float table
18362 \begin_layout Plain Layout
18363 \begin_inset Caption
18365 \begin_layout Plain Layout
18366 \begin_inset CommandInset label
18368 name "tab:Table-with-1.5"
18373 \begin_inset space \thinspace{}
18384 \begin_layout Plain Layout
18386 \begin_inset Tabular
18387 <lyxtabular version="3" rows="3" columns="3">
18388 <features tabularvalignment="middle">
18389 <column alignment="center" valignment="top" width="0">
18390 <column alignment="center" valignment="top" width="0">
18391 <column alignment="center" valignment="top" width="0">
18393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18396 \begin_layout Plain Layout
18402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18405 \begin_layout Plain Layout
18411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18414 \begin_layout Plain Layout
18422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18425 \begin_layout Plain Layout
18431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18434 \begin_layout Plain Layout
18440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18443 \begin_layout Plain Layout
18451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18454 \begin_layout Plain Layout
18460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18472 \begin_layout Plain Layout
18492 \begin_layout Plain Layout
18498 arrayrulewidth}{0.4pt}
18506 \begin_layout Standard
18507 \begin_inset VSpace bigskip
18510 To set the line thickness to 1.5
18511 \begin_inset space \thinspace{}
18514 pt only for horizontal lines, as in Table
18515 \begin_inset space ~
18519 \begin_inset CommandInset ref
18521 reference "tab:Table-with-horizontal"
18525 , insert these commands in TeX-Code before the table or table float:
18528 \begin_layout Standard
18538 \begin_inset Newline newline
18546 \begin_inset Newline newline
18555 arrayrulewidth 1.5pt}
18556 \begin_inset Newline newline
18567 arrayrulewidth 0.4pt}}
18570 \begin_layout Standard
18571 To return to the default line thickness, insert this command in TeX-Code
18572 after the table or table float:
18575 \begin_layout Standard
18587 \begin_layout Standard
18591 \begin_layout Plain Layout
18602 \begin_layout Plain Layout
18611 \begin_layout Plain Layout
18619 arrayrulewidth 1.5pt}
18622 \begin_layout Plain Layout
18632 arrayrulewidth 0.4pt}}
18638 \begin_inset Float table
18643 \begin_layout Plain Layout
18644 \begin_inset Caption
18646 \begin_layout Plain Layout
18647 \begin_inset CommandInset label
18649 name "tab:Table-with-horizontal"
18654 \begin_inset space \thinspace{}
18657 pt thick horizontal lines
18665 \begin_layout Plain Layout
18667 \begin_inset Tabular
18668 <lyxtabular version="3" rows="3" columns="3">
18669 <features tabularvalignment="middle">
18670 <column alignment="center" valignment="top" width="0">
18671 <column alignment="center" valignment="top" width="0">
18672 <column alignment="center" valignment="top" width="0">
18674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18677 \begin_layout Plain Layout
18683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18686 \begin_layout Plain Layout
18692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18695 \begin_layout Plain Layout
18703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18706 \begin_layout Plain Layout
18712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18715 \begin_layout Plain Layout
18721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18724 \begin_layout Plain Layout
18732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18735 \begin_layout Plain Layout
18741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18744 \begin_layout Plain Layout
18750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18753 \begin_layout Plain Layout
18773 \begin_layout Plain Layout
18789 \begin_layout Standard
18790 \begin_inset VSpace bigskip
18793 To set the line thickness to 1.5
18794 \begin_inset space \thinspace{}
18797 pt only for vertical lines, create the following column format in the document
18798 preamble, according to the description in section
18799 \begin_inset space ~
18803 \begin_inset CommandInset ref
18805 reference "sub:Customized-Format"
18812 \begin_layout Standard
18817 newcolumntype{V}{!{
18819 vrule width 1.5pt}}
18822 \begin_layout Standard
18824 \begin_inset space ~
18828 \begin_inset CommandInset ref
18830 reference "tab:Table-with-vertical"
18837 \begin_layout Standard
18843 \begin_layout Standard
18844 was used for the last column and
18847 \begin_layout Standard
18853 \begin_layout Standard
18854 for the other columns.
18857 \begin_layout Standard
18858 \begin_inset Float table
18863 \begin_layout Plain Layout
18864 \begin_inset Caption
18866 \begin_layout Plain Layout
18867 \begin_inset CommandInset label
18869 name "tab:Table-with-vertical"
18874 \begin_inset space \thinspace{}
18877 pt thick vertical lines
18885 \begin_layout Plain Layout
18887 \begin_inset Tabular
18888 <lyxtabular version="3" rows="3" columns="3">
18889 <features tabularvalignment="middle">
18890 <column alignment="center" valignment="top" width="0" special="Vc">
18891 <column alignment="center" valignment="top" width="0" special="Vc">
18892 <column alignment="center" valignment="top" width="0" special="VcV">
18894 <cell alignment="center" valignment="top" topline="true" usebox="none">
18897 \begin_layout Plain Layout
18903 <cell alignment="center" valignment="top" topline="true" usebox="none">
18906 \begin_layout Plain Layout
18912 <cell alignment="center" valignment="top" topline="true" usebox="none">
18915 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" topline="true" usebox="none">
18926 \begin_layout Plain Layout
18932 <cell alignment="center" valignment="top" topline="true" usebox="none">
18935 \begin_layout Plain Layout
18941 <cell alignment="center" valignment="top" topline="true" usebox="none">
18944 \begin_layout Plain Layout
18952 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18955 \begin_layout Plain Layout
18961 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18964 \begin_layout Plain Layout
18970 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18973 \begin_layout Plain Layout
18992 \begin_layout Subsection
18994 \begin_inset Index idx
18997 \begin_layout Plain Layout
18998 Table Customization ! Dashed Lines
19006 \begin_layout Standard
19010 \begin_layout Plain Layout
19020 \begin_inset Note Note
19023 \begin_layout Plain Layout
19024 The following section will only be displayed when the LaTeX-package
19036 \begin_layout Standard
19037 \begin_inset Float table
19043 \begin_layout Plain Layout
19044 \begin_inset Caption
19046 \begin_layout Plain Layout
19047 \begin_inset CommandInset label
19049 name "tab:Table-with-dashed"
19053 Table with dashed lines
19061 \begin_layout Plain Layout
19063 \begin_inset Tabular
19064 <lyxtabular version="3" rows="5" columns="5">
19065 <features tabularvalignment="middle">
19066 <column alignment="center" valignment="top" width="0">
19067 <column alignment="center" valignment="top" width="0">
19068 <column alignment="center" valignment="top" width="0" special=":c">
19069 <column alignment="center" valignment="top" width="0">
19070 <column alignment="center" valignment="top" width="0">
19072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19075 \begin_layout Plain Layout
19081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19084 \begin_layout Plain Layout
19090 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19093 \begin_layout Plain Layout
19099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19102 \begin_layout Plain Layout
19108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19111 \begin_layout Plain Layout
19119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19122 \begin_layout Plain Layout
19128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19131 \begin_layout Plain Layout
19137 <cell alignment="center" valignment="top" topline="true" usebox="none">
19140 \begin_layout Plain Layout
19146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19149 \begin_layout Plain Layout
19155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19158 \begin_layout Plain Layout
19166 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19169 \begin_layout Plain Layout
19173 \begin_layout Plain Layout
19187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19190 \begin_layout Plain Layout
19196 <cell alignment="center" valignment="top" usebox="none">
19199 \begin_layout Plain Layout
19205 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19208 \begin_layout Plain Layout
19214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19217 \begin_layout Plain Layout
19225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19228 \begin_layout Plain Layout
19232 \begin_layout Plain Layout
19246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19249 \begin_layout Plain Layout
19255 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19258 \begin_layout Plain Layout
19264 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19267 \begin_layout Plain Layout
19273 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19276 \begin_layout Plain Layout
19284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19287 \begin_layout Plain Layout
19293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19296 \begin_layout Plain Layout
19302 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19305 \begin_layout Plain Layout
19311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19314 \begin_layout Plain Layout
19320 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19323 \begin_layout Plain Layout
19342 \begin_layout Standard
19343 LyX does not natively support dashed lines, so you have to use TeX-Code.
19344 As a prerequisite the LaTeX-package
19349 \begin_inset Index idx
19352 \begin_layout Plain Layout
19353 LaTeX-packages ! arydshln
19358 must be loaded in the document preamble with the command
19361 \begin_layout Standard
19366 usepackage{arydshln}
19369 \begin_layout Standard
19370 To make a vertical line dashed, enter the colon
19371 \begin_inset Quotes eld
19375 \begin_inset Quotes erd
19378 together with the character for the horizontal alignment as LaTeX-argument
19379 in the table cell dialog.
19382 \begin_layout Standard
19383 For a horizontal dashed line add the command
19386 \begin_layout Standard
19394 \begin_layout Standard
19395 in TeX-Code as first element of the first cell in the table row.
19398 \begin_layout Standard
19399 For dashed multicolumn lines use the command
19402 \begin_layout Standard
19407 cdashline{line number
19412 \begin_layout Standard
19413 in TeX-Code as the first element of the first cell in the table row.
19414 If you have for example a multicolumn spanning columns 2 to 4 and you want
19415 to have a dashed line above, add the command
19418 \begin_layout Standard
19426 \begin_layout Standard
19427 as the first element of the first cell in the row of the multicolumn.
19430 \begin_layout Standard
19431 \begin_inset VSpace bigskip
19437 \begin_layout Standard
19439 \begin_inset space ~
19443 \begin_inset CommandInset ref
19445 reference "tab:Table-with-dashed"
19450 \begin_inset Quotes eld
19458 \begin_inset Quotes erd
19461 as LaTeX-argument of the third column.
19462 The TeX-Code command
19468 was inserted in the first cell of the third row and the TeX-Code command
19469 \begin_inset Newline newline
19478 was inserted in the first cell of the fourth row.
19481 \begin_layout Standard
19482 \begin_inset Note Greyedout
19485 \begin_layout Plain Layout
19494 is apparently not compatible with the LaTeX-package
19499 \begin_inset Index idx
19502 \begin_layout Plain Layout
19503 LaTeX-packages ! colortbl
19508 that is used for colored tables in section
19509 \begin_inset space ~
19513 \begin_inset CommandInset ref
19515 reference "sec:Colored-Tables"
19520 That means colored tables cannot have dashed lines.
19528 \begin_layout Standard
19532 \begin_layout Plain Layout
19542 \begin_inset Note Note
19545 \begin_layout Plain Layout
19546 The following will be displayed when the LaTeX-package
19558 \begin_layout Standard
19559 You need to install the package
19563 to see the content of this section in the output.
19566 \begin_layout Standard
19570 \begin_layout Plain Layout
19582 \begin_layout Chapter
19584 \begin_inset CommandInset label
19591 \begin_inset Index idx
19594 \begin_layout Plain Layout
19603 \begin_layout Section
19605 \begin_inset CommandInset label
19607 name "sec:FloatIntroduction"
19612 \begin_inset Index idx
19615 \begin_layout Plain Layout
19616 Floats ! Introduction
19624 \begin_layout Standard
19625 A float is a block of text associated with some sort of label, which doesn't
19626 have a fixed location.
19628 \begin_inset Quotes eld
19632 \begin_inset Quotes erd
19635 forward or backward a page or two, to wherever it fits best.
19643 \begin_inset space ~
19648 are also floats, because they can float to the next page when there are
19649 too many notes on the page.
19652 \begin_layout Standard
19653 Floats allow a high quality layout.
19654 Images and tables can be spread evenly to the pages to avoid white space
19655 and pages without text.
19656 As the floating often destroys the context between the text and the image/table
19657 , every float can be referenced in the text.
19658 Floats are therefore numbered.
19659 Referencing is described in section
19660 \begin_inset space ~
19664 \begin_inset CommandInset ref
19666 reference "sec:Referencing-Floats"
19673 \begin_layout Standard
19674 To insert a float, use the menu
19676 Insert\SpecialChar \menuseparator
19684 inset, a box with a label.
19685 The label will automatically be translated to the document language in
19687 After the label you can insert the caption text.
19688 The image or table is inserted above or below the caption in a separate
19689 paragraph within the float.
19690 More about the caption placement is contained in section
19691 \begin_inset space ~
19695 \begin_inset CommandInset ref
19697 reference "sec:Caption-Placement"
19702 To keep your LyX-document readable, you can open and close the float box
19703 by left-clicking on the box label.
19704 A closed float box looks like this:
19705 \begin_inset Graphics
19706 filename clipart/floatQt4.png
19708 scaleBeforeRotation
19712 – a gray button with a red label.
19715 \begin_layout Standard
19716 It is recommended that you insert floats as a separate standard paragraph
19717 to avoid possible LaTeX-errors that can occur when the surrounding text
19718 is specially formatted.
19721 \begin_layout Standard
19722 Existing figures or tables can be put into a float by highlighting them
19723 and then pressing the corresponding toolbar button for a new float.
19726 \begin_layout Section
19730 \begin_layout Standard
19731 Besides figure and table floats that are described in sections
19732 \begin_inset space ~
19736 \begin_inset CommandInset ref
19738 reference "sec:Figure-Floats"
19743 \begin_inset CommandInset ref
19745 reference "sec:Table-Floats"
19749 respectively, LyX offers the float types
19758 The latter are explained in sec.
19759 \begin_inset space \thinspace{}
19763 \begin_inset CommandInset ref
19765 reference "sec:Wrap-Floats"
19772 \begin_layout Subsection
19774 \begin_inset Index idx
19777 \begin_layout Plain Layout
19778 Floats ! Algorithms
19786 \begin_layout Standard
19787 \begin_inset Float algorithm
19793 \begin_layout Plain Layout
19794 \begin_inset Caption
19796 \begin_layout Plain Layout
19797 \begin_inset CommandInset label
19799 name "alg:Example-Algorithm-float"
19803 Example Algorithm float
19811 \begin_layout LyX-Code
19813 \begin_inset Newline newline
19816 Sum:= Sum + A(I); /*comment*/
19817 \begin_inset Newline newline
19821 \begin_inset VSpace -4mm
19832 \begin_layout Standard
19833 This float type is inserted with the menu
19835 Insert\SpecialChar \menuseparator
19836 Floats\SpecialChar \menuseparator
19840 It is used for program codes and descriptions of algorithms and can be
19841 seen as an alternative to program code listings that are explained in chapter
19842 \begin_inset space ~
19846 \begin_inset CommandInset ref
19848 reference "cha:Program-Code-Listings"
19853 A possible environment for algorithms is the
19857 , described in LyX's
19863 \begin_inset space ~
19867 \begin_inset CommandInset ref
19869 reference "alg:Example-Algorithm-float"
19873 is an example of an algorithm float where -4
19874 \begin_inset space \thinspace{}
19877 mm vertical space was added at the end of the float to have the bottom rule
19878 exactly below the last text line.
19881 \begin_layout Standard
19882 The float label is not automatically translated into the document language.
19883 If your document is not in English, you have to do this manually by adding
19884 the following line to the document preamble
19889 \begin_layout Standard
19894 floatname{algorithm}{your
19895 \begin_inset space ~
19901 \begin_layout Standard
19905 \begin_inset space ~
19911 \begin_inset Quotes eld
19919 \begin_inset Quotes erd
19925 \begin_layout Standard
19926 To insert the list of algorithms you can use the menu
19928 Insert\SpecialChar \menuseparator
19930 \begin_inset space \thinspace{}
19934 \begin_inset space \thinspace{}
19937 TOC\SpecialChar \menuseparator
19940 when your document has the same language as LyX's menu names.
19941 In other cases use this command in TeX-Code instead:
19944 \begin_layout Standard
19949 listof{algorithm}{your
19950 \begin_inset space ~
19956 \begin_layout Standard
19960 \begin_inset space ~
19966 \begin_inset Quotes eld
19974 \begin_inset Quotes erd
19980 \begin_layout Standard
19981 Algorithm floats are not by default numbered in the scheme
19982 \begin_inset Quotes eld
19986 \begin_inset Quotes erd
19989 as is the case for table and figure floats in many document-classes.
19990 To number algorithm floats in the same scheme, add this command to your
19994 \begin_layout Standard
19999 numberwithin{algorithm}{chapter}
20002 \begin_layout Standard
20003 To be able to use the command
20012 \begin_inset space ~
20017 in the document settings the option
20020 \begin_inset space ~
20024 \begin_inset space ~
20028 \begin_inset space ~
20036 \begin_layout Section
20038 \begin_inset Index idx
20041 \begin_layout Plain Layout
20050 \begin_layout Standard
20051 Floats are usually numbered either independently from the sections the floats
20052 are in, or in the scheme
20053 \begin_inset Quotes eld
20057 \begin_inset Quotes erd
20061 \begin_inset Quotes eld
20065 \begin_inset Quotes erd
20069 This depends on the document class used.
20072 \begin_layout Standard
20073 To change section-independent numbering, you can use this command in the
20077 \begin_layout Standard
20089 \begin_layout Standard
20096 is the command that prints the table number, for figure floats, the command
20110 in the command above prints the table number as small roman number.
20113 \begin_layout Standard
20114 To change the numbering scheme for example to
20115 \begin_inset Quotes eld
20119 \begin_inset Quotes erd
20122 , use this command in the preamble:
20125 \begin_layout Standard
20130 numberwithin{table}{subsection}
20133 \begin_layout Standard
20134 To be able to use the command
20143 \begin_inset space ~
20148 in the document settings the option
20151 \begin_inset space ~
20155 \begin_inset space ~
20159 \begin_inset space ~
20167 \begin_layout Standard
20168 Please also have a look at section
20169 \begin_inset space ~
20173 \begin_inset CommandInset ref
20175 reference "sub:Footnote-Numbering"
20179 for the details and important notes about the numbering commands.
20182 \begin_layout Section
20184 \begin_inset CommandInset label
20186 name "sec:Referencing-Floats"
20191 \begin_inset Index idx
20194 \begin_layout Plain Layout
20195 Floats ! References
20201 \begin_inset Index idx
20204 \begin_layout Plain Layout
20205 References ! to Floats
20213 \begin_layout Standard
20214 To reference a float, insert a label into its caption using the menu
20216 Insert\SpecialChar \menuseparator
20219 or the toolbar button
20220 \begin_inset Graphics
20221 filename ../images/label-insert.png
20223 scaleBeforeRotation
20228 A grey label box like this one:
20229 \begin_inset Graphics
20230 filename clipart/labelQt4.png
20232 scaleBeforeRotation
20236 will be inserted and the label window pops up asking for the label text.
20237 LyX offers as text the first words of the caption with a prefix.
20238 The prefix depends on the float type, e.
20239 \begin_inset space \thinspace{}
20243 \begin_inset space \space{}
20246 for figure floats the prefix will be "
20253 \begin_layout Standard
20254 The label is used as anchor and name for the reference.
20255 You can refer to the label using the menu
20257 Insert\SpecialChar \menuseparator
20260 or the toolbar button
20261 \begin_inset Graphics
20262 filename ../images/dialog-show-new-inset_ref.png
20264 scaleBeforeRotation
20269 A grey cross-reference box like this one:
20270 \begin_inset Graphics
20271 filename clipart/referenceQt4.png
20273 scaleBeforeRotation
20277 will be inserted and the cross-reference window appear showing all labels
20279 If you have multiple LyX-documents opened, choose the one you are working
20280 on from the drop-list at the top of the dialog.
20281 You can now sort the labels alphabetically and then choose one.
20282 At the position of the cross-reference box the float number will appear
20286 \begin_layout Standard
20287 It is recommended that you use a protected space between the cross-reference
20288 name and its number to avoid line breaks between them.
20289 If a cross-reference refers to a non-existing label, you will see two question
20290 marks in the output instead of the reference.
20293 \begin_layout Standard
20294 You can change labels at any time by clicking on the label box.
20295 References to the changed label will automatically change its link to the
20296 new label text, so that you don't need to take care about this.
20299 \begin_layout Standard
20303 \begin_inset space ~
20307 \begin_inset space ~
20312 in the cross-reference window sets the cursor before the referred label.
20313 The button text changes then to Go
20314 \begin_inset space ~
20317 Back and you can use it to set the cursor back to the cross-reference.
20318 Right-clicking on a cross-reference box also sets the cursor before the
20319 referenced label but without the possibility of going back.
20322 \begin_layout Subsection
20323 Cross-Reference Formats
20324 \begin_inset CommandInset label
20326 name "sub:Cross-Reference-Formats"
20331 \begin_inset Index idx
20334 \begin_layout Plain Layout
20335 References ! Formats
20343 \begin_layout Standard
20344 There are six varieties of cross-references:
20347 \begin_layout Description
20348 <reference>: prints the float number, this is the default:
20349 \begin_inset CommandInset ref
20351 reference "fig:Two-distorted-images"
20358 \begin_layout Description
20359 (<reference>): prints the float number within two parentheses, this is the
20360 style normally used to reference formulas, especially when the reference
20362 \begin_inset Quotes eld
20366 \begin_inset Quotes erd
20370 \begin_inset CommandInset ref
20379 \begin_layout Description
20380 <page>: prints the page number: Page
20381 \begin_inset space ~
20385 \begin_inset CommandInset ref
20386 LatexCommand pageref
20387 reference "fig:Two-distorted-images"
20394 \begin_layout Description
20396 \begin_inset space ~
20400 \begin_inset space ~
20403 <page>: prints the text "on page" and the page number:
20404 \begin_inset CommandInset ref
20405 LatexCommand vpageref
20406 reference "fig:Two-distorted-images"
20413 \begin_layout Description
20415 \begin_inset space ~
20419 \begin_inset space ~
20423 \begin_inset space ~
20426 <page>: prints the float number, the text "on page", and the page number:
20428 \begin_inset CommandInset ref
20430 reference "fig:Two-distorted-images"
20437 \begin_layout Description
20439 \begin_inset space ~
20442 reference: prints a self-defined cross-reference format.
20443 \begin_inset Newline newline
20447 \begin_inset Note Greyedout
20450 \begin_layout Plain Layout
20455 This feature is only available when you have the LaTeX-package
20464 \begin_inset Index idx
20467 \begin_layout Plain Layout
20468 LaTeX-packages ! prettyref
20474 \begin_inset Index idx
20477 \begin_layout Plain Layout
20478 LaTeX-packages ! refstyle
20489 \begin_inset Newline newline
20492 You can select which LaTeX-package should be used for this feature by setting
20495 Use refstyle (not prettyref) for cross-references
20499 Document\SpecialChar \menuseparator
20500 Settings\SpecialChar \menuseparator
20504 The format is specified by adding the command
20516 (refstyle) to the preamble of the document.
20517 For example redefining all references to figures (which have the label
20519 \begin_inset Quotes eld
20527 \begin_inset Quotes erd
20530 ) can be done with this command
20531 \begin_inset Newline newline
20538 newref{fig}{refcmd={Image on page
20543 \begin_inset Newline newline
20546 For more information about the format, have a look at the package documentations
20548 \begin_inset CommandInset citation
20550 key "prettyref,refstyle"
20557 \begin_layout Description
20559 \begin_inset space ~
20562 reference: prints the caption of the reference:
20563 \begin_inset CommandInset ref
20564 LatexCommand nameref
20565 reference "fig:Two-distorted-images"
20572 \begin_layout Standard
20577 will not print the page number if the label is on the previous, the same,
20580 \begin_inset space \thinspace{}
20584 \begin_inset space \space{}
20588 \begin_inset Quotes eld
20596 \begin_inset Quotes erd
20602 <reference> on page <page>
20604 will not print anything about the page if the label is on the same page.
20607 \begin_layout Standard
20608 The number and current page of the part of the document referred to in the
20609 output is automatically calculated by LaTeX.
20610 The varieties are adjusted in the field
20614 of the cross-reference window that appears when you click on the cross-referenc
20618 \begin_layout Standard
20619 \begin_inset Note Greyedout
20622 \begin_layout Plain Layout
20627 It is recommended to use the LaTeX-package
20632 \begin_inset Index idx
20635 \begin_layout Plain Layout
20636 LaTeX-packages ! refstyle
20646 \begin_inset Index idx
20649 \begin_layout Plain Layout
20650 LaTeX-packages ! prettyref
20655 does not know all of LyX's possible label shortcuts
20659 \begin_layout Plain Layout
20660 \begin_inset Quotes eld
20664 \begin_inset Quotes erd
20667 is for example LyX's shortcut for labels in figure captions.
20672 and is not internationalized.
20680 \begin_layout Standard
20681 \begin_inset Note Greyedout
20684 \begin_layout Plain Layout
20689 Due to a bug in the LaTeX-package
20693 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20694 languages that make the period character active (like French).
20695 For a workaround, see
20696 \begin_inset Newline newline
20700 \begin_inset CommandInset href
20702 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20714 \begin_layout Subsection
20715 Automatic Reference Naming
20716 \begin_inset Index idx
20719 \begin_layout Plain Layout
20720 References ! Automatic Reference Naming
20728 \begin_layout Standard
20734 \begin_inset Index idx
20737 \begin_layout Plain Layout
20738 LaTeX-packages ! hyperref
20743 , that is enabled in the
20751 dialog, provides a very useful feature that cross-references automatically
20752 include the name of the referenced floats (or text parts like
20757 So you will save having to write e.
20758 \begin_inset space \thinspace{}
20762 \begin_inset space \space{}
20766 \begin_inset Quotes eld
20770 \begin_inset Quotes erd
20773 before every reference to a figure.
20774 To use this feature, enable
20778 and insert this line to the LaTeX preamble:
20781 \begin_layout Standard
20797 \begin_layout Standard
20798 When you prefer other reference names than the default ones, for example
20799 you want instead of
20800 \begin_inset Quotes eld
20804 \begin_inset Quotes erd
20808 \begin_inset Quotes eld
20812 \begin_inset space \thinspace{}
20816 \begin_inset Quotes eld
20819 , you can redefine the name by inserting this in the preamble:
20822 \begin_layout Standard
20833 sectionautorefname}
20834 \begin_inset Newline newline
20838 \begin_inset Phantom HPhantom
20841 \begin_layout Plain Layout
20844 \begin_inset space ~
20857 \begin_layout Standard
20858 When you are using another document language than English, replace
20859 \begin_inset Newline newline
20874 , where *** is the name of the language used.
20877 \begin_layout Standard
20878 To get automatic names, but not for certain reference types, for example
20879 not for equations, use this preamble code:
20882 \begin_layout Standard
20890 \begin_inset Newline newline
20900 \begin_inset Newline newline
20911 equationautorefname}
20912 \begin_inset Newline newline
20916 \begin_inset Phantom HPhantom
20919 \begin_layout Plain Layout
20922 \begin_inset space ~
20937 \begin_layout Standard
20938 More about this topic can be found in
20943 \begin_inset CommandInset citation
20952 \begin_layout Standard
20953 \begin_inset Note Greyedout
20956 \begin_layout Plain Layout
20961 Automatic reference naming cannot be used when you use cross-references
20965 \begin_inset space ~
20970 style, as described in section
20971 \begin_inset space ~
20975 \begin_inset CommandInset ref
20977 reference "sub:Cross-Reference-Formats"
20989 \begin_layout Standard
20994 manual is an example where automatic reference naming is used.
20997 \begin_layout Subsection
20999 \begin_inset CommandInset label
21001 name "sub:Reference-Position"
21006 \begin_inset Index idx
21009 \begin_layout Plain Layout
21010 References ! Reference Position
21018 \begin_layout Standard
21024 \begin_inset Index idx
21027 \begin_layout Plain Layout
21028 LaTeX-packages ! hyperref
21041 dialog to link cross-references in the output, you will see that clicking
21042 on an image float reference jumps to the image label.
21043 The caption will be the first text part on the screen, so that you cannot
21044 see the image without scrolling.
21045 This is because the reference link anchor is placed at the position of
21047 With the use of the package
21052 \begin_inset Index idx
21055 \begin_layout Plain Layout
21056 LaTeX-packages ! hypcap
21061 , which is part of the LaTeX-package
21066 \begin_inset Index idx
21069 \begin_layout Plain Layout
21070 LaTeX-packages ! oberdiek
21075 , the link anchor is placed at the beginning of a float.
21076 To use this feature for figure floats, load
21080 in the document preamble with the line
21083 \begin_layout Standard
21088 usepackage[figure]{hypcap}
21091 \begin_layout Standard
21096 for all float types but this is not recommended for stability reasons.
21097 For more information, have a look at
21102 \begin_inset CommandInset citation
21111 \begin_layout Standard
21112 \begin_inset Note Greyedout
21115 \begin_layout Plain Layout
21124 has no effect on references to subfigures.
21132 \begin_layout Section
21134 \begin_inset CommandInset label
21136 name "sec:Float-Placement"
21141 \begin_inset Index idx
21144 \begin_layout Plain Layout
21153 \begin_layout Standard
21154 Right-clicking on a float-box opens a dialog where you can alter the placement
21155 options that LaTeX uses for positioning the float.
21156 \begin_inset Newline newline
21162 \begin_inset space ~
21167 is only useful for two-column documents: If you select it, the float will
21168 span both columns on the page instead of being confined to just one.
21169 \begin_inset Newline newline
21175 \begin_inset space ~
21180 is used to rotate floats, see section
21181 \begin_inset CommandInset ref
21183 reference "sec:Rotated-Floats"
21190 \begin_layout Standard
21191 You can use one ore more of the following options in the float dialog to
21192 set the placement for a particular float when you uncheck the option
21195 \begin_inset space ~
21199 \begin_inset space ~
21207 \begin_layout Description
21209 \begin_inset space ~
21213 \begin_inset space ~
21216 possible try to place the float on the position where it has been inserted
21219 \begin_layout Description
21221 \begin_inset space ~
21225 \begin_inset space ~
21228 page try to place the float at the top of the current page
21231 \begin_layout Description
21233 \begin_inset space ~
21237 \begin_inset space ~
21240 page try to place the float at the bottom of the current page
21243 \begin_layout Description
21245 \begin_inset space ~
21249 \begin_inset space ~
21252 floats try to place the float on its own page
21255 \begin_layout Standard
21256 The order of the above option is
21261 That means, if you use the default placement, LaTeX will first try out
21265 \begin_inset space ~
21269 \begin_inset space ~
21277 \begin_inset space ~
21281 \begin_inset space ~
21286 , and then the others.
21287 If you do not use the default, LaTeX will try only the checked options
21288 but in the same order.
21290 \begin_inset space ~
21293 placements are possible the procedure is internally repeated but it is tried
21294 to put the float on the following page.
21297 \begin_layout Standard
21298 By default, each option has its own rules:
21301 \begin_layout Labeling
21302 \labelwidthstring 00.00.0000
21306 \begin_inset space ~
21310 \begin_inset space ~
21315 only floats occupying less than 70
21316 \begin_inset space \thinspace{}
21319 % of the page can be placed at the top of a page (
21328 \begin_layout Labeling
21329 \labelwidthstring 00.00.0000
21333 \begin_inset space ~
21337 \begin_inset space ~
21342 : only floats occupying less than 30
21343 \begin_inset space \thinspace{}
21346 % of the page can be placed at the bottom of a page.
21356 \begin_layout Labeling
21357 \labelwidthstring 00.00.0000
21361 \begin_inset space ~
21365 \begin_inset space ~
21370 : only if more than 50
21371 \begin_inset space \thinspace{}
21374 % of the page are occupied by floats, several floats can be set together
21385 \begin_layout Standard
21386 If you don't like these rules, you can ignore them by using the additional
21390 \begin_inset space ~
21394 \begin_inset space ~
21400 \begin_inset Newline newline
21403 You can also redefine the rules with LaTeX-commands that are given in parenthese
21404 s after the rules description above.
21405 To increase for example the often too small default of the bottom-rule
21407 \begin_inset space \thinspace{}
21410 % of the page, add this line to your document preamble:
21413 \begin_layout Standard
21420 bottomfraction}{0.5}
21423 \begin_layout Standard
21424 Sometimes you might need, under all circumstances, a float to be placed
21425 exactly at the position where it is inserted.
21426 For this case you can use the option
21429 \begin_inset space ~
21435 Use this option very rarely and only if the document is almost ready to
21436 be printed, because the float is then no longer able to
21437 \begin_inset Quotes eld
21441 \begin_inset Quotes erd
21444 when you change your document and this will often destroy the page layout.
21447 \begin_layout Standard
21448 There are no placement options for text wrap floats, because they are always
21449 surrounded by the text of a certain paragraph.
21450 \begin_inset VSpace bigskip
21456 \begin_layout Standard
21457 Sometimes you have the problem that a float is placed at the top of a page
21458 while its corresponding section starts at the middle of the page, so that
21459 the reader could think the float is part of the previous section.
21460 To avoid this the LaTeX-command
21467 It suppresses a given float placement for the page where it is inserted
21468 and can therefore be used to avoid floats being set before a section starts.
21469 To get this, add these commands to your document preamble:
21472 \begin_layout Standard
21482 \begin_inset Newline newline
21496 \begin_layout Standard
21497 You can define the same for all section headings, like chapters and subsections.
21498 This definition is not recommended to be used for small text parts like
21499 subsubsections because LaTeX may then have problems finding a suitable
21503 \begin_layout Standard
21504 \begin_inset VSpace bigskip
21507 In some cases it is required to have all figures/tables at the end of the
21509 For this purpose the LaTeX-package
21514 \begin_inset Index idx
21517 \begin_layout Plain Layout
21518 LaTeX-packages ! endfloat
21524 It puts all figure and table floats at the end of the document into their
21526 At the original float position a text hint like
21527 \begin_inset Quotes eld
21533 \begin_inset space ~
21539 \begin_inset Quotes erd
21543 The endfloat-package is loaded in the preamble with the line
21546 \begin_layout Standard
21551 usepackage[options]{endfloat}
21554 \begin_layout Standard
21555 There are various package options to format the created figure/table sections.
21556 For more information we refer to the
21561 \begin_inset CommandInset citation
21568 \begin_inset Newline newline
21572 \begin_inset Note Greyedout
21575 \begin_layout Plain Layout
21580 doesn't provide an automatic translation for the text hint, you have to
21581 do this manually, see section
21582 \begin_inset space ~
21586 \begin_inset CommandInset citation
21598 \begin_inset Newline newline
21602 \begin_inset Note Greyedout
21605 \begin_layout Plain Layout
21610 There is currently a bug in
21614 when the caption contains a German
21615 \begin_inset Quotes eld
21619 \begin_inset Quotes erd
21623 Use in this case the command
21624 \begin_inset Quotes eld
21634 \begin_inset Quotes erd
21637 in TeX-Code instead of
21638 \begin_inset Quotes eld
21642 \begin_inset Quotes erd
21653 \begin_layout Standard
21654 \begin_inset VSpace bigskip
21657 For more details about float placements, have a look at LaTeX books,
21658 \begin_inset CommandInset citation
21660 key "latexcompanion,latexguide,latexbook"
21667 \begin_layout Section
21669 \begin_inset CommandInset label
21671 name "sec:Rotated-Floats"
21676 \begin_inset Index idx
21679 \begin_layout Plain Layout
21688 \begin_layout Standard
21689 Especially for wide tables you might have floats rotated.
21690 To rotate a whole float including the caption, right-click on the float-box
21694 \begin_inset space ~
21702 \begin_layout Standard
21703 Rotated floats are always placed on a page of their own (or column of their
21704 own; in case you have a multi-column document).
21705 You can let them span several columns using the float settings option
21708 \begin_inset space ~
21714 Floats are rotated so that you can read them from the outside margin.
21715 To force a certain rotation direction for all pages, you can add either
21724 to the document class options.
21727 \begin_layout Standard
21728 Referencing rotated floats is the same as for normal floats, the caption
21729 format is also the same: Table
21730 \begin_inset space ~
21734 \begin_inset CommandInset ref
21736 reference "tab:Rotated-table"
21740 is an example of a rotated table float.
21743 \begin_layout Standard
21744 \begin_inset Note Greyedout
21747 \begin_layout Plain Layout
21752 Not all DVI-viewers are able to display rotated floats.
21760 \begin_layout Standard
21761 \begin_inset Float table
21766 \begin_layout Plain Layout
21767 \begin_inset Caption
21769 \begin_layout Plain Layout
21770 \begin_inset CommandInset label
21772 name "tab:Rotated-table"
21784 \begin_layout Plain Layout
21786 \begin_inset Tabular
21787 <lyxtabular version="3" rows="1" columns="5">
21788 <features tabularvalignment="middle">
21789 <column alignment="center" valignment="top" width="0">
21790 <column alignment="center" valignment="top" width="0">
21791 <column alignment="center" valignment="top" width="0">
21792 <column alignment="center" valignment="top" width="0">
21793 <column alignment="center" valignment="top" width="0">
21795 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21798 \begin_layout Plain Layout
21804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21807 \begin_layout Plain Layout
21813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21816 \begin_layout Plain Layout
21822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21825 \begin_layout Plain Layout
21831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21834 \begin_layout Plain Layout
21853 \begin_layout Section
21855 \begin_inset Index idx
21858 \begin_layout Plain Layout
21867 \begin_layout Standard
21868 Subfloats are for example used when a figure consists of several images.
21869 They are created by inserting a float into an existing float.
21870 The placement of the subfloats can be controlled in the same way as for
21871 paragraphs as shown in table
21872 \begin_inset space ~
21876 \begin_inset CommandInset ref
21878 reference "tab:Two-subtables-side"
21883 \begin_inset CommandInset ref
21885 reference "tab:Two-subtables-upon"
21892 \begin_layout Standard
21893 Referencing subfloats works as for normal floats: Table
21894 \begin_inset space ~
21898 \begin_inset CommandInset ref
21900 reference "tab:This-is-subtable-a"
21905 \begin_inset CommandInset ref
21907 reference "tab:This-is-subtable-b"
21911 are subtables of table
21912 \begin_inset space ~
21916 \begin_inset CommandInset ref
21918 reference "tab:Two-subtables-side"
21925 \begin_layout Standard
21926 \begin_inset Float table
21931 \begin_layout Plain Layout
21932 \begin_inset Caption
21934 \begin_layout Plain Layout
21935 \begin_inset CommandInset label
21937 name "tab:Two-subtables-side"
21941 Two subtables placed side by side.
21949 \begin_layout Plain Layout
21951 \begin_inset space \hfill{}
21955 \begin_inset Float table
21960 \begin_layout Plain Layout
21961 \begin_inset Caption
21963 \begin_layout Plain Layout
21964 \begin_inset CommandInset label
21966 name "tab:This-is-subtable-a"
21970 This is subtable a.
21978 \begin_layout Plain Layout
21980 \begin_inset Tabular
21981 <lyxtabular version="3" rows="1" columns="5">
21982 <features tabularvalignment="middle">
21983 <column alignment="center" valignment="top" width="0">
21984 <column alignment="center" valignment="top" width="0">
21985 <column alignment="center" valignment="top" width="0">
21986 <column alignment="center" valignment="top" width="0">
21987 <column alignment="center" valignment="top" width="0">
21989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21992 \begin_layout Plain Layout
21998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22001 \begin_layout Plain Layout
22007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22010 \begin_layout Plain Layout
22016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22019 \begin_layout Plain Layout
22025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22028 \begin_layout Plain Layout
22045 \begin_inset space \hfill{}
22049 \begin_inset Float table
22054 \begin_layout Plain Layout
22055 \begin_inset Caption
22057 \begin_layout Plain Layout
22058 \begin_inset CommandInset label
22060 name "tab:This-is-subtable-b"
22064 This is subtable b.
22072 \begin_layout Plain Layout
22074 \begin_inset Tabular
22075 <lyxtabular version="3" rows="1" columns="5">
22076 <features tabularvalignment="middle">
22077 <column alignment="center" valignment="top" width="0">
22078 <column alignment="center" valignment="top" width="0">
22079 <column alignment="center" valignment="top" width="0">
22080 <column alignment="center" valignment="top" width="0">
22081 <column alignment="center" valignment="top" width="0">
22083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22086 \begin_layout Plain Layout
22092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22095 \begin_layout Plain Layout
22101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22104 \begin_layout Plain Layout
22110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22113 \begin_layout Plain Layout
22119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22122 \begin_layout Plain Layout
22139 \begin_inset space \hfill{}
22150 \begin_layout Standard
22151 \begin_inset Float table
22156 \begin_layout Plain Layout
22157 \begin_inset Caption
22159 \begin_layout Plain Layout
22160 \begin_inset CommandInset label
22162 name "tab:Two-subtables-upon"
22166 Two subtables placed one above the other.
22167 (a) table with 4 cells, (b) table with 5 cells.
22175 \begin_layout Plain Layout
22177 \begin_inset Float table
22182 \begin_layout Plain Layout
22183 \begin_inset Caption
22185 \begin_layout Plain Layout
22194 \begin_layout Plain Layout
22196 \begin_inset Tabular
22197 <lyxtabular version="3" rows="1" columns="4">
22198 <features tabularvalignment="middle">
22199 <column alignment="center" valignment="top" width="0">
22200 <column alignment="center" valignment="top" width="0">
22201 <column alignment="center" valignment="top" width="0">
22202 <column alignment="center" valignment="top" width="0">
22204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22207 \begin_layout Plain Layout
22213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22216 \begin_layout Plain Layout
22222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22225 \begin_layout Plain Layout
22231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22234 \begin_layout Plain Layout
22253 \begin_layout Plain Layout
22255 \begin_inset Float table
22260 \begin_layout Plain Layout
22261 \begin_inset Caption
22263 \begin_layout Plain Layout
22272 \begin_layout Plain Layout
22274 \begin_inset Tabular
22275 <lyxtabular version="3" rows="1" columns="5">
22276 <features tabularvalignment="middle">
22277 <column alignment="center" valignment="top" width="0">
22278 <column alignment="center" valignment="top" width="0">
22279 <column alignment="center" valignment="top" width="0">
22280 <column alignment="center" valignment="top" width="0">
22281 <column alignment="center" valignment="top" width="0">
22283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22286 \begin_layout Plain Layout
22292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22295 \begin_layout Plain Layout
22301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22304 \begin_layout Plain Layout
22310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22313 \begin_layout Plain Layout
22319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22322 \begin_layout Plain Layout
22346 \begin_layout Section
22347 Floats Side by Side
22348 \begin_inset Index idx
22351 \begin_layout Plain Layout
22352 Floats ! Side by side
22360 \begin_layout Standard
22361 To place floats side by side, as in Figures
22362 \begin_inset space ~
22366 \begin_inset CommandInset ref
22368 reference "fig:Float-left"
22373 \begin_inset CommandInset ref
22375 reference "fig:Float-right"
22384 In it two minipage boxes are inserted.
22388 \begin_layout Plain Layout
22389 Minipages are explained in section
22390 \begin_inset space ~
22394 \begin_inset CommandInset ref
22396 reference "sec:Minipages"
22405 The width is set to 45
22406 \begin_inset space \thinspace{}
22410 \begin_inset space \thinspace{}
22413 column% and the box alignment to
22418 The minipage boxes contain the image and the caption in the same way as
22419 they are in a float.
22420 The only difference is that the image unit
22423 \begin_inset space ~
22427 \begin_inset space ~
22432 is now calculated according to the width of the minipage boxes.
22435 \begin_layout Standard
22436 \begin_inset Float figure
22441 \begin_layout Plain Layout
22442 \begin_inset Box Frameless
22452 height_special "totalheight"
22455 \begin_layout Plain Layout
22457 \begin_inset Graphics
22458 filename clipart/mobius.eps
22461 scaleBeforeRotation
22468 \begin_layout Plain Layout
22469 \begin_inset Caption
22471 \begin_layout Plain Layout
22472 \begin_inset CommandInset label
22474 name "fig:Float-left"
22478 Float on the left side.
22489 \begin_inset space \hfill{}
22493 \begin_inset Box Frameless
22503 height_special "totalheight"
22506 \begin_layout Plain Layout
22508 \begin_inset Graphics
22509 filename clipart/platypus.eps
22512 scaleBeforeRotation
22519 \begin_layout Plain Layout
22520 \begin_inset Caption
22522 \begin_layout Plain Layout
22523 \begin_inset CommandInset label
22525 name "fig:Float-right"
22529 Float on the right side.
22542 \begin_layout Plain Layout
22551 \begin_layout Section
22553 \begin_inset Index idx
22556 \begin_layout Plain Layout
22557 Caption ! Formatting
22563 \begin_inset Index idx
22566 \begin_layout Plain Layout
22567 Floats ! Caption Formatting
22573 \begin_inset CommandInset label
22575 name "sec:Caption-Formatting"
22582 \begin_layout Standard
22587 environment is the default paragraph environment for
22592 On the LyX screen captions appear as label, e.
22593 \begin_inset space \thinspace{}
22597 \begin_inset space \space{}
22601 \begin_inset Quotes eld
22609 \begin_inset Quotes erd
22612 followed by the caption text.
22614 \begin_inset Quotes eld
22618 \begin_inset Quotes erd
22621 is the actual reference number.
22622 By default the label and the number are in the same font as the caption
22623 text and a colon follows the number to divide the label from the text.
22624 This caption format is not suitable for all document formats.
22628 \begin_layout Standard
22629 To change the default caption format, load the LaTeX-package
22634 \begin_inset Index idx
22637 \begin_layout Plain Layout
22638 LaTeX-packages ! caption
22643 in the document preamble with this line:
22646 \begin_layout Standard
22651 usepackage[format definition]{caption}
22654 \begin_layout Standard
22655 To have for example the label and the number in sans-serif bold font and
22656 the table captions always above the table as in this document, use the
22660 \begin_layout Standard
22665 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22668 \begin_layout Standard
22669 You can also define different caption formats for the different float types.
22670 In this case load the
22674 package without format specific options and define the different formats
22675 with the help of the command
22678 \begin_layout Standard
22683 captionsetup[float type]{format definition}
22686 \begin_layout Standard
22687 in the document preamble.
22688 For example the caption formats of Figure
22689 \begin_inset space ~
22693 \begin_inset CommandInset ref
22695 reference "fig:This-is-an-fig"
22700 \begin_inset space ~
22704 \begin_inset CommandInset ref
22706 reference "tab:This-is-an-tab"
22710 can be created using these commands in the document preamble:
22713 \begin_layout Standard
22718 usepackage[tableposition=top]{caption}
22721 \begin_inset Newline newline
22728 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22729 \begin_inset Newline newline
22733 \begin_inset Phantom HPhantom
22736 \begin_layout Plain Layout
22741 captionsetup[figure]{
22747 \begin_inset Newline newline
22752 captionsetup[table]{labelfont={bf,sf}}
22755 \begin_layout Standard
22756 \begin_inset Note Greyedout
22759 \begin_layout Plain Layout
22768 has no effect when a
22773 \begin_inset Index idx
22776 \begin_layout Plain Layout
22777 LaTeX-packages ! KOMA-Script
22782 document class is used.
22783 In this case the document class option
22785 captions=tableheading
22795 \begin_layout Standard
22796 For more information about the package
22800 we refer to its documentation
22801 \begin_inset CommandInset citation
22810 \begin_layout Standard
22811 To change the label name from e.
22812 \begin_inset space \thinspace{}
22816 \begin_inset space \space{}
22820 \begin_inset Quotes eld
22824 \begin_inset Quotes erd
22828 \begin_inset Quotes eld
22832 \begin_inset Quotes erd
22835 use this preamble command:
22838 \begin_layout Standard
22845 fnum@figure}{Image~
22850 \begin_layout Standard
22857 inserts the figure number and
22860 \begin_inset Quotes eld
22866 \begin_inset Quotes erd
22869 creates a protected space.
22872 \begin_layout Standard
22873 \begin_inset VSpace bigskip
22881 \begin_inset Index idx
22884 \begin_layout Plain Layout
22885 LaTeX-packages ! KOMA-Script
22892 article (KOMA-Script)
22900 letter (KOMA-Script)
22904 report (KOMA-Script)
22907 \begin_inset space \thinspace{}
22910 ), you can alternatively to the
22918 's built-in command
22925 For example, to have the caption label in bold, add this command to your
22929 \begin_layout Standard
22934 setkomafont{captionlabel}{
22939 \begin_layout Standard
22940 For more information about
22951 \begin_inset CommandInset citation
22960 \begin_layout Standard
22964 \begin_layout Plain Layout
22968 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22975 \begin_inset Note Note
22978 \begin_layout Plain Layout
22979 The caption format is changed only for this example.
22987 \begin_layout Standard
22988 \begin_inset Float figure
22994 \begin_layout Plain Layout
22996 \begin_inset Graphics
22997 filename clipart/mobius.eps
23000 scaleBeforeRotation
23007 \begin_layout Plain Layout
23008 \begin_inset Caption
23010 \begin_layout Plain Layout
23011 \begin_inset CommandInset label
23013 name "fig:This-is-an-fig"
23017 This is an example figure caption that is longer than one line to show the
23018 different caption format.
23019 Here a self-defined caption format is used.
23032 \begin_layout Standard
23036 \begin_layout Plain Layout
23040 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23049 \begin_layout Standard
23050 \begin_inset Float table
23056 \begin_layout Plain Layout
23057 \begin_inset Caption
23059 \begin_layout Plain Layout
23060 \begin_inset CommandInset label
23062 name "tab:This-is-an-tab"
23066 This is an example table caption that is longer than one line to show the
23067 different caption format.
23068 Here the standard caption format for tables in this document is used.
23076 \begin_layout Plain Layout
23078 \begin_inset Tabular
23079 <lyxtabular version="3" rows="1" columns="5">
23080 <features tabularvalignment="middle">
23081 <column alignment="center" valignment="top" width="0">
23082 <column alignment="center" valignment="top" width="0">
23083 <column alignment="center" valignment="top" width="0">
23084 <column alignment="center" valignment="top" width="0">
23085 <column alignment="center" valignment="top" width="0">
23087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23090 \begin_layout Plain Layout
23096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23099 \begin_layout Plain Layout
23105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23108 \begin_layout Plain Layout
23114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23117 \begin_layout Plain Layout
23123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23126 \begin_layout Plain Layout
23145 \begin_layout Section
23147 \begin_inset Index idx
23150 \begin_layout Plain Layout
23151 Caption ! Placement
23157 \begin_inset Index idx
23160 \begin_layout Plain Layout
23161 Floats ! Caption Placement
23167 \begin_inset CommandInset label
23169 name "sec:Caption-Placement"
23176 \begin_layout Standard
23177 The common caption placement rule is:
23180 \begin_layout Description
23181 Figure: Caption is set below the figure
23184 \begin_layout Description
23185 Table: Caption is set above the table
23188 \begin_layout Standard
23189 Having the caption above the table is unfortunately not supported in LaTeX's
23191 That means if you are using the document classes
23207 there will be no space between the caption and the table.
23208 To insert the necessary space, add the following option to the load command
23209 of the LaTeX-package
23213 in your document preamble
23217 \begin_layout Plain Layout
23219 \begin_inset space ~
23223 \begin_inset CommandInset ref
23225 reference "sec:Caption-Formatting"
23229 for more information of the package
23241 \begin_layout Standard
23247 \begin_layout Standard
23253 \begin_inset Index idx
23256 \begin_layout Plain Layout
23257 LaTeX-packages ! KOMA-Script
23264 article (KOMA-Script)
23272 letter (KOMA-Script)
23276 report (KOMA-Script)
23279 \begin_inset space \thinspace{}
23282 ), you can alternatively to the
23286 package set the document class option
23288 captions=tableheading
23293 \begin_layout Standard
23294 \begin_inset VSpace bigskip
23297 It is also possible to set the caption beside a figure or table.
23298 To get this the LaTeX-package
23303 \begin_inset Index idx
23306 \begin_layout Plain Layout
23307 LaTeX-packages ! sidecap
23312 has to be loaded in the document preamble with the line
23315 \begin_layout Standard
23320 usepackage[option]{sidecap}
23323 \begin_layout Standard
23324 If you set no option, the caption is placed on the side of the outer page
23325 margin – to the right on odd pages, to the left on even pages.
23326 You can change the placement to inner margin with the option
23331 To force the placement always to the right or left, use the option
23342 \begin_layout Standard
23346 \begin_layout Plain Layout
23356 \begin_inset Note Note
23359 \begin_layout Plain Layout
23360 The following section will only be displayed when the LaTeX-package
23372 \begin_layout Standard
23373 To place in LyX the caption of a float on the side, it is necessary to add
23374 these commands to the document preamble:
23377 \begin_layout Standard
23379 \begin_inset CommandInset line
23390 \begin_layout Standard
23398 \begin_inset Newline newline
23402 \begin_inset Phantom HPhantom
23405 \begin_layout Plain Layout
23408 \begin_inset space ~
23423 \begin_inset Newline newline
23427 \begin_inset Phantom HPhantom
23430 \begin_layout Plain Layout
23433 \begin_inset space ~
23448 \begin_inset Newline newline
23452 \begin_inset Phantom HPhantom
23455 \begin_layout Plain Layout
23458 \begin_inset space ~
23468 renewenvironment{table}{
23475 \begin_layout Standard
23483 \begin_inset Newline newline
23487 \begin_inset Phantom HPhantom
23490 \begin_layout Plain Layout
23493 \begin_inset space ~
23508 \begin_inset Newline newline
23512 \begin_inset Phantom HPhantom
23515 \begin_layout Plain Layout
23518 \begin_inset space ~
23535 \begin_layout Standard
23543 \begin_inset Newline newline
23547 \begin_inset Phantom HPhantom
23550 \begin_layout Plain Layout
23553 \begin_inset space ~
23568 \begin_inset Newline newline
23572 \begin_inset Phantom HPhantom
23575 \begin_layout Plain Layout
23578 \begin_inset space ~
23593 \begin_inset Newline newline
23597 \begin_inset Phantom HPhantom
23600 \begin_layout Plain Layout
23603 \begin_inset space ~
23613 renewenvironment{figure}{
23620 \begin_layout Standard
23628 \begin_inset Newline newline
23632 \begin_inset Phantom HPhantom
23635 \begin_layout Plain Layout
23638 \begin_inset space ~
23653 \begin_inset Newline newline
23657 \begin_inset Phantom HPhantom
23660 \begin_layout Plain Layout
23663 \begin_inset space ~
23680 \begin_layout Standard
23682 \begin_inset CommandInset line
23693 \begin_layout Standard
23694 The commands allow you to redefine the floats so that the caption is set
23696 For figure floats use the command
23699 \begin_layout Standard
23707 \begin_layout Standard
23708 in TeX-Code before the float.
23709 After the float insert the command
23712 \begin_layout Standard
23720 \begin_layout Standard
23721 in TeX-Code to get back to the original float definition.
23724 \begin_layout Standard
23725 For table floats use the corresponding commands
23728 \begin_layout Standard
23742 \begin_layout Standard
23744 \begin_inset space ~
23748 \begin_inset CommandInset ref
23750 reference "fig:cap-beside-fig"
23755 \begin_inset space ~
23759 \begin_inset CommandInset ref
23761 reference "tab:cap-beside-tab"
23765 are examples where the caption is set beside.
23768 \begin_layout Standard
23769 You can see in the examples that the caption text appears at the top of
23770 the floats for table floats and at the bottom for figure floats.
23771 To change this, you can use the command
23774 \begin_layout Standard
23779 sidecaptionvpos{float type}{placement}
23782 \begin_layout Standard
23783 in the document preamble or in TeX-Code before the float.
23784 The float type is either
23792 , the placement can be
23793 \begin_inset Quotes eld
23801 \begin_inset Quotes erd
23805 \begin_inset Quotes eld
23813 \begin_inset Quotes erd
23817 \begin_inset Quotes eld
23825 \begin_inset Quotes erd
23829 To have for example the caption of figure floats vertically centered, use
23833 \begin_layout Standard
23838 sidecaptionvpos{figure}{c}
23841 \begin_layout Standard
23842 This was used for Figure
23843 \begin_inset space ~
23847 \begin_inset CommandInset ref
23849 reference "fig:cap-beside-fig-2"
23856 \begin_layout Standard
23857 \begin_inset VSpace medskip
23860 For more information about the package
23864 we refer to its documentation
23865 \begin_inset CommandInset citation
23874 \begin_layout Standard
23875 \begin_inset Note Greyedout
23878 \begin_layout Plain Layout
23888 \begin_inset Index idx
23891 \begin_layout Plain Layout
23892 LaTeX-packages ! hypcap
23897 , described in section
23898 \begin_inset space ~
23902 \begin_inset CommandInset ref
23904 reference "sub:Reference-Position"
23908 , has no effect on floats with the caption set beside.
23916 \begin_layout Standard
23920 \begin_layout Plain Layout
23932 \begin_layout Standard
23933 \begin_inset Float figure
23938 \begin_layout Plain Layout
23939 \begin_inset Graphics
23940 filename clipart/escher-lsd.eps
23942 scaleBeforeRotation
23949 \begin_layout Plain Layout
23950 \begin_inset Caption
23952 \begin_layout Plain Layout
23953 \begin_inset CommandInset label
23955 name "fig:cap-beside-fig"
23959 This is a caption beside a figure.
23972 \begin_layout Standard
23976 \begin_layout Plain Layout
23988 \begin_layout Standard
23989 \begin_inset Float table
23994 \begin_layout Plain Layout
23995 \begin_inset Caption
23997 \begin_layout Plain Layout
23998 \begin_inset CommandInset label
24000 name "tab:cap-beside-tab"
24004 This is a caption beside a table.
24012 \begin_layout Plain Layout
24013 \begin_inset Tabular
24014 <lyxtabular version="3" rows="4" columns="5">
24015 <features tabularvalignment="middle">
24016 <column alignment="center" valignment="top" width="0">
24017 <column alignment="center" valignment="top" width="0">
24018 <column alignment="center" valignment="top" width="0">
24019 <column alignment="center" valignment="top" width="0">
24020 <column alignment="center" valignment="top" width="0">
24022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24025 \begin_layout Plain Layout
24031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24034 \begin_layout Plain Layout
24040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24043 \begin_layout Plain Layout
24049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24052 \begin_layout Plain Layout
24058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24061 \begin_layout Plain Layout
24069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24072 \begin_layout Plain Layout
24078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24081 \begin_layout Plain Layout
24087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24090 \begin_layout Plain Layout
24096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24099 \begin_layout Plain Layout
24105 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24108 \begin_layout Plain Layout
24116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24119 \begin_layout Plain Layout
24125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24128 \begin_layout Plain Layout
24134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24137 \begin_layout Plain Layout
24143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24146 \begin_layout Plain Layout
24152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24155 \begin_layout Plain Layout
24163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24166 \begin_layout Plain Layout
24172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24175 \begin_layout Plain Layout
24181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24184 \begin_layout Plain Layout
24190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24193 \begin_layout Plain Layout
24199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24202 \begin_layout Plain Layout
24221 \begin_layout Standard
24225 \begin_layout Plain Layout
24237 \begin_layout Standard
24241 \begin_layout Plain Layout
24245 sidecaptionvpos{figure}{c}
24251 \begin_inset Float figure
24256 \begin_layout Plain Layout
24257 \begin_inset Graphics
24258 filename clipart/escher-lsd.eps
24260 scaleBeforeRotation
24267 \begin_layout Plain Layout
24268 \begin_inset Caption
24270 \begin_layout Plain Layout
24271 \begin_inset CommandInset label
24273 name "fig:cap-beside-fig-2"
24277 This is a vertically centered caption beside a figure.
24290 \begin_layout Standard
24294 \begin_layout Plain Layout
24306 \begin_layout Standard
24310 \begin_layout Plain Layout
24320 \begin_inset Note Note
24323 \begin_layout Plain Layout
24324 The following will be displayed when the LaTeX-package
24336 \begin_layout Standard
24337 You need to install the LaTeX-package
24341 to see the following part of this section in the output.
24344 \begin_layout Standard
24348 \begin_layout Plain Layout
24360 \begin_layout Section
24362 \begin_inset Index idx
24365 \begin_layout Plain Layout
24366 Floats ! Float Lists
24374 \begin_layout Standard
24375 Similar to the table of contents where the sections of the document are
24376 listed, there are listings for all float types, like the figures of the
24378 You can insert them via the
24380 Insert\SpecialChar \menuseparator
24382 \begin_inset space ~
24386 \begin_inset space ~
24394 \begin_layout Standard
24395 The list entries are the float captions or its short title, the float number,
24396 and the page number where they appear in the document.
24399 \begin_layout Standard
24400 You can find the list of figures and tables at the end of this document.
24403 \begin_layout Chapter
24407 \begin_layout Section
24409 \begin_inset Index idx
24412 \begin_layout Plain Layout
24421 \begin_layout Standard
24422 Notes are inserted with the toolbar button
24423 \begin_inset Graphics
24424 filename ../images/note-insert.png
24426 scaleBeforeRotation
24432 Insert\SpecialChar \menuseparator
24436 There are three types of notes:
24439 \begin_layout Description
24441 \begin_inset space ~
24444 Note This note type is for internal notes that won't appear in the output.
24445 Its note-box looks like this:
24446 \begin_inset Newline newline
24450 \begin_inset Newline newline
24454 \begin_inset Graphics
24455 filename clipart/LyXNoteImageQt4.png
24458 scaleBeforeRotation
24463 \begin_inset Note Note
24466 \begin_layout Plain Layout
24467 This is text in a note box that doesn't appear in the output.
24475 \begin_layout Description
24476 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24477 ent, when you export the document to LaTeX via the menu
24479 File\SpecialChar \menuseparator
24480 Export\SpecialChar \menuseparator
24481 LaTeX (pdflatex) / (plain)
24484 Its note-box looks like this:
24485 \begin_inset Newline newline
24489 \begin_inset Newline newline
24493 \begin_inset Graphics
24494 filename clipart/CommentNoteImageQt4.png
24497 scaleBeforeRotation
24502 \begin_inset Note Comment
24505 \begin_layout Plain Layout
24506 This is text in a note box that only appears as comment in LaTeX-files.
24514 \begin_layout Description
24516 \begin_inset space ~
24519 Out This note will appear in the output as grey text.
24520 Its note-box looks like this:
24521 \begin_inset Newline newline
24525 \begin_inset Newline newline
24529 \begin_inset Graphics
24530 filename clipart/GreyedOutNoteImageQt4.png
24533 scaleBeforeRotation
24538 \begin_inset Newline newline
24545 \begin_layout Plain Layout
24549 renewenvironment{lyxgreyedout}
24552 \begin_layout Plain Layout
24556 textcolor[gray]{0.8}
24566 \begin_inset Note Greyedout
24569 \begin_layout Plain Layout
24574 \begin_layout Plain Layout
24575 This is an example footnote within a greyed out note.
24580 of a comment that appears in the output as grey text.
24589 \begin_layout Plain Layout
24593 renewenvironment{lyxgreyedout}
24596 \begin_layout Plain Layout
24610 \begin_inset Note Note
24613 \begin_layout Plain Layout
24614 The greyed out note is here redefined to show it with the original LyX definitio
24615 n because greyed out notes are redefined in the preamble of this document,
24616 as described below, to have blue text.
24622 \begin_inset Newline newline
24626 \begin_inset Newline newline
24629 As you can see in the example, the first line of greyed out notes is a bit
24630 indented and greyed out notes can have footnotes.
24633 \begin_layout Standard
24634 \begin_inset VSpace bigskip
24637 When you use the toolbar button
24638 \begin_inset Graphics
24639 filename ../images/note-insert.png
24641 scaleBeforeRotation
24648 \begin_inset space ~
24654 You can switch between the five note types by right-clicking on the note-box.
24659 If you want to turn existing text into a note, mark it and click on the
24673 To change a note to text, press the backspace key when the cursor is in
24674 the first position of a note, or press the delete key when the cursor is
24675 in the very last position of the note, respectively.
24678 \begin_layout Standard
24679 \begin_inset VSpace bigskip
24682 You can change the text color of the greyed out notes in the menu
24684 Document\SpecialChar \menuseparator
24685 Settings\SpecialChar \menuseparator
24691 \begin_layout Section
24693 \begin_inset CommandInset label
24695 name "sec:Footnotes"
24700 \begin_inset Index idx
24703 \begin_layout Plain Layout
24710 \begin_inset Index idx
24713 \begin_layout Plain Layout
24722 \begin_layout Standard
24723 Footnotes can be inserted using the toolbar button
24724 \begin_inset Graphics
24725 filename ../images/footnote-insert.png
24727 scaleBeforeRotation
24733 Insert\SpecialChar \menuseparator
24745 then the following footnote-box:
24746 \begin_inset Graphics
24747 filename clipart/footnoteQt4.png
24749 scaleBeforeRotation
24757 where you can enter the footnote text.
24758 If you want to turn existing text into a footnote, mark it and click on
24780 to text, press the Backspace key when the cursor is in the first position
24789 , or press the Delete key when the cursor is in the very last position of
24801 \begin_layout Standard
24802 Here is an example footnote:
24810 \begin_layout Plain Layout
24811 \begin_inset CommandInset label
24813 name "foot:This-is-an"
24817 This is an example footnote.
24830 \begin_layout Plain Layout
24834 newcounter{MyRepeatFoot}
24837 \begin_layout Plain Layout
24841 setcounter{MyRepeatFoot}{
24851 \begin_layout Standard
24852 The footnote will appear in the output as a superscript number at the text
24853 position where the footnote box is placed.
24854 The footnote text is placed at the bottom of the current page.
24855 The footnote number is calculated by LaTeX; the numbers are consecutive.
24856 It depends on your document-class, whether the footnote number is reset
24860 \begin_layout Standard
24861 Footnotes can be referenced like floats: Insert a label into the footnote
24862 and cross-reference this label in the text as described in section
24863 \begin_inset space ~
24867 \begin_inset CommandInset ref
24869 reference "sec:Referencing-Floats"
24874 \begin_inset Newline newline
24877 This is a cross-reference of Footnote
24878 \begin_inset space ~
24882 \begin_inset CommandInset ref
24884 reference "foot:This-is-an"
24891 \begin_layout Standard
24892 \begin_inset VSpace defskip
24895 Footnotes in tables are not printed by LaTeX due to technical reasons.
24896 However there exists another method to print them: Instead of the footnote
24903 is inserted as TeX-code.
24904 The text of the footnote is entered as an argument of the TeX-code command
24912 \begin_inset Newline newline
24915 This was done for the following table with the command
24918 \begin_layout Standard
24925 Printed table footnote.
24930 \begin_layout Standard
24931 \begin_inset Tabular
24932 <lyxtabular version="3" rows="2" columns="1">
24933 <features tabularvalignment="middle">
24934 <column alignment="center" valignment="top" width="0">
24936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24939 \begin_layout Plain Layout
24940 This an example text.
24944 \begin_layout Plain Layout
24945 This footnote will not be printed!
24957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24960 \begin_layout Plain Layout
24961 This an example text.
24965 \begin_layout Plain Layout
24988 \begin_layout Plain Layout
24997 Printed table footnote.
25001 \begin_layout Plain Layout
25011 \begin_layout Standard
25012 Footnotes in longtables are described in section
25013 \begin_inset space ~
25017 \begin_inset CommandInset ref
25019 reference "sub:Footnotes-in-Longtables"
25026 \begin_layout Standard
25027 Footnotes in minipage boxes are printed, but inside the box and with a different
25028 numbering because a minipage box is like a page inside a page.
25029 (For more about minipages, see section
25030 \begin_inset space ~
25034 \begin_inset CommandInset ref
25036 reference "sec:Minipages"
25040 .) To get a footnote in the minipage that is output at the bottom of the
25041 page like normal footnotes, also use the method of
25056 \begin_layout Standard
25057 \begin_inset Box Frameless
25067 height_special "totalheight"
25070 \begin_layout Plain Layout
25071 This an example text in a minipage.
25075 \begin_layout Plain Layout
25076 Footnote in the minipage.
25084 \begin_layout Plain Layout
25085 This an example text in a minipage.
25089 \begin_layout Plain Layout
25106 \begin_layout Standard
25110 \begin_layout Plain Layout
25119 Footnote outside the minipage.
25123 \begin_layout Plain Layout
25133 \begin_layout Standard
25134 \begin_inset VSpace defskip
25140 \begin_layout Standard
25141 To refer to the same footnote several times without printing the footnote
25142 text every time, use the command
25146 footnotemark[number]
25149 \begin_inset Newline newline
25152 As you do not know the number of the repeating footnote while you are writing
25153 the text, you have to store its number.
25154 For the following footnote mark example, these commands were inserted in
25155 TeX-code after Footnote
25156 \begin_inset space ~
25160 \begin_inset CommandInset ref
25162 reference "foot:This-is-an"
25166 to store the footnote number:
25169 \begin_layout Standard
25174 newcounter{MyRepeatFoot}
25175 \begin_inset Newline newline
25180 setcounter{MyRepeatFoot}{
25185 \begin_layout Standard
25186 The footnote mark was then created with this command:
25189 \begin_layout Standard
25199 \begin_layout Standard
25200 Here is a repeated footnote:
25208 \begin_layout Plain Layout
25222 \begin_layout Standard
25223 If you want to repeat the previous footnote, you can omit the storage of
25224 the footnote number and just use this command instead:
25227 \begin_layout Standard
25237 \begin_layout Standard
25238 Here is another repeated footnote:
25246 \begin_layout Plain Layout
25260 \begin_layout Subsection
25262 \begin_inset CommandInset label
25264 name "sub:Footnote-Numbering"
25269 \begin_inset Index idx
25272 \begin_layout Plain Layout
25273 Footnotes ! Numbering
25281 \begin_layout Standard
25282 To reset the footnote number back to 1 after each section
25284 , add this command to your document preamble:
25287 \begin_layout Standard
25292 @addtoreset{footnote}{section}
25295 \begin_layout Standard
25296 \begin_inset VSpace bigskip
25299 The following preamble command changes the footnote numbering style to small
25303 \begin_layout Standard
25315 \begin_layout Standard
25319 \begin_layout Plain Layout
25332 This is a footnote with roman numbering:
25336 \begin_layout Plain Layout
25337 This is an example footnote with roman numbering.
25345 \begin_layout Standard
25346 To change the numbering style to capital roman numerals replace in the command
25361 \begin_inset Quotes eld
25365 \begin_inset Quotes erd
25368 footnotes with capital or small Latin letters use
25382 \begin_inset Quotes eld
25386 \begin_inset Quotes erd
25389 footnotes with symbols use
25398 \begin_layout Standard
25399 \begin_inset Note Greyedout
25402 \begin_layout Plain Layout
25407 You can only number 26 footnotes with Latin letters, because this numbering
25408 is limited to single letters.
25414 \begin_inset Newline newline
25418 \begin_inset Note Greyedout
25421 \begin_layout Plain Layout
25426 You can only number 9 footnotes with symbols.
25434 \begin_layout Standard
25435 To return to the default numbering style after you have changed to another
25448 in the command above.
25452 \begin_layout Plain Layout
25468 \begin_layout Standard
25469 \begin_inset VSpace bigskip
25475 \begin_layout Standard
25476 If you want to have footnotes numbered in the scheme
25477 \begin_inset Quotes eld
25481 \begin_inset Quotes erd
25484 , add the following command to your document preamble:
25487 \begin_layout Standard
25492 numberwithin{footnote}{chapter}
25495 \begin_layout Standard
25496 To be able to use the command
25505 \begin_inset space ~
25510 in the document settings the option
25513 \begin_inset space ~
25517 \begin_inset space ~
25521 \begin_inset space ~
25529 \begin_layout Standard
25533 \begin_layout Plain Layout
25537 numberwithin{footnote}{chapter}
25542 This is another example footnote:
25548 \begin_layout Plain Layout
25549 This is a footnote numbered in the scheme
25550 \begin_inset Quotes eld
25554 \begin_inset Quotes erd
25568 \begin_layout Plain Layout
25584 \begin_layout Standard
25585 \begin_inset Note Greyedout
25588 \begin_layout Plain Layout
25599 always prints out the footnote number as arabic number; previous redefinitions
25600 to get non-arabic numbers are overwritten.
25608 \begin_layout Standard
25609 So to get for example the scheme
25610 \begin_inset Quotes eld
25616 \begin_inset Quotes erd
25619 , use this command instead of
25628 \begin_layout Standard
25642 \begin_layout Subsection
25644 \begin_inset Index idx
25647 \begin_layout Plain Layout
25648 Footnotes ! Placement
25656 \begin_layout Standard
25657 If you have several footnotes in one page, they appear without vertical
25658 space between them at the bottom of the page.
25659 To make them more readable you can e.
25660 \begin_inset space \thinspace{}
25664 \begin_inset space \space{}
25668 \begin_inset space \thinspace{}
25671 mm space with the following preamble command:
25674 \begin_layout Standard
25684 \begin_inset Newline newline
25698 \begin_layout Standard
25699 \begin_inset VSpace bigskip
25702 In a two-column document the footnotes appear at the bottom of every column,
25704 \begin_inset space ~
25708 \begin_inset CommandInset ref
25710 reference "fig:Standard-footnote-placement"
25715 If the footnotes should only appear at the bottom of the right column,
25717 \begin_inset space ~
25721 \begin_inset CommandInset ref
25723 reference "fig:Footnote-placement-in"
25727 , use the LaTeX-package
25732 \begin_inset Index idx
25735 \begin_layout Plain Layout
25736 LaTeX-packages ! ftnright
25741 with this command in the document preamble:
25744 \begin_layout Standard
25749 usepackage{ftnright}
25752 \begin_layout Standard
25753 \begin_inset Float figure
25759 \begin_layout Plain Layout
25763 \begin_layout Plain Layout
25773 \begin_inset Graphics
25774 filename clipart/without_fntright.pdf
25776 scaleBeforeRotation
25784 \begin_layout Plain Layout
25794 \begin_layout Plain Layout
25795 \begin_inset Caption
25797 \begin_layout Plain Layout
25798 \begin_inset CommandInset label
25800 name "fig:Standard-footnote-placement"
25804 Standard footnote placement in two-column documents.
25817 \begin_layout Standard
25818 \begin_inset Float figure
25824 \begin_layout Plain Layout
25828 \begin_layout Plain Layout
25838 \begin_inset Graphics
25839 filename clipart/with_fntright.pdf
25841 scaleBeforeRotation
25849 \begin_layout Plain Layout
25859 \begin_layout Plain Layout
25860 \begin_inset Caption
25862 \begin_layout Plain Layout
25863 \begin_inset CommandInset label
25865 name "fig:Footnote-placement-in"
25869 Footnote placement in two-column documents when the LaTeX-package
25886 \begin_layout Standard
25887 \begin_inset VSpace bigskip
25890 In some scientific literature it is usual to collect the footnotes and print
25891 them in a separate paragraph at the end of a section, as in Figure
25892 \begin_inset space ~
25896 \begin_inset CommandInset ref
25898 reference "fig:Endnotes"
25903 They are then called
25904 \begin_inset Quotes eld
25908 \begin_inset Quotes erd
25912 \begin_inset Index idx
25915 \begin_layout Plain Layout
25921 To use endnotes instead of footnotes in your document, load in the menu
25924 Document\SpecialChar \menuseparator
25925 Settings\SpecialChar \menuseparator
25931 \begin_inset space ~
25935 \begin_inset space ~
25941 To insert the collected footnotes, insert the command
25944 \begin_layout Standard
25952 \begin_layout Standard
25953 in TeX-Code at the end of a section or chapter.
25956 \begin_layout Standard
25957 \begin_inset Float figure
25962 \begin_layout Plain Layout
25967 \begin_layout Plain Layout
25977 \begin_inset Graphics
25978 filename clipart/endnotes.pdf
25979 scaleBeforeRotation
25987 \begin_layout Plain Layout
25997 \begin_layout Plain Layout
25998 \begin_inset Caption
26000 \begin_layout Plain Layout
26001 \begin_inset CommandInset label
26003 name "fig:Endnotes"
26007 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26021 \begin_layout Standard
26022 \begin_inset VSpace medskip
26025 The paragraph heading for the endnotes isn't automatically translated into
26026 the document language, this must be done manually.
26027 The following preamble command translates the default English
26028 \begin_inset Quotes eld
26032 \begin_inset Quotes erd
26036 \begin_inset Quotes eld
26040 \begin_inset Quotes erd
26046 \begin_layout Standard
26053 notesname}{Anmerkungen}
26056 \begin_layout Standard
26057 \begin_inset VSpace medskip
26060 The numbering of endnotes can be changed like the footnote numbering as
26061 described in section
26062 \begin_inset space ~
26066 \begin_inset CommandInset ref
26068 reference "sub:Footnote-Numbering"
26072 ; just replace the command
26085 To reset the endnote number use the command
26091 as described in section
26092 \begin_inset space ~
26096 \begin_inset CommandInset ref
26098 reference "sub:Footnote-Numbering"
26102 and replace the command parameter
26113 \begin_layout Standard
26114 For endnotes there is the command
26118 endnotemark[number]
26120 similar to the command
26126 , that is described in section
26127 \begin_inset space ~
26131 \begin_inset CommandInset ref
26133 reference "sec:Footnotes"
26140 \begin_layout Standard
26141 \begin_inset VSpace bigskip
26144 Footnotes can also be placed in the page margin and the footnote text alignment
26145 can be changed, see the LaTeX-package
26150 \begin_inset Index idx
26153 \begin_layout Plain Layout
26154 LaTeX-packages ! footmisc
26160 \begin_inset CommandInset citation
26166 for more information about this.
26169 \begin_layout Standard
26170 For various further footnote formatting issues have a look at LaTeX-books,
26172 \begin_inset CommandInset citation
26174 key "latexcompanion,latexguide,latexbook"
26184 \begin_inset Index idx
26187 \begin_layout Plain Layout
26188 LaTeX-packages ! KOMA-Script
26193 document class, you can adjust all footnote settings using class-specific
26195 \begin_inset CommandInset citation
26204 \begin_layout Section
26206 \begin_inset Index idx
26209 \begin_layout Plain Layout
26210 Notes ! Margin Notes
26218 \begin_layout Standard
26219 Margin notes look and behave in LyX like footnotes.
26220 They are inserted via the menu
26222 Insert\SpecialChar \menuseparator
26224 \begin_inset space ~
26229 or the toolbar button
26230 \begin_inset Graphics
26231 filename ../images/marginalnote-insert.png
26233 scaleBeforeRotation
26248 \begin_inset Quotes eld
26252 \begin_inset Quotes erd
26255 appears where you can enter the text of the margin note.
26258 \begin_layout Standard
26259 At the side is an example margin note.
26264 \begin_inset Marginal
26267 \begin_layout Plain Layout
26268 This is a margin note.
26276 \begin_layout Standard
26277 Margin notes appear at the right side in single-sided documents.
26278 In double-sided documents they appear in the outer margin – left on even
26279 pages, right on odd pages.
26280 The text of margin notes is aligned opposite to the outer margin – right-aligne
26281 d when the note appears in the left margin.
26282 The first line of the margin note is placed at the position of the text
26283 line where it is inserted in the document.
26286 \begin_layout Standard
26287 \begin_inset VSpace bigskip
26290 To place the margin note in the inner margin, add the command
26293 \begin_layout Standard
26301 \begin_layout Standard
26302 in TeX-Code before a margin note.
26303 The new placement is valid for all subsequent margin notes.
26308 \begin_layout Plain Layout
26318 \begin_inset Marginal
26321 \begin_layout Plain Layout
26322 This is a margin note in the inner margin.
26330 \begin_inset Newline newline
26336 \begin_inset Note Greyedout
26339 \begin_layout Plain Layout
26344 There is often not enough space in the inner margin so that the notes are
26345 not correctly displayed in the output.
26353 \begin_layout Standard
26354 To return to the default placement insert the command
26357 \begin_layout Standard
26365 \begin_layout Standard
26370 \begin_layout Plain Layout
26380 \begin_inset Note Greyedout
26383 \begin_layout Plain Layout
26388 The command is ignored when it is within a paragraph where also the command
26403 \begin_layout Standard
26404 \begin_inset VSpace bigskip
26411 \begin_inset Marginal
26414 \begin_layout Plain Layout
26415 AVeryLongMarginParWord that isn't hyphenated.
26423 Similar to the case described in section
26424 \begin_inset space ~
26428 \begin_inset CommandInset ref
26430 reference "sub:Multiple-Lines-in"
26434 , long words cannot be hyphenated when they are the first word in a margin
26436 To avoid this, insert 0
26437 \begin_inset space \thinspace{}
26440 pt horizontal space before the word
26445 \begin_inset Marginal
26448 \begin_layout Plain Layout
26449 \begin_inset space \hspace*{}
26453 AVeryLongMarginParWord that is hyphenated.
26461 \begin_layout Standard
26462 \begin_inset VSpace bigskip
26468 \begin_layout Standard
26469 \begin_inset Note Greyedout
26472 \begin_layout Plain Layout
26477 Margin notes can normally not be used inside tables, floats, and footnotes.
26485 \begin_layout Standard
26486 \begin_inset VSpace bigskip
26492 \begin_layout Standard
26496 \begin_layout Plain Layout
26506 \begin_inset Note Note
26509 \begin_layout Plain Layout
26510 The following section will only be displayed when the LaTeX-package
26522 \begin_layout Standard
26523 This restriction can be evaded by using the LaTeX-package
26528 \begin_inset Index idx
26531 \begin_layout Plain Layout
26532 LaTeX-packages ! marginnote
26538 By adding these two lines to your document preamble, the command used by
26539 LyX for margin notes is redefined to use the command provided by the
26546 \begin_layout Standard
26551 usepackage{marginnote}
26552 \begin_inset Newline newline
26564 \begin_layout Standard
26565 This is also used in this document because
26569 has another useful feature: You can set a vertical offset for the note.
26570 This is often needed when too many margin notes are too close together
26571 or for a better page layout.
26572 The offset is set in LyX as TeX-Code directly after the margin note in
26576 \begin_layout Standard
26582 \begin_layout Standard
26583 where the offset is a length with one of the units listed in Table
26584 \begin_inset space ~
26588 \begin_inset CommandInset ref
26590 reference "tab:Units"
26595 A negative value shifts the note up, a positive value shifts it down.
26599 For example the margin note beside this text line is shifted up 1.5
26600 \begin_inset space \thinspace{}
26603 cm with the TeX-Code-command
26604 \begin_inset Quotes eld
26614 \begin_inset Quotes erd
26618 \begin_inset Marginal
26621 \begin_layout Plain Layout
26622 This margin note is shifted up 1.5
26623 \begin_inset space \thinspace{}
26626 cm from its original position.
26638 \begin_layout Plain Layout
26648 \begin_layout Standard
26649 \begin_inset VSpace medskip
26656 you can also change the alignment of the text in the margin note.
26657 For example the commands
26660 \begin_layout Standard
26667 raggedleftmarginnote}{
26670 \begin_inset Newline newline
26677 raggedrightmarginnote}{
26682 \begin_layout Standard
26683 set the alignment to centered.
26688 raggedleftmarginnote
26690 denotes margin notes that appear at the left side.
26697 \begin_layout Plain Layout
26703 raggedleftmarginnote}{
26708 \begin_layout Plain Layout
26714 raggedrightmarginnote}{
26722 \begin_inset Marginal
26725 \begin_layout Plain Layout
26726 The text of this margin note is centered.
26737 \begin_layout Standard
26744 raggedleftmarginnote}{
26747 \begin_inset Newline newline
26754 raggedrightmarginnote}{
26763 \begin_layout Plain Layout
26769 raggedleftmarginnote}{
26774 \begin_layout Plain Layout
26780 raggedrightmarginnote}{
26790 \begin_layout Standard
26791 \begin_inset VSpace medskip
26794 For the other features of
26798 refer to its documentation
26799 \begin_inset CommandInset citation
26808 \begin_layout Standard
26809 \begin_inset VSpace bigskip
26812 You can adjust the layout of margin notes by changing its definition.
26813 To create for example a header for all margin notes with the underlined,
26814 sans-serif, and bold header text
26815 \begin_inset Quotes eld
26827 \begin_inset Quotes erd
26830 , add this to your document preamble:
26833 \begin_layout Standard
26843 \begin_inset Newline newline
26853 \begin_inset Newline newline
26857 \begin_inset Phantom HPhantom
26860 \begin_layout Plain Layout
26863 \begin_inset space ~
26879 underbar{Attention!}}}%
26880 \begin_inset Newline newline
26884 \begin_inset Phantom HPhantom
26887 \begin_layout Plain Layout
26890 \begin_inset space ~
26907 \begin_layout Standard
26914 \begin_layout Plain Layout
26925 \begin_layout Plain Layout
26936 \begin_layout Plain Layout
26944 underbar{Attention!}}}%
26947 \begin_layout Plain Layout
26961 \begin_inset Marginal
26964 \begin_layout Plain Layout
26965 This is a margin note with a defined heading.
26977 \begin_layout Plain Layout
26991 \begin_layout Plain Layout
27008 \begin_inset Note Note
27011 \begin_layout Plain Layout
27012 The margin note format is changed only for this example.
27020 \begin_layout Standard
27024 \begin_layout Plain Layout
27034 \begin_inset Note Note
27037 \begin_layout Plain Layout
27038 The following will be displayed when the LaTeX-package
27050 \begin_layout Standard
27051 You need to install the LaTeX-package
27055 to see the following part of this section in the output.
27058 \begin_layout Standard
27062 \begin_layout Plain Layout
27074 \begin_layout Chapter
27078 \begin_layout Section
27080 \begin_inset Index idx
27083 \begin_layout Plain Layout
27084 Boxes ! Introduction
27092 \begin_layout Standard
27093 Boxes are used to format a block of text.
27094 Boxes can be used to write documents with multiple languages, see section
27095 \begin_inset space ~
27099 \begin_inset CommandInset ref
27101 reference "sec:Minipages"
27105 , to frame texts, see section
27106 \begin_inset space ~
27110 \begin_inset CommandInset ref
27112 reference "sec:Decoration"
27116 , to prevent words from being hyphenated, see section
27117 \begin_inset space ~
27121 \begin_inset CommandInset ref
27123 reference "sec:Prevent-Hyphenation"
27127 , to align text, see section
27128 \begin_inset space ~
27132 \begin_inset CommandInset ref
27134 reference "sub:Vertical-Alignment"
27138 , or to set the background color of texts, see section
27139 \begin_inset space ~
27143 \begin_inset CommandInset ref
27145 reference "sec:Colored-Boxes"
27152 \begin_layout Standard
27153 Boxes can be inserted with the menu
27155 Insert\SpecialChar \menuseparator
27158 or the toolbar button
27159 \begin_inset Graphics
27160 filename ../images/box-insert.png
27162 scaleBeforeRotation
27167 A grey box with the label
27172 \begin_inset Graphics
27173 filename clipart/BoxInsetDefaultQt4.png
27175 scaleBeforeRotation
27180 The box type can be specified by right-clicking on the box and selecting
27186 The box dialog offers the
27189 \begin_inset space ~
27211 is the default for new boxes and is explained in section
27212 \begin_inset space ~
27216 \begin_inset CommandInset ref
27218 reference "sec:Minipages"
27226 is described in section
27227 \begin_inset space ~
27231 \begin_inset CommandInset ref
27233 reference "sec:Parboxes"
27242 \begin_inset CommandInset ref
27244 reference "sec:Prevent-Hyphenation"
27251 \begin_layout Standard
27252 Boxes are not numbered and can therefore not be referenced like floats or
27256 \begin_layout Standard
27257 \begin_inset Note Greyedout
27260 \begin_layout Plain Layout
27265 Boxes must not be the item in an
27281 \begin_layout Standard
27282 \begin_inset Note Greyedout
27285 \begin_layout Plain Layout
27290 For an unknown reason you can only set the
27293 \begin_inset space ~
27302 when you use a framed box.
27306 \begin_inset space ~
27311 type and without frames are explained in section
27312 \begin_inset space ~
27316 \begin_inset CommandInset ref
27318 reference "sec:Prevent-Hyphenation"
27330 \begin_layout Section
27332 \begin_inset CommandInset label
27334 name "sec:Box-Dialog"
27339 \begin_inset Index idx
27342 \begin_layout Plain Layout
27351 \begin_layout Subsection
27353 \begin_inset Index idx
27356 \begin_layout Plain Layout
27365 \begin_layout Standard
27366 In the box dialog you can adjust the box geometry in the fields
27375 The available units for the geometry are explained in Table
27376 \begin_inset space ~
27380 \begin_inset CommandInset ref
27382 reference "tab:Units"
27391 offers the following additional sizes:
27394 \begin_layout Description
27395 Depth This is the plain text
27396 \begin_inset Quotes eld
27400 \begin_inset Quotes erd
27404 It ignores the total depth when there are multiple text lines in the box:
27405 \begin_inset Newline newline
27409 \begin_inset Newline newline
27413 \begin_inset Newline newline
27417 \begin_inset Box Boxed
27427 height_special "depth"
27430 \begin_layout Plain Layout
27432 Box height set to 1
27433 \begin_inset space \thinspace{}
27442 \begin_inset Newline newline
27446 \begin_inset Newline newline
27452 \begin_layout Description
27453 Height This is the height of the text that is inside the box.
27455 \begin_inset space \thinspace{}
27459 \begin_inset space \space{}
27462 2 for this size will set the box height to 2
27463 \begin_inset space ~
27466 times the text height:
27467 \begin_inset Box Boxed
27477 height_special "height"
27480 \begin_layout Plain Layout
27482 Box height set to 2
27483 \begin_inset space \thinspace{}
27494 \begin_layout Description
27496 \begin_inset space ~
27499 Height This is the Height
27500 \begin_inset space \thinspace{}
27504 \begin_inset space \thinspace{}
27508 \begin_inset Box Boxed
27518 height_special "totalheight"
27521 \begin_layout Plain Layout
27523 Box height set to 1
27524 \begin_inset space \thinspace{}
27528 \begin_inset space ~
27539 \begin_layout Description
27540 Width This sets the width of the box as height:
27541 \begin_inset Box Boxed
27551 height_special "width"
27554 \begin_layout Plain Layout
27556 Box height set to 1
27557 \begin_inset space \thinspace{}
27568 \begin_layout Subsection
27570 \begin_inset Index idx
27573 \begin_layout Plain Layout
27582 \begin_layout Standard
27583 When you have chosen an
27586 \begin_inset space ~
27591 , the vertical box alignment can be:
27594 \begin_layout Description
27595 Top This is an example text line.
27597 \begin_inset Box Boxed
27607 height_special "totalheight"
27610 \begin_layout Plain Layout
27612 This box is top-aligned.
27617 This is an example text line.
27620 \begin_layout Description
27621 Middle This is an example text line.
27623 \begin_inset Box Boxed
27633 height_special "totalheight"
27636 \begin_layout Plain Layout
27638 This box is middle-aligned.
27643 This is an example text line.
27646 \begin_layout Description
27647 Bottom This is an example text line.
27649 \begin_inset Box Boxed
27659 height_special "totalheight"
27662 \begin_layout Plain Layout
27664 This box is bottom-aligned.
27669 This is an example text line.
27672 \begin_layout Standard
27673 \begin_inset Note Greyedout
27676 \begin_layout Plain Layout
27681 The vertical box alignment can be lost in the output when you have two
27682 boxes in a line and one has e.
27683 \begin_inset space \thinspace{}
27687 \begin_inset space \space{}
27690 a shadow and the other one not.
27698 \begin_layout Standard
27699 The horizontal box alignment can be set via LyX's paragraph dialog when
27700 you set the box into its own paragraph.
27703 \begin_layout Standard
27704 \begin_inset VSpace bigskip
27707 When you have chosen an
27710 \begin_inset space ~
27715 , the box content can be aligned vertically to:
27718 \begin_layout Description
27719 top This is an example text line.
27721 \begin_inset Box Boxed
27731 height_special "totalheight"
27734 \begin_layout Plain Layout
27736 This box text is top-aligned.
27741 This is an example text line.
27744 \begin_layout Description
27745 middle This is an example text line.
27747 \begin_inset Box Boxed
27757 height_special "totalheight"
27760 \begin_layout Plain Layout
27762 This box text is middle-aligned.
27767 This is an example text line.
27770 \begin_layout Description
27771 bottom This is an example text line.
27773 \begin_inset Box Boxed
27783 height_special "totalheight"
27786 \begin_layout Plain Layout
27788 This box text is bottom-aligned.
27793 This is an example text line.
27796 \begin_layout Description
27797 stretch This is an example text line.
27799 \begin_inset Box Boxed
27809 height_special "totalheight"
27812 \begin_layout Plain Layout
27817 \begin_layout Plain Layout
27822 \begin_layout Plain Layout
27829 This is an example text line.
27832 \begin_layout Standard
27833 To stretch the box content, it must consist of more than one paragraph.
27834 In the example above every text line is in an own paragraph.
27837 \begin_layout Standard
27838 \begin_inset VSpace bigskip
27841 To align the box content horizontally you can use LyX's paragraph dialog
27842 when you have chosen an
27845 \begin_inset space ~
27853 \begin_layout Standard
27855 \begin_inset Box Boxed
27865 height_special "totalheight"
27868 \begin_layout Plain Layout
27873 \begin_layout Plain Layout
27878 \begin_layout Plain Layout
27888 \begin_layout Standard
27889 If you have not set an
27892 \begin_inset space ~
27897 , you can align the box content horizontally in the box dialog.
27900 \begin_layout Standard
27902 \begin_inset Box Boxed
27912 height_special "totalheight"
27915 \begin_layout Plain Layout
27916 This box text is horizontally stretched.
27924 \begin_layout Subsection
27926 \begin_inset CommandInset label
27928 name "sec:Decoration"
27933 \begin_inset Index idx
27936 \begin_layout Plain Layout
27945 \begin_layout Standard
27946 The type of the box can be specified in the box dialog in the drop-down
27952 The following types are possible:
27955 \begin_layout Description
27957 \begin_inset space ~
27960 frame Nothing is drawn.
27963 \begin_layout Description
27965 \begin_inset space ~
27969 \begin_inset space ~
27972 frame This draws a rectangular frame around the box.
27973 The frame line thickness has the size of
27981 \begin_inset Box Boxed
27991 height_special "totalheight"
27994 \begin_layout Plain Layout
28004 \begin_layout Description
28006 \begin_inset space ~
28010 \begin_inset space ~
28013 thin This draws an oval frame around the box.
28014 The frame line thickness has the size 0.4
28015 \begin_inset space \thinspace{}
28020 \begin_inset Box ovalbox
28030 height_special "totalheight"
28033 \begin_layout Plain Layout
28043 \begin_layout Description
28045 \begin_inset space ~
28049 \begin_inset space ~
28052 thick This draws an oval frame around the box.
28053 The frame line thickness has the size 0.8
28054 \begin_inset space \thinspace{}
28059 \begin_inset Box Ovalbox
28069 height_special "totalheight"
28072 \begin_layout Plain Layout
28082 \begin_layout Description
28084 \begin_inset space ~
28087 shadow This draws a rectangular frame with a shadow around the box.
28088 The frame line thickness has the size of
28094 , the shadow has a width of 4
28095 \begin_inset space \thinspace{}
28100 \begin_inset Box Shadowbox
28110 height_special "totalheight"
28113 \begin_layout Plain Layout
28123 \begin_layout Description
28125 \begin_inset space ~
28128 background This draws a box with a red background.
28129 Unlike colored boxes
28133 \begin_layout Plain Layout
28135 \begin_inset space \thinspace{}
28139 \begin_inset CommandInset ref
28141 reference "sec:Colored-Boxes"
28150 , it always uses the whole column width and the box is set as its own paragraph.
28152 \begin_inset Box Shaded
28162 height_special "totalheight"
28165 \begin_layout Plain Layout
28166 Shaded background box
28174 \begin_layout Description
28176 \begin_inset space ~
28180 \begin_inset space ~
28183 frame This draws a double-line rectangular frame around the box.
28184 The line thickness of the inner frame is 0.75
28185 \begin_inset space \thinspace{}
28194 , the thickness of the outer frame is 1.5
28195 \begin_inset space \thinspace{}
28205 The distance between the lines is 1.5
28206 \begin_inset space \thinspace{}
28216 \begin_inset space \thinspace{}
28220 \begin_inset space \thinspace{}
28224 \begin_inset space \thinspace{}
28229 \begin_inset Box Doublebox
28239 height_special "totalheight"
28242 \begin_layout Plain Layout
28244 Double rectangular box
28252 \begin_layout Standard
28253 \begin_inset VSpace bigskip
28256 LyX's box label will reflect the different frame types.
28257 To be able to use all types, the LaTeX-package
28262 \begin_inset Index idx
28265 \begin_layout Plain Layout
28266 LaTeX-packages ! fancybox
28274 \begin_layout Standard
28275 \begin_inset VSpace bigskip
28278 When you use the decoration
28280 simple rectangular frame
28282 and no inner box, you can allow page breaks within a box.
28283 Note that then, unlike other framed boxes, the frame always uses the whole
28284 column width, the box is set as its own paragraph, and
28296 have no effect on this box type.
28297 The frame line thickness has the size of
28305 \begin_inset Box Framed
28315 height_special "totalheight"
28318 \begin_layout Plain Layout
28319 Allow page break box
28327 \begin_layout Section
28329 \begin_inset Index idx
28332 \begin_layout Plain Layout
28333 Boxes ! Customization
28341 \begin_layout Standard
28342 The default value for the size
28349 \begin_inset space \thinspace{}
28353 It can be changed with the following command in TeX-code to e.
28354 \begin_inset space \thinspace{}
28358 \begin_inset space \space{}
28362 \begin_inset space \thinspace{}
28368 \begin_layout Standard
28378 \begin_layout Standard
28382 \begin_layout Plain Layout
28394 \begin_inset Box Boxed
28404 height_special "totalheight"
28407 \begin_layout Plain Layout
28409 Rectangular box with
28416 \begin_inset space \thinspace{}
28420 \begin_inset space \thinspace{}
28424 \begin_inset space \thinspace{}
28436 \begin_layout Plain Layout
28450 \begin_layout Standard
28451 \begin_inset VSpace bigskip
28454 The space between the frame and the box content is for all frame styles
28456 \begin_inset space \thinspace{}
28460 You can change it by setting the length
28467 For example the command
28470 \begin_layout Standard
28480 \begin_layout Standard
28481 sets the value to 10
28482 \begin_inset space \thinspace{}
28485 pt, as with the following box:
28488 \begin_layout Standard
28492 \begin_layout Plain Layout
28504 \begin_inset Box Boxed
28514 height_special "totalheight"
28517 \begin_layout Plain Layout
28519 Rectangular box with
28526 \begin_inset space \thinspace{}
28530 \begin_inset space \thinspace{}
28534 \begin_inset space \thinspace{}
28546 \begin_layout Plain Layout
28560 \begin_layout Standard
28561 \begin_inset VSpace bigskip
28564 The diameter of the round corners of the oval boxes can be set with the
28575 \begin_layout Standard
28583 \begin_layout Standard
28584 sets the diameter to 1
28585 \begin_inset space \thinspace{}
28592 \begin_layout Standard
28600 \begin_layout Standard
28601 sets the diameter to
28604 \begin_inset space \thinspace{}
28608 \begin_inset space \thinspace{}
28611 minimum(width and height of box)
28623 \begin_layout Standard
28627 \begin_layout Plain Layout
28637 \begin_inset Box Ovalbox
28647 height_special "totalheight"
28650 \begin_layout Plain Layout
28659 \begin_inset space \thinspace{}
28663 \begin_inset space \thinspace{}
28667 \begin_inset space \thinspace{}
28679 \begin_layout Plain Layout
28691 \begin_layout Standard
28692 \begin_inset VSpace bigskip
28695 The size of the shadow can be adjusted by changing the length
28703 \begin_inset space \thinspace{}
28706 pt for the following box by this command:
28709 \begin_layout Standard
28719 \begin_layout Standard
28723 \begin_layout Plain Layout
28735 \begin_inset Box Shadowbox
28745 height_special "totalheight"
28748 \begin_layout Plain Layout
28757 \begin_inset space \thinspace{}
28761 \begin_inset space \thinspace{}
28765 \begin_inset space \thinspace{}
28777 \begin_layout Plain Layout
28791 \begin_layout Standard
28792 \begin_inset VSpace bigskip
28798 \begin_layout Standard
28799 The default value for the size
28806 \begin_inset space \thinspace{}
28810 The default space between the note content and the frame is 9
28811 \begin_inset space \thinspace{}
28814 pt and can be changed with the value of
28821 For example the frame appearance of the following
28825 is set with the TeX-Code commands
28828 \begin_layout Standard
28836 \begin_inset Newline newline
28846 \begin_layout Standard
28850 \begin_layout Plain Layout
28859 \begin_layout Plain Layout
28871 \begin_inset Box Framed
28881 height_special "totalheight"
28884 \begin_layout Plain Layout
28898 \begin_layout Plain Layout
28907 \begin_layout Plain Layout
28921 \begin_layout Standard
28922 \begin_inset VSpace bigskip
28928 \begin_layout Standard
28933 boxes the default space between the box content and the box border is 3
28934 \begin_inset space \thinspace{}
28937 pt and can be changed with the value of
28944 The default background color red can either be changed locally with the
28949 definecolor{shadecolor}
28951 or globally with the menu
28953 Tools\SpecialChar \menuseparator
28954 Preferences\SpecialChar \menuseparator
28955 Colors\SpecialChar \menuseparator
28957 \begin_inset space ~
28969 command is explained in section
28970 \begin_inset space ~
28974 \begin_inset CommandInset ref
28976 reference "sec:Colored-Tables"
28984 \begin_layout Plain Layout
28991 requires the LaTeX-package
28995 in the preamble, see section
28996 \begin_inset space ~
29000 \begin_inset CommandInset ref
29002 reference "sec:Colored-Boxes"
29011 For example the appearance of the following shaded background box is set
29012 with the TeX-Code commands
29015 \begin_layout Standard
29025 \begin_inset Newline newline
29032 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29035 \begin_layout Standard
29039 \begin_layout Plain Layout
29048 \begin_layout Plain Layout
29052 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29058 \begin_inset Box Shaded
29068 height_special "totalheight"
29071 \begin_layout Plain Layout
29074 This is yellow text in a
29084 box with dark green background.
29093 \begin_layout Plain Layout
29102 \begin_layout Plain Layout
29106 definecolor{shadecolor}{rgb}{1,0,0}
29114 \begin_layout Standard
29115 \begin_inset VSpace bigskip
29118 Changed lengths and widths are valid for all boxes following the commands
29122 \begin_layout Section
29124 \begin_inset CommandInset label
29126 name "sec:Minipages"
29131 \begin_inset Index idx
29134 \begin_layout Plain Layout
29143 \begin_layout Standard
29144 Minipages are treated by LaTeX as pages within pages and can therefore for
29145 example have their own footnotes.
29148 \begin_layout Standard
29149 Minipages are useful when you write documents with different languages.
29152 \begin_layout Standard
29153 Below are two example minipages side by side.
29154 Their width is set to 45
29155 \begin_inset space \thinspace{}
29158 col% and they are separated by a horizontal fill, that was inserted via
29161 Insert\SpecialChar \menuseparator
29163 \begin_inset space ~
29166 Formatting\SpecialChar \menuseparator
29168 \begin_inset space ~
29174 \begin_inset Newpage newpage
29180 \begin_layout Standard
29181 \begin_inset Box Frameless
29191 height_special "totalheight"
29194 \begin_layout Plain Layout
29197 Dies ist ein deutscher Text.
29198 Dies ist ein deutscher Text.
29199 Dies ist ein deutscher Text.
29200 Dies ist ein deutscher Text.
29201 Dies ist ein deutscher Text.
29202 Dies ist ein deutscher Text.
29203 Dies ist ein deutscher Text.
29204 Dies ist ein deutscher Text.
29205 Dies ist ein deutscher Text.
29206 Dies ist ein deutscher Text.
29207 Dies ist ein deutscher Text.
29208 Dies ist ein deutscher Text.
29209 Dies ist ein deutscher Text
29213 \begin_layout Plain Layout
29216 Dies ist eine deutsche Fußnote.
29222 Dies ist ein deutscher Text.
29223 Dies ist ein deutscher Text.
29229 \begin_inset space \hfill{}
29233 \begin_inset Box Frameless
29243 height_special "totalheight"
29246 \begin_layout Plain Layout
29247 This is an English Text.
29248 This is an English Text.
29249 This is an English Text.
29250 This is an English Text.
29251 This is an English Text.
29252 This is an English Text.
29253 This is an English Text.
29254 This is an English Text.
29255 This is an English Text.
29256 This is an English Text.
29257 This is an English Text.
29258 This is an English Text.
29259 This is an English Text.
29260 This is an English Text.
29261 This is an English Text.
29262 This is an English Text.
29266 \begin_layout Plain Layout
29267 This is an English footnote.
29272 This is an English Text.
29281 \begin_layout Standard
29282 \begin_inset VSpace bigskip
29285 The document-wide paragraph settings are ignored within minipages.
29286 That means that there will be no space between paragraphs in minipages
29287 although you set it to e.
29288 \begin_inset space \thinspace{}
29292 \begin_inset space \space{}
29299 in the document settings.
29302 \begin_layout Standard
29303 Minipages can also be used to set a background color for text parts, see
29305 \begin_inset space ~
29309 \begin_inset CommandInset ref
29311 reference "sub:Color-for-Paragraphs"
29318 \begin_layout Standard
29319 \begin_inset Note Greyedout
29322 \begin_layout Plain Layout
29327 You cannot have floats or margin notes inside minipages but minipages can
29328 be used inside tables, floats, and other boxes.
29336 \begin_layout Section
29338 \begin_inset CommandInset label
29340 name "sec:Parboxes"
29345 \begin_inset Index idx
29348 \begin_layout Plain Layout
29357 \begin_layout Standard
29358 Parboxes are very similar to minipages with the difference that they cannot
29362 \begin_layout Standard
29364 \begin_inset Box Frameless
29374 height_special "totalheight"
29377 \begin_layout Plain Layout
29378 This a text within a parbox.
29379 This a text within a parbox.
29382 \begin_layout Plain Layout
29383 This footnote won't appear:
29387 \begin_layout Plain Layout
29388 This footnote is inside a parbox and will therefore not appear.
29401 \begin_layout Section
29402 Boxes for Words and Characters
29403 \begin_inset Index idx
29406 \begin_layout Plain Layout
29407 Boxes ! for Characters
29415 \begin_layout Subsection
29416 Prevent Hyphenation
29417 \begin_inset CommandInset label
29419 name "sec:Prevent-Hyphenation"
29424 \begin_inset Index idx
29427 \begin_layout Plain Layout
29428 Boxes ! to Prevent Hyphenation
29436 \begin_layout Standard
29437 You can use the box type
29441 to prevent words or text from being hyphenated.
29442 \begin_inset Newline newline
29445 Here is an example text:
29448 \begin_layout Standard
29449 This line is an example to show how you can prevent the hyphenation of
29450 \begin_inset Quotes eld
29454 \begin_inset Quotes erd
29460 \begin_layout Standard
29461 To prevent the hyphenation of the word
29462 \begin_inset Quotes eld
29466 \begin_inset Quotes erd
29469 , put the word into a box, set the
29472 \begin_inset space ~
29482 \begin_inset space \thinspace{}
29488 \begin_layout Standard
29489 This is the result:
29492 \begin_layout Standard
29493 This line is an example to show how you can prevent the hyphenation of
29494 \begin_inset Box Frameless
29504 height_special "totalheight"
29507 \begin_layout Plain Layout
29508 \begin_inset Quotes eld
29512 \begin_inset Quotes erd
29523 \begin_layout Standard
29524 You can alternatively set the command
29525 \begin_inset Quotes eld
29535 \begin_inset Quotes grd
29538 as TeX-Code directly before the word:
29541 \begin_layout Standard
29542 This line is an example to show how you can prevent the hyphenation of
29543 \begin_inset Quotes eld
29550 \begin_layout Plain Layout
29560 \begin_inset Quotes erd
29566 \begin_layout Standard
29567 Of course the word now protrudes over the side margin.
29568 To avoid this, add via the menu
29570 Insert\SpecialChar \menuseparator
29571 Formatting\SpecialChar \menuseparator
29573 \begin_inset space ~
29577 \begin_inset space ~
29585 arg "newline-insert newline"
29588 ) a line break before the word:
29591 \begin_layout Standard
29592 This line is an example to show how you can prevent the hyphenation of
29593 \begin_inset Newline newline
29597 \begin_inset Box Frameless
29607 height_special "totalheight"
29610 \begin_layout Plain Layout
29611 \begin_inset Quotes eld
29615 \begin_inset Quotes erd
29626 \begin_layout Subsection
29628 \begin_inset CommandInset label
29630 name "sub:Vertical-Alignment"
29635 \begin_inset Index idx
29638 \begin_layout Plain Layout
29639 Boxes ! for Vertical Alignment
29645 \begin_inset Index idx
29648 \begin_layout Plain Layout
29657 \begin_layout Standard
29658 With the help of the command
29664 you can align words, characters or other boxes vertically relative to the
29672 is used with the following scheme:
29675 \begin_layout Standard
29680 raisebox{lift}[height][depth]{box content}
29683 \begin_layout Standard
29684 The lift can be a positive value to raise the box or a negative value to
29688 \begin_layout Standard
29689 To align for example the word
29690 \begin_inset Quotes eld
29694 \begin_inset Quotes erd
29697 so that the bottom of the
29698 \begin_inset Quotes eld
29702 \begin_inset Quotes erd
29706 \begin_inset Quotes eld
29710 \begin_inset Quotes erd
29713 is at the baseline, insert the command
29716 \begin_layout Standard
29726 \begin_layout Standard
29727 in TeX-Code before the word.
29728 After the word insert a closing brace
29729 \begin_inset Quotes eld
29737 \begin_inset Quotes erd
29741 \begin_inset Newline newline
29744 This is the result:
29747 \begin_layout Standard
29748 This is a text line with the word
29752 \begin_layout Plain Layout
29764 \begin_inset Quotes eld
29768 \begin_inset Quotes erd
29775 \begin_layout Plain Layout
29785 \begin_layout Standard
29786 \begin_inset VSpace bigskip
29789 When you raise or lower characters in a line, the line distance will be
29793 \begin_layout Standard
29794 This is a text line with the word
29798 \begin_layout Plain Layout
29810 \begin_inset Quotes eld
29814 \begin_inset Quotes erd
29821 \begin_layout Plain Layout
29829 \begin_inset Newline newline
29832 This is a text line with the word
29836 \begin_layout Plain Layout
29846 \begin_inset Quotes eld
29850 \begin_inset Quotes erd
29857 \begin_layout Plain Layout
29867 \begin_layout Standard
29868 If you want to prevent this for a certain reason, set the box height to
29873 \begin_layout Standard
29883 \begin_layout Standard
29884 This is a text line with the word
29888 \begin_layout Plain Layout
29900 \begin_inset Quotes eld
29904 \begin_inset Quotes erd
29911 \begin_layout Plain Layout
29919 \begin_inset Newline newline
29922 This is a text line with the word
29926 \begin_layout Plain Layout
29930 raisebox{0.5cm}[0pt]{
29936 \begin_inset Quotes eld
29940 \begin_inset Quotes erd
29947 \begin_layout Plain Layout
29957 \begin_layout Section
29959 \begin_inset CommandInset label
29961 name "sec:Colored-Boxes"
29966 \begin_inset Index idx
29969 \begin_layout Plain Layout
29978 \begin_layout Subsection
29980 \begin_inset Index idx
29983 \begin_layout Plain Layout
29992 \begin_layout Standard
29993 To color the background of text the text must be put into a so called
29994 \begin_inset Quotes eld
29998 \begin_inset Quotes erd
30002 This requires that the LaTeX-package
30007 \begin_inset Index idx
30010 \begin_layout Plain Layout
30011 LaTeX-packages ! color
30016 is loaded in the document preamble with the command
30019 \begin_layout Standard
30024 @ifundefined{textcolor}
30025 \begin_inset Newline newline
30029 \begin_inset Phantom HPhantom
30032 \begin_layout Plain Layout
30035 \begin_inset space ~
30045 usepackage{color}}{}
30048 \begin_layout Standard
30053 will be loaded automatically by LyX when you color text.
30057 \begin_layout Plain Layout
30058 To avoid it being loaded twice the command
30072 \begin_layout Standard
30073 \begin_inset VSpace medskip
30076 Colorboxes are created with the command
30083 This will be used with the following scheme:
30086 \begin_layout Standard
30091 colorbox{color}{box content}
30094 \begin_layout Standard
30095 The box content can also be a box and colorboxes can also be within other
30099 \begin_layout Standard
30100 The following colors are predefined:
30101 \begin_inset Newline newline
30140 \begin_inset Newline newline
30143 You can also define your own color as described in section
30144 \begin_inset space ~
30148 \begin_inset CommandInset ref
30150 reference "sec:Colored-Tables"
30157 \begin_layout Standard
30159 \begin_inset space \thinspace{}
30163 \begin_inset space \space{}
30166 a red background for a word, insert the command
30169 \begin_layout Standard
30177 \begin_layout Standard
30178 before the word in TeX-Code.
30179 After the word insert a closing brace
30180 \begin_inset Quotes eld
30188 \begin_inset Quotes erd
30192 \begin_inset Newline newline
30195 This is the result:
30198 \begin_layout Standard
30199 This is a line where the word
30203 \begin_layout Plain Layout
30213 \begin_inset Quotes eld
30217 \begin_inset Quotes erd
30224 \begin_layout Plain Layout
30231 has a red background.
30234 \begin_layout Standard
30235 \begin_inset VSpace bigskip
30238 If you would like the box frame in a different color, you can use the command
30245 with the following scheme:
30248 \begin_layout Standard
30253 fcolorbox{frame color}{box color}{box content}
30256 \begin_layout Standard
30270 The frame thickness and the space between the frame and the box content
30271 can be adjusted with the lengths
30283 , respectively, as described in section
30284 \begin_inset space ~
30288 \begin_inset CommandInset ref
30290 reference "sec:Decoration"
30297 \begin_layout Standard
30298 For the following example the command
30301 \begin_layout Standard
30306 fcolorbox{cyan}{magenta}{
30309 \begin_layout Standard
30313 \begin_layout Standard
30314 Here is an example where the frame line thickness was set to 1
30315 \begin_inset space \thinspace{}
30319 \begin_inset Newline newline
30326 \begin_layout Plain Layout
30341 \begin_layout Plain Layout
30345 fcolorbox{cyan}{magenta}{
30350 This is text within a colored, framed box.
30354 \begin_layout Plain Layout
30364 \begin_layout Standard
30365 \begin_inset VSpace bigskip
30368 Of course you can also have colored text inside a colorbox:
30369 \begin_inset Newline newline
30376 \begin_layout Plain Layout
30380 fcolorbox{cyan}{magenta}{
30387 This is colored text within a colored, framed box.
30393 \begin_layout Plain Layout
30404 \begin_layout Plain Layout
30418 \begin_layout Standard
30419 \begin_inset VSpace medskip
30425 \begin_layout Standard
30426 \begin_inset Note Greyedout
30429 \begin_layout Plain Layout
30434 Text in colorboxes cannot have line breaks.
30435 To color multiple text lines or paragraphs, use a box inside a colorbox
30436 as described in the following.
30444 \begin_layout Subsection
30445 Color for Paragraphs
30446 \begin_inset CommandInset label
30448 name "sub:Color-for-Paragraphs"
30453 \begin_inset Index idx
30456 \begin_layout Plain Layout
30457 Color ! for Paragraphs
30465 \begin_layout Standard
30466 To set the background color for more than one text line, put the text into
30468 Before the minipage insert the
30477 \begin_layout Standard
30485 \begin_layout Standard
30487 After the minipage insert a closing brace
30488 \begin_inset Quotes eld
30496 \begin_inset Quotes erd
30502 \begin_layout Standard
30506 \begin_layout Plain Layout
30510 colorbox{lightgrey}{
30516 \begin_inset Box Frameless
30526 height_special "totalheight"
30529 \begin_layout Plain Layout
30530 This is text with background color.
30531 This is text with background color.
30534 \begin_layout Plain Layout
30535 \begin_inset VSpace defskip
30538 The text can have footnotes
30542 \begin_layout Plain Layout
30543 Another example footnote
30548 and can include tables and figures.
30551 \begin_layout Plain Layout
30553 \begin_inset Tabular
30554 <lyxtabular version="3" rows="3" columns="3">
30555 <features tabularvalignment="middle">
30556 <column alignment="center" valignment="top" width="0">
30557 <column alignment="center" valignment="top" width="0">
30558 <column alignment="center" valignment="top" width="0">
30560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30563 \begin_layout Plain Layout
30569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30572 \begin_layout Plain Layout
30578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30581 \begin_layout Plain Layout
30589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30592 \begin_layout Plain Layout
30598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30601 \begin_layout Plain Layout
30603 \begin_inset Quotes erd
30611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30614 \begin_layout Plain Layout
30622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30625 \begin_layout Plain Layout
30631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30634 \begin_layout Plain Layout
30640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30643 \begin_layout Plain Layout
30663 \begin_layout Plain Layout
30673 \begin_layout Section
30674 Rotated and Scaled Boxes
30677 \begin_layout Standard
30678 To use the commands described in this section, the LaTeX-package
30683 \begin_inset Index idx
30686 \begin_layout Plain Layout
30687 LaTeX-packages ! graphicx
30692 needs to be loaded in the document preamble with the command
30695 \begin_layout Standard
30700 @ifundefined{rotatebox}
30701 \begin_inset Newline newline
30705 \begin_inset Phantom HPhantom
30708 \begin_layout Plain Layout
30711 \begin_inset space ~
30721 usepackage{graphicx}}{}
30724 \begin_layout Standard
30725 \begin_inset Note Greyedout
30728 \begin_layout Plain Layout
30733 Some DVI-viewers can't display rotated or scaled material.
30741 \begin_layout Standard
30742 \begin_inset Note Greyedout
30745 \begin_layout Plain Layout
30750 Floats mustn't be inside a rotated or scaled box.
30758 \begin_layout Subsection
30760 \begin_inset Index idx
30763 \begin_layout Plain Layout
30770 \begin_inset Index idx
30773 \begin_layout Plain Layout
30780 \begin_inset Index idx
30783 \begin_layout Plain Layout
30790 \begin_inset Index idx
30793 \begin_layout Plain Layout
30794 Table Customization ! Rotating
30802 \begin_layout Standard
30803 To rotate material, you can put it into a rotated box.
30804 Such a box is created using the command
30810 in TeX-Code with the following scheme:
30813 \begin_layout Standard
30818 rotatebox[rotation origin]{rotation angle}{box content}
30821 \begin_layout Standard
30822 The rotation origin is specified in the form
30827 The following positions are possible:
30847 (top), along with meaningful combinations of the four base positions.
30852 means that the rotation origin is at the top left corner of the box.
30853 When no rotation origin is specified, the position
30858 The rotation angle is a number that can be negative that specifies the
30860 The rotation direction is counterclockwise.
30863 \begin_layout Standard
30864 In the following example the command
30868 rotatebox[origin=c]{60}{
30870 was inserted as TeX-Code before the text
30871 \begin_inset Quotes eld
30875 \begin_inset Quotes erd
30878 ; after the text the box was closed by a closing brace
30885 \begin_layout Standard
30890 \begin_layout Plain Layout
30894 rotatebox[origin=c]{60}{
30903 \begin_layout Plain Layout
30913 \begin_layout Standard
30914 The box content can also be another box or an inline formula:
30917 \begin_layout Standard
30922 \begin_layout Plain Layout
30926 rotatebox[origin=r]{-60}{
30932 \begin_inset Box Doublebox
30942 height_special "totalheight"
30945 \begin_layout Plain Layout
30955 \begin_layout Plain Layout
30966 \begin_layout Plain Layout
30970 rotatebox[origin=lb]{60}{
30976 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30983 \begin_layout Plain Layout
30993 \begin_layout Standard
30994 or an image or table:
30997 \begin_layout Standard
31002 \begin_layout Plain Layout
31006 rotatebox[origin=lb]{90}{
31012 \begin_inset Graphics
31013 filename clipart/platypus.eps
31023 \begin_layout Plain Layout
31030 with a rotated image
31034 \begin_layout Plain Layout
31038 rotatebox[origin=l]{-90}{
31044 \begin_inset Tabular
31045 <lyxtabular version="3" rows="2" columns="2">
31046 <features tabularvalignment="middle">
31047 <column alignment="center" valignment="top" width="0">
31048 <column alignment="center" valignment="top" width="0">
31050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31053 \begin_layout Plain Layout
31059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31062 \begin_layout Plain Layout
31070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31073 \begin_layout Plain Layout
31079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31082 \begin_layout Plain Layout
31097 \begin_layout Plain Layout
31107 \begin_layout Subsection
31109 \begin_inset Index idx
31112 \begin_layout Plain Layout
31119 \begin_inset Index idx
31122 \begin_layout Plain Layout
31129 \begin_inset Index idx
31132 \begin_layout Plain Layout
31139 \begin_inset Index idx
31142 \begin_layout Plain Layout
31143 Table Customization ! Scaling
31151 \begin_layout Standard
31152 To scale material the commands
31164 can be used as TeX-Code.
31167 \begin_layout Standard
31174 is used with the following scheme:
31177 \begin_layout Standard
31182 scalebox{horizontal}[vertical]{box content}
31185 \begin_layout Standard
31186 Horizontal and vertical are the corresponding scaling factors.
31187 If no vertical scaling factor is given, the horizontal factor will also
31188 be used as the vertical one.
31191 \begin_layout Standard
31198 creates for example a double size
31202 \begin_layout Plain Layout
31215 \begin_layout Plain Layout
31222 , compared with the document text size.
31225 \begin_layout Standard
31230 scalebox{2}[1]{Hello}
31232 on the other hand distorts the
31236 \begin_layout Plain Layout
31249 \begin_layout Plain Layout
31259 \begin_layout Standard
31260 If the scaling factor is negative, the box content will be mirrored.
31261 Therefore the command
31265 scalebox{-1}[1]{Hello}
31267 can be used to create mirror writing:
31271 \begin_layout Plain Layout
31284 \begin_layout Plain Layout
31294 \begin_layout Standard
31299 scalebox{1}[-1]{Hello}
31305 \begin_layout Plain Layout
31318 \begin_layout Plain Layout
31328 \begin_layout Standard
31333 scalebox{-1}[1]{box content}
31335 there exists the command
31336 \begin_inset Newline newline
31343 reflectbox{box content}
31348 \begin_layout Standard
31349 \begin_inset VSpace bigskip
31358 is used to scale the box to a defined width and height.
31359 The command scheme is:
31362 \begin_layout Standard
31367 resizebox{width}{height}{box content}
31370 \begin_layout Standard
31371 If one of the two command arguments given is an exclamation mark
31375 , the size is set so that the aspect ratio of the box content is kept.
31378 \begin_layout Standard
31383 resizebox{2cm}{1cm}{Hello}
31389 \begin_layout Plain Layout
31393 resizebox{2cm}{1cm}{
31402 \begin_layout Plain Layout
31410 \begin_inset Newline newline
31417 resizebox{2cm}{!}{Hello}
31423 \begin_layout Plain Layout
31436 \begin_layout Plain Layout
31446 \begin_layout Standard
31447 \begin_inset VSpace bigskip
31451 \begin_inset Note Greyedout
31454 \begin_layout Plain Layout
31471 are set to zero, no LaTeX-errors occur when exporting the document but
31472 the exported files can not or only partly be displayed.
31480 \begin_layout Standard
31481 \begin_inset VSpace bigskip
31487 \begin_layout Standard
31488 The boxes can be combined in any order.
31490 \begin_inset space \thinspace{}
31494 \begin_inset space \space{}
31498 \begin_inset Newline newline
31505 rotatebox[origin=c]{-45}{
31509 reflectbox{Hello}}}
31510 \begin_inset Newline newline
31518 \begin_layout Standard
31523 \begin_layout Plain Layout
31527 rotatebox[origin=c]{-45}{
31540 \begin_layout Plain Layout
31550 \begin_layout Standard
31552 Images, tables, and inline formulas are allowed as box content:
31555 \begin_layout Standard
31560 \begin_layout Plain Layout
31564 rotatebox[origin=c]{-30}{
31574 \begin_inset Graphics
31575 filename clipart/platypus.eps
31585 \begin_layout Plain Layout
31596 \begin_layout Plain Layout
31600 rotatebox[origin=c]{-45}{
31610 \begin_inset Tabular
31611 <lyxtabular version="3" rows="2" columns="2">
31612 <features tabularvalignment="middle">
31613 <column alignment="center" valignment="top" width="0">
31614 <column alignment="center" valignment="top" width="0">
31616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31619 \begin_layout Plain Layout
31625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31628 \begin_layout Plain Layout
31636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31639 \begin_layout Plain Layout
31645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31648 \begin_layout Plain Layout
31663 \begin_layout Plain Layout
31674 \begin_layout Plain Layout
31678 rotatebox[origin=c]{-45}{
31688 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31695 \begin_layout Plain Layout
31705 \begin_layout Standard
31706 When the global formula style
31710 is used in the document
31714 \begin_layout Plain Layout
31716 \begin_inset Quotes eld
31720 \begin_inset Quotes erd
31723 is added to the document class options.
31728 , display style formulas can also be scaled.
31731 \begin_layout Chapter
31732 Objects Surrounded by Text
31733 \begin_inset Index idx
31736 \begin_layout Plain Layout
31745 \begin_layout Section
31747 \begin_inset CommandInset label
31749 name "sec:Wrap-Floats"
31754 \begin_inset Index idx
31757 \begin_layout Plain Layout
31758 Floats ! Wrap Floats
31764 \begin_inset Index idx
31767 \begin_layout Plain Layout
31768 Surrounded by text ! Wrap Floats
31776 \begin_layout Standard
31777 \begin_inset Wrap figure
31784 \begin_layout Plain Layout
31785 \begin_inset Graphics
31786 filename clipart/mobius.eps
31788 scaleBeforeRotation
31789 rotateOrigin center
31796 \begin_layout Plain Layout
31797 \begin_inset Caption
31799 \begin_layout Plain Layout
31800 \begin_inset CommandInset label
31802 name "fig:This-is-a"
31806 This is a figure wrap float.
31816 This float type is used if you want to wrap text around a figure or table
31817 so that it only occupies some fraction of the column width.
31818 It can be inserted using the menu
31820 Insert\SpecialChar \menuseparator
31821 Floats\SpecialChar \menuseparator
31823 \begin_inset space ~
31827 \begin_inset space ~
31835 \begin_inset space ~
31839 \begin_inset space ~
31844 if the LaTeX-package
31849 \begin_inset Index idx
31852 \begin_layout Plain Layout
31853 LaTeX-packages ! wrapfig
31857 \begin_layout Plain Layout
31875 \begin_layout Plain Layout
31876 Installing a LaTeX-package is explained it in the
31879 \begin_inset space ~
31889 The settings of the float can be modified by right-clicking on the float
31891 The mandatory settings are the float
31904 that specifies how much the float is set into the paragraph
31905 \begin_inset space \thinspace{}
31909 \begin_inset space \thinspace{}
31912 page margin, and the
31915 \begin_inset space ~
31920 that specifies how many text lines the float will approximately need.
31921 The line span is often hard to approximate; so it is better only to use
31922 it when you encounter float placement problems.
31923 You can furthermore decide if LaTeX is allowed to let the float float within
31924 the paragraph or to surrounding paragraphs.
31926 \begin_inset space ~
31930 \begin_inset CommandInset ref
31932 reference "fig:This-is-a"
31936 is an example text wrap float with a width of 40
31937 \begin_inset space \thinspace{}
31941 \begin_inset space \thinspace{}
31944 cm overhang, set to the left.
31947 \begin_layout Standard
31948 \begin_inset Note Greyedout
31951 \begin_layout Plain Layout
31957 \begin_inset space ~
31960 wrap float floats are fragile! E.
31961 \begin_inset space \thinspace{}
31965 \begin_inset space \space{}
31968 having a figure too close to the bottom of the page can mess things up in
31969 such a way that the float does not appear in the output or that it is placed
31970 over some other text.
31978 \begin_layout Standard
31979 In general, the following applies for wrap floats:
31982 \begin_layout Itemize
31983 They should not be placed in paragraphs that run over a page break.
31984 That means that wrap floats are better inserted in their exact place when
31985 the document is almost finished and you are able to estimate where page
31986 breaks will appear.
31989 \begin_layout Itemize
31990 They should either be placed in their own paragraph before the paragraph
31991 where they should wrap into or within a paragraph.
31994 \begin_layout Itemize
31995 In consecutive paragraphs they may cause troubles, so ensure that there
31996 is a text paragraph between them as separator.
31999 \begin_layout Itemize
32000 They are not allowed in section headings or tables.
32003 \begin_layout Itemize
32004 Their numbering and referencing works as described in chap.
32005 \begin_inset space \thinspace{}
32009 \begin_inset CommandInset ref
32011 reference "chap:Floats"
32018 \begin_layout Section
32019 Surrounded Fixed Objects
32020 \begin_inset Index idx
32023 \begin_layout Plain Layout
32024 Surrounded by text ! Fixed objects
32032 \begin_layout Standard
32033 The wrap floats described in sec.
32034 \begin_inset space \thinspace{}
32038 \begin_inset CommandInset ref
32040 reference "sec:Wrap-Floats"
32044 have these positions in the paragraph:
32047 \begin_layout Standard
32050 \begin_inset Tabular
32051 <lyxtabular version="3" rows="2" columns="2">
32052 <features tabularvalignment="middle">
32053 <column alignment="center" valignment="top" width="0">
32054 <column alignment="center" valignment="top" width="0">
32056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32059 \begin_layout Plain Layout
32060 \begin_inset Graphics
32061 filename ../images/dialog-show-new-inset_graphics.png
32063 scaleBeforeRotation
32064 BoundingBox 0bp 6bp 22bp 22bp
32073 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32076 \begin_layout Plain Layout
32084 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32087 \begin_layout Plain Layout
32093 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32096 \begin_layout Plain Layout
32108 \begin_inset Tabular
32109 <lyxtabular version="3" rows="2" columns="2">
32110 <features tabularvalignment="middle">
32111 <column alignment="center" valignment="top" width="0">
32112 <column alignment="center" valignment="top" width="0">
32114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32117 \begin_layout Plain Layout
32123 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32126 \begin_layout Plain Layout
32127 \begin_inset Graphics
32128 filename ../images/dialog-show-new-inset_graphics.png
32130 scaleBeforeRotation
32131 BoundingBox 0bp 6bp 22bp 22bp
32142 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32145 \begin_layout Plain Layout
32151 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32154 \begin_layout Plain Layout
32168 \begin_layout Standard
32169 To get an object exactly at the position where it is inserted, for example
32170 to get one of these positions:
32171 \begin_inset VSpace defskip
32177 \begin_layout Standard
32180 \begin_inset Tabular
32181 <lyxtabular version="3" rows="2" columns="2">
32182 <features tabularvalignment="middle">
32183 <column alignment="center" valignment="top" width="0">
32184 <column alignment="center" valignment="top" width="0">
32186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32189 \begin_layout Plain Layout
32195 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32198 \begin_layout Plain Layout
32206 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32209 \begin_layout Plain Layout
32210 \begin_inset Graphics
32211 filename ../images/dialog-show-new-inset_graphics.png
32213 scaleBeforeRotation
32214 BoundingBox 0bp 6bp 22bp 22bp
32223 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32226 \begin_layout Plain Layout
32238 \begin_inset Tabular
32239 <lyxtabular version="3" rows="2" columns="2">
32240 <features tabularvalignment="middle">
32241 <column alignment="center" valignment="top" width="0">
32242 <column alignment="center" valignment="top" width="0">
32244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32247 \begin_layout Plain Layout
32253 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32256 \begin_layout Plain Layout
32264 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32267 \begin_layout Plain Layout
32273 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32276 \begin_layout Plain Layout
32277 \begin_inset Graphics
32278 filename ../images/dialog-show-new-inset_graphics.png
32280 scaleBeforeRotation
32281 BoundingBox 0bp 6bp 22bp 22bp
32296 \begin_inset Tabular
32297 <lyxtabular version="3" rows="2" columns="3">
32298 <features tabularvalignment="middle">
32299 <column alignment="center" valignment="top" width="0">
32300 <column alignment="center" valignment="top" width="0">
32301 <column alignment="center" valignment="top" width="0">
32303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32306 \begin_layout Plain Layout
32312 <cell alignment="center" valignment="top" topline="true" usebox="none">
32315 \begin_layout Plain Layout
32316 \begin_inset Graphics
32317 filename ../images/dialog-show-new-inset_graphics.png
32319 scaleBeforeRotation
32320 BoundingBox 0bp 6bp 22bp 22bp
32329 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32332 \begin_layout Plain Layout
32340 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32343 \begin_layout Plain Layout
32349 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32352 \begin_layout Plain Layout
32358 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32361 \begin_layout Plain Layout
32373 \begin_inset Tabular
32374 <lyxtabular version="3" rows="2" columns="3">
32375 <features tabularvalignment="middle">
32376 <column alignment="center" valignment="top" width="0">
32377 <column alignment="center" valignment="top" width="0">
32378 <column alignment="center" valignment="top" width="0">
32380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32383 \begin_layout Plain Layout
32389 <cell alignment="center" valignment="top" topline="true" usebox="none">
32392 \begin_layout Plain Layout
32398 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32401 \begin_layout Plain Layout
32409 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32412 \begin_layout Plain Layout
32418 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32421 \begin_layout Plain Layout
32422 \begin_inset Graphics
32423 filename ../images/dialog-show-new-inset_graphics.png
32425 scaleBeforeRotation
32426 BoundingBox 0bp 6bp 22bp 22bp
32435 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32438 \begin_layout Plain Layout
32452 \begin_layout Standard
32455 \begin_inset Tabular
32456 <lyxtabular version="3" rows="3" columns="2">
32457 <features tabularvalignment="middle">
32458 <column alignment="center" valignment="top" width="0">
32459 <column alignment="center" valignment="top" width="0">
32461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32464 \begin_layout Plain Layout
32470 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32473 \begin_layout Plain Layout
32481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32484 \begin_layout Plain Layout
32485 \begin_inset Graphics
32486 filename ../images/dialog-show-new-inset_graphics.png
32488 scaleBeforeRotation
32489 BoundingBox 0bp 6bp 22bp 22bp
32498 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32501 \begin_layout Plain Layout
32509 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32512 \begin_layout Plain Layout
32518 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32521 \begin_layout Plain Layout
32533 \begin_inset Tabular
32534 <lyxtabular version="3" rows="3" columns="3">
32535 <features tabularvalignment="middle">
32536 <column alignment="center" valignment="top" width="0">
32537 <column alignment="center" valignment="top" width="0">
32538 <column alignment="center" valignment="top" width="0">
32540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32543 \begin_layout Plain Layout
32549 <cell alignment="center" valignment="top" topline="true" usebox="none">
32552 \begin_layout Plain Layout
32558 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32561 \begin_layout Plain Layout
32569 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32572 \begin_layout Plain Layout
32578 <cell alignment="center" valignment="top" usebox="none">
32581 \begin_layout Plain Layout
32582 \begin_inset Graphics
32583 filename ../images/dialog-show-new-inset_graphics.png
32585 scaleBeforeRotation
32586 BoundingBox 0bp 6bp 22bp 22bp
32595 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32598 \begin_layout Plain Layout
32606 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32609 \begin_layout Plain Layout
32615 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32618 \begin_layout Plain Layout
32624 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32627 \begin_layout Plain Layout
32639 \begin_inset Tabular
32640 <lyxtabular version="3" rows="3" columns="2">
32641 <features tabularvalignment="middle">
32642 <column alignment="center" valignment="top" width="0">
32643 <column alignment="center" valignment="top" width="0">
32645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32648 \begin_layout Plain Layout
32654 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32657 \begin_layout Plain Layout
32665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32668 \begin_layout Plain Layout
32674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32677 \begin_layout Plain Layout
32678 \begin_inset Graphics
32679 filename ../images/dialog-show-new-inset_graphics.png
32681 scaleBeforeRotation
32682 BoundingBox 0bp 6bp 22bp 22bp
32693 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32696 \begin_layout Plain Layout
32702 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32705 \begin_layout Plain Layout
32719 \begin_layout Standard
32721 you can use the LaTeX-package
32726 \begin_inset Index idx
32729 \begin_layout Plain Layout
32730 LaTeX-packages ! picinpar
32736 Here is an example:
32739 \begin_layout Standard
32743 \begin_layout Plain Layout
32753 \begin_inset Note Note
32756 \begin_layout Plain Layout
32757 The following section will only be displayed when the LaTeX-package
32769 \begin_layout Standard
32773 \begin_layout Plain Layout
32777 begin{window}[2,c,{
32783 \begin_inset Graphics
32784 filename clipart/mobius.eps
32787 scaleBeforeRotation
32788 rotateOrigin center
32796 \begin_layout Plain Layout
32801 \begin_layout Plain Layout
32810 It was in the spring of the year 1894 that all London was interested, and
32811 the fashionable world dismayed, by the murder of the Honourable Ronald
32812 Adair under most unusual and inexplicable circumstances.
32813 The public has already learned those particulars of the crime which
32819 \begin_layout Plain Layout
32830 came out in the police investigation, but a good deal was suppressed upon
32831 that occasion, since the case for the prosecution was so overwhelmingly
32832 strong that it was not necessary to bring forward all the facts.
32833 Only now, at the end of nearly ten years, am I allowed to supply those
32834 missing links which make up the whole of that remarkable chain.
32840 \begin_layout Plain Layout
32852 \begin_layout Standard
32856 \begin_layout Plain Layout
32865 Footnote of the paragraph with the fixed object.
32869 \begin_layout Plain Layout
32879 \begin_layout Standard
32880 Surrounded fixed objects are used to let text float around them, at which
32881 the object's position in the paragraph can be determined by the number
32883 In contrary to floats is it not possible to have a numbered caption.
32886 \begin_layout Standard
32887 A fixed object is inserted by adding the command
32890 \begin_layout Standard
32895 begin{window}[2,c,{
32898 \begin_layout Standard
32899 as TeX Code at the beginning of the paragraph.
32900 The first parameter in the bracket, here '2', defines the number of lines
32901 above the object, the second, here 'c', the position of the object.
32902 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
32903 Behind the command you insert the object.
32904 In this example an image with a width of 40
32905 \begin_inset space \thinspace{}
32908 % of the text column width was inserted.
32909 The object can also be a table, a box or an equation.
32910 Behind the object the command
32913 \begin_layout Standard
32916 },description text]
32917 \begin_inset Newline newline
32923 \begin_layout Standard
32926 \begin_inset Quotes eld
32934 \begin_inset Quotes erd
32937 is in the second line.
32938 The description text is optional.
32939 The text surrounding the object must be in the same paragraph as the object,
32940 so it must begin directly after the
32945 At the end of the paragraph insert the command:
32948 \begin_layout Standard
32956 \begin_layout Standard
32957 Within a paragraph with a fixed object, you cannot insert footnotes in the
32959 You have to use instead the command
32965 inside the paragraph and outside the command
32971 as described in sec.
32972 \begin_inset space \thinspace{}
32976 \begin_inset CommandInset ref
32978 reference "sec:Footnotes"
32985 \begin_layout Standard
32989 \begin_layout Plain Layout
32999 \begin_inset Note Note
33002 \begin_layout Plain Layout
33003 The following will be displayed when the LaTeX-package
33015 \begin_layout Standard
33016 You need to install the LaTeX-package
33020 to see the following part of this section in the output.
33023 \begin_layout Standard
33027 \begin_layout Plain Layout
33039 \begin_layout Section
33041 \begin_inset Index idx
33044 \begin_layout Plain Layout
33051 \begin_inset Index idx
33054 \begin_layout Plain Layout
33055 Surrounded by text ! Initials
33063 \begin_layout Standard
33064 To use initials, you must have the LaTeX package
33069 \begin_inset Index idx
33072 \begin_layout Plain Layout
33073 LaTeX-packages ! lettrine
33078 installed and use the module
33082 in your document (menu
33084 Document\SpecialChar \menuseparator
33085 Settings\SpecialChar \menuseparator
33089 To insert an initial, use the style
33094 This style has a mandatory and an optional argument.
33095 The mandatory argument is inserted via the menu
33097 Insert\SpecialChar \menuseparator
33099 \begin_inset space ~
33104 and contains the letter that is the initial.
33105 To use the also the optional argument, insert another argument in front
33106 of the mandatory argument.
33107 This one contains parameters to modify the initial.
33108 For more information about the possible parameters see the documentation
33114 \begin_inset CommandInset citation
33121 The style itself contains the text that is surrounding the initial.
33122 The usual style is hereby that the word whose first letter is the initial,
33128 To tell LaTeX where this word is finished, add a closing brace '
33132 ' as TeX Code behind it.
33133 At the end of the style there must be an opening brace '
33140 \begin_layout Standard
33141 Here are some examples:
33144 \begin_layout Enumerate
33145 No optional argument, the initial is the letter 'I' in the math font
33146 \begin_inset Formula $\mathfrak{Fraktur}$
33153 \begin_layout Initial
33154 \begin_inset Argument
33157 \begin_layout Plain Layout
33158 \begin_inset Formula $\mathfrak{I}$
33170 \begin_layout Plain Layout
33177 was in the spring of the year 1894 that all London was interested, and
33178 the fashionable world dismayed, by the murder of the Honourable Ronald
33179 Adair under most unusual and inexplicable circumstances.
33180 The public has already learned those particulars of the crime which came
33181 out in the police investigation, but a good deal was suppressed upon that
33182 occasion, since the case for the prosecution was so overwhelmingly strong
33183 that it was not necessary to bring forward all the facts.
33187 \begin_layout Plain Layout
33195 \begin_inset Newpage newpage
33202 \begin_layout Enumerate
33203 Only one line is surrounding the initial, which is formed by two letters
33204 in standard font and no text is printed in small caps:
33208 \begin_layout Initial
33209 \begin_inset Argument
33212 \begin_layout Plain Layout
33219 \begin_inset Argument
33222 \begin_layout Plain Layout
33232 \begin_layout Plain Layout
33239 was in the spring of the year 1894 that all London was interested, and
33240 the fashionable world dismayed, by the murder of the Honourable Ronald
33241 Adair under most unusual and inexplicable circumstances.
33242 The public has already learned those particulars of the crime which came
33243 out in the police investigation, but a good deal was suppressed upon that
33244 occasion, since the case for the prosecution was so overwhelmingly strong
33245 that it was not necessary to bring forward all the facts.
33249 \begin_layout Plain Layout
33260 \begin_layout Enumerate
33261 Magenta, hanging initial over 3
33262 \begin_inset space ~
33265 lines in the math font
33266 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33270 \begin_inset Quotes eld
33273 t was in the spring
33274 \begin_inset Quotes erd
33281 ; to color the initial, you must insert this command before the initial:
33282 \begin_inset Newline newline
33296 \begin_inset Newline newline
33304 \begin_inset Quotes eld
33308 \begin_inset Quotes erd
33312 \begin_inset Quotes eld
33316 \begin_inset Quotes erd
33320 \begin_inset Quotes eld
33324 \begin_inset Quotes erd
33328 \begin_inset Quotes eld
33332 \begin_inset Quotes erd
33336 \begin_inset Quotes eld
33340 \begin_inset Quotes erd
33344 \begin_inset Quotes eld
33348 \begin_inset Quotes erd
33352 \begin_inset Quotes eld
33356 \begin_inset Quotes erd
33360 \begin_inset Quotes eld
33364 \begin_inset Quotes erd
33367 , and add this command to the document preamble:
33368 \begin_inset Newline newline
33375 @ifundefined{textcolor}
33376 \begin_inset Newline newline
33380 \begin_inset space ~
33385 usepackage{color}}{}
33389 \begin_layout Standard
33393 \begin_layout Plain Layout
33407 \begin_inset Note Note
33410 \begin_layout Plain Layout
33411 makes the initial magenta
33419 \begin_layout Initial
33420 \begin_inset Argument
33423 \begin_layout Plain Layout
33424 lines=3, lhang=0.33, loversize=0.25
33430 \begin_inset Argument
33433 \begin_layout Plain Layout
33434 \begin_inset Formula $\mathcal{I}$
33442 t was in the spring
33446 \begin_layout Plain Layout
33453 of the year 1894 that all London was interested, and the fashionable world
33454 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33455 and inexplicable circumstances.
33456 The public has already learned those particulars of the crime which came
33457 out in the police investigation, but a good deal was suppressed upon that
33458 occasion, since the case for the prosecution was so overwhelmingly strong
33459 that it was not necessary to bring forward all the facts.
33463 \begin_layout Plain Layout
33474 \begin_layout Chapter
33475 External Document Parts
33476 \begin_inset Index idx
33479 \begin_layout Plain Layout
33480 External Document Parts
33488 \begin_layout Standard
33491 Insert\SpecialChar \menuseparator
33494 you can insert external material to your document.
33498 \begin_layout Description
33500 \begin_inset space ~
33503 Document Another LyX document; its content is directly inserted to your
33507 \begin_layout Description
33509 \begin_inset space ~
33512 Text A text document; each line is inserted in your document as a separate
33516 \begin_layout Description
33518 \begin_inset space ~
33522 \begin_inset space ~
33526 \begin_inset space ~
33529 Lines A text document; text lines are inserted in your document continuously
33530 but an empty text line creates a new paragraph.
33533 \begin_layout Description
33535 \begin_inset space ~
33538 Material Files in various formats.
33541 \begin_layout Description
33543 \begin_inset space ~
33546 Document LyX or LaTeX-documents.
33549 \begin_layout Section
33551 \begin_inset Index idx
33554 \begin_layout Plain Layout
33555 External Document Parts ! External Material
33563 \begin_layout Standard
33564 The external material feature allows you to insert files in to your document
33565 without converting them to a format that can be read by the document output
33567 LyX takes care of the necessary conversions.
33568 This is similar to images that can be inserted in various image formats
33570 When you have enabled Instant Preview in LyX's preferences under
33573 \begin_inset space ~
33577 \begin_inset space ~
33580 feel\SpecialChar \menuseparator
33583 , the external material types Dia and Xfig are directly shown in LyX.
33586 \begin_layout Standard
33587 External material can be inserted via the
33591 dialog that is accessible with the menu
33593 Insert\SpecialChar \menuseparator
33594 File\SpecialChar \menuseparator
33596 \begin_inset space ~
33602 Currently the following file types (
33609 \begin_layout Description
33610 ChessDiagram This template supports chess position diagrams made with the
33614 \begin_inset CommandInset href
33617 target "http://en.wikipedia.org/wiki/XBoard"
33626 \begin_layout Description
33627 Date This inserts the date in the form
33632 This is a date inserted as external material:
33633 \begin_inset External
33640 \begin_inset space ~
33644 \begin_inset Note Note
33647 \begin_layout Plain Layout
33648 Remove the protected space when bug 4398 is fixed!
33654 \begin_inset Newline newline
33657 The date is not shown within LyX, only in the output.
33658 There are two other methods of inserting a date: Via menu
33660 Insert\SpecialChar \menuseparator
33663 and with the LaTeX command
33670 The different methods are compared in Table
33671 \begin_inset space ~
33675 \begin_inset CommandInset ref
33677 reference "tab:Comparison-of-the"
33684 \begin_layout Description
33685 Dia This template supports diagrams created with the program
33688 \begin_inset CommandInset href
33691 target "http://en.wikipedia.org/wiki/Dia_(software)"
33700 \begin_layout Description
33701 LilyPond This template is used for music notation typeset with the program
33702 \begin_inset Newline linebreak
33708 \begin_inset CommandInset href
33711 target "http://en.wikipedia.org/wiki/LilyPond"
33720 \begin_layout Description
33721 PDFPages With this template you can insert PDF documents to your document.
33722 To insert certain or all pages of a PDF, use the
33732 LaTeX and LyX options
33734 tab according to the template description in the dialog.
33739 option is given, only the first page of the PDF will be inserted.
33742 \begin_layout Description
33743 RasterImage This can be used for bitmap images.
33744 Nearly all popular image formats are supported.
33745 The image can be treated in the
33749 dialog like the images that are usually included via the
33753 dialog as described in section
33754 \begin_inset space ~
33758 \begin_inset CommandInset ref
33760 reference "sec:Graphics-Dialog"
33765 The difference is that only raster images are allowed; that means that
33766 PDF and EPS-images are not supported.
33769 \begin_layout Description
33770 XFig This template supports images created with the program
33773 \begin_inset CommandInset href
33776 target "http://en.wikipedia.org/wiki/Xfig"
33785 \begin_layout Standard
33786 \begin_inset Float table
33792 \begin_layout Plain Layout
33793 \begin_inset Caption
33795 \begin_layout Plain Layout
33796 \begin_inset CommandInset label
33798 name "tab:Comparison-of-the"
33802 Comparison of the date input methods.
33810 \begin_layout Plain Layout
33812 \begin_inset Tabular
33813 <lyxtabular version="3" rows="4" columns="4">
33814 <features tabularvalignment="middle">
33815 <column alignment="center" valignment="top" width="0">
33816 <column alignment="center" valignment="top" width="0">
33817 <column alignment="center" valignment="top" width="0">
33818 <column alignment="center" valignment="top" width="0">
33820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33823 \begin_layout Plain Layout
33829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33832 \begin_layout Plain Layout
33835 External Material\SpecialChar \menuseparator
33841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33844 \begin_layout Plain Layout
33847 Insert\SpecialChar \menuseparator
33853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33856 \begin_layout Plain Layout
33868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33871 \begin_layout Plain Layout
33877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33880 \begin_layout Plain Layout
33886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33889 \begin_layout Plain Layout
33895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33898 \begin_layout Plain Layout
33899 as TeX-Code inset box
33906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33909 \begin_layout Plain Layout
33915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33918 \begin_layout Plain Layout
33924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33927 \begin_layout Plain Layout
33933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33936 \begin_layout Plain Layout
33944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33947 \begin_layout Plain Layout
33953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33956 \begin_layout Plain Layout
33962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33965 \begin_layout Plain Layout
33971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33974 \begin_layout Plain Layout
33993 \begin_layout Standard
33994 When you use the option
34006 dialog, only the path to the inserted file is shown in the output.
34007 \begin_inset Newline newline
34010 External material is displayed in LyX either as a box like this:
34011 \begin_inset Graphics
34012 filename clipart/ExternalMaterialQt4.png
34014 scaleBeforeRotation
34018 or as image, depending on the option
34024 LaTeX and LyX options
34029 \begin_layout Standard
34036 manual explains how you can define your own templates.
34039 \begin_layout Section
34041 \begin_inset CommandInset label
34043 name "sec:Child-Documents"
34048 \begin_inset Index idx
34051 \begin_layout Plain Layout
34052 External Document Parts ! Child Documents
34058 \begin_inset Index idx
34061 \begin_layout Plain Layout
34070 \begin_layout Standard
34071 Child documents are used if you have a long document consisting of several
34072 larger parts or sections.
34073 For maintenance it is often useful and sometimes even required to split
34074 the document into several files that can be revised separately.
34075 The different documents are then the so called
34076 \begin_inset Quotes eld
34080 \begin_inset Quotes erd
34083 , and a master document connects them to print the full document or parts
34085 A child document inherits elements of its master, for example the LaTeX
34086 preamble, the bibliography, and labels for cross-references.
34089 \begin_layout Standard
34090 To be able to work on child documents without the need to open their master,
34091 specify in the child document the master in the menu
34093 Document\SpecialChar \menuseparator
34094 Settings\SpecialChar \menuseparator
34096 \begin_inset space ~
34102 This master document will then be used in the background by LyX when you
34103 edit the child document.
34106 \begin_layout Standard
34107 Included documents are displayed in LyX as a box like this:
34108 \begin_inset Graphics
34109 filename clipart/ChildDocumentQt4.png
34111 scaleBeforeRotation
34115 To include child documents in a master document use the menu
34117 Insert\SpecialChar \menuseparator
34118 File\SpecialChar \menuseparator
34120 \begin_inset space ~
34126 A dialog pops up where you can choose between four include methods:
34129 \begin_layout Description
34130 Include You can include LyX- and LaTeX-documents.
34139 dialog, the included documents will be opened in LyX in a new file tab
34140 so that you can modify them.
34141 \begin_inset Newline newline
34147 \begin_layout Standard
34148 Here is a child document inserted using
34153 \begin_inset CommandInset include
34154 LatexCommand include
34155 filename "DummyDocument1.lyx"
34162 \begin_layout Standard
34163 The section numbering includes the sections of the included files in the
34164 order they are inserted in the master document.
34165 The included example document has for example a subsection that is numbered
34166 as a subsection of this section.
34167 Labels of included documents can be referenced: Subsection
34168 \begin_inset space ~
34172 \begin_inset CommandInset ref
34174 reference "sub:External-Subsection-1"
34181 \begin_layout Standard
34182 The preamble of the child document is ignored; only the preamble of the
34183 master document is used.
34184 Branches in child documents will be ignored by the master document when
34185 the master document does not have a branch with the same name.
34186 Included documents are inserted starting on a new page and ending with
34190 \begin_layout Standard
34191 \begin_inset Note Greyedout
34194 \begin_layout Plain Layout
34199 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34200 the document in case the child document uses another document class than
34201 the master document as this will lead to unexpected outputs.
34209 \begin_layout Description
34210 Input This method is very similar to the Include method.
34211 The differences are:
34215 \begin_layout Itemize
34216 Input files don't start with a new page and don't end with a page break.
34219 \begin_layout Itemize
34220 Input files can be previewed in LyX when
34223 \begin_inset space ~
34228 is enabled in LyX's preferences under
34231 \begin_inset space ~
34235 \begin_inset space ~
34238 feel\SpecialChar \menuseparator
34244 \begin_layout Itemize
34245 You cannot exclude Input files via the menu
34247 Document\SpecialChar \menuseparator
34248 Settings\SpecialChar \menuseparator
34255 \begin_layout Standard
34256 Here is a child document inserted using
34261 \begin_inset CommandInset include
34263 filename "DummyDocument2.lyx"
34270 \begin_layout Description
34271 Verbatim With this method any text file can be included.
34272 The file is shown in the output with its source code; no command used in
34273 the text is invoked.
34274 You can use the option
34276 Mark spaces in output
34278 that displays the character
34279 \begin_inset Quotes eld
34286 \begin_layout Plain Layout
34296 \begin_inset Quotes erd
34299 for every space character in the source code.
34300 The difference from the method via the menu
34302 Insert\SpecialChar \menuseparator
34303 File\SpecialChar \menuseparator
34305 \begin_inset space ~
34310 is that the document content is not shown in LyX.
34313 \begin_layout Standard
34314 Here is a child document inserted as Verbatim:
34315 \begin_inset CommandInset include
34316 LatexCommand verbatiminput
34317 filename "DummyTextDocument.txt"
34322 \begin_inset VSpace bigskip
34325 Here is a child document inserted as Verbatim using the
34327 Mark spaces in output
34330 \begin_inset CommandInset include
34331 LatexCommand verbatiminput*
34332 filename "DummyTextDocument.txt"
34339 \begin_layout Standard
34340 \begin_inset VSpace bigskip
34346 \begin_layout Standard
34347 \begin_inset Note Greyedout
34350 \begin_layout Plain Layout
34355 As you can see in the examples above, the text of the documents included
34360 is not broken at the end of the document lines.
34368 \begin_layout Description
34369 Listings This type is described in chapter
34370 \begin_inset space ~
34374 \begin_inset CommandInset ref
34376 reference "cha:Program-Code-Listings"
34383 \begin_layout Standard
34384 \begin_inset Note Greyedout
34387 \begin_layout Plain Layout
34392 Including the same document twice in a document using different methods
34393 could cause LaTeX-problems.
34401 \begin_layout Standard
34402 If you want to view/export only selected children of your master document,
34403 either because you want to save compiling time or because you want to distribut
34404 e single chapters of the book you are just writing, you can exclude children
34406 This is done via the menu
34408 Document\SpecialChar \menuseparator
34409 Settings\SpecialChar \menuseparator
34413 You can exclude\SpecialChar \slash{}
34414 include children by double-clicking on the
34418 column of the respective child document in the list (note that this only
34419 works for documents embedded via
34420 \begin_inset Quotes eld
34424 \begin_inset Quotes erd
34428 \begin_inset Quotes eld
34432 \begin_inset Quotes erd
34438 Maintain counters and references
34440 is enabled, LyX will assure that all page numbers, references etc.
34441 \begin_inset space ~
34444 are correct as if the whole document was processed.
34445 This is useful if you want the selected sub-documents to look exactly as
34446 in the context of the whole document.
34447 However, LyX needs to process the whole document in the background for
34449 So if you want to save compile time and if counters and references do not
34450 need to be correct, disable this checkbox.
34453 \begin_layout Standard
34454 Alternatively, you can put each included file into a branch.
34458 \begin_layout Plain Layout
34459 Branches are described in section
34472 By enabling\SpecialChar \slash{}
34473 disabling branches you can decide which included files will
34474 appear in the output.
34475 This has the advantage that it also works with Input'ed sub-documents.
34476 However, counters and references will not be maintained with this approach.
34479 \begin_layout Chapter
34480 Program Code Listings
34481 \begin_inset CommandInset label
34483 name "cha:Program-Code-Listings"
34488 \begin_inset Index idx
34491 \begin_layout Plain Layout
34498 \begin_inset Index idx
34501 \begin_layout Plain Layout
34508 \begin_inset Index idx
34511 \begin_layout Plain Layout
34520 \begin_layout Standard
34521 To include and typeset program code you can use the
34525 inset that can be inserted via the menu
34527 Insert\SpecialChar \menuseparator
34536 \begin_inset Index idx
34539 \begin_layout Plain Layout
34540 LaTeX-packages ! listings
34545 provides a powerful and flexible way to insert program source code into
34549 \begin_layout Standard
34550 Right-clicking on a listings inset opens the context menu containing where
34551 you can set the listings format.
34554 \begin_layout Standard
34555 By default, a listing starts a new paragraph in the output.
34556 The placement option
34559 \begin_inset space ~
34564 prints the listing inline like this:
34565 \begin_inset listings
34566 lstparams "language={C++}"
34570 \begin_layout Plain Layout
34578 \begin_inset Newline newline
34585 creates a listings float where you can specify the placement options
34586 \begin_inset Quotes eld
34594 \begin_inset Quotes erd
34598 \begin_inset Quotes eld
34606 \begin_inset Quotes erd
34610 \begin_inset Quotes eld
34618 \begin_inset Quotes erd
34622 \begin_inset Quotes eld
34630 \begin_inset Quotes erd
34633 corresponding to the float placement options described in section
34634 \begin_inset space ~
34638 \begin_inset CommandInset ref
34640 reference "sec:Float-Placement"
34645 The placement options can be mixed and are inserted without any separation,
34647 \begin_inset space \thinspace{}
34651 \begin_inset space \space{}
34655 \begin_inset Quotes eld
34663 \begin_inset Quotes erd
34668 \begin_inset Quotes eld
34672 \begin_inset Quotes erd
34675 has sometimes no effect, but you don't need to use the
34679 option in this case as also non-float listings can have captions and be
34683 \begin_layout Standard
34684 You can add captions to listings with the menu
34686 Insert\SpecialChar \menuseparator
34690 Listings can be referenced like floats: Listing
34691 \begin_inset space ~
34695 \begin_inset CommandInset ref
34697 reference "lst:Example-Listing"
34704 \begin_layout Standard
34705 \begin_inset listings
34706 lstparams "language=Python"
34710 \begin_layout Plain Layout
34712 \begin_inset Caption
34714 \begin_layout Plain Layout
34715 \begin_inset CommandInset label
34717 name "lst:Example-Listing"
34721 Example Listing float
34726 # Example listing float
34729 \begin_layout Plain Layout
34734 \begin_layout Plain Layout
34736 'this is a python function'
34739 \begin_layout Plain Layout
34749 \begin_layout Standard
34750 When you have set a programming language in the listings dialog, the keywords
34751 of this language will be recognized and specially typeset in the output.
34752 In the example listings the Python keyword
34753 \begin_inset Quotes eld
34757 \begin_inset Quotes erd
34760 is recognized and printed bold in the output.
34763 \begin_layout Standard
34764 \begin_inset Note Greyedout
34767 \begin_layout Plain Layout
34772 If you don't get bold keywords when using typewriter fonts, your
34776 font probably doesn't provide a bold shape.
34777 In this case select a different one in the menu
34779 Document\SpecialChar \menuseparator
34780 Settings\SpecialChar \menuseparator
34792 provide bold shapes.)
34800 \begin_layout Standard
34804 \begin_inset space ~
34809 of the listings dialog you can specify the line numbering style.
34810 You can insert a number to specify which lines are numbered in the field
34817 \begin_inset space \thinspace{}
34821 \begin_inset space \space{}
34825 \begin_inset Quotes eld
34829 \begin_inset Quotes erd
34832 , only every 3rd line will be numbered.
34835 \begin_layout Standard
34836 You can furthermore specify a range of lines; only these will then appear
34840 Extended character table
34842 should be used when you use national characters like the German umlauts
34844 \begin_inset Newline newline
34847 Here is an example listing with left line numbering, step
34848 \begin_inset Quotes eld
34852 \begin_inset Quotes erd
34856 \begin_inset Quotes eld
34860 \begin_inset Quotes erd
34864 \begin_inset Quotes eld
34867 Extended character table
34868 \begin_inset Quotes erd
34872 \begin_inset Quotes eld
34876 \begin_inset space ~
34880 \begin_inset space ~
34884 \begin_inset Quotes erd
34888 \begin_inset space \thinspace{}
34892 \begin_inset space \thinspace{}
34898 \begin_layout Standard
34899 \begin_inset listings
34900 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
34904 \begin_layout Plain Layout
34909 \begin_layout Plain Layout
34911 'this is a python function'
34914 \begin_layout Plain Layout
34919 \begin_layout Plain Layout
34924 \begin_layout Plain Layout
34926 'This is a German word: Tschüß'
34929 \begin_layout Plain Layout
34934 \begin_layout Plain Layout
34939 \begin_layout Plain Layout
34941 'this is a python function'
34944 \begin_layout Plain Layout
34954 \begin_layout Standard
34955 When you have tabulators in your listing, you can specify the number of
34956 characters that are spanned by a tabulator in the field
34959 \begin_inset space ~
34967 \begin_layout Standard
34968 \begin_inset Note Greyedout
34971 \begin_layout Plain Layout
34976 Due to a bug in the
34980 package the line numbering is shifted by a line by every previous listing.
34981 That's the reason why the lines 2 and 5 are numbered in the above listing
34982 and not the lines 3 and 6.
34990 \begin_layout Standard
34991 \begin_inset VSpace bigskip
34997 \begin_layout Standard
34998 It is also possible to print lines from a file as listing.
34999 To do this, use the menu
35001 Insert\SpecialChar \menuseparator
35002 File\SpecialChar \menuseparator
35005 and choose the type
35013 \begin_layout Plain Layout
35014 The other child document types are described in section
35015 \begin_inset space ~
35019 \begin_inset CommandInset ref
35021 reference "sec:Child-Documents"
35030 In the child document dialog you can specify the listing parameters in
35032 To show a list of all available parameters, type in a question mark
35033 \begin_inset Quotes eld
35037 \begin_inset Quotes erd
35043 \begin_layout Standard
35044 To reference child document listings, write a label text into the corresponding
35045 field of the child document dialog.
35046 The label can then be referenced using the menu
35048 Insert\SpecialChar \menuseparator
35054 \begin_layout Standard
35056 \begin_inset space ~
35060 \begin_inset CommandInset ref
35062 reference "lst:file-listing"
35066 is an example for a listing of a file; there the lines 10
35067 \begin_inset space \thinspace{}
35071 \begin_inset space \thinspace{}
35074 15 of this LyX file are listed.
35077 \begin_layout Standard
35078 \begin_inset CommandInset include
35079 LatexCommand lstinputlisting
35080 filename "EmbeddedObjects.lyx"
35081 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35088 \begin_layout Standard
35089 \begin_inset VSpace bigskip
35095 \begin_layout Standard
35096 Inserting a formula into a listing can be done the following way:
35099 \begin_layout Enumerate
35100 Open the listings dialog and add
35101 \begin_inset Newline newline
35109 \begin_inset Newline newline
35112 to the field of the
35119 \begin_layout Enumerate
35120 Create a formula outside the listing
35123 \begin_layout Enumerate
35124 Copy the content of the formula (not the formula inset) to the clipboard
35134 \begin_layout Enumerate
35135 In the listing write
35136 \begin_inset Quotes eld
35144 \begin_inset Quotes erd
35147 and copy from the clipboard between the dollar-signs (shortcut
35156 \begin_layout Standard
35157 \begin_inset listings
35158 lstparams "language=Python,mathescape=true"
35162 \begin_layout Plain Layout
35164 \begin_inset Caption
35166 \begin_layout Plain Layout
35167 Example Listing float containing a formula
35172 # Example listing float
35175 \begin_layout Plain Layout
35180 \begin_layout Plain Layout
35193 \begin_layout Plain Layout
35203 \begin_layout Standard
35204 \begin_inset VSpace bigskip
35210 \begin_layout Standard
35211 Global listings settings can be set in the
35213 Document\SpecialChar \menuseparator
35214 Settings\SpecialChar \menuseparator
35218 To get there a list of available options, type in a question mark
35219 \begin_inset Quotes eld
35223 \begin_inset Quotes erd
35229 \begin_layout Standard
35230 For more information about the
35234 package, we refer to its documentation
35235 \begin_inset CommandInset citation
35244 \begin_layout Standard
35245 \begin_inset Newpage newpage
35251 \begin_layout Chapter
35253 Units available in LyX
35254 \begin_inset Index idx
35257 \begin_layout Plain Layout
35264 \begin_inset CommandInset label
35266 name "cha:Units-available-in"
35273 \begin_layout Standard
35274 To understand the units described in this documentation, Table
35275 \begin_inset space ~
35279 \begin_inset CommandInset ref
35281 reference "tab:Units"
35285 explains all units available in LyX.
35288 \begin_layout Standard
35289 \begin_inset Float table
35295 \begin_layout Plain Layout
35296 \begin_inset Caption
35298 \begin_layout Plain Layout
35299 \begin_inset CommandInset label
35313 \begin_layout Plain Layout
35314 \begin_inset VSpace medskip
35320 \begin_layout Plain Layout
35322 \begin_inset Tabular
35323 <lyxtabular version="3" rows="20" columns="2">
35324 <features tabularvalignment="middle">
35325 <column alignment="center" valignment="top" width="0">
35326 <column alignment="center" valignment="top" width="0">
35328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35331 \begin_layout Plain Layout
35337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35340 \begin_layout Plain Layout
35348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35351 \begin_layout Plain Layout
35357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35360 \begin_layout Plain Layout
35368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35371 \begin_layout Plain Layout
35377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35380 \begin_layout Plain Layout
35388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35391 \begin_layout Plain Layout
35397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35400 \begin_layout Plain Layout
35408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35411 \begin_layout Plain Layout
35417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35420 \begin_layout Plain Layout
35422 \begin_inset space \thinspace{}
35426 \begin_inset space \thinspace{}
35436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35439 \begin_layout Plain Layout
35445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35448 \begin_layout Plain Layout
35450 \begin_inset space \thinspace{}
35454 \begin_inset space \thinspace{}
35464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35467 \begin_layout Plain Layout
35473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35476 \begin_layout Plain Layout
35477 scaled point (65536
35478 \begin_inset space \thinspace{}
35482 \begin_inset space \thinspace{}
35492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35495 \begin_layout Plain Layout
35501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35504 \begin_layout Plain Layout
35506 \begin_inset space \thinspace{}
35510 \begin_inset space \thinspace{}
35520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35523 \begin_layout Plain Layout
35529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35532 \begin_layout Plain Layout
35534 \begin_inset space \thinspace{}
35538 \begin_inset Formula $\approx$
35542 \begin_inset space \thinspace{}
35552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35555 \begin_layout Plain Layout
35561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35564 \begin_layout Plain Layout
35566 \begin_inset space \thinspace{}
35570 \begin_inset space \thinspace{}
35580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35583 \begin_layout Plain Layout
35589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35592 \begin_layout Plain Layout
35593 % of original image width
35600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35603 \begin_layout Plain Layout
35609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35612 \begin_layout Plain Layout
35620 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35623 \begin_layout Plain Layout
35629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35632 \begin_layout Plain Layout
35640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35643 \begin_layout Plain Layout
35649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35652 \begin_layout Plain Layout
35660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35663 \begin_layout Plain Layout
35669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35672 \begin_layout Plain Layout
35680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35683 \begin_layout Plain Layout
35689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35692 \begin_layout Plain Layout
35700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35703 \begin_layout Plain Layout
35709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35712 \begin_layout Plain Layout
35720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35723 \begin_layout Plain Layout
35729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35732 \begin_layout Plain Layout
35744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35747 \begin_layout Plain Layout
35753 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35756 \begin_layout Plain Layout
35768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35771 \begin_layout Plain Layout
35777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35780 \begin_layout Plain Layout
35782 \begin_inset space \thinspace{}
35786 \begin_inset space \thinspace{}
35807 \begin_layout Chapter
35808 Output File Formats with Graphics
35809 \begin_inset CommandInset label
35811 name "cha:Output-File-Formats"
35818 \begin_layout Section
35820 \begin_inset Index idx
35823 \begin_layout Plain Layout
35830 \begin_inset Index idx
35833 \begin_layout Plain Layout
35838 \begin_layout Plain Layout
35849 \begin_layout Plain Layout
35864 \begin_layout Standard
35865 This file type has the extension
35866 \begin_inset Quotes eld
35874 \begin_inset Quotes erd
35879 \begin_inset Quotes eld
35883 \begin_inset Quotes erd
35886 (DVI), because it is completely portable; you can move them from one machine
35887 to another without needing to do any sort of conversion.
35888 At the time when this file-format was developed, this was no matter of
35890 DVIs are used for quick previews and as pre-stage for other output formats,
35894 \begin_layout Standard
35895 \begin_inset Note Greyedout
35898 \begin_layout Plain Layout
35903 DVI-files do not contain images; they will only be a linked.
35908 So don't forget this, if you move your
35912 file to another computer.
35913 This property can also slow down your computer when you view the DVI, because
35914 the DVI-viewer has to convert the image in the background to make it visible
35915 when you scroll in the DVI.
35916 So it is recommended that you use PDF for files with many images.
35919 \begin_layout Standard
35920 You can export your document to DVI by using the menu
35922 File\SpecialChar \menuseparator
35923 Export\SpecialChar \menuseparator
35927 You can view your document as DVI via the
35931 menu or by using the toolbar button
35932 \begin_inset Graphics
35933 filename ../images/buffer-view_dvi.png
35935 scaleBeforeRotation
35942 \begin_layout Section
35944 \begin_inset CommandInset label
35946 name "sec:PostScript"
35951 \begin_inset Index idx
35954 \begin_layout Plain Layout
35955 File Formats ! PostScript
35961 \begin_inset Index idx
35964 \begin_layout Plain Layout
35969 \begin_layout Plain Layout
35980 \begin_layout Plain Layout
35995 \begin_layout Standard
35996 This file type has the extension
35997 \begin_inset Quotes eld
36005 \begin_inset Quotes erd
36009 PostScript was developed by the company
36013 as a printer language.
36014 The file therefore contains commands that the printer uses to print the
36016 PostScript can be seen as a
36017 \begin_inset Quotes eld
36020 programming language
36021 \begin_inset Quotes erd
36024 ; you can calculate with it and draw diagrams and images
36028 \begin_layout Plain Layout
36029 If you are interested to learn more about this, have a look at the LaTeX-package
36035 \begin_inset CommandInset citation
36047 Due to this ability, the files are often bigger than PDFs.
36050 \begin_layout Standard
36051 PostScript can only contain images in the format
36052 \begin_inset Quotes eld
36055 Encapsulated PostScript
36056 \begin_inset Quotes erd
36059 (EPS, file extension
36060 \begin_inset Quotes eld
36068 \begin_inset Quotes erd
36072 As LyX allows you to use any known image format in your document, it has
36073 to convert images in the background to EPS.
36075 \begin_inset space ~
36079 \begin_inset space ~
36082 images in your document, LyX has to do 50
36083 \begin_inset space ~
36086 conversions whenever you view or export your document.
36087 This will slow down your work flow with LyX drastically.
36088 So if you plan to use PostScript, you can insert your images directly as
36089 EPS to avoid this problem.
36092 \begin_layout Standard
36093 You can export your document to PostScript using the menu
36095 File\SpecialChar \menuseparator
36096 Export\SpecialChar \menuseparator
36100 You can view your document as PostScript via the
36104 menu or by using the toolbar button
36105 \begin_inset Graphics
36106 filename ../images/buffer-view_ps.png
36108 scaleBeforeRotation
36115 \begin_layout Section
36117 \begin_inset Index idx
36120 \begin_layout Plain Layout
36127 \begin_inset Index idx
36130 \begin_layout Plain Layout
36139 \begin_layout Standard
36140 This file type has the extension
36141 \begin_inset Quotes eld
36149 \begin_inset Quotes erd
36154 \begin_inset Quotes eld
36157 Portable Document Format
36158 \begin_inset Quotes erd
36161 (PDF) was developed by
36165 as a derivative of PostScript.
36166 It is more compressed and it uses fewer commands than PostScript.
36168 \begin_inset Quotes eld
36172 \begin_inset Quotes erd
36175 implies, it can be processed at any computer system and the printed output
36176 looks exactly the same.
36179 \begin_layout Standard
36180 PDF can contain images in its own PDF format, in the format
36181 \begin_inset Quotes eld
36184 Joint Photographic Experts Group
36185 \begin_inset Quotes erd
36188 (JPG, file extension
36189 \begin_inset Quotes eld
36197 \begin_inset Quotes erd
36201 \begin_inset Quotes eld
36209 \begin_inset Quotes erd
36212 ), and in the format
36213 \begin_inset Quotes eld
36216 Portable Network Graphics
36217 \begin_inset Quotes erd
36220 (PNG, file extension
36221 \begin_inset Quotes eld
36229 \begin_inset Quotes erd
36233 Nevertheless you can use any other image format, because LyX converts them
36234 in the background to one of these formats.
36235 But as described in the section about PostScript, the image conversion
36236 will slow down your work flow.
36237 So it is recommended that you use images in one of the three mentioned
36241 \begin_layout Standard
36242 You can export your document to PDF via the menu
36244 File\SpecialChar \menuseparator
36247 in three different ways:
36250 \begin_layout Description
36252 \begin_inset space ~
36255 (ps2pdf) This uses the program
36259 that creates a PDF from a PostScript-version of your file.
36260 The PostScript-version is produced by the program
36264 which uses a DVI-version as intermediate step.
36265 So this export variant consists of three conversions.
36268 \begin_layout Description
36270 \begin_inset space ~
36273 (dvipdfm) This uses the program
36277 that converts your file in the background to DVI and in a second step to
36281 \begin_layout Description
36283 \begin_inset space ~
36286 (pdflatex) This uses the program
36290 that converts your file directly to PDF.
36293 \begin_layout Standard
36294 It is recommended that you use
36297 \begin_inset space ~
36306 supports all features of actual PDF-versions, is quick and works stable.
36311 is not under development and therefore a bit outdated.
36314 \begin_layout Standard
36315 You can view your document as PDF via the
36319 menu or by using the toolbar button
36320 \begin_inset Graphics
36321 filename ../images/buffer-view_pdf2.png
36323 scaleBeforeRotation
36334 \begin_inset space ~
36342 \begin_layout Chapter
36343 Explanation of Equation
36344 \begin_inset space ~
36348 \begin_inset CommandInset ref
36355 \begin_inset CommandInset label
36357 name "cha:Explanation-of-Equation"
36364 \begin_layout Standard
36365 We can calculate the total width of
36370 \begin_inset Formula $W_{\mathrm{tot\, n}}$
36376 \begin_layout Standard
36377 \begin_inset Formula
36379 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
36385 \begin_inset Formula $W_{g\, n}$
36388 is the given width of all cells,
36394 is the LaTeX-length between the cell text and the cell border (its default
36396 \begin_inset space \thinspace{}
36406 is the thickness of the cell border line, the default is 0.4
36407 \begin_inset space \thinspace{}
36413 \begin_layout Standard
36415 \begin_inset space ~
36419 \begin_inset CommandInset ref
36421 reference "eq:Wtot_n"
36425 , the total width of a multicolumn
36426 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
36432 \begin_layout Standard
36433 \begin_inset Formula
36435 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
36443 \begin_layout Standard
36444 By setting equation
36445 \begin_inset space ~
36449 \begin_inset CommandInset ref
36451 reference "eq:Wtot_n"
36456 \begin_inset CommandInset ref
36458 reference "eq:Wtot_mult"
36462 equal we can calculate the needed given width
36463 \begin_inset Formula $W_{g\, n}$
36470 columns are spanned, so that each column has a total width of
36471 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
36477 \begin_layout Standard
36478 \begin_inset Formula
36480 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
36488 \begin_layout Bibliography
36489 \labelwidthstring Bibliography
36490 \begin_inset CommandInset bibitem
36491 LatexCommand bibitem
36492 key "latexcompanion"
36496 Frank Mittelbach and Michel Goossens:
36498 The LaTeX Companion Second Edition.
36501 Addison-Wesley, 2004
36504 \begin_layout Bibliography
36505 \labelwidthstring Bibliography
36506 \begin_inset CommandInset bibitem
36507 LatexCommand bibitem
36512 Helmut Kopka and Patrick W.
36515 A Guide to LaTeX Fourth Edition.
36518 Addison-Wesley, 2003
36521 \begin_layout Bibliography
36522 \labelwidthstring Bibliography
36523 \begin_inset CommandInset bibitem
36524 LatexCommand bibitem
36531 LaTeX: A Document Preparation System.
36534 Addison-Wesley, second edition, 1994
36537 \begin_layout Bibliography
36538 \labelwidthstring Bibliography
36539 \begin_inset CommandInset bibitem
36540 LatexCommand bibitem
36545 Documentation of the LaTeX-package
36548 \begin_inset CommandInset href
36551 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
36558 \begin_inset Index idx
36561 \begin_layout Plain Layout
36562 LaTeX-packages ! booktabs
36570 \begin_layout Bibliography
36571 \labelwidthstring Bibliography
36572 \begin_inset CommandInset bibitem
36573 LatexCommand bibitem
36578 Documentation of the LaTeX-package
36581 \begin_inset CommandInset href
36584 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
36591 \begin_inset Index idx
36594 \begin_layout Plain Layout
36595 LaTeX-packages ! caption
36603 \begin_layout Bibliography
36604 \labelwidthstring Bibliography
36605 \begin_inset CommandInset bibitem
36606 LatexCommand bibitem
36611 Documentation of the LaTeX-package
36614 \begin_inset CommandInset href
36617 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
36624 \begin_inset Index idx
36627 \begin_layout Plain Layout
36628 LaTeX-packages ! endfloat
36636 \begin_layout Bibliography
36637 \labelwidthstring Bibliography
36638 \begin_inset CommandInset bibitem
36639 LatexCommand bibitem
36644 Documentation of the LaTeX-package
36647 \begin_inset CommandInset href
36650 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
36657 \begin_inset Index idx
36660 \begin_layout Plain Layout
36661 LaTeX-packages ! wrapfig
36665 \begin_layout Plain Layout
36682 \begin_layout Bibliography
36683 \labelwidthstring Bibliography
36684 \begin_inset CommandInset bibitem
36685 LatexCommand bibitem
36690 Documentation of the LaTeX-package
36693 \begin_inset CommandInset href
36696 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
36703 \begin_inset Index idx
36706 \begin_layout Plain Layout
36707 LaTeX-packages ! footmisc
36715 \begin_layout Bibliography
36716 \labelwidthstring Bibliography
36717 \begin_inset CommandInset bibitem
36718 LatexCommand bibitem
36723 Documentation of the LaTeX-package
36726 \begin_inset CommandInset href
36729 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
36736 \begin_inset Index idx
36739 \begin_layout Plain Layout
36740 LaTeX-packages ! hyperref
36748 \begin_layout Bibliography
36749 \labelwidthstring Bibliography
36750 \begin_inset CommandInset bibitem
36751 LatexCommand bibitem
36756 Documentation of the LaTeX-package
36759 \begin_inset CommandInset href
36762 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
36769 \begin_inset Index idx
36772 \begin_layout Plain Layout
36773 LaTeX-packages ! hyperref
36781 \begin_layout Bibliography
36782 \labelwidthstring Bibliography
36783 \begin_inset CommandInset bibitem
36784 LatexCommand bibitem
36789 Documentation of the LaTeX-package
36792 \begin_inset CommandInset href
36795 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
36802 \begin_inset Index idx
36805 \begin_layout Plain Layout
36806 LaTeX-packages ! KOMA-Script
36814 \begin_layout Bibliography
36815 \labelwidthstring Bibliography
36816 \begin_inset CommandInset bibitem
36817 LatexCommand bibitem
36822 Documentation of the LaTeX-package
36825 \begin_inset CommandInset href
36828 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
36835 \begin_inset Index idx
36838 \begin_layout Plain Layout
36839 LaTeX-packages ! listings
36847 \begin_layout Bibliography
36848 \labelwidthstring Bibliography
36849 \begin_inset CommandInset bibitem
36850 LatexCommand bibitem
36855 Documentation of the LaTeX-package
36858 \begin_inset CommandInset href
36861 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
36868 \begin_inset Index idx
36871 \begin_layout Plain Layout
36872 LaTeX-packages ! marginnote
36880 \begin_layout Bibliography
36881 \labelwidthstring Bibliography
36882 \begin_inset CommandInset bibitem
36883 LatexCommand bibitem
36888 Documentation of the LaTeX-package
36891 \begin_inset CommandInset href
36894 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
36901 \begin_inset CommandInset href
36904 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
36909 \begin_inset Index idx
36912 \begin_layout Plain Layout
36913 LaTeX-packages ! lettrine
36921 \begin_layout Bibliography
36922 \labelwidthstring Bibliography
36923 \begin_inset CommandInset bibitem
36924 LatexCommand bibitem
36929 Web page of the LaTeX-package
36932 \begin_inset CommandInset href
36935 target "http://tug.org/PSTricks/"
36942 \begin_inset Index idx
36945 \begin_layout Plain Layout
36946 LaTeX-packages ! PSTricks
36954 \begin_layout Bibliography
36955 \labelwidthstring Bibliography
36956 \begin_inset CommandInset bibitem
36957 LatexCommand bibitem
36962 Documentation of the LaTeX-package
36965 \begin_inset CommandInset href
36968 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
36975 \begin_inset Index idx
36978 \begin_layout Plain Layout
36979 LaTeX-packages ! sidecap
36987 \begin_layout Bibliography
36988 \labelwidthstring Bibliography
36989 \begin_inset CommandInset bibitem
36990 LatexCommand bibitem
36995 Documentation of the LaTeX-package
36998 \begin_inset CommandInset href
37001 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37008 \begin_inset Index idx
37011 \begin_layout Plain Layout
37012 LaTeX-packages ! prettyref
37020 \begin_layout Bibliography
37021 \labelwidthstring Bibliography
37022 \begin_inset CommandInset bibitem
37023 LatexCommand bibitem
37028 Documentation of the LaTeX-package
37031 \begin_inset CommandInset href
37034 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
37041 \begin_inset Index idx
37044 \begin_layout Plain Layout
37045 LaTeX-packages ! refstyle
37053 \begin_layout Bibliography
37054 \labelwidthstring Bibliography
37055 \begin_inset CommandInset bibitem
37056 LatexCommand bibitem
37062 \begin_inset CommandInset href
37065 target "http://wiki.lyx.org/LyX/NewInLyX20"
37069 about new features in
37076 \begin_layout Standard
37077 \begin_inset CommandInset index_print
37078 LatexCommand printindex