1 #LyX 2.0.0svn 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 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % ------------------------------------
126 % used to check for needed LaTeX packages
129 % check for package arydshln
130 % used for tables with dashed lines
131 \newboolean{arydshln}
132 \IfFileExists{arydshln.sty}
133 {\usepackage{arydshln}
134 \setboolean{arydshln}{true}}
135 {\setboolean{arydshln}{false}}
137 % check for package marginnote
138 % used for margin notes
139 \newboolean{marginnote}
140 \IfFileExists{marginnote.sty}
141 {\usepackage{marginnote}
142 \let\marginpar\marginnote
143 \setboolean{marginnote}{true}}
144 {\setboolean{marginnote}{false}}
146 % check for package sidecap
147 % used for captions on the side
149 \IfFileExists{sidecap.sty}
150 {\usepackage{sidecap}
151 \setboolean{sidecap}{true}}
152 {\setboolean{sidecap}{false}}
154 % redefine the \LyX macro for PDF bookmarks
155 \def\LyX{\texorpdfstring{%
156 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
159 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
160 \use_default_options false
161 \maintain_unincluded_children false
167 \font_typewriter default
168 \font_default_family default
176 \default_output_format default
178 \bibtex_command default
179 \index_command default
183 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
184 \pdf_author "LyX Team, Uwe Stöhr"
185 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
186 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
188 \pdf_bookmarksnumbered true
189 \pdf_bookmarksopen true
190 \pdf_bookmarksopenlevel 1
191 \pdf_breaklinks false
195 \pdf_pdfusetitle false
196 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
206 \paperorientation portrait
209 \notefontcolor #0000ff
216 \paragraph_separation skip
218 \quotes_language english
221 \paperpagestyle default
225 \tracking_changes false
226 \output_changes false
228 \html_be_strict false
234 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
243 \begin_layout Plain Layout
245 If you have comments or error corrections, please send them to the LyX Documenta
247 \begin_inset CommandInset href
249 name "lyx-docs@lists.lyx.org"
250 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
261 \begin_inset Note Note
264 \begin_layout Plain Layout
271 \begin_inset Newline newline
275 \begin_inset Newline newline
283 \begin_layout Standard
284 \begin_inset CommandInset toc
285 LatexCommand tableofcontents
292 \begin_layout Standard
293 \begin_inset Note Note
296 \begin_layout Plain Layout
297 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
315 If they are not installed you can export the document anyway but the sections
316 where the packages are required won't appear in the output.
319 \begin_layout Plain Layout
320 The latest PDF-version of this document can be found here:
321 \begin_inset Newline newline
326 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
334 \begin_layout Chapter
336 \begin_inset Index idx
339 \begin_layout Plain Layout
346 \begin_inset Index idx
349 \begin_layout Plain Layout
354 \begin_layout Plain Layout
365 \begin_layout Plain Layout
380 \begin_layout Section
382 \begin_inset Index idx
385 \begin_layout Plain Layout
386 Figures ! Graphics Dialog
392 \begin_inset CommandInset label
394 name "sec:Graphics-Dialog"
401 \begin_layout Standard
402 To insert an image into your document, place the cursor at the text position
403 you want and click on the toolbar icon
404 \begin_inset Graphics
405 filename ../images/dialog-show-new-inset_graphics.png
413 Insert\SpecialChar \menuseparator
417 Then a dialog will appear to choose the file to load.
418 The image will appear in the output exactly at the position where it is
422 \begin_layout Standard
423 The graphics dialog can be called at any time by clicking on an image.
424 This dialog has three tabs:
427 \begin_layout Description
432 Here you can choose an image file and adjust its appearance in the output.
433 The available units for the image size are explained in appendix
438 \begin_inset CommandInset ref
440 reference "cha:Units-available-in"
445 \begin_inset Newline newline
449 \begin_inset Index idx
452 \begin_layout Plain Layout
458 You can rotate images counter-clockwise by setting a rotation angle and
460 The image will also be rotated inside LyX.
461 \begin_inset Newline newline
465 \begin_inset Index idx
468 \begin_layout Plain Layout
474 Images can be scaled by using a percentage value or by setting the width
475 and height explicitly.
476 If you set only the width or only the height, the other size will be determined
478 If you set both, then the image will be transformed to the given size,
479 possibly distorting it.
480 To prevent the image from distortion, use the option
482 Maintain aspect ratio
485 The image will then be scaled so that its width and height don't exceed
486 the specified dimensions.
487 \begin_inset Newline newline
490 Images can be opened in a program of your choice by right-clicking on it
491 and choosing the entry
500 The program can be set for every image format in the file format settings
501 in LyX's preferences.
504 \begin_layout Description
509 Alternatively to the usage of scaling units it is possible to set image
510 coordinates to adjust the height and width of the image in the output.
511 The coordinates can also be calculated automatically by pressing the button
541 will only print the image region within the given coordinates.
542 Normally you don't need to take care about image coordinates and can ignore
546 \begin_layout Description
563 In this tab you can modify the appearance of the image within LyX and LaTeX
564 experts can specify additional LaTeX options.
565 \begin_inset Newline newline
576 makes the image appear in the output only as a frame with the size of the
578 \begin_inset Newline newline
597 option only affects zipped EPS-graphics, e.
598 \begin_inset space \thinspace{}
602 \begin_inset space \space{}
610 When the option is used the images will not be unzipped on export, since
611 LaTeX can handle them as they are.
612 \begin_inset Newline newline
615 Zipped EPS-graphics are useful to save disk space when you choose PostScript
616 as output format, see appendix
621 \begin_inset CommandInset ref
623 reference "sec:PostScript"
628 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
630 \begin_inset Newline newline
638 \begin_inset Newline newline
643 zgrep %%Bounding x.eps.gz > x.eps.bb
646 \begin_inset Newline newline
649 The second command creates the bounding box file
650 \begin_inset Quotes eld
654 \begin_inset Quotes erd
657 that is needed by LaTeX for zipped graphics.
658 \begin_inset Newline newline
673 allows you define or join an image settings group.
674 \begin_inset Index idx
677 \begin_layout Plain Layout
678 Figures ! Settings grouping
683 Images within such a group share their settings, so adjusting one image
684 of the group automatically also adjusts all other images of the group in
686 So you can for example change the size for a bunch of images without the
687 need to manually change each of them.
688 Joining an existing group can also be done using the context menu of the
689 image by checking the name of the desired group.
692 \begin_layout Standard
693 \begin_inset VSpace bigskip
699 \begin_layout Standard
700 This is an example image in EPS format
704 \begin_layout Plain Layout
705 Image formats are explained in section
710 \begin_inset CommandInset ref
712 reference "sec:Image-Formats"
721 within a separate, horizontally centered paragraph:
724 \begin_layout Standard
726 \begin_inset Graphics
727 filename clipart/mobius.eps
737 \begin_layout Standard
738 This is the same image like the one above but in draft mode:
741 \begin_layout Standard
743 \begin_inset Graphics
744 filename clipart/mobius.eps
755 \begin_layout Standard
756 \begin_inset Newpage newpage
762 \begin_layout Section
764 \begin_inset CommandInset label
766 name "sec:Figure-Floats"
771 \begin_inset Index idx
774 \begin_layout Plain Layout
781 \begin_inset Index idx
784 \begin_layout Plain Layout
793 \begin_layout Standard
794 For general explanations about floats, have a look at section
799 \begin_inset CommandInset ref
801 reference "sec:FloatIntroduction"
808 \begin_layout Standard
810 \begin_inset Graphics
811 filename ../images/float-insert_figure.png
819 Insert\SpecialChar \menuseparator
820 Float\SpecialChar \menuseparator
823 inserts a float with a caption that has the label
824 \begin_inset Quotes eld
832 \begin_inset Quotes erd
835 (# is the actual number).
836 You can insert the image above the caption, like in Figure
841 \begin_inset CommandInset ref
843 reference "fig:kill-plat"
847 or below the caption, like in Figure
852 \begin_inset CommandInset ref
854 reference "fig:escher"
859 More about caption placement is described in section
864 \begin_inset CommandInset ref
866 reference "sec:Caption-Placement"
873 \begin_layout Standard
874 \begin_inset Float figure
879 \begin_layout Plain Layout
881 \begin_inset Graphics
882 filename clipart/platypus.eps
892 \begin_layout Plain Layout
895 \begin_layout Plain Layout
896 \begin_inset CommandInset label
902 A severely distorted platypus in a float.
915 \begin_layout Standard
916 \begin_inset Float figure
921 \begin_layout Plain Layout
924 \begin_layout Plain Layout
925 \begin_inset CommandInset label
940 \begin_layout Plain Layout
942 \begin_inset Graphics
943 filename clipart/escher-lsd.eps
958 \begin_layout Standard
959 \begin_inset Index idx
962 \begin_layout Plain Layout
963 References ! to Figures
973 \begin_inset CommandInset ref
975 reference "fig:kill-plat"
980 \begin_inset CommandInset ref
982 reference "fig:escher"
986 are examples of referenced figures.
987 Figures can be referenced in the text by referencing their label.
988 To do this insert a label in the caption using the menu
990 Insert\SpecialChar \menuseparator
993 or the toolbar button
994 \begin_inset Graphics
995 filename ../images/label-insert.png
1002 You can now refer to the label using the menu
1004 Insert\SpecialChar \menuseparator
1006 \begin_inset space ~
1011 or the toolbar button
1012 \begin_inset Graphics
1013 filename ../images/dialog-show-new-inset_ref.png
1020 It is important to use references to floats, rather than using vague references
1022 \begin_inset Quotes eld
1026 \begin_inset Quotes erd
1029 , because LaTeX will reposition the floats in the final document and it
1031 \begin_inset Quotes eld
1035 \begin_inset Quotes erd
1039 \begin_inset Newline newline
1042 Referencing is explained in detail in section
1043 \begin_inset space ~
1047 \begin_inset CommandInset ref
1049 reference "sec:Referencing-Floats"
1056 \begin_layout Standard
1057 Normally only one image is inserted to a figure float, but sometimes you
1058 might want to use two images with separate subcaptions.
1059 This can be done by inserting image floats into existing image floats.
1060 Note that only the main caption of the float is added to the List of Figures.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Two-distorted-images"
1072 is an example of a figure float with two images set side by side.
1073 You can also set the images one below the other.
1075 \begin_inset space ~
1079 \begin_inset CommandInset ref
1081 reference "fig:Undefinable-structure"
1086 \begin_inset CommandInset ref
1088 reference "fig:A-Platypus"
1095 \begin_layout Standard
1096 \begin_inset Float figure
1101 \begin_layout Plain Layout
1102 \begin_inset space \hfill{}
1106 \begin_inset Float figure
1111 \begin_layout Plain Layout
1112 \begin_inset Caption
1114 \begin_layout Plain Layout
1115 \begin_inset CommandInset label
1117 name "fig:Undefinable-structure"
1121 Undefinable structure.
1129 \begin_layout Plain Layout
1130 \begin_inset Graphics
1131 filename clipart/escher-lsd.eps
1144 \begin_inset space \hfill{}
1148 \begin_inset Float figure
1153 \begin_layout Plain Layout
1154 \begin_inset Caption
1156 \begin_layout Plain Layout
1157 \begin_inset CommandInset label
1159 name "fig:A-Platypus"
1171 \begin_layout Plain Layout
1172 \begin_inset Graphics
1173 filename clipart/platypus.eps
1186 \begin_inset space \hfill{}
1192 \begin_layout Plain Layout
1193 \begin_inset Caption
1195 \begin_layout Plain Layout
1196 \begin_inset CommandInset label
1198 name "fig:Two-distorted-images"
1203 \begin_inset CommandInset label
1205 name "fig2:Two-distorted-images-2"
1209 Two distorted images.
1210 Both images are in the image settings group named
1211 \begin_inset Quotes eld
1215 \begin_inset Quotes erd
1231 \begin_layout Standard
1232 \begin_inset Newpage newpage
1238 \begin_layout Section
1240 \begin_inset CommandInset label
1242 name "sec:Image-Formats"
1247 \begin_inset Index idx
1250 \begin_layout Plain Layout
1257 \begin_inset Index idx
1260 \begin_layout Plain Layout
1261 Figures ! Image Formats
1269 \begin_layout Standard
1270 You can insert images in any known file format.
1271 But as explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1282 , each output document format allows only a few image formats.
1283 LyX uses therefore the program
1287 in the background to convert the images to the right format.
1288 To increase your work flow by avoiding these conversions in the background,
1289 you can use only the image formats that can directly be embedded in the
1291 The output file formats are explained in appendix
1292 \begin_inset space ~
1296 \begin_inset CommandInset ref
1298 reference "cha:Output-File-Formats"
1305 \begin_layout Standard
1306 Similar to fonts there are two types of image formats:
1309 \begin_layout Description
1311 \begin_inset space ~
1314 images consist of pixel values, often in a compressed form.
1315 They are therefore not fully scalable and look pixelated in large zooms.
1316 Well-known bitmap image formats are
1317 \begin_inset Quotes eld
1320 Graphics Interchange Format
1321 \begin_inset Quotes erd
1324 (GIF, file extension
1325 \begin_inset Quotes eld
1333 \begin_inset Quotes erd
1337 \begin_inset Index idx
1340 \begin_layout Plain Layout
1345 \begin_layout Plain Layout
1356 \begin_layout Plain Layout
1369 \begin_inset Quotes eld
1372 Portable Network Graphics
1373 \begin_inset Quotes erd
1376 (PNG, file extension
1377 \begin_inset Quotes eld
1385 \begin_inset Quotes erd
1389 \begin_inset Index idx
1392 \begin_layout Plain Layout
1397 \begin_layout Plain Layout
1408 \begin_layout Plain Layout
1421 \begin_inset Quotes eld
1424 Joint Photographic Experts Group
1425 \begin_inset Quotes erd
1428 (JPG, file extension
1429 \begin_inset Quotes eld
1437 \begin_inset Quotes erd
1441 \begin_inset Quotes eld
1449 \begin_inset Quotes erd
1453 \begin_inset Index idx
1456 \begin_layout Plain Layout
1461 \begin_layout Plain Layout
1472 \begin_layout Plain Layout
1487 \begin_layout Description
1489 \begin_inset space ~
1492 images consist of vectors and can therefore be scaled to any size without
1494 The scaling ability is necessary if you want to create presentations, because
1495 presentations are always scaled by the video projector.
1496 Scaling is also useful for online documents to let the user zoom into diagrams.
1497 \begin_inset Newline newline
1500 Well-known scalable image formats are
1501 \begin_inset Quotes eld
1504 Scalable Vector Graphics
1505 \begin_inset Quotes erd
1508 (SVG, file extension
1509 \begin_inset Quotes eld
1517 \begin_inset Quotes erd
1521 \begin_inset Index idx
1524 \begin_layout Plain Layout
1529 \begin_layout Plain Layout
1540 \begin_layout Plain Layout
1553 \begin_inset Quotes eld
1556 Encapsulated PostScript
1557 \begin_inset Quotes erd
1560 (EPS, file extension
1561 \begin_inset Quotes eld
1569 \begin_inset Quotes erd
1573 \begin_inset Index idx
1576 \begin_layout Plain Layout
1581 \begin_layout Plain Layout
1592 \begin_layout Plain Layout
1605 \begin_inset Quotes eld
1608 Portable Document Format
1609 \begin_inset Quotes erd
1612 (PDF, file extension
1613 \begin_inset Quotes eld
1621 \begin_inset Quotes erd
1625 \begin_inset Index idx
1628 \begin_layout Plain Layout
1635 \begin_inset Quotes eld
1639 \begin_inset Quotes erd
1642 (WMF, file extension
1643 \begin_inset Quotes eld
1651 \begin_inset Quotes erd
1655 \begin_inset Index idx
1658 \begin_layout Plain Layout
1663 \begin_layout Plain Layout
1674 \begin_layout Plain Layout
1688 \begin_inset Quotes eld
1692 \begin_inset Quotes erd
1695 , because you can convert any bitmap image to a PDF or EPS-image and the
1696 result will still be a bitmap image.
1697 In such cases only a header with the image properties is added to the original
1702 \begin_layout Plain Layout
1703 In the case of PDF, the original image is additionally compressed.
1709 The PDF-files generated by
1713 are for example bitmap images.
1716 \begin_layout Standard
1717 Normally it is not possible to convert a bitmap image into a scalable one,
1719 Only the image formats PDF and EPS can directly be embedded to PDF and
1720 PostScript output files, respectively.
1721 SVG and WMF-images are recalculated to bitmaps when the output file is
1722 generated because there is currently no adequate WMF/SVG
1723 \begin_inset Formula $\to$
1726 PDF/EPS converter available.
1729 \begin_layout Chapter
1731 \begin_inset Index idx
1734 \begin_layout Plain Layout
1743 \begin_layout Section
1745 \begin_inset Index idx
1748 \begin_layout Plain Layout
1749 Table ! Introduction
1757 \begin_layout Standard
1758 You can insert a table using either the toolbar button
1759 \begin_inset Graphics
1760 filename ../images/tabular-insert.png
1768 Insert\SpecialChar \menuseparator
1772 The toolbar button offers you a graphical selection: move the mouse to
1773 set the column/row number of the table that should be created and then
1774 press a mouse button.
1775 When you use the menu to create a table, a dialog will appear, asking you
1776 for the number of rows and columns.
1777 \begin_inset Newline newline
1780 The default table has lines around any cell and the first row appears separated
1781 from the rest of the table.
1782 This separation occurs due to a double line: The cells of the first row
1783 have a line below them and the cells of the second row have a line above
1785 Here is an example table:
1788 \begin_layout Standard
1790 \begin_inset Tabular
1791 <lyxtabular version="3" rows="4" columns="4">
1792 <features tabularvalignment="middle">
1793 <column alignment="center" valignment="top" width="0">
1794 <column alignment="center" valignment="top" width="0">
1795 <column alignment="center" valignment="top" width="0">
1796 <column alignment="center" valignment="top" width="0">
1798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1801 \begin_layout Plain Layout
1807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1810 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1837 \begin_layout Plain Layout
1845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1848 \begin_layout Plain Layout
1863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1866 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1884 \begin_layout Plain Layout
1892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1895 \begin_layout Plain Layout
1910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1913 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1931 \begin_layout Plain Layout
1939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1942 \begin_layout Plain Layout
1957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1960 \begin_layout Plain Layout
1966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1969 \begin_layout Plain Layout
1975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1978 \begin_layout Plain Layout
1992 \begin_layout Section
1994 \begin_inset Index idx
1997 \begin_layout Plain Layout
2006 \begin_layout Standard
2007 You can alter a table by clicking on it with the right mouse button, which
2008 brings up the table dialog.
2009 Here you can adjust the settings of that cell and row/column respectively
2010 where the cursor is currently placed.
2011 Most of the dialog options also work on selections.
2012 This means if you select more cells, columns or rows, the action is done
2013 for the whole selection.
2014 Note that there is a difference between selecting the
2018 of the cell, and the cell itself.
2019 You can alter tables with the following tabs of the table dialog:
2022 \begin_layout Description
2026 \begin_inset space ~
2031 Here you can set the horizontal alignment and the width of the current
2033 When you have set a width you can also adjust the vertical alignment of
2035 A given width will allow the cell to have line breaks and multiple paragraphs
2036 of text, see section
2037 \begin_inset space ~
2041 \begin_inset CommandInset ref
2043 reference "sub:Multiple-Lines-in"
2048 If you set no width, the column is as wide as the content of the widest
2050 \begin_inset Newline newline
2053 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2055 \begin_inset space ~
2059 \begin_inset CommandInset ref
2061 reference "sub:Multicolumns"
2065 or the cells of one column as multirow cell, see section
2066 \begin_inset space ~
2070 \begin_inset Newline newline
2073 The rotate check boxes rotate the current cell, a selection, or the whole
2074 table counter-clockwise by 90°.
2075 The rotation is not shown within LyX, only in the output.
2076 \begin_inset Newline newline
2080 \begin_inset Note Greyedout
2083 \begin_layout Plain Layout
2088 Not all DVI-viewers are able to display rotations.
2094 \begin_inset Newline newline
2097 It is also possible to enter a LaTeX-argument which is needed for special
2098 table formattings, see section
2099 \begin_inset space ~
2103 \begin_inset CommandInset ref
2105 reference "sub:Multicolumn-Calculations"
2110 \begin_inset CommandInset ref
2112 reference "sec:Colored-Tables"
2119 \begin_layout Description
2124 In this tab you can add and delete border lines for the current row/column.
2125 \begin_inset Newline newline
2128 Using the style option
2132 will convert the table to a formal table as described in section
2133 \begin_inset space ~
2137 \begin_inset CommandInset ref
2139 reference "sec:Formal-Tables"
2144 \begin_inset Newline newline
2147 You can also add here space to table rows as described in section
2148 \begin_inset space ~
2152 \begin_inset CommandInset ref
2154 reference "sub:Row-Spacing"
2161 \begin_layout Description
2166 This tab is to make a table a so called
2167 \begin_inset Quotes eld
2175 \begin_inset Quotes erd
2178 that can run over several pages.
2180 \begin_inset space ~
2184 \begin_inset CommandInset ref
2186 reference "sec:Longtables"
2191 \begin_inset CommandInset ref
2193 reference "sec:Special-Longtable-Issues"
2197 describe the longtable features in detail.
2200 \begin_layout Standard
2201 When the table dialog is open, you can move the cursor with the arrow keys
2202 from cell to cell and the property of the current cell will immediately
2203 be displayed in the dialog.
2206 \begin_layout Section
2208 \begin_inset Index idx
2211 \begin_layout Plain Layout
2220 \begin_layout Standard
2221 The table toolbar is an alternative to the table dialog to be able to alter
2223 It should normally appear at the bottom of LyX's main window when the cursor
2225 You can alternatively switch it on to appear always, by right-clicking
2226 in LyX's main menu bar.
2229 \begin_layout Standard
2230 The toolbar has the following icons:
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Graphics
2236 filename ../images/tabular-feature_append-row.png
2241 adds a row below the current cell or selection
2244 \begin_layout Labeling
2245 \labelwidthstring 00.00.0000
2246 \begin_inset Graphics
2247 filename ../images/tabular-feature_append-column.png
2252 adds a column right beside the current cell or selection
2255 \begin_layout Labeling
2256 \labelwidthstring 00.00.0000
2257 \begin_inset Graphics
2258 filename ../images/tabular-feature_delete-row.png
2263 deletes the current row or selection
2266 \begin_layout Labeling
2267 \labelwidthstring 00.00.0000
2268 \begin_inset Graphics
2269 filename ../images/tabular-feature_delete-column.png
2274 deletes the current column or selection
2277 \begin_layout Labeling
2278 \labelwidthstring 00.00.0000
2279 \begin_inset Graphics
2280 filename ../images/tabular-feature_toggle-line-top.png
2285 adds a line at the top of the current cell / row or of a selection
2288 \begin_layout Labeling
2289 \labelwidthstring 00.00.0000
2290 \begin_inset Graphics
2291 filename ../images/tabular-feature_toggle-line-bottom.png
2296 adds a line at the bottom of the current cell / row or of a selection
2299 \begin_layout Labeling
2300 \labelwidthstring 00.00.0000
2301 \begin_inset Graphics
2302 filename ../images/tabular-feature_toggle-line-left.png
2307 adds a line at the left side of the current cell / row or of a selection
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Graphics
2313 filename ../images/tabular-feature_toggle-line-right.png
2318 adds a line at the right side of the current cell / row or of a selection
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_set-all-lines.png
2329 adds lines around the current or selected cells - if the current cell no
2330 multicolumn cell this also affects the current row and column
2333 \begin_layout Labeling
2334 \labelwidthstring 00.00.0000
2335 \begin_inset Graphics
2336 filename ../images/tabular-feature_unset-all-lines.png
2341 deletes all lines of the current or selected cells - if the current cell
2342 no multicolumn cell this also affects the current row and column
2345 \begin_layout Labeling
2346 \labelwidthstring 00.00.0000
2347 \begin_inset Graphics
2348 filename ../images/tabular-feature_m-align-left.png
2353 left-aligns the content of the current cell / column
2356 \begin_layout Labeling
2357 \labelwidthstring 00.00.0000
2358 \begin_inset Graphics
2359 filename ../images/tabular-feature_m-align-center.png
2364 centers the content of the current cell / column horizontally
2367 \begin_layout Labeling
2368 \labelwidthstring 00.00.0000
2369 \begin_inset Graphics
2370 filename ../images/tabular-feature_m-align-right.png
2375 right-aligns the content of the current cell / column
2378 \begin_layout Labeling
2379 \labelwidthstring 00.00.0000
2380 \begin_inset Graphics
2381 filename ../images/tabular-feature_align-decimal.png
2386 aligns the content of the current column at a character
2389 \begin_layout Labeling
2390 \labelwidthstring 00.00.0000
2391 \begin_inset Graphics
2392 filename ../images/tabular-feature_m-valign-top.png
2397 aligns the content of the current cell vertically to the top
2400 \begin_layout Labeling
2401 \labelwidthstring 00.00.0000
2402 \begin_inset Graphics
2403 filename ../images/tabular-feature_m-valign-middle.png
2408 centers the content of the current cell vertically
2411 \begin_layout Labeling
2412 \labelwidthstring 00.00.0000
2413 \begin_inset Graphics
2414 filename ../images/tabular-feature_m-valign-bottom.png
2419 aligns the content of the current cell vertically to the bottom
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Graphics
2425 filename ../images/tabular-feature_set-rotate-cell.png
2430 rotates the current cell or selection counter-clockwise by 90°
2433 \begin_layout Labeling
2434 \labelwidthstring 00.00.0000
2435 \begin_inset Graphics
2436 filename ../images/tabular-feature_set-rotate-tabular.png
2441 rotates the whole table counter-clockwise by 90°
2444 \begin_layout Labeling
2445 \labelwidthstring 00.00.0000
2446 \begin_inset Graphics
2447 filename ../images/tabular-feature_multicolumn.png
2452 sets the current cell or selection as a multicolumn
2455 \begin_layout Labeling
2456 \labelwidthstring 00.00.0000
2457 \begin_inset Graphics
2458 filename ../images/tabular-feature_multirow.png
2463 sets the current cell or selection as a multirow
2466 \begin_layout Standard
2467 \begin_inset Note Greyedout
2470 \begin_layout Plain Layout
2475 For the output the vertical alignment of the first cell in a row is used
2476 for all following cells in the row.
2484 \begin_layout Section
2486 \begin_inset Index idx
2489 \begin_layout Plain Layout
2498 \begin_layout Standard
2499 Additionally to the table dialog and toolbar, the menu
2501 Edit\SpecialChar \menuseparator
2504 allows you to add and delete border lines for the current row/column and
2505 to set the current selection as multicolumn.
2506 The menu is only available when the cursor is inside a table.
2509 \begin_layout Section
2511 \begin_inset CommandInset label
2513 name "sec:Table-Floats"
2518 \begin_inset Index idx
2521 \begin_layout Plain Layout
2528 \begin_inset Index idx
2531 \begin_layout Plain Layout
2540 \begin_layout Standard
2541 For general explanations about floats, have a look at section
2542 \begin_inset space ~
2546 \begin_inset CommandInset ref
2548 reference "sec:FloatIntroduction"
2555 \begin_layout Standard
2556 \begin_inset Float table
2562 \begin_layout Plain Layout
2563 \begin_inset Caption
2565 \begin_layout Plain Layout
2566 \begin_inset CommandInset label
2568 name "tab:a table float"
2580 \begin_layout Plain Layout
2582 \begin_inset Tabular
2583 <lyxtabular version="3" rows="3" columns="3">
2584 <features tabularvalignment="middle">
2585 <column alignment="center" valignment="top" width="0pt">
2586 <column alignment="center" valignment="top" width="0pt">
2587 <column alignment="center" valignment="top" width="0pt">
2589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2592 \begin_layout Plain Layout
2607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2610 \begin_layout Plain Layout
2625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2628 \begin_layout Plain Layout
2645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2648 \begin_layout Plain Layout
2663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2666 \begin_layout Plain Layout
2681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2684 \begin_layout Plain Layout
2701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2704 \begin_layout Plain Layout
2714 \begin_inset Formula $\int x^{2}dx$
2722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2725 \begin_layout Plain Layout
2735 \begin_inset Formula $\left[\begin{array}{cc}
2746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2749 \begin_layout Plain Layout
2759 \begin_inset Formula $1+1=2$
2780 \begin_layout Standard
2781 Table floats can be inserted using the menu
2783 Insert\SpecialChar \menuseparator
2784 Float\SpecialChar \menuseparator
2787 or the toolbar button
2788 \begin_inset Graphics
2789 filename ../images/float-insert_table.png
2798 \begin_layout Standard
2799 The float appears as a collapsible box with a caption that has the label
2801 \begin_inset Quotes eld
2805 \begin_inset space ~
2809 \begin_inset Quotes erd
2812 (# is the actual table number).
2813 You can insert tables in the float above or below the caption.
2816 \begin_layout Standard
2818 \begin_inset space ~
2822 \begin_inset CommandInset ref
2824 reference "tab:a table float"
2828 is an example table within a table float.
2831 \begin_layout Standard
2832 Having the caption above the table is the common rule that is unfortunately
2833 not supported in LaTeX's standard classes.
2834 This means that, if you are using the document classes
2850 , there will be no space between the caption and the table.
2851 To insert the needed space, add the following option to the load command
2852 of the LaTeX-package
2857 \begin_inset Index idx
2860 \begin_layout Plain Layout
2861 LaTeX-packages ! caption
2866 in your document preamble
2870 \begin_layout Plain Layout
2871 For more information have a look at section
2872 \begin_inset space ~
2876 \begin_inset CommandInset ref
2878 reference "sec:Caption-Placement"
2890 \begin_layout Standard
2896 \begin_layout Standard
2901 , which is described in section
2902 \begin_inset space ~
2906 \begin_inset CommandInset ref
2908 reference "sec:Caption-Formatting"
2912 , is used to adjust the caption format.
2915 \begin_layout Standard
2916 \begin_inset Index idx
2919 \begin_layout Plain Layout
2920 References ! to Tables
2925 Tables can be cross-referenced in the text by referencing their label.
2926 To do this insert a label in the caption using the menu
2928 Insert\SpecialChar \menuseparator
2931 or the toolbar button
2932 \begin_inset Graphics
2933 filename ../images/label-insert.png
2940 You can now refer to the label using the menu
2942 Insert\SpecialChar \menuseparator
2944 \begin_inset space ~
2949 or the toolbar button
2950 \begin_inset Graphics
2951 filename ../images/dialog-show-new-inset_ref.png
2958 \begin_inset Newline newline
2961 Referencing is explained in detail in section
2962 \begin_inset space ~
2966 \begin_inset CommandInset ref
2968 reference "sec:Referencing-Floats"
2975 \begin_layout Section
2977 \begin_inset CommandInset label
2979 name "sec:Longtables"
2984 \begin_inset Index idx
2987 \begin_layout Plain Layout
2994 \begin_inset Index idx
2997 \begin_layout Plain Layout
3006 \begin_layout Standard
3007 If the table is too long to fit on one page, you can use the option
3010 \begin_inset space ~
3014 \begin_inset space ~
3023 of the table dialog to split the table automatically over more pages.
3024 Doing this enables the following options:
3027 \begin_layout Description
3028 Header: The current row is defined to be a header row that appears on all
3029 pages of the longtable; except for the first page, if
3032 \begin_inset space ~
3038 This is therefore called the main header.
3041 \begin_layout Description
3043 \begin_inset space ~
3046 header: The current row is defined to be a header row that appears on the
3047 first page of the longtable.
3050 \begin_layout Description
3051 Footer: The current row is defined to be a footer row that appears on all
3052 pages of the longtable; except for the last page, if
3055 \begin_inset space ~
3063 \begin_layout Description
3065 \begin_inset space ~
3068 footer: The current row is defined to be a footer row that appears on the
3069 last page of the longtable.
3072 \begin_layout Description
3073 Caption: The current row contains the table caption.
3074 The row is reset as single column and a caption is inserted.
3075 More about longtable captions is explained in sec.
3076 \begin_inset space \thinspace{}
3080 \begin_inset CommandInset ref
3082 reference "sub:Longtable-Captions"
3089 \begin_layout Standard
3090 You can also specify a row where the table is split.
3091 See the following longtable to see how it works:
3094 \begin_layout Standard
3096 \begin_inset Tabular
3097 <lyxtabular version="3" rows="69" columns="3">
3098 <features islongtable="true" longtabularalignment="center">
3099 <column alignment="left" valignment="top" width="0cm">
3100 <column alignment="left" valignment="top" width="0pt">
3101 <column alignment="center" valignment="top" width="0pt">
3102 <row endfirsthead="true">
3103 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3106 \begin_layout Plain Layout
3109 Example Phone List (ignore the names)
3114 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3117 \begin_layout Plain Layout
3123 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3126 \begin_layout Plain Layout
3133 <row endfirsthead="true">
3134 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3137 \begin_layout Plain Layout
3145 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3148 \begin_layout Plain Layout
3154 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3157 \begin_layout Plain Layout
3166 <row endhead="true">
3167 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3170 \begin_layout Plain Layout
3178 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3181 \begin_layout Plain Layout
3187 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3190 \begin_layout Plain Layout
3197 <row endhead="true">
3198 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3201 \begin_layout Plain Layout
3209 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3212 \begin_layout Plain Layout
3218 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3221 \begin_layout Plain Layout
3230 <row endfoot="true">
3231 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3234 \begin_layout Plain Layout
3235 continued on next page
3240 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3243 \begin_layout Plain Layout
3249 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3252 \begin_layout Plain Layout
3260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3263 \begin_layout Plain Layout
3271 <cell alignment="center" valignment="top" usebox="none">
3274 \begin_layout Plain Layout
3280 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3283 \begin_layout Plain Layout
3291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3294 \begin_layout Plain Layout
3302 <cell alignment="center" valignment="top" usebox="none">
3305 \begin_layout Plain Layout
3311 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3314 \begin_layout Plain Layout
3322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3325 \begin_layout Plain Layout
3333 <cell alignment="center" valignment="top" usebox="none">
3336 \begin_layout Plain Layout
3342 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3345 \begin_layout Plain Layout
3353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3356 \begin_layout Plain Layout
3364 <cell alignment="center" valignment="top" usebox="none">
3367 \begin_layout Plain Layout
3373 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3376 \begin_layout Plain Layout
3384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3387 \begin_layout Plain Layout
3395 <cell alignment="center" valignment="top" usebox="none">
3398 \begin_layout Plain Layout
3404 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3407 \begin_layout Plain Layout
3415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3418 \begin_layout Plain Layout
3426 <cell alignment="center" valignment="top" usebox="none">
3429 \begin_layout Plain Layout
3435 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3438 \begin_layout Plain Layout
3446 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3449 \begin_layout Plain Layout
3457 <cell alignment="center" valignment="top" usebox="none">
3460 \begin_layout Plain Layout
3466 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3469 \begin_layout Plain Layout
3477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3480 \begin_layout Plain Layout
3488 <cell alignment="center" valignment="top" usebox="none">
3491 \begin_layout Plain Layout
3497 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3500 \begin_layout Plain Layout
3508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3511 \begin_layout Plain Layout
3519 <cell alignment="center" valignment="top" usebox="none">
3522 \begin_layout Plain Layout
3528 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3531 \begin_layout Plain Layout
3539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3542 \begin_layout Plain Layout
3550 <cell alignment="center" valignment="top" usebox="none">
3553 \begin_layout Plain Layout
3559 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3562 \begin_layout Plain Layout
3570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3573 \begin_layout Plain Layout
3581 <cell alignment="center" valignment="top" usebox="none">
3584 \begin_layout Plain Layout
3590 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3593 \begin_layout Plain Layout
3601 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3604 \begin_layout Plain Layout
3612 <cell alignment="center" valignment="top" usebox="none">
3615 \begin_layout Plain Layout
3621 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3624 \begin_layout Plain Layout
3632 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3635 \begin_layout Plain Layout
3643 <cell alignment="center" valignment="top" usebox="none">
3646 \begin_layout Plain Layout
3652 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3655 \begin_layout Plain Layout
3663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3666 \begin_layout Plain Layout
3674 <cell alignment="center" valignment="top" usebox="none">
3677 \begin_layout Plain Layout
3683 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3686 \begin_layout Plain Layout
3694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3697 \begin_layout Plain Layout
3705 <cell alignment="center" valignment="top" usebox="none">
3708 \begin_layout Plain Layout
3714 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3717 \begin_layout Plain Layout
3725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3728 \begin_layout Plain Layout
3736 <cell alignment="center" valignment="top" usebox="none">
3739 \begin_layout Plain Layout
3745 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3748 \begin_layout Plain Layout
3756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3759 \begin_layout Plain Layout
3767 <cell alignment="center" valignment="top" usebox="none">
3770 \begin_layout Plain Layout
3776 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3779 \begin_layout Plain Layout
3787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3790 \begin_layout Plain Layout
3798 <cell alignment="center" valignment="top" usebox="none">
3801 \begin_layout Plain Layout
3807 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3810 \begin_layout Plain Layout
3818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3821 \begin_layout Plain Layout
3829 <cell alignment="center" valignment="top" usebox="none">
3832 \begin_layout Plain Layout
3838 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3841 \begin_layout Plain Layout
3849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3852 \begin_layout Plain Layout
3860 <cell alignment="center" valignment="top" usebox="none">
3863 \begin_layout Plain Layout
3869 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3872 \begin_layout Plain Layout
3880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3883 \begin_layout Plain Layout
3891 <cell alignment="center" valignment="top" usebox="none">
3894 \begin_layout Plain Layout
3900 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3903 \begin_layout Plain Layout
3911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3914 \begin_layout Plain Layout
3922 <cell alignment="center" valignment="top" usebox="none">
3925 \begin_layout Plain Layout
3931 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3934 \begin_layout Plain Layout
3942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3945 \begin_layout Plain Layout
3953 <cell alignment="center" valignment="top" usebox="none">
3956 \begin_layout Plain Layout
3962 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3965 \begin_layout Plain Layout
3973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3976 \begin_layout Plain Layout
3984 <cell alignment="center" valignment="top" usebox="none">
3987 \begin_layout Plain Layout
3993 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3996 \begin_layout Plain Layout
4004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4007 \begin_layout Plain Layout
4015 <cell alignment="center" valignment="top" usebox="none">
4018 \begin_layout Plain Layout
4024 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4027 \begin_layout Plain Layout
4035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4038 \begin_layout Plain Layout
4046 <cell alignment="center" valignment="top" usebox="none">
4049 \begin_layout Plain Layout
4055 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4058 \begin_layout Plain Layout
4066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4069 \begin_layout Plain Layout
4077 <cell alignment="center" valignment="top" usebox="none">
4080 \begin_layout Plain Layout
4086 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4089 \begin_layout Plain Layout
4097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4100 \begin_layout Plain Layout
4108 <cell alignment="center" valignment="top" usebox="none">
4111 \begin_layout Plain Layout
4117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4120 \begin_layout Plain Layout
4128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4131 \begin_layout Plain Layout
4139 <cell alignment="center" valignment="top" usebox="none">
4142 \begin_layout Plain Layout
4148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4151 \begin_layout Plain Layout
4159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4162 \begin_layout Plain Layout
4170 <cell alignment="center" valignment="top" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4182 \begin_layout Plain Layout
4190 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4204 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4213 \begin_layout Plain Layout
4221 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4224 \begin_layout Plain Layout
4230 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4233 \begin_layout Plain Layout
4239 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Plain Layout
4250 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4253 \begin_layout Plain Layout
4261 <cell alignment="center" valignment="top" usebox="none">
4264 \begin_layout Plain Layout
4270 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Plain Layout
4281 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4284 \begin_layout Plain Layout
4292 <cell alignment="center" valignment="top" usebox="none">
4295 \begin_layout Plain Layout
4301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Plain Layout
4312 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4315 \begin_layout Plain Layout
4323 <cell alignment="center" valignment="top" usebox="none">
4326 \begin_layout Plain Layout
4332 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Plain Layout
4343 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4346 \begin_layout Plain Layout
4354 <cell alignment="center" valignment="top" usebox="none">
4357 \begin_layout Plain Layout
4363 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Plain Layout
4374 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4377 \begin_layout Plain Layout
4385 <cell alignment="center" valignment="top" usebox="none">
4388 \begin_layout Plain Layout
4394 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Plain Layout
4405 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4408 \begin_layout Plain Layout
4416 <cell alignment="center" valignment="top" usebox="none">
4419 \begin_layout Plain Layout
4425 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Plain Layout
4436 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4439 \begin_layout Plain Layout
4447 <cell alignment="center" valignment="top" usebox="none">
4450 \begin_layout Plain Layout
4456 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="center" valignment="top" usebox="none">
4481 \begin_layout Plain Layout
4487 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4498 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="center" valignment="top" usebox="none">
4512 \begin_layout Plain Layout
4518 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Plain Layout
4529 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" usebox="none">
4543 \begin_layout Plain Layout
4549 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Plain Layout
4560 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4563 \begin_layout Plain Layout
4571 <cell alignment="center" valignment="top" usebox="none">
4574 \begin_layout Plain Layout
4580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4583 \begin_layout Plain Layout
4591 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4594 \begin_layout Plain Layout
4602 <cell alignment="center" valignment="top" usebox="none">
4605 \begin_layout Plain Layout
4611 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4614 \begin_layout Plain Layout
4622 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4625 \begin_layout Plain Layout
4633 <cell alignment="center" valignment="top" usebox="none">
4636 \begin_layout Plain Layout
4642 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4645 \begin_layout Plain Layout
4653 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4656 \begin_layout Plain Layout
4664 <cell alignment="center" valignment="top" usebox="none">
4667 \begin_layout Plain Layout
4673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4676 \begin_layout Plain Layout
4684 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4687 \begin_layout Plain Layout
4695 <cell alignment="center" valignment="top" usebox="none">
4698 \begin_layout Plain Layout
4704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4707 \begin_layout Plain Layout
4715 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4718 \begin_layout Plain Layout
4726 <cell alignment="center" valignment="top" usebox="none">
4729 \begin_layout Plain Layout
4735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4738 \begin_layout Plain Layout
4746 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4749 \begin_layout Plain Layout
4757 <cell alignment="center" valignment="top" usebox="none">
4760 \begin_layout Plain Layout
4766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4769 \begin_layout Plain Layout
4777 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4780 \begin_layout Plain Layout
4788 <cell alignment="center" valignment="top" usebox="none">
4791 \begin_layout Plain Layout
4797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4800 \begin_layout Plain Layout
4808 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4811 \begin_layout Plain Layout
4819 <cell alignment="center" valignment="top" usebox="none">
4822 \begin_layout Plain Layout
4828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4831 \begin_layout Plain Layout
4839 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4842 \begin_layout Plain Layout
4850 <cell alignment="center" valignment="top" usebox="none">
4853 \begin_layout Plain Layout
4859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4862 \begin_layout Plain Layout
4870 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4873 \begin_layout Plain Layout
4881 <cell alignment="center" valignment="top" usebox="none">
4884 \begin_layout Plain Layout
4890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4893 \begin_layout Plain Layout
4901 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4904 \begin_layout Plain Layout
4912 <cell alignment="center" valignment="top" usebox="none">
4915 \begin_layout Plain Layout
4921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4924 \begin_layout Plain Layout
4932 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4935 \begin_layout Plain Layout
4943 <cell alignment="center" valignment="top" usebox="none">
4946 \begin_layout Plain Layout
4952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4955 \begin_layout Plain Layout
4963 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4966 \begin_layout Plain Layout
4974 <cell alignment="center" valignment="top" usebox="none">
4977 \begin_layout Plain Layout
4983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4986 \begin_layout Plain Layout
4994 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4997 \begin_layout Plain Layout
5005 <cell alignment="center" valignment="top" usebox="none">
5008 \begin_layout Plain Layout
5014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5017 \begin_layout Plain Layout
5025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5028 \begin_layout Plain Layout
5036 <cell alignment="center" valignment="top" usebox="none">
5039 \begin_layout Plain Layout
5045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5048 \begin_layout Plain Layout
5056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5059 \begin_layout Plain Layout
5067 <cell alignment="center" valignment="top" usebox="none">
5070 \begin_layout Plain Layout
5076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5079 \begin_layout Plain Layout
5087 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5090 \begin_layout Plain Layout
5098 <cell alignment="center" valignment="top" usebox="none">
5101 \begin_layout Plain Layout
5107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5110 \begin_layout Plain Layout
5118 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5121 \begin_layout Plain Layout
5129 <cell alignment="center" valignment="top" usebox="none">
5132 \begin_layout Plain Layout
5138 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5141 \begin_layout Plain Layout
5149 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5152 \begin_layout Plain Layout
5160 <cell alignment="center" valignment="top" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5172 \begin_layout Plain Layout
5180 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5183 \begin_layout Plain Layout
5191 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5194 \begin_layout Plain Layout
5200 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5203 \begin_layout Plain Layout
5210 <row endlastfoot="true">
5211 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5214 \begin_layout Plain Layout
5220 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5223 \begin_layout Plain Layout
5229 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5232 \begin_layout Plain Layout
5247 \begin_layout Plain Layout
5251 addtocounter{table}{-1}
5257 \begin_inset Note Note
5260 \begin_layout Plain Layout
5261 See the first greyed-out note in section
5262 \begin_inset space ~
5266 \begin_inset CommandInset ref
5268 reference "sub:Longtable-Captions"
5272 for an explanation of this command.
5280 \begin_layout Subsection
5281 Footnotes in Longtables
5282 \begin_inset CommandInset label
5284 name "sub:Footnotes-in-Longtables"
5289 \begin_inset Index idx
5292 \begin_layout Plain Layout
5293 Longtables ! Footnotes
5301 \begin_layout Standard
5302 Footnotes can be inserted to every longtable cell.
5303 They appear at the bottom of the page where the table cell with the footnote
5306 \begin_inset space ~
5310 \begin_inset CommandInset ref
5312 reference "tab:DiffCaptions"
5316 has for example a footnote.
5319 \begin_layout Subsection
5321 \begin_inset Index idx
5324 \begin_layout Plain Layout
5325 Longtables ! Alignment
5333 \begin_layout Standard
5334 The horizontal alignment of longtables can be set in the table settings
5336 For left- and right-alignment the table will be directly at the page border.
5337 To add space between the table and the border one has to set the alignment
5338 to center and change the value of the LaTeX-lengths
5350 by inserting this line as TeX-Code before the longtable:
5353 \begin_layout Standard
5363 \begin_layout Standard
5364 The value can have any of the units listed in Table
5365 \begin_inset space ~
5369 \begin_inset CommandInset ref
5371 reference "tab:Units"
5382 controls the horizontal distance from the left page border to the longtable,
5389 the distance from the right side.
5390 The default value for both lengths is
5396 , which is in this case the same as an horizontal fill in LyX.
5399 \begin_layout Standard
5400 The following longtable was centered and
5416 \begin_layout Plain Layout
5432 \begin_layout Standard
5433 \begin_inset Tabular
5434 <lyxtabular version="3" rows="5" columns="5">
5435 <features islongtable="true" longtabularalignment="center">
5436 <column alignment="center" valignment="top" width="0">
5437 <column alignment="center" valignment="top" width="0pt">
5438 <column alignment="center" valignment="top" width="0">
5439 <column alignment="center" valignment="top" width="0">
5440 <column alignment="center" valignment="top" width="0">
5442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5445 \begin_layout Plain Layout
5451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5454 \begin_layout Plain Layout
5460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5463 \begin_layout Plain Layout
5469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5472 \begin_layout Plain Layout
5478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5481 \begin_layout Plain Layout
5489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5492 \begin_layout Plain Layout
5498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5501 \begin_layout Plain Layout
5507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5510 \begin_layout Plain Layout
5516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5519 \begin_layout Plain Layout
5525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5528 \begin_layout Plain Layout
5536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5539 \begin_layout Plain Layout
5545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5548 \begin_layout Plain Layout
5554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5557 \begin_layout Plain Layout
5563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5566 \begin_layout Plain Layout
5572 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5575 \begin_layout Plain Layout
5583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5586 \begin_layout Plain Layout
5592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5595 \begin_layout Plain Layout
5601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5604 \begin_layout Plain Layout
5610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5613 \begin_layout Plain Layout
5619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5622 \begin_layout Plain Layout
5630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5633 \begin_layout Plain Layout
5639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5642 \begin_layout Plain Layout
5648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5651 \begin_layout Plain Layout
5657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5660 \begin_layout Plain Layout
5666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5669 \begin_layout Plain Layout
5684 \begin_layout Plain Layout
5701 \begin_layout Plain Layout
5705 addtocounter{table}{-1}
5711 \begin_inset Note Note
5714 \begin_layout Plain Layout
5715 See the first greyed-out note in section
5716 \begin_inset space ~
5720 \begin_inset CommandInset ref
5722 reference "sub:Longtable-Captions"
5726 for an explanation of this command.
5734 \begin_layout Subsection
5736 \begin_inset Index idx
5739 \begin_layout Plain Layout
5740 Longtables ! Captions
5746 \begin_inset CommandInset label
5748 name "sub:Longtable-Captions"
5755 \begin_layout Standard
5756 A longtable cannot be put into a table float because floats can only be
5758 But the caption environment of floats can also be used for longtables when
5759 you use the longtable option
5763 as described in sec.
5764 \begin_inset space \thinspace{}
5768 \begin_inset CommandInset ref
5770 reference "sec:Longtables"
5775 Only one table row can contain the caption.
5778 \begin_layout Standard
5779 Here is a short longtable to see how it works:
5782 \begin_layout Standard
5783 \begin_inset Tabular
5784 <lyxtabular version="3" rows="6" columns="5">
5785 <features islongtable="true" longtabularalignment="center">
5786 <column alignment="center" valignment="top" width="0">
5787 <column alignment="center" valignment="top" width="0">
5788 <column alignment="center" valignment="top" width="0">
5789 <column alignment="center" valignment="top" width="0">
5790 <column alignment="center" valignment="top" width="0">
5791 <row caption="true">
5792 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5795 \begin_layout Plain Layout
5796 \begin_inset Caption
5798 \begin_layout Plain Layout
5799 Longtable with caption
5800 \begin_inset Argument
5803 \begin_layout Plain Layout
5819 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5840 \begin_layout Plain Layout
5846 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5849 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5887 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5896 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Plain Layout
5940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5943 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Plain Layout
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5981 \begin_layout Plain Layout
5987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5990 \begin_layout Plain Layout
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6001 \begin_layout Plain Layout
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6010 \begin_layout Plain Layout
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Plain Layout
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_layout Plain Layout
6034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6037 \begin_layout Plain Layout
6045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6048 \begin_layout Plain Layout
6054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6057 \begin_layout Plain Layout
6063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6066 \begin_layout Plain Layout
6072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6075 \begin_layout Plain Layout
6081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6084 \begin_layout Plain Layout
6098 \begin_layout Standard
6099 \begin_inset VSpace medskip
6103 \begin_inset Note Greyedout
6106 \begin_layout Plain Layout
6110 \begin_inset space ~
6115 The table number is increased for for every longtable, even if you did
6116 not set a caption for it.
6117 For this reason you could have the case that e.
6118 \begin_inset space \thinspace{}
6122 \begin_inset space \space{}
6126 \begin_inset space ~
6130 \begin_inset space ~
6133 2.1 in the list of tables if there are two longtables without captions.
6134 To avoid this you can add the following command in TeX-Code after every
6135 longtable without a caption:
6138 \begin_layout Plain Layout
6143 addtocounter{table}{-1}
6146 \begin_layout Plain Layout
6147 This is not needed when none of your longtables have a caption and you add
6148 the following code to the document preamble:
6151 \begin_layout Plain Layout
6161 \begin_inset Newline newline
6172 addtocounter{table}{-1}}
6180 \begin_layout Standard
6181 \begin_inset Note Greyedout
6184 \begin_layout Plain Layout
6188 \begin_inset space ~
6198 \begin_inset Index idx
6201 \begin_layout Plain Layout
6202 LaTeX-packages ! hyperref
6215 dialog to link cross-references, the link to a longtable caption will always
6216 point to the beginning of the document.
6224 \begin_layout Subsubsection
6225 References to Longtables
6226 \begin_inset Index idx
6229 \begin_layout Plain Layout
6230 Longtables ! References
6238 \begin_layout Standard
6239 \begin_inset Tabular
6240 <lyxtabular version="3" rows="6" columns="5">
6241 <features islongtable="true" longtabularalignment="center">
6242 <column alignment="center" valignment="top" width="0">
6243 <column alignment="center" valignment="top" width="0">
6244 <column alignment="center" valignment="top" width="0">
6245 <column alignment="center" valignment="top" width="0">
6246 <column alignment="center" valignment="top" width="0">
6247 <row caption="true">
6248 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6251 \begin_layout Plain Layout
6252 \begin_inset Caption
6254 \begin_layout Plain Layout
6255 Referenced longtable
6256 \begin_inset CommandInset label
6258 name "tab:RefExample"
6272 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6275 \begin_layout Plain Layout
6281 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6284 \begin_layout Plain Layout
6290 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6293 \begin_layout Plain Layout
6299 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6302 \begin_layout Plain Layout
6310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6313 \begin_layout Plain Layout
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6322 \begin_layout Plain Layout
6328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6331 \begin_layout Plain Layout
6337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6340 \begin_layout Plain Layout
6346 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6349 \begin_layout Plain Layout
6357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6360 \begin_layout Plain Layout
6366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6369 \begin_layout Plain Layout
6375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6378 \begin_layout Plain Layout
6384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6387 \begin_layout Plain Layout
6393 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6396 \begin_layout Plain Layout
6404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6407 \begin_layout Plain Layout
6413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6416 \begin_layout Plain Layout
6422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6425 \begin_layout Plain Layout
6431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6434 \begin_layout Plain Layout
6440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6443 \begin_layout Plain Layout
6451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6454 \begin_layout Plain Layout
6460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6463 \begin_layout Plain Layout
6469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6472 \begin_layout Plain Layout
6478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6481 \begin_layout Plain Layout
6487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6490 \begin_layout Plain Layout
6498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6501 \begin_layout Plain Layout
6507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6510 \begin_layout Plain Layout
6516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6519 \begin_layout Plain Layout
6525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6528 \begin_layout Plain Layout
6534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6537 \begin_layout Plain Layout
6551 \begin_layout Standard
6552 To reference a longtable, insert a label into the caption.
6555 \begin_layout Standard
6556 This is a reference to Table
6557 \begin_inset space ~
6561 \begin_inset CommandInset ref
6563 reference "tab:RefExample"
6570 \begin_layout Standard
6571 The caption layout can be set together with all other captions of your document
6572 using the LaTeX-package
6577 \begin_inset Index idx
6580 \begin_layout Plain Layout
6581 LaTeX-packages ! caption
6587 \begin_inset space ~
6591 \begin_inset CommandInset ref
6593 reference "sec:Caption-Formatting"
6600 \begin_layout Subsubsection
6602 \begin_inset Index idx
6605 \begin_layout Plain Layout
6606 Longtables ! Caption Width
6614 \begin_layout Standard
6615 The maximal width of of caption lines is defined by the length
6622 Its default value is 4
6623 \begin_inset space \thinspace{}
6627 To change it add the following command to your document preamble or as
6628 TeX-Code into your document before the longtable that should be affected
6631 \begin_layout Standard
6641 \begin_layout Standard
6642 where the width could have one of the units listed in appendix
6643 \begin_inset space ~
6647 \begin_inset CommandInset ref
6649 reference "cha:Units-available-in"
6656 \begin_layout Standard
6657 The following tables show the difference:
6660 \begin_layout Standard
6661 \begin_inset Tabular
6662 <lyxtabular version="3" rows="6" columns="5">
6663 <features islongtable="true" longtabularalignment="center">
6664 <column alignment="center" valignment="top" width="0">
6665 <column alignment="center" valignment="top" width="0">
6666 <column alignment="center" valignment="top" width="0">
6667 <column alignment="center" valignment="top" width="0">
6668 <column alignment="center" valignment="top" width="0">
6669 <row caption="true">
6670 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6673 \begin_layout Plain Layout
6674 \begin_inset Caption
6676 \begin_layout Plain Layout
6677 long full title with default width long full title with default width long
6678 full title with default width
6679 \begin_inset Argument
6682 \begin_layout Plain Layout
6683 caption with default width
6698 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6701 \begin_layout Plain Layout
6707 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6710 \begin_layout Plain Layout
6716 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6719 \begin_layout Plain Layout
6725 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6728 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6739 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6748 \begin_layout Plain Layout
6754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6757 \begin_layout Plain Layout
6763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6766 \begin_layout Plain Layout
6772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6775 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6786 \begin_layout Plain Layout
6792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6795 \begin_layout Plain Layout
6801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6804 \begin_layout Plain Layout
6810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6813 \begin_layout Plain Layout
6819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6822 \begin_layout Plain Layout
6830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6833 \begin_layout Plain Layout
6839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6842 \begin_layout Plain Layout
6848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6851 \begin_layout Plain Layout
6857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6860 \begin_layout Plain Layout
6866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6869 \begin_layout Plain Layout
6877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6880 \begin_layout Plain Layout
6886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6889 \begin_layout Plain Layout
6895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6898 \begin_layout Plain Layout
6904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6907 \begin_layout Plain Layout
6913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6916 \begin_layout Plain Layout
6924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6927 \begin_layout Plain Layout
6933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6936 \begin_layout Plain Layout
6942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6945 \begin_layout Plain Layout
6951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6954 \begin_layout Plain Layout
6960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6963 \begin_layout Plain Layout
6977 \begin_layout Standard
6981 \begin_layout Plain Layout
6993 \begin_inset Tabular
6994 <lyxtabular version="3" rows="6" columns="5">
6995 <features islongtable="true" longtabularalignment="center">
6996 <column alignment="center" valignment="top" width="0">
6997 <column alignment="center" valignment="top" width="0">
6998 <column alignment="center" valignment="top" width="0">
6999 <column alignment="center" valignment="top" width="0">
7000 <column alignment="center" valignment="top" width="0">
7001 <row caption="true">
7002 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7005 \begin_layout Plain Layout
7006 \begin_inset Caption
7008 \begin_layout Plain Layout
7009 long full title with width set to 5
7010 \begin_inset space \thinspace{}
7013 cm long full title with width set to 5
7014 \begin_inset space \thinspace{}
7017 cm long full title with width set to 5
7018 \begin_inset space \thinspace{}
7022 \begin_inset Argument
7025 \begin_layout Plain Layout
7027 \begin_inset space \thinspace{}
7031 \begin_inset space \thinspace{}
7035 \begin_inset space \thinspace{}
7053 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7056 \begin_layout Plain Layout
7062 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7065 \begin_layout Plain Layout
7071 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7074 \begin_layout Plain Layout
7080 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7083 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7094 \begin_layout Plain Layout
7100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7103 \begin_layout Plain Layout
7109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7112 \begin_layout Plain Layout
7118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7121 \begin_layout Plain Layout
7127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7130 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7141 \begin_layout Plain Layout
7147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7150 \begin_layout Plain Layout
7156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7159 \begin_layout Plain Layout
7165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7168 \begin_layout Plain Layout
7174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7177 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7188 \begin_layout Plain Layout
7194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7197 \begin_layout Plain Layout
7203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7206 \begin_layout Plain Layout
7212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7215 \begin_layout Plain Layout
7221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7224 \begin_layout Plain Layout
7232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7235 \begin_layout Plain Layout
7241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7244 \begin_layout Plain Layout
7250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7253 \begin_layout Plain Layout
7259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7262 \begin_layout Plain Layout
7268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7271 \begin_layout Plain Layout
7279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7282 \begin_layout Plain Layout
7288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7291 \begin_layout Plain Layout
7297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7300 \begin_layout Plain Layout
7306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7309 \begin_layout Plain Layout
7315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7318 \begin_layout Plain Layout
7332 \begin_layout Standard
7336 \begin_layout Plain Layout
7350 \begin_layout Standard
7351 \begin_inset Note Greyedout
7354 \begin_layout Plain Layout
7359 When the LaTeX-package
7364 \begin_inset Index idx
7367 \begin_layout Plain Layout
7368 LaTeX-packages ! caption
7373 is used, as in this document, the full page width is used for the caption
7374 when you use the default value of 4
7375 \begin_inset space \thinspace{}
7385 To get in this case exactly a 4
7386 \begin_inset space \thinspace{}
7389 in wide caption, you can either use a value slightly different from 4.0
7390 \begin_inset space \thinspace{}
7394 \begin_inset space \thinspace{}
7398 \begin_inset space \space{}
7402 \begin_inset space \thinspace{}
7405 in, or the LaTeX-command
7409 captionsetup{width=value}
7411 that is provided by the
7423 \begin_layout Subsubsection
7424 Different Captions for Table Pages
7425 \begin_inset Index idx
7428 \begin_layout Plain Layout
7429 Longtables ! Different Captions for Pages
7437 \begin_layout Standard
7438 When the table captions for the following pages should differ from the one
7439 of the first table page, insert a caption with the TeX code command
7442 \begin_layout Standard
7447 caption*{caption text}
7454 \begin_layout Standard
7455 in a dummy caption row that is marked as a header.
7457 \begin_inset space ~
7461 \begin_inset CommandInset ref
7463 reference "tab:DiffCaptions"
7467 is an example of a longtable with different heading where the second caption
7468 doesn't include the table number.
7471 \begin_layout Standard
7473 \begin_inset Tabular
7474 <lyxtabular version="3" rows="59" columns="3">
7475 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7476 <column alignment="left" valignment="top" width="0cm">
7477 <column alignment="left" valignment="top" width="0pt">
7478 <column alignment="center" valignment="top" width="0pt">
7479 <row caption="true">
7480 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7483 \begin_layout Plain Layout
7484 \begin_inset Caption
7486 \begin_layout Plain Layout
7488 \begin_inset CommandInset label
7490 name "tab:DiffCaptions"
7495 \begin_inset Argument
7498 \begin_layout Plain Layout
7514 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7526 \begin_layout Plain Layout
7533 <row endfirsthead="true">
7534 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7540 Example Phone List (ignore the names)
7545 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7548 \begin_layout Plain Layout
7554 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7557 \begin_layout Plain Layout
7564 <row endfirsthead="true">
7565 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7568 \begin_layout Plain Layout
7576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7579 \begin_layout Plain Layout
7585 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7588 \begin_layout Plain Layout
7597 <row endhead="true">
7598 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7601 \begin_layout Plain Layout
7605 \begin_layout Plain Layout
7609 caption*{Continued Example Phone List}
7623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7632 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7635 \begin_layout Plain Layout
7642 <row endhead="true">
7643 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7654 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7657 \begin_layout Plain Layout
7663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7666 \begin_layout Plain Layout
7673 <row endhead="true">
7674 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7688 \begin_layout Plain Layout
7694 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7697 \begin_layout Plain Layout
7706 <row endfoot="true">
7707 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7710 \begin_layout Plain Layout
7711 continued on next page
7716 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7719 \begin_layout Plain Layout
7725 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7728 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7756 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7759 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7852 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7883 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7914 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7945 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7976 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8007 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8038 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8069 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8100 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8131 \begin_layout Plain Layout
8139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8142 \begin_layout Plain Layout
8150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8153 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8162 \begin_layout Plain Layout
8170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8173 \begin_layout Plain Layout
8182 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8422 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8453 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8484 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8515 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8546 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8577 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8608 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8639 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8670 \begin_layout Plain Layout
8678 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8681 \begin_layout Plain Layout
8689 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8692 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8701 \begin_layout Plain Layout
8709 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8712 \begin_layout Plain Layout
8718 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8721 \begin_layout Plain Layout
8727 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8947 \begin_layout Plain Layout
8955 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8978 \begin_layout Plain Layout
8986 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9009 \begin_layout Plain Layout
9017 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9040 \begin_layout Plain Layout
9048 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9068 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9071 \begin_layout Plain Layout
9079 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9099 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9102 \begin_layout Plain Layout
9110 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9133 \begin_layout Plain Layout
9141 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9164 \begin_layout Plain Layout
9172 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9195 \begin_layout Plain Layout
9203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9226 \begin_layout Plain Layout
9234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9257 \begin_layout Plain Layout
9265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9288 \begin_layout Plain Layout
9296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9299 \begin_layout Plain Layout
9307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9310 \begin_layout Plain Layout
9316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9319 \begin_layout Plain Layout
9327 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9330 \begin_layout Plain Layout
9338 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9341 \begin_layout Plain Layout
9347 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9350 \begin_layout Plain Layout
9364 \begin_layout Section
9365 Special Longtable Issues
9366 \begin_inset CommandInset label
9368 name "sec:Special-Longtable-Issues"
9375 \begin_layout Subsection
9376 Longtable Calculation
9377 \begin_inset Index idx
9380 \begin_layout Plain Layout
9381 Longtables ! Calculation
9389 \begin_layout Standard
9390 LaTeX calculates the height of table pages and their page breaks using so
9392 Chunks are parts of tables that held at the same time in LaTeX's memory.
9393 The default value was historically set to only 20 table rows.
9394 If you are using longtables with many pages this may slow down the creation
9396 You can safely increase the chunk size to values of 100-1000 by adding
9397 this command line to your document preamble:
9400 \begin_layout Standard
9405 setcounter{LTchunksize}{100}
9408 \begin_layout Subsection
9409 Floats and Longtables
9410 \begin_inset Index idx
9413 \begin_layout Plain Layout
9422 \begin_layout Standard
9423 There might be problems when a float appears on the same page where a longtable
9425 To avoid such a situation, insert a
9426 \begin_inset Quotes eld
9430 \begin_inset Quotes erd
9435 Insert\SpecialChar \menuseparator
9436 Formatting\SpecialChar \menuseparator
9438 \begin_inset space ~
9443 ) before your longtable.
9446 \begin_layout Subsection
9448 \begin_inset Index idx
9451 \begin_layout Plain Layout
9452 Longtables ! Forced Page Breaks
9460 \begin_layout Standard
9461 By default tables are only broken between rows.
9462 If you have a cell with multiples lines and want to have a page break within
9463 the cell, insert the new line command
9464 \begin_inset Quotes eld
9476 \begin_inset Quotes erd
9479 as TeX-Code at the point of the cell where it can be broken.
9488 command you have to insert in TeX-Code as many
9489 \begin_inset Quotes eld
9497 \begin_inset Quotes erd
9500 characters as the number of the following table columns.
9505 is the character to separate table cells.
9506 Write in TeX-Code after each
9510 the content of the corresponding following cell and delete the content
9512 \begin_inset Newline newline
9523 command, insert as many
9527 characters as the number of table columns before the current column.
9529 \begin_inset space ~
9533 \begin_inset CommandInset ref
9535 reference "tab:ForcedPagebreak"
9539 the cell that should be broken is in the second column followed by another
9541 Therefore the following command was inserted in the cell as TeX-Code after
9543 \begin_inset Quotes eld
9551 \begin_inset Quotes erd
9557 \begin_layout Standard
9567 \begin_inset Newline newline
9573 \begin_layout Standard
9575 \begin_inset Quotes eld
9579 \begin_inset Quotes erd
9582 in the third column of the row was deleted.
9589 is only needed when a page break should definitely occur at this position,
9590 otherwise it would be a conditional break.
9591 If your footer row of the longtable has for a certain reason no upper line
9592 but you would have a horizontal line where the cell is broken, use this
9596 \begin_layout Standard
9604 \begin_inset Newline newline
9612 \begin_layout Standard
9613 When the cell to be broken is in the last column, the command
9616 \begin_layout Standard
9626 \begin_layout Standard
9627 must be inserted as TeX-Code at the beginning of the cell.
9628 This ensures that the part of the cell that will be displayed on the new
9629 page appears with the full width.
9632 \begin_layout Standard
9634 \begin_inset Tabular
9635 <lyxtabular version="3" rows="38" columns="3">
9636 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9637 <column alignment="left" valignment="top" width="0cm">
9638 <column alignment="left" valignment="top" width="3cm">
9639 <column alignment="center" valignment="top" width="0pt">
9640 <row caption="true">
9641 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9644 \begin_layout Plain Layout
9645 \begin_inset Caption
9647 \begin_layout Plain Layout
9648 Table with forced page break in table cell
9649 \begin_inset CommandInset label
9651 name "tab:ForcedPagebreak"
9656 \begin_inset Argument
9659 \begin_layout Plain Layout
9660 Table with forced page break in table cell
9675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9678 \begin_layout Plain Layout
9684 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9687 \begin_layout Plain Layout
9694 <row endfirsthead="true">
9695 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9701 Example Phone List (ignore the names)
9706 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9709 \begin_layout Plain Layout
9715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9718 \begin_layout Plain Layout
9725 <row endfirsthead="true">
9726 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9729 \begin_layout Plain Layout
9737 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9740 \begin_layout Plain Layout
9746 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9749 \begin_layout Plain Layout
9758 <row endhead="true">
9759 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9762 \begin_layout Plain Layout
9766 \begin_layout Plain Layout
9770 caption*{Continued Example Phone List}
9784 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9787 \begin_layout Plain Layout
9793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9796 \begin_layout Plain Layout
9803 <row endhead="true">
9804 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9807 \begin_layout Plain Layout
9815 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9818 \begin_layout Plain Layout
9824 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9827 \begin_layout Plain Layout
9834 <row endhead="true">
9835 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9838 \begin_layout Plain Layout
9846 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9849 \begin_layout Plain Layout
9855 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9858 \begin_layout Plain Layout
9867 <row endfoot="true">
9868 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9871 \begin_layout Plain Layout
9872 continued on next page
9877 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9880 \begin_layout Plain Layout
9886 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9889 \begin_layout Plain Layout
9897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9900 \begin_layout Plain Layout
9908 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9911 \begin_layout Plain Layout
9917 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9920 \begin_layout Plain Layout
9928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9931 \begin_layout Plain Layout
9939 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9942 \begin_layout Plain Layout
9948 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9951 \begin_layout Plain Layout
9959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9973 \begin_layout Plain Layout
9979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9982 \begin_layout Plain Layout
9990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9993 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10004 \begin_layout Plain Layout
10010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10013 \begin_layout Plain Layout
10021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10024 \begin_layout Plain Layout
10032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10035 \begin_layout Plain Layout
10041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10044 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10055 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10066 \begin_layout Plain Layout
10072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10075 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10086 \begin_layout Plain Layout
10094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10097 \begin_layout Plain Layout
10103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10106 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10128 \begin_layout Plain Layout
10134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10137 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10159 \begin_layout Plain Layout
10165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10168 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10190 \begin_layout Plain Layout
10196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10199 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10221 \begin_layout Plain Layout
10227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10230 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10252 \begin_layout Plain Layout
10258 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10261 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10283 \begin_layout Plain Layout
10289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10292 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10314 \begin_layout Plain Layout
10320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10323 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10345 \begin_layout Plain Layout
10351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10354 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10376 \begin_layout Plain Layout
10382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10385 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10407 \begin_layout Plain Layout
10413 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10416 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10438 \begin_layout Plain Layout
10444 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10447 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10469 \begin_layout Plain Layout
10475 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10478 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10500 \begin_layout Plain Layout
10506 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10509 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10531 \begin_layout Plain Layout
10537 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10540 \begin_layout Plain Layout
10548 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10551 \begin_layout Plain Layout
10559 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10562 \begin_layout Plain Layout
10568 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10571 \begin_layout Plain Layout
10579 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10582 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10593 \begin_layout Plain Layout
10595 Fürst von Montecompatri, 11.
10596 Fürst von Sulmona und Vivaro, 10.
10597 Fürst von Rossano, 5.
10598 Herzog von Canemorte, 11.
10599 Herzog von Palombara, 5.
10600 Herzog von Castelchiodato,
10604 \begin_layout Plain Layout
10615 \begin_layout Plain Layout
10623 Herzog von Poggionativo, 11.
10624 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10625 Graf von Valinfreda, 11.
10626 Baron von Cropalati, 11.
10627 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10632 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10657 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10688 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10719 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10750 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10781 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10812 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10832 \begin_layout Plain Layout
10840 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10843 \begin_layout Plain Layout
10849 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10852 \begin_layout Plain Layout
10860 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10863 \begin_layout Plain Layout
10871 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10874 \begin_layout Plain Layout
10880 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10883 \begin_layout Plain Layout
10897 \begin_layout Section
10898 Multiple Lines Columns and Rows
10901 \begin_layout Subsection
10902 Multiple Lines in Table Cells
10903 \begin_inset CommandInset label
10905 name "sub:Multiple-Lines-in"
10910 \begin_inset Index idx
10913 \begin_layout Plain Layout
10914 Multiple Lines in Table Cells
10920 \begin_inset Index idx
10923 \begin_layout Plain Layout
10932 \begin_layout Standard
10934 \begin_inset Float table
10940 \begin_layout Plain Layout
10941 \begin_inset Caption
10943 \begin_layout Plain Layout
10944 \begin_inset CommandInset label
10946 name "tab:Table-with-multiple"
10950 Table with multiple lines in cells
10958 \begin_layout Plain Layout
10960 \begin_inset Tabular
10961 <lyxtabular version="3" rows="3" columns="3">
10962 <features tabularvalignment="middle">
10963 <column alignment="center" valignment="middle" width="2.5cm">
10964 <column alignment="center" valignment="middle" width="0">
10965 <column alignment="center" valignment="middle" width="0">
10967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10970 \begin_layout Plain Layout
10972 \begin_inset Newline linebreak
10980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10983 \begin_layout Plain Layout
10989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10992 \begin_layout Plain Layout
11000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11003 \begin_layout Plain Layout
11009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11012 \begin_layout Plain Layout
11018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11021 \begin_layout Plain Layout
11029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11032 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11041 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11050 \begin_layout Plain Layout
11069 \begin_layout Standard
11070 Setting a fixed width for a column enables you to enter text as a paragraph
11071 with multiple lines and hyphenation.
11074 \begin_layout Standard
11076 \begin_inset space ~
11080 \begin_inset CommandInset ref
11082 reference "tab:Table-with-multiple"
11086 , create a 3×3 table, mark the first cell and right-click on it.
11087 In the appearing table dialog we set a cell width of 2.5
11088 \begin_inset space \thinspace{}
11091 cm and choose centered for the vertical and horizontal alignment.
11092 The vertical alignment is used for all cells of the row.
11093 As our text is smaller than 2.5
11094 \begin_inset space \thinspace{}
11097 cm, only one line will appear.
11098 To get two lines, a justified line break (shortcut
11101 arg "newline-insert linebreak"
11105 If the text is wider than the set cell width, it will automatically be
11106 broken to several lines.
11109 \begin_layout Standard
11110 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11111 by LaTeX if it is the first entry.
11112 Therefore you need to insert something to prevent the word not being the
11114 So add a horizontal space of 0
11115 \begin_inset space \thinspace{}
11118 pt before the word.
11119 As the space is zero, it doesn't change the output.
11121 \begin_inset space ~
11125 \begin_inset CommandInset ref
11127 reference "tab:Table-with-and"
11134 \begin_layout Standard
11135 \begin_inset Float table
11141 \begin_layout Plain Layout
11142 \begin_inset Caption
11144 \begin_layout Plain Layout
11145 \begin_inset CommandInset label
11147 name "tab:Table-with-and"
11151 Table with and without hyphenation
11159 \begin_layout Plain Layout
11160 \begin_inset space \hfill{}
11164 \begin_inset Tabular
11165 <lyxtabular version="3" rows="3" columns="3">
11166 <features tabularvalignment="middle">
11167 <column alignment="center" valignment="middle" width="2.5cm">
11168 <column alignment="center" valignment="middle" width="0">
11169 <column alignment="center" valignment="middle" width="0">
11171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11174 \begin_layout Plain Layout
11175 verylongtablecellword
11180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11183 \begin_layout Plain Layout
11189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11192 \begin_layout Plain Layout
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Plain Layout
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11212 \begin_layout Plain Layout
11218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11221 \begin_layout Plain Layout
11229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11241 \begin_layout Plain Layout
11247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11250 \begin_layout Plain Layout
11262 \begin_inset space \hfill{}
11266 \begin_inset Tabular
11267 <lyxtabular version="3" rows="3" columns="3">
11268 <features tabularvalignment="middle">
11269 <column alignment="center" valignment="middle" width="2.5cm">
11270 <column alignment="center" valignment="middle" width="0">
11271 <column alignment="center" valignment="middle" width="0">
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11276 \begin_layout Plain Layout
11277 \begin_inset space \hspace{}
11281 verylongtablecellword
11286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11289 \begin_layout Plain Layout
11295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11298 \begin_layout Plain Layout
11306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11309 \begin_layout Plain Layout
11315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11318 \begin_layout Plain Layout
11324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11327 \begin_layout Plain Layout
11335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11338 \begin_layout Plain Layout
11344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11347 \begin_layout Plain Layout
11353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11356 \begin_layout Plain Layout
11368 \begin_inset space \hfill{}
11379 \begin_layout Subsection
11381 \begin_inset CommandInset label
11383 name "sub:Multicolumns"
11388 \begin_inset Index idx
11391 \begin_layout Plain Layout
11398 \begin_inset Index idx
11401 \begin_layout Plain Layout
11402 Table ! Multicolumns
11410 \begin_layout Subsubsection
11414 \begin_layout Standard
11415 To merge cells over multiple columns, select as many cells within a row
11416 as you want to merge and use either the table-toolbar button
11417 \begin_inset Graphics
11418 filename ../images/tabular-feature_multicolumn.png
11420 scaleBeforeRotation
11426 Edit\SpecialChar \menuseparator
11427 Table\SpecialChar \menuseparator
11430 , or right click on the marked cells and choose
11434 in the appearing context menu.
11437 \begin_layout Standard
11438 Multicolumns have there own cell settings.
11439 That means changing cell borders, cell alignment, and the width only affects
11441 Here is an example table with a multicolumn cell in the first row and one
11442 in the last row without the upper border:
11445 \begin_layout Standard
11447 \begin_inset Tabular
11448 <lyxtabular version="3" rows="3" columns="4">
11449 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11450 <column alignment="center" valignment="top" width="0pt">
11451 <column alignment="center" valignment="middle" width="0">
11452 <column alignment="center" valignment="top" width="0in">
11453 <column alignment="center" valignment="top" width="0pt">
11455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11458 \begin_layout Plain Layout
11464 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11467 \begin_layout Plain Layout
11473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11476 \begin_layout Plain Layout
11482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11485 \begin_layout Plain Layout
11493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11496 \begin_layout Plain Layout
11511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11514 \begin_layout Plain Layout
11520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11523 \begin_layout Plain Layout
11529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11532 \begin_layout Plain Layout
11540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11543 \begin_layout Plain Layout
11549 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11552 \begin_layout Plain Layout
11558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11561 \begin_layout Plain Layout
11567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11570 \begin_layout Plain Layout
11584 \begin_layout Subsubsection
11585 Multicolumn Calculations
11586 \begin_inset CommandInset label
11588 name "sub:Multicolumn-Calculations"
11593 \begin_inset Index idx
11596 \begin_layout Plain Layout
11597 Multicolumns ! Calculations
11605 \begin_layout Standard
11606 LyX supports multicolumns directly, but we have to take account of the cell
11607 width of the columns spanned by the multicolumn cell.
11610 \begin_layout Standard
11611 \begin_inset Float table
11617 \begin_layout Plain Layout
11618 \begin_inset Caption
11620 \begin_layout Plain Layout
11621 \begin_inset CommandInset label
11623 name "tab:Table-with-centered"
11627 Table with centered multicolumn text above two columns that have exactly
11628 half the width of the multicolumn cell
11629 \begin_inset Argument
11632 \begin_layout Plain Layout
11633 Perfect multicolumn table
11646 \begin_layout Plain Layout
11648 \begin_inset Tabular
11649 <lyxtabular version="3" rows="3" columns="3">
11650 <features tabularvalignment="middle">
11651 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11652 <column alignment="center" valignment="middle" width="0">
11653 <column alignment="center" valignment="top" width="0">
11655 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11658 \begin_layout Plain Layout
11659 multiple lines multicolumn
11664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11667 \begin_layout Plain Layout
11673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11676 \begin_layout Plain Layout
11684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11687 \begin_layout Plain Layout
11693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11696 \begin_layout Plain Layout
11702 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11705 \begin_layout Plain Layout
11713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11716 \begin_layout Plain Layout
11722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11731 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11734 \begin_layout Plain Layout
11753 \begin_layout Standard
11754 To create for example Table
11755 \begin_inset space ~
11759 \begin_inset CommandInset ref
11761 reference "tab:Table-with-centered"
11765 , mark the first two cells in the first row of a 3×3 table and right-click
11767 Now choose for this cell
11776 \begin_inset space \thinspace{}
11779 cm in the table dialog.
11780 The merged columns should have exactly half the width of the multicolumn
11781 cell, so that you would set a width of 1.25
11782 \begin_inset space \thinspace{}
11785 cm for the first column.
11786 The second column has then automatically a width of 1.25
11787 \begin_inset space \thinspace{}
11790 cm (multicolumn width - width of first column).
11791 This was done for Table
11792 \begin_inset space ~
11796 \begin_inset CommandInset ref
11798 reference "tab:Table-without-half"
11805 \begin_layout Standard
11806 \begin_inset Float table
11811 \begin_layout Plain Layout
11812 \begin_inset Caption
11814 \begin_layout Plain Layout
11815 \begin_inset CommandInset label
11817 name "tab:Table-without-half"
11821 Table where the spanned table columns are not exactly half the width of
11822 the multicolumn cell
11823 \begin_inset Argument
11826 \begin_layout Plain Layout
11827 Imperfect multicolumn table
11840 \begin_layout Plain Layout
11842 \begin_inset Tabular
11843 <lyxtabular version="3" rows="3" columns="3">
11844 <features tabularvalignment="middle">
11845 <column alignment="center" valignment="top" width="1.25cm">
11846 <column alignment="center" valignment="top" width="0">
11847 <column alignment="center" valignment="top" width="0">
11849 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11852 \begin_layout Plain Layout
11853 multiple lines multicolumn
11858 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11861 \begin_layout Plain Layout
11867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11870 \begin_layout Plain Layout
11878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11881 \begin_layout Plain Layout
11887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11890 \begin_layout Plain Layout
11896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11899 \begin_layout Plain Layout
11907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11910 \begin_layout Plain Layout
11916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11919 \begin_layout Plain Layout
11925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11928 \begin_layout Plain Layout
11947 \begin_layout Standard
11948 You can see that the first column is not half the width of the multicolumn
11949 cell, it is a bit bigger.
11950 The reason is that the specified width of a cell
11951 \begin_inset Formula $W_{g}$
11954 is not its total width
11955 \begin_inset Formula $W_{\mathrm{tot}}$
11958 because a cell is always a bit larger than specified.
11960 \begin_inset space ~
11964 \begin_inset CommandInset ref
11966 reference "cha:Explanation-of-Equation"
11970 explains this in detail.
11973 \begin_layout Standard
11975 \begin_inset Formula $W_{g\, n}$
11978 which the user needs to set when
11982 columns are spanned can be calculated, so that each column has a total
11984 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11988 \begin_inset Formula \begin{equation}
11989 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11996 \begin_layout Standard
11997 In our case we have
11998 \begin_inset Formula $n=2$
12002 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12005 cm and the default values for the lengths, so that equation
12006 \begin_inset CommandInset ref
12013 \begin_inset Formula \begin{equation}
12014 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12021 \begin_layout Standard
12022 To enable calculations in LaTeX, the LaTeX-package
12026 must be loaded with the document preamble line
12027 \begin_inset Index idx
12030 \begin_layout Plain Layout
12031 LaTeX-packages ! calc
12039 \begin_layout Standard
12047 \begin_layout Standard
12048 LyX does not allow you to calculate lengths in the
12052 field of the table dialog.
12053 Therefore you have to format the column by inserting a LaTeX-argument in
12055 Here is an overview about the arguments:
12058 \begin_layout Itemize
12063 creates cell with a fixed width, its text is vertically top-aligned
12066 \begin_layout Itemize
12071 creates cell with a fixed width, its text is vertically centered
12074 \begin_layout Itemize
12079 creates cell with a fixed width, its text is vertically bottom-aligned
12082 \begin_layout Standard
12083 By entering a LaTeX-argument, all cell settings set in the table dialog
12087 \begin_layout Standard
12088 \begin_inset Note Greyedout
12091 \begin_layout Plain Layout
12096 Due to a bug, LyX shows the overwritten settings anyway.
12104 \begin_layout Standard
12105 As the text should be horizontally centered, the command
12112 You can now enter the following LaTeX-argument for the first spanned column:
12115 \begin_layout Standard
12120 centering}m{1.25cm-6.2pt}
12123 \begin_layout Standard
12128 means, that the commands inside the braces are applied before the cell
12132 \begin_layout Standard
12133 Although we have chosen centered alignment for the text of the multicolumn
12134 cell, it is still left aligned.
12135 This is because LyX only applies the alignment to single columns.
12136 So for the multicolumn cell we have to use the LaTeX-argument
12139 \begin_layout Standard
12147 \begin_layout Subsection
12149 \begin_inset Index idx
12152 \begin_layout Plain Layout
12159 \begin_inset Index idx
12162 \begin_layout Plain Layout
12171 \begin_layout Standard
12172 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12173 TeX-Code needs to be used.
12174 To use multirows load the LaTeX-package
12179 \begin_inset Index idx
12182 \begin_layout Plain Layout
12183 LaTeX-packages ! multirow
12188 in your document preamble with the command
12191 \begin_layout Standard
12196 usepackage{multirow}
12199 \begin_layout Standard
12200 Multirows are created with the command
12203 \begin_layout Standard
12208 multirow{number of rows}{cell width}{cell entry}
12211 \begin_layout Standard
12212 To create the following table:
12215 \begin_layout Standard
12220 \begin_layout Plain Layout
12234 \begin_inset Tabular
12235 <lyxtabular version="3" rows="3" columns="3">
12236 <features tabularvalignment="middle">
12237 <column alignment="center" valignment="top" width="0">
12238 <column alignment="center" valignment="top" width="0">
12239 <column alignment="center" valignment="top" width="0">
12241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12244 \begin_layout Plain Layout
12250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12253 \begin_layout Plain Layout
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12262 \begin_layout Plain Layout
12270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12273 \begin_layout Plain Layout
12277 \begin_layout Plain Layout
12281 multirow{2}{2.5cm}{
12290 \begin_layout Plain Layout
12302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12305 \begin_layout Plain Layout
12311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12314 \begin_layout Plain Layout
12322 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12325 \begin_layout Plain Layout
12331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12334 \begin_layout Plain Layout
12340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12343 \begin_layout Plain Layout
12358 \begin_layout Plain Layout
12374 \begin_layout Standard
12375 create a 3×3 table.
12376 Unset the upper border of the last cell in the first column.
12377 The multirow is now created in the second row of the first column by inserting
12381 \begin_layout Standard
12386 multirow{2}{2.5cm}{
12389 \begin_layout Standard
12391 According to the command parameters the multirow spans now two rows and
12393 \begin_inset space \thinspace{}
12397 The content of the multirow cell follows outside the TeX-Code box and the
12398 command is finished with a right brace
12402 in another TeX-Code-box after the text.
12405 \begin_layout Standard
12412 left-aligns its content by default.
12413 To override the default, renew the command
12422 \begin_layout Standard
12434 \begin_layout Standard
12435 in TeX-Code in the document preamble.
12436 Then all entries of multirow cells in the document are centered.
12437 If centering is only needed for several tables, you can renew the command
12438 in a TeX-Code box just before the table instead of the preamble.
12439 If the text should be right-aligned, replace
12452 To return to left-alignment
12461 \begin_layout Section
12463 \begin_inset CommandInset label
12465 name "sec:Formal-Tables"
12470 \begin_inset Index idx
12473 \begin_layout Plain Layout
12482 \begin_layout Standard
12483 Tables are often typeset in books similar to Table
12484 \begin_inset space ~
12488 \begin_inset CommandInset ref
12490 reference "tab:Example-booktabs-table"
12495 This kind of tables is called
12496 \begin_inset Quotes eld
12504 \begin_inset Quotes erd
12508 To make a table a formal table use the option
12516 tab of the table dialog.
12519 \begin_layout Standard
12520 \begin_inset Float table
12526 \begin_layout Plain Layout
12527 \begin_inset Caption
12529 \begin_layout Plain Layout
12530 \begin_inset CommandInset label
12532 name "tab:Example-booktabs-table"
12536 Example booktabs-table
12544 \begin_layout Plain Layout
12546 \begin_inset Tabular
12547 <lyxtabular version="3" rows="8" columns="4">
12548 <features booktabs="true" tabularvalignment="middle">
12549 <column alignment="center" valignment="top" width="0">
12550 <column alignment="center" valignment="top" width="0">
12551 <column alignment="center" valignment="top" width="0">
12552 <column alignment="center" valignment="top" width="0">
12554 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12557 \begin_layout Plain Layout
12563 <cell alignment="center" valignment="top" topline="true" usebox="none">
12566 \begin_layout Plain Layout
12568 \begin_inset space \thinspace{}
12576 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12579 \begin_layout Plain Layout
12581 \begin_inset space \thinspace{}
12589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12592 \begin_layout Plain Layout
12600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12603 \begin_layout Plain Layout
12607 \begin_layout Plain Layout
12620 \begin_layout Plain Layout
12629 Detector thickness in µm
12634 <cell alignment="center" valignment="top" usebox="none">
12637 \begin_layout Plain Layout
12643 <cell alignment="center" valignment="top" usebox="none">
12646 \begin_layout Plain Layout
12652 <cell alignment="center" valignment="top" usebox="none">
12655 \begin_layout Plain Layout
12663 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12666 \begin_layout Plain Layout
12672 <cell alignment="center" valignment="top" topline="true" usebox="none">
12675 \begin_layout Plain Layout
12681 <cell alignment="center" valignment="top" topline="true" usebox="none">
12684 \begin_layout Plain Layout
12690 <cell alignment="center" valignment="top" topline="true" usebox="none">
12693 \begin_layout Plain Layout
12700 <row topspace="default">
12701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12704 \begin_layout Plain Layout
12705 Spatial resolution in µm
12710 <cell alignment="center" valignment="top" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" usebox="none">
12722 \begin_layout Plain Layout
12728 <cell alignment="center" valignment="top" usebox="none">
12731 \begin_layout Plain Layout
12738 <row topspace="default">
12739 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12742 \begin_layout Plain Layout
12744 \begin_inset Formula $f_{\mathrm{max}}$
12752 <cell alignment="center" valignment="top" usebox="none">
12755 \begin_layout Plain Layout
12761 <cell alignment="center" valignment="top" usebox="none">
12764 \begin_layout Plain Layout
12770 <cell alignment="center" valignment="top" usebox="none">
12773 \begin_layout Plain Layout
12780 <row topspace="default">
12781 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12784 \begin_layout Plain Layout
12788 \begin_layout Plain Layout
12792 cmidrule(l{10pt}){1-1}
12797 LSF-spatial resolution
12802 <cell alignment="center" valignment="top" usebox="none">
12805 \begin_layout Plain Layout
12811 <cell alignment="center" valignment="top" usebox="none">
12814 \begin_layout Plain Layout
12820 <cell alignment="center" valignment="top" usebox="none">
12823 \begin_layout Plain Layout
12831 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12834 \begin_layout Plain Layout
12840 <cell alignment="center" valignment="top" usebox="none">
12843 \begin_layout Plain Layout
12849 <cell alignment="center" valignment="top" usebox="none">
12852 \begin_layout Plain Layout
12858 <cell alignment="center" valignment="top" usebox="none">
12861 \begin_layout Plain Layout
12869 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12872 \begin_layout Plain Layout
12878 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12881 \begin_layout Plain Layout
12887 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12890 \begin_layout Plain Layout
12896 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12899 \begin_layout Plain Layout
12918 \begin_layout Standard
12919 Spaces to table rows can be added using the
12923 tab of the table dialog as described in section
12924 \begin_inset space ~
12928 \begin_inset CommandInset ref
12930 reference "sub:Row-Spacing"
12937 \begin_layout Standard
12938 Unlike normal tables, formal tables have no vertical table lines.
12939 The horizontal table lines can be set as for normal tables but they appear
12940 with different widths in the output:
12941 \begin_inset Newline newline
12944 The first and the last table line have a default width of 0.08
12945 \begin_inset space \thinspace{}
12948 em while the other lines have a default width of 0.05
12949 \begin_inset space \thinspace{}
12955 \begin_layout Standard
12956 The default widths can be changed with the following preamble lines
12959 \begin_layout Standard
12969 \begin_inset Newline newline
12981 \begin_layout Standard
12982 This example is for the first line, the so called
12987 If you want to change the width for the last line, replace
12996 To change the width for the other lines replace
13005 You can use all units listed in appendix
13006 \begin_inset space ~
13010 \begin_inset CommandInset ref
13012 reference "cha:Units-available-in"
13019 \begin_layout Standard
13020 Lines that do not span all table columns can be created by setting a table
13021 line for multicolumn cells.
13022 LyX will then internally use the command
13028 to create this line.
13032 \begin_layout Standard
13037 cmidrule[width](trim){startcol-endcol}
13040 \begin_layout Standard
13047 are currently not supported by LyX so you have to use TeX-Code to be able
13055 s can manually be created by inserting the command as TeX-Code as the first
13056 cell entry of the first cell of a row.
13057 The line is then drawn in the output above the current row.
13060 \begin_layout Standard
13061 The default for the width is 0.03
13062 \begin_inset space \thinspace{}
13066 Startcol is the number of the column where the line starts and endcol the
13067 column number where the line ends.
13068 The endcol always needs to be specified, also when the line should span
13070 The optional parameter trim could be either
13078 where the trimwidth is also optional.
13079 Using for example the parameter
13083 means that the line is trimmed from its left end by 2
13084 \begin_inset space \thinspace{}
13088 If you don't specify the trimwidth the lines are trimmed by the default
13090 \begin_inset space \thinspace{}
13096 \begin_layout Standard
13097 \begin_inset VSpace bigskip
13101 \begin_inset space ~
13105 \begin_inset CommandInset ref
13107 reference "tab:Example-booktabs-table"
13111 was created using the commands
13114 \begin_layout Standard
13124 \begin_layout Standard
13125 at the beginning of the second row and
13128 \begin_layout Standard
13133 cmidrule(l{10pt}){1-1}
13136 \begin_layout Standard
13140 \begin_layout Standard
13141 \begin_inset VSpace bigskip
13147 \begin_layout Standard
13148 You might want to have overlapping
13155 \begin_inset space ~
13159 \begin_inset CommandInset ref
13161 reference "tab:Special-booktabs-table"
13166 This can be achieved with the TeX-Code command
13169 \begin_layout Standard
13177 \begin_layout Standard
13178 The command that was used for the second row of Table
13179 \begin_inset space ~
13183 \begin_inset CommandInset ref
13185 reference "tab:Special-booktabs-table"
13192 \begin_layout Standard
13206 \begin_layout Standard
13207 The command for the sixth row is
13210 \begin_layout Standard
13222 \begin_layout Standard
13223 \begin_inset VSpace bigskip
13229 \begin_layout Standard
13230 If you are anyway not satisfied with the border line spacing, you can use
13231 the following command to produce lines that span over all table columns
13236 \begin_layout Standard
13241 specialrule{width}{space above}{space below}
13244 \begin_layout Standard
13245 For more information about these features, refer to the manual of the LaTeX-pack
13251 \begin_inset CommandInset citation
13258 \begin_inset Index idx
13261 \begin_layout Plain Layout
13262 LaTeX-packages ! booktabs
13270 \begin_layout Standard
13271 \begin_inset Float table
13277 \begin_layout Plain Layout
13278 \begin_inset Caption
13280 \begin_layout Plain Layout
13281 \begin_inset CommandInset label
13283 name "tab:Special-booktabs-table"
13287 Special booktabs-table
13295 \begin_layout Plain Layout
13297 \begin_inset Tabular
13298 <lyxtabular version="3" rows="8" columns="4">
13299 <features booktabs="true" tabularvalignment="middle">
13300 <column alignment="center" valignment="top" width="0">
13301 <column alignment="center" valignment="top" width="0">
13302 <column alignment="center" valignment="top" width="0">
13303 <column alignment="center" valignment="top" width="0">
13305 <cell alignment="center" valignment="top" topline="true" usebox="none">
13308 \begin_layout Plain Layout
13314 <cell alignment="center" valignment="top" topline="true" usebox="none">
13317 \begin_layout Plain Layout
13319 \begin_inset space \thinspace{}
13327 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13330 \begin_layout Plain Layout
13332 \begin_inset space \thinspace{}
13340 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13343 \begin_layout Plain Layout
13351 <cell alignment="center" valignment="top" usebox="none">
13354 \begin_layout Plain Layout
13358 \begin_layout Plain Layout
13371 \begin_layout Plain Layout
13384 \begin_layout Plain Layout
13397 \begin_layout Plain Layout
13406 Detector thickness in µm
13411 <cell alignment="center" valignment="top" usebox="none">
13414 \begin_layout Plain Layout
13420 <cell alignment="center" valignment="top" usebox="none">
13423 \begin_layout Plain Layout
13429 <cell alignment="center" valignment="top" usebox="none">
13432 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" topline="true" usebox="none">
13443 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" usebox="none">
13452 \begin_layout Plain Layout
13458 <cell alignment="center" valignment="top" topline="true" usebox="none">
13461 \begin_layout Plain Layout
13467 <cell alignment="center" valignment="top" topline="true" usebox="none">
13470 \begin_layout Plain Layout
13477 <row topspace="default">
13478 <cell alignment="center" valignment="top" usebox="none">
13481 \begin_layout Plain Layout
13482 Spatial resolution in µm
13487 <cell alignment="center" valignment="top" usebox="none">
13490 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" usebox="none">
13499 \begin_layout Plain Layout
13505 <cell alignment="center" valignment="top" usebox="none">
13508 \begin_layout Plain Layout
13515 <row topspace="default">
13516 <cell alignment="center" valignment="top" usebox="none">
13519 \begin_layout Plain Layout
13521 \begin_inset Formula $f_{\mathrm{max}}$
13529 <cell alignment="center" valignment="top" usebox="none">
13532 \begin_layout Plain Layout
13538 <cell alignment="center" valignment="top" usebox="none">
13541 \begin_layout Plain Layout
13547 <cell alignment="center" valignment="top" usebox="none">
13550 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" topline="true" usebox="none">
13561 \begin_layout Plain Layout
13565 \begin_layout Plain Layout
13578 \begin_layout Plain Layout
13587 LSF-spatial resolution
13592 <cell alignment="center" valignment="top" topline="true" usebox="none">
13595 \begin_layout Plain Layout
13601 <cell alignment="center" valignment="top" topline="true" usebox="none">
13604 \begin_layout Plain Layout
13610 <cell alignment="center" valignment="top" topline="true" usebox="none">
13613 \begin_layout Plain Layout
13621 <cell alignment="center" valignment="top" usebox="none">
13624 \begin_layout Plain Layout
13630 <cell alignment="center" valignment="top" usebox="none">
13633 \begin_layout Plain Layout
13639 <cell alignment="center" valignment="top" usebox="none">
13642 \begin_layout Plain Layout
13648 <cell alignment="center" valignment="top" usebox="none">
13651 \begin_layout Plain Layout
13659 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13662 \begin_layout Plain Layout
13668 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13671 \begin_layout Plain Layout
13677 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13680 \begin_layout Plain Layout
13686 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13689 \begin_layout Plain Layout
13708 \begin_layout Section
13709 Vertical Table Alignment
13710 \begin_inset Index idx
13713 \begin_layout Plain Layout
13722 \begin_layout Standard
13723 To align tables vertically in a text line the table must be inside a box.
13724 The box can then be vertically aligned as described in section
13725 \begin_inset space ~
13729 \begin_inset CommandInset ref
13731 reference "sec:Box-Dialog"
13738 \begin_layout Standard
13739 In the following example the tables are inside a minipage
13743 \begin_layout Plain Layout
13744 Minipages are described in section
13745 \begin_inset space ~
13749 \begin_inset CommandInset ref
13751 reference "sec:Minipages"
13760 box that has a width of 15
13761 \begin_inset space \thinspace{}
13767 \begin_layout Itemize
13769 \begin_inset Box Frameless
13779 height_special "totalheight"
13782 \begin_layout Plain Layout
13783 \begin_inset Tabular
13784 <lyxtabular version="3" rows="3" columns="3">
13785 <features tabularvalignment="middle">
13786 <column alignment="center" valignment="top" width="0">
13787 <column alignment="center" valignment="top" width="0">
13788 <column alignment="center" valignment="top" width="0">
13790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13793 \begin_layout Plain Layout
13799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13802 \begin_layout Plain Layout
13808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13811 \begin_layout Plain Layout
13819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13822 \begin_layout Plain Layout
13828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13831 \begin_layout Plain Layout
13837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13840 \begin_layout Plain Layout
13848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13851 \begin_layout Plain Layout
13857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13860 \begin_layout Plain Layout
13866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13869 \begin_layout Plain Layout
13889 \begin_layout Plain Layout
13901 \begin_inset Box Frameless
13911 height_special "totalheight"
13914 \begin_layout Plain Layout
13915 \begin_inset Tabular
13916 <lyxtabular version="3" rows="3" columns="3">
13917 <features tabularvalignment="middle">
13918 <column alignment="center" valignment="top" width="0">
13919 <column alignment="center" valignment="top" width="0">
13920 <column alignment="center" valignment="top" width="0">
13922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13925 \begin_layout Plain Layout
13931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13934 \begin_layout Plain Layout
13940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13943 \begin_layout Plain Layout
13951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13954 \begin_layout Plain Layout
13960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13963 \begin_layout Plain Layout
13969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13972 \begin_layout Plain Layout
13980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13983 \begin_layout Plain Layout
13989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13992 \begin_layout Plain Layout
13998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14001 \begin_layout Plain Layout
14021 \begin_layout Plain Layout
14031 \begin_layout Itemize
14033 \begin_inset Box Frameless
14043 height_special "totalheight"
14046 \begin_layout Plain Layout
14047 \begin_inset Tabular
14048 <lyxtabular version="3" rows="3" columns="3">
14049 <features tabularvalignment="middle">
14050 <column alignment="center" valignment="top" width="0">
14051 <column alignment="center" valignment="top" width="0">
14052 <column alignment="center" valignment="top" width="0">
14054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14057 \begin_layout Plain Layout
14063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14066 \begin_layout Plain Layout
14072 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14075 \begin_layout Plain Layout
14083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14086 \begin_layout Plain Layout
14092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14095 \begin_layout Plain Layout
14101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14104 \begin_layout Plain Layout
14112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14115 \begin_layout Plain Layout
14121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14124 \begin_layout Plain Layout
14130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14133 \begin_layout Plain Layout
14152 \begin_layout Itemize
14154 \begin_inset Box Frameless
14164 height_special "totalheight"
14167 \begin_layout Plain Layout
14168 \begin_inset Tabular
14169 <lyxtabular version="3" rows="3" columns="3">
14170 <features tabularvalignment="middle">
14171 <column alignment="center" valignment="top" width="0">
14172 <column alignment="center" valignment="top" width="0">
14173 <column alignment="center" valignment="top" width="0">
14175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14178 \begin_layout Plain Layout
14184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14187 \begin_layout Plain Layout
14193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14196 \begin_layout Plain Layout
14204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14207 \begin_layout Plain Layout
14213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14216 \begin_layout Plain Layout
14222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14225 \begin_layout Plain Layout
14233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14236 \begin_layout Plain Layout
14242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14245 \begin_layout Plain Layout
14251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14254 \begin_layout Plain Layout
14274 \begin_layout Plain Layout
14286 \begin_inset Box Frameless
14296 height_special "totalheight"
14299 \begin_layout Plain Layout
14300 \begin_inset Tabular
14301 <lyxtabular version="3" rows="3" columns="3">
14302 <features tabularvalignment="middle">
14303 <column alignment="center" valignment="top" width="0">
14304 <column alignment="center" valignment="top" width="0">
14305 <column alignment="center" valignment="top" width="0">
14307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14310 \begin_layout Plain Layout
14316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14319 \begin_layout Plain Layout
14325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14328 \begin_layout Plain Layout
14336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14339 \begin_layout Plain Layout
14345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14348 \begin_layout Plain Layout
14354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14357 \begin_layout Plain Layout
14365 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14368 \begin_layout Plain Layout
14374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14377 \begin_layout Plain Layout
14383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14386 \begin_layout Plain Layout
14406 \begin_layout Plain Layout
14416 \begin_layout Standard
14417 As you will see, the content of the first and last table row is not correctly
14419 To get this alignment, the minipage box must be set into a raisebox
14423 \begin_layout Plain Layout
14424 Raiseboxes are described in section
14425 \begin_inset space ~
14429 \begin_inset CommandInset ref
14431 reference "sub:Vertical-Alignment"
14441 In the example above the second table in the first item is aligned using
14442 the TeX-Code-command
14445 \begin_layout Standard
14455 \begin_layout Standard
14457 After the box the closing brace
14461 is inserted as TeX-Code.
14462 For the second table in the last item the command
14465 \begin_layout Standard
14475 \begin_layout Standard
14479 \begin_layout Standard
14480 \begin_inset Note Greyedout
14483 \begin_layout Plain Layout
14488 The alignment of the table row content to the surrounding text line is
14490 The required value for the
14496 command for this alignment depends on the document font, the font size,
14497 and the table line thickness.
14505 \begin_layout Section
14507 \begin_inset CommandInset label
14509 name "sec:Colored-Tables"
14514 \begin_inset Index idx
14517 \begin_layout Plain Layout
14526 \begin_layout Subsection
14528 \begin_inset Index idx
14531 \begin_layout Plain Layout
14532 Table Color ! for Cells
14538 \begin_inset Index idx
14541 \begin_layout Plain Layout
14542 Color ! for Table Cells
14550 \begin_layout Standard
14551 \begin_inset Float table
14557 \begin_layout Plain Layout
14558 \begin_inset Caption
14560 \begin_layout Plain Layout
14561 \begin_inset CommandInset label
14563 name "tab:Table-colored-without"
14567 Table colored without using the package
14572 \begin_inset Argument
14575 \begin_layout Plain Layout
14576 Table without colortbl
14589 \begin_layout Plain Layout
14591 \begin_inset Tabular
14592 <lyxtabular version="3" rows="3" columns="3">
14593 <features tabularvalignment="middle">
14594 <column alignment="center" valignment="top" width="0">
14595 <column alignment="center" valignment="top" width="0">
14596 <column alignment="center" valignment="top" width="0">
14598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14601 \begin_layout Plain Layout
14609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14612 \begin_layout Plain Layout
14620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14623 \begin_layout Plain Layout
14633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14636 \begin_layout Plain Layout
14644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14647 \begin_layout Plain Layout
14655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14658 \begin_layout Plain Layout
14668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14671 \begin_layout Plain Layout
14679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14682 \begin_layout Plain Layout
14690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14693 \begin_layout Plain Layout
14714 \begin_layout Standard
14715 If you only need colored text, mark the cells and choose a color in the
14718 Edit\SpecialChar \menuseparator
14720 \begin_inset space ~
14726 This was used to create Table
14727 \begin_inset space ~
14731 \begin_inset CommandInset ref
14733 reference "tab:Table-colored-without"
14738 In any other case you have to use the LaTeX-package
14743 \begin_inset Index idx
14746 \begin_layout Plain Layout
14747 LaTeX-packages ! colortbl
14755 \begin_layout Standard
14759 \begin_layout Plain Layout
14769 \begin_inset Note Note
14772 \begin_layout Plain Layout
14773 The following section part will only be displayed when the LaTeX-package
14786 \begin_layout Standard
14787 To create colored tables,
14791 must be loaded in the preamble with the line
14794 \begin_layout Standard
14799 usepackage{colortbl}
14802 \begin_layout Standard
14803 The color of a column is adjusted with the command
14806 \begin_layout Standard
14811 columncolor{name of color}
14814 \begin_layout Standard
14820 More about the command
14824 is contained in section
14825 \begin_inset space ~
14829 \begin_inset CommandInset ref
14831 reference "sub:Multicolumn-Calculations"
14838 \begin_layout Standard
14839 The following color names are predefined:
14842 \begin_layout Standard
14876 \begin_layout Standard
14877 \begin_inset VSpace medskip
14883 \begin_layout Standard
14884 You can also define your own color with the command
14887 \begin_layout Standard
14892 definecolor{color name}{color model}{color values}
14895 \begin_layout Standard
14896 The color model can be
14899 \begin_layout Labeling
14900 \labelwidthstring 00.00.0000
14901 cmyk: cyan, magenta, yellow, black
14904 \begin_layout Labeling
14905 \labelwidthstring 00.00.0000
14906 rgb: red, green blue
14909 \begin_layout Labeling
14910 \labelwidthstring 00.00.0000
14914 \begin_layout Standard
14915 and the color values are comma separated numbers between 0 and 1 describing
14916 the factor for the corresponding color of the color model.
14919 \begin_layout Standard
14921 \begin_inset space \thinspace{}
14925 \begin_inset space \space{}
14932 " in the preamble with
14935 \begin_layout Standard
14940 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14943 \begin_layout Standard
14951 \begin_layout Standard
14956 definecolor{lightgray}{gray}{0.8}
14959 \begin_layout Standard
14960 \begin_inset VSpace medskip
14966 \begin_layout Standard
14967 Lines are colored with the command
14970 \begin_layout Standard
14975 rowcolor{name of color}
14978 \begin_layout Standard
14979 and cells are colored with the command
14982 \begin_layout Standard
14987 cellcolor{name of color}
14990 \begin_layout Standard
14991 Both commands are inserted at the beginning of a cell as TeX-Code.
14994 \begin_layout Standard
14995 To color characters in the table, mark the cells and use the LyX menu
14997 Edit\SpecialChar \menuseparator
14999 \begin_inset space ~
15005 If a cell contains TeX-Code mark only the characters, otherwise the colored
15006 TeX-Code will cause LaTeX-errors.
15009 \begin_layout Standard
15010 \begin_inset Note Greyedout
15013 \begin_layout Plain Layout
15018 Not all DVI-viewers are able to display self-defined colors.
15026 \begin_layout Standard
15027 \begin_inset VSpace bigskip
15033 \begin_layout Standard
15035 \begin_inset space ~
15039 \begin_inset CommandInset ref
15041 reference "tab:Table-colored-using"
15045 do the following: The color of the first column should be
15053 \begin_layout Standard
15058 columncolor{darkgreen}
15063 \begin_layout Standard
15064 as LaTeX-argument for this column.
15065 The first row should be blue, therefore the TeX-Code command
15068 \begin_layout Standard
15076 \begin_layout Standard
15077 is inserted to the first cell of this row.
15078 Note that this overwrites the column color for the first cell.
15079 The last cell of the last row is colored magenta by inserting the TeX-Code
15083 \begin_layout Standard
15091 \begin_layout Standard
15092 The characters could now be colored using the menu
15094 Edit\SpecialChar \menuseparator
15096 \begin_inset space ~
15104 \begin_layout Standard
15105 \begin_inset Float table
15111 \begin_layout Plain Layout
15112 \begin_inset Caption
15114 \begin_layout Plain Layout
15115 \begin_inset CommandInset label
15117 name "tab:Table-colored-using"
15121 Table colored using the package
15126 \begin_inset Argument
15129 \begin_layout Plain Layout
15130 Table with colortbl
15143 \begin_layout Plain Layout
15145 \begin_inset Tabular
15146 <lyxtabular version="3" rows="3" columns="3">
15147 <features tabularvalignment="middle">
15148 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15149 <column alignment="center" valignment="top" width="0">
15150 <column alignment="center" valignment="top" width="0">
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15159 \begin_layout Plain Layout
15175 <cell alignment="center" valignment="top" usebox="none">
15178 \begin_layout Plain Layout
15186 <cell alignment="center" valignment="top" usebox="none">
15189 \begin_layout Plain Layout
15199 <cell alignment="center" valignment="top" usebox="none">
15202 \begin_layout Plain Layout
15210 <cell alignment="center" valignment="top" usebox="none">
15213 \begin_layout Plain Layout
15221 <cell alignment="center" valignment="top" usebox="none">
15224 \begin_layout Plain Layout
15234 <cell alignment="center" valignment="top" usebox="none">
15237 \begin_layout Plain Layout
15245 <cell alignment="center" valignment="top" usebox="none">
15248 \begin_layout Plain Layout
15256 <cell alignment="center" valignment="top" usebox="none">
15259 \begin_layout Plain Layout
15263 \begin_layout Plain Layout
15292 \begin_layout Standard
15296 \begin_layout Plain Layout
15306 \begin_inset Note Note
15309 \begin_layout Plain Layout
15310 The following will be displayed when the LaTeX-package
15322 \begin_layout Standard
15323 You need to install the package
15327 to see the content of this section in the output.
15330 \begin_layout Standard
15334 \begin_layout Plain Layout
15346 \begin_layout Subsection
15348 \begin_inset Index idx
15351 \begin_layout Plain Layout
15352 Table Color ! for Lines
15358 \begin_inset Index idx
15361 \begin_layout Plain Layout
15362 Color ! for Table Lines
15370 \begin_layout Standard
15371 As described in section
15372 \begin_inset space ~
15376 \begin_inset CommandInset ref
15378 reference "sub:Line-Thickness"
15382 , the line thickness for all lines in a table can be adjusted with the length
15391 \begin_inset space \thinspace{}
15394 pt for all tables of this section.
15398 \begin_layout Plain Layout
15404 arrayrulewidth}{1.5pt}
15412 \begin_layout Standard
15413 To color vertical lines for example with green, create the following column
15414 format in the document preamble, according to the description in section
15415 \begin_inset space ~
15419 \begin_inset CommandInset ref
15421 reference "sub:Customized-Format"
15428 \begin_layout Standard
15433 newcolumntype{W}{!{
15440 \begin_layout Standard
15442 \begin_inset space ~
15446 \begin_inset CommandInset ref
15448 reference "tab:Table-with-vertical-colored"
15456 was used for the last column and
15460 for the other columns.
15463 \begin_layout Standard
15464 If you want to have several colors, define more column formats.
15467 \begin_layout Standard
15468 \begin_inset Float table
15474 \begin_layout Plain Layout
15475 \begin_inset Caption
15477 \begin_layout Plain Layout
15478 \begin_inset CommandInset label
15480 name "tab:Table-with-vertical-colored"
15484 Table with colored vertical lines
15492 \begin_layout Plain Layout
15494 \begin_inset Tabular
15495 <lyxtabular version="3" rows="3" columns="3">
15496 <features tabularvalignment="middle">
15497 <column alignment="center" valignment="top" width="0" special="Wc">
15498 <column alignment="center" valignment="top" width="0" special="Wc">
15499 <column alignment="center" valignment="top" width="0" special="WcW">
15501 <cell alignment="center" valignment="top" topline="true" usebox="none">
15504 \begin_layout Plain Layout
15510 <cell alignment="center" valignment="top" topline="true" usebox="none">
15513 \begin_layout Plain Layout
15519 <cell alignment="center" valignment="top" topline="true" usebox="none">
15522 \begin_layout Plain Layout
15530 <cell alignment="center" valignment="top" topline="true" usebox="none">
15533 \begin_layout Plain Layout
15539 <cell alignment="center" valignment="top" topline="true" usebox="none">
15542 \begin_layout Plain Layout
15548 <cell alignment="center" valignment="top" topline="true" usebox="none">
15551 \begin_layout Plain Layout
15559 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15562 \begin_layout Plain Layout
15568 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15571 \begin_layout Plain Layout
15577 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15580 \begin_layout Plain Layout
15599 \begin_layout Standard
15600 \begin_inset VSpace bigskip
15603 To color horizontal lines for example with red, as in Table
15604 \begin_inset space ~
15608 \begin_inset CommandInset ref
15610 reference "tab:Table-with-horizontal-colored"
15614 , insert these commands in TeX-Code before the table or table float:
15617 \begin_layout Standard
15627 \begin_inset Newline newline
15635 \begin_inset Newline newline
15639 \begin_inset Phantom HPhantom
15642 \begin_layout Plain Layout
15645 \begin_inset space ~
15655 arrayrulecolor{red}
15659 arrayrulecolor{black}}
15662 \begin_layout Standard
15666 \begin_layout Plain Layout
15677 \begin_layout Plain Layout
15686 \begin_layout Plain Layout
15690 arrayrulecolor{red}
15694 arrayrulecolor{black}}
15700 \begin_inset Float table
15706 \begin_layout Plain Layout
15707 \begin_inset Caption
15709 \begin_layout Plain Layout
15710 \begin_inset CommandInset label
15712 name "tab:Table-with-horizontal-colored"
15716 Table with colored horizontal lines
15724 \begin_layout Plain Layout
15726 \begin_inset Tabular
15727 <lyxtabular version="3" rows="3" columns="3">
15728 <features tabularvalignment="middle">
15729 <column alignment="center" valignment="top" width="0">
15730 <column alignment="center" valignment="top" width="0">
15731 <column alignment="center" valignment="top" width="0">
15733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15736 \begin_layout Plain Layout
15742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15745 \begin_layout Plain Layout
15751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15754 \begin_layout Plain Layout
15762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15765 \begin_layout Plain Layout
15771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15774 \begin_layout Plain Layout
15780 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15783 \begin_layout Plain Layout
15791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15794 \begin_layout Plain Layout
15800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15803 \begin_layout Plain Layout
15809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15812 \begin_layout Plain Layout
15831 \begin_layout Standard
15832 To return to the default line color black, insert this command in TeX-Code
15833 after the table or table float:
15836 \begin_layout Standard
15848 \begin_layout Standard
15850 \begin_inset space ~
15854 \begin_inset CommandInset ref
15856 reference "tab:Table-with-colored"
15860 is an example with colored vertical and horizontal lines.
15863 \begin_layout Standard
15864 \begin_inset Float table
15870 \begin_layout Plain Layout
15871 \begin_inset Caption
15873 \begin_layout Plain Layout
15874 \begin_inset CommandInset label
15876 name "tab:Table-with-colored"
15880 Table with colored lines
15888 \begin_layout Plain Layout
15890 \begin_inset Tabular
15891 <lyxtabular version="3" rows="3" columns="3">
15892 <features tabularvalignment="middle">
15893 <column alignment="center" valignment="top" width="0" special="Wc">
15894 <column alignment="center" valignment="top" width="0" special="Wc">
15895 <column alignment="center" valignment="top" width="0" special="WcW">
15897 <cell alignment="center" valignment="top" topline="true" usebox="none">
15900 \begin_layout Plain Layout
15906 <cell alignment="center" valignment="top" topline="true" usebox="none">
15909 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" topline="true" usebox="none">
15918 \begin_layout Plain Layout
15926 <cell alignment="center" valignment="top" topline="true" usebox="none">
15929 \begin_layout Plain Layout
15935 <cell alignment="center" valignment="top" topline="true" usebox="none">
15938 \begin_layout Plain Layout
15944 <cell alignment="center" valignment="top" topline="true" usebox="none">
15947 \begin_layout Plain Layout
15954 <row topspace="default">
15955 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15958 \begin_layout Plain Layout
15964 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15967 \begin_layout Plain Layout
15973 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15976 \begin_layout Plain Layout
15995 \begin_layout Standard
15999 \begin_layout Plain Layout
16015 \begin_layout Standard
16019 \begin_layout Plain Layout
16025 arrayrulewidth}{0.4pt}
16033 \begin_layout Section
16034 Table Customization
16035 \begin_inset Index idx
16038 \begin_layout Plain Layout
16039 Table Customization
16045 \begin_inset Index idx
16048 \begin_layout Plain Layout
16049 Table ! Customization
16057 \begin_layout Subsection
16059 \begin_inset CommandInset label
16061 name "sub:Row-Spacing"
16066 \begin_inset Index idx
16069 \begin_layout Plain Layout
16070 Table Customization ! Row Spacing
16078 \begin_layout Standard
16079 You can add vertical space to table rows in the
16083 tab of the table dialog.
16084 You find there three possibilities:
16087 \begin_layout Description
16089 \begin_inset space ~
16093 \begin_inset space ~
16096 row will add space above the characters of the table row.
16097 If the table is a formal table
16101 \begin_layout Plain Layout
16102 Formal tables are explained in section
16103 \begin_inset space ~
16107 \begin_inset CommandInset ref
16109 reference "sec:Formal-Tables"
16118 LyX will insert as default 0.5
16119 \begin_inset space \thinspace{}
16123 For normal tables the inserted space will unfortunately destroy the vertical
16124 table lines as in the following table:
16125 \begin_inset VSpace medskip
16129 \begin_inset Newline newline
16133 \begin_inset space \hspace*{}
16138 \begin_inset space \hfill{}
16142 \begin_inset Tabular
16143 <lyxtabular version="3" rows="3" columns="1">
16144 <features tabularvalignment="middle">
16145 <column alignment="center" valignment="top" width="0">
16147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16150 \begin_layout Plain Layout
16157 <row topspace="3mm">
16158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16161 \begin_layout Plain Layout
16163 \begin_inset space \thinspace{}
16166 mm space top of row
16173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16176 \begin_layout Plain Layout
16188 \begin_inset space \hfill{}
16192 \begin_inset space \hspace*{}
16197 \begin_inset VSpace medskip
16201 \begin_inset Newline newline
16204 So inserting space in the top of row for normal tables is only useful when
16205 you don't have vertical lines.
16208 \begin_layout Description
16210 \begin_inset space ~
16214 \begin_inset space ~
16217 row will add space below the characters of the table row.
16218 If the table is a formal table LyX will insert as default 0.5
16219 \begin_inset space \thinspace{}
16222 em space, for normal tables the default size is 2
16223 \begin_inset space \thinspace{}
16229 \begin_layout Description
16231 \begin_inset space ~
16234 rows adds space between the current and the following row.
16235 If the table is a formal table LyX will insert as default 0.5
16236 \begin_inset space \thinspace{}
16240 For normal tables the inserted space will unfortunately destroy the vertical
16241 table lines as in the following table:
16242 \begin_inset VSpace medskip
16246 \begin_inset Newline newline
16250 \begin_inset space \hspace*{}
16255 \begin_inset space \hfill{}
16259 \begin_inset Tabular
16260 <lyxtabular version="3" rows="3" columns="1">
16261 <features tabularvalignment="middle">
16262 <column alignment="center" valignment="top" width="0">
16264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16267 \begin_layout Plain Layout
16274 <row interlinespace="3mm">
16275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16278 \begin_layout Plain Layout
16279 \begin_inset Formula $\downarrow$
16283 \begin_inset space \thinspace{}
16286 mm space between row
16287 \begin_inset Formula $\downarrow$
16297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16300 \begin_layout Plain Layout
16301 \begin_inset Formula $\uparrow$
16305 \begin_inset space \thinspace{}
16308 mm space between row
16309 \begin_inset Formula $\uparrow$
16323 \begin_inset space \hfill{}
16327 \begin_inset space \hspace*{}
16332 \begin_inset VSpace medskip
16336 \begin_inset Newline newline
16339 So inserting space between rows for normal tables is only useful when you
16340 don't have vertical lines.
16343 \begin_layout Standard
16344 \begin_inset VSpace bigskip
16347 When you want to add extra height to all cells of all tables, you can do
16348 this with the following preamble lines:
16351 \begin_layout Standard
16356 @ifundefined{extrarowheight}
16357 \begin_inset Newline newline
16361 \begin_inset Phantom HPhantom
16364 \begin_layout Plain Layout
16367 \begin_inset space ~
16377 usepackage{array}}{}
16378 \begin_inset Newline newline
16385 extrarowheight}{height}
16388 \begin_layout Standard
16389 But this has the disadvantage that the cell texts are no longer exactly
16390 vertically centered.
16395 will be loaded automatically by LyX when you use self defined table formats.
16396 To avoid that it being loaded twice the command
16402 is used in the above command.)
16405 \begin_layout Standard
16406 If you are using font sizes larger than the normal size, the table borders
16407 are often too close to the letters.
16408 This can be corrected by inserting the command
16414 in TeX code at the beginning of a table row.
16416 \begin_inset space ~
16420 \begin_inset CommandInset ref
16422 reference "tab:Vertical-alignment-of"
16426 illustrates the effect.
16429 \begin_layout Standard
16431 \begin_inset Float table
16437 \begin_layout Plain Layout
16438 \begin_inset Caption
16440 \begin_layout Plain Layout
16441 \begin_inset CommandInset label
16443 name "tab:Vertical-alignment-of"
16447 Vertical alignment of text with large font sizes.
16455 \begin_layout Plain Layout
16456 \begin_inset space \hfill{}
16460 \begin_inset Float table
16465 \begin_layout Plain Layout
16466 \begin_inset Caption
16468 \begin_layout Plain Layout
16477 \begin_layout Plain Layout
16480 \begin_inset Tabular
16481 <lyxtabular version="3" rows="6" columns="1">
16482 <features tabularvalignment="middle">
16483 <column alignment="left" valignment="top" width="0">
16485 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16488 \begin_layout Plain Layout
16496 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16499 \begin_layout Plain Layout
16509 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16512 \begin_layout Plain Layout
16522 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16525 \begin_layout Plain Layout
16535 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16538 \begin_layout Plain Layout
16548 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16551 \begin_layout Plain Layout
16570 \begin_inset space \hfill{}
16574 \begin_inset Float table
16579 \begin_layout Plain Layout
16580 \begin_inset Caption
16582 \begin_layout Plain Layout
16583 Table using the command
16597 \begin_layout Plain Layout
16600 \begin_inset Tabular
16601 <lyxtabular version="3" rows="6" columns="1">
16602 <features tabularvalignment="middle">
16603 <column alignment="left" valignment="top" width="0">
16605 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16608 \begin_layout Plain Layout
16616 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16619 \begin_layout Plain Layout
16625 \begin_layout Plain Layout
16641 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16644 \begin_layout Plain Layout
16650 \begin_layout Plain Layout
16666 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16669 \begin_layout Plain Layout
16675 \begin_layout Plain Layout
16691 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16694 \begin_layout Plain Layout
16700 \begin_layout Plain Layout
16716 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16719 \begin_layout Plain Layout
16725 \begin_layout Plain Layout
16752 \begin_inset space \hfill{}
16763 \begin_layout Subsection
16764 Special Cell Alignment
16765 \begin_inset Index idx
16768 \begin_layout Plain Layout
16769 Table Customization ! Special Cell Alignment
16777 \begin_layout Standard
16778 Sometimes it looks better when the cell entries of a column are aligned
16779 with a special character, e.
16780 \begin_inset space \thinspace{}
16784 \begin_inset space \space{}
16787 with the decimal separator as in Table
16788 \begin_inset space ~
16792 \begin_inset CommandInset ref
16794 reference "tab:Table-cells-of"
16801 \begin_layout Standard
16802 \begin_inset Float table
16808 \begin_layout Plain Layout
16809 \begin_inset Caption
16811 \begin_layout Plain Layout
16812 \begin_inset CommandInset label
16814 name "tab:Table-cells-of"
16818 Table cells of a column aligned with the decimal separator.
16826 \begin_layout Plain Layout
16828 \begin_inset Tabular
16829 <lyxtabular version="3" rows="4" columns="2">
16830 <features tabularvalignment="middle">
16831 <column alignment="right" valignment="top" width="0">
16832 <column alignment="left" valignment="top" width="0" special="@{}l">
16834 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16837 \begin_layout Plain Layout
16843 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16846 \begin_layout Plain Layout
16854 <cell alignment="center" valignment="top" usebox="none">
16857 \begin_layout Plain Layout
16863 <cell alignment="center" valignment="top" usebox="none">
16866 \begin_layout Plain Layout
16874 <cell alignment="center" valignment="top" usebox="none">
16877 \begin_layout Plain Layout
16883 <cell alignment="center" valignment="top" usebox="none">
16886 \begin_layout Plain Layout
16894 <cell alignment="center" valignment="top" usebox="none">
16897 \begin_layout Plain Layout
16903 <cell alignment="center" valignment="top" usebox="none">
16906 \begin_layout Plain Layout
16925 \begin_layout Standard
16926 This table was created with a 4×2 table.
16927 The heading is a centered multicolumn.
16928 The first column is right-aligned and contains the digits before the decimal
16929 point and the decimal point.
16930 The second column is left aligned and contains the digits after the decimal
16932 To omit the space that is normally between two table columns, the following
16933 LaTeX-argument was used for the second column:
16936 \begin_layout Standard
16942 \begin_layout Standard
16944 \begin_inset space ~
16948 \begin_inset CommandInset ref
16950 reference "tab:Several-table-cell"
16954 shows some example alignments.
16955 For the alignment with the relation sign, you must add the second smallest
16956 math-space at the beginning of the last column to get the correct space
16957 surrounding the relation sign.
16960 \begin_layout Standard
16961 \begin_inset Float table
16967 \begin_layout Plain Layout
16968 \begin_inset Caption
16970 \begin_layout Plain Layout
16971 \begin_inset CommandInset label
16973 name "tab:Several-table-cell"
16977 Several table cell alignments.
16985 \begin_layout Plain Layout
16987 \begin_inset Tabular
16988 <lyxtabular version="3" rows="4" columns="6">
16989 <features tabularvalignment="middle">
16990 <column alignment="right" valignment="top" width="0">
16991 <column alignment="left" valignment="top" width="0" special="@{}l">
16992 <column alignment="right" valignment="top" width="0">
16993 <column alignment="left" valignment="top" width="0" special="@{}l">
16994 <column alignment="right" valignment="top" width="0">
16995 <column alignment="left" valignment="top" width="0" special="@{}l">
16997 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17000 \begin_layout Plain Layout
17006 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17009 \begin_layout Plain Layout
17015 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17018 \begin_layout Plain Layout
17024 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17027 \begin_layout Plain Layout
17033 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17036 \begin_layout Plain Layout
17042 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17045 \begin_layout Plain Layout
17053 <cell alignment="center" valignment="top" usebox="none">
17056 \begin_layout Plain Layout
17062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17065 \begin_layout Plain Layout
17067 \begin_inset space \thinspace{}
17075 <cell alignment="center" valignment="top" usebox="none">
17078 \begin_layout Plain Layout
17079 \begin_inset Formula $10\cdot$
17087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17090 \begin_layout Plain Layout
17091 \begin_inset Formula $10^{\mbox{-}17}$
17099 <cell alignment="center" valignment="top" usebox="none">
17102 \begin_layout Plain Layout
17103 \begin_inset Formula $\Gamma(t)\propto$
17111 <cell alignment="center" valignment="top" usebox="none">
17114 \begin_layout Plain Layout
17115 \begin_inset Formula $\:\Upsilon(t)$
17125 <cell alignment="center" valignment="top" usebox="none">
17128 \begin_layout Plain Layout
17134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17137 \begin_layout Plain Layout
17139 \begin_inset space \thinspace{}
17147 <cell alignment="center" valignment="top" usebox="none">
17150 \begin_layout Plain Layout
17151 \begin_inset Formula $5.78\cdot$
17159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17162 \begin_layout Plain Layout
17163 \begin_inset Formula $10^{7}$
17171 <cell alignment="center" valignment="top" usebox="none">
17174 \begin_layout Plain Layout
17175 \begin_inset Formula $A\ne$
17183 <cell alignment="center" valignment="top" usebox="none">
17186 \begin_layout Plain Layout
17187 \begin_inset Formula $\: B_{\mathrm{red}}$
17197 <cell alignment="center" valignment="top" usebox="none">
17200 \begin_layout Plain Layout
17206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17209 \begin_layout Plain Layout
17211 \begin_inset space \thinspace{}
17219 <cell alignment="center" valignment="top" usebox="none">
17222 \begin_layout Plain Layout
17224 \begin_inset Formula $33.5\cdot$
17232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17235 \begin_layout Plain Layout
17236 \begin_inset Formula $10^{4}$
17244 <cell alignment="center" valignment="top" usebox="none">
17247 \begin_layout Plain Layout
17248 \begin_inset Formula $\sin(\alpha)\ge$
17256 <cell alignment="center" valignment="top" usebox="none">
17259 \begin_layout Plain Layout
17260 \begin_inset Formula $\:\sin(\beta)$
17281 \begin_layout Standard
17282 \begin_inset VSpace bigskip
17285 There is also the LaTeX-package
17290 \begin_inset Index idx
17293 \begin_layout Plain Layout
17294 LaTeX-packages ! dcolumn
17299 that provides table cell alignments.
17300 But this unfortunately treats the cell entries as math and does not allow
17301 formulas in table cells: The first column of Table
17302 \begin_inset space ~
17306 \begin_inset CommandInset ref
17308 reference "tab:Several-table-cell"
17316 like the first column in Table
17317 \begin_inset space ~
17321 \begin_inset CommandInset ref
17323 reference "tab:Alignments-when"
17327 and only with some tricks as you would want.
17328 The alignment of the second and third column of Table
17329 \begin_inset space ~
17333 \begin_inset CommandInset ref
17335 reference "tab:Several-table-cell"
17339 is not possible with
17346 \begin_layout Standard
17347 \begin_inset Newpage newpage
17353 \begin_layout Standard
17354 \begin_inset Float table
17360 \begin_layout Plain Layout
17361 \begin_inset Caption
17363 \begin_layout Plain Layout
17364 \begin_inset CommandInset label
17366 name "tab:Alignments-when"
17370 Alignments when LaTeX-package dcolumn is used.
17371 For all column alignments tricks have to be used to get the output.
17379 \begin_layout Plain Layout
17381 \begin_inset Tabular
17382 <lyxtabular version="3" rows="4" columns="3">
17383 <features tabularvalignment="middle">
17384 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17385 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17386 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17388 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17391 \begin_layout Plain Layout
17397 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17400 \begin_layout Plain Layout
17406 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17409 \begin_layout Plain Layout
17417 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17420 \begin_layout Plain Layout
17422 \begin_inset space \thinspace{}
17430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17433 \begin_layout Plain Layout
17435 \begin_inset space \thinspace{}
17439 \begin_inset Formula $\mbox{bottles}$
17447 <cell alignment="center" valignment="top" usebox="none">
17450 \begin_layout Plain Layout
17455 \begin_layout Plain Layout
17465 \begin_inset Formula $\mbox{bottles}$
17475 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17478 \begin_layout Plain Layout
17480 \begin_inset space \thinspace{}
17488 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17491 \begin_layout Plain Layout
17493 \begin_inset space \thinspace{}
17497 \begin_inset Formula $\mbox{Pixels}$
17505 <cell alignment="center" valignment="top" usebox="none">
17508 \begin_layout Plain Layout
17513 \begin_layout Plain Layout
17523 \begin_inset Formula $\mbox{Pixels}$
17533 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17536 \begin_layout Plain Layout
17538 \begin_inset space \thinspace{}
17546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17549 \begin_layout Plain Layout
17551 \begin_inset space \thinspace{}
17555 \begin_inset Formula $\mbox{cm}$
17563 <cell alignment="center" valignment="top" usebox="none">
17566 \begin_layout Plain Layout
17571 \begin_layout Plain Layout
17581 \begin_inset Formula $\mbox{cm}$
17602 \begin_layout Subsection
17603 Customized Cell/Column Format
17604 \begin_inset CommandInset label
17606 name "sub:Customized-Format"
17611 \begin_inset Index idx
17614 \begin_layout Plain Layout
17615 Table Customization ! Cell/Column Format
17623 \begin_layout Standard
17624 Calculating the required width for spanned columns as in section
17625 \begin_inset space ~
17629 \begin_inset CommandInset ref
17631 reference "sub:Multicolumn-Calculations"
17635 is very annoying if you have several tables with multicolumn cells.
17636 To make life easier, you can define a cell/column format in the preamble,
17637 so that it can be used in all tables of the document.
17638 The format is defined with the command
17641 \begin_layout Standard
17646 newcolumntype{name of format}[number of arguments]{commands}
17649 \begin_layout Standard
17650 The format name may only consist of one letter.
17675 are predefined and cannot be used.
17676 But all letters are allowed as capitals.
17679 \begin_layout Standard
17680 \begin_inset VSpace medskip
17686 \begin_layout Standard
17687 For vertically and horizontally centered multicolumn cells with a fixed
17688 width you can define the cell format
17691 \begin_layout Standard
17696 newcolumntype{M}[1]{>{
17703 \begin_layout Standard
17710 avoids the problem of hyphenating the first word, as described in section
17711 \begin_inset space ~
17715 \begin_inset CommandInset ref
17717 reference "sub:Multiple-Lines-in"
17722 Now you can simply enter
17725 \begin_layout Standard
17731 \begin_layout Standard
17732 as LaTeX-argument in the table dialog to create a multicolumn.
17735 \begin_layout Standard
17736 \begin_inset VSpace bigskip
17742 \begin_layout Standard
17743 For cells spanned by a multicolumn cell, you can define the format
17746 \begin_layout Standard
17751 newcolumntype{S}[2]{>{
17756 \begin_inset Newline newline
17760 \begin_inset Phantom HPhantom
17763 \begin_layout Plain Layout
17777 arrayrulewidth)*(1-#2))/#2}}
17780 \begin_layout Standard
17781 This format uses equation
17782 \begin_inset CommandInset ref
17788 to calculate the required width so that each spanned cell has the same
17792 \begin_layout Standard
17796 \begin_layout Standard
17799 S{width of multicolumn cell}{number of spanned columns}
17802 \begin_layout Standard
17803 as LaTeX-argument of the column.
17806 \begin_layout Standard
17807 \begin_inset VSpace bigskip
17813 \begin_layout Standard
17814 For colored columns, you can define
17817 \begin_layout Standard
17822 newcolumntype{K}[1]{>{
17829 \begin_layout Standard
17831 \begin_inset Quotes eld
17835 \begin_inset Quotes erd
17838 at the end creates a column with a flexible width whose text is horizontally
17843 \begin_layout Standard
17849 \begin_layout Standard
17853 \begin_layout Standard
17854 \begin_inset VSpace bigskip
17860 \begin_layout Standard
17862 \begin_inset space ~
17866 \begin_inset CommandInset ref
17868 reference "tab:Table-using-user-defined"
17872 use the LaTeX-arguments
17875 \begin_layout Standard
17881 \begin_layout Standard
17882 for the first column and the multicolumn,
17885 \begin_layout Standard
17891 \begin_layout Standard
17892 for the last column, and
17895 \begin_layout Standard
17901 \begin_layout Standard
17902 for the cells in the second column.
17905 \begin_layout Standard
17906 \begin_inset Float table
17912 \begin_layout Plain Layout
17913 \begin_inset Caption
17915 \begin_layout Plain Layout
17916 \begin_inset CommandInset label
17918 name "tab:Table-using-user-defined"
17922 Table using user-defined table formats
17930 \begin_layout Plain Layout
17932 \begin_inset Tabular
17933 <lyxtabular version="3" rows="3" columns="4">
17934 <features tabularvalignment="middle">
17935 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17936 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17937 <column alignment="center" valignment="middle" width="0">
17938 <column alignment="center" valignment="middle" width="0" special="K{red}">
17940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17943 \begin_layout Plain Layout
17944 verylongtablecellword
17949 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17952 \begin_layout Plain Layout
17953 multiple lines multicolumn
17958 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17961 \begin_layout Plain Layout
17967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17970 \begin_layout Plain Layout
17978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17981 \begin_layout Plain Layout
17987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17990 \begin_layout Plain Layout
17996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17999 \begin_layout Plain Layout
18005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18008 \begin_layout Plain Layout
18016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18019 \begin_layout Plain Layout
18025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18028 \begin_layout Plain Layout
18034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18037 \begin_layout Plain Layout
18043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18046 \begin_layout Plain Layout
18065 \begin_layout Subsection
18067 \begin_inset CommandInset label
18069 name "sub:Line-Thickness"
18074 \begin_inset Index idx
18077 \begin_layout Plain Layout
18078 Table Customization ! Line Thickness
18086 \begin_layout Standard
18087 The line thickness for all lines in a table can be adjusted with the length
18095 To set for example a line thickness of 1.5
18096 \begin_inset space \thinspace{}
18100 \begin_inset space ~
18104 \begin_inset CommandInset ref
18106 reference "tab:Table-with-1.5"
18110 , insert the command
18113 \begin_layout Standard
18120 arrayrulewidth}{1.5pt}
18123 \begin_layout Standard
18124 in TeX-Code before the table or table float.
18125 The changed thickness is valid for all subsequent tables.
18126 To use the default value again, set
18133 \begin_inset space \thinspace{}
18136 pt in TeX-Code after the table or table float.
18139 \begin_layout Standard
18143 \begin_layout Plain Layout
18149 arrayrulewidth}{1.5pt}
18155 \begin_inset Float table
18160 \begin_layout Plain Layout
18161 \begin_inset Caption
18163 \begin_layout Plain Layout
18164 \begin_inset CommandInset label
18166 name "tab:Table-with-1.5"
18171 \begin_inset space \thinspace{}
18182 \begin_layout Plain Layout
18184 \begin_inset Tabular
18185 <lyxtabular version="3" rows="3" columns="3">
18186 <features tabularvalignment="middle">
18187 <column alignment="center" valignment="top" width="0">
18188 <column alignment="center" valignment="top" width="0">
18189 <column alignment="center" valignment="top" width="0">
18191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18194 \begin_layout Plain Layout
18200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18203 \begin_layout Plain Layout
18209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18212 \begin_layout Plain Layout
18220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18223 \begin_layout Plain Layout
18229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18232 \begin_layout Plain Layout
18238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18241 \begin_layout Plain Layout
18249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18252 \begin_layout Plain Layout
18258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18261 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18270 \begin_layout Plain Layout
18290 \begin_layout Plain Layout
18296 arrayrulewidth}{0.4pt}
18304 \begin_layout Standard
18305 \begin_inset VSpace bigskip
18308 To set the line thickness to 1.5
18309 \begin_inset space \thinspace{}
18312 pt only for horizontal lines, as in Table
18313 \begin_inset space ~
18317 \begin_inset CommandInset ref
18319 reference "tab:Table-with-horizontal"
18323 , insert these commands in TeX-Code before the table or table float:
18326 \begin_layout Standard
18336 \begin_inset Newline newline
18344 \begin_inset Newline newline
18353 arrayrulewidth 1.5pt}
18354 \begin_inset Newline newline
18365 arrayrulewidth 0.4pt}}
18368 \begin_layout Standard
18369 To return to the default line thickness, insert this command in TeX-Code
18370 after the table or table float:
18373 \begin_layout Standard
18385 \begin_layout Standard
18389 \begin_layout Plain Layout
18400 \begin_layout Plain Layout
18409 \begin_layout Plain Layout
18417 arrayrulewidth 1.5pt}
18420 \begin_layout Plain Layout
18430 arrayrulewidth 0.4pt}}
18436 \begin_inset Float table
18441 \begin_layout Plain Layout
18442 \begin_inset Caption
18444 \begin_layout Plain Layout
18445 \begin_inset CommandInset label
18447 name "tab:Table-with-horizontal"
18452 \begin_inset space \thinspace{}
18455 pt thick horizontal lines
18463 \begin_layout Plain Layout
18465 \begin_inset Tabular
18466 <lyxtabular version="3" rows="3" columns="3">
18467 <features tabularvalignment="middle">
18468 <column alignment="center" valignment="top" width="0">
18469 <column alignment="center" valignment="top" width="0">
18470 <column alignment="center" valignment="top" width="0">
18472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18475 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18493 \begin_layout Plain Layout
18501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18504 \begin_layout Plain Layout
18510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18513 \begin_layout Plain Layout
18519 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18522 \begin_layout Plain Layout
18530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18533 \begin_layout Plain Layout
18539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18542 \begin_layout Plain Layout
18548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18551 \begin_layout Plain Layout
18571 \begin_layout Plain Layout
18587 \begin_layout Standard
18588 \begin_inset VSpace bigskip
18591 To set the line thickness to 1.5
18592 \begin_inset space \thinspace{}
18595 pt only for vertical lines, create the following column format in the document
18596 preamble, according to the description in section
18597 \begin_inset space ~
18601 \begin_inset CommandInset ref
18603 reference "sub:Customized-Format"
18610 \begin_layout Standard
18615 newcolumntype{V}{!{
18617 vrule width 1.5pt}}
18620 \begin_layout Standard
18622 \begin_inset space ~
18626 \begin_inset CommandInset ref
18628 reference "tab:Table-with-vertical"
18635 \begin_layout Standard
18641 \begin_layout Standard
18642 was used for the last column and
18645 \begin_layout Standard
18651 \begin_layout Standard
18652 for the other columns.
18655 \begin_layout Standard
18656 \begin_inset Float table
18661 \begin_layout Plain Layout
18662 \begin_inset Caption
18664 \begin_layout Plain Layout
18665 \begin_inset CommandInset label
18667 name "tab:Table-with-vertical"
18672 \begin_inset space \thinspace{}
18675 pt thick vertical lines
18683 \begin_layout Plain Layout
18685 \begin_inset Tabular
18686 <lyxtabular version="3" rows="3" columns="3">
18687 <features tabularvalignment="middle">
18688 <column alignment="center" valignment="top" width="0" special="Vc">
18689 <column alignment="center" valignment="top" width="0" special="Vc">
18690 <column alignment="center" valignment="top" width="0" special="VcV">
18692 <cell alignment="center" valignment="top" topline="true" usebox="none">
18695 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" usebox="none">
18704 \begin_layout Plain Layout
18710 <cell alignment="center" valignment="top" topline="true" usebox="none">
18713 \begin_layout Plain Layout
18721 <cell alignment="center" valignment="top" topline="true" usebox="none">
18724 \begin_layout Plain Layout
18730 <cell alignment="center" valignment="top" topline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" usebox="none">
18742 \begin_layout Plain Layout
18750 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18753 \begin_layout Plain Layout
18759 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18762 \begin_layout Plain Layout
18768 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18771 \begin_layout Plain Layout
18790 \begin_layout Subsection
18792 \begin_inset Index idx
18795 \begin_layout Plain Layout
18796 Table Customization ! Dashed Lines
18804 \begin_layout Standard
18808 \begin_layout Plain Layout
18818 \begin_inset Note Note
18821 \begin_layout Plain Layout
18822 The following section will only be displayed when the LaTeX-package
18834 \begin_layout Standard
18835 \begin_inset Float table
18841 \begin_layout Plain Layout
18842 \begin_inset Caption
18844 \begin_layout Plain Layout
18845 \begin_inset CommandInset label
18847 name "tab:Table-with-dashed"
18851 Table with dashed lines
18859 \begin_layout Plain Layout
18861 \begin_inset Tabular
18862 <lyxtabular version="3" rows="5" columns="5">
18863 <features tabularvalignment="middle">
18864 <column alignment="center" valignment="top" width="0">
18865 <column alignment="center" valignment="top" width="0">
18866 <column alignment="center" valignment="top" width="0" special=":c">
18867 <column alignment="center" valignment="top" width="0">
18868 <column alignment="center" valignment="top" width="0">
18870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18873 \begin_layout Plain Layout
18879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18882 \begin_layout Plain Layout
18888 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18891 \begin_layout Plain Layout
18897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18900 \begin_layout Plain Layout
18906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18909 \begin_layout Plain Layout
18917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18920 \begin_layout Plain Layout
18926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18929 \begin_layout Plain Layout
18935 <cell alignment="center" valignment="top" topline="true" usebox="none">
18938 \begin_layout Plain Layout
18944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18947 \begin_layout Plain Layout
18953 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18956 \begin_layout Plain Layout
18964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18967 \begin_layout Plain Layout
18971 \begin_layout Plain Layout
18985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18988 \begin_layout Plain Layout
18994 <cell alignment="center" valignment="top" usebox="none">
18997 \begin_layout Plain Layout
19003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19006 \begin_layout Plain Layout
19012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19015 \begin_layout Plain Layout
19023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19026 \begin_layout Plain Layout
19030 \begin_layout Plain Layout
19044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19047 \begin_layout Plain Layout
19053 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19056 \begin_layout Plain Layout
19062 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19065 \begin_layout Plain Layout
19071 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19074 \begin_layout Plain Layout
19082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19085 \begin_layout Plain Layout
19091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19094 \begin_layout Plain Layout
19100 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19103 \begin_layout Plain Layout
19109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19112 \begin_layout Plain Layout
19118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19121 \begin_layout Plain Layout
19140 \begin_layout Standard
19141 LyX does not natively support dashed lines, so you have to use TeX-Code.
19142 As a prerequisite the LaTeX-package
19147 \begin_inset Index idx
19150 \begin_layout Plain Layout
19151 LaTeX-packages ! arydshln
19156 must be loaded in the document preamble with the command
19159 \begin_layout Standard
19164 usepackage{arydshln}
19167 \begin_layout Standard
19168 To make a vertical line dashed, enter the colon
19169 \begin_inset Quotes eld
19173 \begin_inset Quotes erd
19176 together with the character for the horizontal alignment as LaTeX-argument
19177 in the table cell dialog.
19180 \begin_layout Standard
19181 For a horizontal dashed line add the command
19184 \begin_layout Standard
19192 \begin_layout Standard
19193 in TeX-Code as first element of the first cell in the table row.
19196 \begin_layout Standard
19197 For dashed multicolumn lines use the command
19200 \begin_layout Standard
19205 cdashline{line number
19210 \begin_layout Standard
19211 in TeX-Code as the first element of the first cell in the table row.
19212 If you have for example a multicolumn spanning columns 2 to 4 and you want
19213 to have a dashed line above, add the command
19216 \begin_layout Standard
19224 \begin_layout Standard
19225 as the first element of the first cell in the row of the multicolumn.
19228 \begin_layout Standard
19229 \begin_inset VSpace bigskip
19235 \begin_layout Standard
19237 \begin_inset space ~
19241 \begin_inset CommandInset ref
19243 reference "tab:Table-with-dashed"
19248 \begin_inset Quotes eld
19256 \begin_inset Quotes erd
19259 as LaTeX-argument of the third column.
19260 The TeX-Code command
19266 was inserted in the first cell of the third row and the TeX-Code command
19267 \begin_inset Newline newline
19276 was inserted in the first cell of the fourth row.
19279 \begin_layout Standard
19280 \begin_inset Note Greyedout
19283 \begin_layout Plain Layout
19292 is apparently not compatible with the LaTeX-package
19297 \begin_inset Index idx
19300 \begin_layout Plain Layout
19301 LaTeX-packages ! colortbl
19306 that is used for colored tables in section
19307 \begin_inset space ~
19311 \begin_inset CommandInset ref
19313 reference "sec:Colored-Tables"
19318 That means colored tables cannot have dashed lines.
19326 \begin_layout Standard
19330 \begin_layout Plain Layout
19340 \begin_inset Note Note
19343 \begin_layout Plain Layout
19344 The following will be displayed when the LaTeX-package
19356 \begin_layout Standard
19357 You need to install the package
19361 to see the content of this section in the output.
19364 \begin_layout Standard
19368 \begin_layout Plain Layout
19380 \begin_layout Chapter
19382 \begin_inset Index idx
19385 \begin_layout Plain Layout
19394 \begin_layout Section
19396 \begin_inset CommandInset label
19398 name "sec:FloatIntroduction"
19403 \begin_inset Index idx
19406 \begin_layout Plain Layout
19407 Floats ! Introduction
19415 \begin_layout Standard
19416 A float is a block of text associated with some sort of label, which doesn't
19417 have a fixed location.
19419 \begin_inset Quotes eld
19423 \begin_inset Quotes erd
19426 forward or backward a page or two, to wherever it fits best.
19434 \begin_inset space ~
19439 are also floats, because they can float to the next page when there are
19440 too many notes on the page.
19443 \begin_layout Standard
19444 Floats allow a high quality layout.
19445 Images and tables can be spread evenly to the pages to avoid white space
19446 and pages without text.
19447 As the floating often destroys the context between the text and the image/table
19448 , every float can be referenced in the text.
19449 Floats are therefore numbered.
19450 Referencing is described in section
19451 \begin_inset space ~
19455 \begin_inset CommandInset ref
19457 reference "sec:Referencing-Floats"
19464 \begin_layout Standard
19465 To insert a float, use the menu
19467 Insert\SpecialChar \menuseparator
19475 inset, a box with a label.
19476 The label will automatically be translated to the document language in
19478 After the label you can insert the caption text.
19479 The image or table is inserted above or below the caption in a separate
19480 paragraph within the float.
19481 More about the caption placement is contained in section
19482 \begin_inset space ~
19486 \begin_inset CommandInset ref
19488 reference "sec:Caption-Placement"
19493 To keep your LyX-document readable, you can open and close the float box
19494 by left-clicking on the box label.
19495 A closed float box looks like this:
19496 \begin_inset Graphics
19497 filename clipart/floatQt4.png
19499 scaleBeforeRotation
19503 – a gray button with a red label.
19506 \begin_layout Standard
19507 It is recommended that you insert floats as a separate standard paragraph
19508 to avoid possible LaTeX-errors that can occur when the surrounding text
19509 is specially formatted.
19512 \begin_layout Standard
19513 Existing figures or tables can be put into a float by highlighting them
19514 and then pressing the corresponding toolbar button for a new float.
19517 \begin_layout Section
19521 \begin_layout Standard
19522 Besides figure and table floats that are described in sections
19523 \begin_inset space ~
19527 \begin_inset CommandInset ref
19529 reference "sec:Figure-Floats"
19534 \begin_inset CommandInset ref
19536 reference "sec:Table-Floats"
19540 respectively, LyX offers the float types
19551 \begin_layout Subsection
19553 \begin_inset Index idx
19556 \begin_layout Plain Layout
19557 Floats ! Algorithms
19565 \begin_layout Standard
19566 \begin_inset Float algorithm
19572 \begin_layout Plain Layout
19573 \begin_inset Caption
19575 \begin_layout Plain Layout
19576 \begin_inset CommandInset label
19578 name "alg:Example-Algorithm-float"
19582 Example Algorithm float
19590 \begin_layout LyX-Code
19592 \begin_inset Newline newline
19595 Sum:= Sum + A(I); /*comment*/
19596 \begin_inset Newline newline
19600 \begin_inset VSpace -4mm
19611 \begin_layout Standard
19612 This float type is inserted with the menu
19614 Insert\SpecialChar \menuseparator
19615 Floats\SpecialChar \menuseparator
19619 It is used for program codes and descriptions of algorithms and can be
19620 seen as an alternative to program code listings that are explained in chapter
19621 \begin_inset space ~
19625 \begin_inset CommandInset ref
19627 reference "cha:Program-Code-Listings"
19632 A possible environment for algorithms is the
19636 , described in LyX's
19642 \begin_inset space ~
19646 \begin_inset CommandInset ref
19648 reference "alg:Example-Algorithm-float"
19652 is an example of an algorithm float where -4
19653 \begin_inset space \thinspace{}
19656 mm vertical space was added at the end of the float to have the bottom rule
19657 exactly below the last text line.
19660 \begin_layout Standard
19661 The float label is not automatically translated into the document language.
19662 If your document is not in English, you have to do this manually by adding
19663 the following line to the document preamble
19668 \begin_layout Standard
19673 floatname{algorithm}{your
19674 \begin_inset space ~
19680 \begin_layout Standard
19684 \begin_inset space ~
19690 \begin_inset Quotes eld
19698 \begin_inset Quotes erd
19704 \begin_layout Standard
19705 To insert the list of algorithms you can use the menu
19707 Insert\SpecialChar \menuseparator
19709 \begin_inset space \thinspace{}
19713 \begin_inset space \thinspace{}
19716 TOC\SpecialChar \menuseparator
19719 when your document has the same language as LyX's menu names.
19720 In other cases use this command in TeX-Code instead:
19723 \begin_layout Standard
19728 listof{algorithm}{your
19729 \begin_inset space ~
19735 \begin_layout Standard
19739 \begin_inset space ~
19745 \begin_inset Quotes eld
19753 \begin_inset Quotes erd
19759 \begin_layout Standard
19760 Algorithm floats are not by default numbered in the scheme
19761 \begin_inset Quotes eld
19765 \begin_inset Quotes erd
19768 as is the case for table and figure floats in many document-classes.
19769 To number algorithm floats in the same scheme, add this command to your
19773 \begin_layout Standard
19778 numberwithin{algorithm}{chapter}
19781 \begin_layout Standard
19782 To be able to use the command
19791 \begin_inset space ~
19796 in the document settings the option
19799 \begin_inset space ~
19803 \begin_inset space ~
19807 \begin_inset space ~
19815 \begin_layout Subsection
19817 \begin_inset Index idx
19820 \begin_layout Plain Layout
19821 Floats ! Wrap Floats
19829 \begin_layout Standard
19830 \begin_inset Wrap figure
19837 \begin_layout Plain Layout
19838 \begin_inset Graphics
19839 filename clipart/mobius.eps
19841 scaleBeforeRotation
19842 rotateOrigin center
19849 \begin_layout Plain Layout
19850 \begin_inset Caption
19852 \begin_layout Plain Layout
19853 \begin_inset CommandInset label
19855 name "fig:This-is-a"
19859 This is a figure wrap float.
19869 This float type is used if you want to wrap text around a figure or table
19870 so that it only occupies some fraction of the column width.
19871 It can be inserted using the menu
19873 Insert\SpecialChar \menuseparator
19874 Floats\SpecialChar \menuseparator
19876 \begin_inset space ~
19880 \begin_inset space ~
19888 \begin_inset space ~
19892 \begin_inset space ~
19897 if the LaTeX-package
19902 \begin_inset Index idx
19905 \begin_layout Plain Layout
19906 LaTeX-packages ! wrapfig
19910 \begin_layout Plain Layout
19928 \begin_layout Plain Layout
19929 Installing a LaTeX-package is explained it in the
19932 \begin_inset space ~
19942 The settings of the float can be modified by right-clicking on the float
19944 The mandatory settings are the float
19957 that specifies how much the float is set into the paragraph
19958 \begin_inset space \thinspace{}
19962 \begin_inset space \thinspace{}
19965 page margin, and the
19968 \begin_inset space ~
19973 that specifies how many text lines the float will approximately need.
19974 The line span is often hard to approximate; so it is better only to use
19975 it when you encounter float placement problems.
19976 You can furthermore decide if LaTeX is allowed to let the float float within
19977 the paragraph or to surrounding paragraphs.
19979 \begin_inset space ~
19983 \begin_inset CommandInset ref
19985 reference "fig:This-is-a"
19989 is an example text wrap float with a width of 40
19990 \begin_inset space \thinspace{}
19994 \begin_inset space \thinspace{}
19997 cm overhang, set to the left.
20001 \begin_layout Plain Layout
20002 Available units are explained in appendix
20003 \begin_inset space ~
20007 \begin_inset CommandInset ref
20009 reference "cha:Units-available-in"
20021 \begin_layout Standard
20022 \begin_inset Note Greyedout
20025 \begin_layout Plain Layout
20031 \begin_inset space ~
20034 wrap float floats are fragile! E.
20035 \begin_inset space \thinspace{}
20039 \begin_inset space \space{}
20042 having a figure too close to the bottom of the page can mess things up in
20043 such a way that the float does not appear in the output or that it is placed
20044 over some other text.
20052 \begin_layout Standard
20056 \begin_layout Itemize
20057 Wrap floats should not be placed in paragraphs that run over a page break.
20058 That means that wrap floats are better inserted in their exact place when
20059 the document is almost finished and you are able to estimate where page
20060 breaks will appear.
20063 \begin_layout Itemize
20064 Wrap floats should either be placed in their own paragraph before the paragraph
20065 where they should wrap into or within a paragraph.
20068 \begin_layout Itemize
20069 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20070 there is a text paragraph between them as separator.
20073 \begin_layout Itemize
20074 Wrap floats are not allowed in section headings or tables.
20077 \begin_layout Section
20079 \begin_inset Index idx
20082 \begin_layout Plain Layout
20091 \begin_layout Standard
20092 Floats are usually numbered either independently from the sections the floats
20093 are in, or in the scheme
20094 \begin_inset Quotes eld
20098 \begin_inset Quotes erd
20102 \begin_inset Quotes eld
20106 \begin_inset Quotes erd
20110 This depends on the document class used.
20113 \begin_layout Standard
20114 To change section-independent numbering, you can use this command in the
20118 \begin_layout Standard
20130 \begin_layout Standard
20137 is the command that prints the table number, for figure floats, the command
20151 in the command above prints the table number as small roman number.
20154 \begin_layout Standard
20155 To change the numbering scheme for example to
20156 \begin_inset Quotes eld
20160 \begin_inset Quotes erd
20163 , use this command in the preamble:
20166 \begin_layout Standard
20171 numberwithin{table}{subsection}
20174 \begin_layout Standard
20175 To be able to use the command
20184 \begin_inset space ~
20189 in the document settings the option
20192 \begin_inset space ~
20196 \begin_inset space ~
20200 \begin_inset space ~
20208 \begin_layout Standard
20209 Please also have a look at section
20210 \begin_inset space ~
20214 \begin_inset CommandInset ref
20216 reference "sub:Footnote-Numbering"
20220 for the details and important notes about the numbering commands.
20223 \begin_layout Section
20225 \begin_inset CommandInset label
20227 name "sec:Referencing-Floats"
20232 \begin_inset Index idx
20235 \begin_layout Plain Layout
20236 Floats ! References
20242 \begin_inset Index idx
20245 \begin_layout Plain Layout
20246 References ! to Floats
20254 \begin_layout Standard
20255 To reference a float, insert a label into its caption using the menu
20257 Insert\SpecialChar \menuseparator
20260 or the toolbar button
20261 \begin_inset Graphics
20262 filename ../images/label-insert.png
20264 scaleBeforeRotation
20269 A grey label box like this one:
20270 \begin_inset Graphics
20271 filename clipart/labelQt4.png
20273 scaleBeforeRotation
20277 will be inserted and the label window pops up asking for the label text.
20278 LyX offers as text the first words of the caption with a prefix.
20279 The prefix depends on the float type, e.
20280 \begin_inset space \thinspace{}
20284 \begin_inset space \space{}
20287 for figure floats the prefix will be "
20294 \begin_layout Standard
20295 The label is used as anchor and name for the reference.
20296 You can refer to the label using the menu
20298 Insert\SpecialChar \menuseparator
20301 or the toolbar button
20302 \begin_inset Graphics
20303 filename ../images/dialog-show-new-inset_ref.png
20305 scaleBeforeRotation
20310 A grey cross-reference box like this one:
20311 \begin_inset Graphics
20312 filename clipart/referenceQt4.png
20314 scaleBeforeRotation
20318 will be inserted and the cross-reference window appear showing all labels
20320 If you have multiple LyX-documents opened, choose the one you are working
20321 on from the drop-list at the top of the dialog.
20322 You can now sort the labels alphabetically and then choose one.
20323 At the position of the cross-reference box the float number will appear
20327 \begin_layout Standard
20328 It is recommended that you use a protected space between the cross-reference
20329 name and its number to avoid line breaks between them.
20330 If a cross-reference refers to a non-existing label, you will see two question
20331 marks in the output instead of the reference.
20334 \begin_layout Standard
20335 You can change labels at any time by clicking on the label box.
20336 References to the changed label will automatically change its link to the
20337 new label text, so that you don't need to take care about this.
20340 \begin_layout Standard
20344 \begin_inset space ~
20348 \begin_inset space ~
20353 in the cross-reference window sets the cursor before the referred label.
20354 The button text changes then to Go
20355 \begin_inset space ~
20358 Back and you can use it to set the cursor back to the cross-reference.
20359 Right-clicking on a cross-reference box also sets the cursor before the
20360 referenced label but without the possibility of going back.
20363 \begin_layout Subsection
20364 Cross-Reference Formats
20365 \begin_inset CommandInset label
20367 name "sub:Cross-Reference-Formats"
20372 \begin_inset Index idx
20375 \begin_layout Plain Layout
20376 References ! Formats
20384 \begin_layout Standard
20385 There are six varieties of cross-references:
20388 \begin_layout Description
20389 <reference>: prints the float number, this is the default:
20390 \begin_inset CommandInset ref
20392 reference "fig:Two-distorted-images"
20399 \begin_layout Description
20400 (<reference>): prints the float number within two parentheses, this is the
20401 style normally used to reference formulas, especially when the reference
20403 \begin_inset Quotes eld
20407 \begin_inset Quotes erd
20411 \begin_inset CommandInset ref
20420 \begin_layout Description
20421 <page>: prints the page number: Page
20422 \begin_inset space ~
20426 \begin_inset CommandInset ref
20427 LatexCommand pageref
20428 reference "fig:Two-distorted-images"
20435 \begin_layout Description
20437 \begin_inset space ~
20441 \begin_inset space ~
20444 <page>: prints the text "on page" and the page number:
20445 \begin_inset CommandInset ref
20446 LatexCommand vpageref
20447 reference "fig:Two-distorted-images"
20454 \begin_layout Description
20456 \begin_inset space ~
20460 \begin_inset space ~
20464 \begin_inset space ~
20467 <page>: prints the float number, the text "on page", and the page number:
20469 \begin_inset CommandInset ref
20471 reference "fig:Two-distorted-images"
20478 \begin_layout Description
20480 \begin_inset space ~
20483 reference: prints a self-defined cross-reference format.
20484 \begin_inset Newline newline
20488 \begin_inset Note Greyedout
20491 \begin_layout Plain Layout
20496 This feature is only available when you have the LaTeX-package
20505 \begin_inset Index idx
20508 \begin_layout Plain Layout
20509 LaTeX-packages ! prettyref
20515 \begin_inset Index idx
20518 \begin_layout Plain Layout
20519 LaTeX-packages ! refstyle
20530 \begin_inset Newline newline
20533 You can select which LaTeX-package should be used for this feature by setting
20536 Use refstyle (not prettyref) for cross-references
20540 Document\SpecialChar \menuseparator
20541 Settings\SpecialChar \menuseparator
20545 The format is specified by adding the command
20557 (refstyle) to the preamble of the document.
20558 For example redefining all references to figures (which have the label
20560 \begin_inset Quotes eld
20568 \begin_inset Quotes erd
20571 ) can be done with this command
20572 \begin_inset Newline newline
20579 newref{fig}{refcmd={Image on page
20584 \begin_inset Newline newline
20587 For more information about the format, have a look at the package documentations
20589 \begin_inset CommandInset citation
20591 key "prettyref,refstyle"
20598 \begin_layout Description
20600 \begin_inset space ~
20603 reference: prints the caption of the reference:
20604 \begin_inset CommandInset ref
20605 LatexCommand nameref
20606 reference "fig:Two-distorted-images"
20613 \begin_layout Standard
20618 will not print the page number if the label is on the previous, the same,
20621 \begin_inset space \thinspace{}
20625 \begin_inset space \space{}
20629 \begin_inset Quotes eld
20637 \begin_inset Quotes erd
20643 <reference> on page <page>
20645 will not print anything about the page if the label is on the same page.
20648 \begin_layout Standard
20649 The number and current page of the part of the document referred to in the
20650 output is automatically calculated by LaTeX.
20651 The varieties are adjusted in the field
20655 of the cross-reference window that appears when you click on the cross-referenc
20659 \begin_layout Standard
20660 \begin_inset Note Greyedout
20663 \begin_layout Plain Layout
20668 It is recommended to use the LaTeX-package
20673 \begin_inset Index idx
20676 \begin_layout Plain Layout
20677 LaTeX-packages ! refstyle
20687 \begin_inset Index idx
20690 \begin_layout Plain Layout
20691 LaTeX-packages ! prettyref
20696 does not know all of LyX's possible label shortcuts
20700 \begin_layout Plain Layout
20701 \begin_inset Quotes eld
20705 \begin_inset Quotes erd
20708 is for example LyX's shortcut for labels in figure captions.
20713 and is not internationalized.
20721 \begin_layout Standard
20722 \begin_inset Note Greyedout
20725 \begin_layout Plain Layout
20730 Due to a bug in the LaTeX-package
20734 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20735 languages that make the period character active (like French).
20736 For a workaround, see
20737 \begin_inset Newline newline
20741 \begin_inset CommandInset href
20743 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20755 \begin_layout Subsection
20756 Automatic Reference Naming
20757 \begin_inset Index idx
20760 \begin_layout Plain Layout
20761 References ! Automatic Reference Naming
20769 \begin_layout Standard
20775 \begin_inset Index idx
20778 \begin_layout Plain Layout
20779 LaTeX-packages ! hyperref
20784 , that is enabled in the
20792 dialog, provides a very useful feature that cross-references automatically
20793 include the name of the referenced floats (or text parts like
20798 So you will save having to write e.
20799 \begin_inset space \thinspace{}
20803 \begin_inset space \space{}
20807 \begin_inset Quotes eld
20811 \begin_inset Quotes erd
20814 before every reference to a figure.
20815 To use this feature, enable
20819 and insert this line to the LaTeX preamble:
20822 \begin_layout Standard
20838 \begin_layout Standard
20839 When you prefer other reference names than the default ones, for example
20840 you want instead of
20841 \begin_inset Quotes eld
20845 \begin_inset Quotes erd
20849 \begin_inset Quotes eld
20853 \begin_inset space \thinspace{}
20857 \begin_inset Quotes eld
20860 , you can redefine the name by inserting this in the preamble:
20863 \begin_layout Standard
20874 sectionautorefname}
20875 \begin_inset Newline newline
20879 \begin_inset Phantom HPhantom
20882 \begin_layout Plain Layout
20885 \begin_inset space ~
20898 \begin_layout Standard
20899 When you are using another document language than English, replace
20900 \begin_inset Newline newline
20915 , where *** is the name of the language used.
20918 \begin_layout Standard
20919 To get automatic names, but not for certain reference types, for example
20920 not for equations, use this preamble code:
20923 \begin_layout Standard
20931 \begin_inset Newline newline
20941 \begin_inset Newline newline
20952 equationautorefname}
20953 \begin_inset Newline newline
20957 \begin_inset Phantom HPhantom
20960 \begin_layout Plain Layout
20963 \begin_inset space ~
20978 \begin_layout Standard
20979 More about this topic can be found in
20984 \begin_inset CommandInset citation
20993 \begin_layout Standard
20994 \begin_inset Note Greyedout
20997 \begin_layout Plain Layout
21002 Automatic reference naming cannot be used when you use cross-references
21006 \begin_inset space ~
21011 style, as described in section
21012 \begin_inset space ~
21016 \begin_inset CommandInset ref
21018 reference "sub:Cross-Reference-Formats"
21030 \begin_layout Standard
21035 manual is an example where automatic reference naming is used.
21038 \begin_layout Subsection
21040 \begin_inset CommandInset label
21042 name "sub:Reference-Position"
21047 \begin_inset Index idx
21050 \begin_layout Plain Layout
21051 References ! Reference Position
21059 \begin_layout Standard
21065 \begin_inset Index idx
21068 \begin_layout Plain Layout
21069 LaTeX-packages ! hyperref
21082 dialog to link cross-references in the output, you will see that clicking
21083 on an image float reference jumps to the image label.
21084 The caption will be the first text part on the screen, so that you cannot
21085 see the image without scrolling.
21086 This is because the reference link anchor is placed at the position of
21088 With the use of the package
21093 \begin_inset Index idx
21096 \begin_layout Plain Layout
21097 LaTeX-packages ! hypcap
21102 , which is part of the LaTeX-package
21107 \begin_inset Index idx
21110 \begin_layout Plain Layout
21111 LaTeX-packages ! oberdiek
21116 , the link anchor is placed at the beginning of a float.
21117 To use this feature for figure floats, load
21121 in the document preamble with the line
21124 \begin_layout Standard
21129 usepackage[figure]{hypcap}
21132 \begin_layout Standard
21137 for all float types but this is not recommended for stability reasons.
21138 For more information, have a look at
21143 \begin_inset CommandInset citation
21152 \begin_layout Standard
21153 \begin_inset Note Greyedout
21156 \begin_layout Plain Layout
21165 has no effect on references to subfigures.
21173 \begin_layout Section
21175 \begin_inset CommandInset label
21177 name "sec:Float-Placement"
21182 \begin_inset Index idx
21185 \begin_layout Plain Layout
21194 \begin_layout Standard
21195 Right-clicking on a float-box opens a dialog where you can alter the placement
21196 options that LaTeX uses for positioning the float.
21197 \begin_inset Newline newline
21203 \begin_inset space ~
21208 is only useful for two-column documents: If you select it, the float will
21209 span both columns on the page instead of being confined to just one.
21210 \begin_inset Newline newline
21216 \begin_inset space ~
21221 is used to rotate floats, see section
21222 \begin_inset CommandInset ref
21224 reference "sec:Rotated-Floats"
21231 \begin_layout Standard
21232 You can use one ore more of the following options in the float dialog to
21233 set the placement for a particular float when you uncheck the option
21236 \begin_inset space ~
21240 \begin_inset space ~
21248 \begin_layout Description
21250 \begin_inset space ~
21254 \begin_inset space ~
21257 possible try to place the float on the position where it has been inserted
21260 \begin_layout Description
21262 \begin_inset space ~
21266 \begin_inset space ~
21269 page try to place the float at the top of the current page
21272 \begin_layout Description
21274 \begin_inset space ~
21278 \begin_inset space ~
21281 page try to place the float at the bottom of the current page
21284 \begin_layout Description
21286 \begin_inset space ~
21290 \begin_inset space ~
21293 floats try to place the float on its own page
21296 \begin_layout Standard
21297 The order of the above option is
21302 That means, if you use the default placement, LaTeX will first try out
21306 \begin_inset space ~
21310 \begin_inset space ~
21318 \begin_inset space ~
21322 \begin_inset space ~
21327 , and then the others.
21328 If you do not use the default, LaTeX will try only the checked options
21329 but in the same order.
21331 \begin_inset space ~
21334 placements are possible the procedure is internally repeated but it is tried
21335 to put the float on the following page.
21338 \begin_layout Standard
21339 By default, each option has its own rules:
21342 \begin_layout Labeling
21343 \labelwidthstring 00.00.0000
21347 \begin_inset space ~
21351 \begin_inset space ~
21356 only floats occupying less than 70
21357 \begin_inset space \thinspace{}
21360 % of the page can be placed at the top of a page (
21369 \begin_layout Labeling
21370 \labelwidthstring 00.00.0000
21374 \begin_inset space ~
21378 \begin_inset space ~
21383 : only floats occupying less than 30
21384 \begin_inset space \thinspace{}
21387 % of the page can be placed at the bottom of a page.
21397 \begin_layout Labeling
21398 \labelwidthstring 00.00.0000
21402 \begin_inset space ~
21406 \begin_inset space ~
21411 : only if more than 50
21412 \begin_inset space \thinspace{}
21415 % of the page are occupied by floats, several floats can be set together
21426 \begin_layout Standard
21427 If you don't like these rules, you can ignore them by using the additional
21431 \begin_inset space ~
21435 \begin_inset space ~
21441 \begin_inset Newline newline
21444 You can also redefine the rules with LaTeX-commands that are given in parenthese
21445 s after the rules description above.
21446 To increase for example the often too small default of the bottom-rule
21448 \begin_inset space \thinspace{}
21451 % of the page, add this line to your document preamble:
21454 \begin_layout Standard
21461 bottomfraction}{0.5}
21464 \begin_layout Standard
21465 Sometimes you might need, under all circumstances, a float to be placed
21466 exactly at the position where it is inserted.
21467 For this case you can use the option
21470 \begin_inset space ~
21476 Use this option very rarely and only if the document is almost ready to
21477 be printed, because the float is then no longer able to
21478 \begin_inset Quotes eld
21482 \begin_inset Quotes erd
21485 when you change your document and this will often destroy the page layout.
21488 \begin_layout Standard
21489 There are no placement options for text wrap floats, because they are always
21490 surrounded by the text of a certain paragraph.
21491 \begin_inset VSpace bigskip
21497 \begin_layout Standard
21498 Sometimes you have the problem that a float is placed at the top of a page
21499 while its corresponding section starts at the middle of the page, so that
21500 the reader could think the float is part of the previous section.
21501 To avoid this the LaTeX-command
21508 It suppresses a given float placement for the page where it is inserted
21509 and can therefore be used to avoid floats being set before a section starts.
21510 To get this, add these commands to your document preamble:
21513 \begin_layout Standard
21523 \begin_inset Newline newline
21537 \begin_layout Standard
21538 You can define the same for all section headings, like chapters and subsections.
21539 This definition is not recommended to be used for small text parts like
21540 subsubsections because LaTeX may then have problems finding a suitable
21544 \begin_layout Standard
21545 \begin_inset VSpace bigskip
21548 In some cases it is required to have all figures/tables at the end of the
21550 For this purpose the LaTeX-package
21555 \begin_inset Index idx
21558 \begin_layout Plain Layout
21559 LaTeX-packages ! endfloat
21565 It puts all figure and table floats at the end of the document into their
21567 At the original float position a text hint like
21568 \begin_inset Quotes eld
21574 \begin_inset space ~
21580 \begin_inset Quotes erd
21584 The endfloat-package is loaded in the preamble with the line
21587 \begin_layout Standard
21592 usepackage[options]{endfloat}
21595 \begin_layout Standard
21596 There are various package options to format the created figure/table sections.
21597 For more information we refer to the
21602 \begin_inset CommandInset citation
21609 \begin_inset Newline newline
21613 \begin_inset Note Greyedout
21616 \begin_layout Plain Layout
21621 doesn't provide an automatic translation for the text hint, you have to
21622 do this manually, see section
21623 \begin_inset space ~
21627 \begin_inset CommandInset citation
21639 \begin_inset Newline newline
21643 \begin_inset Note Greyedout
21646 \begin_layout Plain Layout
21651 There is currently a bug in
21655 when the caption contains a German
21656 \begin_inset Quotes eld
21660 \begin_inset Quotes erd
21664 Use in this case the command
21665 \begin_inset Quotes eld
21675 \begin_inset Quotes erd
21678 in TeX-Code instead of
21679 \begin_inset Quotes eld
21683 \begin_inset Quotes erd
21694 \begin_layout Standard
21695 \begin_inset VSpace bigskip
21698 For more details about float placements, have a look at LaTeX books,
21699 \begin_inset CommandInset citation
21701 key "latexcompanion,latexguide,latexbook"
21708 \begin_layout Section
21710 \begin_inset CommandInset label
21712 name "sec:Rotated-Floats"
21717 \begin_inset Index idx
21720 \begin_layout Plain Layout
21729 \begin_layout Standard
21730 Especially for wide tables you might have floats rotated.
21731 To rotate a whole float including the caption, right-click on the float-box
21735 \begin_inset space ~
21743 \begin_layout Standard
21744 Rotated floats are always placed on a page of their own (or column of their
21745 own; in case you have a multi-column document).
21746 You can let them span several columns using the float settings option
21749 \begin_inset space ~
21755 Floats are rotated so that you can read them from the outside margin.
21756 To force a certain rotation direction for all pages, you can add either
21765 to the document class options.
21768 \begin_layout Standard
21769 Referencing rotated floats is the same as for normal floats, the caption
21770 format is also the same: Table
21771 \begin_inset space ~
21775 \begin_inset CommandInset ref
21777 reference "tab:Rotated-table"
21781 is an example of a rotated table float.
21784 \begin_layout Standard
21785 \begin_inset Note Greyedout
21788 \begin_layout Plain Layout
21793 Not all DVI-viewers are able to display rotated floats.
21801 \begin_layout Standard
21802 \begin_inset Float table
21807 \begin_layout Plain Layout
21808 \begin_inset Caption
21810 \begin_layout Plain Layout
21811 \begin_inset CommandInset label
21813 name "tab:Rotated-table"
21825 \begin_layout Plain Layout
21827 \begin_inset Tabular
21828 <lyxtabular version="3" rows="1" columns="5">
21829 <features tabularvalignment="middle">
21830 <column alignment="center" valignment="top" width="0">
21831 <column alignment="center" valignment="top" width="0">
21832 <column alignment="center" valignment="top" width="0">
21833 <column alignment="center" valignment="top" width="0">
21834 <column alignment="center" valignment="top" width="0">
21836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21839 \begin_layout Plain Layout
21845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21848 \begin_layout Plain Layout
21854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21857 \begin_layout Plain Layout
21863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21866 \begin_layout Plain Layout
21872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21875 \begin_layout Plain Layout
21894 \begin_layout Section
21896 \begin_inset Index idx
21899 \begin_layout Plain Layout
21908 \begin_layout Standard
21909 Subfloats are for example used when a figure consists of several images.
21910 They are created by inserting a float into an existing float.
21911 The placement of the subfloats can be controlled in the same way as for
21912 paragraphs as shown in table
21913 \begin_inset space ~
21917 \begin_inset CommandInset ref
21919 reference "tab:Two-subtables-side"
21924 \begin_inset CommandInset ref
21926 reference "tab:Two-subtables-upon"
21933 \begin_layout Standard
21934 Referencing subfloats works as for normal floats: Table
21935 \begin_inset space ~
21939 \begin_inset CommandInset ref
21941 reference "tab:This-is-subtable-a"
21946 \begin_inset CommandInset ref
21948 reference "tab:This-is-subtable-b"
21952 are subtables of table
21953 \begin_inset space ~
21957 \begin_inset CommandInset ref
21959 reference "tab:Two-subtables-side"
21966 \begin_layout Standard
21967 \begin_inset Float table
21972 \begin_layout Plain Layout
21973 \begin_inset Caption
21975 \begin_layout Plain Layout
21976 \begin_inset CommandInset label
21978 name "tab:Two-subtables-side"
21982 Two subtables placed side by side.
21990 \begin_layout Plain Layout
21992 \begin_inset space \hfill{}
21996 \begin_inset Float table
22001 \begin_layout Plain Layout
22002 \begin_inset Caption
22004 \begin_layout Plain Layout
22005 \begin_inset CommandInset label
22007 name "tab:This-is-subtable-a"
22011 This is subtable a.
22019 \begin_layout Plain Layout
22021 \begin_inset Tabular
22022 <lyxtabular version="3" rows="1" columns="5">
22023 <features tabularvalignment="middle">
22024 <column alignment="center" valignment="top" width="0">
22025 <column alignment="center" valignment="top" width="0">
22026 <column alignment="center" valignment="top" width="0">
22027 <column alignment="center" valignment="top" width="0">
22028 <column alignment="center" valignment="top" width="0">
22030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22033 \begin_layout Plain Layout
22039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22042 \begin_layout Plain Layout
22048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22051 \begin_layout Plain Layout
22057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22060 \begin_layout Plain Layout
22066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22069 \begin_layout Plain Layout
22086 \begin_inset space \hfill{}
22090 \begin_inset Float table
22095 \begin_layout Plain Layout
22096 \begin_inset Caption
22098 \begin_layout Plain Layout
22099 \begin_inset CommandInset label
22101 name "tab:This-is-subtable-b"
22105 This is subtable b.
22113 \begin_layout Plain Layout
22115 \begin_inset Tabular
22116 <lyxtabular version="3" rows="1" columns="5">
22117 <features tabularvalignment="middle">
22118 <column alignment="center" valignment="top" width="0">
22119 <column alignment="center" valignment="top" width="0">
22120 <column alignment="center" valignment="top" width="0">
22121 <column alignment="center" valignment="top" width="0">
22122 <column alignment="center" valignment="top" width="0">
22124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22127 \begin_layout Plain Layout
22133 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22136 \begin_layout Plain Layout
22142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22145 \begin_layout Plain Layout
22151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22154 \begin_layout Plain Layout
22160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22163 \begin_layout Plain Layout
22180 \begin_inset space \hfill{}
22191 \begin_layout Standard
22192 \begin_inset Float table
22197 \begin_layout Plain Layout
22198 \begin_inset Caption
22200 \begin_layout Plain Layout
22201 \begin_inset CommandInset label
22203 name "tab:Two-subtables-upon"
22207 Two subtables placed one above the other.
22208 (a) table with 4 cells, (b) table with 5 cells.
22216 \begin_layout Plain Layout
22218 \begin_inset Float table
22223 \begin_layout Plain Layout
22224 \begin_inset Caption
22226 \begin_layout Plain Layout
22235 \begin_layout Plain Layout
22237 \begin_inset Tabular
22238 <lyxtabular version="3" rows="1" columns="4">
22239 <features tabularvalignment="middle">
22240 <column alignment="center" valignment="top" width="0">
22241 <column alignment="center" valignment="top" width="0">
22242 <column alignment="center" valignment="top" width="0">
22243 <column alignment="center" valignment="top" width="0">
22245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22248 \begin_layout Plain Layout
22254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22257 \begin_layout Plain Layout
22263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22266 \begin_layout Plain Layout
22272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22275 \begin_layout Plain Layout
22294 \begin_layout Plain Layout
22296 \begin_inset Float table
22301 \begin_layout Plain Layout
22302 \begin_inset Caption
22304 \begin_layout Plain Layout
22313 \begin_layout Plain Layout
22315 \begin_inset Tabular
22316 <lyxtabular version="3" rows="1" columns="5">
22317 <features tabularvalignment="middle">
22318 <column alignment="center" valignment="top" width="0">
22319 <column alignment="center" valignment="top" width="0">
22320 <column alignment="center" valignment="top" width="0">
22321 <column alignment="center" valignment="top" width="0">
22322 <column alignment="center" valignment="top" width="0">
22324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22327 \begin_layout Plain Layout
22333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22336 \begin_layout Plain Layout
22342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22345 \begin_layout Plain Layout
22351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22354 \begin_layout Plain Layout
22360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22363 \begin_layout Plain Layout
22387 \begin_layout Section
22388 Floats Side by Side
22389 \begin_inset Index idx
22392 \begin_layout Plain Layout
22393 Floats ! Side by side
22401 \begin_layout Standard
22402 To place floats side by side, as in Figures
22403 \begin_inset space ~
22407 \begin_inset CommandInset ref
22409 reference "fig:Float-left"
22414 \begin_inset CommandInset ref
22416 reference "fig:Float-right"
22425 In it two minipage boxes are inserted.
22429 \begin_layout Plain Layout
22430 Minipages are explained in section
22431 \begin_inset space ~
22435 \begin_inset CommandInset ref
22437 reference "sec:Minipages"
22446 The width is set to 45
22447 \begin_inset space \thinspace{}
22451 \begin_inset space \thinspace{}
22454 column% and the box alignment to
22459 The minipage boxes contain the image and the caption in the same way as
22460 they are in a float.
22461 The only difference is that the image unit
22464 \begin_inset space ~
22468 \begin_inset space ~
22473 is now calculated according to the width of the minipage boxes.
22476 \begin_layout Standard
22477 \begin_inset Float figure
22482 \begin_layout Plain Layout
22483 \begin_inset Box Frameless
22493 height_special "totalheight"
22496 \begin_layout Plain Layout
22498 \begin_inset Graphics
22499 filename clipart/mobius.eps
22502 scaleBeforeRotation
22509 \begin_layout Plain Layout
22510 \begin_inset Caption
22512 \begin_layout Plain Layout
22513 \begin_inset CommandInset label
22515 name "fig:Float-left"
22519 Float on the left side.
22530 \begin_inset space \hfill{}
22534 \begin_inset Box Frameless
22544 height_special "totalheight"
22547 \begin_layout Plain Layout
22549 \begin_inset Graphics
22550 filename clipart/platypus.eps
22553 scaleBeforeRotation
22560 \begin_layout Plain Layout
22561 \begin_inset Caption
22563 \begin_layout Plain Layout
22564 \begin_inset CommandInset label
22566 name "fig:Float-right"
22570 Float on the right side.
22583 \begin_layout Plain Layout
22592 \begin_layout Section
22594 \begin_inset Index idx
22597 \begin_layout Plain Layout
22598 Caption ! Formatting
22604 \begin_inset Index idx
22607 \begin_layout Plain Layout
22608 Floats ! Caption Formatting
22614 \begin_inset CommandInset label
22616 name "sec:Caption-Formatting"
22623 \begin_layout Standard
22628 environment is the default paragraph environment for
22633 On the LyX screen captions appear as label, e.
22634 \begin_inset space \thinspace{}
22638 \begin_inset space \space{}
22642 \begin_inset Quotes eld
22650 \begin_inset Quotes erd
22653 followed by the caption text.
22655 \begin_inset Quotes eld
22659 \begin_inset Quotes erd
22662 is the actual reference number.
22663 By default the label and the number are in the same font as the caption
22664 text and a colon follows the number to divide the label from the text.
22665 This caption format is not suitable for all document formats.
22669 \begin_layout Standard
22670 To change the default caption format, load the LaTeX-package
22675 \begin_inset Index idx
22678 \begin_layout Plain Layout
22679 LaTeX-packages ! caption
22684 in the document preamble with this line:
22687 \begin_layout Standard
22692 usepackage[format definition]{caption}
22695 \begin_layout Standard
22696 To have for example the label and the number in sans-serif bold font and
22697 the table captions always above the table as in this document, use the
22701 \begin_layout Standard
22706 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22709 \begin_layout Standard
22710 You can also define different caption formats for the different float types.
22711 In this case load the
22715 package without format specific options and define the different formats
22716 with the help of the command
22719 \begin_layout Standard
22724 captionsetup[float type]{format definition}
22727 \begin_layout Standard
22728 in the document preamble.
22729 For example the caption formats of Figure
22730 \begin_inset space ~
22734 \begin_inset CommandInset ref
22736 reference "fig:This-is-an-fig"
22741 \begin_inset space ~
22745 \begin_inset CommandInset ref
22747 reference "tab:This-is-an-tab"
22751 can be created using these commands in the document preamble:
22754 \begin_layout Standard
22759 usepackage[tableposition=top]{caption}
22762 \begin_inset Newline newline
22769 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22770 \begin_inset Newline newline
22774 \begin_inset Phantom HPhantom
22777 \begin_layout Plain Layout
22782 captionsetup[figure]{
22788 \begin_inset Newline newline
22793 captionsetup[table]{labelfont={bf,sf}}
22796 \begin_layout Standard
22797 \begin_inset Note Greyedout
22800 \begin_layout Plain Layout
22809 has no effect when a
22814 \begin_inset Index idx
22817 \begin_layout Plain Layout
22818 LaTeX-packages ! KOMA-Script
22823 document class is used.
22824 In this case the document class option
22826 captions=tableheading
22836 \begin_layout Standard
22837 For more information about the package
22841 we refer to its documentation
22842 \begin_inset CommandInset citation
22851 \begin_layout Standard
22852 To change the label name from e.
22853 \begin_inset space \thinspace{}
22857 \begin_inset space \space{}
22861 \begin_inset Quotes eld
22865 \begin_inset Quotes erd
22869 \begin_inset Quotes eld
22873 \begin_inset Quotes erd
22876 use this preamble command:
22879 \begin_layout Standard
22886 fnum@figure}{Image~
22891 \begin_layout Standard
22898 inserts the figure number and
22901 \begin_inset Quotes eld
22907 \begin_inset Quotes erd
22910 creates a protected space.
22913 \begin_layout Standard
22914 \begin_inset VSpace bigskip
22922 \begin_inset Index idx
22925 \begin_layout Plain Layout
22926 LaTeX-packages ! KOMA-Script
22933 article (KOMA-Script)
22941 letter (KOMA-Script)
22945 report (KOMA-Script)
22948 \begin_inset space \thinspace{}
22951 ), you can alternatively to the
22959 's built-in command
22966 For example, to have the caption label in bold, add this command to your
22970 \begin_layout Standard
22975 setkomafont{captionlabel}{
22980 \begin_layout Standard
22981 For more information about
22992 \begin_inset CommandInset citation
23001 \begin_layout Standard
23005 \begin_layout Plain Layout
23009 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23016 \begin_inset Note Note
23019 \begin_layout Plain Layout
23020 The caption format is changed only for this example.
23028 \begin_layout Standard
23029 \begin_inset Float figure
23035 \begin_layout Plain Layout
23037 \begin_inset Graphics
23038 filename clipart/mobius.eps
23041 scaleBeforeRotation
23048 \begin_layout Plain Layout
23049 \begin_inset Caption
23051 \begin_layout Plain Layout
23052 \begin_inset CommandInset label
23054 name "fig:This-is-an-fig"
23058 This is an example figure caption that is longer than one line to show the
23059 different caption format.
23060 Here a self-defined caption format is used.
23073 \begin_layout Standard
23077 \begin_layout Plain Layout
23081 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23090 \begin_layout Standard
23091 \begin_inset Float table
23097 \begin_layout Plain Layout
23098 \begin_inset Caption
23100 \begin_layout Plain Layout
23101 \begin_inset CommandInset label
23103 name "tab:This-is-an-tab"
23107 This is an example table caption that is longer than one line to show the
23108 different caption format.
23109 Here the standard caption format for tables in this document is used.
23117 \begin_layout Plain Layout
23119 \begin_inset Tabular
23120 <lyxtabular version="3" rows="1" columns="5">
23121 <features tabularvalignment="middle">
23122 <column alignment="center" valignment="top" width="0">
23123 <column alignment="center" valignment="top" width="0">
23124 <column alignment="center" valignment="top" width="0">
23125 <column alignment="center" valignment="top" width="0">
23126 <column alignment="center" valignment="top" width="0">
23128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23131 \begin_layout Plain Layout
23137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23140 \begin_layout Plain Layout
23146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23149 \begin_layout Plain Layout
23155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23158 \begin_layout Plain Layout
23164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23167 \begin_layout Plain Layout
23186 \begin_layout Section
23188 \begin_inset Index idx
23191 \begin_layout Plain Layout
23192 Caption ! Placement
23198 \begin_inset Index idx
23201 \begin_layout Plain Layout
23202 Floats ! Caption Placement
23208 \begin_inset CommandInset label
23210 name "sec:Caption-Placement"
23217 \begin_layout Standard
23218 The common caption placement rule is:
23221 \begin_layout Description
23222 Figure: Caption is set below the figure
23225 \begin_layout Description
23226 Table: Caption is set above the table
23229 \begin_layout Standard
23230 Having the caption above the table is unfortunately not supported in LaTeX's
23232 That means if you are using the document classes
23248 there will be no space between the caption and the table.
23249 To insert the necessary space, add the following option to the load command
23250 of the LaTeX-package
23254 in your document preamble
23258 \begin_layout Plain Layout
23260 \begin_inset space ~
23264 \begin_inset CommandInset ref
23266 reference "sec:Caption-Formatting"
23270 for more information of the package
23282 \begin_layout Standard
23288 \begin_layout Standard
23294 \begin_inset Index idx
23297 \begin_layout Plain Layout
23298 LaTeX-packages ! KOMA-Script
23305 article (KOMA-Script)
23313 letter (KOMA-Script)
23317 report (KOMA-Script)
23320 \begin_inset space \thinspace{}
23323 ), you can alternatively to the
23327 package set the document class option
23329 captions=tableheading
23334 \begin_layout Standard
23335 \begin_inset VSpace bigskip
23338 It is also possible to set the caption beside a figure or table.
23339 To get this the LaTeX-package
23344 \begin_inset Index idx
23347 \begin_layout Plain Layout
23348 LaTeX-packages ! sidecap
23353 has to be loaded in the document preamble with the line
23356 \begin_layout Standard
23361 usepackage[option]{sidecap}
23364 \begin_layout Standard
23365 If you set no option, the caption is placed on the side of the outer page
23366 margin – to the right on odd pages, to the left on even pages.
23367 You can change the placement to inner margin with the option
23372 To force the placement always to the right or left, use the option
23383 \begin_layout Standard
23387 \begin_layout Plain Layout
23397 \begin_inset Note Note
23400 \begin_layout Plain Layout
23401 The following section will only be displayed when the LaTeX-package
23413 \begin_layout Standard
23414 To place in LyX the caption of a float on the side, it is necessary to add
23415 these commands to the document preamble:
23418 \begin_layout Standard
23420 \begin_inset CommandInset line
23431 \begin_layout Standard
23439 \begin_inset Newline newline
23443 \begin_inset Phantom HPhantom
23446 \begin_layout Plain Layout
23449 \begin_inset space ~
23464 \begin_inset Newline newline
23468 \begin_inset Phantom HPhantom
23471 \begin_layout Plain Layout
23474 \begin_inset space ~
23489 \begin_inset Newline newline
23493 \begin_inset Phantom HPhantom
23496 \begin_layout Plain Layout
23499 \begin_inset space ~
23509 renewenvironment{table}{
23516 \begin_layout Standard
23524 \begin_inset Newline newline
23528 \begin_inset Phantom HPhantom
23531 \begin_layout Plain Layout
23534 \begin_inset space ~
23549 \begin_inset Newline newline
23553 \begin_inset Phantom HPhantom
23556 \begin_layout Plain Layout
23559 \begin_inset space ~
23576 \begin_layout Standard
23584 \begin_inset Newline newline
23588 \begin_inset Phantom HPhantom
23591 \begin_layout Plain Layout
23594 \begin_inset space ~
23609 \begin_inset Newline newline
23613 \begin_inset Phantom HPhantom
23616 \begin_layout Plain Layout
23619 \begin_inset space ~
23634 \begin_inset Newline newline
23638 \begin_inset Phantom HPhantom
23641 \begin_layout Plain Layout
23644 \begin_inset space ~
23654 renewenvironment{figure}{
23661 \begin_layout Standard
23669 \begin_inset Newline newline
23673 \begin_inset Phantom HPhantom
23676 \begin_layout Plain Layout
23679 \begin_inset space ~
23694 \begin_inset Newline newline
23698 \begin_inset Phantom HPhantom
23701 \begin_layout Plain Layout
23704 \begin_inset space ~
23721 \begin_layout Standard
23723 \begin_inset CommandInset line
23734 \begin_layout Standard
23735 The commands allow you to redefine the floats so that the caption is set
23737 For figure floats use the command
23740 \begin_layout Standard
23748 \begin_layout Standard
23749 in TeX-Code before the float.
23750 After the float insert the command
23753 \begin_layout Standard
23761 \begin_layout Standard
23762 in TeX-Code to get back to the original float definition.
23765 \begin_layout Standard
23766 For table floats use the corresponding commands
23769 \begin_layout Standard
23783 \begin_layout Standard
23785 \begin_inset space ~
23789 \begin_inset CommandInset ref
23791 reference "fig:cap-beside-fig"
23796 \begin_inset space ~
23800 \begin_inset CommandInset ref
23802 reference "tab:cap-beside-tab"
23806 are examples where the caption is set beside.
23809 \begin_layout Standard
23810 You can see in the examples that the caption text appears at the top of
23811 the floats for table floats and at the bottom for figure floats.
23812 To change this, you can use the command
23815 \begin_layout Standard
23820 sidecaptionvpos{float type}{placement}
23823 \begin_layout Standard
23824 in the document preamble or in TeX-Code before the float.
23825 The float type is either
23833 , the placement can be
23834 \begin_inset Quotes eld
23842 \begin_inset Quotes erd
23846 \begin_inset Quotes eld
23854 \begin_inset Quotes erd
23858 \begin_inset Quotes eld
23866 \begin_inset Quotes erd
23870 To have for example the caption of figure floats vertically centered, use
23874 \begin_layout Standard
23879 sidecaptionvpos{figure}{c}
23882 \begin_layout Standard
23883 This was used for Figure
23884 \begin_inset space ~
23888 \begin_inset CommandInset ref
23890 reference "fig:cap-beside-fig-2"
23897 \begin_layout Standard
23898 \begin_inset VSpace medskip
23901 For more information about the package
23905 we refer to its documentation
23906 \begin_inset CommandInset citation
23915 \begin_layout Standard
23916 \begin_inset Note Greyedout
23919 \begin_layout Plain Layout
23929 \begin_inset Index idx
23932 \begin_layout Plain Layout
23933 LaTeX-packages ! hypcap
23938 , described in section
23939 \begin_inset space ~
23943 \begin_inset CommandInset ref
23945 reference "sub:Reference-Position"
23949 , has no effect on floats with the caption set beside.
23957 \begin_layout Standard
23961 \begin_layout Plain Layout
23973 \begin_layout Standard
23974 \begin_inset Float figure
23979 \begin_layout Plain Layout
23980 \begin_inset Graphics
23981 filename clipart/escher-lsd.eps
23983 scaleBeforeRotation
23990 \begin_layout Plain Layout
23991 \begin_inset Caption
23993 \begin_layout Plain Layout
23994 \begin_inset CommandInset label
23996 name "fig:cap-beside-fig"
24000 This is a caption beside a figure.
24013 \begin_layout Standard
24017 \begin_layout Plain Layout
24029 \begin_layout Standard
24030 \begin_inset Float table
24035 \begin_layout Plain Layout
24036 \begin_inset Caption
24038 \begin_layout Plain Layout
24039 \begin_inset CommandInset label
24041 name "tab:cap-beside-tab"
24045 This is a caption beside a table.
24053 \begin_layout Plain Layout
24054 \begin_inset Tabular
24055 <lyxtabular version="3" rows="4" columns="5">
24056 <features tabularvalignment="middle">
24057 <column alignment="center" valignment="top" width="0">
24058 <column alignment="center" valignment="top" width="0">
24059 <column alignment="center" valignment="top" width="0">
24060 <column alignment="center" valignment="top" width="0">
24061 <column alignment="center" valignment="top" width="0">
24063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24066 \begin_layout Plain Layout
24072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24075 \begin_layout Plain Layout
24081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24084 \begin_layout Plain Layout
24090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24093 \begin_layout Plain Layout
24099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24102 \begin_layout Plain Layout
24110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24113 \begin_layout Plain Layout
24119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24122 \begin_layout Plain Layout
24128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24131 \begin_layout Plain Layout
24137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24140 \begin_layout Plain Layout
24146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24149 \begin_layout Plain Layout
24157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24160 \begin_layout Plain Layout
24166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24169 \begin_layout Plain Layout
24175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24178 \begin_layout Plain Layout
24184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24187 \begin_layout Plain Layout
24193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24196 \begin_layout Plain Layout
24204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24207 \begin_layout Plain Layout
24213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24216 \begin_layout Plain Layout
24222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24225 \begin_layout Plain Layout
24231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24234 \begin_layout Plain Layout
24240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24243 \begin_layout Plain Layout
24262 \begin_layout Standard
24266 \begin_layout Plain Layout
24278 \begin_layout Standard
24282 \begin_layout Plain Layout
24286 sidecaptionvpos{figure}{c}
24292 \begin_inset Float figure
24297 \begin_layout Plain Layout
24298 \begin_inset Graphics
24299 filename clipart/escher-lsd.eps
24301 scaleBeforeRotation
24308 \begin_layout Plain Layout
24309 \begin_inset Caption
24311 \begin_layout Plain Layout
24312 \begin_inset CommandInset label
24314 name "fig:cap-beside-fig-2"
24318 This is a vertically centered caption beside a figure.
24331 \begin_layout Standard
24335 \begin_layout Plain Layout
24347 \begin_layout Standard
24351 \begin_layout Plain Layout
24361 \begin_inset Note Note
24364 \begin_layout Plain Layout
24365 The following will be displayed when the LaTeX-package
24377 \begin_layout Standard
24378 You need to install the LaTeX-package
24382 to see the following part of this section in the output.
24385 \begin_layout Standard
24389 \begin_layout Plain Layout
24401 \begin_layout Section
24403 \begin_inset Index idx
24406 \begin_layout Plain Layout
24407 Floats ! Float Lists
24415 \begin_layout Standard
24416 Similar to the table of contents where the sections of the document are
24417 listed, there are listings for all float types, like the figures of the
24419 You can insert them via the
24421 Insert\SpecialChar \menuseparator
24423 \begin_inset space ~
24427 \begin_inset space ~
24435 \begin_layout Standard
24436 The list entries are the float captions or its short title, the float number,
24437 and the page number where they appear in the document.
24440 \begin_layout Standard
24441 You can find the list of figures and tables at the end of this document.
24444 \begin_layout Chapter
24448 \begin_layout Section
24450 \begin_inset Index idx
24453 \begin_layout Plain Layout
24462 \begin_layout Standard
24463 Notes are inserted with the toolbar button
24464 \begin_inset Graphics
24465 filename ../images/note-insert.png
24467 scaleBeforeRotation
24473 Insert\SpecialChar \menuseparator
24477 There are three types of notes:
24480 \begin_layout Description
24482 \begin_inset space ~
24485 Note This note type is for internal notes that won't appear in the output.
24486 Its note-box looks like this:
24487 \begin_inset Newline newline
24491 \begin_inset Newline newline
24495 \begin_inset Graphics
24496 filename clipart/LyXNoteImageQt4.png
24499 scaleBeforeRotation
24504 \begin_inset Note Note
24507 \begin_layout Plain Layout
24508 This is text in a note box that doesn't appear in the output.
24516 \begin_layout Description
24517 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24518 ent, when you export the document to LaTeX via the menu
24520 File\SpecialChar \menuseparator
24521 Export\SpecialChar \menuseparator
24522 LaTeX (pdflatex) / (plain)
24525 Its note-box looks like this:
24526 \begin_inset Newline newline
24530 \begin_inset Newline newline
24534 \begin_inset Graphics
24535 filename clipart/CommentNoteImageQt4.png
24538 scaleBeforeRotation
24543 \begin_inset Note Comment
24546 \begin_layout Plain Layout
24547 This is text in a note box that only appears as comment in LaTeX-files.
24555 \begin_layout Description
24557 \begin_inset space ~
24560 Out This note will appear in the output as grey text.
24561 Its note-box looks like this:
24562 \begin_inset Newline newline
24566 \begin_inset Newline newline
24570 \begin_inset Graphics
24571 filename clipart/GreyedOutNoteImageQt4.png
24574 scaleBeforeRotation
24579 \begin_inset Newline newline
24586 \begin_layout Plain Layout
24590 renewenvironment{lyxgreyedout}
24593 \begin_layout Plain Layout
24597 textcolor[gray]{0.8}
24607 \begin_inset Note Greyedout
24610 \begin_layout Plain Layout
24615 \begin_layout Plain Layout
24616 This is an example footnote within a greyed out note.
24621 of a comment that appears in the output as grey text.
24630 \begin_layout Plain Layout
24634 renewenvironment{lyxgreyedout}
24637 \begin_layout Plain Layout
24651 \begin_inset Note Note
24654 \begin_layout Plain Layout
24655 The greyed out note is here redefined to show it with the original LyX definitio
24656 n because greyed out notes are redefined in the preamble of this document,
24657 as described below, to have blue text.
24663 \begin_inset Newline newline
24667 \begin_inset Newline newline
24670 As you can see in the example, the first line of greyed out notes is a bit
24671 indented and greyed out notes can have footnotes.
24674 \begin_layout Standard
24675 \begin_inset VSpace bigskip
24678 When you use the toolbar button
24679 \begin_inset Graphics
24680 filename ../images/note-insert.png
24682 scaleBeforeRotation
24689 \begin_inset space ~
24695 You can switch between the five note types by right-clicking on the note-box.
24700 If you want to turn existing text into a note, mark it and click on the
24714 To change a note to text, press the backspace key when the cursor is in
24715 the first position of a note, or press the delete key when the cursor is
24716 in the very last position of the note, respectively.
24719 \begin_layout Standard
24720 \begin_inset VSpace bigskip
24723 You can change the text color of the greyed out notes in the preamble with
24724 the following command:
24727 \begin_layout Standard
24732 renewenvironment{lyxgreyedout}
24733 \begin_inset Newline newline
24737 \begin_inset Phantom HPhantom
24740 \begin_layout Plain Layout
24743 \begin_inset space ~
24760 \begin_layout Standard
24761 The available colors and the method to define colors is explained in section
24762 \begin_inset space ~
24766 \begin_inset CommandInset ref
24768 reference "sec:Colored-Tables"
24775 \begin_layout Standard
24776 Notes that appear in blue in this document are set using greyed out notes
24780 \begin_layout Section
24782 \begin_inset CommandInset label
24784 name "sec:Footnotes"
24789 \begin_inset Index idx
24792 \begin_layout Plain Layout
24799 \begin_inset Index idx
24802 \begin_layout Plain Layout
24811 \begin_layout Standard
24812 Footnotes can be inserted using the toolbar button
24813 \begin_inset Graphics
24814 filename ../images/footnote-insert.png
24816 scaleBeforeRotation
24822 Insert\SpecialChar \menuseparator
24834 then the following footnote-box:
24835 \begin_inset Graphics
24836 filename clipart/footnoteQt4.png
24838 scaleBeforeRotation
24846 where you can enter the footnote text.
24847 If you want to turn existing text into a footnote, mark it and click on
24869 to text, press the Backspace key when the cursor is in the first position
24878 , or press the Delete key when the cursor is in the very last position of
24890 \begin_layout Standard
24891 Here is an example footnote:
24899 \begin_layout Plain Layout
24900 \begin_inset CommandInset label
24902 name "foot:This-is-an"
24906 This is an example footnote.
24919 \begin_layout Plain Layout
24923 newcounter{MyRepeatFoot}
24926 \begin_layout Plain Layout
24930 setcounter{MyRepeatFoot}{
24940 \begin_layout Standard
24941 The footnote will appear in the output as a superscript number at the text
24942 position where the footnote box is placed.
24943 The footnote text is placed at the bottom of the current page.
24944 The footnote number is calculated by LaTeX; the numbers are consecutive.
24945 It depends on your document-class, whether the footnote number is reset
24949 \begin_layout Standard
24950 Footnotes can be referenced like floats: Insert a label into the footnote
24951 and cross-reference this label in the text as described in section
24952 \begin_inset space ~
24956 \begin_inset CommandInset ref
24958 reference "sec:Referencing-Floats"
24963 \begin_inset Newline newline
24966 This is a cross-reference of Footnote
24967 \begin_inset space ~
24971 \begin_inset CommandInset ref
24973 reference "foot:This-is-an"
24980 \begin_layout Standard
24981 \begin_inset VSpace defskip
24984 Footnotes in tables are not printed by LaTeX due to technical reasons.
24985 However there exists another method to print them: Instead of the footnote
24992 is inserted as TeX-code.
24993 The text of the footnote is entered as an argument of the TeX-code command
25001 \begin_inset Newline newline
25004 This was done for the following table with the command
25007 \begin_layout Standard
25014 Printed table footnote.
25019 \begin_layout Standard
25020 \begin_inset Tabular
25021 <lyxtabular version="3" rows="2" columns="1">
25022 <features tabularvalignment="middle">
25023 <column alignment="center" valignment="top" width="0">
25025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25028 \begin_layout Plain Layout
25029 This an example text.
25033 \begin_layout Plain Layout
25034 This footnote will not be printed!
25046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25049 \begin_layout Plain Layout
25050 This an example text.
25054 \begin_layout Plain Layout
25077 \begin_layout Plain Layout
25086 Printed table footnote.
25090 \begin_layout Plain Layout
25100 \begin_layout Standard
25101 Footnotes in longtables are described in section
25102 \begin_inset space ~
25106 \begin_inset CommandInset ref
25108 reference "sub:Footnotes-in-Longtables"
25115 \begin_layout Standard
25116 Footnotes in minipage boxes are printed, but inside the box and with a different
25117 numbering because a minipage box is like a page inside a page.
25118 (For more about minipages, see section
25119 \begin_inset space ~
25123 \begin_inset CommandInset ref
25125 reference "sec:Minipages"
25129 .) To get a footnote in the minipage that is output at the bottom of the
25130 page like normal footnotes, also use the method of
25145 \begin_layout Standard
25146 \begin_inset Box Frameless
25156 height_special "totalheight"
25159 \begin_layout Plain Layout
25160 This an example text in a minipage.
25164 \begin_layout Plain Layout
25165 Footnote in the minipage.
25173 \begin_layout Plain Layout
25174 This an example text in a minipage.
25178 \begin_layout Plain Layout
25195 \begin_layout Standard
25199 \begin_layout Plain Layout
25208 Footnote outside the minipage.
25212 \begin_layout Plain Layout
25222 \begin_layout Standard
25223 \begin_inset VSpace defskip
25229 \begin_layout Standard
25230 To refer to the same footnote several times without printing the footnote
25231 text every time, use the command
25235 footnotemark[number]
25238 \begin_inset Newline newline
25241 As you do not know the number of the repeating footnote while you are writing
25242 the text, you have to store its number.
25243 For the following footnote mark example, these commands were inserted in
25244 TeX-code after Footnote
25245 \begin_inset space ~
25249 \begin_inset CommandInset ref
25251 reference "foot:This-is-an"
25255 to store the footnote number:
25258 \begin_layout Standard
25263 newcounter{MyRepeatFoot}
25264 \begin_inset Newline newline
25269 setcounter{MyRepeatFoot}{
25274 \begin_layout Standard
25275 The footnote mark was then created with this command:
25278 \begin_layout Standard
25288 \begin_layout Standard
25289 Here is a repeated footnote:
25297 \begin_layout Plain Layout
25311 \begin_layout Standard
25312 If you want to repeat the previous footnote, you can omit the storage of
25313 the footnote number and just use this command instead:
25316 \begin_layout Standard
25326 \begin_layout Standard
25327 Here is another repeated footnote:
25335 \begin_layout Plain Layout
25349 \begin_layout Subsection
25351 \begin_inset CommandInset label
25353 name "sub:Footnote-Numbering"
25358 \begin_inset Index idx
25361 \begin_layout Plain Layout
25362 Footnotes ! Numbering
25370 \begin_layout Standard
25371 To reset the footnote number back to 1 after each section
25373 , add this command to your document preamble:
25376 \begin_layout Standard
25381 @addtoreset{footnote}{section}
25384 \begin_layout Standard
25385 \begin_inset VSpace bigskip
25388 The following preamble command changes the footnote numbering style to small
25392 \begin_layout Standard
25404 \begin_layout Standard
25408 \begin_layout Plain Layout
25421 This is a footnote with roman numbering:
25425 \begin_layout Plain Layout
25426 This is an example footnote with roman numbering.
25434 \begin_layout Standard
25435 To change the numbering style to capital roman numerals replace in the command
25450 \begin_inset Quotes eld
25454 \begin_inset Quotes erd
25457 footnotes with capital or small Latin letters use
25471 \begin_inset Quotes eld
25475 \begin_inset Quotes erd
25478 footnotes with symbols use
25487 \begin_layout Standard
25488 \begin_inset Note Greyedout
25491 \begin_layout Plain Layout
25496 You can only number 26 footnotes with Latin letters, because this numbering
25497 is limited to single letters.
25503 \begin_inset Newline newline
25507 \begin_inset Note Greyedout
25510 \begin_layout Plain Layout
25515 You can only number 9 footnotes with symbols.
25523 \begin_layout Standard
25524 To return to the default numbering style after you have changed to another
25537 in the command above.
25541 \begin_layout Plain Layout
25557 \begin_layout Standard
25558 \begin_inset VSpace bigskip
25564 \begin_layout Standard
25565 If you want to have footnotes numbered in the scheme
25566 \begin_inset Quotes eld
25570 \begin_inset Quotes erd
25573 , add the following command to your document preamble:
25576 \begin_layout Standard
25581 numberwithin{footnote}{chapter}
25584 \begin_layout Standard
25585 To be able to use the command
25594 \begin_inset space ~
25599 in the document settings the option
25602 \begin_inset space ~
25606 \begin_inset space ~
25610 \begin_inset space ~
25618 \begin_layout Standard
25622 \begin_layout Plain Layout
25626 numberwithin{footnote}{chapter}
25631 This is another example footnote:
25637 \begin_layout Plain Layout
25638 This is a footnote numbered in the scheme
25639 \begin_inset Quotes eld
25643 \begin_inset Quotes erd
25657 \begin_layout Plain Layout
25673 \begin_layout Standard
25674 \begin_inset Note Greyedout
25677 \begin_layout Plain Layout
25688 always prints out the footnote number as arabic number; previous redefinitions
25689 to get non-arabic numbers are overwritten.
25697 \begin_layout Standard
25698 So to get for example the scheme
25699 \begin_inset Quotes eld
25705 \begin_inset Quotes erd
25708 , use this command instead of
25717 \begin_layout Standard
25731 \begin_layout Subsection
25733 \begin_inset Index idx
25736 \begin_layout Plain Layout
25737 Footnotes ! Placement
25745 \begin_layout Standard
25746 If you have several footnotes in one page, they appear without vertical
25747 space between them at the bottom of the page.
25748 To make them more readable you can e.
25749 \begin_inset space \thinspace{}
25753 \begin_inset space \space{}
25757 \begin_inset space \thinspace{}
25760 mm space with the following preamble command:
25763 \begin_layout Standard
25773 \begin_inset Newline newline
25787 \begin_layout Standard
25788 \begin_inset VSpace bigskip
25791 In a two-column document the footnotes appear at the bottom of every column,
25793 \begin_inset space ~
25797 \begin_inset CommandInset ref
25799 reference "fig:Standard-footnote-placement"
25804 If the footnotes should only appear at the bottom of the right column,
25806 \begin_inset space ~
25810 \begin_inset CommandInset ref
25812 reference "fig:Footnote-placement-in"
25816 , use the LaTeX-package
25821 \begin_inset Index idx
25824 \begin_layout Plain Layout
25825 LaTeX-packages ! ftnright
25830 with this command in the document preamble:
25833 \begin_layout Standard
25838 usepackage{ftnright}
25841 \begin_layout Standard
25842 \begin_inset Float figure
25848 \begin_layout Plain Layout
25852 \begin_layout Plain Layout
25862 \begin_inset Graphics
25863 filename clipart/without_fntright.pdf
25865 scaleBeforeRotation
25873 \begin_layout Plain Layout
25883 \begin_layout Plain Layout
25884 \begin_inset Caption
25886 \begin_layout Plain Layout
25887 \begin_inset CommandInset label
25889 name "fig:Standard-footnote-placement"
25893 Standard footnote placement in two-column documents.
25906 \begin_layout Standard
25907 \begin_inset Float figure
25913 \begin_layout Plain Layout
25917 \begin_layout Plain Layout
25927 \begin_inset Graphics
25928 filename clipart/with_fntright.pdf
25930 scaleBeforeRotation
25938 \begin_layout Plain Layout
25948 \begin_layout Plain Layout
25949 \begin_inset Caption
25951 \begin_layout Plain Layout
25952 \begin_inset CommandInset label
25954 name "fig:Footnote-placement-in"
25958 Footnote placement in two-column documents when the LaTeX-package
25975 \begin_layout Standard
25976 \begin_inset VSpace bigskip
25979 In some scientific literature it is usual to collect the footnotes and print
25980 them in a separate paragraph at the end of a section, as in Figure
25981 \begin_inset space ~
25985 \begin_inset CommandInset ref
25987 reference "fig:Endnotes"
25992 They are then called
25993 \begin_inset Quotes eld
25997 \begin_inset Quotes erd
26001 \begin_inset Index idx
26004 \begin_layout Plain Layout
26010 To use endnotes instead of footnotes in your document, load in the menu
26013 Document\SpecialChar \menuseparator
26014 Settings\SpecialChar \menuseparator
26020 \begin_inset space ~
26024 \begin_inset space ~
26030 To insert the collected footnotes, insert the command
26033 \begin_layout Standard
26041 \begin_layout Standard
26042 in TeX-Code at the end of a section or chapter.
26045 \begin_layout Standard
26046 \begin_inset Float figure
26051 \begin_layout Plain Layout
26056 \begin_layout Plain Layout
26066 \begin_inset Graphics
26067 filename clipart/endnotes.pdf
26068 scaleBeforeRotation
26076 \begin_layout Plain Layout
26086 \begin_layout Plain Layout
26087 \begin_inset Caption
26089 \begin_layout Plain Layout
26090 \begin_inset CommandInset label
26092 name "fig:Endnotes"
26096 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26110 \begin_layout Standard
26111 \begin_inset VSpace medskip
26114 The paragraph heading for the endnotes isn't automatically translated into
26115 the document language, this must be done manually.
26116 The following preamble command translates the default English
26117 \begin_inset Quotes eld
26121 \begin_inset Quotes erd
26125 \begin_inset Quotes eld
26129 \begin_inset Quotes erd
26135 \begin_layout Standard
26142 notesname}{Anmerkungen}
26145 \begin_layout Standard
26146 \begin_inset VSpace medskip
26149 The numbering of endnotes can be changed like the footnote numbering as
26150 described in section
26151 \begin_inset space ~
26155 \begin_inset CommandInset ref
26157 reference "sub:Footnote-Numbering"
26161 ; just replace the command
26174 To reset the endnote number use the command
26180 as described in section
26181 \begin_inset space ~
26185 \begin_inset CommandInset ref
26187 reference "sub:Footnote-Numbering"
26191 and replace the command parameter
26202 \begin_layout Standard
26203 For endnotes there is the command
26207 endnotemark[number]
26209 similar to the command
26215 , that is described in section
26216 \begin_inset space ~
26220 \begin_inset CommandInset ref
26222 reference "sec:Footnotes"
26229 \begin_layout Standard
26230 \begin_inset VSpace bigskip
26233 Footnotes can also be placed in the page margin and the footnote text alignment
26234 can be changed, see the LaTeX-package
26239 \begin_inset Index idx
26242 \begin_layout Plain Layout
26243 LaTeX-packages ! footmisc
26249 \begin_inset CommandInset citation
26255 for more information about this.
26258 \begin_layout Standard
26259 For various further footnote formatting issues have a look at LaTeX-books,
26261 \begin_inset CommandInset citation
26263 key "latexcompanion,latexguide,latexbook"
26270 \begin_layout Section
26272 \begin_inset Index idx
26275 \begin_layout Plain Layout
26276 Notes ! Margin Notes
26284 \begin_layout Standard
26285 Margin notes look and behave in LyX like footnotes.
26286 They are inserted via the menu
26288 Insert\SpecialChar \menuseparator
26290 \begin_inset space ~
26295 or the toolbar button
26296 \begin_inset Graphics
26297 filename ../images/marginalnote-insert.png
26299 scaleBeforeRotation
26314 \begin_inset Quotes eld
26318 \begin_inset Quotes erd
26321 appears where you can enter the text of the margin note.
26324 \begin_layout Standard
26325 At the side is an example margin note.
26330 \begin_inset Marginal
26333 \begin_layout Plain Layout
26334 This is a margin note.
26342 \begin_layout Standard
26343 Margin notes appear at the right side in single-sided documents.
26344 In double-sided documents they appear in the outer margin – left on even
26345 pages, right on odd pages.
26346 The text of margin notes is aligned opposite to the outer margin – right-aligne
26347 d when the note appears in the left margin.
26348 The first line of the margin note is placed at the position of the text
26349 line where it is inserted in the document.
26352 \begin_layout Standard
26353 \begin_inset VSpace bigskip
26356 To place the margin note in the inner margin, add the command
26359 \begin_layout Standard
26367 \begin_layout Standard
26368 in TeX-Code before a margin note.
26369 The new placement is valid for all subsequent margin notes.
26374 \begin_layout Plain Layout
26384 \begin_inset Marginal
26387 \begin_layout Plain Layout
26388 This is a margin note in the inner margin.
26396 \begin_inset Newline newline
26402 \begin_inset Note Greyedout
26405 \begin_layout Plain Layout
26410 There is often not enough space in the inner margin so that the notes are
26411 not correctly displayed in the output.
26419 \begin_layout Standard
26420 To return to the default placement insert the command
26423 \begin_layout Standard
26431 \begin_layout Standard
26436 \begin_layout Plain Layout
26446 \begin_inset Note Greyedout
26449 \begin_layout Plain Layout
26454 The command is ignored when it is within a paragraph where also the command
26469 \begin_layout Standard
26470 \begin_inset VSpace bigskip
26477 \begin_inset Marginal
26480 \begin_layout Plain Layout
26481 AVeryLongMarginParWord that isn't hyphenated.
26489 Similar to the case described in section
26490 \begin_inset space ~
26494 \begin_inset CommandInset ref
26496 reference "sub:Multiple-Lines-in"
26500 , long words cannot be hyphenated when they are the first word in a margin
26502 To avoid this, insert 0
26503 \begin_inset space \thinspace{}
26506 pt horizontal space before the word
26511 \begin_inset Marginal
26514 \begin_layout Plain Layout
26515 \begin_inset space \hspace*{}
26519 AVeryLongMarginParWord that is hyphenated.
26527 \begin_layout Standard
26528 \begin_inset VSpace bigskip
26534 \begin_layout Standard
26535 \begin_inset Note Greyedout
26538 \begin_layout Plain Layout
26543 Margin notes can normally not be used inside tables, floats, and footnotes.
26551 \begin_layout Standard
26552 \begin_inset VSpace bigskip
26558 \begin_layout Standard
26562 \begin_layout Plain Layout
26572 \begin_inset Note Note
26575 \begin_layout Plain Layout
26576 The following section will only be displayed when the LaTeX-package
26588 \begin_layout Standard
26589 This restriction can be evaded by using the LaTeX-package
26594 \begin_inset Index idx
26597 \begin_layout Plain Layout
26598 LaTeX-packages ! marginnote
26604 By adding these two lines to your document preamble, the command used by
26605 LyX for margin notes is redefined to use the command provided by the
26612 \begin_layout Standard
26617 usepackage{marginnote}
26618 \begin_inset Newline newline
26630 \begin_layout Standard
26631 This is also used in this document because
26635 has another useful feature: You can set a vertical offset for the note.
26636 This is often needed when too many margin notes are too close together
26637 or for a better page layout.
26638 The offset is set in LyX as TeX-Code directly after the margin note in
26642 \begin_layout Standard
26648 \begin_layout Standard
26649 where the offset is a length with one of the units listed in Table
26650 \begin_inset space ~
26654 \begin_inset CommandInset ref
26656 reference "tab:Units"
26661 A negative value shifts the note up, a positive value shifts it down.
26665 For example the margin note beside this text line is shifted up 1.5
26666 \begin_inset space \thinspace{}
26669 cm with the TeX-Code-command
26670 \begin_inset Quotes eld
26680 \begin_inset Quotes erd
26684 \begin_inset Marginal
26687 \begin_layout Plain Layout
26688 This margin note is shifted up 1.5
26689 \begin_inset space \thinspace{}
26692 cm from its original position.
26704 \begin_layout Plain Layout
26714 \begin_layout Standard
26715 \begin_inset VSpace medskip
26722 you can also change the alignment of the text in the margin note.
26723 For example the commands
26726 \begin_layout Standard
26733 raggedleftmarginnote}{
26736 \begin_inset Newline newline
26743 raggedrightmarginnote}{
26748 \begin_layout Standard
26749 set the alignment to centered.
26754 raggedleftmarginnote
26756 denotes margin notes that appear at the left side.
26763 \begin_layout Plain Layout
26769 raggedleftmarginnote}{
26774 \begin_layout Plain Layout
26780 raggedrightmarginnote}{
26788 \begin_inset Marginal
26791 \begin_layout Plain Layout
26792 The text of this margin note is centered.
26803 \begin_layout Standard
26810 raggedleftmarginnote}{
26813 \begin_inset Newline newline
26820 raggedrightmarginnote}{
26829 \begin_layout Plain Layout
26835 raggedleftmarginnote}{
26840 \begin_layout Plain Layout
26846 raggedrightmarginnote}{
26856 \begin_layout Standard
26857 \begin_inset VSpace medskip
26860 For the other features of
26864 refer to its documentation
26865 \begin_inset CommandInset citation
26874 \begin_layout Standard
26875 \begin_inset VSpace bigskip
26878 You can adjust the layout of margin notes by changing its definition.
26879 To create for example a header for all margin notes with the underlined,
26880 sans-serif, and bold header text
26881 \begin_inset Quotes eld
26893 \begin_inset Quotes erd
26896 , add this to your document preamble:
26899 \begin_layout Standard
26909 \begin_inset Newline newline
26919 \begin_inset Newline newline
26923 \begin_inset Phantom HPhantom
26926 \begin_layout Plain Layout
26929 \begin_inset space ~
26945 underbar{Attention!}}}%
26946 \begin_inset Newline newline
26950 \begin_inset Phantom HPhantom
26953 \begin_layout Plain Layout
26956 \begin_inset space ~
26973 \begin_layout Standard
26980 \begin_layout Plain Layout
26991 \begin_layout Plain Layout
27002 \begin_layout Plain Layout
27010 underbar{Attention!}}}%
27013 \begin_layout Plain Layout
27027 \begin_inset Marginal
27030 \begin_layout Plain Layout
27031 This is a margin note with a defined heading.
27043 \begin_layout Plain Layout
27057 \begin_layout Plain Layout
27074 \begin_inset Note Note
27077 \begin_layout Plain Layout
27078 The margin note format is changed only for this example.
27086 \begin_layout Standard
27090 \begin_layout Plain Layout
27100 \begin_inset Note Note
27103 \begin_layout Plain Layout
27104 The following will be displayed when the LaTeX-package
27116 \begin_layout Standard
27117 You need to install the LaTeX-package
27121 to see the following part of this section in the output.
27124 \begin_layout Standard
27128 \begin_layout Plain Layout
27140 \begin_layout Chapter
27144 \begin_layout Section
27146 \begin_inset Index idx
27149 \begin_layout Plain Layout
27150 Boxes ! Introduction
27158 \begin_layout Standard
27159 Boxes are used to format a block of text.
27160 Boxes can be used to write documents with multiple languages, see section
27161 \begin_inset space ~
27165 \begin_inset CommandInset ref
27167 reference "sec:Minipages"
27171 , to frame texts, see section
27172 \begin_inset space ~
27176 \begin_inset CommandInset ref
27178 reference "sec:Decoration"
27182 , to prevent words from being hyphenated, see section
27183 \begin_inset space ~
27187 \begin_inset CommandInset ref
27189 reference "sec:Prevent-Hyphenation"
27193 , to align text, see section
27194 \begin_inset space ~
27198 \begin_inset CommandInset ref
27200 reference "sub:Vertical-Alignment"
27204 , or to set the background color of texts, see section
27205 \begin_inset space ~
27209 \begin_inset CommandInset ref
27211 reference "sec:Colored-Boxes"
27218 \begin_layout Standard
27219 Boxes can be inserted with the menu
27221 Insert\SpecialChar \menuseparator
27224 or the toolbar button
27225 \begin_inset Graphics
27226 filename ../images/box-insert.png
27228 scaleBeforeRotation
27233 A grey box with the label
27238 \begin_inset Graphics
27239 filename clipart/BoxInsetDefaultQt4.png
27241 scaleBeforeRotation
27246 The box type can be specified by right-clicking on the box and selecting
27252 The box dialog offers the
27255 \begin_inset space ~
27277 is the default for new boxes and is explained in section
27278 \begin_inset space ~
27282 \begin_inset CommandInset ref
27284 reference "sec:Minipages"
27292 is described in section
27293 \begin_inset space ~
27297 \begin_inset CommandInset ref
27299 reference "sec:Parboxes"
27308 \begin_inset CommandInset ref
27310 reference "sec:Prevent-Hyphenation"
27317 \begin_layout Standard
27318 Boxes are not numbered and can therefore not be referenced like floats or
27322 \begin_layout Standard
27323 \begin_inset Note Greyedout
27326 \begin_layout Plain Layout
27331 Boxes must not be the item in an
27347 \begin_layout Standard
27348 \begin_inset Note Greyedout
27351 \begin_layout Plain Layout
27356 For an unknown reason you can only set the
27359 \begin_inset space ~
27368 when you use a framed box.
27372 \begin_inset space ~
27377 type and without frames are explained in section
27378 \begin_inset space ~
27382 \begin_inset CommandInset ref
27384 reference "sec:Prevent-Hyphenation"
27396 \begin_layout Section
27398 \begin_inset CommandInset label
27400 name "sec:Box-Dialog"
27405 \begin_inset Index idx
27408 \begin_layout Plain Layout
27417 \begin_layout Subsection
27419 \begin_inset Index idx
27422 \begin_layout Plain Layout
27431 \begin_layout Standard
27432 In the box dialog you can adjust the box geometry in the fields
27441 The available units for the geometry are explained in Table
27442 \begin_inset space ~
27446 \begin_inset CommandInset ref
27448 reference "tab:Units"
27457 offers the following additional sizes:
27460 \begin_layout Description
27461 Depth This is the plain text
27462 \begin_inset Quotes eld
27466 \begin_inset Quotes erd
27470 It ignores the total depth when there are multiple text lines in the box:
27471 \begin_inset Newline newline
27475 \begin_inset Newline newline
27479 \begin_inset Newline newline
27483 \begin_inset Box Boxed
27493 height_special "depth"
27496 \begin_layout Plain Layout
27498 Box height set to 1
27499 \begin_inset space \thinspace{}
27508 \begin_inset Newline newline
27512 \begin_inset Newline newline
27518 \begin_layout Description
27519 Height This is the height of the text that is inside the box.
27521 \begin_inset space \thinspace{}
27525 \begin_inset space \space{}
27528 2 for this size will set the box height to 2
27529 \begin_inset space ~
27532 times the text height:
27533 \begin_inset Box Boxed
27543 height_special "height"
27546 \begin_layout Plain Layout
27548 Box height set to 2
27549 \begin_inset space \thinspace{}
27560 \begin_layout Description
27562 \begin_inset space ~
27565 Height This is the Height
27566 \begin_inset space \thinspace{}
27570 \begin_inset space \thinspace{}
27574 \begin_inset Box Boxed
27584 height_special "totalheight"
27587 \begin_layout Plain Layout
27589 Box height set to 1
27590 \begin_inset space \thinspace{}
27594 \begin_inset space ~
27605 \begin_layout Description
27606 Width This sets the width of the box as height:
27607 \begin_inset Box Boxed
27617 height_special "width"
27620 \begin_layout Plain Layout
27622 Box height set to 1
27623 \begin_inset space \thinspace{}
27634 \begin_layout Subsection
27636 \begin_inset Index idx
27639 \begin_layout Plain Layout
27648 \begin_layout Standard
27649 When you have chosen an
27652 \begin_inset space ~
27657 , the vertical box alignment can be:
27660 \begin_layout Description
27661 Top This is an example text line.
27663 \begin_inset Box Boxed
27673 height_special "totalheight"
27676 \begin_layout Plain Layout
27678 This box is top-aligned.
27683 This is an example text line.
27686 \begin_layout Description
27687 Middle This is an example text line.
27689 \begin_inset Box Boxed
27699 height_special "totalheight"
27702 \begin_layout Plain Layout
27704 This box is middle-aligned.
27709 This is an example text line.
27712 \begin_layout Description
27713 Bottom This is an example text line.
27715 \begin_inset Box Boxed
27725 height_special "totalheight"
27728 \begin_layout Plain Layout
27730 This box is bottom-aligned.
27735 This is an example text line.
27738 \begin_layout Standard
27739 \begin_inset Note Greyedout
27742 \begin_layout Plain Layout
27747 The vertical box alignment can be lost in the output when you have two
27748 boxes in a line and one has e.
27749 \begin_inset space \thinspace{}
27753 \begin_inset space \space{}
27756 a shadow and the other one not.
27764 \begin_layout Standard
27765 The horizontal box alignment can be set via LyX's paragraph dialog when
27766 you set the box into its own paragraph.
27769 \begin_layout Standard
27770 \begin_inset VSpace bigskip
27773 When you have chosen an
27776 \begin_inset space ~
27781 , the box content can be aligned vertically to:
27784 \begin_layout Description
27785 top This is an example text line.
27787 \begin_inset Box Boxed
27797 height_special "totalheight"
27800 \begin_layout Plain Layout
27802 This box text is top-aligned.
27807 This is an example text line.
27810 \begin_layout Description
27811 middle This is an example text line.
27813 \begin_inset Box Boxed
27823 height_special "totalheight"
27826 \begin_layout Plain Layout
27828 This box text is middle-aligned.
27833 This is an example text line.
27836 \begin_layout Description
27837 bottom This is an example text line.
27839 \begin_inset Box Boxed
27849 height_special "totalheight"
27852 \begin_layout Plain Layout
27854 This box text is bottom-aligned.
27859 This is an example text line.
27862 \begin_layout Description
27863 stretch This is an example text line.
27865 \begin_inset Box Boxed
27875 height_special "totalheight"
27878 \begin_layout Plain Layout
27883 \begin_layout Plain Layout
27888 \begin_layout Plain Layout
27895 This is an example text line.
27898 \begin_layout Standard
27899 To stretch the box content, it must consist of more than one paragraph.
27900 In the example above every text line is in an own paragraph.
27903 \begin_layout Standard
27904 \begin_inset VSpace bigskip
27907 To align the box content horizontally you can use LyX's paragraph dialog
27908 when you have chosen an
27911 \begin_inset space ~
27919 \begin_layout Standard
27921 \begin_inset Box Boxed
27931 height_special "totalheight"
27934 \begin_layout Plain Layout
27939 \begin_layout Plain Layout
27944 \begin_layout Plain Layout
27954 \begin_layout Standard
27955 If you have not set an
27958 \begin_inset space ~
27963 , you can align the box content horizontally in the box dialog.
27966 \begin_layout Standard
27968 \begin_inset Box Boxed
27978 height_special "totalheight"
27981 \begin_layout Plain Layout
27983 This box text is horizontally stretched.
27991 \begin_layout Subsection
27993 \begin_inset CommandInset label
27995 name "sec:Decoration"
28000 \begin_inset Index idx
28003 \begin_layout Plain Layout
28012 \begin_layout Standard
28013 The type of the box can be specified in the box dialog in the drop-down
28019 The following types are possible:
28022 \begin_layout Description
28024 \begin_inset space ~
28027 frame Nothing is drawn.
28030 \begin_layout Description
28032 \begin_inset space ~
28036 \begin_inset space ~
28039 frame This draws a rectangular frame around the box.
28040 The frame line thickness has the size of
28048 \begin_inset Box Boxed
28058 height_special "totalheight"
28061 \begin_layout Plain Layout
28071 \begin_layout Description
28073 \begin_inset space ~
28077 \begin_inset space ~
28080 thin This draws an oval frame around the box.
28081 The frame line thickness has the size 0.4
28082 \begin_inset space \thinspace{}
28087 \begin_inset Box ovalbox
28097 height_special "totalheight"
28100 \begin_layout Plain Layout
28110 \begin_layout Description
28112 \begin_inset space ~
28116 \begin_inset space ~
28119 thick This draws an oval frame around the box.
28120 The frame line thickness has the size 0.8
28121 \begin_inset space \thinspace{}
28126 \begin_inset Box Ovalbox
28136 height_special "totalheight"
28139 \begin_layout Plain Layout
28149 \begin_layout Description
28151 \begin_inset space ~
28154 shadow This draws a rectangular frame with a shadow around the box.
28155 The frame line thickness has the size of
28161 , the shadow has a width of 4
28162 \begin_inset space \thinspace{}
28167 \begin_inset Box Shadowbox
28177 height_special "totalheight"
28180 \begin_layout Plain Layout
28190 \begin_layout Description
28192 \begin_inset space ~
28195 background This draws a box with a red background.
28196 Unlike colored boxes
28200 \begin_layout Plain Layout
28202 \begin_inset space \thinspace{}
28206 \begin_inset CommandInset ref
28208 reference "sec:Colored-Boxes"
28217 , it always uses the whole column width and the box is set as its own paragraph.
28219 \begin_inset Box Shaded
28229 height_special "totalheight"
28232 \begin_layout Plain Layout
28233 Shaded background box
28241 \begin_layout Description
28243 \begin_inset space ~
28247 \begin_inset space ~
28250 frame This draws a double-line rectangular frame around the box.
28251 The line thickness of the inner frame is 0.75
28252 \begin_inset space \thinspace{}
28261 , the thickness of the outer frame is 1.5
28262 \begin_inset space \thinspace{}
28272 The distance between the lines is 1.5
28273 \begin_inset space \thinspace{}
28283 \begin_inset space \thinspace{}
28287 \begin_inset space \thinspace{}
28291 \begin_inset space \thinspace{}
28296 \begin_inset Box Doublebox
28306 height_special "totalheight"
28309 \begin_layout Plain Layout
28311 Double rectangular box
28319 \begin_layout Standard
28320 \begin_inset VSpace bigskip
28323 LyX's box label will reflect the different frame types.
28324 To be able to use all types, the LaTeX-package
28329 \begin_inset Index idx
28332 \begin_layout Plain Layout
28333 LaTeX-packages ! fancybox
28341 \begin_layout Standard
28342 \begin_inset VSpace bigskip
28345 When you use the decoration
28347 simple rectangular frame
28349 and no inner box, you can allow page breaks within a box.
28350 Note that then, unlike other framed boxes, the frame always uses the whole
28351 column width, the box is set as its own paragraph, and
28363 have no effect on this box type.
28364 The frame line thickness has the size of
28372 \begin_inset Box Framed
28382 height_special "totalheight"
28385 \begin_layout Plain Layout
28386 Allow page break box
28394 \begin_layout Section
28396 \begin_inset Index idx
28399 \begin_layout Plain Layout
28400 Boxes ! Customization
28408 \begin_layout Standard
28409 The default value for the size
28416 \begin_inset space \thinspace{}
28420 It can be changed with the following command in TeX-Code to e.
28421 \begin_inset space \thinspace{}
28425 \begin_inset space \space{}
28429 \begin_inset space \thinspace{}
28435 \begin_layout Standard
28445 \begin_layout Standard
28449 \begin_layout Plain Layout
28461 \begin_inset Box Boxed
28471 height_special "totalheight"
28474 \begin_layout Plain Layout
28476 Rectangular box with
28483 \begin_inset space \thinspace{}
28487 \begin_inset space \thinspace{}
28491 \begin_inset space \thinspace{}
28503 \begin_layout Plain Layout
28517 \begin_layout Standard
28518 \begin_inset VSpace bigskip
28521 The space between the frame and the box content is for all frame styles
28523 \begin_inset space \thinspace{}
28527 You can change it by setting the length
28534 For example the command
28537 \begin_layout Standard
28547 \begin_layout Standard
28548 sets the value to 10
28549 \begin_inset space \thinspace{}
28552 pt, as with the following box:
28555 \begin_layout Standard
28559 \begin_layout Plain Layout
28571 \begin_inset Box Boxed
28581 height_special "totalheight"
28584 \begin_layout Plain Layout
28586 Rectangular box with
28593 \begin_inset space \thinspace{}
28597 \begin_inset space \thinspace{}
28601 \begin_inset space \thinspace{}
28613 \begin_layout Plain Layout
28627 \begin_layout Standard
28628 \begin_inset VSpace bigskip
28631 The diameter of the round corners of the oval boxes can be set with the
28642 \begin_layout Standard
28650 \begin_layout Standard
28651 sets the diameter to 1
28652 \begin_inset space \thinspace{}
28659 \begin_layout Standard
28667 \begin_layout Standard
28668 sets the diameter to
28671 \begin_inset space \thinspace{}
28675 \begin_inset space \thinspace{}
28678 minimum(width and heigth of box)
28690 \begin_layout Standard
28694 \begin_layout Plain Layout
28704 \begin_inset Box Ovalbox
28714 height_special "totalheight"
28717 \begin_layout Plain Layout
28726 \begin_inset space \thinspace{}
28730 \begin_inset space \thinspace{}
28734 \begin_inset space \thinspace{}
28746 \begin_layout Plain Layout
28758 \begin_layout Standard
28759 \begin_inset VSpace bigskip
28762 The size of the shadow can be adjusted by changing the length
28770 \begin_inset space \thinspace{}
28773 pt for the following box by this command:
28776 \begin_layout Standard
28786 \begin_layout Standard
28790 \begin_layout Plain Layout
28802 \begin_inset Box Shadowbox
28812 height_special "totalheight"
28815 \begin_layout Plain Layout
28824 \begin_inset space \thinspace{}
28828 \begin_inset space \thinspace{}
28832 \begin_inset space \thinspace{}
28844 \begin_layout Plain Layout
28858 \begin_layout Standard
28859 \begin_inset VSpace bigskip
28865 \begin_layout Standard
28866 The default value for the size
28873 \begin_inset space \thinspace{}
28877 The default space between the note content and the frame is 9
28878 \begin_inset space \thinspace{}
28881 pt and can be changed with the value of
28888 For example the frame appearance of the following
28892 is set with the TeX-Code commands
28895 \begin_layout Standard
28903 \begin_inset Newline newline
28913 \begin_layout Standard
28917 \begin_layout Plain Layout
28926 \begin_layout Plain Layout
28938 \begin_inset Box Framed
28948 height_special "totalheight"
28951 \begin_layout Plain Layout
28965 \begin_layout Plain Layout
28974 \begin_layout Plain Layout
28988 \begin_layout Standard
28989 \begin_inset VSpace bigskip
28995 \begin_layout Standard
29000 boxes the default space between the box content and the box border is 3
29001 \begin_inset space \thinspace{}
29004 pt and can be changed with the value of
29011 The default background color red can either be changed locally with the
29016 definecolor{shadecolor}
29018 or globally with the menu
29020 Tools\SpecialChar \menuseparator
29021 Preferences\SpecialChar \menuseparator
29022 Colors\SpecialChar \menuseparator
29024 \begin_inset space ~
29036 command is explained in section
29037 \begin_inset space ~
29041 \begin_inset CommandInset ref
29043 reference "sec:Colored-Tables"
29051 \begin_layout Plain Layout
29058 requires the LaTeX-package
29062 in the preamble, see section
29063 \begin_inset space ~
29067 \begin_inset CommandInset ref
29069 reference "sec:Colored-Boxes"
29078 For example the appearance of the following shaded background box is set
29079 with the TeX-Code commands
29082 \begin_layout Standard
29092 \begin_inset Newline newline
29099 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29102 \begin_layout Standard
29106 \begin_layout Plain Layout
29115 \begin_layout Plain Layout
29119 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29125 \begin_inset Box Shaded
29135 height_special "totalheight"
29138 \begin_layout Plain Layout
29141 This is yellow text in a
29151 box with dark green background.
29160 \begin_layout Plain Layout
29169 \begin_layout Plain Layout
29173 definecolor{shadecolor}{rgb}{1,0,0}
29181 \begin_layout Standard
29182 \begin_inset VSpace bigskip
29185 Changed lengths and widths are valid for all boxes following the commands
29189 \begin_layout Section
29191 \begin_inset CommandInset label
29193 name "sec:Minipages"
29198 \begin_inset Index idx
29201 \begin_layout Plain Layout
29210 \begin_layout Standard
29211 Minipages are treated by LaTeX as pages within pages and can therefore for
29212 example have their own footnotes.
29215 \begin_layout Standard
29216 Minipages are useful when you write documents with different languages.
29219 \begin_layout Standard
29220 Below are two example minipages side by side.
29221 Their width is set to 45
29222 \begin_inset space \thinspace{}
29225 col% and they are separated by a horizontal fill, that was inserted via
29228 Insert\SpecialChar \menuseparator
29230 \begin_inset space ~
29233 Formatting\SpecialChar \menuseparator
29235 \begin_inset space ~
29241 \begin_inset Newpage newpage
29247 \begin_layout Standard
29248 \begin_inset Box Frameless
29258 height_special "totalheight"
29261 \begin_layout Plain Layout
29264 Dies ist ein deutscher Text.
29265 Dies ist ein deutscher Text.
29266 Dies ist ein deutscher Text.
29267 Dies ist ein deutscher Text.
29268 Dies ist ein deutscher Text.
29269 Dies ist ein deutscher Text.
29270 Dies ist ein deutscher Text.
29271 Dies ist ein deutscher Text.
29272 Dies ist ein deutscher Text.
29273 Dies ist ein deutscher Text.
29274 Dies ist ein deutscher Text.
29275 Dies ist ein deutscher Text.
29276 Dies ist ein deutscher Text
29280 \begin_layout Plain Layout
29283 Dies ist eine deutsche Fußnote.
29289 Dies ist ein deutscher Text.
29290 Dies ist ein deutscher Text.
29296 \begin_inset space \hfill{}
29300 \begin_inset Box Frameless
29310 height_special "totalheight"
29313 \begin_layout Plain Layout
29314 This is an English Text.
29315 This is an English Text.
29316 This is an English Text.
29317 This is an English Text.
29318 This is an English Text.
29319 This is an English Text.
29320 This is an English Text.
29321 This is an English Text.
29322 This is an English Text.
29323 This is an English Text.
29324 This is an English Text.
29325 This is an English Text.
29326 This is an English Text.
29327 This is an English Text.
29328 This is an English Text.
29329 This is an English Text.
29333 \begin_layout Plain Layout
29334 This is an English footnote.
29339 This is an English Text.
29348 \begin_layout Standard
29349 \begin_inset VSpace bigskip
29352 The document-wide paragraph settings are ignored within minipages.
29353 That means that there will be no space between paragraphs in minipages
29354 although you set it to e.
29355 \begin_inset space \thinspace{}
29359 \begin_inset space \space{}
29366 in the document settings.
29369 \begin_layout Standard
29370 Minipages can also be used to set a background color for text parts, see
29372 \begin_inset space ~
29376 \begin_inset CommandInset ref
29378 reference "sub:Color-for-Paragraphs"
29385 \begin_layout Standard
29386 \begin_inset Note Greyedout
29389 \begin_layout Plain Layout
29394 You cannot have floats or margin notes inside minipages but minipages can
29395 be used inside tables, floats, and other boxes.
29403 \begin_layout Section
29405 \begin_inset CommandInset label
29407 name "sec:Parboxes"
29412 \begin_inset Index idx
29415 \begin_layout Plain Layout
29424 \begin_layout Standard
29425 Parboxes are very similar to minipages with the difference that they cannot
29426 have footnotes, because minipages, unlike parboxes, are not real boxes
29427 but LaTeX-environments.
29430 \begin_layout Standard
29432 \begin_inset Box Frameless
29442 height_special "totalheight"
29445 \begin_layout Plain Layout
29446 This a text within a parbox.
29447 This a text within a parbox.
29450 \begin_layout Plain Layout
29451 This footnote won't appear:
29455 \begin_layout Plain Layout
29456 This footnote is inside a parbox and will therefore not appear.
29469 \begin_layout Section
29470 Boxes for Words and Characters
29471 \begin_inset Index idx
29474 \begin_layout Plain Layout
29475 Boxes ! for Characters
29483 \begin_layout Subsection
29484 Prevent Hyphenation
29485 \begin_inset CommandInset label
29487 name "sec:Prevent-Hyphenation"
29492 \begin_inset Index idx
29495 \begin_layout Plain Layout
29496 Boxes ! to Prevent Hyphenation
29504 \begin_layout Standard
29505 You can use the box type
29509 to prevent words or text from being hyphenated.
29510 \begin_inset Newline newline
29513 Here is an example text:
29516 \begin_layout Standard
29517 This line is an example to show how you can prevent the hyphenation of
29518 \begin_inset Quotes eld
29522 \begin_inset Quotes erd
29528 \begin_layout Standard
29529 To prevent the hyphenation of the word
29530 \begin_inset Quotes eld
29534 \begin_inset Quotes erd
29537 , put the word into a box, set the
29540 \begin_inset space ~
29550 \begin_inset space \thinspace{}
29556 \begin_layout Standard
29557 This is the result:
29560 \begin_layout Standard
29561 This line is an example to show how you can prevent the hyphenation of
29562 \begin_inset Box Frameless
29572 height_special "totalheight"
29575 \begin_layout Plain Layout
29576 \begin_inset Quotes eld
29580 \begin_inset Quotes erd
29591 \begin_layout Standard
29592 You can alternatively set the command
29593 \begin_inset Quotes eld
29603 \begin_inset Quotes grd
29606 as TeX-Code directly before the word:
29609 \begin_layout Standard
29610 This line is an example to show how you can prevent the hyphenation of
29611 \begin_inset Quotes eld
29618 \begin_layout Plain Layout
29628 \begin_inset Quotes erd
29634 \begin_layout Standard
29635 Of course the word now protrudes over the side margin.
29636 To avoid this, add via the menu
29638 Insert\SpecialChar \menuseparator
29640 \begin_inset space ~
29643 Formatting\SpecialChar \menuseparator
29645 \begin_inset space ~
29653 arg "newline-insert newline"
29656 ) a line break before the word:
29659 \begin_layout Standard
29660 This line is an example to show how you can prevent the hyphenation of
29661 \begin_inset Newline newline
29665 \begin_inset Box Frameless
29675 height_special "totalheight"
29678 \begin_layout Plain Layout
29679 \begin_inset Quotes eld
29683 \begin_inset Quotes erd
29694 \begin_layout Subsection
29696 \begin_inset CommandInset label
29698 name "sub:Vertical-Alignment"
29703 \begin_inset Index idx
29706 \begin_layout Plain Layout
29707 Boxes ! for Vertical Alignment
29713 \begin_inset Index idx
29716 \begin_layout Plain Layout
29725 \begin_layout Standard
29726 With the help of the command
29732 you can align words, characters or other boxes vertically relative to the
29740 is used with the following scheme:
29743 \begin_layout Standard
29748 raisebox{lift}[height][depth]{box content}
29751 \begin_layout Standard
29752 The lift can be a positive value to raise the box or a negative value to
29756 \begin_layout Standard
29757 To align for example the word
29758 \begin_inset Quotes eld
29762 \begin_inset Quotes erd
29765 so that the bottom of the
29766 \begin_inset Quotes eld
29770 \begin_inset Quotes erd
29774 \begin_inset Quotes eld
29778 \begin_inset Quotes erd
29781 is at the baseline, insert the command
29784 \begin_layout Standard
29794 \begin_layout Standard
29795 in TeX-Code before the word.
29796 After the word insert a closing brace
29797 \begin_inset Quotes eld
29805 \begin_inset Quotes erd
29809 \begin_inset Newline newline
29812 This is the result:
29815 \begin_layout Standard
29816 This is a text line with the word
29820 \begin_layout Plain Layout
29832 \begin_inset Quotes eld
29836 \begin_inset Quotes erd
29843 \begin_layout Plain Layout
29853 \begin_layout Standard
29854 \begin_inset VSpace bigskip
29857 When you raise or lower characters in a line, the line distance will be
29861 \begin_layout Standard
29862 This is a text line with the word
29866 \begin_layout Plain Layout
29878 \begin_inset Quotes eld
29882 \begin_inset Quotes erd
29889 \begin_layout Plain Layout
29897 \begin_inset Newline newline
29900 This is a text line with the word
29904 \begin_layout Plain Layout
29914 \begin_inset Quotes eld
29918 \begin_inset Quotes erd
29925 \begin_layout Plain Layout
29935 \begin_layout Standard
29936 If you want to prevent this for a certain reason, set the box height to
29941 \begin_layout Standard
29951 \begin_layout Standard
29952 This is a text line with the word
29956 \begin_layout Plain Layout
29968 \begin_inset Quotes eld
29972 \begin_inset Quotes erd
29979 \begin_layout Plain Layout
29987 \begin_inset Newline newline
29990 This is a text line with the word
29994 \begin_layout Plain Layout
29998 raisebox{0.5cm}[0pt]{
30004 \begin_inset Quotes eld
30008 \begin_inset Quotes erd
30015 \begin_layout Plain Layout
30025 \begin_layout Section
30027 \begin_inset CommandInset label
30029 name "sec:Colored-Boxes"
30034 \begin_inset Index idx
30037 \begin_layout Plain Layout
30046 \begin_layout Subsection
30048 \begin_inset Index idx
30051 \begin_layout Plain Layout
30060 \begin_layout Standard
30061 To color the background of text the text must be put into a so called
30062 \begin_inset Quotes eld
30066 \begin_inset Quotes erd
30070 This requires that the LaTeX-package
30075 \begin_inset Index idx
30078 \begin_layout Plain Layout
30079 LaTeX-packages ! color
30084 is loaded in the document preamble with the command
30087 \begin_layout Standard
30092 @ifundefined{textcolor}
30093 \begin_inset Newline newline
30097 \begin_inset Phantom HPhantom
30100 \begin_layout Plain Layout
30103 \begin_inset space ~
30113 usepackage{color}}{}
30116 \begin_layout Standard
30121 will be loaded automatically by LyX when you color text.
30125 \begin_layout Plain Layout
30126 To avoid it being loaded twice the command
30140 \begin_layout Standard
30141 \begin_inset VSpace medskip
30144 Colorboxes are created with the command
30151 This will be used with the following scheme:
30154 \begin_layout Standard
30159 colorbox{color}{box content}
30162 \begin_layout Standard
30163 The box content can also be a box and colorboxes can also be within other
30167 \begin_layout Standard
30168 The following colors are predefined:
30169 \begin_inset Newline newline
30208 \begin_inset Newline newline
30211 You can also define your own color as described in section
30212 \begin_inset space ~
30216 \begin_inset CommandInset ref
30218 reference "sec:Colored-Tables"
30225 \begin_layout Standard
30227 \begin_inset space \thinspace{}
30231 \begin_inset space \space{}
30234 a red background for a word, insert the command
30237 \begin_layout Standard
30245 \begin_layout Standard
30246 before the word in TeX-Code.
30247 After the word insert a closing brace
30248 \begin_inset Quotes eld
30256 \begin_inset Quotes erd
30260 \begin_inset Newline newline
30263 This is the result:
30266 \begin_layout Standard
30267 This is a line where the word
30271 \begin_layout Plain Layout
30281 \begin_inset Quotes eld
30285 \begin_inset Quotes erd
30292 \begin_layout Plain Layout
30299 has a red background.
30302 \begin_layout Standard
30303 \begin_inset VSpace bigskip
30306 If you would like the box frame in a different color, you can use the command
30313 with the following scheme:
30316 \begin_layout Standard
30321 fcolorbox{frame color}{box color}{box content}
30324 \begin_layout Standard
30338 The frame thickness and the space between the frame and the box content
30339 can be adjusted with the lengths
30351 , respectively, as described in section
30352 \begin_inset space ~
30356 \begin_inset CommandInset ref
30358 reference "sec:Decoration"
30365 \begin_layout Standard
30366 For the following example the command
30369 \begin_layout Standard
30374 fcolorbox{cyan}{magenta}{
30377 \begin_layout Standard
30381 \begin_layout Standard
30382 Here is an example where the frame line thickness was set to 1
30383 \begin_inset space \thinspace{}
30387 \begin_inset Newline newline
30394 \begin_layout Plain Layout
30409 \begin_layout Plain Layout
30413 fcolorbox{cyan}{magenta}{
30418 This is text within a colored, framed box.
30422 \begin_layout Plain Layout
30432 \begin_layout Standard
30433 \begin_inset VSpace bigskip
30436 Of course you can also have colored text inside a colorbox:
30437 \begin_inset Newline newline
30444 \begin_layout Plain Layout
30448 fcolorbox{cyan}{magenta}{
30455 This is colored text within a colored, framed box.
30461 \begin_layout Plain Layout
30472 \begin_layout Plain Layout
30486 \begin_layout Standard
30489 \begin_inset VSpace medskip
30495 \begin_layout Standard
30496 \begin_inset Note Greyedout
30499 \begin_layout Plain Layout
30504 Text in colorboxes cannot have line breaks.
30505 To color multiple text lines or paragraphs, use a box inside a colorbox
30506 as described in the following.
30514 \begin_layout Subsection
30515 Color for Paragraphs
30516 \begin_inset CommandInset label
30518 name "sub:Color-for-Paragraphs"
30523 \begin_inset Index idx
30526 \begin_layout Plain Layout
30527 Color ! for Paragraphs
30535 \begin_layout Standard
30536 To set the background color for more than one text line, put the text into
30538 Before the minipage insert the
30547 \begin_layout Standard
30555 \begin_layout Standard
30557 After the minipage insert a closing brace
30558 \begin_inset Quotes eld
30566 \begin_inset Quotes erd
30572 \begin_layout Standard
30576 \begin_layout Plain Layout
30580 colorbox{lightgrey}{
30586 \begin_inset Box Frameless
30596 height_special "totalheight"
30599 \begin_layout Plain Layout
30600 This is text with background color.
30601 This is text with background color.
30604 \begin_layout Plain Layout
30605 \begin_inset VSpace defskip
30608 The text can have footnotes
30612 \begin_layout Plain Layout
30613 Another example footnote
30618 and can include tables and figures.
30621 \begin_layout Plain Layout
30623 \begin_inset Tabular
30624 <lyxtabular version="3" rows="3" columns="3">
30625 <features tabularvalignment="middle">
30626 <column alignment="center" valignment="top" width="0">
30627 <column alignment="center" valignment="top" width="0">
30628 <column alignment="center" valignment="top" width="0">
30630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30633 \begin_layout Plain Layout
30639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30642 \begin_layout Plain Layout
30648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30651 \begin_layout Plain Layout
30659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30662 \begin_layout Plain Layout
30668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30671 \begin_layout Plain Layout
30673 \begin_inset Quotes erd
30681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30684 \begin_layout Plain Layout
30692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30695 \begin_layout Plain Layout
30701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30704 \begin_layout Plain Layout
30710 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30713 \begin_layout Plain Layout
30733 \begin_layout Plain Layout
30743 \begin_layout Section
30744 Rotated and Scaled Boxes
30747 \begin_layout Standard
30748 To use the commands described in this section, the LaTeX-package
30753 \begin_inset Index idx
30756 \begin_layout Plain Layout
30757 LaTeX-packages ! graphicx
30762 needs to be loaded in the document preamble with the command
30765 \begin_layout Standard
30770 @ifundefined{rotatebox}
30771 \begin_inset Newline newline
30775 \begin_inset Phantom HPhantom
30778 \begin_layout Plain Layout
30781 \begin_inset space ~
30791 usepackage{graphicx}}{}
30794 \begin_layout Standard
30795 \begin_inset Note Greyedout
30798 \begin_layout Plain Layout
30803 Some DVI-viewers can't display rotated or scaled material.
30811 \begin_layout Standard
30812 \begin_inset Note Greyedout
30815 \begin_layout Plain Layout
30820 Floats mustn't be inside a rotated or scaled box.
30828 \begin_layout Subsection
30830 \begin_inset Index idx
30833 \begin_layout Plain Layout
30840 \begin_inset Index idx
30843 \begin_layout Plain Layout
30850 \begin_inset Index idx
30853 \begin_layout Plain Layout
30860 \begin_inset Index idx
30863 \begin_layout Plain Layout
30864 Table Customization ! Rotating
30872 \begin_layout Standard
30873 To rotate material, you can put it into a rotated box.
30874 Such a box is created using the command
30880 in TeX-Code with the following scheme:
30883 \begin_layout Standard
30888 rotatebox[rotation origin]{rotation angle}{box content}
30891 \begin_layout Standard
30892 The rotation origin is specified in the form
30897 The following positions are possible:
30917 (top), along with meaningful combinations of the four base positions.
30922 means that the rotation origin is at the top left corner of the box.
30923 When no rotation origin is specified, the position
30928 The rotation angle is a number that can be negative that specifies the
30930 The rotation direction is counterclockwise.
30933 \begin_layout Standard
30934 In the following example the command
30938 rotatebox[origin=c]{60}{
30940 was inserted as TeX-Code before the text
30941 \begin_inset Quotes eld
30945 \begin_inset Quotes erd
30948 ; after the text the box was closed by a closing brace
30955 \begin_layout Standard
30960 \begin_layout Plain Layout
30964 rotatebox[origin=c]{60}{
30973 \begin_layout Plain Layout
30983 \begin_layout Standard
30984 The box content can also be another box or an inline formula:
30987 \begin_layout Standard
30992 \begin_layout Plain Layout
30996 rotatebox[origin=r]{-60}{
31002 \begin_inset Box Doublebox
31012 height_special "totalheight"
31015 \begin_layout Plain Layout
31025 \begin_layout Plain Layout
31036 \begin_layout Plain Layout
31040 rotatebox[origin=lb]{60}{
31046 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31053 \begin_layout Plain Layout
31063 \begin_layout Standard
31064 or an image or table:
31067 \begin_layout Standard
31072 \begin_layout Plain Layout
31076 rotatebox[origin=lb]{90}{
31082 \begin_inset Graphics
31083 filename clipart/platypus.eps
31093 \begin_layout Plain Layout
31100 with a rotated image
31104 \begin_layout Plain Layout
31108 rotatebox[origin=l]{-90}{
31114 \begin_inset Tabular
31115 <lyxtabular version="3" rows="2" columns="2">
31116 <features tabularvalignment="middle">
31117 <column alignment="center" valignment="top" width="0">
31118 <column alignment="center" valignment="top" width="0">
31120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31123 \begin_layout Plain Layout
31129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31132 \begin_layout Plain Layout
31140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31143 \begin_layout Plain Layout
31149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31152 \begin_layout Plain Layout
31167 \begin_layout Plain Layout
31177 \begin_layout Subsection
31179 \begin_inset Index idx
31182 \begin_layout Plain Layout
31189 \begin_inset Index idx
31192 \begin_layout Plain Layout
31199 \begin_inset Index idx
31202 \begin_layout Plain Layout
31209 \begin_inset Index idx
31212 \begin_layout Plain Layout
31213 Table Customization ! Scaling
31221 \begin_layout Standard
31222 To scale material the commands
31234 can be used as TeX-Code.
31237 \begin_layout Standard
31244 is used with the following scheme:
31247 \begin_layout Standard
31252 scalebox{horizontal}[vertical]{box content}
31255 \begin_layout Standard
31256 Horizontal and vertical are the corresponding scaling factors.
31257 If no vertical scaling factor is given, the horizontal factor will also
31258 be used as the vertical one.
31261 \begin_layout Standard
31268 creates for example a double size
31272 \begin_layout Plain Layout
31285 \begin_layout Plain Layout
31292 , compared with the document text size.
31295 \begin_layout Standard
31300 scalebox{2}[1]{Hello}
31302 on the other hand distorts the
31306 \begin_layout Plain Layout
31319 \begin_layout Plain Layout
31329 \begin_layout Standard
31330 If the scaling factor is negative, the box content will be mirrored.
31331 Therefore the command
31335 scalebox{-1}[1]{Hello}
31337 can be used to create mirror writing:
31341 \begin_layout Plain Layout
31354 \begin_layout Plain Layout
31364 \begin_layout Standard
31369 scalebox{1}[-1]{Hello}
31375 \begin_layout Plain Layout
31388 \begin_layout Plain Layout
31398 \begin_layout Standard
31403 scalebox{-1}[1]{box content}
31405 there exists the command
31406 \begin_inset Newline newline
31413 reflectbox{box content}
31418 \begin_layout Standard
31419 \begin_inset VSpace bigskip
31428 is used to scale the box to a defined width and height.
31429 The command scheme is:
31432 \begin_layout Standard
31437 resizebox{width}{height}{box content}
31440 \begin_layout Standard
31441 If one of the two command arguments given is an exclamation mark
31445 , the size is set so that the aspect ratio of the box content is kept.
31448 \begin_layout Standard
31453 resizebox{2cm}{1cm}{Hello}
31459 \begin_layout Plain Layout
31463 resizebox{2cm}{1cm}{
31472 \begin_layout Plain Layout
31480 \begin_inset Newline newline
31487 resizebox{2cm}{!}{Hello}
31493 \begin_layout Plain Layout
31506 \begin_layout Plain Layout
31516 \begin_layout Standard
31517 \begin_inset VSpace bigskip
31521 \begin_inset Note Greyedout
31524 \begin_layout Plain Layout
31541 are set to zero, no LaTeX-errors occur when exporting the document but
31542 the exported files can not or only partly be displayed.
31550 \begin_layout Standard
31551 \begin_inset VSpace bigskip
31557 \begin_layout Standard
31558 The boxes can be combined in any order.
31560 \begin_inset space \thinspace{}
31564 \begin_inset space \space{}
31568 \begin_inset Newline newline
31575 rotatebox[origin=c]{-45}{
31579 reflectbox{Hello}}}
31580 \begin_inset Newline newline
31588 \begin_layout Standard
31593 \begin_layout Plain Layout
31597 rotatebox[origin=c]{-45}{
31610 \begin_layout Plain Layout
31620 \begin_layout Standard
31622 Images, tables, and inline formulas are allowed as box content:
31625 \begin_layout Standard
31630 \begin_layout Plain Layout
31634 rotatebox[origin=c]{-30}{
31644 \begin_inset Graphics
31645 filename clipart/platypus.eps
31655 \begin_layout Plain Layout
31666 \begin_layout Plain Layout
31670 rotatebox[origin=c]{-45}{
31680 \begin_inset Tabular
31681 <lyxtabular version="3" rows="2" columns="2">
31682 <features tabularvalignment="middle">
31683 <column alignment="center" valignment="top" width="0">
31684 <column alignment="center" valignment="top" width="0">
31686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31689 \begin_layout Plain Layout
31695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31698 \begin_layout Plain Layout
31706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31709 \begin_layout Plain Layout
31715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31718 \begin_layout Plain Layout
31733 \begin_layout Plain Layout
31744 \begin_layout Plain Layout
31748 rotatebox[origin=c]{-45}{
31758 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31765 \begin_layout Plain Layout
31775 \begin_layout Standard
31776 When the global formula style
31780 is used in the document
31784 \begin_layout Plain Layout
31786 \begin_inset Quotes eld
31790 \begin_inset Quotes erd
31793 is added to the document class options.
31798 , display style formulas can also be scaled.
31801 \begin_layout Chapter
31802 External Document Parts
31803 \begin_inset Index idx
31806 \begin_layout Plain Layout
31807 External Document Parts
31815 \begin_layout Standard
31818 Insert\SpecialChar \menuseparator
31821 you can insert external material to your document.
31825 \begin_layout Description
31827 \begin_inset space ~
31830 Document Another LyX document; its content is directly inserted to your
31834 \begin_layout Description
31836 \begin_inset space ~
31839 Text A text document; each line is inserted in your document as a separate
31843 \begin_layout Description
31845 \begin_inset space ~
31849 \begin_inset space ~
31853 \begin_inset space ~
31856 Lines A text document; text lines are inserted in your document continuously
31857 but an empty text line creates a new paragraph.
31860 \begin_layout Description
31862 \begin_inset space ~
31865 Material Files in various formats.
31868 \begin_layout Description
31870 \begin_inset space ~
31873 Document LyX or LaTeX-documents.
31876 \begin_layout Section
31878 \begin_inset Index idx
31881 \begin_layout Plain Layout
31882 External Document Parts ! External Material
31890 \begin_layout Standard
31891 The external material feature allows you to insert files in to your document
31892 without converting them to a format that can be read by the document output
31894 LyX takes care of the necessary conversions.
31895 This is similar to images that can be inserted in various image formats
31897 When you have enabled Instant Preview in LyX's preferences under
31900 \begin_inset space ~
31904 \begin_inset space ~
31907 feel\SpecialChar \menuseparator
31910 , the external material types Dia and Xfig are directly shown in LyX.
31913 \begin_layout Standard
31914 External material can be inserted via the
31918 dialog that is accessible with the menu
31920 Insert\SpecialChar \menuseparator
31921 File\SpecialChar \menuseparator
31923 \begin_inset space ~
31929 Currently the following file types (
31936 \begin_layout Description
31937 ChessDiagram This template supports chess position diagrams made with the
31941 \begin_inset CommandInset href
31944 target "http://en.wikipedia.org/wiki/XBoard"
31953 \begin_layout Description
31954 Date This inserts the date in the form
31959 This is a date inserted as external material:
31960 \begin_inset External
31967 \begin_inset space ~
31971 \begin_inset Note Note
31974 \begin_layout Plain Layout
31975 Remove the protected space when bug 4398 is fixed!
31981 \begin_inset Newline newline
31984 The date is not shown within LyX, only in the output.
31985 There are two other methods of inserting a date: Via menu
31987 Insert\SpecialChar \menuseparator
31990 and with the LaTeX command
31997 The different methods are compared in Table
31998 \begin_inset space ~
32002 \begin_inset CommandInset ref
32004 reference "tab:Comparison-of-the"
32011 \begin_layout Description
32012 Dia This template supports diagrams created with the program
32015 \begin_inset CommandInset href
32018 target "http://en.wikipedia.org/wiki/Dia_(software)"
32027 \begin_layout Description
32028 LilyPond This template is used for music notation typeset with the program
32029 \begin_inset Newline linebreak
32035 \begin_inset CommandInset href
32038 target "http://en.wikipedia.org/wiki/LilyPond"
32047 \begin_layout Description
32048 PDFPages With this template you can insert PDF documents to your document.
32049 To insert certain or all pages of a PDF, use the
32059 LaTeX and LyX options
32061 tab according to the template description in the dialog.
32066 option is given, only the first page of the PDF will be inserted.
32069 \begin_layout Description
32070 RasterImage This can be used for bitmap images.
32071 Nearly all popular image formats are supported.
32072 The image can be treated in the
32076 dialog like the images that are usually included via the
32080 dialog as described in section
32081 \begin_inset space ~
32085 \begin_inset CommandInset ref
32087 reference "sec:Graphics-Dialog"
32092 The difference is that only raster images are allowed; that means that
32093 PDF and EPS-images are not supported.
32096 \begin_layout Description
32097 XFig This template supports images created with the program
32100 \begin_inset CommandInset href
32103 target "http://en.wikipedia.org/wiki/Xfig"
32112 \begin_layout Standard
32113 \begin_inset Float table
32119 \begin_layout Plain Layout
32120 \begin_inset Caption
32122 \begin_layout Plain Layout
32123 \begin_inset CommandInset label
32125 name "tab:Comparison-of-the"
32129 Comparison of the date input methods.
32137 \begin_layout Plain Layout
32139 \begin_inset Tabular
32140 <lyxtabular version="3" rows="4" columns="4">
32141 <features tabularvalignment="middle">
32142 <column alignment="center" valignment="top" width="0">
32143 <column alignment="center" valignment="top" width="0">
32144 <column alignment="center" valignment="top" width="0">
32145 <column alignment="center" valignment="top" width="0">
32147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32150 \begin_layout Plain Layout
32156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32159 \begin_layout Plain Layout
32162 External Material\SpecialChar \menuseparator
32168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32171 \begin_layout Plain Layout
32174 Insert\SpecialChar \menuseparator
32180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32183 \begin_layout Plain Layout
32195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32198 \begin_layout Plain Layout
32204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32207 \begin_layout Plain Layout
32213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32216 \begin_layout Plain Layout
32222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32225 \begin_layout Plain Layout
32226 as TeX-Code inset box
32233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32236 \begin_layout Plain Layout
32242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32245 \begin_layout Plain Layout
32251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32254 \begin_layout Plain Layout
32260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32263 \begin_layout Plain Layout
32271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32274 \begin_layout Plain Layout
32280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32283 \begin_layout Plain Layout
32289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32292 \begin_layout Plain Layout
32298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32301 \begin_layout Plain Layout
32320 \begin_layout Standard
32321 When you use the option
32333 dialog, only the path to the inserted file is shown in the output.
32334 \begin_inset Newline newline
32337 External material is displayed in LyX either as a box like this:
32338 \begin_inset Graphics
32339 filename clipart/ExternalMaterialQt4.png
32341 scaleBeforeRotation
32345 or as image, depending on the option
32351 LaTeX and LyX options
32356 \begin_layout Standard
32363 manual explains how you can define your own templates.
32366 \begin_layout Section
32368 \begin_inset CommandInset label
32370 name "sec:Child-Documents"
32375 \begin_inset Index idx
32378 \begin_layout Plain Layout
32379 External Document Parts ! Child Documents
32385 \begin_inset Index idx
32388 \begin_layout Plain Layout
32397 \begin_layout Standard
32398 Child documents are used when you have a long document consisting of several
32399 larger parts or sections.
32400 For maintenance it is often useful and sometimes even required to split
32401 the document in several files that can be revised separately.
32402 The different documents are then the so called child documents and a master
32403 document connects them to print the full document or parts of it.
32404 A child documents inherits elements of its master, for example the LaTeX
32405 preamble, the bibliography, and labels for cross-references.
32408 \begin_layout Standard
32409 To be able to work on child documents without the need to open their master,
32410 specify in the child document the master in the menu
32412 Document\SpecialChar \menuseparator
32413 Settings\SpecialChar \menuseparator
32415 \begin_inset space ~
32421 This master document will then be used in the background by LyX when you
32422 edit the child document.
32425 \begin_layout Standard
32426 Included documents are displayed in LyX as a box like this:
32427 \begin_inset Graphics
32428 filename clipart/ChildDocumentQt4.png
32430 scaleBeforeRotation
32434 To include child documents in a master document use the menu
32436 Insert\SpecialChar \menuseparator
32437 File\SpecialChar \menuseparator
32439 \begin_inset space ~
32445 A dialog pops up where you can choose between four include methods:
32448 \begin_layout Description
32449 Include You can include LyX and LaTeX-documents.
32458 dialog, the included documents will be opened in LyX in a new file tab
32459 so that you can modify them.
32460 \begin_inset Newline newline
32466 \begin_layout Standard
32467 Here is a child document inserted using
32472 \begin_inset CommandInset include
32473 LatexCommand include
32474 filename "DummyDocument1.lyx"
32481 \begin_layout Standard
32482 The section numbering includes the sections of the included files in the
32483 order they are inserted in the master document.
32484 The included example document has for example a subsection that is numbered
32485 as a subsection of this section.
32486 Labels of included documents can be referenced: Subsection
32487 \begin_inset space ~
32491 \begin_inset CommandInset ref
32493 reference "sub:External-Subsection-1"
32500 \begin_layout Standard
32501 The preamble of the child document is ignored; only the preamble of the
32502 master document is used.
32503 Branches in child documents will be ignored by the master document when
32504 the master document does not have a branch with the same name.
32505 Included documents are inserted starting on a new page and ending with
32509 \begin_layout Standard
32510 If you are only working on a certain chapter of a large document and want
32511 to save compiling time, you can put each included file into a branch.
32515 \begin_layout Plain Layout
32516 Branches are described in section
32529 By enabling/disabling branches you can decide what included files will
32530 appear in the output.
32533 \begin_layout Standard
32534 \begin_inset Note Greyedout
32537 \begin_layout Plain Layout
32542 Due to a bug in LyX the LaTeX command
32548 can currently not be used as an alternative to decide what files should
32557 \begin_layout Standard
32558 \begin_inset Note Greyedout
32561 \begin_layout Plain Layout
32566 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32567 w the document in case the child document uses another document class than
32568 the master document as this will lead to unexpected outputs.
32576 \begin_layout Description
32577 Input This method is very similar to the Include method.
32578 The differences are:
32582 \begin_layout Itemize
32583 Input files don't start with a new page and don't end with a page break.
32586 \begin_layout Itemize
32587 Input files can be previewed in LyX when
32590 \begin_inset space ~
32595 is enabled in LyX's preferences under
32598 \begin_inset space ~
32602 \begin_inset space ~
32605 feel\SpecialChar \menuseparator
32611 \begin_layout Itemize
32622 \begin_layout Standard
32623 Here is a child document inserted using
32628 \begin_inset CommandInset include
32630 filename "DummyDocument2.lyx"
32637 \begin_layout Description
32638 Verbatim With this method every text file can be included.
32639 The file is shown in the output with its source code; no command used in
32640 the text is invoked.
32641 You can use the option
32643 Mark spaces in output
32645 that displays the character
32646 \begin_inset Quotes eld
32653 \begin_layout Plain Layout
32663 \begin_inset Quotes erd
32666 for every space character in the source code.
32667 The difference from the method via the menu
32669 Insert\SpecialChar \menuseparator
32670 File\SpecialChar \menuseparator
32672 \begin_inset space ~
32677 is that the document content is not shown in LyX.
32680 \begin_layout Standard
32681 Here is a child document inserted as Verbatim:
32682 \begin_inset CommandInset include
32683 LatexCommand verbatiminput
32684 filename "DummyTextDocument.txt"
32689 \begin_inset VSpace bigskip
32692 Here is a child document inserted as Verbatim using the
32694 Mark spaces in output
32697 \begin_inset CommandInset include
32698 LatexCommand verbatiminput*
32699 filename "DummyTextDocument.txt"
32706 \begin_layout Standard
32707 \begin_inset VSpace bigskip
32713 \begin_layout Standard
32714 \begin_inset Note Greyedout
32717 \begin_layout Plain Layout
32722 As you can see in the examples above, the text of the documents included
32727 is not broken at the end of the document lines.
32735 \begin_layout Description
32736 Listings This type is described in chapter
32737 \begin_inset space ~
32741 \begin_inset CommandInset ref
32743 reference "cha:Program-Code-Listings"
32750 \begin_layout Standard
32751 \begin_inset Note Greyedout
32754 \begin_layout Plain Layout
32759 Including the same document twice in a document using different methods
32760 could cause LaTeX-problems.
32768 \begin_layout Chapter
32769 Program Code Listings
32770 \begin_inset CommandInset label
32772 name "cha:Program-Code-Listings"
32777 \begin_inset Index idx
32780 \begin_layout Plain Layout
32787 \begin_inset Index idx
32790 \begin_layout Plain Layout
32797 \begin_inset Index idx
32800 \begin_layout Plain Layout
32809 \begin_layout Standard
32810 To include and typeset program code you can use the
32814 inset that can be inserted via the menu
32816 Insert\SpecialChar \menuseparator
32825 \begin_inset Index idx
32828 \begin_layout Plain Layout
32829 LaTeX-packages ! listings
32834 provides a powerful and flexible way to insert program source code into
32838 \begin_layout Standard
32839 Right-clicking on a listings inset opens the context menu containing where
32840 you can set the listings format.
32843 \begin_layout Standard
32844 By default, a listing starts a new paragraph in the output.
32845 The placement option
32848 \begin_inset space ~
32853 prints the listing inline like this:
32854 \begin_inset listings
32855 lstparams "language={C++}"
32859 \begin_layout Plain Layout
32867 \begin_inset Newline newline
32874 creates a listings float where you can specify the placement options
32875 \begin_inset Quotes eld
32883 \begin_inset Quotes erd
32887 \begin_inset Quotes eld
32895 \begin_inset Quotes erd
32899 \begin_inset Quotes eld
32907 \begin_inset Quotes erd
32911 \begin_inset Quotes eld
32919 \begin_inset Quotes erd
32922 corresponding to the float placement options described in section
32923 \begin_inset space ~
32927 \begin_inset CommandInset ref
32929 reference "sec:Float-Placement"
32934 The placement options can be mixed and are inserted without any separation,
32936 \begin_inset space \thinspace{}
32940 \begin_inset space \space{}
32944 \begin_inset Quotes eld
32952 \begin_inset Quotes erd
32957 \begin_inset Quotes eld
32961 \begin_inset Quotes erd
32964 has sometimes no effect, but you don't need to use the
32968 option in this case as also non-float listings can have captions and be
32972 \begin_layout Standard
32973 You can add captions to listings with the menu
32975 Insert\SpecialChar \menuseparator
32979 Listings can be referenced like floats: Listing
32980 \begin_inset space ~
32984 \begin_inset CommandInset ref
32986 reference "lst:Example-Listing"
32993 \begin_layout Standard
32994 \begin_inset listings
32995 lstparams "language=Python"
32999 \begin_layout Plain Layout
33001 \begin_inset Caption
33003 \begin_layout Plain Layout
33004 \begin_inset CommandInset label
33006 name "lst:Example-Listing"
33010 Example Listing float
33015 # Example listing float
33018 \begin_layout Plain Layout
33023 \begin_layout Plain Layout
33025 'this is a python function'
33028 \begin_layout Plain Layout
33038 \begin_layout Standard
33039 When you have set a programming language in the listings dialog, the keywords
33040 of this language will be recognized and specially typeset in the output.
33041 In the example listings the Python keyword
33042 \begin_inset Quotes eld
33046 \begin_inset Quotes erd
33049 is recognized and printed bold in the output.
33052 \begin_layout Standard
33053 \begin_inset Note Greyedout
33056 \begin_layout Plain Layout
33061 If you don't get bold keywords when using typewriter fonts, your
33065 font probably doesn't provide a bold shape.
33066 In this case select a different one in the menu
33068 Document\SpecialChar \menuseparator
33069 Settings\SpecialChar \menuseparator
33081 provide bold shapes.)
33089 \begin_layout Standard
33093 \begin_inset space ~
33098 of the listings dialog you can specify the line numbering style.
33099 You can insert a number to specify which lines are numbered in the field
33106 \begin_inset space \thinspace{}
33110 \begin_inset space \space{}
33114 \begin_inset Quotes eld
33118 \begin_inset Quotes erd
33121 , only every 3rd line will be numbered.
33124 \begin_layout Standard
33125 You can furthermore specify a range of lines; only these will then appear
33129 Extended character table
33131 should be used when you use national characters like the German umlauts
33133 \begin_inset Newline newline
33136 Here is an example listing with left line numbering, step
33137 \begin_inset Quotes eld
33141 \begin_inset Quotes erd
33145 \begin_inset Quotes eld
33149 \begin_inset Quotes erd
33153 \begin_inset Quotes eld
33156 Extended character table
33157 \begin_inset Quotes erd
33161 \begin_inset Quotes eld
33165 \begin_inset space ~
33169 \begin_inset space ~
33173 \begin_inset Quotes erd
33177 \begin_inset space \thinspace{}
33181 \begin_inset space \thinspace{}
33187 \begin_layout Standard
33188 \begin_inset listings
33189 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33193 \begin_layout Plain Layout
33198 \begin_layout Plain Layout
33200 'this is a python function'
33203 \begin_layout Plain Layout
33208 \begin_layout Plain Layout
33213 \begin_layout Plain Layout
33215 'This is a German word: Tschüß'
33218 \begin_layout Plain Layout
33223 \begin_layout Plain Layout
33228 \begin_layout Plain Layout
33230 'this is a python function'
33233 \begin_layout Plain Layout
33243 \begin_layout Standard
33244 When you have tabulators in your listing, you can specify the number of
33245 characters that are spanned by a tabulator in the field
33248 \begin_inset space ~
33256 \begin_layout Standard
33257 \begin_inset Note Greyedout
33260 \begin_layout Plain Layout
33265 Due to a bug in the
33269 package the line numbering is shifted by a line by every previous listing.
33270 That's the reason why the lines 2 and 5 are numbered in the above listing
33271 and not the lines 3 and 6.
33279 \begin_layout Standard
33280 \begin_inset VSpace bigskip
33286 \begin_layout Standard
33287 It is also possible to print lines from a file as listing.
33288 To do this, use the menu
33290 Insert\SpecialChar \menuseparator
33291 File\SpecialChar \menuseparator
33294 and choose the type
33302 \begin_layout Plain Layout
33303 The other child document types are described in section
33304 \begin_inset space ~
33308 \begin_inset CommandInset ref
33310 reference "sec:Child-Documents"
33319 In the child document dialog you can specify the listing parameters in
33321 To show a list of all available parameters, type in a question mark
33322 \begin_inset Quotes eld
33326 \begin_inset Quotes erd
33332 \begin_layout Standard
33333 To reference child document listings, write a label text into the corresponding
33334 field of the child document dialog.
33335 The label can then be referenced using the menu
33337 Insert\SpecialChar \menuseparator
33343 \begin_layout Standard
33345 \begin_inset space ~
33349 \begin_inset CommandInset ref
33351 reference "lst:file-listing"
33355 is an example for a listing of a file; there the lines 10
33356 \begin_inset space \thinspace{}
33360 \begin_inset space \thinspace{}
33363 15 of this LyX file are listed.
33366 \begin_layout Standard
33367 \begin_inset CommandInset include
33368 LatexCommand lstinputlisting
33369 filename "EmbeddedObjects.lyx"
33370 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33377 \begin_layout Standard
33378 \begin_inset VSpace bigskip
33384 \begin_layout Standard
33385 Inserting a formula into a listing can be done the following way:
33388 \begin_layout Enumerate
33389 Open the listings dialog and add
33390 \begin_inset Newline newline
33398 \begin_inset Newline newline
33401 to the field of the
33408 \begin_layout Enumerate
33409 Create a formula outside the listing
33412 \begin_layout Enumerate
33413 Copy the content of the formula (not the formula inset) to the clipboard
33423 \begin_layout Enumerate
33424 In the listing write
33425 \begin_inset Quotes eld
33433 \begin_inset Quotes erd
33436 and copy from the clipboard between the dollar-signs (shortcut
33445 \begin_layout Standard
33446 \begin_inset listings
33447 lstparams "language=Python,mathescape=true"
33451 \begin_layout Plain Layout
33453 \begin_inset Caption
33455 \begin_layout Plain Layout
33456 Example Listing float containing a formula
33461 # Example listing float
33464 \begin_layout Plain Layout
33469 \begin_layout Plain Layout
33482 \begin_layout Plain Layout
33492 \begin_layout Standard
33493 \begin_inset VSpace bigskip
33499 \begin_layout Standard
33500 Global listings settings can be set in the
33502 Document\SpecialChar \menuseparator
33503 Settings\SpecialChar \menuseparator
33507 To get there a list of available options, type in a question mark
33508 \begin_inset Quotes eld
33512 \begin_inset Quotes erd
33518 \begin_inset space ~
33526 \begin_layout Standard
33527 For more information about the
33531 package, we refer to its documentation
33532 \begin_inset CommandInset citation
33541 \begin_layout Standard
33542 \begin_inset Newpage newpage
33548 \begin_layout Chapter
33550 Units available in LyX
33551 \begin_inset Index idx
33554 \begin_layout Plain Layout
33561 \begin_inset CommandInset label
33563 name "cha:Units-available-in"
33570 \begin_layout Standard
33571 To understand the units described in this documentation, Table
33572 \begin_inset space ~
33576 \begin_inset CommandInset ref
33578 reference "tab:Units"
33582 explains all units available in LyX.
33585 \begin_layout Standard
33586 \begin_inset Float table
33592 \begin_layout Plain Layout
33593 \begin_inset Caption
33595 \begin_layout Plain Layout
33596 \begin_inset CommandInset label
33610 \begin_layout Plain Layout
33611 \begin_inset VSpace medskip
33617 \begin_layout Plain Layout
33619 \begin_inset Tabular
33620 <lyxtabular version="3" rows="20" columns="2">
33621 <features tabularvalignment="middle">
33622 <column alignment="center" valignment="top" width="0">
33623 <column alignment="center" valignment="top" width="0">
33625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33628 \begin_layout Plain Layout
33634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33637 \begin_layout Plain Layout
33645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33648 \begin_layout Plain Layout
33654 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33657 \begin_layout Plain Layout
33665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33668 \begin_layout Plain Layout
33674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33677 \begin_layout Plain Layout
33685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33688 \begin_layout Plain Layout
33694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33697 \begin_layout Plain Layout
33705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33708 \begin_layout Plain Layout
33714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33717 \begin_layout Plain Layout
33719 \begin_inset space \thinspace{}
33723 \begin_inset space \thinspace{}
33733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33736 \begin_layout Plain Layout
33742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33745 \begin_layout Plain Layout
33747 \begin_inset space \thinspace{}
33751 \begin_inset space \thinspace{}
33761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33764 \begin_layout Plain Layout
33770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33773 \begin_layout Plain Layout
33774 scaled point (65536
33775 \begin_inset space \thinspace{}
33779 \begin_inset space \thinspace{}
33789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33792 \begin_layout Plain Layout
33798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33801 \begin_layout Plain Layout
33803 \begin_inset space \thinspace{}
33807 \begin_inset space \thinspace{}
33817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33820 \begin_layout Plain Layout
33826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33829 \begin_layout Plain Layout
33831 \begin_inset space \thinspace{}
33835 \begin_inset Formula $\approx$
33839 \begin_inset space \thinspace{}
33849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33852 \begin_layout Plain Layout
33858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33861 \begin_layout Plain Layout
33863 \begin_inset space \thinspace{}
33867 \begin_inset space \thinspace{}
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" rightline="true" usebox="none">
33889 \begin_layout Plain Layout
33890 % of original image width
33897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33900 \begin_layout Plain Layout
33906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33909 \begin_layout Plain Layout
33917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33920 \begin_layout Plain Layout
33926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33929 \begin_layout Plain Layout
33937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33940 \begin_layout Plain Layout
33946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33949 \begin_layout Plain Layout
33957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33960 \begin_layout Plain Layout
33966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33969 \begin_layout Plain Layout
33977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33980 \begin_layout Plain Layout
33986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33989 \begin_layout Plain Layout
33997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34000 \begin_layout Plain Layout
34006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34009 \begin_layout Plain Layout
34017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34020 \begin_layout Plain Layout
34026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34029 \begin_layout Plain Layout
34041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34044 \begin_layout Plain Layout
34050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34053 \begin_layout Plain Layout
34065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34068 \begin_layout Plain Layout
34074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34077 \begin_layout Plain Layout
34079 \begin_inset space \thinspace{}
34083 \begin_inset space \thinspace{}
34104 \begin_layout Chapter
34105 Output File Formats with Graphics
34106 \begin_inset CommandInset label
34108 name "cha:Output-File-Formats"
34115 \begin_layout Section
34117 \begin_inset Index idx
34120 \begin_layout Plain Layout
34127 \begin_inset Index idx
34130 \begin_layout Plain Layout
34135 \begin_layout Plain Layout
34146 \begin_layout Plain Layout
34161 \begin_layout Standard
34162 This file type has the extension
34163 \begin_inset Quotes eld
34171 \begin_inset Quotes erd
34176 \begin_inset Quotes eld
34180 \begin_inset Quotes erd
34183 (DVI), because it is completely portable; you can move them from one machine
34184 to another without needing to do any sort of conversion.
34185 At the time when this file-format was developed, this was no matter of
34187 DVIs are used for quick previews and as pre-stage for other output formats,
34191 \begin_layout Standard
34192 \begin_inset Note Greyedout
34195 \begin_layout Plain Layout
34200 DVI-files do not contain images; they will only be a linked.
34205 So don't forget this, if you move your
34209 file to another computer.
34210 This property can also slow down your computer when you view the DVI, because
34211 the DVI-viewer has to convert the image in the background to make it visible
34212 when you scroll in the DVI.
34213 So it is recommended that you use PDF for files with many images.
34216 \begin_layout Standard
34217 You can export your document to DVI by using the menu
34219 File\SpecialChar \menuseparator
34220 Export\SpecialChar \menuseparator
34224 You can view your document as DVI via the
34228 menu or by using the toolbar button
34229 \begin_inset Graphics
34230 filename ../images/buffer-view_dvi.png
34232 scaleBeforeRotation
34239 \begin_layout Section
34241 \begin_inset CommandInset label
34243 name "sec:PostScript"
34248 \begin_inset Index idx
34251 \begin_layout Plain Layout
34252 File Formats ! PostScript
34258 \begin_inset Index idx
34261 \begin_layout Plain Layout
34266 \begin_layout Plain Layout
34277 \begin_layout Plain Layout
34292 \begin_layout Standard
34293 This file type has the extension
34294 \begin_inset Quotes eld
34302 \begin_inset Quotes erd
34306 PostScript was developed by the company
34310 as a printer language.
34311 The file therefore contains commands that the printer uses to print the
34313 PostScript can be seen as a
34314 \begin_inset Quotes eld
34317 programming language
34318 \begin_inset Quotes erd
34321 ; you can calculate with it and draw diagrams and images
34325 \begin_layout Plain Layout
34326 If you are interested to learn more about this, have a look at the LaTeX-package
34332 \begin_inset CommandInset citation
34344 Due to this ability, the files are often bigger than PDFs.
34347 \begin_layout Standard
34348 PostScript can only contain images in the format
34349 \begin_inset Quotes eld
34352 Encapsulated PostScript
34353 \begin_inset Quotes erd
34356 (EPS, file extension
34357 \begin_inset Quotes eld
34365 \begin_inset Quotes erd
34369 As LyX allows you to use any known image format in your document, it has
34370 to convert images in the background to EPS.
34372 \begin_inset space ~
34376 \begin_inset space ~
34379 images in your document, LyX has to do 50
34380 \begin_inset space ~
34383 conversions whenever you view or export your document.
34384 This will slow down your work flow with LyX drastically.
34385 So if you plan to use PostScript, you can insert your images directly as
34386 EPS to avoid this problem.
34389 \begin_layout Standard
34390 You can export your document to PostScript using the menu
34392 File\SpecialChar \menuseparator
34393 Export\SpecialChar \menuseparator
34397 You can view your document as PostScript via the
34401 menu or by using the toolbar button
34402 \begin_inset Graphics
34403 filename ../images/buffer-view_ps.png
34405 scaleBeforeRotation
34412 \begin_layout Section
34414 \begin_inset Index idx
34417 \begin_layout Plain Layout
34424 \begin_inset Index idx
34427 \begin_layout Plain Layout
34436 \begin_layout Standard
34437 This file type has the extension
34438 \begin_inset Quotes eld
34446 \begin_inset Quotes erd
34451 \begin_inset Quotes eld
34454 Portable Document Format
34455 \begin_inset Quotes erd
34458 (PDF) was developed by
34462 as a derivative of PostScript.
34463 It is more compressed and it uses fewer commands than PostScript.
34465 \begin_inset Quotes eld
34469 \begin_inset Quotes erd
34472 implies, it can be processed at any computer system and the printed output
34473 looks exactly the same.
34476 \begin_layout Standard
34477 PDF can contain images in its own PDF format, in the format
34478 \begin_inset Quotes eld
34481 Joint Photographic Experts Group
34482 \begin_inset Quotes erd
34485 (JPG, file extension
34486 \begin_inset Quotes eld
34494 \begin_inset Quotes erd
34498 \begin_inset Quotes eld
34506 \begin_inset Quotes erd
34509 ), and in the format
34510 \begin_inset Quotes eld
34513 Portable Network Graphics
34514 \begin_inset Quotes erd
34517 (PNG, file extension
34518 \begin_inset Quotes eld
34526 \begin_inset Quotes erd
34530 Nevertheless you can use any other image format, because LyX converts them
34531 in the background to one of these formats.
34532 But as described in the section about PostScript, the image conversion
34533 will slow down your work flow.
34534 So it is recommended that you use images in one of the three mentioned
34538 \begin_layout Standard
34539 You can export your document to PDF via the menu
34541 File\SpecialChar \menuseparator
34544 in three different ways:
34547 \begin_layout Description
34549 \begin_inset space ~
34552 (ps2pdf) This uses the program
34556 that creates a PDF from a PostScript-version of your file.
34557 The PostScript-version is produced by the program
34561 which uses a DVI-version as intermediate step.
34562 So this export variant consists of three conversions.
34565 \begin_layout Description
34567 \begin_inset space ~
34570 (dvipdfm) This uses the program
34574 that converts your file in the background to DVI and in a second step to
34578 \begin_layout Description
34580 \begin_inset space ~
34583 (pdflatex) This uses the program
34587 that converts your file directly to PDF.
34590 \begin_layout Standard
34591 It is recommended that you use
34594 \begin_inset space ~
34603 supports all features of actual PDF-versions, is quick and works stable.
34608 is not under development and therefore a bit outdated.
34611 \begin_layout Standard
34612 You can view your document as PDF via the
34616 menu or by using the toolbar button
34617 \begin_inset Graphics
34618 filename ../images/buffer-view_pdf2.png
34620 scaleBeforeRotation
34631 \begin_inset space ~
34639 \begin_layout Chapter
34640 Explanation of Equation
34641 \begin_inset space ~
34645 \begin_inset CommandInset ref
34652 \begin_inset CommandInset label
34654 name "cha:Explanation-of-Equation"
34661 \begin_layout Standard
34662 We can calculate the total width of
34667 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34673 \begin_layout Standard
34674 \begin_inset Formula \begin{equation}
34675 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}\end{equation}
34680 \begin_inset Formula $W_{g\, n}$
34683 is the given width of all cells,
34689 is the LaTeX-length between the cell text and the cell border (its default
34691 \begin_inset space \thinspace{}
34701 is the thickness of the cell border line, the default is 0.4
34702 \begin_inset space \thinspace{}
34708 \begin_layout Standard
34710 \begin_inset space ~
34714 \begin_inset CommandInset ref
34716 reference "eq:Wtot_n"
34720 , the total width of a multicolumn
34721 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34727 \begin_layout Standard
34728 \begin_inset Formula \begin{equation}
34729 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34736 \begin_layout Standard
34737 By setting equation
34738 \begin_inset space ~
34742 \begin_inset CommandInset ref
34744 reference "eq:Wtot_n"
34749 \begin_inset CommandInset ref
34751 reference "eq:Wtot_mult"
34755 equal we can calculate the needed given width
34756 \begin_inset Formula $W_{g\, n}$
34763 columns are spanned, so that each column has a total width of
34764 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34770 \begin_layout Standard
34771 \begin_inset Formula \begin{equation}
34772 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34779 \begin_layout Bibliography
34780 \labelwidthstring Bibliography
34781 \begin_inset CommandInset bibitem
34782 LatexCommand bibitem
34783 key "latexcompanion"
34787 Frank Mittelbach and Michel Goossens:
34789 The LaTeX Companion Second Edition.
34792 Addison-Wesley, 2004
34795 \begin_layout Bibliography
34796 \labelwidthstring Bibliography
34797 \begin_inset CommandInset bibitem
34798 LatexCommand bibitem
34803 Helmut Kopka and Patrick W.
34806 A Guide to LaTeX Fourth Edition.
34809 Addison-Wesley, 2003
34812 \begin_layout Bibliography
34813 \labelwidthstring Bibliography
34814 \begin_inset CommandInset bibitem
34815 LatexCommand bibitem
34822 LaTeX: A Document Preparation System.
34825 Addison-Wesley, second edition, 1994
34828 \begin_layout Bibliography
34829 \labelwidthstring Bibliography
34830 \begin_inset CommandInset bibitem
34831 LatexCommand bibitem
34836 Documentation of the LaTeX-package
34839 \begin_inset CommandInset href
34842 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34849 \begin_inset Index idx
34852 \begin_layout Plain Layout
34853 LaTeX-packages ! booktabs
34861 \begin_layout Bibliography
34862 \labelwidthstring Bibliography
34863 \begin_inset CommandInset bibitem
34864 LatexCommand bibitem
34869 Documentation of the LaTeX-package
34872 \begin_inset CommandInset href
34875 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34882 \begin_inset Index idx
34885 \begin_layout Plain Layout
34886 LaTeX-packages ! caption
34894 \begin_layout Bibliography
34895 \labelwidthstring Bibliography
34896 \begin_inset CommandInset bibitem
34897 LatexCommand bibitem
34902 Documentation of the LaTeX-package
34905 \begin_inset CommandInset href
34908 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34915 \begin_inset Index idx
34918 \begin_layout Plain Layout
34919 LaTeX-packages ! endfloat
34927 \begin_layout Bibliography
34928 \labelwidthstring Bibliography
34929 \begin_inset CommandInset bibitem
34930 LatexCommand bibitem
34935 Documentation of the LaTeX-package
34938 \begin_inset CommandInset href
34941 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34948 \begin_inset Index idx
34951 \begin_layout Plain Layout
34952 LaTeX-packages ! wrapfig
34956 \begin_layout Plain Layout
34973 \begin_layout Bibliography
34974 \labelwidthstring Bibliography
34975 \begin_inset CommandInset bibitem
34976 LatexCommand bibitem
34981 Documentation of the LaTeX-package
34984 \begin_inset CommandInset href
34987 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34994 \begin_inset Index idx
34997 \begin_layout Plain Layout
34998 LaTeX-packages ! footmisc
35006 \begin_layout Bibliography
35007 \labelwidthstring Bibliography
35008 \begin_inset CommandInset bibitem
35009 LatexCommand bibitem
35014 Documentation of the LaTeX-package
35017 \begin_inset CommandInset href
35020 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
35027 \begin_inset Index idx
35030 \begin_layout Plain Layout
35031 LaTeX-packages ! hyperref
35039 \begin_layout Bibliography
35040 \labelwidthstring Bibliography
35041 \begin_inset CommandInset bibitem
35042 LatexCommand bibitem
35047 Documentation of the LaTeX-package
35050 \begin_inset CommandInset href
35053 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35060 \begin_inset Index idx
35063 \begin_layout Plain Layout
35064 LaTeX-packages ! hyperref
35072 \begin_layout Bibliography
35073 \labelwidthstring Bibliography
35074 \begin_inset CommandInset bibitem
35075 LatexCommand bibitem
35080 Documentation of the LaTeX-package
35083 \begin_inset CommandInset href
35086 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35093 \begin_inset Index idx
35096 \begin_layout Plain Layout
35097 LaTeX-packages ! KOMA-Script
35105 \begin_layout Bibliography
35106 \labelwidthstring Bibliography
35107 \begin_inset CommandInset bibitem
35108 LatexCommand bibitem
35113 Documentation of the LaTeX-package
35116 \begin_inset CommandInset href
35119 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35126 \begin_inset Index idx
35129 \begin_layout Plain Layout
35130 LaTeX-packages ! listings
35138 \begin_layout Bibliography
35139 \labelwidthstring Bibliography
35140 \begin_inset CommandInset bibitem
35141 LatexCommand bibitem
35146 Documentation of the LaTeX-package
35149 \begin_inset CommandInset href
35152 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35159 \begin_inset Index idx
35162 \begin_layout Plain Layout
35163 LaTeX-packages ! marginnote
35171 \begin_layout Bibliography
35172 \labelwidthstring Bibliography
35173 \begin_inset CommandInset bibitem
35174 LatexCommand bibitem
35179 Web page of the LaTeX-package
35182 \begin_inset CommandInset href
35185 target "http://tug.org/PSTricks/"
35192 \begin_inset Index idx
35195 \begin_layout Plain Layout
35196 LaTeX-packages ! PSTricks
35204 \begin_layout Bibliography
35205 \labelwidthstring Bibliography
35206 \begin_inset CommandInset bibitem
35207 LatexCommand bibitem
35212 Documentation of the LaTeX-package
35215 \begin_inset CommandInset href
35218 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35225 \begin_inset Index idx
35228 \begin_layout Plain Layout
35229 LaTeX-packages ! sidecap
35237 \begin_layout Bibliography
35238 \labelwidthstring Bibliography
35239 \begin_inset CommandInset bibitem
35240 LatexCommand bibitem
35245 Documentation of the LaTeX-package
35248 \begin_inset CommandInset href
35251 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35258 \begin_inset Index idx
35261 \begin_layout Plain Layout
35262 LaTeX-packages ! prettyref
35270 \begin_layout Bibliography
35271 \labelwidthstring Bibliography
35272 \begin_inset CommandInset bibitem
35273 LatexCommand bibitem
35278 Documentation of the LaTeX-package
35281 \begin_inset CommandInset href
35284 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35291 \begin_inset Index idx
35294 \begin_layout Plain Layout
35295 LaTeX-packages ! refstyle
35303 \begin_layout Bibliography
35304 \labelwidthstring Bibliography
35305 \begin_inset CommandInset bibitem
35306 LatexCommand bibitem
35312 \begin_inset CommandInset href
35315 target "http://wiki.lyx.org/LyX/NewInLyX20"
35319 about new features in
35326 \begin_layout Standard
35327 \begin_inset CommandInset index_print
35328 LatexCommand printindex