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"
2066 \begin_inset Newline newline
2069 The rotate check boxes rotate the current cell, a selection, or the whole
2070 table counter-clockwise by 90°.
2071 The rotation is not shown within LyX, only in the output.
2072 \begin_inset Newline newline
2076 \begin_inset Note Greyedout
2079 \begin_layout Plain Layout
2084 Not all DVI-viewers are able to display rotations.
2090 \begin_inset Newline newline
2093 It is also possible to enter a LaTeX-argument which is needed for special
2094 table formattings, see section
2095 \begin_inset space ~
2099 \begin_inset CommandInset ref
2101 reference "sub:Multicolumn-Calculations"
2106 \begin_inset CommandInset ref
2108 reference "sec:Colored-Tables"
2115 \begin_layout Description
2120 In this tab you can add and delete border lines for the current row/column.
2121 \begin_inset Newline newline
2124 Using the style option
2128 will convert the table to a formal table as described in section
2129 \begin_inset space ~
2133 \begin_inset CommandInset ref
2135 reference "sec:Formal-Tables"
2140 \begin_inset Newline newline
2143 You can also add here space to table rows as described in section
2144 \begin_inset space ~
2148 \begin_inset CommandInset ref
2150 reference "sub:Row-Spacing"
2157 \begin_layout Description
2162 This tab is to make a table a so called
2163 \begin_inset Quotes eld
2171 \begin_inset Quotes erd
2174 that can run over several pages.
2176 \begin_inset space ~
2180 \begin_inset CommandInset ref
2182 reference "sec:Longtables"
2187 \begin_inset CommandInset ref
2189 reference "sec:Special-Longtable-Issues"
2193 describe the longtable features in detail.
2196 \begin_layout Standard
2197 When the table dialog is open, you can move the cursor with the arrow keys
2198 from cell to cell and the property of the current cell will immediately
2199 be displayed in the dialog.
2202 \begin_layout Section
2204 \begin_inset Index idx
2207 \begin_layout Plain Layout
2216 \begin_layout Standard
2217 The table toolbar is an alternative to the table dialog to be able to alter
2219 It should normally appear at the bottom of LyX's main window when the cursor
2221 You can alternatively switch it on to appear always, by right-clicking
2222 in LyX's main menu bar.
2225 \begin_layout Standard
2226 The toolbar has the following icons:
2229 \begin_layout Labeling
2230 \labelwidthstring 00.00.0000
2231 \begin_inset Graphics
2232 filename ../images/tabular-feature_append-row.png
2237 adds a row below the current cell or selection
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Graphics
2243 filename ../images/tabular-feature_append-column.png
2248 adds a column right beside the current cell or selection
2251 \begin_layout Labeling
2252 \labelwidthstring 00.00.0000
2253 \begin_inset Graphics
2254 filename ../images/tabular-feature_delete-row.png
2259 deletes the current row or selection
2262 \begin_layout Labeling
2263 \labelwidthstring 00.00.0000
2264 \begin_inset Graphics
2265 filename ../images/tabular-feature_delete-column.png
2270 deletes the current column or selection
2273 \begin_layout Labeling
2274 \labelwidthstring 00.00.0000
2275 \begin_inset Graphics
2276 filename ../images/tabular-feature_toggle-line-top.png
2281 adds a line at the top of the current cell / row or of a selection
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Graphics
2287 filename ../images/tabular-feature_toggle-line-bottom.png
2292 adds a line at the bottom of the current cell / row or of a selection
2295 \begin_layout Labeling
2296 \labelwidthstring 00.00.0000
2297 \begin_inset Graphics
2298 filename ../images/tabular-feature_toggle-line-left.png
2303 adds a line at the left side of the current cell / row or of a selection
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Graphics
2309 filename ../images/tabular-feature_toggle-line-right.png
2314 adds a line at the right side of the current cell / row or of a selection
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_set-all-lines.png
2325 adds lines around the current or selected cells - if the current cell no
2326 multicolumn cell this also affects the current row and column
2329 \begin_layout Labeling
2330 \labelwidthstring 00.00.0000
2331 \begin_inset Graphics
2332 filename ../images/tabular-feature_unset-all-lines.png
2337 deletes all lines of the current or selected cells - if the current cell
2338 no multicolumn cell this also affects the current row and column
2341 \begin_layout Labeling
2342 \labelwidthstring 00.00.0000
2343 \begin_inset Graphics
2344 filename ../images/tabular-feature_m-align-left.png
2349 left-aligns the content of the current cell / column
2352 \begin_layout Labeling
2353 \labelwidthstring 00.00.0000
2354 \begin_inset Graphics
2355 filename ../images/tabular-feature_m-align-center.png
2360 centers the content of the current cell / column horizontally
2363 \begin_layout Labeling
2364 \labelwidthstring 00.00.0000
2365 \begin_inset Graphics
2366 filename ../images/tabular-feature_m-align-right.png
2371 right-aligns the content of the current cell / column
2374 \begin_layout Labeling
2375 \labelwidthstring 00.00.0000
2376 \begin_inset Graphics
2377 filename ../images/tabular-feature_m-valign-top.png
2382 aligns the content of the current cell vertically to the top
2385 \begin_layout Labeling
2386 \labelwidthstring 00.00.0000
2387 \begin_inset Graphics
2388 filename ../images/tabular-feature_m-valign-middle.png
2393 centers the content of the current cell vertically
2396 \begin_layout Labeling
2397 \labelwidthstring 00.00.0000
2398 \begin_inset Graphics
2399 filename ../images/tabular-feature_m-valign-bottom.png
2404 aligns the content of the current cell vertically to the bottom
2407 \begin_layout Labeling
2408 \labelwidthstring 00.00.0000
2409 \begin_inset Graphics
2410 filename ../images/tabular-feature_set-rotate-cell.png
2415 rotates the current cell or selection counter-clockwise by 90°
2418 \begin_layout Labeling
2419 \labelwidthstring 00.00.0000
2420 \begin_inset Graphics
2421 filename ../images/tabular-feature_set-rotate-tabular.png
2426 rotates the whole table counter-clockwise by 90°
2429 \begin_layout Labeling
2430 \labelwidthstring 00.00.0000
2431 \begin_inset Graphics
2432 filename ../images/tabular-feature_multicolumn.png
2437 sets the current cell or selection as a multicolumn
2440 \begin_layout Standard
2441 \begin_inset Note Greyedout
2444 \begin_layout Plain Layout
2449 For the output the vertical alignment of the first cell in a row is used
2450 for all following cells in the row.
2458 \begin_layout Section
2460 \begin_inset Index idx
2463 \begin_layout Plain Layout
2472 \begin_layout Standard
2473 Additionally to the table dialog and toolbar, the menu
2475 Edit\SpecialChar \menuseparator
2478 allows you to add and delete border lines for the current row/column and
2479 to set the current selection as multicolumn.
2480 The menu is only available when the cursor is inside a table.
2483 \begin_layout Section
2485 \begin_inset CommandInset label
2487 name "sec:Table-Floats"
2492 \begin_inset Index idx
2495 \begin_layout Plain Layout
2502 \begin_inset Index idx
2505 \begin_layout Plain Layout
2514 \begin_layout Standard
2515 For general explanations about floats, have a look at section
2516 \begin_inset space ~
2520 \begin_inset CommandInset ref
2522 reference "sec:FloatIntroduction"
2529 \begin_layout Standard
2530 \begin_inset Float table
2536 \begin_layout Plain Layout
2537 \begin_inset Caption
2539 \begin_layout Plain Layout
2540 \begin_inset CommandInset label
2542 name "tab:a table float"
2554 \begin_layout Plain Layout
2556 \begin_inset Tabular
2557 <lyxtabular version="3" rows="3" columns="3">
2558 <features tabularvalignment="middle">
2559 <column alignment="center" valignment="top" width="0pt">
2560 <column alignment="center" valignment="top" width="0pt">
2561 <column alignment="center" valignment="top" width="0pt">
2563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2566 \begin_layout Plain Layout
2581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2584 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2602 \begin_layout Plain Layout
2619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2622 \begin_layout Plain Layout
2637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2640 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2658 \begin_layout Plain Layout
2675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2678 \begin_layout Plain Layout
2688 \begin_inset Formula $\int x^{2}dx$
2696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2699 \begin_layout Plain Layout
2709 \begin_inset Formula $\left[\begin{array}{cc}
2720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2723 \begin_layout Plain Layout
2733 \begin_inset Formula $1+1=2$
2754 \begin_layout Standard
2755 Table floats can be inserted using the menu
2757 Insert\SpecialChar \menuseparator
2758 Float\SpecialChar \menuseparator
2761 or the toolbar button
2762 \begin_inset Graphics
2763 filename ../images/float-insert_table.png
2772 \begin_layout Standard
2773 The float appears as a collapsible box with a caption that has the label
2775 \begin_inset Quotes eld
2779 \begin_inset space ~
2783 \begin_inset Quotes erd
2786 (# is the actual table number).
2787 You can insert tables in the float above or below the caption.
2790 \begin_layout Standard
2792 \begin_inset space ~
2796 \begin_inset CommandInset ref
2798 reference "tab:a table float"
2802 is an example table within a table float.
2805 \begin_layout Standard
2806 Having the caption above the table is the common rule that is unfortunately
2807 not supported in LaTeX's standard classes.
2808 This means that, if you are using the document classes
2824 , there will be no space between the caption and the table.
2825 To insert the needed space, add the following option to the load command
2826 of the LaTeX-package
2831 \begin_inset Index idx
2834 \begin_layout Plain Layout
2835 LaTeX-packages ! caption
2840 in your document preamble
2844 \begin_layout Plain Layout
2845 For more information have a look at section
2846 \begin_inset space ~
2850 \begin_inset CommandInset ref
2852 reference "sec:Caption-Placement"
2864 \begin_layout Standard
2870 \begin_layout Standard
2875 , which is described in section
2876 \begin_inset space ~
2880 \begin_inset CommandInset ref
2882 reference "sec:Caption-Formatting"
2886 , is used to adjust the caption format.
2889 \begin_layout Standard
2890 \begin_inset Index idx
2893 \begin_layout Plain Layout
2894 References ! to Tables
2899 Tables can be cross-referenced in the text by referencing their label.
2900 To do this insert a label in the caption using the menu
2902 Insert\SpecialChar \menuseparator
2905 or the toolbar button
2906 \begin_inset Graphics
2907 filename ../images/label-insert.png
2914 You can now refer to the label using the menu
2916 Insert\SpecialChar \menuseparator
2918 \begin_inset space ~
2923 or the toolbar button
2924 \begin_inset Graphics
2925 filename ../images/dialog-show-new-inset_ref.png
2932 \begin_inset Newline newline
2935 Referencing is explained in detail in section
2936 \begin_inset space ~
2940 \begin_inset CommandInset ref
2942 reference "sec:Referencing-Floats"
2949 \begin_layout Section
2951 \begin_inset CommandInset label
2953 name "sec:Longtables"
2958 \begin_inset Index idx
2961 \begin_layout Plain Layout
2968 \begin_inset Index idx
2971 \begin_layout Plain Layout
2980 \begin_layout Standard
2981 If the table is too long to fit on one page, you can use the option
2984 \begin_inset space ~
2988 \begin_inset space ~
2997 of the table dialog to split the table automatically over more pages.
2998 Doing this enables the following options:
3001 \begin_layout Description
3002 Header: The current row is defined to be a header row that appears on all
3003 pages of the longtable; except for the first page, if
3006 \begin_inset space ~
3012 This is therefore called the main header.
3015 \begin_layout Description
3017 \begin_inset space ~
3020 header: The current row is defined to be a header row that appears on the
3021 first page of the longtable.
3024 \begin_layout Description
3025 Footer: The current row is defined to be a footer row that appears on all
3026 pages of the longtable; except for the last page, if
3029 \begin_inset space ~
3037 \begin_layout Description
3039 \begin_inset space ~
3042 footer: The current row is defined to be a footer row that appears on the
3043 last page of the longtable.
3046 \begin_layout Description
3047 Caption: The current row contains the table caption.
3048 The row is reset as single column and a caption is inserted.
3049 More about longtable captions is explained in sec.
3050 \begin_inset space \thinspace{}
3054 \begin_inset CommandInset ref
3056 reference "sub:Longtable-Captions"
3063 \begin_layout Standard
3064 You can also specify a row where the table is split.
3065 See the following longtable to see how it works:
3068 \begin_layout Standard
3070 \begin_inset Tabular
3071 <lyxtabular version="3" rows="69" columns="3">
3072 <features islongtable="true" longtabularalignment="center">
3073 <column alignment="left" valignment="top" width="0cm">
3074 <column alignment="left" valignment="top" width="0pt">
3075 <column alignment="center" valignment="top" width="0pt">
3076 <row endfirsthead="true">
3077 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3080 \begin_layout Plain Layout
3083 Example Phone List (ignore the names)
3088 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3091 \begin_layout Plain Layout
3097 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3100 \begin_layout Plain Layout
3107 <row endfirsthead="true">
3108 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3111 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3122 \begin_layout Plain Layout
3128 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3131 \begin_layout Plain Layout
3140 <row endhead="true">
3141 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3144 \begin_layout Plain Layout
3152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3155 \begin_layout Plain Layout
3161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3164 \begin_layout Plain Layout
3171 <row endhead="true">
3172 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3175 \begin_layout Plain Layout
3183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3186 \begin_layout Plain Layout
3192 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3195 \begin_layout Plain Layout
3204 <row endfoot="true">
3205 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3208 \begin_layout Plain Layout
3209 continued on next page
3214 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3217 \begin_layout Plain Layout
3223 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3226 \begin_layout Plain Layout
3234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3237 \begin_layout Plain Layout
3245 <cell alignment="center" valignment="top" usebox="none">
3248 \begin_layout Plain Layout
3254 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3257 \begin_layout Plain Layout
3265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3268 \begin_layout Plain Layout
3276 <cell alignment="center" valignment="top" usebox="none">
3279 \begin_layout Plain Layout
3285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3288 \begin_layout Plain Layout
3296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3299 \begin_layout Plain Layout
3307 <cell alignment="center" valignment="top" usebox="none">
3310 \begin_layout Plain Layout
3316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3319 \begin_layout Plain Layout
3327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3330 \begin_layout Plain Layout
3338 <cell alignment="center" valignment="top" usebox="none">
3341 \begin_layout Plain Layout
3347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3350 \begin_layout Plain Layout
3358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3361 \begin_layout Plain Layout
3369 <cell alignment="center" valignment="top" usebox="none">
3372 \begin_layout Plain Layout
3378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3381 \begin_layout Plain Layout
3389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3392 \begin_layout Plain Layout
3400 <cell alignment="center" valignment="top" usebox="none">
3403 \begin_layout Plain Layout
3409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3412 \begin_layout Plain Layout
3420 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3423 \begin_layout Plain Layout
3431 <cell alignment="center" valignment="top" usebox="none">
3434 \begin_layout Plain Layout
3440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3443 \begin_layout Plain Layout
3451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3454 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" usebox="none">
3465 \begin_layout Plain Layout
3471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3474 \begin_layout Plain Layout
3482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3485 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" usebox="none">
3496 \begin_layout Plain Layout
3502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3505 \begin_layout Plain Layout
3513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" usebox="none">
3527 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3536 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" usebox="none">
3558 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3567 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3578 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" usebox="none">
3589 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3598 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" usebox="none">
3620 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3629 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" usebox="none">
3651 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3660 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" usebox="none">
3682 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3691 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" usebox="none">
3713 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3722 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" usebox="none">
3744 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3753 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" usebox="none">
3775 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3784 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" usebox="none">
3806 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3815 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" usebox="none">
3837 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3846 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" usebox="none">
3868 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3877 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" usebox="none">
3899 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3908 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" usebox="none">
3930 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3939 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" usebox="none">
3961 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3970 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" usebox="none">
3992 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4001 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" usebox="none">
4023 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" usebox="none">
4054 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4063 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" usebox="none">
4085 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4094 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" usebox="none">
4116 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4125 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" usebox="none">
4147 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4156 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4178 \begin_layout Plain Layout
4184 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4187 \begin_layout Plain Layout
4195 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4198 \begin_layout Plain Layout
4204 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4207 \begin_layout Plain Layout
4213 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4216 \begin_layout Plain Layout
4224 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4227 \begin_layout Plain Layout
4235 <cell alignment="center" valignment="top" usebox="none">
4238 \begin_layout Plain Layout
4244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4247 \begin_layout Plain Layout
4255 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4258 \begin_layout Plain Layout
4266 <cell alignment="center" valignment="top" usebox="none">
4269 \begin_layout Plain Layout
4275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4278 \begin_layout Plain Layout
4286 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4289 \begin_layout Plain Layout
4297 <cell alignment="center" valignment="top" usebox="none">
4300 \begin_layout Plain Layout
4306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4309 \begin_layout Plain Layout
4317 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4320 \begin_layout Plain Layout
4328 <cell alignment="center" valignment="top" usebox="none">
4331 \begin_layout Plain Layout
4337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4340 \begin_layout Plain Layout
4348 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4351 \begin_layout Plain Layout
4359 <cell alignment="center" valignment="top" usebox="none">
4362 \begin_layout Plain Layout
4368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4371 \begin_layout Plain Layout
4379 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4382 \begin_layout Plain Layout
4390 <cell alignment="center" valignment="top" usebox="none">
4393 \begin_layout Plain Layout
4399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4402 \begin_layout Plain Layout
4410 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4413 \begin_layout Plain Layout
4421 <cell alignment="center" valignment="top" usebox="none">
4424 \begin_layout Plain Layout
4430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4433 \begin_layout Plain Layout
4441 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4444 \begin_layout Plain Layout
4452 <cell alignment="center" valignment="top" usebox="none">
4455 \begin_layout Plain Layout
4461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4464 \begin_layout Plain Layout
4472 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4475 \begin_layout Plain Layout
4483 <cell alignment="center" valignment="top" usebox="none">
4486 \begin_layout Plain Layout
4492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4495 \begin_layout Plain Layout
4503 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4506 \begin_layout Plain Layout
4514 <cell alignment="center" valignment="top" usebox="none">
4517 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4526 \begin_layout Plain Layout
4534 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4537 \begin_layout Plain Layout
4545 <cell alignment="center" valignment="top" usebox="none">
4548 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4557 \begin_layout Plain Layout
4565 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4568 \begin_layout Plain Layout
4576 <cell alignment="center" valignment="top" usebox="none">
4579 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4588 \begin_layout Plain Layout
4596 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="center" valignment="top" usebox="none">
4610 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4619 \begin_layout Plain Layout
4627 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="center" valignment="top" usebox="none">
4641 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4650 \begin_layout Plain Layout
4658 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="center" valignment="top" usebox="none">
4672 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4681 \begin_layout Plain Layout
4689 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="center" valignment="top" usebox="none">
4703 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4712 \begin_layout Plain Layout
4720 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="center" valignment="top" usebox="none">
4734 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4743 \begin_layout Plain Layout
4751 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="center" valignment="top" usebox="none">
4765 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4774 \begin_layout Plain Layout
4782 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="center" valignment="top" usebox="none">
4796 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4805 \begin_layout Plain Layout
4813 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="center" valignment="top" usebox="none">
4827 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4836 \begin_layout Plain Layout
4844 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="center" valignment="top" usebox="none">
4858 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4867 \begin_layout Plain Layout
4875 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="center" valignment="top" usebox="none">
4889 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4898 \begin_layout Plain Layout
4906 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="center" valignment="top" usebox="none">
4920 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4929 \begin_layout Plain Layout
4937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="center" valignment="top" usebox="none">
4951 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4960 \begin_layout Plain Layout
4968 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="center" valignment="top" usebox="none">
4982 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4991 \begin_layout Plain Layout
4999 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="center" valignment="top" usebox="none">
5013 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5022 \begin_layout Plain Layout
5030 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="center" valignment="top" usebox="none">
5044 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5053 \begin_layout Plain Layout
5061 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="center" valignment="top" usebox="none">
5075 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5084 \begin_layout Plain Layout
5092 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="center" valignment="top" usebox="none">
5106 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5115 \begin_layout Plain Layout
5123 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="center" valignment="top" usebox="none">
5137 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5146 \begin_layout Plain Layout
5154 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5157 \begin_layout Plain Layout
5165 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5168 \begin_layout Plain Layout
5174 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5177 \begin_layout Plain Layout
5184 <row endlastfoot="true">
5185 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5188 \begin_layout Plain Layout
5194 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5197 \begin_layout Plain Layout
5203 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5206 \begin_layout Plain Layout
5221 \begin_layout Plain Layout
5225 addtocounter{table}{-1}
5231 \begin_inset Note Note
5234 \begin_layout Plain Layout
5235 See the first greyed-out note in section
5236 \begin_inset space ~
5240 \begin_inset CommandInset ref
5242 reference "sub:Longtable-Captions"
5246 for an explanation of this command.
5254 \begin_layout Subsection
5255 Footnotes in Longtables
5256 \begin_inset CommandInset label
5258 name "sub:Footnotes-in-Longtables"
5263 \begin_inset Index idx
5266 \begin_layout Plain Layout
5267 Longtables ! Footnotes
5275 \begin_layout Standard
5276 Footnotes can be inserted to every longtable cell.
5277 They appear at the bottom of the page where the table cell with the footnote
5280 \begin_inset space ~
5284 \begin_inset CommandInset ref
5286 reference "tab:DiffCaptions"
5290 has for example a footnote.
5293 \begin_layout Subsection
5295 \begin_inset Index idx
5298 \begin_layout Plain Layout
5299 Longtables ! Alignment
5307 \begin_layout Standard
5308 Longtables are by default centered.
5309 Unlike the alignment of the table columns and rows, the table alignment
5310 can currently not be changed in the table dialog.
5311 To change the alignment of longtables you have to change the value of the
5324 by inserting this line as TeX-Code before the corresponding longtable:
5327 \begin_layout Standard
5337 \begin_layout Standard
5338 where the value can have any of the units listed in Table
5339 \begin_inset space ~
5343 \begin_inset CommandInset ref
5345 reference "tab:Units"
5356 controls the horizontal distance from the left page border to the longtable,
5363 the distance from the right side.
5364 The default value for both lengths is
5370 , which is in this case the same as an horizontal fill in LyX.
5373 \begin_layout Standard
5374 The following longtable was left-aligned by setting
5381 \begin_inset space \thinspace{}
5388 \begin_layout Plain Layout
5402 \begin_layout Standard
5403 \begin_inset Tabular
5404 <lyxtabular version="3" rows="5" columns="5">
5405 <features islongtable="true" longtabularalignment="center">
5406 <column alignment="center" valignment="top" width="0">
5407 <column alignment="center" valignment="top" width="0">
5408 <column alignment="center" valignment="top" width="0">
5409 <column alignment="center" valignment="top" width="0">
5410 <column alignment="center" valignment="top" width="0">
5412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5415 \begin_layout Plain Layout
5421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5424 \begin_layout Plain Layout
5430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5433 \begin_layout Plain Layout
5439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5442 \begin_layout Plain Layout
5448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5451 \begin_layout Plain Layout
5459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5462 \begin_layout Plain Layout
5468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5471 \begin_layout Plain Layout
5477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5480 \begin_layout Plain Layout
5486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5489 \begin_layout Plain Layout
5495 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5498 \begin_layout Plain Layout
5506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5509 \begin_layout Plain Layout
5515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5518 \begin_layout Plain Layout
5524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5527 \begin_layout Plain Layout
5533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5536 \begin_layout Plain Layout
5542 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5545 \begin_layout Plain Layout
5553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5556 \begin_layout Plain Layout
5562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5565 \begin_layout Plain Layout
5571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5574 \begin_layout Plain Layout
5580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5583 \begin_layout Plain Layout
5589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5592 \begin_layout Plain Layout
5600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5603 \begin_layout Plain Layout
5609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5612 \begin_layout Plain Layout
5618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5621 \begin_layout Plain Layout
5627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5630 \begin_layout Plain Layout
5636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5639 \begin_layout Plain Layout
5654 \begin_layout Plain Layout
5671 \begin_layout Plain Layout
5675 addtocounter{table}{-1}
5681 \begin_inset Note Note
5684 \begin_layout Plain Layout
5685 See the first greyed-out note in section
5686 \begin_inset space ~
5690 \begin_inset CommandInset ref
5692 reference "sub:Longtable-Captions"
5696 for an explanation of this command.
5704 \begin_layout Subsection
5706 \begin_inset Index idx
5709 \begin_layout Plain Layout
5710 Longtables ! Captions
5716 \begin_inset CommandInset label
5718 name "sub:Longtable-Captions"
5725 \begin_layout Standard
5726 A longtable cannot be put into a table float because floats can only be
5728 But the caption environment of floats can also be used for longtables when
5729 you use the longtable option
5733 as described in sec.
5734 \begin_inset space \thinspace{}
5738 \begin_inset CommandInset ref
5740 reference "sec:Longtables"
5745 Only one table row can contain the caption.
5748 \begin_layout Standard
5749 Here is a short longtable to see how it works:
5752 \begin_layout Standard
5753 \begin_inset Tabular
5754 <lyxtabular version="3" rows="6" columns="5">
5755 <features islongtable="true" longtabularalignment="center">
5756 <column alignment="center" valignment="top" width="0">
5757 <column alignment="center" valignment="top" width="0">
5758 <column alignment="center" valignment="top" width="0">
5759 <column alignment="center" valignment="top" width="0">
5760 <column alignment="center" valignment="top" width="0">
5761 <row caption="true">
5762 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5765 \begin_layout Plain Layout
5766 \begin_inset Caption
5768 \begin_layout Plain Layout
5769 Longtable with caption
5770 \begin_inset Argument
5773 \begin_layout Plain Layout
5789 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5792 \begin_layout Plain Layout
5798 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5819 \begin_layout Plain Layout
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5839 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5866 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5886 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5913 \begin_layout Plain Layout
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5924 \begin_layout Plain Layout
5930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5933 \begin_layout Plain Layout
5939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5942 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5960 \begin_layout Plain Layout
5968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5971 \begin_layout Plain Layout
5977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5980 \begin_layout Plain Layout
5986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5989 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6007 \begin_layout Plain Layout
6015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6018 \begin_layout Plain Layout
6024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6027 \begin_layout Plain Layout
6033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6036 \begin_layout Plain Layout
6042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6045 \begin_layout Plain Layout
6051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6054 \begin_layout Plain Layout
6068 \begin_layout Standard
6069 \begin_inset VSpace medskip
6073 \begin_inset Note Greyedout
6076 \begin_layout Plain Layout
6080 \begin_inset space ~
6085 The table number is increased for for every longtable, even if you did
6086 not set a caption for it.
6087 For this reason you could have the case that e.
6088 \begin_inset space \thinspace{}
6092 \begin_inset space \space{}
6096 \begin_inset space ~
6100 \begin_inset space ~
6103 2.1 in the list of tables if there are two longtables without captions.
6104 To avoid this you can add the following command in TeX-Code after every
6105 longtable without a caption:
6108 \begin_layout Plain Layout
6113 addtocounter{table}{-1}
6116 \begin_layout Plain Layout
6117 This is not needed when none of your longtables have a caption and you add
6118 the following code to the document preamble:
6121 \begin_layout Plain Layout
6131 \begin_inset Newline newline
6142 addtocounter{table}{-1}}
6150 \begin_layout Standard
6151 \begin_inset Note Greyedout
6154 \begin_layout Plain Layout
6158 \begin_inset space ~
6168 \begin_inset Index idx
6171 \begin_layout Plain Layout
6172 LaTeX-packages ! hyperref
6185 dialog to link cross-references, the link to a longtable caption will always
6186 point to the beginning of the document.
6194 \begin_layout Subsubsection
6195 References to Longtables
6196 \begin_inset Index idx
6199 \begin_layout Plain Layout
6200 Longtables ! References
6208 \begin_layout Standard
6209 \begin_inset Tabular
6210 <lyxtabular version="3" rows="6" columns="5">
6211 <features islongtable="true" longtabularalignment="center">
6212 <column alignment="center" valignment="top" width="0">
6213 <column alignment="center" valignment="top" width="0">
6214 <column alignment="center" valignment="top" width="0">
6215 <column alignment="center" valignment="top" width="0">
6216 <column alignment="center" valignment="top" width="0">
6217 <row caption="true">
6218 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6221 \begin_layout Plain Layout
6222 \begin_inset Caption
6224 \begin_layout Plain Layout
6225 Referenced longtable
6226 \begin_inset CommandInset label
6228 name "tab:RefExample"
6242 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6245 \begin_layout Plain Layout
6251 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6254 \begin_layout Plain Layout
6260 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6263 \begin_layout Plain Layout
6269 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6272 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6283 \begin_layout Plain Layout
6289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6292 \begin_layout Plain Layout
6298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6301 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6310 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6319 \begin_layout Plain Layout
6327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6330 \begin_layout Plain Layout
6336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6339 \begin_layout Plain Layout
6345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6348 \begin_layout Plain Layout
6354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6357 \begin_layout Plain Layout
6363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6366 \begin_layout Plain Layout
6374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6377 \begin_layout Plain Layout
6383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6386 \begin_layout Plain Layout
6392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6395 \begin_layout Plain Layout
6401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6404 \begin_layout Plain Layout
6410 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6413 \begin_layout Plain Layout
6421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6424 \begin_layout Plain Layout
6430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6433 \begin_layout Plain Layout
6439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6442 \begin_layout Plain Layout
6448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6451 \begin_layout Plain Layout
6457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6460 \begin_layout Plain Layout
6468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6471 \begin_layout Plain Layout
6477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6480 \begin_layout Plain Layout
6486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6489 \begin_layout Plain Layout
6495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6498 \begin_layout Plain Layout
6504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6507 \begin_layout Plain Layout
6521 \begin_layout Standard
6522 To reference a longtable, insert a label into the caption.
6525 \begin_layout Standard
6526 This is a reference to Table
6527 \begin_inset space ~
6531 \begin_inset CommandInset ref
6533 reference "tab:RefExample"
6540 \begin_layout Standard
6541 The caption layout can be set together with all other captions of your document
6542 using the LaTeX-package
6547 \begin_inset Index idx
6550 \begin_layout Plain Layout
6551 LaTeX-packages ! caption
6557 \begin_inset space ~
6561 \begin_inset CommandInset ref
6563 reference "sec:Caption-Formatting"
6570 \begin_layout Subsubsection
6572 \begin_inset Index idx
6575 \begin_layout Plain Layout
6576 Longtables ! Caption Width
6584 \begin_layout Standard
6585 The maximal width of of caption lines is defined by the length
6592 Its default value is 4
6593 \begin_inset space \thinspace{}
6597 To change it add the following command to your document preamble or as
6598 TeX-Code into your document before the longtable that should be affected
6601 \begin_layout Standard
6611 \begin_layout Standard
6612 where the width could have one of the units listed in appendix
6613 \begin_inset space ~
6617 \begin_inset CommandInset ref
6619 reference "cha:Units-available-in"
6626 \begin_layout Standard
6627 The following tables show the difference:
6630 \begin_layout Standard
6631 \begin_inset Tabular
6632 <lyxtabular version="3" rows="6" columns="5">
6633 <features islongtable="true" longtabularalignment="center">
6634 <column alignment="center" valignment="top" width="0">
6635 <column alignment="center" valignment="top" width="0">
6636 <column alignment="center" valignment="top" width="0">
6637 <column alignment="center" valignment="top" width="0">
6638 <column alignment="center" valignment="top" width="0">
6639 <row caption="true">
6640 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6643 \begin_layout Plain Layout
6644 \begin_inset Caption
6646 \begin_layout Plain Layout
6647 long full title with default width long full title with default width long
6648 full title with default width
6649 \begin_inset Argument
6652 \begin_layout Plain Layout
6653 caption with default width
6668 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6671 \begin_layout Plain Layout
6677 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6680 \begin_layout Plain Layout
6686 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6689 \begin_layout Plain Layout
6695 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6698 \begin_layout Plain Layout
6706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6709 \begin_layout Plain Layout
6715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6718 \begin_layout Plain Layout
6724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6727 \begin_layout Plain Layout
6733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6736 \begin_layout Plain Layout
6742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6745 \begin_layout Plain Layout
6753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6756 \begin_layout Plain Layout
6762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6765 \begin_layout Plain Layout
6771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6774 \begin_layout Plain Layout
6780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6783 \begin_layout Plain Layout
6789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6792 \begin_layout Plain Layout
6800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6803 \begin_layout Plain Layout
6809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6812 \begin_layout Plain Layout
6818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6821 \begin_layout Plain Layout
6827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6830 \begin_layout Plain Layout
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6839 \begin_layout Plain Layout
6847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6850 \begin_layout Plain Layout
6856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6859 \begin_layout Plain Layout
6865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6868 \begin_layout Plain Layout
6874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6877 \begin_layout Plain Layout
6883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6886 \begin_layout Plain Layout
6894 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6897 \begin_layout Plain Layout
6903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6906 \begin_layout Plain Layout
6912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6915 \begin_layout Plain Layout
6921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6924 \begin_layout Plain Layout
6930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6933 \begin_layout Plain Layout
6947 \begin_layout Standard
6951 \begin_layout Plain Layout
6963 \begin_inset Tabular
6964 <lyxtabular version="3" rows="6" columns="5">
6965 <features islongtable="true" longtabularalignment="center">
6966 <column alignment="center" valignment="top" width="0">
6967 <column alignment="center" valignment="top" width="0">
6968 <column alignment="center" valignment="top" width="0">
6969 <column alignment="center" valignment="top" width="0">
6970 <column alignment="center" valignment="top" width="0">
6971 <row caption="true">
6972 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6975 \begin_layout Plain Layout
6976 \begin_inset Caption
6978 \begin_layout Plain Layout
6979 long full title with width set to 5
6980 \begin_inset space \thinspace{}
6983 cm long full title with width set to 5
6984 \begin_inset space \thinspace{}
6987 cm long full title with width set to 5
6988 \begin_inset space \thinspace{}
6992 \begin_inset Argument
6995 \begin_layout Plain Layout
6997 \begin_inset space \thinspace{}
7001 \begin_inset space \thinspace{}
7005 \begin_inset space \thinspace{}
7023 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7026 \begin_layout Plain Layout
7032 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7035 \begin_layout Plain Layout
7041 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7044 \begin_layout Plain Layout
7050 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7053 \begin_layout Plain Layout
7061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7064 \begin_layout Plain Layout
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Plain Layout
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7082 \begin_layout Plain Layout
7088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7091 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7100 \begin_layout Plain Layout
7108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7111 \begin_layout Plain Layout
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7120 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7129 \begin_layout Plain Layout
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7138 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7147 \begin_layout Plain Layout
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7158 \begin_layout Plain Layout
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7167 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7176 \begin_layout Plain Layout
7182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7185 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7194 \begin_layout Plain Layout
7202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7205 \begin_layout Plain Layout
7211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7214 \begin_layout Plain Layout
7220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7223 \begin_layout Plain Layout
7229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7232 \begin_layout Plain Layout
7238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7241 \begin_layout Plain Layout
7249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7252 \begin_layout Plain Layout
7258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7261 \begin_layout Plain Layout
7267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7270 \begin_layout Plain Layout
7276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7279 \begin_layout Plain Layout
7285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7288 \begin_layout Plain Layout
7302 \begin_layout Standard
7306 \begin_layout Plain Layout
7320 \begin_layout Standard
7321 \begin_inset Note Greyedout
7324 \begin_layout Plain Layout
7329 When the LaTeX-package
7334 \begin_inset Index idx
7337 \begin_layout Plain Layout
7338 LaTeX-packages ! caption
7343 is used, as in this document, the full page width is used for the caption
7344 when you use the default value of 4
7345 \begin_inset space \thinspace{}
7355 To get in this case exactly a 4
7356 \begin_inset space \thinspace{}
7359 in wide caption, you can either use a value slightly different from 4.0
7360 \begin_inset space \thinspace{}
7364 \begin_inset space \thinspace{}
7368 \begin_inset space \space{}
7372 \begin_inset space \thinspace{}
7375 in, or the LaTeX-command
7379 captionsetup{width=value}
7381 that is provided by the
7393 \begin_layout Subsubsection
7394 Different Captions for Table Pages
7395 \begin_inset Index idx
7398 \begin_layout Plain Layout
7399 Longtables ! Different Captions for Pages
7407 \begin_layout Standard
7408 When the table captions for the following pages should differ from the one
7409 of the first table page, insert a caption with the TeX code command
7412 \begin_layout Standard
7417 caption*{caption text}
7424 \begin_layout Standard
7425 in a dummy caption row that is marked as a header.
7427 \begin_inset space ~
7431 \begin_inset CommandInset ref
7433 reference "tab:DiffCaptions"
7437 is an example of a longtable with different heading where the second caption
7438 doesn't include the table number.
7441 \begin_layout Standard
7443 \begin_inset Tabular
7444 <lyxtabular version="3" rows="59" columns="3">
7445 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7446 <column alignment="left" valignment="top" width="0cm">
7447 <column alignment="left" valignment="top" width="0pt">
7448 <column alignment="center" valignment="top" width="0pt">
7449 <row caption="true">
7450 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7453 \begin_layout Plain Layout
7454 \begin_inset Caption
7456 \begin_layout Plain Layout
7458 \begin_inset CommandInset label
7460 name "tab:DiffCaptions"
7465 \begin_inset Argument
7468 \begin_layout Plain Layout
7484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7487 \begin_layout Plain Layout
7493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7496 \begin_layout Plain Layout
7503 <row endfirsthead="true">
7504 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7507 \begin_layout Plain Layout
7510 Example Phone List (ignore the names)
7515 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7518 \begin_layout Plain Layout
7524 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7527 \begin_layout Plain Layout
7534 <row endfirsthead="true">
7535 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7538 \begin_layout Plain Layout
7546 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7549 \begin_layout Plain Layout
7555 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7558 \begin_layout Plain Layout
7567 <row endhead="true">
7568 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7571 \begin_layout Plain Layout
7575 \begin_layout Plain Layout
7579 caption*{Continued Example Phone List}
7593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7596 \begin_layout Plain Layout
7602 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7605 \begin_layout Plain Layout
7612 <row endhead="true">
7613 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7616 \begin_layout Plain Layout
7624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7627 \begin_layout Plain Layout
7633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7636 \begin_layout Plain Layout
7643 <row endhead="true">
7644 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7647 \begin_layout Plain Layout
7655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7658 \begin_layout Plain Layout
7664 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7667 \begin_layout Plain Layout
7676 <row endfoot="true">
7677 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7680 \begin_layout Plain Layout
7681 continued on next page
7686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7689 \begin_layout Plain Layout
7695 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7698 \begin_layout Plain Layout
7706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7709 \begin_layout Plain Layout
7717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7720 \begin_layout Plain Layout
7726 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7729 \begin_layout Plain Layout
7737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7740 \begin_layout Plain Layout
7748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7751 \begin_layout Plain Layout
7757 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7760 \begin_layout Plain Layout
7768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7771 \begin_layout Plain Layout
7779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7782 \begin_layout Plain Layout
7788 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7791 \begin_layout Plain Layout
7799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7802 \begin_layout Plain Layout
7810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7813 \begin_layout Plain Layout
7819 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7822 \begin_layout Plain Layout
7830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7833 \begin_layout Plain Layout
7841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7844 \begin_layout Plain Layout
7850 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7853 \begin_layout Plain Layout
7861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7864 \begin_layout Plain Layout
7872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7875 \begin_layout Plain Layout
7881 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7884 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7895 \begin_layout Plain Layout
7903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7906 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7915 \begin_layout Plain Layout
7923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7926 \begin_layout Plain Layout
7934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7937 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7946 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7957 \begin_layout Plain Layout
7965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7968 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7977 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7999 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8008 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8030 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8039 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8061 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8070 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8092 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8101 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8123 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8152 \begin_layout Plain Layout
8163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8166 \begin_layout Plain Layout
8172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8175 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8186 \begin_layout Plain Layout
8194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8197 \begin_layout Plain Layout
8203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8206 \begin_layout Plain Layout
8214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8217 \begin_layout Plain Layout
8225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8228 \begin_layout Plain Layout
8234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8237 \begin_layout Plain Layout
8245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8248 \begin_layout Plain Layout
8256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8259 \begin_layout Plain Layout
8265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8268 \begin_layout Plain Layout
8276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8279 \begin_layout Plain Layout
8287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8290 \begin_layout Plain Layout
8296 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8299 \begin_layout Plain Layout
8307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8310 \begin_layout Plain Layout
8318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8321 \begin_layout Plain Layout
8327 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8330 \begin_layout Plain Layout
8338 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8341 \begin_layout Plain Layout
8349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8352 \begin_layout Plain Layout
8358 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8361 \begin_layout Plain Layout
8369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8372 \begin_layout Plain Layout
8380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8383 \begin_layout Plain Layout
8389 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8392 \begin_layout Plain Layout
8400 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8403 \begin_layout Plain Layout
8411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8414 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8423 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8434 \begin_layout Plain Layout
8442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8445 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8454 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8476 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8485 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8507 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8516 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8538 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8547 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8569 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8578 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8600 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8609 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8631 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8640 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8662 \begin_layout Plain Layout
8668 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8671 \begin_layout Plain Layout
8679 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8682 \begin_layout Plain Layout
8688 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8691 \begin_layout Plain Layout
8697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8711 \begin_layout Plain Layout
8719 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8722 \begin_layout Plain Layout
8728 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8742 \begin_layout Plain Layout
8750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8753 \begin_layout Plain Layout
8759 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8773 \begin_layout Plain Layout
8781 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8784 \begin_layout Plain Layout
8790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8804 \begin_layout Plain Layout
8812 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8815 \begin_layout Plain Layout
8821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8835 \begin_layout Plain Layout
8843 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8846 \begin_layout Plain Layout
8852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8866 \begin_layout Plain Layout
8874 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8877 \begin_layout Plain Layout
8883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8897 \begin_layout Plain Layout
8905 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8908 \begin_layout Plain Layout
8914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8928 \begin_layout Plain Layout
8936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8939 \begin_layout Plain Layout
8945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8967 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8970 \begin_layout Plain Layout
8976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8979 \begin_layout Plain Layout
8987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9001 \begin_layout Plain Layout
9007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9010 \begin_layout Plain Layout
9018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9032 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9041 \begin_layout Plain Layout
9049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9063 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9072 \begin_layout Plain Layout
9080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9094 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9103 \begin_layout Plain Layout
9111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9125 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9134 \begin_layout Plain Layout
9142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9156 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9165 \begin_layout Plain Layout
9173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9187 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9196 \begin_layout Plain Layout
9204 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9218 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9227 \begin_layout Plain Layout
9235 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9249 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9258 \begin_layout Plain Layout
9266 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9280 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9289 \begin_layout Plain Layout
9297 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9311 \begin_layout Plain Layout
9317 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9320 \begin_layout Plain Layout
9334 \begin_layout Section
9335 Special Longtable Issues
9336 \begin_inset CommandInset label
9338 name "sec:Special-Longtable-Issues"
9345 \begin_layout Subsection
9346 Longtable Calculation
9347 \begin_inset Index idx
9350 \begin_layout Plain Layout
9351 Longtables ! Calculation
9359 \begin_layout Standard
9360 LaTeX calculates the height of table pages and their page breaks using so
9362 Chunks are parts of tables that held at the same time in LaTeX's memory.
9363 The default value was historically set to only 20 table rows.
9364 If you are using longtables with many pages this may slow down the creation
9366 You can safely increase the chunk size to values of 100-1000 by adding
9367 this command line to your document preamble:
9370 \begin_layout Standard
9375 setcounter{LTchunksize}{100}
9378 \begin_layout Subsection
9379 Floats and Longtables
9380 \begin_inset Index idx
9383 \begin_layout Plain Layout
9392 \begin_layout Standard
9393 There might be problems when a float appears on the same page where a longtable
9395 To avoid such a situation, insert a
9396 \begin_inset Quotes eld
9400 \begin_inset Quotes erd
9405 Insert\SpecialChar \menuseparator
9406 Formatting\SpecialChar \menuseparator
9408 \begin_inset space ~
9413 ) before your longtable.
9416 \begin_layout Subsection
9418 \begin_inset Index idx
9421 \begin_layout Plain Layout
9422 Longtables ! Forced Page Breaks
9430 \begin_layout Standard
9431 By default tables are only broken between rows.
9432 If you have a cell with multiples lines and want to have a page break within
9433 the cell, insert the new line command
9434 \begin_inset Quotes eld
9446 \begin_inset Quotes erd
9449 as TeX-Code at the point of the cell where it can be broken.
9458 command you have to insert in TeX-Code as many
9459 \begin_inset Quotes eld
9467 \begin_inset Quotes erd
9470 characters as the number of the following table columns.
9475 is the character to separate table cells.
9476 Write in TeX-Code after each
9480 the content of the corresponding following cell and delete the content
9482 \begin_inset Newline newline
9493 command, insert as many
9497 characters as the number of table columns before the current column.
9499 \begin_inset space ~
9503 \begin_inset CommandInset ref
9505 reference "tab:ForcedPagebreak"
9509 the cell that should be broken is in the second column followed by another
9511 Therefore the following command was inserted in the cell as TeX-Code after
9513 \begin_inset Quotes eld
9521 \begin_inset Quotes erd
9527 \begin_layout Standard
9537 \begin_inset Newline newline
9543 \begin_layout Standard
9545 \begin_inset Quotes eld
9549 \begin_inset Quotes erd
9552 in the third column of the row was deleted.
9559 is only needed when a page break should definitely occur at this position,
9560 otherwise it would be a conditional break.
9561 If your footer row of the longtable has for a certain reason no upper line
9562 but you would have a horizontal line where the cell is broken, use this
9566 \begin_layout Standard
9574 \begin_inset Newline newline
9582 \begin_layout Standard
9583 When the cell to be broken is in the last column, the command
9586 \begin_layout Standard
9596 \begin_layout Standard
9597 must be inserted as TeX-Code at the beginning of the cell.
9598 This ensures that the part of the cell that will be displayed on the new
9599 page appears with the full width.
9602 \begin_layout Standard
9604 \begin_inset Tabular
9605 <lyxtabular version="3" rows="38" columns="3">
9606 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9607 <column alignment="left" valignment="top" width="0cm">
9608 <column alignment="left" valignment="top" width="3cm">
9609 <column alignment="center" valignment="top" width="0pt">
9610 <row caption="true">
9611 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9614 \begin_layout Plain Layout
9615 \begin_inset Caption
9617 \begin_layout Plain Layout
9618 Table with forced page break in table cell
9619 \begin_inset CommandInset label
9621 name "tab:ForcedPagebreak"
9626 \begin_inset Argument
9629 \begin_layout Plain Layout
9630 Table with forced page break in table cell
9645 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9648 \begin_layout Plain Layout
9654 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9657 \begin_layout Plain Layout
9664 <row endfirsthead="true">
9665 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9668 \begin_layout Plain Layout
9671 Example Phone List (ignore the names)
9676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9679 \begin_layout Plain Layout
9685 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9688 \begin_layout Plain Layout
9695 <row endfirsthead="true">
9696 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9699 \begin_layout Plain Layout
9707 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9710 \begin_layout Plain Layout
9716 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9719 \begin_layout Plain Layout
9728 <row endhead="true">
9729 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9732 \begin_layout Plain Layout
9736 \begin_layout Plain Layout
9740 caption*{Continued Example Phone List}
9754 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9757 \begin_layout Plain Layout
9763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9766 \begin_layout Plain Layout
9773 <row endhead="true">
9774 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9777 \begin_layout Plain Layout
9785 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9788 \begin_layout Plain Layout
9794 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9797 \begin_layout Plain Layout
9804 <row endhead="true">
9805 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9808 \begin_layout Plain Layout
9816 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9819 \begin_layout Plain Layout
9825 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9828 \begin_layout Plain Layout
9837 <row endfoot="true">
9838 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9841 \begin_layout Plain Layout
9842 continued on next page
9847 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9850 \begin_layout Plain Layout
9856 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9859 \begin_layout Plain Layout
9867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9870 \begin_layout Plain Layout
9878 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9881 \begin_layout Plain Layout
9887 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9890 \begin_layout Plain Layout
9898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9901 \begin_layout Plain Layout
9909 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9912 \begin_layout Plain Layout
9918 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9921 \begin_layout Plain Layout
9929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9932 \begin_layout Plain Layout
9940 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9943 \begin_layout Plain Layout
9949 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9952 \begin_layout Plain Layout
9960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9963 \begin_layout Plain Layout
9971 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9974 \begin_layout Plain Layout
9980 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9983 \begin_layout Plain Layout
9991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9994 \begin_layout Plain Layout
10002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10005 \begin_layout Plain Layout
10011 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10014 \begin_layout Plain Layout
10022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10025 \begin_layout Plain Layout
10033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10036 \begin_layout Plain Layout
10042 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10045 \begin_layout Plain Layout
10053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10056 \begin_layout Plain Layout
10064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10067 \begin_layout Plain Layout
10073 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10076 \begin_layout Plain Layout
10084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10087 \begin_layout Plain Layout
10095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10098 \begin_layout Plain Layout
10104 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10107 \begin_layout Plain Layout
10115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10118 \begin_layout Plain Layout
10126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10129 \begin_layout Plain Layout
10135 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10138 \begin_layout Plain Layout
10146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10160 \begin_layout Plain Layout
10166 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10169 \begin_layout Plain Layout
10177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10191 \begin_layout Plain Layout
10197 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10200 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10222 \begin_layout Plain Layout
10228 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10231 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10253 \begin_layout Plain Layout
10259 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10262 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10284 \begin_layout Plain Layout
10290 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10293 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10315 \begin_layout Plain Layout
10321 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10324 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10346 \begin_layout Plain Layout
10352 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10355 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10377 \begin_layout Plain Layout
10383 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10386 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10408 \begin_layout Plain Layout
10414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10417 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10439 \begin_layout Plain Layout
10445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10448 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10470 \begin_layout Plain Layout
10476 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10479 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10501 \begin_layout Plain Layout
10507 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10510 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10532 \begin_layout Plain Layout
10538 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10541 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10563 \begin_layout Plain Layout
10565 Fürst von Montecompatri, 11.
10566 Fürst von Sulmona und Vivaro, 10.
10567 Fürst von Rossano, 5.
10568 Herzog von Canemorte, 11.
10569 Herzog von Palombara, 5.
10570 Herzog von Castelchiodato,
10574 \begin_layout Plain Layout
10585 \begin_layout Plain Layout
10593 Herzog von Poggionativo, 11.
10594 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10595 Graf von Valinfreda, 11.
10596 Baron von Cropalati, 11.
10597 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10605 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10627 \begin_layout Plain Layout
10633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10636 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10658 \begin_layout Plain Layout
10664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10667 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10689 \begin_layout Plain Layout
10695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10698 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10720 \begin_layout Plain Layout
10726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10729 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10751 \begin_layout Plain Layout
10757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10760 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10771 \begin_layout Plain Layout
10779 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10782 \begin_layout Plain Layout
10788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10791 \begin_layout Plain Layout
10799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10802 \begin_layout Plain Layout
10810 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10813 \begin_layout Plain Layout
10819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10830 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10833 \begin_layout Plain Layout
10841 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10844 \begin_layout Plain Layout
10850 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10853 \begin_layout Plain Layout
10867 \begin_layout Section
10868 Multiple Lines Columns and Rows
10871 \begin_layout Subsection
10872 Multiple Lines in Table Cells
10873 \begin_inset CommandInset label
10875 name "sub:Multiple-Lines-in"
10880 \begin_inset Index idx
10883 \begin_layout Plain Layout
10884 Multiple Lines in Table Cells
10890 \begin_inset Index idx
10893 \begin_layout Plain Layout
10902 \begin_layout Standard
10904 \begin_inset Float table
10910 \begin_layout Plain Layout
10911 \begin_inset Caption
10913 \begin_layout Plain Layout
10914 \begin_inset CommandInset label
10916 name "tab:Table-with-multiple"
10920 Table with multiple lines in cells
10928 \begin_layout Plain Layout
10930 \begin_inset Tabular
10931 <lyxtabular version="3" rows="3" columns="3">
10932 <features tabularvalignment="middle">
10933 <column alignment="center" valignment="middle" width="2.5cm">
10934 <column alignment="center" valignment="middle" width="0">
10935 <column alignment="center" valignment="middle" width="0">
10937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10942 \begin_inset Newline linebreak
10950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10953 \begin_layout Plain Layout
10959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10962 \begin_layout Plain Layout
10970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10973 \begin_layout Plain Layout
10979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10982 \begin_layout Plain Layout
10988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10991 \begin_layout Plain Layout
10999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11002 \begin_layout Plain Layout
11008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11011 \begin_layout Plain Layout
11017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11020 \begin_layout Plain Layout
11039 \begin_layout Standard
11040 Setting a fixed width for a column enables you to enter text as a paragraph
11041 with multiple lines and hyphenation.
11044 \begin_layout Standard
11046 \begin_inset space ~
11050 \begin_inset CommandInset ref
11052 reference "tab:Table-with-multiple"
11056 , create a 3×3 table, mark the first cell and right-click on it.
11057 In the appearing table dialog we set a cell width of 2.5
11058 \begin_inset space \thinspace{}
11061 cm and choose centered for the vertical and horizontal alignment.
11062 The vertical alignment is used for all cells of the row.
11063 As our text is smaller than 2.5
11064 \begin_inset space \thinspace{}
11067 cm, only one line will appear.
11068 To get two lines, a justified line break (shortcut
11071 arg "newline-insert linebreak"
11075 If the text is wider than the set cell width, it will automatically be
11076 broken to several lines.
11079 \begin_layout Standard
11080 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11081 by LaTeX if it is the first entry.
11082 Therefore you need to insert something to prevent the word not being the
11084 So add a horizontal space of 0
11085 \begin_inset space \thinspace{}
11088 pt before the word.
11089 As the space is zero, it doesn't change the output.
11091 \begin_inset space ~
11095 \begin_inset CommandInset ref
11097 reference "tab:Table-with-and"
11104 \begin_layout Standard
11105 \begin_inset Float table
11111 \begin_layout Plain Layout
11112 \begin_inset Caption
11114 \begin_layout Plain Layout
11115 \begin_inset CommandInset label
11117 name "tab:Table-with-and"
11121 Table with and without hyphenation
11129 \begin_layout Plain Layout
11130 \begin_inset space \hfill{}
11134 \begin_inset Tabular
11135 <lyxtabular version="3" rows="3" columns="3">
11136 <features tabularvalignment="middle">
11137 <column alignment="center" valignment="middle" width="2.5cm">
11138 <column alignment="center" valignment="middle" width="0">
11139 <column alignment="center" valignment="middle" width="0">
11141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11144 \begin_layout Plain Layout
11145 verylongtablecellword
11150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11153 \begin_layout Plain Layout
11159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11162 \begin_layout Plain Layout
11170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11173 \begin_layout Plain Layout
11179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11182 \begin_layout Plain Layout
11188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11191 \begin_layout Plain Layout
11199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11202 \begin_layout Plain Layout
11208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11211 \begin_layout Plain Layout
11217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11220 \begin_layout Plain Layout
11232 \begin_inset space \hfill{}
11236 \begin_inset Tabular
11237 <lyxtabular version="3" rows="3" columns="3">
11238 <features tabularvalignment="middle">
11239 <column alignment="center" valignment="middle" width="2.5cm">
11240 <column alignment="center" valignment="middle" width="0">
11241 <column alignment="center" valignment="middle" width="0">
11243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11246 \begin_layout Plain Layout
11247 \begin_inset space \hspace{}
11251 verylongtablecellword
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11259 \begin_layout Plain Layout
11265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11268 \begin_layout Plain Layout
11276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11279 \begin_layout Plain Layout
11285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11288 \begin_layout Plain Layout
11294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11297 \begin_layout Plain Layout
11305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11308 \begin_layout Plain Layout
11314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11317 \begin_layout Plain Layout
11323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11326 \begin_layout Plain Layout
11338 \begin_inset space \hfill{}
11349 \begin_layout Subsection
11351 \begin_inset CommandInset label
11353 name "sub:Multicolumns"
11358 \begin_inset Index idx
11361 \begin_layout Plain Layout
11368 \begin_inset Index idx
11371 \begin_layout Plain Layout
11372 Table ! Multicolumns
11380 \begin_layout Subsubsection
11384 \begin_layout Standard
11385 To merge cells over multiple columns, select as many cells within a row
11386 as you want to merge and use either the table-toolbar button
11387 \begin_inset Graphics
11388 filename ../images/tabular-feature_multicolumn.png
11390 scaleBeforeRotation
11396 Edit\SpecialChar \menuseparator
11397 Table\SpecialChar \menuseparator
11400 , or right click on the marked cells and choose
11404 in the appearing context menu.
11407 \begin_layout Standard
11408 Multicolumns have there own cell settings.
11409 That means changing cell borders, cell alignment, and the width only affects
11411 Here is an example table with a multicolumn cell in the first row and one
11412 in the last row without the upper border:
11415 \begin_layout Standard
11417 \begin_inset Tabular
11418 <lyxtabular version="3" rows="3" columns="4">
11419 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11420 <column alignment="center" valignment="top" width="0pt">
11421 <column alignment="center" valignment="middle" width="0">
11422 <column alignment="center" valignment="top" width="0in">
11423 <column alignment="center" valignment="top" width="0pt">
11425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11428 \begin_layout Plain Layout
11434 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11437 \begin_layout Plain Layout
11443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11446 \begin_layout Plain Layout
11452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11455 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11466 \begin_layout Plain Layout
11481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11484 \begin_layout Plain Layout
11490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11493 \begin_layout Plain Layout
11499 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11502 \begin_layout Plain Layout
11510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11513 \begin_layout Plain Layout
11519 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11531 \begin_layout Plain Layout
11537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11540 \begin_layout Plain Layout
11554 \begin_layout Subsubsection
11555 Multicolumn Calculations
11556 \begin_inset CommandInset label
11558 name "sub:Multicolumn-Calculations"
11563 \begin_inset Index idx
11566 \begin_layout Plain Layout
11567 Multicolumns ! Calculations
11575 \begin_layout Standard
11576 LyX supports multicolumns directly, but we have to take account of the cell
11577 width of the columns spanned by the multicolumn cell.
11580 \begin_layout Standard
11581 \begin_inset Float table
11587 \begin_layout Plain Layout
11588 \begin_inset Caption
11590 \begin_layout Plain Layout
11591 \begin_inset CommandInset label
11593 name "tab:Table-with-centered"
11597 Table with centered multicolumn text above two columns that have exactly
11598 half the width of the multicolumn cell
11599 \begin_inset Argument
11602 \begin_layout Plain Layout
11603 Perfect multicolumn table
11616 \begin_layout Plain Layout
11618 \begin_inset Tabular
11619 <lyxtabular version="3" rows="3" columns="3">
11620 <features tabularvalignment="middle">
11621 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11622 <column alignment="center" valignment="middle" width="0">
11623 <column alignment="center" valignment="top" width="0">
11625 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11628 \begin_layout Plain Layout
11629 multiple lines multicolumn
11634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11637 \begin_layout Plain Layout
11643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11646 \begin_layout Plain Layout
11654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11657 \begin_layout Plain Layout
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11666 \begin_layout Plain Layout
11672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11675 \begin_layout Plain Layout
11683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11695 \begin_layout Plain Layout
11701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11704 \begin_layout Plain Layout
11723 \begin_layout Standard
11724 To create for example Table
11725 \begin_inset space ~
11729 \begin_inset CommandInset ref
11731 reference "tab:Table-with-centered"
11735 , mark the first two cells in the first row of a 3×3 table and right-click
11737 Now choose for this cell
11746 \begin_inset space \thinspace{}
11749 cm in the table dialog.
11750 The merged columns should have exactly half the width of the multicolumn
11751 cell, so that you would set a width of 1.25
11752 \begin_inset space \thinspace{}
11755 cm for the first column.
11756 The second column has then automatically a width of 1.25
11757 \begin_inset space \thinspace{}
11760 cm (multicolumn width - width of first column).
11761 This was done for Table
11762 \begin_inset space ~
11766 \begin_inset CommandInset ref
11768 reference "tab:Table-without-half"
11775 \begin_layout Standard
11776 \begin_inset Float table
11781 \begin_layout Plain Layout
11782 \begin_inset Caption
11784 \begin_layout Plain Layout
11785 \begin_inset CommandInset label
11787 name "tab:Table-without-half"
11791 Table where the spanned table columns are not exactly half the width of
11792 the multicolumn cell
11793 \begin_inset Argument
11796 \begin_layout Plain Layout
11797 Imperfect multicolumn table
11810 \begin_layout Plain Layout
11812 \begin_inset Tabular
11813 <lyxtabular version="3" rows="3" columns="3">
11814 <features tabularvalignment="middle">
11815 <column alignment="center" valignment="top" width="1.25cm">
11816 <column alignment="center" valignment="top" width="0">
11817 <column alignment="center" valignment="top" width="0">
11819 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11822 \begin_layout Plain Layout
11823 multiple lines multicolumn
11828 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11831 \begin_layout Plain Layout
11837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11840 \begin_layout Plain Layout
11848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11851 \begin_layout Plain Layout
11857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11860 \begin_layout Plain Layout
11866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11869 \begin_layout Plain Layout
11877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11880 \begin_layout Plain Layout
11886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11889 \begin_layout Plain Layout
11895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11898 \begin_layout Plain Layout
11917 \begin_layout Standard
11918 You can see that the first column is not half the width of the multicolumn
11919 cell, it is a bit bigger.
11920 The reason is that the specified width of a cell
11921 \begin_inset Formula $W_{g}$
11924 is not its total width
11925 \begin_inset Formula $W_{\mathrm{tot}}$
11928 because a cell is always a bit larger than specified.
11930 \begin_inset space ~
11934 \begin_inset CommandInset ref
11936 reference "cha:Explanation-of-Equation"
11940 explains this in detail.
11943 \begin_layout Standard
11945 \begin_inset Formula $W_{g\, n}$
11948 which the user needs to set when
11952 columns are spanned can be calculated, so that each column has a total
11954 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11958 \begin_inset Formula \begin{equation}
11959 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11966 \begin_layout Standard
11967 In our case we have
11968 \begin_inset Formula $n=2$
11972 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11975 cm and the default values for the lengths, so that equation
11976 \begin_inset CommandInset ref
11983 \begin_inset Formula \begin{equation}
11984 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11991 \begin_layout Standard
11992 To enable calculations in LaTeX, the LaTeX-package
11996 must be loaded with the document preamble line
11997 \begin_inset Index idx
12000 \begin_layout Plain Layout
12001 LaTeX-packages ! calc
12009 \begin_layout Standard
12017 \begin_layout Standard
12018 LyX does not allow you to calculate lengths in the
12022 field of the table dialog.
12023 Therefore you have to format the column by inserting a LaTeX-argument in
12025 Here is an overview about the arguments:
12028 \begin_layout Itemize
12033 creates cell with a fixed width, its text is vertically top-aligned
12036 \begin_layout Itemize
12041 creates cell with a fixed width, its text is vertically centered
12044 \begin_layout Itemize
12049 creates cell with a fixed width, its text is vertically bottom-aligned
12052 \begin_layout Standard
12053 By entering a LaTeX-argument, all cell settings set in the table dialog
12057 \begin_layout Standard
12058 \begin_inset Note Greyedout
12061 \begin_layout Plain Layout
12066 Due to a bug, LyX shows the overwritten settings anyway.
12074 \begin_layout Standard
12075 As the text should be horizontally centered, the command
12082 You can now enter the following LaTeX-argument for the first spanned column:
12085 \begin_layout Standard
12090 centering}m{1.25cm-6.2pt}
12093 \begin_layout Standard
12098 means, that the commands inside the braces are applied before the cell
12102 \begin_layout Standard
12103 Although we have chosen centered alignment for the text of the multicolumn
12104 cell, it is still left aligned.
12105 This is because LyX only applies the alignment to single columns.
12106 So for the multicolumn cell we have to use the LaTeX-argument
12109 \begin_layout Standard
12117 \begin_layout Subsection
12119 \begin_inset Index idx
12122 \begin_layout Plain Layout
12129 \begin_inset Index idx
12132 \begin_layout Plain Layout
12141 \begin_layout Standard
12142 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12143 TeX-Code needs to be used.
12144 To use multirows load the LaTeX-package
12149 \begin_inset Index idx
12152 \begin_layout Plain Layout
12153 LaTeX-packages ! multirow
12158 in your document preamble with the command
12161 \begin_layout Standard
12166 usepackage{multirow}
12169 \begin_layout Standard
12170 Multirows are created with the command
12173 \begin_layout Standard
12178 multirow{number of rows}{cell width}{cell entry}
12181 \begin_layout Standard
12182 To create the following table:
12185 \begin_layout Standard
12190 \begin_layout Plain Layout
12204 \begin_inset Tabular
12205 <lyxtabular version="3" rows="3" columns="3">
12206 <features tabularvalignment="middle">
12207 <column alignment="center" valignment="top" width="0">
12208 <column alignment="center" valignment="top" width="0">
12209 <column alignment="center" valignment="top" width="0">
12211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12214 \begin_layout Plain Layout
12220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12223 \begin_layout Plain Layout
12229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12232 \begin_layout Plain Layout
12240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12243 \begin_layout Plain Layout
12247 \begin_layout Plain Layout
12251 multirow{2}{2.5cm}{
12260 \begin_layout Plain Layout
12272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12275 \begin_layout Plain Layout
12281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12284 \begin_layout Plain Layout
12292 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12295 \begin_layout Plain Layout
12301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12304 \begin_layout Plain Layout
12310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12313 \begin_layout Plain Layout
12328 \begin_layout Plain Layout
12344 \begin_layout Standard
12345 create a 3×3 table.
12346 Unset the upper border of the last cell in the first column.
12347 The multirow is now created in the second row of the first column by inserting
12351 \begin_layout Standard
12356 multirow{2}{2.5cm}{
12359 \begin_layout Standard
12361 According to the command parameters the multirow spans now two rows and
12363 \begin_inset space \thinspace{}
12367 The content of the multirow cell follows outside the TeX-Code box and the
12368 command is finished with a right brace
12372 in another TeX-Code-box after the text.
12375 \begin_layout Standard
12382 left-aligns its content by default.
12383 To override the default, renew the command
12392 \begin_layout Standard
12404 \begin_layout Standard
12405 in TeX-Code in the document preamble.
12406 Then all entries of multirow cells in the document are centered.
12407 If centering is only needed for several tables, you can renew the command
12408 in a TeX-Code box just before the table instead of the preamble.
12409 If the text should be right-aligned, replace
12422 To return to left-alignment
12431 \begin_layout Section
12433 \begin_inset CommandInset label
12435 name "sec:Formal-Tables"
12440 \begin_inset Index idx
12443 \begin_layout Plain Layout
12452 \begin_layout Standard
12453 Tables are often typeset in books similar to Table
12454 \begin_inset space ~
12458 \begin_inset CommandInset ref
12460 reference "tab:Example-booktabs-table"
12465 This kind of tables is called
12466 \begin_inset Quotes eld
12474 \begin_inset Quotes erd
12478 To make a table a formal table use the option
12486 tab of the table dialog.
12489 \begin_layout Standard
12490 \begin_inset Float table
12496 \begin_layout Plain Layout
12497 \begin_inset Caption
12499 \begin_layout Plain Layout
12500 \begin_inset CommandInset label
12502 name "tab:Example-booktabs-table"
12506 Example booktabs-table
12514 \begin_layout Plain Layout
12516 \begin_inset Tabular
12517 <lyxtabular version="3" rows="8" columns="4">
12518 <features booktabs="true" tabularvalignment="middle">
12519 <column alignment="center" valignment="top" width="0">
12520 <column alignment="center" valignment="top" width="0">
12521 <column alignment="center" valignment="top" width="0">
12522 <column alignment="center" valignment="top" width="0">
12524 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12527 \begin_layout Plain Layout
12533 <cell alignment="center" valignment="top" topline="true" usebox="none">
12536 \begin_layout Plain Layout
12538 \begin_inset space \thinspace{}
12546 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12549 \begin_layout Plain Layout
12551 \begin_inset space \thinspace{}
12559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12562 \begin_layout Plain Layout
12570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12573 \begin_layout Plain Layout
12577 \begin_layout Plain Layout
12590 \begin_layout Plain Layout
12599 Detector thickness in µm
12604 <cell alignment="center" valignment="top" usebox="none">
12607 \begin_layout Plain Layout
12613 <cell alignment="center" valignment="top" usebox="none">
12616 \begin_layout Plain Layout
12622 <cell alignment="center" valignment="top" usebox="none">
12625 \begin_layout Plain Layout
12633 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12636 \begin_layout Plain Layout
12642 <cell alignment="center" valignment="top" topline="true" usebox="none">
12645 \begin_layout Plain Layout
12651 <cell alignment="center" valignment="top" topline="true" usebox="none">
12654 \begin_layout Plain Layout
12660 <cell alignment="center" valignment="top" topline="true" usebox="none">
12663 \begin_layout Plain Layout
12670 <row topspace="default">
12671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12674 \begin_layout Plain Layout
12675 Spatial resolution in µm
12680 <cell alignment="center" valignment="top" usebox="none">
12683 \begin_layout Plain Layout
12689 <cell alignment="center" valignment="top" usebox="none">
12692 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" usebox="none">
12701 \begin_layout Plain Layout
12708 <row topspace="default">
12709 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12712 \begin_layout Plain Layout
12714 \begin_inset Formula $f_{\mathrm{max}}$
12722 <cell alignment="center" valignment="top" usebox="none">
12725 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" usebox="none">
12734 \begin_layout Plain Layout
12740 <cell alignment="center" valignment="top" usebox="none">
12743 \begin_layout Plain Layout
12750 <row topspace="default">
12751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12754 \begin_layout Plain Layout
12758 \begin_layout Plain Layout
12762 cmidrule(l{10pt}){1-1}
12767 LSF-spatial resolution
12772 <cell alignment="center" valignment="top" usebox="none">
12775 \begin_layout Plain Layout
12781 <cell alignment="center" valignment="top" usebox="none">
12784 \begin_layout Plain Layout
12790 <cell alignment="center" valignment="top" usebox="none">
12793 \begin_layout Plain Layout
12801 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12804 \begin_layout Plain Layout
12810 <cell alignment="center" valignment="top" usebox="none">
12813 \begin_layout Plain Layout
12819 <cell alignment="center" valignment="top" usebox="none">
12822 \begin_layout Plain Layout
12828 <cell alignment="center" valignment="top" usebox="none">
12831 \begin_layout Plain Layout
12839 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12842 \begin_layout Plain Layout
12848 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12851 \begin_layout Plain Layout
12857 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12860 \begin_layout Plain Layout
12866 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12869 \begin_layout Plain Layout
12888 \begin_layout Standard
12889 Spaces to table rows can be added using the
12893 tab of the table dialog as described in section
12894 \begin_inset space ~
12898 \begin_inset CommandInset ref
12900 reference "sub:Row-Spacing"
12907 \begin_layout Standard
12908 Unlike normal tables, formal tables have no vertical table lines.
12909 The horizontal table lines can be set as for normal tables but they appear
12910 with different widths in the output:
12911 \begin_inset Newline newline
12914 The first and the last table line have a default width of 0.08
12915 \begin_inset space \thinspace{}
12918 em while the other lines have a default width of 0.05
12919 \begin_inset space \thinspace{}
12925 \begin_layout Standard
12926 The default widths can be changed with the following preamble lines
12929 \begin_layout Standard
12939 \begin_inset Newline newline
12951 \begin_layout Standard
12952 This example is for the first line, the so called
12957 If you want to change the width for the last line, replace
12966 To change the width for the other lines replace
12975 You can use all units listed in appendix
12976 \begin_inset space ~
12980 \begin_inset CommandInset ref
12982 reference "cha:Units-available-in"
12989 \begin_layout Standard
12990 Lines that do not span all table columns can be created by setting a table
12991 line for multicolumn cells.
12992 LyX will then internally use the command
12998 to create this line.
13002 \begin_layout Standard
13007 cmidrule[width](trim){startcol-endcol}
13010 \begin_layout Standard
13017 are currently not supported by LyX so you have to use TeX-Code to be able
13025 s can manually be created by inserting the command as TeX-Code as the first
13026 cell entry of the first cell of a row.
13027 The line is then drawn in the output above the current row.
13030 \begin_layout Standard
13031 The default for the width is 0.03
13032 \begin_inset space \thinspace{}
13036 Startcol is the number of the column where the line starts and endcol the
13037 column number where the line ends.
13038 The endcol always needs to be specified, also when the line should span
13040 The optional parameter trim could be either
13048 where the trimwidth is also optional.
13049 Using for example the parameter
13053 means that the line is trimmed from its left end by 2
13054 \begin_inset space \thinspace{}
13058 If you don't specify the trimwidth the lines are trimmed by the default
13060 \begin_inset space \thinspace{}
13066 \begin_layout Standard
13067 \begin_inset VSpace bigskip
13071 \begin_inset space ~
13075 \begin_inset CommandInset ref
13077 reference "tab:Example-booktabs-table"
13081 was created using the commands
13084 \begin_layout Standard
13094 \begin_layout Standard
13095 at the beginning of the second row and
13098 \begin_layout Standard
13103 cmidrule(l{10pt}){1-1}
13106 \begin_layout Standard
13110 \begin_layout Standard
13111 \begin_inset VSpace bigskip
13117 \begin_layout Standard
13118 You might want to have overlapping
13125 \begin_inset space ~
13129 \begin_inset CommandInset ref
13131 reference "tab:Special-booktabs-table"
13136 This can be achieved with the TeX-Code command
13139 \begin_layout Standard
13147 \begin_layout Standard
13148 The command that was used for the second row of Table
13149 \begin_inset space ~
13153 \begin_inset CommandInset ref
13155 reference "tab:Special-booktabs-table"
13162 \begin_layout Standard
13176 \begin_layout Standard
13177 The command for the sixth row is
13180 \begin_layout Standard
13192 \begin_layout Standard
13193 \begin_inset VSpace bigskip
13199 \begin_layout Standard
13200 If you are anyway not satisfied with the border line spacing, you can use
13201 the following command to produce lines that span over all table columns
13206 \begin_layout Standard
13211 specialrule{width}{space above}{space below}
13214 \begin_layout Standard
13215 For more information about these features, refer to the manual of the LaTeX-pack
13221 \begin_inset CommandInset citation
13228 \begin_inset Index idx
13231 \begin_layout Plain Layout
13232 LaTeX-packages ! booktabs
13240 \begin_layout Standard
13241 \begin_inset Float table
13247 \begin_layout Plain Layout
13248 \begin_inset Caption
13250 \begin_layout Plain Layout
13251 \begin_inset CommandInset label
13253 name "tab:Special-booktabs-table"
13257 Special booktabs-table
13265 \begin_layout Plain Layout
13267 \begin_inset Tabular
13268 <lyxtabular version="3" rows="8" columns="4">
13269 <features booktabs="true" tabularvalignment="middle">
13270 <column alignment="center" valignment="top" width="0">
13271 <column alignment="center" valignment="top" width="0">
13272 <column alignment="center" valignment="top" width="0">
13273 <column alignment="center" valignment="top" width="0">
13275 <cell alignment="center" valignment="top" topline="true" usebox="none">
13278 \begin_layout Plain Layout
13284 <cell alignment="center" valignment="top" topline="true" usebox="none">
13287 \begin_layout Plain Layout
13289 \begin_inset space \thinspace{}
13297 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13300 \begin_layout Plain Layout
13302 \begin_inset space \thinspace{}
13310 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13313 \begin_layout Plain Layout
13321 <cell alignment="center" valignment="top" usebox="none">
13324 \begin_layout Plain Layout
13328 \begin_layout Plain Layout
13341 \begin_layout Plain Layout
13354 \begin_layout Plain Layout
13367 \begin_layout Plain Layout
13376 Detector thickness in µm
13381 <cell alignment="center" valignment="top" usebox="none">
13384 \begin_layout Plain Layout
13390 <cell alignment="center" valignment="top" usebox="none">
13393 \begin_layout Plain Layout
13399 <cell alignment="center" valignment="top" usebox="none">
13402 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" topline="true" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" topline="true" usebox="none">
13422 \begin_layout Plain Layout
13428 <cell alignment="center" valignment="top" topline="true" usebox="none">
13431 \begin_layout Plain Layout
13437 <cell alignment="center" valignment="top" topline="true" usebox="none">
13440 \begin_layout Plain Layout
13447 <row topspace="default">
13448 <cell alignment="center" valignment="top" usebox="none">
13451 \begin_layout Plain Layout
13452 Spatial resolution in µm
13457 <cell alignment="center" valignment="top" usebox="none">
13460 \begin_layout Plain Layout
13466 <cell alignment="center" valignment="top" usebox="none">
13469 \begin_layout Plain Layout
13475 <cell alignment="center" valignment="top" usebox="none">
13478 \begin_layout Plain Layout
13485 <row topspace="default">
13486 <cell alignment="center" valignment="top" usebox="none">
13489 \begin_layout Plain Layout
13491 \begin_inset Formula $f_{\mathrm{max}}$
13499 <cell alignment="center" valignment="top" usebox="none">
13502 \begin_layout Plain Layout
13508 <cell alignment="center" valignment="top" usebox="none">
13511 \begin_layout Plain Layout
13517 <cell alignment="center" valignment="top" usebox="none">
13520 \begin_layout Plain Layout
13528 <cell alignment="center" valignment="top" topline="true" usebox="none">
13531 \begin_layout Plain Layout
13535 \begin_layout Plain Layout
13548 \begin_layout Plain Layout
13557 LSF-spatial resolution
13562 <cell alignment="center" valignment="top" topline="true" usebox="none">
13565 \begin_layout Plain Layout
13571 <cell alignment="center" valignment="top" topline="true" usebox="none">
13574 \begin_layout Plain Layout
13580 <cell alignment="center" valignment="top" topline="true" usebox="none">
13583 \begin_layout Plain Layout
13591 <cell alignment="center" valignment="top" usebox="none">
13594 \begin_layout Plain Layout
13600 <cell alignment="center" valignment="top" usebox="none">
13603 \begin_layout Plain Layout
13609 <cell alignment="center" valignment="top" usebox="none">
13612 \begin_layout Plain Layout
13618 <cell alignment="center" valignment="top" usebox="none">
13621 \begin_layout Plain Layout
13629 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13632 \begin_layout Plain Layout
13638 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13641 \begin_layout Plain Layout
13647 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13650 \begin_layout Plain Layout
13656 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13659 \begin_layout Plain Layout
13678 \begin_layout Section
13679 Vertical Table Alignment
13680 \begin_inset Index idx
13683 \begin_layout Plain Layout
13692 \begin_layout Standard
13693 To align tables vertically in a text line the table must be inside a box.
13694 The box can then be vertically aligned as described in section
13695 \begin_inset space ~
13699 \begin_inset CommandInset ref
13701 reference "sec:Box-Dialog"
13708 \begin_layout Standard
13709 In the following example the tables are inside a minipage
13713 \begin_layout Plain Layout
13714 Minipages are described in section
13715 \begin_inset space ~
13719 \begin_inset CommandInset ref
13721 reference "sec:Minipages"
13730 box that has a width of 15
13731 \begin_inset space \thinspace{}
13737 \begin_layout Itemize
13739 \begin_inset Box Frameless
13749 height_special "totalheight"
13752 \begin_layout Plain Layout
13753 \begin_inset Tabular
13754 <lyxtabular version="3" rows="3" columns="3">
13755 <features tabularvalignment="middle">
13756 <column alignment="center" valignment="top" width="0">
13757 <column alignment="center" valignment="top" width="0">
13758 <column alignment="center" valignment="top" width="0">
13760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13763 \begin_layout Plain Layout
13769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13772 \begin_layout Plain Layout
13778 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13781 \begin_layout Plain Layout
13789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13792 \begin_layout Plain Layout
13798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13801 \begin_layout Plain Layout
13807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13810 \begin_layout Plain Layout
13818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13821 \begin_layout Plain Layout
13827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13830 \begin_layout Plain Layout
13836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13839 \begin_layout Plain Layout
13859 \begin_layout Plain Layout
13871 \begin_inset Box Frameless
13881 height_special "totalheight"
13884 \begin_layout Plain Layout
13885 \begin_inset Tabular
13886 <lyxtabular version="3" rows="3" columns="3">
13887 <features tabularvalignment="middle">
13888 <column alignment="center" valignment="top" width="0">
13889 <column alignment="center" valignment="top" width="0">
13890 <column alignment="center" valignment="top" width="0">
13892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13895 \begin_layout Plain Layout
13901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13904 \begin_layout Plain Layout
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13913 \begin_layout Plain Layout
13921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13924 \begin_layout Plain Layout
13930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13933 \begin_layout Plain Layout
13939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13942 \begin_layout Plain Layout
13950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13953 \begin_layout Plain Layout
13959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13962 \begin_layout Plain Layout
13968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13971 \begin_layout Plain Layout
13991 \begin_layout Plain Layout
14001 \begin_layout Itemize
14003 \begin_inset Box Frameless
14013 height_special "totalheight"
14016 \begin_layout Plain Layout
14017 \begin_inset Tabular
14018 <lyxtabular version="3" rows="3" columns="3">
14019 <features tabularvalignment="middle">
14020 <column alignment="center" valignment="top" width="0">
14021 <column alignment="center" valignment="top" width="0">
14022 <column alignment="center" valignment="top" width="0">
14024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14027 \begin_layout Plain Layout
14033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14036 \begin_layout Plain Layout
14042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14045 \begin_layout Plain Layout
14053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14056 \begin_layout Plain Layout
14062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14065 \begin_layout Plain Layout
14071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14074 \begin_layout Plain Layout
14082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14085 \begin_layout Plain Layout
14091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14094 \begin_layout Plain Layout
14100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14103 \begin_layout Plain Layout
14122 \begin_layout Itemize
14124 \begin_inset Box Frameless
14134 height_special "totalheight"
14137 \begin_layout Plain Layout
14138 \begin_inset Tabular
14139 <lyxtabular version="3" rows="3" columns="3">
14140 <features tabularvalignment="middle">
14141 <column alignment="center" valignment="top" width="0">
14142 <column alignment="center" valignment="top" width="0">
14143 <column alignment="center" valignment="top" width="0">
14145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14148 \begin_layout Plain Layout
14154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14157 \begin_layout Plain Layout
14163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14166 \begin_layout Plain Layout
14174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14177 \begin_layout Plain Layout
14183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14186 \begin_layout Plain Layout
14192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14195 \begin_layout Plain Layout
14203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14206 \begin_layout Plain Layout
14212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14215 \begin_layout Plain Layout
14221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14224 \begin_layout Plain Layout
14244 \begin_layout Plain Layout
14256 \begin_inset Box Frameless
14266 height_special "totalheight"
14269 \begin_layout Plain Layout
14270 \begin_inset Tabular
14271 <lyxtabular version="3" rows="3" columns="3">
14272 <features tabularvalignment="middle">
14273 <column alignment="center" valignment="top" width="0">
14274 <column alignment="center" valignment="top" width="0">
14275 <column alignment="center" valignment="top" width="0">
14277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14280 \begin_layout Plain Layout
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14289 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14298 \begin_layout Plain Layout
14306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14309 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14318 \begin_layout Plain Layout
14324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14327 \begin_layout Plain Layout
14335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14338 \begin_layout Plain Layout
14344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14347 \begin_layout Plain Layout
14353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14356 \begin_layout Plain Layout
14376 \begin_layout Plain Layout
14386 \begin_layout Standard
14387 As you will see, the content of the first and last table row is not correctly
14389 To get this alignment, the minipage box must be set into a raisebox
14393 \begin_layout Plain Layout
14394 Raiseboxes are described in section
14395 \begin_inset space ~
14399 \begin_inset CommandInset ref
14401 reference "sub:Vertical-Alignment"
14411 In the example above the second table in the first item is aligned using
14412 the TeX-Code-command
14415 \begin_layout Standard
14425 \begin_layout Standard
14427 After the box the closing brace
14431 is inserted as TeX-Code.
14432 For the second table in the last item the command
14435 \begin_layout Standard
14445 \begin_layout Standard
14449 \begin_layout Standard
14450 \begin_inset Note Greyedout
14453 \begin_layout Plain Layout
14458 The alignment of the table row content to the surrounding text line is
14460 The required value for the
14466 command for this alignment depends on the document font, the font size,
14467 and the table line thickness.
14475 \begin_layout Section
14477 \begin_inset CommandInset label
14479 name "sec:Colored-Tables"
14484 \begin_inset Index idx
14487 \begin_layout Plain Layout
14496 \begin_layout Subsection
14498 \begin_inset Index idx
14501 \begin_layout Plain Layout
14502 Table Color ! for Cells
14508 \begin_inset Index idx
14511 \begin_layout Plain Layout
14512 Color ! for Table Cells
14520 \begin_layout Standard
14521 \begin_inset Float table
14527 \begin_layout Plain Layout
14528 \begin_inset Caption
14530 \begin_layout Plain Layout
14531 \begin_inset CommandInset label
14533 name "tab:Table-colored-without"
14537 Table colored without using the package
14542 \begin_inset Argument
14545 \begin_layout Plain Layout
14546 Table without colortbl
14559 \begin_layout Plain Layout
14561 \begin_inset Tabular
14562 <lyxtabular version="3" rows="3" columns="3">
14563 <features tabularvalignment="middle">
14564 <column alignment="center" valignment="top" width="0">
14565 <column alignment="center" valignment="top" width="0">
14566 <column alignment="center" valignment="top" width="0">
14568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14571 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14582 \begin_layout Plain Layout
14590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14593 \begin_layout Plain Layout
14603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14606 \begin_layout Plain Layout
14614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14617 \begin_layout Plain Layout
14625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14628 \begin_layout Plain Layout
14638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14641 \begin_layout Plain Layout
14649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14652 \begin_layout Plain Layout
14660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14663 \begin_layout Plain Layout
14684 \begin_layout Standard
14685 If you only need colored text, mark the cells and choose a color in the
14688 Edit\SpecialChar \menuseparator
14690 \begin_inset space ~
14696 This was used to create Table
14697 \begin_inset space ~
14701 \begin_inset CommandInset ref
14703 reference "tab:Table-colored-without"
14708 In any other case you have to use the LaTeX-package
14713 \begin_inset Index idx
14716 \begin_layout Plain Layout
14717 LaTeX-packages ! colortbl
14725 \begin_layout Standard
14729 \begin_layout Plain Layout
14739 \begin_inset Note Note
14742 \begin_layout Plain Layout
14743 The following section part will only be displayed when the LaTeX-package
14756 \begin_layout Standard
14757 To create colored tables,
14761 must be loaded in the preamble with the line
14764 \begin_layout Standard
14769 usepackage{colortbl}
14772 \begin_layout Standard
14773 The color of a column is adjusted with the command
14776 \begin_layout Standard
14781 columncolor{name of color}
14784 \begin_layout Standard
14790 More about the command
14794 is contained in section
14795 \begin_inset space ~
14799 \begin_inset CommandInset ref
14801 reference "sub:Multicolumn-Calculations"
14808 \begin_layout Standard
14809 The following color names are predefined:
14812 \begin_layout Standard
14846 \begin_layout Standard
14847 \begin_inset VSpace medskip
14853 \begin_layout Standard
14854 You can also define your own color with the command
14857 \begin_layout Standard
14862 definecolor{color name}{color model}{color values}
14865 \begin_layout Standard
14866 The color model can be
14869 \begin_layout Labeling
14870 \labelwidthstring 00.00.0000
14871 cmyk: cyan, magenta, yellow, black
14874 \begin_layout Labeling
14875 \labelwidthstring 00.00.0000
14876 rgb: red, green blue
14879 \begin_layout Labeling
14880 \labelwidthstring 00.00.0000
14884 \begin_layout Standard
14885 and the color values are comma separated numbers between 0 and 1 describing
14886 the factor for the corresponding color of the color model.
14889 \begin_layout Standard
14891 \begin_inset space \thinspace{}
14895 \begin_inset space \space{}
14902 " in the preamble with
14905 \begin_layout Standard
14910 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14913 \begin_layout Standard
14921 \begin_layout Standard
14926 definecolor{lightgray}{gray}{0.8}
14929 \begin_layout Standard
14930 \begin_inset VSpace medskip
14936 \begin_layout Standard
14937 Lines are colored with the command
14940 \begin_layout Standard
14945 rowcolor{name of color}
14948 \begin_layout Standard
14949 and cells are colored with the command
14952 \begin_layout Standard
14957 cellcolor{name of color}
14960 \begin_layout Standard
14961 Both commands are inserted at the beginning of a cell as TeX-Code.
14964 \begin_layout Standard
14965 To color characters in the table, mark the cells and use the LyX menu
14967 Edit\SpecialChar \menuseparator
14969 \begin_inset space ~
14975 If a cell contains TeX-Code mark only the characters, otherwise the colored
14976 TeX-Code will cause LaTeX-errors.
14979 \begin_layout Standard
14980 \begin_inset Note Greyedout
14983 \begin_layout Plain Layout
14988 Not all DVI-viewers are able to display self-defined colors.
14996 \begin_layout Standard
14997 \begin_inset VSpace bigskip
15003 \begin_layout Standard
15005 \begin_inset space ~
15009 \begin_inset CommandInset ref
15011 reference "tab:Table-colored-using"
15015 do the following: The color of the first column should be
15023 \begin_layout Standard
15028 columncolor{darkgreen}
15033 \begin_layout Standard
15034 as LaTeX-argument for this column.
15035 The first row should be blue, therefore the TeX-Code command
15038 \begin_layout Standard
15046 \begin_layout Standard
15047 is inserted to the first cell of this row.
15048 Note that this overwrites the column color for the first cell.
15049 The last cell of the last row is colored magenta by inserting the TeX-Code
15053 \begin_layout Standard
15061 \begin_layout Standard
15062 The characters could now be colored using the menu
15064 Edit\SpecialChar \menuseparator
15066 \begin_inset space ~
15074 \begin_layout Standard
15075 \begin_inset Float table
15081 \begin_layout Plain Layout
15082 \begin_inset Caption
15084 \begin_layout Plain Layout
15085 \begin_inset CommandInset label
15087 name "tab:Table-colored-using"
15091 Table colored using the package
15096 \begin_inset Argument
15099 \begin_layout Plain Layout
15100 Table with colortbl
15113 \begin_layout Plain Layout
15115 \begin_inset Tabular
15116 <lyxtabular version="3" rows="3" columns="3">
15117 <features tabularvalignment="middle">
15118 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15119 <column alignment="center" valignment="top" width="0">
15120 <column alignment="center" valignment="top" width="0">
15122 <cell alignment="center" valignment="top" usebox="none">
15125 \begin_layout Plain Layout
15129 \begin_layout Plain Layout
15145 <cell alignment="center" valignment="top" usebox="none">
15148 \begin_layout Plain Layout
15156 <cell alignment="center" valignment="top" usebox="none">
15159 \begin_layout Plain Layout
15169 <cell alignment="center" valignment="top" usebox="none">
15172 \begin_layout Plain Layout
15180 <cell alignment="center" valignment="top" usebox="none">
15183 \begin_layout Plain Layout
15191 <cell alignment="center" valignment="top" usebox="none">
15194 \begin_layout Plain Layout
15204 <cell alignment="center" valignment="top" usebox="none">
15207 \begin_layout Plain Layout
15215 <cell alignment="center" valignment="top" usebox="none">
15218 \begin_layout Plain Layout
15226 <cell alignment="center" valignment="top" usebox="none">
15229 \begin_layout Plain Layout
15233 \begin_layout Plain Layout
15262 \begin_layout Standard
15266 \begin_layout Plain Layout
15276 \begin_inset Note Note
15279 \begin_layout Plain Layout
15280 The following will be displayed when the LaTeX-package
15292 \begin_layout Standard
15293 You need to install the package
15297 to see the content of this section in the output.
15300 \begin_layout Standard
15304 \begin_layout Plain Layout
15316 \begin_layout Subsection
15318 \begin_inset Index idx
15321 \begin_layout Plain Layout
15322 Table Color ! for Lines
15328 \begin_inset Index idx
15331 \begin_layout Plain Layout
15332 Color ! for Table Lines
15340 \begin_layout Standard
15341 As described in section
15342 \begin_inset space ~
15346 \begin_inset CommandInset ref
15348 reference "sub:Line-Thickness"
15352 , the line thickness for all lines in a table can be adjusted with the length
15361 \begin_inset space \thinspace{}
15364 pt for all tables of this section.
15368 \begin_layout Plain Layout
15374 arrayrulewidth}{1.5pt}
15382 \begin_layout Standard
15383 To color vertical lines for example with green, create the following column
15384 format in the document preamble, according to the description in section
15385 \begin_inset space ~
15389 \begin_inset CommandInset ref
15391 reference "sub:Customized-Format"
15398 \begin_layout Standard
15403 newcolumntype{W}{!{
15410 \begin_layout Standard
15412 \begin_inset space ~
15416 \begin_inset CommandInset ref
15418 reference "tab:Table-with-vertical-colored"
15426 was used for the last column and
15430 for the other columns.
15433 \begin_layout Standard
15434 If you want to have several colors, define more column formats.
15437 \begin_layout Standard
15438 \begin_inset Float table
15444 \begin_layout Plain Layout
15445 \begin_inset Caption
15447 \begin_layout Plain Layout
15448 \begin_inset CommandInset label
15450 name "tab:Table-with-vertical-colored"
15454 Table with colored vertical lines
15462 \begin_layout Plain Layout
15464 \begin_inset Tabular
15465 <lyxtabular version="3" rows="3" columns="3">
15466 <features tabularvalignment="middle">
15467 <column alignment="center" valignment="top" width="0" special="Wc">
15468 <column alignment="center" valignment="top" width="0" special="Wc">
15469 <column alignment="center" valignment="top" width="0" special="WcW">
15471 <cell alignment="center" valignment="top" topline="true" usebox="none">
15474 \begin_layout Plain Layout
15480 <cell alignment="center" valignment="top" topline="true" usebox="none">
15483 \begin_layout Plain Layout
15489 <cell alignment="center" valignment="top" topline="true" usebox="none">
15492 \begin_layout Plain Layout
15500 <cell alignment="center" valignment="top" topline="true" usebox="none">
15503 \begin_layout Plain Layout
15509 <cell alignment="center" valignment="top" topline="true" usebox="none">
15512 \begin_layout Plain Layout
15518 <cell alignment="center" valignment="top" topline="true" usebox="none">
15521 \begin_layout Plain Layout
15529 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15532 \begin_layout Plain Layout
15538 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15541 \begin_layout Plain Layout
15547 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15550 \begin_layout Plain Layout
15569 \begin_layout Standard
15570 \begin_inset VSpace bigskip
15573 To color horizontal lines for example with red, as in Table
15574 \begin_inset space ~
15578 \begin_inset CommandInset ref
15580 reference "tab:Table-with-horizontal-colored"
15584 , insert these commands in TeX-Code before the table or table float:
15587 \begin_layout Standard
15597 \begin_inset Newline newline
15605 \begin_inset Newline newline
15609 \begin_inset Phantom HPhantom
15612 \begin_layout Plain Layout
15615 \begin_inset space ~
15625 arrayrulecolor{red}
15629 arrayrulecolor{black}}
15632 \begin_layout Standard
15636 \begin_layout Plain Layout
15647 \begin_layout Plain Layout
15656 \begin_layout Plain Layout
15660 arrayrulecolor{red}
15664 arrayrulecolor{black}}
15670 \begin_inset Float table
15676 \begin_layout Plain Layout
15677 \begin_inset Caption
15679 \begin_layout Plain Layout
15680 \begin_inset CommandInset label
15682 name "tab:Table-with-horizontal-colored"
15686 Table with colored horizontal lines
15694 \begin_layout Plain Layout
15696 \begin_inset Tabular
15697 <lyxtabular version="3" rows="3" columns="3">
15698 <features tabularvalignment="middle">
15699 <column alignment="center" valignment="top" width="0">
15700 <column alignment="center" valignment="top" width="0">
15701 <column alignment="center" valignment="top" width="0">
15703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15715 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15724 \begin_layout Plain Layout
15732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15735 \begin_layout Plain Layout
15741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15744 \begin_layout Plain Layout
15750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15753 \begin_layout Plain Layout
15761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15764 \begin_layout Plain Layout
15770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15773 \begin_layout Plain Layout
15779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15782 \begin_layout Plain Layout
15801 \begin_layout Standard
15802 To return to the default line color black, insert this command in TeX-Code
15803 after the table or table float:
15806 \begin_layout Standard
15818 \begin_layout Standard
15820 \begin_inset space ~
15824 \begin_inset CommandInset ref
15826 reference "tab:Table-with-colored"
15830 is an example with colored vertical and horizontal lines.
15833 \begin_layout Standard
15834 \begin_inset Float table
15840 \begin_layout Plain Layout
15841 \begin_inset Caption
15843 \begin_layout Plain Layout
15844 \begin_inset CommandInset label
15846 name "tab:Table-with-colored"
15850 Table with colored lines
15858 \begin_layout Plain Layout
15860 \begin_inset Tabular
15861 <lyxtabular version="3" rows="3" columns="3">
15862 <features tabularvalignment="middle">
15863 <column alignment="center" valignment="top" width="0" special="Wc">
15864 <column alignment="center" valignment="top" width="0" special="Wc">
15865 <column alignment="center" valignment="top" width="0" special="WcW">
15867 <cell alignment="center" valignment="top" topline="true" usebox="none">
15870 \begin_layout Plain Layout
15876 <cell alignment="center" valignment="top" topline="true" usebox="none">
15879 \begin_layout Plain Layout
15885 <cell alignment="center" valignment="top" topline="true" usebox="none">
15888 \begin_layout Plain Layout
15896 <cell alignment="center" valignment="top" topline="true" usebox="none">
15899 \begin_layout Plain Layout
15905 <cell alignment="center" valignment="top" topline="true" usebox="none">
15908 \begin_layout Plain Layout
15914 <cell alignment="center" valignment="top" topline="true" usebox="none">
15917 \begin_layout Plain Layout
15924 <row topspace="default">
15925 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15928 \begin_layout Plain Layout
15934 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15937 \begin_layout Plain Layout
15943 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15946 \begin_layout Plain Layout
15965 \begin_layout Standard
15969 \begin_layout Plain Layout
15985 \begin_layout Standard
15989 \begin_layout Plain Layout
15995 arrayrulewidth}{0.4pt}
16003 \begin_layout Section
16004 Table Customization
16005 \begin_inset Index idx
16008 \begin_layout Plain Layout
16009 Table Customization
16015 \begin_inset Index idx
16018 \begin_layout Plain Layout
16019 Table ! Customization
16027 \begin_layout Subsection
16029 \begin_inset CommandInset label
16031 name "sub:Row-Spacing"
16036 \begin_inset Index idx
16039 \begin_layout Plain Layout
16040 Table Customization ! Row Spacing
16048 \begin_layout Standard
16049 You can add vertical space to table rows in the
16053 tab of the table dialog.
16054 You find there three possibilities:
16057 \begin_layout Description
16059 \begin_inset space ~
16063 \begin_inset space ~
16066 row will add space above the characters of the table row.
16067 If the table is a formal table
16071 \begin_layout Plain Layout
16072 Formal tables are explained in section
16073 \begin_inset space ~
16077 \begin_inset CommandInset ref
16079 reference "sec:Formal-Tables"
16088 LyX will insert as default 0.5
16089 \begin_inset space \thinspace{}
16093 For normal tables the inserted space will unfortunately destroy the vertical
16094 table lines as in the following table:
16095 \begin_inset VSpace medskip
16099 \begin_inset Newline newline
16103 \begin_inset space \hspace*{}
16108 \begin_inset space \hfill{}
16112 \begin_inset Tabular
16113 <lyxtabular version="3" rows="3" columns="1">
16114 <features tabularvalignment="middle">
16115 <column alignment="center" valignment="top" width="0">
16117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16120 \begin_layout Plain Layout
16127 <row topspace="3mm">
16128 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16131 \begin_layout Plain Layout
16133 \begin_inset space \thinspace{}
16136 mm space top of row
16143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16146 \begin_layout Plain Layout
16158 \begin_inset space \hfill{}
16162 \begin_inset space \hspace*{}
16167 \begin_inset VSpace medskip
16171 \begin_inset Newline newline
16174 So inserting space in the top of row for normal tables is only useful when
16175 you don't have vertical lines.
16178 \begin_layout Description
16180 \begin_inset space ~
16184 \begin_inset space ~
16187 row will add space below the characters of the table row.
16188 If the table is a formal table LyX will insert as default 0.5
16189 \begin_inset space \thinspace{}
16192 em space, for normal tables the default size is 2
16193 \begin_inset space \thinspace{}
16199 \begin_layout Description
16201 \begin_inset space ~
16204 rows adds space between the current and the following row.
16205 If the table is a formal table LyX will insert as default 0.5
16206 \begin_inset space \thinspace{}
16210 For normal tables the inserted space will unfortunately destroy the vertical
16211 table lines as in the following table:
16212 \begin_inset VSpace medskip
16216 \begin_inset Newline newline
16220 \begin_inset space \hspace*{}
16225 \begin_inset space \hfill{}
16229 \begin_inset Tabular
16230 <lyxtabular version="3" rows="3" columns="1">
16231 <features tabularvalignment="middle">
16232 <column alignment="center" valignment="top" width="0">
16234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16237 \begin_layout Plain Layout
16244 <row interlinespace="3mm">
16245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16248 \begin_layout Plain Layout
16249 \begin_inset Formula $\downarrow$
16253 \begin_inset space \thinspace{}
16256 mm space between row
16257 \begin_inset Formula $\downarrow$
16267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16270 \begin_layout Plain Layout
16271 \begin_inset Formula $\uparrow$
16275 \begin_inset space \thinspace{}
16278 mm space between row
16279 \begin_inset Formula $\uparrow$
16293 \begin_inset space \hfill{}
16297 \begin_inset space \hspace*{}
16302 \begin_inset VSpace medskip
16306 \begin_inset Newline newline
16309 So inserting space between rows for normal tables is only useful when you
16310 don't have vertical lines.
16313 \begin_layout Standard
16314 \begin_inset VSpace bigskip
16317 When you want to add extra height to all cells of all tables, you can do
16318 this with the following preamble lines:
16321 \begin_layout Standard
16326 @ifundefined{extrarowheight}
16327 \begin_inset Newline newline
16331 \begin_inset Phantom HPhantom
16334 \begin_layout Plain Layout
16337 \begin_inset space ~
16347 usepackage{array}}{}
16348 \begin_inset Newline newline
16355 extrarowheight}{height}
16358 \begin_layout Standard
16359 But this has the disadvantage that the cell texts are no longer exactly
16360 vertically centered.
16365 will be loaded automatically by LyX when you use self defined table formats.
16366 To avoid that it being loaded twice the command
16372 is used in the above command.)
16375 \begin_layout Standard
16376 If you are using font sizes larger than the normal size, the table borders
16377 are often too close to the letters.
16378 This can be corrected by inserting the command
16384 in TeX code at the beginning of a table row.
16386 \begin_inset space ~
16390 \begin_inset CommandInset ref
16392 reference "tab:Vertical-alignment-of"
16396 illustrates the effect.
16399 \begin_layout Standard
16401 \begin_inset Float table
16407 \begin_layout Plain Layout
16408 \begin_inset Caption
16410 \begin_layout Plain Layout
16411 \begin_inset CommandInset label
16413 name "tab:Vertical-alignment-of"
16417 Vertical alignment of text with large font sizes.
16425 \begin_layout Plain Layout
16426 \begin_inset space \hfill{}
16430 \begin_inset Float table
16435 \begin_layout Plain Layout
16436 \begin_inset Caption
16438 \begin_layout Plain Layout
16447 \begin_layout Plain Layout
16450 \begin_inset Tabular
16451 <lyxtabular version="3" rows="6" columns="1">
16452 <features tabularvalignment="middle">
16453 <column alignment="left" valignment="top" width="0">
16455 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16458 \begin_layout Plain Layout
16466 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16469 \begin_layout Plain Layout
16479 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16482 \begin_layout Plain Layout
16492 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16495 \begin_layout Plain Layout
16505 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16508 \begin_layout Plain Layout
16518 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16521 \begin_layout Plain Layout
16540 \begin_inset space \hfill{}
16544 \begin_inset Float table
16549 \begin_layout Plain Layout
16550 \begin_inset Caption
16552 \begin_layout Plain Layout
16553 Table using the command
16567 \begin_layout Plain Layout
16570 \begin_inset Tabular
16571 <lyxtabular version="3" rows="6" columns="1">
16572 <features tabularvalignment="middle">
16573 <column alignment="left" valignment="top" width="0">
16575 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16578 \begin_layout Plain Layout
16586 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16589 \begin_layout Plain Layout
16595 \begin_layout Plain Layout
16611 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16614 \begin_layout Plain Layout
16620 \begin_layout Plain Layout
16636 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16639 \begin_layout Plain Layout
16645 \begin_layout Plain Layout
16661 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16664 \begin_layout Plain Layout
16670 \begin_layout Plain Layout
16686 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16689 \begin_layout Plain Layout
16695 \begin_layout Plain Layout
16722 \begin_inset space \hfill{}
16733 \begin_layout Subsection
16734 Special Cell Alignment
16735 \begin_inset Index idx
16738 \begin_layout Plain Layout
16739 Table Customization ! Special Cell Alignment
16747 \begin_layout Standard
16748 Sometimes it looks better when the cell entries of a column are aligned
16749 with a special character, e.
16750 \begin_inset space \thinspace{}
16754 \begin_inset space \space{}
16757 with the decimal separator as in Table
16758 \begin_inset space ~
16762 \begin_inset CommandInset ref
16764 reference "tab:Table-cells-of"
16771 \begin_layout Standard
16772 \begin_inset Float table
16778 \begin_layout Plain Layout
16779 \begin_inset Caption
16781 \begin_layout Plain Layout
16782 \begin_inset CommandInset label
16784 name "tab:Table-cells-of"
16788 Table cells of a column aligned with the decimal separator.
16796 \begin_layout Plain Layout
16798 \begin_inset Tabular
16799 <lyxtabular version="3" rows="4" columns="2">
16800 <features tabularvalignment="middle">
16801 <column alignment="right" valignment="top" width="0">
16802 <column alignment="left" valignment="top" width="0" special="@{}l">
16804 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16807 \begin_layout Plain Layout
16813 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16816 \begin_layout Plain Layout
16824 <cell alignment="center" valignment="top" usebox="none">
16827 \begin_layout Plain Layout
16833 <cell alignment="center" valignment="top" usebox="none">
16836 \begin_layout Plain Layout
16844 <cell alignment="center" valignment="top" usebox="none">
16847 \begin_layout Plain Layout
16853 <cell alignment="center" valignment="top" usebox="none">
16856 \begin_layout Plain Layout
16864 <cell alignment="center" valignment="top" usebox="none">
16867 \begin_layout Plain Layout
16873 <cell alignment="center" valignment="top" usebox="none">
16876 \begin_layout Plain Layout
16895 \begin_layout Standard
16896 This table was created with a 4×2 table.
16897 The heading is a centered multicolumn.
16898 The first column is right-aligned and contains the digits before the decimal
16899 point and the decimal point.
16900 The second column is left aligned and contains the digits after the decimal
16902 To omit the space that is normally between two table columns, the following
16903 LaTeX-argument was used for the second column:
16906 \begin_layout Standard
16912 \begin_layout Standard
16914 \begin_inset space ~
16918 \begin_inset CommandInset ref
16920 reference "tab:Several-table-cell"
16924 shows some example alignments.
16925 For the alignment with the relation sign, you must add the second smallest
16926 math-space at the beginning of the last column to get the correct space
16927 surrounding the relation sign.
16930 \begin_layout Standard
16931 \begin_inset Float table
16937 \begin_layout Plain Layout
16938 \begin_inset Caption
16940 \begin_layout Plain Layout
16941 \begin_inset CommandInset label
16943 name "tab:Several-table-cell"
16947 Several table cell alignments.
16955 \begin_layout Plain Layout
16957 \begin_inset Tabular
16958 <lyxtabular version="3" rows="4" columns="6">
16959 <features tabularvalignment="middle">
16960 <column alignment="right" valignment="top" width="0">
16961 <column alignment="left" valignment="top" width="0" special="@{}l">
16962 <column alignment="right" valignment="top" width="0">
16963 <column alignment="left" valignment="top" width="0" special="@{}l">
16964 <column alignment="right" valignment="top" width="0">
16965 <column alignment="left" valignment="top" width="0" special="@{}l">
16967 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16979 \begin_layout Plain Layout
16985 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16988 \begin_layout Plain Layout
16994 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16997 \begin_layout Plain Layout
17003 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17006 \begin_layout Plain Layout
17012 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17015 \begin_layout Plain Layout
17023 <cell alignment="center" valignment="top" usebox="none">
17026 \begin_layout Plain Layout
17032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17035 \begin_layout Plain Layout
17037 \begin_inset space \thinspace{}
17045 <cell alignment="center" valignment="top" usebox="none">
17048 \begin_layout Plain Layout
17049 \begin_inset Formula $10\cdot$
17057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17060 \begin_layout Plain Layout
17061 \begin_inset Formula $10^{\mbox{-}17}$
17069 <cell alignment="center" valignment="top" usebox="none">
17072 \begin_layout Plain Layout
17073 \begin_inset Formula $\Gamma(t)\propto$
17081 <cell alignment="center" valignment="top" usebox="none">
17084 \begin_layout Plain Layout
17085 \begin_inset Formula $\:\Upsilon(t)$
17095 <cell alignment="center" valignment="top" usebox="none">
17098 \begin_layout Plain Layout
17104 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17107 \begin_layout Plain Layout
17109 \begin_inset space \thinspace{}
17117 <cell alignment="center" valignment="top" usebox="none">
17120 \begin_layout Plain Layout
17121 \begin_inset Formula $5.78\cdot$
17129 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17132 \begin_layout Plain Layout
17133 \begin_inset Formula $10^{7}$
17141 <cell alignment="center" valignment="top" usebox="none">
17144 \begin_layout Plain Layout
17145 \begin_inset Formula $A\ne$
17153 <cell alignment="center" valignment="top" usebox="none">
17156 \begin_layout Plain Layout
17157 \begin_inset Formula $\: B_{\mathrm{red}}$
17167 <cell alignment="center" valignment="top" usebox="none">
17170 \begin_layout Plain Layout
17176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17179 \begin_layout Plain Layout
17181 \begin_inset space \thinspace{}
17189 <cell alignment="center" valignment="top" usebox="none">
17192 \begin_layout Plain Layout
17194 \begin_inset Formula $33.5\cdot$
17202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17205 \begin_layout Plain Layout
17206 \begin_inset Formula $10^{4}$
17214 <cell alignment="center" valignment="top" usebox="none">
17217 \begin_layout Plain Layout
17218 \begin_inset Formula $\sin(\alpha)\ge$
17226 <cell alignment="center" valignment="top" usebox="none">
17229 \begin_layout Plain Layout
17230 \begin_inset Formula $\:\sin(\beta)$
17251 \begin_layout Standard
17252 \begin_inset VSpace bigskip
17255 There is also the LaTeX-package
17260 \begin_inset Index idx
17263 \begin_layout Plain Layout
17264 LaTeX-packages ! dcolumn
17269 that provides table cell alignments.
17270 But this unfortunately treats the cell entries as math and does not allow
17271 formulas in table cells: The first column of Table
17272 \begin_inset space ~
17276 \begin_inset CommandInset ref
17278 reference "tab:Several-table-cell"
17286 like the first column in Table
17287 \begin_inset space ~
17291 \begin_inset CommandInset ref
17293 reference "tab:Alignments-when"
17297 and only with some tricks as you would want.
17298 The alignment of the second and third column of Table
17299 \begin_inset space ~
17303 \begin_inset CommandInset ref
17305 reference "tab:Several-table-cell"
17309 is not possible with
17316 \begin_layout Standard
17317 \begin_inset Newpage newpage
17323 \begin_layout Standard
17324 \begin_inset Float table
17330 \begin_layout Plain Layout
17331 \begin_inset Caption
17333 \begin_layout Plain Layout
17334 \begin_inset CommandInset label
17336 name "tab:Alignments-when"
17340 Alignments when LaTeX-package dcolumn is used.
17341 For all column alignments tricks have to be used to get the output.
17349 \begin_layout Plain Layout
17351 \begin_inset Tabular
17352 <lyxtabular version="3" rows="4" columns="3">
17353 <features tabularvalignment="middle">
17354 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17355 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17356 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17358 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17361 \begin_layout Plain Layout
17367 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17370 \begin_layout Plain Layout
17376 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17379 \begin_layout Plain Layout
17387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17390 \begin_layout Plain Layout
17392 \begin_inset space \thinspace{}
17400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17403 \begin_layout Plain Layout
17405 \begin_inset space \thinspace{}
17409 \begin_inset Formula $\mbox{bottles}$
17417 <cell alignment="center" valignment="top" usebox="none">
17420 \begin_layout Plain Layout
17425 \begin_layout Plain Layout
17435 \begin_inset Formula $\mbox{bottles}$
17445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17448 \begin_layout Plain Layout
17450 \begin_inset space \thinspace{}
17458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17461 \begin_layout Plain Layout
17463 \begin_inset space \thinspace{}
17467 \begin_inset Formula $\mbox{Pixels}$
17475 <cell alignment="center" valignment="top" usebox="none">
17478 \begin_layout Plain Layout
17483 \begin_layout Plain Layout
17493 \begin_inset Formula $\mbox{Pixels}$
17503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17506 \begin_layout Plain Layout
17508 \begin_inset space \thinspace{}
17516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17519 \begin_layout Plain Layout
17521 \begin_inset space \thinspace{}
17525 \begin_inset Formula $\mbox{cm}$
17533 <cell alignment="center" valignment="top" usebox="none">
17536 \begin_layout Plain Layout
17541 \begin_layout Plain Layout
17551 \begin_inset Formula $\mbox{cm}$
17572 \begin_layout Subsection
17573 Customized Cell/Column Format
17574 \begin_inset CommandInset label
17576 name "sub:Customized-Format"
17581 \begin_inset Index idx
17584 \begin_layout Plain Layout
17585 Table Customization ! Cell/Column Format
17593 \begin_layout Standard
17594 Calculating the required width for spanned columns as in section
17595 \begin_inset space ~
17599 \begin_inset CommandInset ref
17601 reference "sub:Multicolumn-Calculations"
17605 is very annoying if you have several tables with multicolumn cells.
17606 To make life easier, you can define a cell/column format in the preamble,
17607 so that it can be used in all tables of the document.
17608 The format is defined with the command
17611 \begin_layout Standard
17616 newcolumntype{name of format}[number of arguments]{commands}
17619 \begin_layout Standard
17620 The format name may only consist of one letter.
17645 are predefined and cannot be used.
17646 But all letters are allowed as capitals.
17649 \begin_layout Standard
17650 \begin_inset VSpace medskip
17656 \begin_layout Standard
17657 For vertically and horizontally centered multicolumn cells with a fixed
17658 width you can define the cell format
17661 \begin_layout Standard
17666 newcolumntype{M}[1]{>{
17673 \begin_layout Standard
17680 avoids the problem of hyphenating the first word, as described in section
17681 \begin_inset space ~
17685 \begin_inset CommandInset ref
17687 reference "sub:Multiple-Lines-in"
17692 Now you can simply enter
17695 \begin_layout Standard
17701 \begin_layout Standard
17702 as LaTeX-argument in the table dialog to create a multicolumn.
17705 \begin_layout Standard
17706 \begin_inset VSpace bigskip
17712 \begin_layout Standard
17713 For cells spanned by a multicolumn cell, you can define the format
17716 \begin_layout Standard
17721 newcolumntype{S}[2]{>{
17726 \begin_inset Newline newline
17730 \begin_inset Phantom HPhantom
17733 \begin_layout Plain Layout
17747 arrayrulewidth)*(1-#2))/#2}}
17750 \begin_layout Standard
17751 This format uses equation
17752 \begin_inset CommandInset ref
17758 to calculate the required width so that each spanned cell has the same
17762 \begin_layout Standard
17766 \begin_layout Standard
17769 S{width of multicolumn cell}{number of spanned columns}
17772 \begin_layout Standard
17773 as LaTeX-argument of the column.
17776 \begin_layout Standard
17777 \begin_inset VSpace bigskip
17783 \begin_layout Standard
17784 For colored columns, you can define
17787 \begin_layout Standard
17792 newcolumntype{K}[1]{>{
17799 \begin_layout Standard
17801 \begin_inset Quotes eld
17805 \begin_inset Quotes erd
17808 at the end creates a column with a flexible width whose text is horizontally
17813 \begin_layout Standard
17819 \begin_layout Standard
17823 \begin_layout Standard
17824 \begin_inset VSpace bigskip
17830 \begin_layout Standard
17832 \begin_inset space ~
17836 \begin_inset CommandInset ref
17838 reference "tab:Table-using-user-defined"
17842 use the LaTeX-arguments
17845 \begin_layout Standard
17851 \begin_layout Standard
17852 for the first column and the multicolumn,
17855 \begin_layout Standard
17861 \begin_layout Standard
17862 for the last column, and
17865 \begin_layout Standard
17871 \begin_layout Standard
17872 for the cells in the second column.
17875 \begin_layout Standard
17876 \begin_inset Float table
17882 \begin_layout Plain Layout
17883 \begin_inset Caption
17885 \begin_layout Plain Layout
17886 \begin_inset CommandInset label
17888 name "tab:Table-using-user-defined"
17892 Table using user-defined table formats
17900 \begin_layout Plain Layout
17902 \begin_inset Tabular
17903 <lyxtabular version="3" rows="3" columns="4">
17904 <features tabularvalignment="middle">
17905 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17906 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17907 <column alignment="center" valignment="middle" width="0">
17908 <column alignment="center" valignment="middle" width="0" special="K{red}">
17910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17913 \begin_layout Plain Layout
17914 verylongtablecellword
17919 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17922 \begin_layout Plain Layout
17923 multiple lines multicolumn
17928 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17931 \begin_layout Plain Layout
17937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17940 \begin_layout Plain Layout
17948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17951 \begin_layout Plain Layout
17957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17960 \begin_layout Plain Layout
17966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17969 \begin_layout Plain Layout
17975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17978 \begin_layout Plain Layout
17986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17989 \begin_layout Plain Layout
17995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17998 \begin_layout Plain Layout
18004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18007 \begin_layout Plain Layout
18013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18016 \begin_layout Plain Layout
18035 \begin_layout Subsection
18037 \begin_inset CommandInset label
18039 name "sub:Line-Thickness"
18044 \begin_inset Index idx
18047 \begin_layout Plain Layout
18048 Table Customization ! Line Thickness
18056 \begin_layout Standard
18057 The line thickness for all lines in a table can be adjusted with the length
18065 To set for example a line thickness of 1.5
18066 \begin_inset space \thinspace{}
18070 \begin_inset space ~
18074 \begin_inset CommandInset ref
18076 reference "tab:Table-with-1.5"
18080 , insert the command
18083 \begin_layout Standard
18090 arrayrulewidth}{1.5pt}
18093 \begin_layout Standard
18094 in TeX-Code before the table or table float.
18095 The changed thickness is valid for all subsequent tables.
18096 To use the default value again, set
18103 \begin_inset space \thinspace{}
18106 pt in TeX-Code after the table or table float.
18109 \begin_layout Standard
18113 \begin_layout Plain Layout
18119 arrayrulewidth}{1.5pt}
18125 \begin_inset Float table
18130 \begin_layout Plain Layout
18131 \begin_inset Caption
18133 \begin_layout Plain Layout
18134 \begin_inset CommandInset label
18136 name "tab:Table-with-1.5"
18141 \begin_inset space \thinspace{}
18152 \begin_layout Plain Layout
18154 \begin_inset Tabular
18155 <lyxtabular version="3" rows="3" columns="3">
18156 <features tabularvalignment="middle">
18157 <column alignment="center" valignment="top" width="0">
18158 <column alignment="center" valignment="top" width="0">
18159 <column alignment="center" valignment="top" width="0">
18161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18164 \begin_layout Plain Layout
18170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18173 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18182 \begin_layout Plain Layout
18190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18193 \begin_layout Plain Layout
18199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18202 \begin_layout Plain Layout
18208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18211 \begin_layout Plain Layout
18219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18222 \begin_layout Plain Layout
18228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18240 \begin_layout Plain Layout
18260 \begin_layout Plain Layout
18266 arrayrulewidth}{0.4pt}
18274 \begin_layout Standard
18275 \begin_inset VSpace bigskip
18278 To set the line thickness to 1.5
18279 \begin_inset space \thinspace{}
18282 pt only for horizontal lines, as in Table
18283 \begin_inset space ~
18287 \begin_inset CommandInset ref
18289 reference "tab:Table-with-horizontal"
18293 , insert these commands in TeX-Code before the table or table float:
18296 \begin_layout Standard
18306 \begin_inset Newline newline
18314 \begin_inset Newline newline
18323 arrayrulewidth 1.5pt}
18324 \begin_inset Newline newline
18335 arrayrulewidth 0.4pt}}
18338 \begin_layout Standard
18339 To return to the default line thickness, insert this command in TeX-Code
18340 after the table or table float:
18343 \begin_layout Standard
18355 \begin_layout Standard
18359 \begin_layout Plain Layout
18370 \begin_layout Plain Layout
18379 \begin_layout Plain Layout
18387 arrayrulewidth 1.5pt}
18390 \begin_layout Plain Layout
18400 arrayrulewidth 0.4pt}}
18406 \begin_inset Float table
18411 \begin_layout Plain Layout
18412 \begin_inset Caption
18414 \begin_layout Plain Layout
18415 \begin_inset CommandInset label
18417 name "tab:Table-with-horizontal"
18422 \begin_inset space \thinspace{}
18425 pt thick horizontal lines
18433 \begin_layout Plain Layout
18435 \begin_inset Tabular
18436 <lyxtabular version="3" rows="3" columns="3">
18437 <features tabularvalignment="middle">
18438 <column alignment="center" valignment="top" width="0">
18439 <column alignment="center" valignment="top" width="0">
18440 <column alignment="center" valignment="top" width="0">
18442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18445 \begin_layout Plain Layout
18451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18454 \begin_layout Plain Layout
18460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18463 \begin_layout Plain Layout
18471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18474 \begin_layout Plain Layout
18480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18483 \begin_layout Plain Layout
18489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18492 \begin_layout Plain Layout
18500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18503 \begin_layout Plain Layout
18509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18512 \begin_layout Plain Layout
18518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18521 \begin_layout Plain Layout
18541 \begin_layout Plain Layout
18557 \begin_layout Standard
18558 \begin_inset VSpace bigskip
18561 To set the line thickness to 1.5
18562 \begin_inset space \thinspace{}
18565 pt only for vertical lines, create the following column format in the document
18566 preamble, according to the description in section
18567 \begin_inset space ~
18571 \begin_inset CommandInset ref
18573 reference "sub:Customized-Format"
18580 \begin_layout Standard
18585 newcolumntype{V}{!{
18587 vrule width 1.5pt}}
18590 \begin_layout Standard
18592 \begin_inset space ~
18596 \begin_inset CommandInset ref
18598 reference "tab:Table-with-vertical"
18605 \begin_layout Standard
18611 \begin_layout Standard
18612 was used for the last column and
18615 \begin_layout Standard
18621 \begin_layout Standard
18622 for the other columns.
18625 \begin_layout Standard
18626 \begin_inset Float table
18631 \begin_layout Plain Layout
18632 \begin_inset Caption
18634 \begin_layout Plain Layout
18635 \begin_inset CommandInset label
18637 name "tab:Table-with-vertical"
18642 \begin_inset space \thinspace{}
18645 pt thick vertical lines
18653 \begin_layout Plain Layout
18655 \begin_inset Tabular
18656 <lyxtabular version="3" rows="3" columns="3">
18657 <features tabularvalignment="middle">
18658 <column alignment="center" valignment="top" width="0" special="Vc">
18659 <column alignment="center" valignment="top" width="0" special="Vc">
18660 <column alignment="center" valignment="top" width="0" special="VcV">
18662 <cell alignment="center" valignment="top" topline="true" usebox="none">
18665 \begin_layout Plain Layout
18671 <cell alignment="center" valignment="top" topline="true" usebox="none">
18674 \begin_layout Plain Layout
18680 <cell alignment="center" valignment="top" topline="true" usebox="none">
18683 \begin_layout Plain Layout
18691 <cell alignment="center" valignment="top" topline="true" usebox="none">
18694 \begin_layout Plain Layout
18700 <cell alignment="center" valignment="top" topline="true" usebox="none">
18703 \begin_layout Plain Layout
18709 <cell alignment="center" valignment="top" topline="true" usebox="none">
18712 \begin_layout Plain Layout
18720 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18723 \begin_layout Plain Layout
18729 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18732 \begin_layout Plain Layout
18738 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18741 \begin_layout Plain Layout
18760 \begin_layout Subsection
18762 \begin_inset Index idx
18765 \begin_layout Plain Layout
18766 Table Customization ! Dashed Lines
18774 \begin_layout Standard
18778 \begin_layout Plain Layout
18788 \begin_inset Note Note
18791 \begin_layout Plain Layout
18792 The following section will only be displayed when the LaTeX-package
18804 \begin_layout Standard
18805 \begin_inset Float table
18811 \begin_layout Plain Layout
18812 \begin_inset Caption
18814 \begin_layout Plain Layout
18815 \begin_inset CommandInset label
18817 name "tab:Table-with-dashed"
18821 Table with dashed lines
18829 \begin_layout Plain Layout
18831 \begin_inset Tabular
18832 <lyxtabular version="3" rows="5" columns="5">
18833 <features tabularvalignment="middle">
18834 <column alignment="center" valignment="top" width="0">
18835 <column alignment="center" valignment="top" width="0">
18836 <column alignment="center" valignment="top" width="0" special=":c">
18837 <column alignment="center" valignment="top" width="0">
18838 <column alignment="center" valignment="top" width="0">
18840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18843 \begin_layout Plain Layout
18849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18852 \begin_layout Plain Layout
18858 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18861 \begin_layout Plain Layout
18867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18870 \begin_layout Plain Layout
18876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18879 \begin_layout Plain Layout
18887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18890 \begin_layout Plain Layout
18896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18899 \begin_layout Plain Layout
18905 <cell alignment="center" valignment="top" topline="true" usebox="none">
18908 \begin_layout Plain Layout
18914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18917 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18926 \begin_layout Plain Layout
18934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18937 \begin_layout Plain Layout
18941 \begin_layout Plain Layout
18955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18958 \begin_layout Plain Layout
18964 <cell alignment="center" valignment="top" usebox="none">
18967 \begin_layout Plain Layout
18973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18976 \begin_layout Plain Layout
18982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18985 \begin_layout Plain Layout
18993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18996 \begin_layout Plain Layout
19000 \begin_layout Plain Layout
19014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19017 \begin_layout Plain Layout
19023 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19026 \begin_layout Plain Layout
19032 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19035 \begin_layout Plain Layout
19041 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19044 \begin_layout Plain Layout
19052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19055 \begin_layout Plain Layout
19061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19064 \begin_layout Plain Layout
19070 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19073 \begin_layout Plain Layout
19079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19082 \begin_layout Plain Layout
19088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19091 \begin_layout Plain Layout
19110 \begin_layout Standard
19111 LyX does not natively support dashed lines, so you have to use TeX-Code.
19112 As a prerequisite the LaTeX-package
19117 \begin_inset Index idx
19120 \begin_layout Plain Layout
19121 LaTeX-packages ! arydshln
19126 must be loaded in the document preamble with the command
19129 \begin_layout Standard
19134 usepackage{arydshln}
19137 \begin_layout Standard
19138 To make a vertical line dashed, enter the colon
19139 \begin_inset Quotes eld
19143 \begin_inset Quotes erd
19146 together with the character for the horizontal alignment as LaTeX-argument
19147 in the table cell dialog.
19150 \begin_layout Standard
19151 For a horizontal dashed line add the command
19154 \begin_layout Standard
19162 \begin_layout Standard
19163 in TeX-Code as first element of the first cell in the table row.
19166 \begin_layout Standard
19167 For dashed multicolumn lines use the command
19170 \begin_layout Standard
19175 cdashline{line number
19180 \begin_layout Standard
19181 in TeX-Code as the first element of the first cell in the table row.
19182 If you have for example a multicolumn spanning columns 2 to 4 and you want
19183 to have a dashed line above, add the command
19186 \begin_layout Standard
19194 \begin_layout Standard
19195 as the first element of the first cell in the row of the multicolumn.
19198 \begin_layout Standard
19199 \begin_inset VSpace bigskip
19205 \begin_layout Standard
19207 \begin_inset space ~
19211 \begin_inset CommandInset ref
19213 reference "tab:Table-with-dashed"
19218 \begin_inset Quotes eld
19226 \begin_inset Quotes erd
19229 as LaTeX-argument of the third column.
19230 The TeX-Code command
19236 was inserted in the first cell of the third row and the TeX-Code command
19237 \begin_inset Newline newline
19246 was inserted in the first cell of the fourth row.
19249 \begin_layout Standard
19250 \begin_inset Note Greyedout
19253 \begin_layout Plain Layout
19262 is apparently not compatible with the LaTeX-package
19267 \begin_inset Index idx
19270 \begin_layout Plain Layout
19271 LaTeX-packages ! colortbl
19276 that is used for colored tables in section
19277 \begin_inset space ~
19281 \begin_inset CommandInset ref
19283 reference "sec:Colored-Tables"
19288 That means colored tables cannot have dashed lines.
19296 \begin_layout Standard
19300 \begin_layout Plain Layout
19310 \begin_inset Note Note
19313 \begin_layout Plain Layout
19314 The following will be displayed when the LaTeX-package
19326 \begin_layout Standard
19327 You need to install the package
19331 to see the content of this section in the output.
19334 \begin_layout Standard
19338 \begin_layout Plain Layout
19350 \begin_layout Chapter
19352 \begin_inset Index idx
19355 \begin_layout Plain Layout
19364 \begin_layout Section
19366 \begin_inset CommandInset label
19368 name "sec:FloatIntroduction"
19373 \begin_inset Index idx
19376 \begin_layout Plain Layout
19377 Floats ! Introduction
19385 \begin_layout Standard
19386 A float is a block of text associated with some sort of label, which doesn't
19387 have a fixed location.
19389 \begin_inset Quotes eld
19393 \begin_inset Quotes erd
19396 forward or backward a page or two, to wherever it fits best.
19404 \begin_inset space ~
19409 are also floats, because they can float to the next page when there are
19410 too many notes on the page.
19413 \begin_layout Standard
19414 Floats allow a high quality layout.
19415 Images and tables can be spread evenly to the pages to avoid white space
19416 and pages without text.
19417 As the floating often destroys the context between the text and the image/table
19418 , every float can be referenced in the text.
19419 Floats are therefore numbered.
19420 Referencing is described in section
19421 \begin_inset space ~
19425 \begin_inset CommandInset ref
19427 reference "sec:Referencing-Floats"
19434 \begin_layout Standard
19435 To insert a float, use the menu
19437 Insert\SpecialChar \menuseparator
19445 inset, a box with a label.
19446 The label will automatically be translated to the document language in
19448 After the label you can insert the caption text.
19449 The image or table is inserted above or below the caption in a separate
19450 paragraph within the float.
19451 More about the caption placement is contained in section
19452 \begin_inset space ~
19456 \begin_inset CommandInset ref
19458 reference "sec:Caption-Placement"
19463 To keep your LyX-document readable, you can open and close the float box
19464 by left-clicking on the box label.
19465 A closed float box looks like this:
19466 \begin_inset Graphics
19467 filename clipart/floatQt4.png
19469 scaleBeforeRotation
19473 – a gray button with a red label.
19476 \begin_layout Standard
19477 It is recommended that you insert floats as a separate standard paragraph
19478 to avoid possible LaTeX-errors that can occur when the surrounding text
19479 is specially formatted.
19482 \begin_layout Standard
19483 Existing figures or tables can be put into a float by highlighting them
19484 and then pressing the corresponding toolbar button for a new float.
19487 \begin_layout Section
19491 \begin_layout Standard
19492 Besides figure and table floats that are described in sections
19493 \begin_inset space ~
19497 \begin_inset CommandInset ref
19499 reference "sec:Figure-Floats"
19504 \begin_inset CommandInset ref
19506 reference "sec:Table-Floats"
19510 respectively, LyX offers the float types
19521 \begin_layout Subsection
19523 \begin_inset Index idx
19526 \begin_layout Plain Layout
19527 Floats ! Algorithms
19535 \begin_layout Standard
19536 \begin_inset Float algorithm
19542 \begin_layout Plain Layout
19543 \begin_inset Caption
19545 \begin_layout Plain Layout
19546 \begin_inset CommandInset label
19548 name "alg:Example-Algorithm-float"
19552 Example Algorithm float
19560 \begin_layout LyX-Code
19562 \begin_inset Newline newline
19565 Sum:= Sum + A(I); /*comment*/
19566 \begin_inset Newline newline
19570 \begin_inset VSpace -4mm
19581 \begin_layout Standard
19582 This float type is inserted with the menu
19584 Insert\SpecialChar \menuseparator
19585 Floats\SpecialChar \menuseparator
19589 It is used for program codes and descriptions of algorithms and can be
19590 seen as an alternative to program code listings that are explained in chapter
19591 \begin_inset space ~
19595 \begin_inset CommandInset ref
19597 reference "cha:Program-Code-Listings"
19602 A possible environment for algorithms is the
19606 , described in LyX's
19612 \begin_inset space ~
19616 \begin_inset CommandInset ref
19618 reference "alg:Example-Algorithm-float"
19622 is an example of an algorithm float where -4
19623 \begin_inset space \thinspace{}
19626 mm vertical space was added at the end of the float to have the bottom rule
19627 exactly below the last text line.
19630 \begin_layout Standard
19631 The float label is not automatically translated into the document language.
19632 If your document is not in English, you have to do this manually by adding
19633 the following line to the document preamble
19638 \begin_layout Standard
19643 floatname{algorithm}{your
19644 \begin_inset space ~
19650 \begin_layout Standard
19654 \begin_inset space ~
19660 \begin_inset Quotes eld
19668 \begin_inset Quotes erd
19674 \begin_layout Standard
19675 To insert the list of algorithms you can use the menu
19677 Insert\SpecialChar \menuseparator
19679 \begin_inset space \thinspace{}
19683 \begin_inset space \thinspace{}
19686 TOC\SpecialChar \menuseparator
19689 when your document has the same language as LyX's menu names.
19690 In other cases use this command in TeX-Code instead:
19693 \begin_layout Standard
19698 listof{algorithm}{your
19699 \begin_inset space ~
19705 \begin_layout Standard
19709 \begin_inset space ~
19715 \begin_inset Quotes eld
19723 \begin_inset Quotes erd
19729 \begin_layout Standard
19730 Algorithm floats are not by default numbered in the scheme
19731 \begin_inset Quotes eld
19735 \begin_inset Quotes erd
19738 as is the case for table and figure floats in many document-classes.
19739 To number algorithm floats in the same scheme, add this command to your
19743 \begin_layout Standard
19748 numberwithin{algorithm}{chapter}
19751 \begin_layout Standard
19752 To be able to use the command
19761 \begin_inset space ~
19766 in the document settings the option
19769 \begin_inset space ~
19773 \begin_inset space ~
19777 \begin_inset space ~
19785 \begin_layout Subsection
19787 \begin_inset Index idx
19790 \begin_layout Plain Layout
19791 Floats ! Wrap Floats
19799 \begin_layout Standard
19800 \begin_inset Wrap figure
19807 \begin_layout Plain Layout
19808 \begin_inset Graphics
19809 filename clipart/mobius.eps
19811 scaleBeforeRotation
19812 rotateOrigin center
19819 \begin_layout Plain Layout
19820 \begin_inset Caption
19822 \begin_layout Plain Layout
19823 \begin_inset CommandInset label
19825 name "fig:This-is-a"
19829 This is a figure wrap float.
19839 This float type is used if you want to wrap text around a figure or table
19840 so that it only occupies some fraction of the column width.
19841 It can be inserted using the menu
19843 Insert\SpecialChar \menuseparator
19844 Floats\SpecialChar \menuseparator
19846 \begin_inset space ~
19850 \begin_inset space ~
19858 \begin_inset space ~
19862 \begin_inset space ~
19867 if the LaTeX-package
19872 \begin_inset Index idx
19875 \begin_layout Plain Layout
19876 LaTeX-packages ! wrapfig
19880 \begin_layout Plain Layout
19898 \begin_layout Plain Layout
19899 Installing a LaTeX-package is explained it in the
19902 \begin_inset space ~
19912 The settings of the float can be modified by right-clicking on the float
19914 The mandatory settings are the float
19927 that specifies how much the float is set into the paragraph
19928 \begin_inset space \thinspace{}
19932 \begin_inset space \thinspace{}
19935 page margin, and the
19938 \begin_inset space ~
19943 that specifies how many text lines the float will approximately need.
19944 The line span is often hard to approximate; so it is better only to use
19945 it when you encounter float placement problems.
19946 You can furthermore decide if LaTeX is allowed to let the float float within
19947 the paragraph or to surrounding paragraphs.
19949 \begin_inset space ~
19953 \begin_inset CommandInset ref
19955 reference "fig:This-is-a"
19959 is an example text wrap float with a width of 40
19960 \begin_inset space \thinspace{}
19964 \begin_inset space \thinspace{}
19967 cm overhang, set to the left.
19971 \begin_layout Plain Layout
19972 Available units are explained in appendix
19973 \begin_inset space ~
19977 \begin_inset CommandInset ref
19979 reference "cha:Units-available-in"
19991 \begin_layout Standard
19992 \begin_inset Note Greyedout
19995 \begin_layout Plain Layout
20001 \begin_inset space ~
20004 wrap float floats are fragile! E.
20005 \begin_inset space \thinspace{}
20009 \begin_inset space \space{}
20012 having a figure too close to the bottom of the page can mess things up in
20013 such a way that the float does not appear in the output or that it is placed
20014 over some other text.
20022 \begin_layout Standard
20026 \begin_layout Itemize
20027 Wrap floats should not be placed in paragraphs that run over a page break.
20028 That means that wrap floats are better inserted in their exact place when
20029 the document is almost finished and you are able to estimate where page
20030 breaks will appear.
20033 \begin_layout Itemize
20034 Wrap floats should either be placed in their own paragraph before the paragraph
20035 where they should wrap into or within a paragraph.
20038 \begin_layout Itemize
20039 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20040 there is a text paragraph between them as separator.
20043 \begin_layout Itemize
20044 Wrap floats are not allowed in section headings or tables.
20047 \begin_layout Section
20049 \begin_inset Index idx
20052 \begin_layout Plain Layout
20061 \begin_layout Standard
20062 Floats are usually numbered either independently from the sections the floats
20063 are in, or in the scheme
20064 \begin_inset Quotes eld
20068 \begin_inset Quotes erd
20072 \begin_inset Quotes eld
20076 \begin_inset Quotes erd
20080 This depends on the document class used.
20083 \begin_layout Standard
20084 To change section-independent numbering, you can use this command in the
20088 \begin_layout Standard
20100 \begin_layout Standard
20107 is the command that prints the table number, for figure floats, the command
20121 in the command above prints the table number as small roman number.
20124 \begin_layout Standard
20125 To change the numbering scheme for example to
20126 \begin_inset Quotes eld
20130 \begin_inset Quotes erd
20133 , use this command in the preamble:
20136 \begin_layout Standard
20141 numberwithin{table}{subsection}
20144 \begin_layout Standard
20145 To be able to use the command
20154 \begin_inset space ~
20159 in the document settings the option
20162 \begin_inset space ~
20166 \begin_inset space ~
20170 \begin_inset space ~
20178 \begin_layout Standard
20179 Please also have a look at section
20180 \begin_inset space ~
20184 \begin_inset CommandInset ref
20186 reference "sub:Footnote-Numbering"
20190 for the details and important notes about the numbering commands.
20193 \begin_layout Section
20195 \begin_inset CommandInset label
20197 name "sec:Referencing-Floats"
20202 \begin_inset Index idx
20205 \begin_layout Plain Layout
20206 Floats ! References
20212 \begin_inset Index idx
20215 \begin_layout Plain Layout
20216 References ! to Floats
20224 \begin_layout Standard
20225 To reference a float, insert a label into its caption using the menu
20227 Insert\SpecialChar \menuseparator
20230 or the toolbar button
20231 \begin_inset Graphics
20232 filename ../images/label-insert.png
20234 scaleBeforeRotation
20239 A grey label box like this one:
20240 \begin_inset Graphics
20241 filename clipart/labelQt4.png
20243 scaleBeforeRotation
20247 will be inserted and the label window pops up asking for the label text.
20248 LyX offers as text the first words of the caption with a prefix.
20249 The prefix depends on the float type, e.
20250 \begin_inset space \thinspace{}
20254 \begin_inset space \space{}
20257 for figure floats the prefix will be "
20264 \begin_layout Standard
20265 The label is used as anchor and name for the reference.
20266 You can refer to the label using the menu
20268 Insert\SpecialChar \menuseparator
20271 or the toolbar button
20272 \begin_inset Graphics
20273 filename ../images/dialog-show-new-inset_ref.png
20275 scaleBeforeRotation
20280 A grey cross-reference box like this one:
20281 \begin_inset Graphics
20282 filename clipart/referenceQt4.png
20284 scaleBeforeRotation
20288 will be inserted and the cross-reference window appear showing all labels
20290 If you have multiple LyX-documents opened, choose the one you are working
20291 on from the drop-list at the top of the dialog.
20292 You can now sort the labels alphabetically and then choose one.
20293 At the position of the cross-reference box the float number will appear
20297 \begin_layout Standard
20298 It is recommended that you use a protected space between the cross-reference
20299 name and its number to avoid line breaks between them.
20300 If a cross-reference refers to a non-existing label, you will see two question
20301 marks in the output instead of the reference.
20304 \begin_layout Standard
20305 You can change labels at any time by clicking on the label box.
20306 References to the changed label will automatically change its link to the
20307 new label text, so that you don't need to take care about this.
20310 \begin_layout Standard
20314 \begin_inset space ~
20318 \begin_inset space ~
20323 in the cross-reference window sets the cursor before the referred label.
20324 The button text changes then to Go
20325 \begin_inset space ~
20328 Back and you can use it to set the cursor back to the cross-reference.
20329 Right-clicking on a cross-reference box also sets the cursor before the
20330 referenced label but without the possibility of going back.
20333 \begin_layout Subsection
20334 Cross-Reference Formats
20335 \begin_inset CommandInset label
20337 name "sub:Cross-Reference-Formats"
20342 \begin_inset Index idx
20345 \begin_layout Plain Layout
20346 References ! Formats
20354 \begin_layout Standard
20355 There are six varieties of cross-references:
20358 \begin_layout Description
20359 <reference>: prints the float number, this is the default:
20360 \begin_inset CommandInset ref
20362 reference "fig:Two-distorted-images"
20369 \begin_layout Description
20370 (<reference>): prints the float number within two parentheses, this is the
20371 style normally used to reference formulas, especially when the reference
20373 \begin_inset Quotes eld
20377 \begin_inset Quotes erd
20381 \begin_inset CommandInset ref
20390 \begin_layout Description
20391 <page>: prints the page number: Page
20392 \begin_inset space ~
20396 \begin_inset CommandInset ref
20397 LatexCommand pageref
20398 reference "fig:Two-distorted-images"
20405 \begin_layout Description
20407 \begin_inset space ~
20411 \begin_inset space ~
20414 <page>: prints the text "on page" and the page number:
20415 \begin_inset CommandInset ref
20416 LatexCommand vpageref
20417 reference "fig:Two-distorted-images"
20424 \begin_layout Description
20426 \begin_inset space ~
20430 \begin_inset space ~
20434 \begin_inset space ~
20437 <page>: prints the float number, the text "on page", and the page number:
20439 \begin_inset CommandInset ref
20441 reference "fig:Two-distorted-images"
20448 \begin_layout Description
20450 \begin_inset space ~
20453 reference: prints a self-defined cross-reference format.
20454 \begin_inset Newline newline
20458 \begin_inset Note Greyedout
20461 \begin_layout Plain Layout
20466 This feature is only available when you have the LaTeX-package
20475 \begin_inset Index idx
20478 \begin_layout Plain Layout
20479 LaTeX-packages ! prettyref
20485 \begin_inset Index idx
20488 \begin_layout Plain Layout
20489 LaTeX-packages ! refstyle
20500 \begin_inset Newline newline
20503 You can select which LaTeX-package should be used for this feature by setting
20506 Use refstyle (not prettyref) for cross-references
20510 Document\SpecialChar \menuseparator
20511 Settings\SpecialChar \menuseparator
20515 The format is specified by adding the command
20527 (refstyle) to the preamble of the document.
20528 For example redefining all references to figures (which have the label
20530 \begin_inset Quotes eld
20538 \begin_inset Quotes erd
20541 ) can be done with this command
20542 \begin_inset Newline newline
20549 newref{fig}{refcmd={Image on page
20554 \begin_inset Newline newline
20557 For more information about the format, have a look at the package documentations
20559 \begin_inset CommandInset citation
20561 key "prettyref,refstyle"
20568 \begin_layout Description
20570 \begin_inset space ~
20573 reference: prints the caption of the reference:
20574 \begin_inset CommandInset ref
20575 LatexCommand nameref
20576 reference "fig:Two-distorted-images"
20583 \begin_layout Standard
20588 will not print the page number if the label is on the previous, the same,
20591 \begin_inset space \thinspace{}
20595 \begin_inset space \space{}
20599 \begin_inset Quotes eld
20607 \begin_inset Quotes erd
20613 <reference> on page <page>
20615 will not print anything about the page if the label is on the same page.
20618 \begin_layout Standard
20619 The number and current page of the part of the document referred to in the
20620 output is automatically calculated by LaTeX.
20621 The varieties are adjusted in the field
20625 of the cross-reference window that appears when you click on the cross-referenc
20629 \begin_layout Standard
20630 \begin_inset Note Greyedout
20633 \begin_layout Plain Layout
20638 It is recommended to use the LaTeX-package
20643 \begin_inset Index idx
20646 \begin_layout Plain Layout
20647 LaTeX-packages ! refstyle
20657 \begin_inset Index idx
20660 \begin_layout Plain Layout
20661 LaTeX-packages ! prettyref
20666 does not know all of LyX's possible label shortcuts
20670 \begin_layout Plain Layout
20671 \begin_inset Quotes eld
20675 \begin_inset Quotes erd
20678 is for example LyX's shortcut for labels in figure captions.
20683 and is not internationalized.
20691 \begin_layout Standard
20692 \begin_inset Note Greyedout
20695 \begin_layout Plain Layout
20700 Due to a bug in the LaTeX-package
20704 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20705 languages that make the period character active (like French).
20706 For a workaround, see
20707 \begin_inset Newline newline
20711 \begin_inset CommandInset href
20713 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20725 \begin_layout Subsection
20726 Automatic Reference Naming
20727 \begin_inset Index idx
20730 \begin_layout Plain Layout
20731 References ! Automatic Reference Naming
20739 \begin_layout Standard
20745 \begin_inset Index idx
20748 \begin_layout Plain Layout
20749 LaTeX-packages ! hyperref
20754 , that is enabled in the
20762 dialog, provides a very useful feature that cross-references automatically
20763 include the name of the referenced floats (or text parts like
20768 So you will save having to write e.
20769 \begin_inset space \thinspace{}
20773 \begin_inset space \space{}
20777 \begin_inset Quotes eld
20781 \begin_inset Quotes erd
20784 before every reference to a figure.
20785 To use this feature, enable
20789 and insert this line to the LaTeX preamble:
20792 \begin_layout Standard
20808 \begin_layout Standard
20809 When you prefer other reference names than the default ones, for example
20810 you want instead of
20811 \begin_inset Quotes eld
20815 \begin_inset Quotes erd
20819 \begin_inset Quotes eld
20823 \begin_inset space \thinspace{}
20827 \begin_inset Quotes eld
20830 , you can redefine the name by inserting this in the preamble:
20833 \begin_layout Standard
20844 sectionautorefname}
20845 \begin_inset Newline newline
20849 \begin_inset Phantom HPhantom
20852 \begin_layout Plain Layout
20855 \begin_inset space ~
20868 \begin_layout Standard
20869 When you are using another document language than English, replace
20870 \begin_inset Newline newline
20885 , where *** is the name of the language used.
20888 \begin_layout Standard
20889 To get automatic names, but not for certain reference types, for example
20890 not for equations, use this preamble code:
20893 \begin_layout Standard
20901 \begin_inset Newline newline
20911 \begin_inset Newline newline
20922 equationautorefname}
20923 \begin_inset Newline newline
20927 \begin_inset Phantom HPhantom
20930 \begin_layout Plain Layout
20933 \begin_inset space ~
20948 \begin_layout Standard
20949 More about this topic can be found in
20954 \begin_inset CommandInset citation
20963 \begin_layout Standard
20964 \begin_inset Note Greyedout
20967 \begin_layout Plain Layout
20972 Automatic reference naming cannot be used when you use cross-references
20976 \begin_inset space ~
20981 style, as described in section
20982 \begin_inset space ~
20986 \begin_inset CommandInset ref
20988 reference "sub:Cross-Reference-Formats"
21000 \begin_layout Standard
21005 manual is an example where automatic reference naming is used.
21008 \begin_layout Subsection
21010 \begin_inset CommandInset label
21012 name "sub:Reference-Position"
21017 \begin_inset Index idx
21020 \begin_layout Plain Layout
21021 References ! Reference Position
21029 \begin_layout Standard
21035 \begin_inset Index idx
21038 \begin_layout Plain Layout
21039 LaTeX-packages ! hyperref
21052 dialog to link cross-references in the output, you will see that clicking
21053 on an image float reference jumps to the image label.
21054 The caption will be the first text part on the screen, so that you cannot
21055 see the image without scrolling.
21056 This is because the reference link anchor is placed at the position of
21058 With the use of the package
21063 \begin_inset Index idx
21066 \begin_layout Plain Layout
21067 LaTeX-packages ! hypcap
21072 , which is part of the LaTeX-package
21077 \begin_inset Index idx
21080 \begin_layout Plain Layout
21081 LaTeX-packages ! oberdiek
21086 , the link anchor is placed at the beginning of a float.
21087 To use this feature for figure floats, load
21091 in the document preamble with the line
21094 \begin_layout Standard
21099 usepackage[figure]{hypcap}
21102 \begin_layout Standard
21107 for all float types but this is not recommended for stability reasons.
21108 For more information, have a look at
21113 \begin_inset CommandInset citation
21122 \begin_layout Standard
21123 \begin_inset Note Greyedout
21126 \begin_layout Plain Layout
21135 has no effect on references to subfigures.
21143 \begin_layout Section
21145 \begin_inset CommandInset label
21147 name "sec:Float-Placement"
21152 \begin_inset Index idx
21155 \begin_layout Plain Layout
21164 \begin_layout Standard
21165 Right-clicking on a float-box opens a dialog where you can alter the placement
21166 options that LaTeX uses for positioning the float.
21167 \begin_inset Newline newline
21173 \begin_inset space ~
21178 is only useful for two-column documents: If you select it, the float will
21179 span both columns on the page instead of being confined to just one.
21180 \begin_inset Newline newline
21186 \begin_inset space ~
21191 is used to rotate floats, see section
21192 \begin_inset CommandInset ref
21194 reference "sec:Rotated-Floats"
21201 \begin_layout Standard
21202 You can use one ore more of the following options in the float dialog to
21203 set the placement for a particular float when you uncheck the option
21206 \begin_inset space ~
21210 \begin_inset space ~
21218 \begin_layout Description
21220 \begin_inset space ~
21224 \begin_inset space ~
21227 possible try to place the float on the position where it has been inserted
21230 \begin_layout Description
21232 \begin_inset space ~
21236 \begin_inset space ~
21239 page try to place the float at the top of the current page
21242 \begin_layout Description
21244 \begin_inset space ~
21248 \begin_inset space ~
21251 page try to place the float at the bottom of the current page
21254 \begin_layout Description
21256 \begin_inset space ~
21260 \begin_inset space ~
21263 floats try to place the float on its own page
21266 \begin_layout Standard
21267 The order of the above option is
21272 That means, if you use the default placement, LaTeX will first try out
21276 \begin_inset space ~
21280 \begin_inset space ~
21288 \begin_inset space ~
21292 \begin_inset space ~
21297 , and then the others.
21298 If you do not use the default, LaTeX will try only the checked options
21299 but in the same order.
21301 \begin_inset space ~
21304 placements are possible the procedure is internally repeated but it is tried
21305 to put the float on the following page.
21308 \begin_layout Standard
21309 By default, each option has its own rules:
21312 \begin_layout Labeling
21313 \labelwidthstring 00.00.0000
21317 \begin_inset space ~
21321 \begin_inset space ~
21326 only floats occupying less than 70
21327 \begin_inset space \thinspace{}
21330 % of the page can be placed at the top of a page (
21339 \begin_layout Labeling
21340 \labelwidthstring 00.00.0000
21344 \begin_inset space ~
21348 \begin_inset space ~
21353 : only floats occupying less than 30
21354 \begin_inset space \thinspace{}
21357 % of the page can be placed at the bottom of a page.
21367 \begin_layout Labeling
21368 \labelwidthstring 00.00.0000
21372 \begin_inset space ~
21376 \begin_inset space ~
21381 : only if more than 50
21382 \begin_inset space \thinspace{}
21385 % of the page are occupied by floats, several floats can be set together
21396 \begin_layout Standard
21397 If you don't like these rules, you can ignore them by using the additional
21401 \begin_inset space ~
21405 \begin_inset space ~
21411 \begin_inset Newline newline
21414 You can also redefine the rules with LaTeX-commands that are given in parenthese
21415 s after the rules description above.
21416 To increase for example the often too small default of the bottom-rule
21418 \begin_inset space \thinspace{}
21421 % of the page, add this line to your document preamble:
21424 \begin_layout Standard
21431 bottomfraction}{0.5}
21434 \begin_layout Standard
21435 Sometimes you might need, under all circumstances, a float to be placed
21436 exactly at the position where it is inserted.
21437 For this case you can use the option
21440 \begin_inset space ~
21446 Use this option very rarely and only if the document is almost ready to
21447 be printed, because the float is then no longer able to
21448 \begin_inset Quotes eld
21452 \begin_inset Quotes erd
21455 when you change your document and this will often destroy the page layout.
21458 \begin_layout Standard
21459 There are no placement options for text wrap floats, because they are always
21460 surrounded by the text of a certain paragraph.
21461 \begin_inset VSpace bigskip
21467 \begin_layout Standard
21468 Sometimes you have the problem that a float is placed at the top of a page
21469 while its corresponding section starts at the middle of the page, so that
21470 the reader could think the float is part of the previous section.
21471 To avoid this the LaTeX-command
21478 It suppresses a given float placement for the page where it is inserted
21479 and can therefore be used to avoid floats being set before a section starts.
21480 To get this, add these commands to your document preamble:
21483 \begin_layout Standard
21493 \begin_inset Newline newline
21507 \begin_layout Standard
21508 You can define the same for all section headings, like chapters and subsections.
21509 This definition is not recommended to be used for small text parts like
21510 subsubsections because LaTeX may then have problems finding a suitable
21514 \begin_layout Standard
21515 \begin_inset VSpace bigskip
21518 In some cases it is required to have all figures/tables at the end of the
21520 For this purpose the LaTeX-package
21525 \begin_inset Index idx
21528 \begin_layout Plain Layout
21529 LaTeX-packages ! endfloat
21535 It puts all figure and table floats at the end of the document into their
21537 At the original float position a text hint like
21538 \begin_inset Quotes eld
21544 \begin_inset space ~
21550 \begin_inset Quotes erd
21554 The endfloat-package is loaded in the preamble with the line
21557 \begin_layout Standard
21562 usepackage[options]{endfloat}
21565 \begin_layout Standard
21566 There are various package options to format the created figure/table sections.
21567 For more information we refer to the
21572 \begin_inset CommandInset citation
21579 \begin_inset Newline newline
21583 \begin_inset Note Greyedout
21586 \begin_layout Plain Layout
21591 doesn't provide an automatic translation for the text hint, you have to
21592 do this manually, see section
21593 \begin_inset space ~
21597 \begin_inset CommandInset citation
21609 \begin_inset Newline newline
21613 \begin_inset Note Greyedout
21616 \begin_layout Plain Layout
21621 There is currently a bug in
21625 when the caption contains a German
21626 \begin_inset Quotes eld
21630 \begin_inset Quotes erd
21634 Use in this case the command
21635 \begin_inset Quotes eld
21645 \begin_inset Quotes erd
21648 in TeX-Code instead of
21649 \begin_inset Quotes eld
21653 \begin_inset Quotes erd
21664 \begin_layout Standard
21665 \begin_inset VSpace bigskip
21668 For more details about float placements, have a look at LaTeX books,
21669 \begin_inset CommandInset citation
21671 key "latexcompanion,latexguide,latexbook"
21678 \begin_layout Section
21680 \begin_inset CommandInset label
21682 name "sec:Rotated-Floats"
21687 \begin_inset Index idx
21690 \begin_layout Plain Layout
21699 \begin_layout Standard
21700 Especially for wide tables you might have floats rotated.
21701 To rotate a whole float including the caption, right-click on the float-box
21705 \begin_inset space ~
21713 \begin_layout Standard
21714 Rotated floats are always placed on a page of their own (or column of their
21715 own; in case you have a multi-column document).
21716 You can let them span several columns using the float settings option
21719 \begin_inset space ~
21725 Floats are rotated so that you can read them from the outside margin.
21726 To force a certain rotation direction for all pages, you can add either
21735 to the document class options.
21738 \begin_layout Standard
21739 Referencing rotated floats is the same as for normal floats, the caption
21740 format is also the same: Table
21741 \begin_inset space ~
21745 \begin_inset CommandInset ref
21747 reference "tab:Rotated-table"
21751 is an example of a rotated table float.
21754 \begin_layout Standard
21755 \begin_inset Note Greyedout
21758 \begin_layout Plain Layout
21763 Not all DVI-viewers are able to display rotated floats.
21771 \begin_layout Standard
21772 \begin_inset Float table
21777 \begin_layout Plain Layout
21778 \begin_inset Caption
21780 \begin_layout Plain Layout
21781 \begin_inset CommandInset label
21783 name "tab:Rotated-table"
21795 \begin_layout Plain Layout
21797 \begin_inset Tabular
21798 <lyxtabular version="3" rows="1" columns="5">
21799 <features tabularvalignment="middle">
21800 <column alignment="center" valignment="top" width="0">
21801 <column alignment="center" valignment="top" width="0">
21802 <column alignment="center" valignment="top" width="0">
21803 <column alignment="center" valignment="top" width="0">
21804 <column alignment="center" valignment="top" width="0">
21806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21809 \begin_layout Plain Layout
21815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21818 \begin_layout Plain Layout
21824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21827 \begin_layout Plain Layout
21833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21836 \begin_layout Plain Layout
21842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21845 \begin_layout Plain Layout
21864 \begin_layout Section
21866 \begin_inset Index idx
21869 \begin_layout Plain Layout
21878 \begin_layout Standard
21879 Subfloats are for example used when a figure consists of several images.
21880 They are created by inserting a float into an existing float.
21881 The placement of the subfloats can be controlled in the same way as for
21882 paragraphs as shown in table
21883 \begin_inset space ~
21887 \begin_inset CommandInset ref
21889 reference "tab:Two-subtables-side"
21894 \begin_inset CommandInset ref
21896 reference "tab:Two-subtables-upon"
21903 \begin_layout Standard
21904 Referencing subfloats works as for normal floats: Table
21905 \begin_inset space ~
21909 \begin_inset CommandInset ref
21911 reference "tab:This-is-subtable-a"
21916 \begin_inset CommandInset ref
21918 reference "tab:This-is-subtable-b"
21922 are subtables of table
21923 \begin_inset space ~
21927 \begin_inset CommandInset ref
21929 reference "tab:Two-subtables-side"
21936 \begin_layout Standard
21937 \begin_inset Float table
21942 \begin_layout Plain Layout
21943 \begin_inset Caption
21945 \begin_layout Plain Layout
21946 \begin_inset CommandInset label
21948 name "tab:Two-subtables-side"
21952 Two subtables placed side by side.
21960 \begin_layout Plain Layout
21962 \begin_inset space \hfill{}
21966 \begin_inset Float table
21971 \begin_layout Plain Layout
21972 \begin_inset Caption
21974 \begin_layout Plain Layout
21975 \begin_inset CommandInset label
21977 name "tab:This-is-subtable-a"
21981 This is subtable a.
21989 \begin_layout Plain Layout
21991 \begin_inset Tabular
21992 <lyxtabular version="3" rows="1" columns="5">
21993 <features tabularvalignment="middle">
21994 <column alignment="center" valignment="top" width="0">
21995 <column alignment="center" valignment="top" width="0">
21996 <column alignment="center" valignment="top" width="0">
21997 <column alignment="center" valignment="top" width="0">
21998 <column alignment="center" valignment="top" width="0">
22000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22003 \begin_layout Plain Layout
22009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22012 \begin_layout Plain Layout
22018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22021 \begin_layout Plain Layout
22027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22030 \begin_layout Plain Layout
22036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22039 \begin_layout Plain Layout
22056 \begin_inset space \hfill{}
22060 \begin_inset Float table
22065 \begin_layout Plain Layout
22066 \begin_inset Caption
22068 \begin_layout Plain Layout
22069 \begin_inset CommandInset label
22071 name "tab:This-is-subtable-b"
22075 This is subtable b.
22083 \begin_layout Plain Layout
22085 \begin_inset Tabular
22086 <lyxtabular version="3" rows="1" columns="5">
22087 <features tabularvalignment="middle">
22088 <column alignment="center" valignment="top" width="0">
22089 <column alignment="center" valignment="top" width="0">
22090 <column alignment="center" valignment="top" width="0">
22091 <column alignment="center" valignment="top" width="0">
22092 <column alignment="center" valignment="top" width="0">
22094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22097 \begin_layout Plain Layout
22103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22106 \begin_layout Plain Layout
22112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22115 \begin_layout Plain Layout
22121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22124 \begin_layout Plain Layout
22130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22133 \begin_layout Plain Layout
22150 \begin_inset space \hfill{}
22161 \begin_layout Standard
22162 \begin_inset Float table
22167 \begin_layout Plain Layout
22168 \begin_inset Caption
22170 \begin_layout Plain Layout
22171 \begin_inset CommandInset label
22173 name "tab:Two-subtables-upon"
22177 Two subtables placed one above the other.
22178 (a) table with 4 cells, (b) table with 5 cells.
22186 \begin_layout Plain Layout
22188 \begin_inset Float table
22193 \begin_layout Plain Layout
22194 \begin_inset Caption
22196 \begin_layout Plain Layout
22205 \begin_layout Plain Layout
22207 \begin_inset Tabular
22208 <lyxtabular version="3" rows="1" columns="4">
22209 <features tabularvalignment="middle">
22210 <column alignment="center" valignment="top" width="0">
22211 <column alignment="center" valignment="top" width="0">
22212 <column alignment="center" valignment="top" width="0">
22213 <column alignment="center" valignment="top" width="0">
22215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22218 \begin_layout Plain Layout
22224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22227 \begin_layout Plain Layout
22233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22236 \begin_layout Plain Layout
22242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22245 \begin_layout Plain Layout
22264 \begin_layout Plain Layout
22266 \begin_inset Float table
22271 \begin_layout Plain Layout
22272 \begin_inset Caption
22274 \begin_layout Plain Layout
22283 \begin_layout Plain Layout
22285 \begin_inset Tabular
22286 <lyxtabular version="3" rows="1" columns="5">
22287 <features tabularvalignment="middle">
22288 <column alignment="center" valignment="top" width="0">
22289 <column alignment="center" valignment="top" width="0">
22290 <column alignment="center" valignment="top" width="0">
22291 <column alignment="center" valignment="top" width="0">
22292 <column alignment="center" valignment="top" width="0">
22294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22297 \begin_layout Plain Layout
22303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22306 \begin_layout Plain Layout
22312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22315 \begin_layout Plain Layout
22321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22324 \begin_layout Plain Layout
22330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22333 \begin_layout Plain Layout
22357 \begin_layout Section
22358 Floats Side by Side
22359 \begin_inset Index idx
22362 \begin_layout Plain Layout
22363 Floats ! Side by side
22371 \begin_layout Standard
22372 To place floats side by side, as in Figures
22373 \begin_inset space ~
22377 \begin_inset CommandInset ref
22379 reference "fig:Float-left"
22384 \begin_inset CommandInset ref
22386 reference "fig:Float-right"
22395 In it two minipage boxes are inserted.
22399 \begin_layout Plain Layout
22400 Minipages are explained in section
22401 \begin_inset space ~
22405 \begin_inset CommandInset ref
22407 reference "sec:Minipages"
22416 The width is set to 45
22417 \begin_inset space \thinspace{}
22421 \begin_inset space \thinspace{}
22424 column% and the box alignment to
22429 The minipage boxes contain the image and the caption in the same way as
22430 they are in a float.
22431 The only difference is that the image unit
22434 \begin_inset space ~
22438 \begin_inset space ~
22443 is now calculated according to the width of the minipage boxes.
22446 \begin_layout Standard
22447 \begin_inset Float figure
22452 \begin_layout Plain Layout
22453 \begin_inset Box Frameless
22463 height_special "totalheight"
22466 \begin_layout Plain Layout
22468 \begin_inset Graphics
22469 filename clipart/mobius.eps
22472 scaleBeforeRotation
22479 \begin_layout Plain Layout
22480 \begin_inset Caption
22482 \begin_layout Plain Layout
22483 \begin_inset CommandInset label
22485 name "fig:Float-left"
22489 Float on the left side.
22500 \begin_inset space \hfill{}
22504 \begin_inset Box Frameless
22514 height_special "totalheight"
22517 \begin_layout Plain Layout
22519 \begin_inset Graphics
22520 filename clipart/platypus.eps
22523 scaleBeforeRotation
22530 \begin_layout Plain Layout
22531 \begin_inset Caption
22533 \begin_layout Plain Layout
22534 \begin_inset CommandInset label
22536 name "fig:Float-right"
22540 Float on the right side.
22553 \begin_layout Plain Layout
22562 \begin_layout Section
22564 \begin_inset Index idx
22567 \begin_layout Plain Layout
22568 Caption ! Formatting
22574 \begin_inset Index idx
22577 \begin_layout Plain Layout
22578 Floats ! Caption Formatting
22584 \begin_inset CommandInset label
22586 name "sec:Caption-Formatting"
22593 \begin_layout Standard
22598 environment is the default paragraph environment for
22603 On the LyX screen captions appear as label, e.
22604 \begin_inset space \thinspace{}
22608 \begin_inset space \space{}
22612 \begin_inset Quotes eld
22620 \begin_inset Quotes erd
22623 followed by the caption text.
22625 \begin_inset Quotes eld
22629 \begin_inset Quotes erd
22632 is the actual reference number.
22633 By default the label and the number are in the same font as the caption
22634 text and a colon follows the number to divide the label from the text.
22635 This caption format is not suitable for all document formats.
22639 \begin_layout Standard
22640 To change the default caption format, load the LaTeX-package
22645 \begin_inset Index idx
22648 \begin_layout Plain Layout
22649 LaTeX-packages ! caption
22654 in the document preamble with this line:
22657 \begin_layout Standard
22662 usepackage[format definition]{caption}
22665 \begin_layout Standard
22666 To have for example the label and the number in sans-serif bold font and
22667 the table captions always above the table as in this document, use the
22671 \begin_layout Standard
22676 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22679 \begin_layout Standard
22680 You can also define different caption formats for the different float types.
22681 In this case load the
22685 package without format specific options and define the different formats
22686 with the help of the command
22689 \begin_layout Standard
22694 captionsetup[float type]{format definition}
22697 \begin_layout Standard
22698 in the document preamble.
22699 For example the caption formats of Figure
22700 \begin_inset space ~
22704 \begin_inset CommandInset ref
22706 reference "fig:This-is-an-fig"
22711 \begin_inset space ~
22715 \begin_inset CommandInset ref
22717 reference "tab:This-is-an-tab"
22721 can be created using these commands in the document preamble:
22724 \begin_layout Standard
22729 usepackage[tableposition=top]{caption}
22732 \begin_inset Newline newline
22739 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22740 \begin_inset Newline newline
22744 \begin_inset Phantom HPhantom
22747 \begin_layout Plain Layout
22752 captionsetup[figure]{
22758 \begin_inset Newline newline
22763 captionsetup[table]{labelfont={bf,sf}}
22766 \begin_layout Standard
22767 \begin_inset Note Greyedout
22770 \begin_layout Plain Layout
22779 has no effect when a
22784 \begin_inset Index idx
22787 \begin_layout Plain Layout
22788 LaTeX-packages ! KOMA-Script
22793 document class is used.
22794 In this case the document class option
22796 captions=tableheading
22806 \begin_layout Standard
22807 For more information about the package
22811 we refer to its documentation
22812 \begin_inset CommandInset citation
22821 \begin_layout Standard
22822 To change the label name from e.
22823 \begin_inset space \thinspace{}
22827 \begin_inset space \space{}
22831 \begin_inset Quotes eld
22835 \begin_inset Quotes erd
22839 \begin_inset Quotes eld
22843 \begin_inset Quotes erd
22846 use this preamble command:
22849 \begin_layout Standard
22856 fnum@figure}{Image~
22861 \begin_layout Standard
22868 inserts the figure number and
22871 \begin_inset Quotes eld
22877 \begin_inset Quotes erd
22880 creates a protected space.
22883 \begin_layout Standard
22884 \begin_inset VSpace bigskip
22892 \begin_inset Index idx
22895 \begin_layout Plain Layout
22896 LaTeX-packages ! KOMA-Script
22903 article (KOMA-Script)
22911 letter (KOMA-Script)
22915 report (KOMA-Script)
22918 \begin_inset space \thinspace{}
22921 ), you can alternatively to the
22929 's built-in command
22936 For example, to have the caption label in bold, add this command to your
22940 \begin_layout Standard
22945 setkomafont{captionlabel}{
22950 \begin_layout Standard
22951 For more information about
22962 \begin_inset CommandInset citation
22971 \begin_layout Standard
22975 \begin_layout Plain Layout
22979 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22986 \begin_inset Note Note
22989 \begin_layout Plain Layout
22990 The caption format is changed only for this example.
22998 \begin_layout Standard
22999 \begin_inset Float figure
23005 \begin_layout Plain Layout
23007 \begin_inset Graphics
23008 filename clipart/mobius.eps
23011 scaleBeforeRotation
23018 \begin_layout Plain Layout
23019 \begin_inset Caption
23021 \begin_layout Plain Layout
23022 \begin_inset CommandInset label
23024 name "fig:This-is-an-fig"
23028 This is an example figure caption that is longer than one line to show the
23029 different caption format.
23030 Here a self-defined caption format is used.
23043 \begin_layout Standard
23047 \begin_layout Plain Layout
23051 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23060 \begin_layout Standard
23061 \begin_inset Float table
23067 \begin_layout Plain Layout
23068 \begin_inset Caption
23070 \begin_layout Plain Layout
23071 \begin_inset CommandInset label
23073 name "tab:This-is-an-tab"
23077 This is an example table caption that is longer than one line to show the
23078 different caption format.
23079 Here the standard caption format for tables in this document is used.
23087 \begin_layout Plain Layout
23089 \begin_inset Tabular
23090 <lyxtabular version="3" rows="1" columns="5">
23091 <features tabularvalignment="middle">
23092 <column alignment="center" valignment="top" width="0">
23093 <column alignment="center" valignment="top" width="0">
23094 <column alignment="center" valignment="top" width="0">
23095 <column alignment="center" valignment="top" width="0">
23096 <column alignment="center" valignment="top" width="0">
23098 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23101 \begin_layout Plain Layout
23107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23110 \begin_layout Plain Layout
23116 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23119 \begin_layout Plain Layout
23125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23128 \begin_layout Plain Layout
23134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23137 \begin_layout Plain Layout
23156 \begin_layout Section
23158 \begin_inset Index idx
23161 \begin_layout Plain Layout
23162 Caption ! Placement
23168 \begin_inset Index idx
23171 \begin_layout Plain Layout
23172 Floats ! Caption Placement
23178 \begin_inset CommandInset label
23180 name "sec:Caption-Placement"
23187 \begin_layout Standard
23188 The common caption placement rule is:
23191 \begin_layout Description
23192 Figure: Caption is set below the figure
23195 \begin_layout Description
23196 Table: Caption is set above the table
23199 \begin_layout Standard
23200 Having the caption above the table is unfortunately not supported in LaTeX's
23202 That means if you are using the document classes
23218 there will be no space between the caption and the table.
23219 To insert the necessary space, add the following option to the load command
23220 of the LaTeX-package
23224 in your document preamble
23228 \begin_layout Plain Layout
23230 \begin_inset space ~
23234 \begin_inset CommandInset ref
23236 reference "sec:Caption-Formatting"
23240 for more information of the package
23252 \begin_layout Standard
23258 \begin_layout Standard
23264 \begin_inset Index idx
23267 \begin_layout Plain Layout
23268 LaTeX-packages ! KOMA-Script
23275 article (KOMA-Script)
23283 letter (KOMA-Script)
23287 report (KOMA-Script)
23290 \begin_inset space \thinspace{}
23293 ), you can alternatively to the
23297 package set the document class option
23299 captions=tableheading
23304 \begin_layout Standard
23305 \begin_inset VSpace bigskip
23308 It is also possible to set the caption beside a figure or table.
23309 To get this the LaTeX-package
23314 \begin_inset Index idx
23317 \begin_layout Plain Layout
23318 LaTeX-packages ! sidecap
23323 has to be loaded in the document preamble with the line
23326 \begin_layout Standard
23331 usepackage[option]{sidecap}
23334 \begin_layout Standard
23335 If you set no option, the caption is placed on the side of the outer page
23336 margin – to the right on odd pages, to the left on even pages.
23337 You can change the placement to inner margin with the option
23342 To force the placement always to the right or left, use the option
23353 \begin_layout Standard
23357 \begin_layout Plain Layout
23367 \begin_inset Note Note
23370 \begin_layout Plain Layout
23371 The following section will only be displayed when the LaTeX-package
23383 \begin_layout Standard
23384 To place in LyX the caption of a float on the side, it is necessary to add
23385 these commands to the document preamble:
23388 \begin_layout Standard
23390 \begin_inset CommandInset line
23401 \begin_layout Standard
23409 \begin_inset Newline newline
23413 \begin_inset Phantom HPhantom
23416 \begin_layout Plain Layout
23419 \begin_inset space ~
23434 \begin_inset Newline newline
23438 \begin_inset Phantom HPhantom
23441 \begin_layout Plain Layout
23444 \begin_inset space ~
23459 \begin_inset Newline newline
23463 \begin_inset Phantom HPhantom
23466 \begin_layout Plain Layout
23469 \begin_inset space ~
23479 renewenvironment{table}{
23486 \begin_layout Standard
23494 \begin_inset Newline newline
23498 \begin_inset Phantom HPhantom
23501 \begin_layout Plain Layout
23504 \begin_inset space ~
23519 \begin_inset Newline newline
23523 \begin_inset Phantom HPhantom
23526 \begin_layout Plain Layout
23529 \begin_inset space ~
23546 \begin_layout Standard
23554 \begin_inset Newline newline
23558 \begin_inset Phantom HPhantom
23561 \begin_layout Plain Layout
23564 \begin_inset space ~
23579 \begin_inset Newline newline
23583 \begin_inset Phantom HPhantom
23586 \begin_layout Plain Layout
23589 \begin_inset space ~
23604 \begin_inset Newline newline
23608 \begin_inset Phantom HPhantom
23611 \begin_layout Plain Layout
23614 \begin_inset space ~
23624 renewenvironment{figure}{
23631 \begin_layout Standard
23639 \begin_inset Newline newline
23643 \begin_inset Phantom HPhantom
23646 \begin_layout Plain Layout
23649 \begin_inset space ~
23664 \begin_inset Newline newline
23668 \begin_inset Phantom HPhantom
23671 \begin_layout Plain Layout
23674 \begin_inset space ~
23691 \begin_layout Standard
23693 \begin_inset CommandInset line
23704 \begin_layout Standard
23705 The commands allow you to redefine the floats so that the caption is set
23707 For figure floats use the command
23710 \begin_layout Standard
23718 \begin_layout Standard
23719 in TeX-Code before the float.
23720 After the float insert the command
23723 \begin_layout Standard
23731 \begin_layout Standard
23732 in TeX-Code to get back to the original float definition.
23735 \begin_layout Standard
23736 For table floats use the corresponding commands
23739 \begin_layout Standard
23753 \begin_layout Standard
23755 \begin_inset space ~
23759 \begin_inset CommandInset ref
23761 reference "fig:cap-beside-fig"
23766 \begin_inset space ~
23770 \begin_inset CommandInset ref
23772 reference "tab:cap-beside-tab"
23776 are examples where the caption is set beside.
23779 \begin_layout Standard
23780 You can see in the examples that the caption text appears at the top of
23781 the floats for table floats and at the bottom for figure floats.
23782 To change this, you can use the command
23785 \begin_layout Standard
23790 sidecaptionvpos{float type}{placement}
23793 \begin_layout Standard
23794 in the document preamble or in TeX-Code before the float.
23795 The float type is either
23803 , the placement can be
23804 \begin_inset Quotes eld
23812 \begin_inset Quotes erd
23816 \begin_inset Quotes eld
23824 \begin_inset Quotes erd
23828 \begin_inset Quotes eld
23836 \begin_inset Quotes erd
23840 To have for example the caption of figure floats vertically centered, use
23844 \begin_layout Standard
23849 sidecaptionvpos{figure}{c}
23852 \begin_layout Standard
23853 This was used for Figure
23854 \begin_inset space ~
23858 \begin_inset CommandInset ref
23860 reference "fig:cap-beside-fig-2"
23867 \begin_layout Standard
23868 \begin_inset VSpace medskip
23871 For more information about the package
23875 we refer to its documentation
23876 \begin_inset CommandInset citation
23885 \begin_layout Standard
23886 \begin_inset Note Greyedout
23889 \begin_layout Plain Layout
23899 \begin_inset Index idx
23902 \begin_layout Plain Layout
23903 LaTeX-packages ! hypcap
23908 , described in section
23909 \begin_inset space ~
23913 \begin_inset CommandInset ref
23915 reference "sub:Reference-Position"
23919 , has no effect on floats with the caption set beside.
23927 \begin_layout Standard
23931 \begin_layout Plain Layout
23943 \begin_layout Standard
23944 \begin_inset Float figure
23949 \begin_layout Plain Layout
23950 \begin_inset Graphics
23951 filename clipart/escher-lsd.eps
23953 scaleBeforeRotation
23960 \begin_layout Plain Layout
23961 \begin_inset Caption
23963 \begin_layout Plain Layout
23964 \begin_inset CommandInset label
23966 name "fig:cap-beside-fig"
23970 This is a caption beside a figure.
23983 \begin_layout Standard
23987 \begin_layout Plain Layout
23999 \begin_layout Standard
24000 \begin_inset Float table
24005 \begin_layout Plain Layout
24006 \begin_inset Caption
24008 \begin_layout Plain Layout
24009 \begin_inset CommandInset label
24011 name "tab:cap-beside-tab"
24015 This is a caption beside a table.
24023 \begin_layout Plain Layout
24024 \begin_inset Tabular
24025 <lyxtabular version="3" rows="4" columns="5">
24026 <features tabularvalignment="middle">
24027 <column alignment="center" valignment="top" width="0">
24028 <column alignment="center" valignment="top" width="0">
24029 <column alignment="center" valignment="top" width="0">
24030 <column alignment="center" valignment="top" width="0">
24031 <column alignment="center" valignment="top" width="0">
24033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24036 \begin_layout Plain Layout
24042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24045 \begin_layout Plain Layout
24051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24054 \begin_layout Plain Layout
24060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24063 \begin_layout Plain Layout
24069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24072 \begin_layout Plain Layout
24080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24083 \begin_layout Plain Layout
24089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24092 \begin_layout Plain Layout
24098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24101 \begin_layout Plain Layout
24107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24110 \begin_layout Plain Layout
24116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24119 \begin_layout Plain Layout
24127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24130 \begin_layout Plain Layout
24136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24139 \begin_layout Plain Layout
24145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24148 \begin_layout Plain Layout
24154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24157 \begin_layout Plain Layout
24163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24166 \begin_layout Plain Layout
24174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24177 \begin_layout Plain Layout
24183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24186 \begin_layout Plain Layout
24192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24195 \begin_layout Plain Layout
24201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24204 \begin_layout Plain Layout
24210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24213 \begin_layout Plain Layout
24232 \begin_layout Standard
24236 \begin_layout Plain Layout
24248 \begin_layout Standard
24252 \begin_layout Plain Layout
24256 sidecaptionvpos{figure}{c}
24262 \begin_inset Float figure
24267 \begin_layout Plain Layout
24268 \begin_inset Graphics
24269 filename clipart/escher-lsd.eps
24271 scaleBeforeRotation
24278 \begin_layout Plain Layout
24279 \begin_inset Caption
24281 \begin_layout Plain Layout
24282 \begin_inset CommandInset label
24284 name "fig:cap-beside-fig-2"
24288 This is a vertically centered caption beside a figure.
24301 \begin_layout Standard
24305 \begin_layout Plain Layout
24317 \begin_layout Standard
24321 \begin_layout Plain Layout
24331 \begin_inset Note Note
24334 \begin_layout Plain Layout
24335 The following will be displayed when the LaTeX-package
24347 \begin_layout Standard
24348 You need to install the LaTeX-package
24352 to see the following part of this section in the output.
24355 \begin_layout Standard
24359 \begin_layout Plain Layout
24371 \begin_layout Section
24373 \begin_inset Index idx
24376 \begin_layout Plain Layout
24377 Floats ! Float Lists
24385 \begin_layout Standard
24386 Similar to the table of contents where the sections of the document are
24387 listed, there are listings for all float types, like the figures of the
24389 You can insert them via the
24391 Insert\SpecialChar \menuseparator
24393 \begin_inset space ~
24397 \begin_inset space ~
24405 \begin_layout Standard
24406 The list entries are the float captions or its short title, the float number,
24407 and the page number where they appear in the document.
24410 \begin_layout Standard
24411 You can find the list of figures and tables at the end of this document.
24414 \begin_layout Chapter
24418 \begin_layout Section
24420 \begin_inset Index idx
24423 \begin_layout Plain Layout
24432 \begin_layout Standard
24433 Notes are inserted with the toolbar button
24434 \begin_inset Graphics
24435 filename ../images/note-insert.png
24437 scaleBeforeRotation
24443 Insert\SpecialChar \menuseparator
24447 There are three types of notes:
24450 \begin_layout Description
24452 \begin_inset space ~
24455 Note This note type is for internal notes that won't appear in the output.
24456 Its note-box looks like this:
24457 \begin_inset Newline newline
24461 \begin_inset Newline newline
24465 \begin_inset Graphics
24466 filename clipart/LyXNoteImageQt4.png
24469 scaleBeforeRotation
24474 \begin_inset Note Note
24477 \begin_layout Plain Layout
24478 This is text in a note box that doesn't appear in the output.
24486 \begin_layout Description
24487 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24488 ent, when you export the document to LaTeX via the menu
24490 File\SpecialChar \menuseparator
24491 Export\SpecialChar \menuseparator
24492 LaTeX (pdflatex) / (plain)
24495 Its note-box looks like this:
24496 \begin_inset Newline newline
24500 \begin_inset Newline newline
24504 \begin_inset Graphics
24505 filename clipart/CommentNoteImageQt4.png
24508 scaleBeforeRotation
24513 \begin_inset Note Comment
24516 \begin_layout Plain Layout
24517 This is text in a note box that only appears as comment in LaTeX-files.
24525 \begin_layout Description
24527 \begin_inset space ~
24530 Out This note will appear in the output as grey text.
24531 Its note-box looks like this:
24532 \begin_inset Newline newline
24536 \begin_inset Newline newline
24540 \begin_inset Graphics
24541 filename clipart/GreyedOutNoteImageQt4.png
24544 scaleBeforeRotation
24549 \begin_inset Newline newline
24556 \begin_layout Plain Layout
24560 renewenvironment{lyxgreyedout}
24563 \begin_layout Plain Layout
24567 textcolor[gray]{0.8}
24577 \begin_inset Note Greyedout
24580 \begin_layout Plain Layout
24585 \begin_layout Plain Layout
24586 This is an example footnote within a greyed out note.
24591 of a comment that appears in the output as grey text.
24600 \begin_layout Plain Layout
24604 renewenvironment{lyxgreyedout}
24607 \begin_layout Plain Layout
24621 \begin_inset Note Note
24624 \begin_layout Plain Layout
24625 The greyed out note is here redefined to show it with the original LyX definitio
24626 n because greyed out notes are redefined in the preamble of this document,
24627 as described below, to have blue text.
24633 \begin_inset Newline newline
24637 \begin_inset Newline newline
24640 As you can see in the example, the first line of greyed out notes is a bit
24641 indented and greyed out notes can have footnotes.
24644 \begin_layout Standard
24645 \begin_inset VSpace bigskip
24648 When you use the toolbar button
24649 \begin_inset Graphics
24650 filename ../images/note-insert.png
24652 scaleBeforeRotation
24659 \begin_inset space ~
24665 You can switch between the five note types by right-clicking on the note-box.
24670 If you want to turn existing text into a note, mark it and click on the
24684 To change a note to text, press the backspace key when the cursor is in
24685 the first position of a note, or press the delete key when the cursor is
24686 in the very last position of the note, respectively.
24689 \begin_layout Standard
24690 \begin_inset VSpace bigskip
24693 You can change the text color of the greyed out notes in the preamble with
24694 the following command:
24697 \begin_layout Standard
24702 renewenvironment{lyxgreyedout}
24703 \begin_inset Newline newline
24707 \begin_inset Phantom HPhantom
24710 \begin_layout Plain Layout
24713 \begin_inset space ~
24730 \begin_layout Standard
24731 The available colors and the method to define colors is explained in section
24732 \begin_inset space ~
24736 \begin_inset CommandInset ref
24738 reference "sec:Colored-Tables"
24745 \begin_layout Standard
24746 Notes that appear in blue in this document are set using greyed out notes
24750 \begin_layout Section
24752 \begin_inset CommandInset label
24754 name "sec:Footnotes"
24759 \begin_inset Index idx
24762 \begin_layout Plain Layout
24769 \begin_inset Index idx
24772 \begin_layout Plain Layout
24781 \begin_layout Standard
24782 Footnotes can be inserted using the toolbar button
24783 \begin_inset Graphics
24784 filename ../images/footnote-insert.png
24786 scaleBeforeRotation
24792 Insert\SpecialChar \menuseparator
24804 then the following footnote-box:
24805 \begin_inset Graphics
24806 filename clipart/footnoteQt4.png
24808 scaleBeforeRotation
24816 where you can enter the footnote text.
24817 If you want to turn existing text into a footnote, mark it and click on
24839 to text, press the Backspace key when the cursor is in the first position
24848 , or press the Delete key when the cursor is in the very last position of
24860 \begin_layout Standard
24861 Here is an example footnote:
24869 \begin_layout Plain Layout
24870 \begin_inset CommandInset label
24872 name "foot:This-is-an"
24876 This is an example footnote.
24889 \begin_layout Plain Layout
24893 newcounter{MyRepeatFoot}
24896 \begin_layout Plain Layout
24900 setcounter{MyRepeatFoot}{
24910 \begin_layout Standard
24911 The footnote will appear in the output as a superscript number at the text
24912 position where the footnote box is placed.
24913 The footnote text is placed at the bottom of the current page.
24914 The footnote number is calculated by LaTeX; the numbers are consecutive.
24915 It depends on your document-class, whether the footnote number is reset
24919 \begin_layout Standard
24920 Footnotes can be referenced like floats: Insert a label into the footnote
24921 and cross-reference this label in the text as described in section
24922 \begin_inset space ~
24926 \begin_inset CommandInset ref
24928 reference "sec:Referencing-Floats"
24933 \begin_inset Newline newline
24936 This is a cross-reference of Footnote
24937 \begin_inset space ~
24941 \begin_inset CommandInset ref
24943 reference "foot:This-is-an"
24950 \begin_layout Standard
24951 \begin_inset VSpace defskip
24954 Footnotes in tables are not printed by LaTeX due to technical reasons.
24955 However there exists another method to print them: Instead of the footnote
24962 is inserted as TeX-code.
24963 The text of the footnote is entered as an argument of the TeX-code command
24971 \begin_inset Newline newline
24974 This was done for the following table with the command
24977 \begin_layout Standard
24984 Printed table footnote.
24989 \begin_layout Standard
24990 \begin_inset Tabular
24991 <lyxtabular version="3" rows="2" columns="1">
24992 <features tabularvalignment="middle">
24993 <column alignment="center" valignment="top" width="0">
24995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24998 \begin_layout Plain Layout
24999 This an example text.
25003 \begin_layout Plain Layout
25004 This footnote will not be printed!
25016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25019 \begin_layout Plain Layout
25020 This an example text.
25024 \begin_layout Plain Layout
25047 \begin_layout Plain Layout
25056 Printed table footnote.
25060 \begin_layout Plain Layout
25070 \begin_layout Standard
25071 Footnotes in longtables are described in section
25072 \begin_inset space ~
25076 \begin_inset CommandInset ref
25078 reference "sub:Footnotes-in-Longtables"
25085 \begin_layout Standard
25086 Footnotes in minipage boxes are printed, but inside the box and with a different
25087 numbering because a minipage box is like a page inside a page.
25088 (For more about minipages, see section
25089 \begin_inset space ~
25093 \begin_inset CommandInset ref
25095 reference "sec:Minipages"
25099 .) To get a footnote in the minipage that is output at the bottom of the
25100 page like normal footnotes, also use the method of
25115 \begin_layout Standard
25116 \begin_inset Box Frameless
25126 height_special "totalheight"
25129 \begin_layout Plain Layout
25130 This an example text in a minipage.
25134 \begin_layout Plain Layout
25135 Footnote in the minipage.
25143 \begin_layout Plain Layout
25144 This an example text in a minipage.
25148 \begin_layout Plain Layout
25165 \begin_layout Standard
25169 \begin_layout Plain Layout
25178 Footnote outside the minipage.
25182 \begin_layout Plain Layout
25192 \begin_layout Standard
25193 \begin_inset VSpace defskip
25199 \begin_layout Standard
25200 To refer to the same footnote several times without printing the footnote
25201 text every time, use the command
25205 footnotemark[number]
25208 \begin_inset Newline newline
25211 As you do not know the number of the repeating footnote while you are writing
25212 the text, you have to store its number.
25213 For the following footnote mark example, these commands were inserted in
25214 TeX-code after Footnote
25215 \begin_inset space ~
25219 \begin_inset CommandInset ref
25221 reference "foot:This-is-an"
25225 to store the footnote number:
25228 \begin_layout Standard
25233 newcounter{MyRepeatFoot}
25234 \begin_inset Newline newline
25239 setcounter{MyRepeatFoot}{
25244 \begin_layout Standard
25245 The footnote mark was then created with this command:
25248 \begin_layout Standard
25258 \begin_layout Standard
25259 Here is a repeated footnote:
25267 \begin_layout Plain Layout
25281 \begin_layout Standard
25282 If you want to repeat the previous footnote, you can omit the storage of
25283 the footnote number and just use this command instead:
25286 \begin_layout Standard
25296 \begin_layout Standard
25297 Here is another repeated footnote:
25305 \begin_layout Plain Layout
25319 \begin_layout Subsection
25321 \begin_inset CommandInset label
25323 name "sub:Footnote-Numbering"
25328 \begin_inset Index idx
25331 \begin_layout Plain Layout
25332 Footnotes ! Numbering
25340 \begin_layout Standard
25341 To reset the footnote number back to 1 after each section
25343 , add this command to your document preamble:
25346 \begin_layout Standard
25351 @addtoreset{footnote}{section}
25354 \begin_layout Standard
25355 \begin_inset VSpace bigskip
25358 The following preamble command changes the footnote numbering style to small
25362 \begin_layout Standard
25374 \begin_layout Standard
25378 \begin_layout Plain Layout
25391 This is a footnote with roman numbering:
25395 \begin_layout Plain Layout
25396 This is an example footnote with roman numbering.
25404 \begin_layout Standard
25405 To change the numbering style to capital roman numerals replace in the command
25420 \begin_inset Quotes eld
25424 \begin_inset Quotes erd
25427 footnotes with capital or small Latin letters use
25441 \begin_inset Quotes eld
25445 \begin_inset Quotes erd
25448 footnotes with symbols use
25457 \begin_layout Standard
25458 \begin_inset Note Greyedout
25461 \begin_layout Plain Layout
25466 You can only number 26 footnotes with Latin letters, because this numbering
25467 is limited to single letters.
25473 \begin_inset Newline newline
25477 \begin_inset Note Greyedout
25480 \begin_layout Plain Layout
25485 You can only number 9 footnotes with symbols.
25493 \begin_layout Standard
25494 To return to the default numbering style after you have changed to another
25507 in the command above.
25511 \begin_layout Plain Layout
25527 \begin_layout Standard
25528 \begin_inset VSpace bigskip
25534 \begin_layout Standard
25535 If you want to have footnotes numbered in the scheme
25536 \begin_inset Quotes eld
25540 \begin_inset Quotes erd
25543 , add the following command to your document preamble:
25546 \begin_layout Standard
25551 numberwithin{footnote}{chapter}
25554 \begin_layout Standard
25555 To be able to use the command
25564 \begin_inset space ~
25569 in the document settings the option
25572 \begin_inset space ~
25576 \begin_inset space ~
25580 \begin_inset space ~
25588 \begin_layout Standard
25592 \begin_layout Plain Layout
25596 numberwithin{footnote}{chapter}
25601 This is another example footnote:
25607 \begin_layout Plain Layout
25608 This is a footnote numbered in the scheme
25609 \begin_inset Quotes eld
25613 \begin_inset Quotes erd
25627 \begin_layout Plain Layout
25643 \begin_layout Standard
25644 \begin_inset Note Greyedout
25647 \begin_layout Plain Layout
25658 always prints out the footnote number as arabic number; previous redefinitions
25659 to get non-arabic numbers are overwritten.
25667 \begin_layout Standard
25668 So to get for example the scheme
25669 \begin_inset Quotes eld
25675 \begin_inset Quotes erd
25678 , use this command instead of
25687 \begin_layout Standard
25701 \begin_layout Subsection
25703 \begin_inset Index idx
25706 \begin_layout Plain Layout
25707 Footnotes ! Placement
25715 \begin_layout Standard
25716 If you have several footnotes in one page, they appear without vertical
25717 space between them at the bottom of the page.
25718 To make them more readable you can e.
25719 \begin_inset space \thinspace{}
25723 \begin_inset space \space{}
25727 \begin_inset space \thinspace{}
25730 mm space with the following preamble command:
25733 \begin_layout Standard
25743 \begin_inset Newline newline
25757 \begin_layout Standard
25758 \begin_inset VSpace bigskip
25761 In a two-column document the footnotes appear at the bottom of every column,
25763 \begin_inset space ~
25767 \begin_inset CommandInset ref
25769 reference "fig:Standard-footnote-placement"
25774 If the footnotes should only appear at the bottom of the right column,
25776 \begin_inset space ~
25780 \begin_inset CommandInset ref
25782 reference "fig:Footnote-placement-in"
25786 , use the LaTeX-package
25791 \begin_inset Index idx
25794 \begin_layout Plain Layout
25795 LaTeX-packages ! ftnright
25800 with this command in the document preamble:
25803 \begin_layout Standard
25808 usepackage{ftnright}
25811 \begin_layout Standard
25812 \begin_inset Float figure
25818 \begin_layout Plain Layout
25822 \begin_layout Plain Layout
25832 \begin_inset Graphics
25833 filename clipart/without_fntright.pdf
25835 scaleBeforeRotation
25843 \begin_layout Plain Layout
25853 \begin_layout Plain Layout
25854 \begin_inset Caption
25856 \begin_layout Plain Layout
25857 \begin_inset CommandInset label
25859 name "fig:Standard-footnote-placement"
25863 Standard footnote placement in two-column documents.
25876 \begin_layout Standard
25877 \begin_inset Float figure
25883 \begin_layout Plain Layout
25887 \begin_layout Plain Layout
25897 \begin_inset Graphics
25898 filename clipart/with_fntright.pdf
25900 scaleBeforeRotation
25908 \begin_layout Plain Layout
25918 \begin_layout Plain Layout
25919 \begin_inset Caption
25921 \begin_layout Plain Layout
25922 \begin_inset CommandInset label
25924 name "fig:Footnote-placement-in"
25928 Footnote placement in two-column documents when the LaTeX-package
25945 \begin_layout Standard
25946 \begin_inset VSpace bigskip
25949 In some scientific literature it is usual to collect the footnotes and print
25950 them in a separate paragraph at the end of a section, as in Figure
25951 \begin_inset space ~
25955 \begin_inset CommandInset ref
25957 reference "fig:Endnotes"
25962 They are then called
25963 \begin_inset Quotes eld
25967 \begin_inset Quotes erd
25971 \begin_inset Index idx
25974 \begin_layout Plain Layout
25980 To use endnotes instead of footnotes in your document, load in the menu
25983 Document\SpecialChar \menuseparator
25984 Settings\SpecialChar \menuseparator
25990 \begin_inset space ~
25994 \begin_inset space ~
26000 To insert the collected footnotes, insert the command
26003 \begin_layout Standard
26011 \begin_layout Standard
26012 in TeX-Code at the end of a section or chapter.
26015 \begin_layout Standard
26016 \begin_inset Float figure
26021 \begin_layout Plain Layout
26026 \begin_layout Plain Layout
26036 \begin_inset Graphics
26037 filename clipart/endnotes.pdf
26038 scaleBeforeRotation
26046 \begin_layout Plain Layout
26056 \begin_layout Plain Layout
26057 \begin_inset Caption
26059 \begin_layout Plain Layout
26060 \begin_inset CommandInset label
26062 name "fig:Endnotes"
26066 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26080 \begin_layout Standard
26081 \begin_inset VSpace medskip
26084 The paragraph heading for the endnotes isn't automatically translated into
26085 the document language, this must be done manually.
26086 The following preamble command translates the default English
26087 \begin_inset Quotes eld
26091 \begin_inset Quotes erd
26095 \begin_inset Quotes eld
26099 \begin_inset Quotes erd
26105 \begin_layout Standard
26112 notesname}{Anmerkungen}
26115 \begin_layout Standard
26116 \begin_inset VSpace medskip
26119 The numbering of endnotes can be changed like the footnote numbering as
26120 described in section
26121 \begin_inset space ~
26125 \begin_inset CommandInset ref
26127 reference "sub:Footnote-Numbering"
26131 ; just replace the command
26144 To reset the endnote number use the command
26150 as described in section
26151 \begin_inset space ~
26155 \begin_inset CommandInset ref
26157 reference "sub:Footnote-Numbering"
26161 and replace the command parameter
26172 \begin_layout Standard
26173 For endnotes there is the command
26177 endnotemark[number]
26179 similar to the command
26185 , that is described in section
26186 \begin_inset space ~
26190 \begin_inset CommandInset ref
26192 reference "sec:Footnotes"
26199 \begin_layout Standard
26200 \begin_inset VSpace bigskip
26203 Footnotes can also be placed in the page margin and the footnote text alignment
26204 can be changed, see the LaTeX-package
26209 \begin_inset Index idx
26212 \begin_layout Plain Layout
26213 LaTeX-packages ! footmisc
26219 \begin_inset CommandInset citation
26225 for more information about this.
26228 \begin_layout Standard
26229 For various further footnote formatting issues have a look at LaTeX-books,
26231 \begin_inset CommandInset citation
26233 key "latexcompanion,latexguide,latexbook"
26240 \begin_layout Section
26242 \begin_inset Index idx
26245 \begin_layout Plain Layout
26246 Notes ! Margin Notes
26254 \begin_layout Standard
26255 Margin notes look and behave in LyX like footnotes.
26256 They are inserted via the menu
26258 Insert\SpecialChar \menuseparator
26260 \begin_inset space ~
26265 or the toolbar button
26266 \begin_inset Graphics
26267 filename ../images/marginalnote-insert.png
26269 scaleBeforeRotation
26284 \begin_inset Quotes eld
26288 \begin_inset Quotes erd
26291 appears where you can enter the text of the margin note.
26294 \begin_layout Standard
26295 At the side is an example margin note.
26300 \begin_inset Marginal
26303 \begin_layout Plain Layout
26304 This is a margin note.
26312 \begin_layout Standard
26313 Margin notes appear at the right side in single-sided documents.
26314 In double-sided documents they appear in the outer margin – left on even
26315 pages, right on odd pages.
26316 The text of margin notes is aligned opposite to the outer margin – right-aligne
26317 d when the note appears in the left margin.
26318 The first line of the margin note is placed at the position of the text
26319 line where it is inserted in the document.
26322 \begin_layout Standard
26323 \begin_inset VSpace bigskip
26326 To place the margin note in the inner margin, add the command
26329 \begin_layout Standard
26337 \begin_layout Standard
26338 in TeX-Code before a margin note.
26339 The new placement is valid for all subsequent margin notes.
26344 \begin_layout Plain Layout
26354 \begin_inset Marginal
26357 \begin_layout Plain Layout
26358 This is a margin note in the inner margin.
26366 \begin_inset Newline newline
26372 \begin_inset Note Greyedout
26375 \begin_layout Plain Layout
26380 There is often not enough space in the inner margin so that the notes are
26381 not correctly displayed in the output.
26389 \begin_layout Standard
26390 To return to the default placement insert the command
26393 \begin_layout Standard
26401 \begin_layout Standard
26406 \begin_layout Plain Layout
26416 \begin_inset Note Greyedout
26419 \begin_layout Plain Layout
26424 The command is ignored when it is within a paragraph where also the command
26439 \begin_layout Standard
26440 \begin_inset VSpace bigskip
26447 \begin_inset Marginal
26450 \begin_layout Plain Layout
26451 AVeryLongMarginParWord that isn't hyphenated.
26459 Similar to the case described in section
26460 \begin_inset space ~
26464 \begin_inset CommandInset ref
26466 reference "sub:Multiple-Lines-in"
26470 , long words cannot be hyphenated when they are the first word in a margin
26472 To avoid this, insert 0
26473 \begin_inset space \thinspace{}
26476 pt horizontal space before the word
26481 \begin_inset Marginal
26484 \begin_layout Plain Layout
26485 \begin_inset space \hspace*{}
26489 AVeryLongMarginParWord that is hyphenated.
26497 \begin_layout Standard
26498 \begin_inset VSpace bigskip
26504 \begin_layout Standard
26505 \begin_inset Note Greyedout
26508 \begin_layout Plain Layout
26513 Margin notes can normally not be used inside tables, floats, and footnotes.
26521 \begin_layout Standard
26522 \begin_inset VSpace bigskip
26528 \begin_layout Standard
26532 \begin_layout Plain Layout
26542 \begin_inset Note Note
26545 \begin_layout Plain Layout
26546 The following section will only be displayed when the LaTeX-package
26558 \begin_layout Standard
26559 This restriction can be evaded by using the LaTeX-package
26564 \begin_inset Index idx
26567 \begin_layout Plain Layout
26568 LaTeX-packages ! marginnote
26574 By adding these two lines to your document preamble, the command used by
26575 LyX for margin notes is redefined to use the command provided by the
26582 \begin_layout Standard
26587 usepackage{marginnote}
26588 \begin_inset Newline newline
26600 \begin_layout Standard
26601 This is also used in this document because
26605 has another useful feature: You can set a vertical offset for the note.
26606 This is often needed when too many margin notes are too close together
26607 or for a better page layout.
26608 The offset is set in LyX as TeX-Code directly after the margin note in
26612 \begin_layout Standard
26618 \begin_layout Standard
26619 where the offset is a length with one of the units listed in Table
26620 \begin_inset space ~
26624 \begin_inset CommandInset ref
26626 reference "tab:Units"
26631 A negative value shifts the note up, a positive value shifts it down.
26635 For example the margin note beside this text line is shifted up 1.5
26636 \begin_inset space \thinspace{}
26639 cm with the TeX-Code-command
26640 \begin_inset Quotes eld
26650 \begin_inset Quotes erd
26654 \begin_inset Marginal
26657 \begin_layout Plain Layout
26658 This margin note is shifted up 1.5
26659 \begin_inset space \thinspace{}
26662 cm from its original position.
26674 \begin_layout Plain Layout
26684 \begin_layout Standard
26685 \begin_inset VSpace medskip
26692 you can also change the alignment of the text in the margin note.
26693 For example the commands
26696 \begin_layout Standard
26703 raggedleftmarginnote}{
26706 \begin_inset Newline newline
26713 raggedrightmarginnote}{
26718 \begin_layout Standard
26719 set the alignment to centered.
26724 raggedleftmarginnote
26726 denotes margin notes that appear at the left side.
26733 \begin_layout Plain Layout
26739 raggedleftmarginnote}{
26744 \begin_layout Plain Layout
26750 raggedrightmarginnote}{
26758 \begin_inset Marginal
26761 \begin_layout Plain Layout
26762 The text of this margin note is centered.
26773 \begin_layout Standard
26780 raggedleftmarginnote}{
26783 \begin_inset Newline newline
26790 raggedrightmarginnote}{
26799 \begin_layout Plain Layout
26805 raggedleftmarginnote}{
26810 \begin_layout Plain Layout
26816 raggedrightmarginnote}{
26826 \begin_layout Standard
26827 \begin_inset VSpace medskip
26830 For the other features of
26834 refer to its documentation
26835 \begin_inset CommandInset citation
26844 \begin_layout Standard
26845 \begin_inset VSpace bigskip
26848 You can adjust the layout of margin notes by changing its definition.
26849 To create for example a header for all margin notes with the underlined,
26850 sans-serif, and bold header text
26851 \begin_inset Quotes eld
26863 \begin_inset Quotes erd
26866 , add this to your document preamble:
26869 \begin_layout Standard
26879 \begin_inset Newline newline
26889 \begin_inset Newline newline
26893 \begin_inset Phantom HPhantom
26896 \begin_layout Plain Layout
26899 \begin_inset space ~
26915 underbar{Attention!}}}%
26916 \begin_inset Newline newline
26920 \begin_inset Phantom HPhantom
26923 \begin_layout Plain Layout
26926 \begin_inset space ~
26943 \begin_layout Standard
26950 \begin_layout Plain Layout
26961 \begin_layout Plain Layout
26972 \begin_layout Plain Layout
26980 underbar{Attention!}}}%
26983 \begin_layout Plain Layout
26997 \begin_inset Marginal
27000 \begin_layout Plain Layout
27001 This is a margin note with a defined heading.
27013 \begin_layout Plain Layout
27027 \begin_layout Plain Layout
27044 \begin_inset Note Note
27047 \begin_layout Plain Layout
27048 The margin note format is changed only for this example.
27056 \begin_layout Standard
27060 \begin_layout Plain Layout
27070 \begin_inset Note Note
27073 \begin_layout Plain Layout
27074 The following will be displayed when the LaTeX-package
27086 \begin_layout Standard
27087 You need to install the LaTeX-package
27091 to see the following part of this section in the output.
27094 \begin_layout Standard
27098 \begin_layout Plain Layout
27110 \begin_layout Chapter
27114 \begin_layout Section
27116 \begin_inset Index idx
27119 \begin_layout Plain Layout
27120 Boxes ! Introduction
27128 \begin_layout Standard
27129 Boxes are used to format a block of text.
27130 Boxes can be used to write documents with multiple languages, see section
27131 \begin_inset space ~
27135 \begin_inset CommandInset ref
27137 reference "sec:Minipages"
27141 , to frame texts, see section
27142 \begin_inset space ~
27146 \begin_inset CommandInset ref
27148 reference "sec:Decoration"
27152 , to prevent words from being hyphenated, see section
27153 \begin_inset space ~
27157 \begin_inset CommandInset ref
27159 reference "sec:Prevent-Hyphenation"
27163 , to align text, see section
27164 \begin_inset space ~
27168 \begin_inset CommandInset ref
27170 reference "sub:Vertical-Alignment"
27174 , or to set the background color of texts, see section
27175 \begin_inset space ~
27179 \begin_inset CommandInset ref
27181 reference "sec:Colored-Boxes"
27188 \begin_layout Standard
27189 Boxes can be inserted with the menu
27191 Insert\SpecialChar \menuseparator
27194 or the toolbar button
27195 \begin_inset Graphics
27196 filename ../images/box-insert.png
27198 scaleBeforeRotation
27203 A grey box with the label
27208 \begin_inset Graphics
27209 filename clipart/BoxInsetDefaultQt4.png
27211 scaleBeforeRotation
27216 The box type can be specified by right-clicking on the box and selecting
27222 The box dialog offers the
27225 \begin_inset space ~
27247 is the default for new boxes and is explained in section
27248 \begin_inset space ~
27252 \begin_inset CommandInset ref
27254 reference "sec:Minipages"
27262 is described in section
27263 \begin_inset space ~
27267 \begin_inset CommandInset ref
27269 reference "sec:Parboxes"
27278 \begin_inset CommandInset ref
27280 reference "sec:Prevent-Hyphenation"
27287 \begin_layout Standard
27288 Boxes are not numbered and can therefore not be referenced like floats or
27292 \begin_layout Standard
27293 \begin_inset Note Greyedout
27296 \begin_layout Plain Layout
27301 Boxes must not be the item in an
27317 \begin_layout Standard
27318 \begin_inset Note Greyedout
27321 \begin_layout Plain Layout
27326 For an unknown reason you can only set the
27329 \begin_inset space ~
27338 when you use a framed box.
27342 \begin_inset space ~
27347 type and without frames are explained in section
27348 \begin_inset space ~
27352 \begin_inset CommandInset ref
27354 reference "sec:Prevent-Hyphenation"
27366 \begin_layout Section
27368 \begin_inset CommandInset label
27370 name "sec:Box-Dialog"
27375 \begin_inset Index idx
27378 \begin_layout Plain Layout
27387 \begin_layout Subsection
27389 \begin_inset Index idx
27392 \begin_layout Plain Layout
27401 \begin_layout Standard
27402 In the box dialog you can adjust the box geometry in the fields
27411 The available units for the geometry are explained in Table
27412 \begin_inset space ~
27416 \begin_inset CommandInset ref
27418 reference "tab:Units"
27427 offers the following additional sizes:
27430 \begin_layout Description
27431 Depth This is the plain text
27432 \begin_inset Quotes eld
27436 \begin_inset Quotes erd
27440 It ignores the total depth when there are multiple text lines in the box:
27441 \begin_inset Newline newline
27445 \begin_inset Newline newline
27449 \begin_inset Newline newline
27453 \begin_inset Box Boxed
27463 height_special "depth"
27466 \begin_layout Plain Layout
27468 Box height set to 1
27469 \begin_inset space \thinspace{}
27478 \begin_inset Newline newline
27482 \begin_inset Newline newline
27488 \begin_layout Description
27489 Height This is the height of the text that is inside the box.
27491 \begin_inset space \thinspace{}
27495 \begin_inset space \space{}
27498 2 for this size will set the box height to 2
27499 \begin_inset space ~
27502 times the text height:
27503 \begin_inset Box Boxed
27513 height_special "height"
27516 \begin_layout Plain Layout
27518 Box height set to 2
27519 \begin_inset space \thinspace{}
27530 \begin_layout Description
27532 \begin_inset space ~
27535 Height This is the Height
27536 \begin_inset space \thinspace{}
27540 \begin_inset space \thinspace{}
27544 \begin_inset Box Boxed
27554 height_special "totalheight"
27557 \begin_layout Plain Layout
27559 Box height set to 1
27560 \begin_inset space \thinspace{}
27564 \begin_inset space ~
27575 \begin_layout Description
27576 Width This sets the width of the box as height:
27577 \begin_inset Box Boxed
27587 height_special "width"
27590 \begin_layout Plain Layout
27592 Box height set to 1
27593 \begin_inset space \thinspace{}
27604 \begin_layout Subsection
27606 \begin_inset Index idx
27609 \begin_layout Plain Layout
27618 \begin_layout Standard
27619 When you have chosen an
27622 \begin_inset space ~
27627 , the vertical box alignment can be:
27630 \begin_layout Description
27631 Top This is an example text line.
27633 \begin_inset Box Boxed
27643 height_special "totalheight"
27646 \begin_layout Plain Layout
27648 This box is top-aligned.
27653 This is an example text line.
27656 \begin_layout Description
27657 Middle This is an example text line.
27659 \begin_inset Box Boxed
27669 height_special "totalheight"
27672 \begin_layout Plain Layout
27674 This box is middle-aligned.
27679 This is an example text line.
27682 \begin_layout Description
27683 Bottom This is an example text line.
27685 \begin_inset Box Boxed
27695 height_special "totalheight"
27698 \begin_layout Plain Layout
27700 This box is bottom-aligned.
27705 This is an example text line.
27708 \begin_layout Standard
27709 \begin_inset Note Greyedout
27712 \begin_layout Plain Layout
27717 The vertical box alignment can be lost in the output when you have two
27718 boxes in a line and one has e.
27719 \begin_inset space \thinspace{}
27723 \begin_inset space \space{}
27726 a shadow and the other one not.
27734 \begin_layout Standard
27735 The horizontal box alignment can be set via LyX's paragraph dialog when
27736 you set the box into its own paragraph.
27739 \begin_layout Standard
27740 \begin_inset VSpace bigskip
27743 When you have chosen an
27746 \begin_inset space ~
27751 , the box content can be aligned vertically to:
27754 \begin_layout Description
27755 top This is an example text line.
27757 \begin_inset Box Boxed
27767 height_special "totalheight"
27770 \begin_layout Plain Layout
27772 This box text is top-aligned.
27777 This is an example text line.
27780 \begin_layout Description
27781 middle This is an example text line.
27783 \begin_inset Box Boxed
27793 height_special "totalheight"
27796 \begin_layout Plain Layout
27798 This box text is middle-aligned.
27803 This is an example text line.
27806 \begin_layout Description
27807 bottom This is an example text line.
27809 \begin_inset Box Boxed
27819 height_special "totalheight"
27822 \begin_layout Plain Layout
27824 This box text is bottom-aligned.
27829 This is an example text line.
27832 \begin_layout Description
27833 stretch This is an example text line.
27835 \begin_inset Box Boxed
27845 height_special "totalheight"
27848 \begin_layout Plain Layout
27853 \begin_layout Plain Layout
27858 \begin_layout Plain Layout
27865 This is an example text line.
27868 \begin_layout Standard
27869 To stretch the box content, it must consist of more than one paragraph.
27870 In the example above every text line is in an own paragraph.
27873 \begin_layout Standard
27874 \begin_inset VSpace bigskip
27877 To align the box content horizontally you can use LyX's paragraph dialog
27878 when you have chosen an
27881 \begin_inset space ~
27889 \begin_layout Standard
27891 \begin_inset Box Boxed
27901 height_special "totalheight"
27904 \begin_layout Plain Layout
27909 \begin_layout Plain Layout
27914 \begin_layout Plain Layout
27924 \begin_layout Standard
27925 If you have not set an
27928 \begin_inset space ~
27933 , you can align the box content horizontally in the box dialog.
27936 \begin_layout Standard
27938 \begin_inset Box Boxed
27948 height_special "totalheight"
27951 \begin_layout Plain Layout
27953 This box text is horizontally stretched.
27961 \begin_layout Subsection
27963 \begin_inset CommandInset label
27965 name "sec:Decoration"
27970 \begin_inset Index idx
27973 \begin_layout Plain Layout
27982 \begin_layout Standard
27983 The type of the box can be specified in the box dialog in the drop-down
27989 The following types are possible:
27992 \begin_layout Description
27994 \begin_inset space ~
27997 frame Nothing is drawn.
28000 \begin_layout Description
28002 \begin_inset space ~
28006 \begin_inset space ~
28009 frame This draws a rectangular frame around the box.
28010 The frame line thickness has the size of
28018 \begin_inset Box Boxed
28028 height_special "totalheight"
28031 \begin_layout Plain Layout
28041 \begin_layout Description
28043 \begin_inset space ~
28047 \begin_inset space ~
28050 thin This draws an oval frame around the box.
28051 The frame line thickness has the size 0.4
28052 \begin_inset space \thinspace{}
28057 \begin_inset Box ovalbox
28067 height_special "totalheight"
28070 \begin_layout Plain Layout
28080 \begin_layout Description
28082 \begin_inset space ~
28086 \begin_inset space ~
28089 thick This draws an oval frame around the box.
28090 The frame line thickness has the size 0.8
28091 \begin_inset space \thinspace{}
28096 \begin_inset Box Ovalbox
28106 height_special "totalheight"
28109 \begin_layout Plain Layout
28119 \begin_layout Description
28121 \begin_inset space ~
28124 shadow This draws a rectangular frame with a shadow around the box.
28125 The frame line thickness has the size of
28131 , the shadow has a width of 4
28132 \begin_inset space \thinspace{}
28137 \begin_inset Box Shadowbox
28147 height_special "totalheight"
28150 \begin_layout Plain Layout
28160 \begin_layout Description
28162 \begin_inset space ~
28165 background This draws a box with a red background.
28166 Unlike colored boxes
28170 \begin_layout Plain Layout
28172 \begin_inset space \thinspace{}
28176 \begin_inset CommandInset ref
28178 reference "sec:Colored-Boxes"
28187 , it always uses the whole column width and the box is set as its own paragraph.
28189 \begin_inset Box Shaded
28199 height_special "totalheight"
28202 \begin_layout Plain Layout
28203 Shaded background box
28211 \begin_layout Description
28213 \begin_inset space ~
28217 \begin_inset space ~
28220 frame This draws a double-line rectangular frame around the box.
28221 The line thickness of the inner frame is 0.75
28222 \begin_inset space \thinspace{}
28231 , the thickness of the outer frame is 1.5
28232 \begin_inset space \thinspace{}
28242 The distance between the lines is 1.5
28243 \begin_inset space \thinspace{}
28253 \begin_inset space \thinspace{}
28257 \begin_inset space \thinspace{}
28261 \begin_inset space \thinspace{}
28266 \begin_inset Box Doublebox
28276 height_special "totalheight"
28279 \begin_layout Plain Layout
28281 Double rectangular box
28289 \begin_layout Standard
28290 \begin_inset VSpace bigskip
28293 LyX's box label will reflect the different frame types.
28294 To be able to use all types, the LaTeX-package
28299 \begin_inset Index idx
28302 \begin_layout Plain Layout
28303 LaTeX-packages ! fancybox
28311 \begin_layout Standard
28312 \begin_inset VSpace bigskip
28315 When you use the decoration
28317 simple rectangular frame
28319 and no inner box, you can allow page breaks within a box.
28320 Note that then, unlike other framed boxes, the frame always uses the whole
28321 column width, the box is set as its own paragraph, and
28333 have no effect on this box type.
28334 The frame line thickness has the size of
28342 \begin_inset Box Framed
28352 height_special "totalheight"
28355 \begin_layout Plain Layout
28356 Allow page break box
28364 \begin_layout Section
28366 \begin_inset Index idx
28369 \begin_layout Plain Layout
28370 Boxes ! Customization
28378 \begin_layout Standard
28379 The default value for the size
28386 \begin_inset space \thinspace{}
28390 It can be changed with the following command in TeX-Code to e.
28391 \begin_inset space \thinspace{}
28395 \begin_inset space \space{}
28399 \begin_inset space \thinspace{}
28405 \begin_layout Standard
28415 \begin_layout Standard
28419 \begin_layout Plain Layout
28431 \begin_inset Box Boxed
28441 height_special "totalheight"
28444 \begin_layout Plain Layout
28446 Rectangular box with
28453 \begin_inset space \thinspace{}
28457 \begin_inset space \thinspace{}
28461 \begin_inset space \thinspace{}
28473 \begin_layout Plain Layout
28487 \begin_layout Standard
28488 \begin_inset VSpace bigskip
28491 The space between the frame and the box content is for all frame styles
28493 \begin_inset space \thinspace{}
28497 You can change it by setting the length
28504 For example the command
28507 \begin_layout Standard
28517 \begin_layout Standard
28518 sets the value to 10
28519 \begin_inset space \thinspace{}
28522 pt, as with the following box:
28525 \begin_layout Standard
28529 \begin_layout Plain Layout
28541 \begin_inset Box Boxed
28551 height_special "totalheight"
28554 \begin_layout Plain Layout
28556 Rectangular box with
28563 \begin_inset space \thinspace{}
28567 \begin_inset space \thinspace{}
28571 \begin_inset space \thinspace{}
28583 \begin_layout Plain Layout
28597 \begin_layout Standard
28598 \begin_inset VSpace bigskip
28601 The diameter of the round corners of the oval boxes can be set with the
28612 \begin_layout Standard
28620 \begin_layout Standard
28621 sets the diameter to 1
28622 \begin_inset space \thinspace{}
28629 \begin_layout Standard
28637 \begin_layout Standard
28638 sets the diameter to
28641 \begin_inset space \thinspace{}
28645 \begin_inset space \thinspace{}
28648 minimum(width and heigth of box)
28660 \begin_layout Standard
28664 \begin_layout Plain Layout
28674 \begin_inset Box Ovalbox
28684 height_special "totalheight"
28687 \begin_layout Plain Layout
28696 \begin_inset space \thinspace{}
28700 \begin_inset space \thinspace{}
28704 \begin_inset space \thinspace{}
28716 \begin_layout Plain Layout
28728 \begin_layout Standard
28729 \begin_inset VSpace bigskip
28732 The size of the shadow can be adjusted by changing the length
28740 \begin_inset space \thinspace{}
28743 pt for the following box by this command:
28746 \begin_layout Standard
28756 \begin_layout Standard
28760 \begin_layout Plain Layout
28772 \begin_inset Box Shadowbox
28782 height_special "totalheight"
28785 \begin_layout Plain Layout
28794 \begin_inset space \thinspace{}
28798 \begin_inset space \thinspace{}
28802 \begin_inset space \thinspace{}
28814 \begin_layout Plain Layout
28828 \begin_layout Standard
28829 \begin_inset VSpace bigskip
28835 \begin_layout Standard
28836 The default value for the size
28843 \begin_inset space \thinspace{}
28847 The default space between the note content and the frame is 9
28848 \begin_inset space \thinspace{}
28851 pt and can be changed with the value of
28858 For example the frame appearance of the following
28862 is set with the TeX-Code commands
28865 \begin_layout Standard
28873 \begin_inset Newline newline
28883 \begin_layout Standard
28887 \begin_layout Plain Layout
28896 \begin_layout Plain Layout
28908 \begin_inset Box Framed
28918 height_special "totalheight"
28921 \begin_layout Plain Layout
28935 \begin_layout Plain Layout
28944 \begin_layout Plain Layout
28958 \begin_layout Standard
28959 \begin_inset VSpace bigskip
28965 \begin_layout Standard
28970 boxes the default space between the box content and the box border is 3
28971 \begin_inset space \thinspace{}
28974 pt and can be changed with the value of
28981 The default background color red can either be changed locally with the
28986 definecolor{shadecolor}
28988 or globally with the menu
28990 Tools\SpecialChar \menuseparator
28991 Preferences\SpecialChar \menuseparator
28992 Colors\SpecialChar \menuseparator
28994 \begin_inset space ~
29006 command is explained in section
29007 \begin_inset space ~
29011 \begin_inset CommandInset ref
29013 reference "sec:Colored-Tables"
29021 \begin_layout Plain Layout
29028 requires the LaTeX-package
29032 in the preamble, see section
29033 \begin_inset space ~
29037 \begin_inset CommandInset ref
29039 reference "sec:Colored-Boxes"
29048 For example the appearance of the following shaded background box is set
29049 with the TeX-Code commands
29052 \begin_layout Standard
29062 \begin_inset Newline newline
29069 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29072 \begin_layout Standard
29076 \begin_layout Plain Layout
29085 \begin_layout Plain Layout
29089 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29095 \begin_inset Box Shaded
29105 height_special "totalheight"
29108 \begin_layout Plain Layout
29111 This is yellow text in a
29121 box with dark green background.
29130 \begin_layout Plain Layout
29139 \begin_layout Plain Layout
29143 definecolor{shadecolor}{rgb}{1,0,0}
29151 \begin_layout Standard
29152 \begin_inset VSpace bigskip
29155 Changed lengths and widths are valid for all boxes following the commands
29159 \begin_layout Section
29161 \begin_inset CommandInset label
29163 name "sec:Minipages"
29168 \begin_inset Index idx
29171 \begin_layout Plain Layout
29180 \begin_layout Standard
29181 Minipages are treated by LaTeX as pages within pages and can therefore for
29182 example have their own footnotes.
29185 \begin_layout Standard
29186 Minipages are useful when you write documents with different languages.
29189 \begin_layout Standard
29190 Below are two example minipages side by side.
29191 Their width is set to 45
29192 \begin_inset space \thinspace{}
29195 col% and they are separated by a horizontal fill, that was inserted via
29198 Insert\SpecialChar \menuseparator
29200 \begin_inset space ~
29203 Formatting\SpecialChar \menuseparator
29205 \begin_inset space ~
29211 \begin_inset Newpage newpage
29217 \begin_layout Standard
29218 \begin_inset Box Frameless
29228 height_special "totalheight"
29231 \begin_layout Plain Layout
29234 Dies ist ein deutscher Text.
29235 Dies ist ein deutscher Text.
29236 Dies ist ein deutscher Text.
29237 Dies ist ein deutscher Text.
29238 Dies ist ein deutscher Text.
29239 Dies ist ein deutscher Text.
29240 Dies ist ein deutscher Text.
29241 Dies ist ein deutscher Text.
29242 Dies ist ein deutscher Text.
29243 Dies ist ein deutscher Text.
29244 Dies ist ein deutscher Text.
29245 Dies ist ein deutscher Text.
29246 Dies ist ein deutscher Text
29250 \begin_layout Plain Layout
29253 Dies ist eine deutsche Fußnote.
29259 Dies ist ein deutscher Text.
29260 Dies ist ein deutscher Text.
29266 \begin_inset space \hfill{}
29270 \begin_inset Box Frameless
29280 height_special "totalheight"
29283 \begin_layout Plain Layout
29284 This is an English Text.
29285 This is an English Text.
29286 This is an English Text.
29287 This is an English Text.
29288 This is an English Text.
29289 This is an English Text.
29290 This is an English Text.
29291 This is an English Text.
29292 This is an English Text.
29293 This is an English Text.
29294 This is an English Text.
29295 This is an English Text.
29296 This is an English Text.
29297 This is an English Text.
29298 This is an English Text.
29299 This is an English Text.
29303 \begin_layout Plain Layout
29304 This is an English footnote.
29309 This is an English Text.
29318 \begin_layout Standard
29319 \begin_inset VSpace bigskip
29322 The document-wide paragraph settings are ignored within minipages.
29323 That means that there will be no space between paragraphs in minipages
29324 although you set it to e.
29325 \begin_inset space \thinspace{}
29329 \begin_inset space \space{}
29336 in the document settings.
29339 \begin_layout Standard
29340 Minipages can also be used to set a background color for text parts, see
29342 \begin_inset space ~
29346 \begin_inset CommandInset ref
29348 reference "sub:Color-for-Paragraphs"
29355 \begin_layout Standard
29356 \begin_inset Note Greyedout
29359 \begin_layout Plain Layout
29364 You cannot have floats or margin notes inside minipages but minipages can
29365 be used inside tables, floats, and other boxes.
29373 \begin_layout Section
29375 \begin_inset CommandInset label
29377 name "sec:Parboxes"
29382 \begin_inset Index idx
29385 \begin_layout Plain Layout
29394 \begin_layout Standard
29395 Parboxes are very similar to minipages with the difference that they cannot
29396 have footnotes, because minipages, unlike parboxes, are not real boxes
29397 but LaTeX-environments.
29400 \begin_layout Standard
29402 \begin_inset Box Frameless
29412 height_special "totalheight"
29415 \begin_layout Plain Layout
29416 This a text within a parbox.
29417 This a text within a parbox.
29420 \begin_layout Plain Layout
29421 This footnote won't appear:
29425 \begin_layout Plain Layout
29426 This footnote is inside a parbox and will therefore not appear.
29439 \begin_layout Section
29440 Boxes for Words and Characters
29441 \begin_inset Index idx
29444 \begin_layout Plain Layout
29445 Boxes ! for Characters
29453 \begin_layout Subsection
29454 Prevent Hyphenation
29455 \begin_inset CommandInset label
29457 name "sec:Prevent-Hyphenation"
29462 \begin_inset Index idx
29465 \begin_layout Plain Layout
29466 Boxes ! to Prevent Hyphenation
29474 \begin_layout Standard
29475 You can use the box type
29479 to prevent words or text from being hyphenated.
29480 \begin_inset Newline newline
29483 Here is an example text:
29486 \begin_layout Standard
29487 This line is an example to show how you can prevent the hyphenation of
29488 \begin_inset Quotes eld
29492 \begin_inset Quotes erd
29498 \begin_layout Standard
29499 To prevent the hyphenation of the word
29500 \begin_inset Quotes eld
29504 \begin_inset Quotes erd
29507 , put the word into a box, set the
29510 \begin_inset space ~
29520 \begin_inset space \thinspace{}
29526 \begin_layout Standard
29527 This is the result:
29530 \begin_layout Standard
29531 This line is an example to show how you can prevent the hyphenation of
29532 \begin_inset Box Frameless
29542 height_special "totalheight"
29545 \begin_layout Plain Layout
29546 \begin_inset Quotes eld
29550 \begin_inset Quotes erd
29561 \begin_layout Standard
29562 You can alternatively set the command
29563 \begin_inset Quotes eld
29573 \begin_inset Quotes grd
29576 as TeX-Code directly before the word:
29579 \begin_layout Standard
29580 This line is an example to show how you can prevent the hyphenation of
29581 \begin_inset Quotes eld
29588 \begin_layout Plain Layout
29598 \begin_inset Quotes erd
29604 \begin_layout Standard
29605 Of course the word now protrudes over the side margin.
29606 To avoid this, add via the menu
29608 Insert\SpecialChar \menuseparator
29610 \begin_inset space ~
29613 Formatting\SpecialChar \menuseparator
29615 \begin_inset space ~
29623 arg "newline-insert newline"
29626 ) a line break before the word:
29629 \begin_layout Standard
29630 This line is an example to show how you can prevent the hyphenation of
29631 \begin_inset Newline newline
29635 \begin_inset Box Frameless
29645 height_special "totalheight"
29648 \begin_layout Plain Layout
29649 \begin_inset Quotes eld
29653 \begin_inset Quotes erd
29664 \begin_layout Subsection
29666 \begin_inset CommandInset label
29668 name "sub:Vertical-Alignment"
29673 \begin_inset Index idx
29676 \begin_layout Plain Layout
29677 Boxes ! for Vertical Alignment
29683 \begin_inset Index idx
29686 \begin_layout Plain Layout
29695 \begin_layout Standard
29696 With the help of the command
29702 you can align words, characters or other boxes vertically relative to the
29710 is used with the following scheme:
29713 \begin_layout Standard
29718 raisebox{lift}[height][depth]{box content}
29721 \begin_layout Standard
29722 The lift can be a positive value to raise the box or a negative value to
29726 \begin_layout Standard
29727 To align for example the word
29728 \begin_inset Quotes eld
29732 \begin_inset Quotes erd
29735 so that the bottom of the
29736 \begin_inset Quotes eld
29740 \begin_inset Quotes erd
29744 \begin_inset Quotes eld
29748 \begin_inset Quotes erd
29751 is at the baseline, insert the command
29754 \begin_layout Standard
29764 \begin_layout Standard
29765 in TeX-Code before the word.
29766 After the word insert a closing brace
29767 \begin_inset Quotes eld
29775 \begin_inset Quotes erd
29779 \begin_inset Newline newline
29782 This is the result:
29785 \begin_layout Standard
29786 This is a text line with the word
29790 \begin_layout Plain Layout
29802 \begin_inset Quotes eld
29806 \begin_inset Quotes erd
29813 \begin_layout Plain Layout
29823 \begin_layout Standard
29824 \begin_inset VSpace bigskip
29827 When you raise or lower characters in a line, the line distance will be
29831 \begin_layout Standard
29832 This is a text line with the word
29836 \begin_layout Plain Layout
29848 \begin_inset Quotes eld
29852 \begin_inset Quotes erd
29859 \begin_layout Plain Layout
29867 \begin_inset Newline newline
29870 This is a text line with the word
29874 \begin_layout Plain Layout
29884 \begin_inset Quotes eld
29888 \begin_inset Quotes erd
29895 \begin_layout Plain Layout
29905 \begin_layout Standard
29906 If you want to prevent this for a certain reason, set the box height to
29911 \begin_layout Standard
29921 \begin_layout Standard
29922 This is a text line with the word
29926 \begin_layout Plain Layout
29938 \begin_inset Quotes eld
29942 \begin_inset Quotes erd
29949 \begin_layout Plain Layout
29957 \begin_inset Newline newline
29960 This is a text line with the word
29964 \begin_layout Plain Layout
29968 raisebox{0.5cm}[0pt]{
29974 \begin_inset Quotes eld
29978 \begin_inset Quotes erd
29985 \begin_layout Plain Layout
29995 \begin_layout Section
29997 \begin_inset CommandInset label
29999 name "sec:Colored-Boxes"
30004 \begin_inset Index idx
30007 \begin_layout Plain Layout
30016 \begin_layout Subsection
30018 \begin_inset Index idx
30021 \begin_layout Plain Layout
30030 \begin_layout Standard
30031 To color the background of text the text must be put into a so called
30032 \begin_inset Quotes eld
30036 \begin_inset Quotes erd
30040 This requires that the LaTeX-package
30045 \begin_inset Index idx
30048 \begin_layout Plain Layout
30049 LaTeX-packages ! color
30054 is loaded in the document preamble with the command
30057 \begin_layout Standard
30062 @ifundefined{textcolor}
30063 \begin_inset Newline newline
30067 \begin_inset Phantom HPhantom
30070 \begin_layout Plain Layout
30073 \begin_inset space ~
30083 usepackage{color}}{}
30086 \begin_layout Standard
30091 will be loaded automatically by LyX when you color text.
30095 \begin_layout Plain Layout
30096 To avoid it being loaded twice the command
30110 \begin_layout Standard
30111 \begin_inset VSpace medskip
30114 Colorboxes are created with the command
30121 This will be used with the following scheme:
30124 \begin_layout Standard
30129 colorbox{color}{box content}
30132 \begin_layout Standard
30133 The box content can also be a box and colorboxes can also be within other
30137 \begin_layout Standard
30138 The following colors are predefined:
30139 \begin_inset Newline newline
30178 \begin_inset Newline newline
30181 You can also define your own color as described in section
30182 \begin_inset space ~
30186 \begin_inset CommandInset ref
30188 reference "sec:Colored-Tables"
30195 \begin_layout Standard
30197 \begin_inset space \thinspace{}
30201 \begin_inset space \space{}
30204 a red background for a word, insert the command
30207 \begin_layout Standard
30215 \begin_layout Standard
30216 before the word in TeX-Code.
30217 After the word insert a closing brace
30218 \begin_inset Quotes eld
30226 \begin_inset Quotes erd
30230 \begin_inset Newline newline
30233 This is the result:
30236 \begin_layout Standard
30237 This is a line where the word
30241 \begin_layout Plain Layout
30251 \begin_inset Quotes eld
30255 \begin_inset Quotes erd
30262 \begin_layout Plain Layout
30269 has a red background.
30272 \begin_layout Standard
30273 \begin_inset VSpace bigskip
30276 If you would like the box frame in a different color, you can use the command
30283 with the following scheme:
30286 \begin_layout Standard
30291 fcolorbox{frame color}{box color}{box content}
30294 \begin_layout Standard
30308 The frame thickness and the space between the frame and the box content
30309 can be adjusted with the lengths
30321 , respectively, as described in section
30322 \begin_inset space ~
30326 \begin_inset CommandInset ref
30328 reference "sec:Decoration"
30335 \begin_layout Standard
30336 For the following example the command
30339 \begin_layout Standard
30344 fcolorbox{cyan}{magenta}{
30347 \begin_layout Standard
30351 \begin_layout Standard
30352 Here is an example where the frame line thickness was set to 1
30353 \begin_inset space \thinspace{}
30357 \begin_inset Newline newline
30364 \begin_layout Plain Layout
30379 \begin_layout Plain Layout
30383 fcolorbox{cyan}{magenta}{
30388 This is text within a colored, framed box.
30392 \begin_layout Plain Layout
30402 \begin_layout Standard
30403 \begin_inset VSpace bigskip
30406 Of course you can also have colored text inside a colorbox:
30407 \begin_inset Newline newline
30414 \begin_layout Plain Layout
30418 fcolorbox{cyan}{magenta}{
30425 This is colored text within a colored, framed box.
30431 \begin_layout Plain Layout
30442 \begin_layout Plain Layout
30456 \begin_layout Standard
30459 \begin_inset VSpace medskip
30465 \begin_layout Standard
30466 \begin_inset Note Greyedout
30469 \begin_layout Plain Layout
30474 Text in colorboxes cannot have line breaks.
30475 To color multiple text lines or paragraphs, use a box inside a colorbox
30476 as described in the following.
30484 \begin_layout Subsection
30485 Color for Paragraphs
30486 \begin_inset CommandInset label
30488 name "sub:Color-for-Paragraphs"
30493 \begin_inset Index idx
30496 \begin_layout Plain Layout
30497 Color ! for Paragraphs
30505 \begin_layout Standard
30506 To set the background color for more than one text line, put the text into
30508 Before the minipage insert the
30517 \begin_layout Standard
30525 \begin_layout Standard
30527 After the minipage insert a closing brace
30528 \begin_inset Quotes eld
30536 \begin_inset Quotes erd
30542 \begin_layout Standard
30546 \begin_layout Plain Layout
30550 colorbox{lightgrey}{
30556 \begin_inset Box Frameless
30566 height_special "totalheight"
30569 \begin_layout Plain Layout
30570 This is text with background color.
30571 This is text with background color.
30574 \begin_layout Plain Layout
30575 \begin_inset VSpace defskip
30578 The text can have footnotes
30582 \begin_layout Plain Layout
30583 Another example footnote
30588 and can include tables and figures.
30591 \begin_layout Plain Layout
30593 \begin_inset Tabular
30594 <lyxtabular version="3" rows="3" columns="3">
30595 <features tabularvalignment="middle">
30596 <column alignment="center" valignment="top" width="0">
30597 <column alignment="center" valignment="top" width="0">
30598 <column alignment="center" valignment="top" width="0">
30600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30603 \begin_layout Plain Layout
30609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30612 \begin_layout Plain Layout
30618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30621 \begin_layout Plain Layout
30629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30632 \begin_layout Plain Layout
30638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30641 \begin_layout Plain Layout
30643 \begin_inset Quotes erd
30651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30654 \begin_layout Plain Layout
30662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30665 \begin_layout Plain Layout
30671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30674 \begin_layout Plain Layout
30680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30683 \begin_layout Plain Layout
30703 \begin_layout Plain Layout
30713 \begin_layout Section
30714 Rotated and Scaled Boxes
30717 \begin_layout Standard
30718 To use the commands described in this section, the LaTeX-package
30723 \begin_inset Index idx
30726 \begin_layout Plain Layout
30727 LaTeX-packages ! graphicx
30732 needs to be loaded in the document preamble with the command
30735 \begin_layout Standard
30740 @ifundefined{rotatebox}
30741 \begin_inset Newline newline
30745 \begin_inset Phantom HPhantom
30748 \begin_layout Plain Layout
30751 \begin_inset space ~
30761 usepackage{graphicx}}{}
30764 \begin_layout Standard
30765 \begin_inset Note Greyedout
30768 \begin_layout Plain Layout
30773 Some DVI-viewers can't display rotated or scaled material.
30781 \begin_layout Standard
30782 \begin_inset Note Greyedout
30785 \begin_layout Plain Layout
30790 Floats mustn't be inside a rotated or scaled box.
30798 \begin_layout Subsection
30800 \begin_inset Index idx
30803 \begin_layout Plain Layout
30810 \begin_inset Index idx
30813 \begin_layout Plain Layout
30820 \begin_inset Index idx
30823 \begin_layout Plain Layout
30830 \begin_inset Index idx
30833 \begin_layout Plain Layout
30834 Table Customization ! Rotating
30842 \begin_layout Standard
30843 To rotate material, you can put it into a rotated box.
30844 Such a box is created using the command
30850 in TeX-Code with the following scheme:
30853 \begin_layout Standard
30858 rotatebox[rotation origin]{rotation angle}{box content}
30861 \begin_layout Standard
30862 The rotation origin is specified in the form
30867 The following positions are possible:
30887 (top), along with meaningful combinations of the four base positions.
30892 means that the rotation origin is at the top left corner of the box.
30893 When no rotation origin is specified, the position
30898 The rotation angle is a number that can be negative that specifies the
30900 The rotation direction is counterclockwise.
30903 \begin_layout Standard
30904 In the following example the command
30908 rotatebox[origin=c]{60}{
30910 was inserted as TeX-Code before the text
30911 \begin_inset Quotes eld
30915 \begin_inset Quotes erd
30918 ; after the text the box was closed by a closing brace
30925 \begin_layout Standard
30930 \begin_layout Plain Layout
30934 rotatebox[origin=c]{60}{
30943 \begin_layout Plain Layout
30953 \begin_layout Standard
30954 The box content can also be another box or an inline formula:
30957 \begin_layout Standard
30962 \begin_layout Plain Layout
30966 rotatebox[origin=r]{-60}{
30972 \begin_inset Box Doublebox
30982 height_special "totalheight"
30985 \begin_layout Plain Layout
30995 \begin_layout Plain Layout
31006 \begin_layout Plain Layout
31010 rotatebox[origin=lb]{60}{
31016 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31023 \begin_layout Plain Layout
31033 \begin_layout Standard
31034 or an image or table:
31037 \begin_layout Standard
31042 \begin_layout Plain Layout
31046 rotatebox[origin=lb]{90}{
31052 \begin_inset Graphics
31053 filename clipart/platypus.eps
31063 \begin_layout Plain Layout
31070 with a rotated image
31074 \begin_layout Plain Layout
31078 rotatebox[origin=l]{-90}{
31084 \begin_inset Tabular
31085 <lyxtabular version="3" rows="2" columns="2">
31086 <features tabularvalignment="middle">
31087 <column alignment="center" valignment="top" width="0">
31088 <column alignment="center" valignment="top" width="0">
31090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31093 \begin_layout Plain Layout
31099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31102 \begin_layout Plain Layout
31110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31113 \begin_layout Plain Layout
31119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31122 \begin_layout Plain Layout
31137 \begin_layout Plain Layout
31147 \begin_layout Subsection
31149 \begin_inset Index idx
31152 \begin_layout Plain Layout
31159 \begin_inset Index idx
31162 \begin_layout Plain Layout
31169 \begin_inset Index idx
31172 \begin_layout Plain Layout
31179 \begin_inset Index idx
31182 \begin_layout Plain Layout
31183 Table Customization ! Scaling
31191 \begin_layout Standard
31192 To scale material the commands
31204 can be used as TeX-Code.
31207 \begin_layout Standard
31214 is used with the following scheme:
31217 \begin_layout Standard
31222 scalebox{horizontal}[vertical]{box content}
31225 \begin_layout Standard
31226 Horizontal and vertical are the corresponding scaling factors.
31227 If no vertical scaling factor is given, the horizontal factor will also
31228 be used as the vertical one.
31231 \begin_layout Standard
31238 creates for example a double size
31242 \begin_layout Plain Layout
31255 \begin_layout Plain Layout
31262 , compared with the document text size.
31265 \begin_layout Standard
31270 scalebox{2}[1]{Hello}
31272 on the other hand distorts the
31276 \begin_layout Plain Layout
31289 \begin_layout Plain Layout
31299 \begin_layout Standard
31300 If the scaling factor is negative, the box content will be mirrored.
31301 Therefore the command
31305 scalebox{-1}[1]{Hello}
31307 can be used to create mirror writing:
31311 \begin_layout Plain Layout
31324 \begin_layout Plain Layout
31334 \begin_layout Standard
31339 scalebox{1}[-1]{Hello}
31345 \begin_layout Plain Layout
31358 \begin_layout Plain Layout
31368 \begin_layout Standard
31373 scalebox{-1}[1]{box content}
31375 there exists the command
31376 \begin_inset Newline newline
31383 reflectbox{box content}
31388 \begin_layout Standard
31389 \begin_inset VSpace bigskip
31398 is used to scale the box to a defined width and height.
31399 The command scheme is:
31402 \begin_layout Standard
31407 resizebox{width}{height}{box content}
31410 \begin_layout Standard
31411 If one of the two command arguments given is an exclamation mark
31415 , the size is set so that the aspect ratio of the box content is kept.
31418 \begin_layout Standard
31423 resizebox{2cm}{1cm}{Hello}
31429 \begin_layout Plain Layout
31433 resizebox{2cm}{1cm}{
31442 \begin_layout Plain Layout
31450 \begin_inset Newline newline
31457 resizebox{2cm}{!}{Hello}
31463 \begin_layout Plain Layout
31476 \begin_layout Plain Layout
31486 \begin_layout Standard
31487 \begin_inset VSpace bigskip
31491 \begin_inset Note Greyedout
31494 \begin_layout Plain Layout
31511 are set to zero, no LaTeX-errors occur when exporting the document but
31512 the exported files can not or only partly be displayed.
31520 \begin_layout Standard
31521 \begin_inset VSpace bigskip
31527 \begin_layout Standard
31528 The boxes can be combined in any order.
31530 \begin_inset space \thinspace{}
31534 \begin_inset space \space{}
31538 \begin_inset Newline newline
31545 rotatebox[origin=c]{-45}{
31549 reflectbox{Hello}}}
31550 \begin_inset Newline newline
31558 \begin_layout Standard
31563 \begin_layout Plain Layout
31567 rotatebox[origin=c]{-45}{
31580 \begin_layout Plain Layout
31590 \begin_layout Standard
31592 Images, tables, and inline formulas are allowed as box content:
31595 \begin_layout Standard
31600 \begin_layout Plain Layout
31604 rotatebox[origin=c]{-30}{
31614 \begin_inset Graphics
31615 filename clipart/platypus.eps
31625 \begin_layout Plain Layout
31636 \begin_layout Plain Layout
31640 rotatebox[origin=c]{-45}{
31650 \begin_inset Tabular
31651 <lyxtabular version="3" rows="2" columns="2">
31652 <features tabularvalignment="middle">
31653 <column alignment="center" valignment="top" width="0">
31654 <column alignment="center" valignment="top" width="0">
31656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31659 \begin_layout Plain Layout
31665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31668 \begin_layout Plain Layout
31676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31679 \begin_layout Plain Layout
31685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31688 \begin_layout Plain Layout
31703 \begin_layout Plain Layout
31714 \begin_layout Plain Layout
31718 rotatebox[origin=c]{-45}{
31728 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31735 \begin_layout Plain Layout
31745 \begin_layout Standard
31746 When the global formula style
31750 is used in the document
31754 \begin_layout Plain Layout
31756 \begin_inset Quotes eld
31760 \begin_inset Quotes erd
31763 is added to the document class options.
31768 , display style formulas can also be scaled.
31771 \begin_layout Chapter
31772 External Document Parts
31773 \begin_inset Index idx
31776 \begin_layout Plain Layout
31777 External Document Parts
31785 \begin_layout Standard
31788 Insert\SpecialChar \menuseparator
31791 you can insert external material to your document.
31795 \begin_layout Description
31797 \begin_inset space ~
31800 Document Another LyX document; its content is directly inserted to your
31804 \begin_layout Description
31806 \begin_inset space ~
31809 Text A text document; each line is inserted in your document as a separate
31813 \begin_layout Description
31815 \begin_inset space ~
31819 \begin_inset space ~
31823 \begin_inset space ~
31826 Lines A text document; text lines are inserted in your document continuously
31827 but an empty text line creates a new paragraph.
31830 \begin_layout Description
31832 \begin_inset space ~
31835 Material Files in various formats.
31838 \begin_layout Description
31840 \begin_inset space ~
31843 Document LyX or LaTeX-documents.
31846 \begin_layout Section
31848 \begin_inset Index idx
31851 \begin_layout Plain Layout
31852 External Document Parts ! External Material
31860 \begin_layout Standard
31861 The external material feature allows you to insert files in to your document
31862 without converting them to a format that can be read by the document output
31864 LyX takes care of the necessary conversions.
31865 This is similar to images that can be inserted in various image formats
31867 When you have enabled Instant Preview in LyX's preferences under
31870 \begin_inset space ~
31874 \begin_inset space ~
31877 feel\SpecialChar \menuseparator
31880 , the external material types Dia and Xfig are directly shown in LyX.
31883 \begin_layout Standard
31884 External material can be inserted via the
31888 dialog that is accessible with the menu
31890 Insert\SpecialChar \menuseparator
31891 File\SpecialChar \menuseparator
31893 \begin_inset space ~
31899 Currently the following file types (
31906 \begin_layout Description
31907 ChessDiagram This template supports chess position diagrams made with the
31911 \begin_inset CommandInset href
31914 target "http://en.wikipedia.org/wiki/XBoard"
31923 \begin_layout Description
31924 Date This inserts the date in the form
31929 This is a date inserted as external material:
31930 \begin_inset External
31937 \begin_inset space ~
31941 \begin_inset Note Note
31944 \begin_layout Plain Layout
31945 Remove the protected space when bug 4398 is fixed!
31951 \begin_inset Newline newline
31954 The date is not shown within LyX, only in the output.
31955 There are two other methods of inserting a date: Via menu
31957 Insert\SpecialChar \menuseparator
31960 and with the LaTeX command
31967 The different methods are compared in Table
31968 \begin_inset space ~
31972 \begin_inset CommandInset ref
31974 reference "tab:Comparison-of-the"
31981 \begin_layout Description
31982 Dia This template supports diagrams created with the program
31985 \begin_inset CommandInset href
31988 target "http://en.wikipedia.org/wiki/Dia_(software)"
31997 \begin_layout Description
31998 LilyPond This template is used for music notation typeset with the program
31999 \begin_inset Newline linebreak
32005 \begin_inset CommandInset href
32008 target "http://en.wikipedia.org/wiki/LilyPond"
32017 \begin_layout Description
32018 PDFPages With this template you can insert PDF documents to your document.
32019 To insert certain or all pages of a PDF, use the
32029 LaTeX and LyX options
32031 tab according to the template description in the dialog.
32036 option is given, only the first page of the PDF will be inserted.
32039 \begin_layout Description
32040 RasterImage This can be used for bitmap images.
32041 Nearly all popular image formats are supported.
32042 The image can be treated in the
32046 dialog like the images that are usually included via the
32050 dialog as described in section
32051 \begin_inset space ~
32055 \begin_inset CommandInset ref
32057 reference "sec:Graphics-Dialog"
32062 The difference is that only raster images are allowed; that means that
32063 PDF and EPS-images are not supported.
32066 \begin_layout Description
32067 XFig This template supports images created with the program
32070 \begin_inset CommandInset href
32073 target "http://en.wikipedia.org/wiki/Xfig"
32082 \begin_layout Standard
32083 \begin_inset Float table
32089 \begin_layout Plain Layout
32090 \begin_inset Caption
32092 \begin_layout Plain Layout
32093 \begin_inset CommandInset label
32095 name "tab:Comparison-of-the"
32099 Comparison of the date input methods.
32107 \begin_layout Plain Layout
32109 \begin_inset Tabular
32110 <lyxtabular version="3" rows="4" columns="4">
32111 <features tabularvalignment="middle">
32112 <column alignment="center" valignment="top" width="0">
32113 <column alignment="center" valignment="top" width="0">
32114 <column alignment="center" valignment="top" width="0">
32115 <column alignment="center" valignment="top" width="0">
32117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32120 \begin_layout Plain Layout
32126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32129 \begin_layout Plain Layout
32132 External Material\SpecialChar \menuseparator
32138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32141 \begin_layout Plain Layout
32144 Insert\SpecialChar \menuseparator
32150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32153 \begin_layout Plain Layout
32165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32168 \begin_layout Plain Layout
32174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32177 \begin_layout Plain Layout
32183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32186 \begin_layout Plain Layout
32192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32195 \begin_layout Plain Layout
32196 as TeX-Code inset box
32203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32206 \begin_layout Plain Layout
32212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32215 \begin_layout Plain Layout
32221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32224 \begin_layout Plain Layout
32230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32233 \begin_layout Plain Layout
32241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32244 \begin_layout Plain Layout
32250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32253 \begin_layout Plain Layout
32259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32262 \begin_layout Plain Layout
32268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32271 \begin_layout Plain Layout
32290 \begin_layout Standard
32291 When you use the option
32303 dialog, only the path to the inserted file is shown in the output.
32304 \begin_inset Newline newline
32307 External material is displayed in LyX either as a box like this:
32308 \begin_inset Graphics
32309 filename clipart/ExternalMaterialQt4.png
32311 scaleBeforeRotation
32315 or as image, depending on the option
32321 LaTeX and LyX options
32326 \begin_layout Standard
32333 manual explains how you can define your own templates.
32336 \begin_layout Section
32338 \begin_inset CommandInset label
32340 name "sec:Child-Documents"
32345 \begin_inset Index idx
32348 \begin_layout Plain Layout
32349 External Document Parts ! Child Documents
32355 \begin_inset Index idx
32358 \begin_layout Plain Layout
32367 \begin_layout Standard
32368 Child documents are used when you have a long document consisting of several
32369 larger parts or sections.
32370 For maintenance it is often useful and sometimes even required to split
32371 the document in several files that can be revised separately.
32372 The different documents are then the so called child documents and a master
32373 document connects them to print the full document or parts of it.
32374 A child documents inherits elements of its master, for example the LaTeX
32375 preamble, the bibliography, and labels for cross-references.
32378 \begin_layout Standard
32379 To be able to work on child documents without the need to open their master,
32380 specify in the child document the master in the menu
32382 Document\SpecialChar \menuseparator
32383 Settings\SpecialChar \menuseparator
32385 \begin_inset space ~
32391 This master document will then be used in the background by LyX when you
32392 edit the child document.
32395 \begin_layout Standard
32396 Included documents are displayed in LyX as a box like this:
32397 \begin_inset Graphics
32398 filename clipart/ChildDocumentQt4.png
32400 scaleBeforeRotation
32404 To include child documents in a master document use the menu
32406 Insert\SpecialChar \menuseparator
32407 File\SpecialChar \menuseparator
32409 \begin_inset space ~
32415 A dialog pops up where you can choose between four include methods:
32418 \begin_layout Description
32419 Include You can include LyX and LaTeX-documents.
32428 dialog, the included documents will be opened in LyX in a new file tab
32429 so that you can modify them.
32430 \begin_inset Newline newline
32436 \begin_layout Standard
32437 Here is a child document inserted using
32442 \begin_inset CommandInset include
32443 LatexCommand include
32444 filename "DummyDocument1.lyx"
32451 \begin_layout Standard
32452 The section numbering includes the sections of the included files in the
32453 order they are inserted in the master document.
32454 The included example document has for example a subsection that is numbered
32455 as a subsection of this section.
32456 Labels of included documents can be referenced: Subsection
32457 \begin_inset space ~
32461 \begin_inset CommandInset ref
32463 reference "sub:External-Subsection-1"
32470 \begin_layout Standard
32471 The preamble of the child document is ignored; only the preamble of the
32472 master document is used.
32473 Branches in child documents will be ignored by the master document when
32474 the master document does not have a branch with the same name.
32475 Included documents are inserted starting on a new page and ending with
32479 \begin_layout Standard
32480 If you are only working on a certain chapter of a large document and want
32481 to save compiling time, you can put each included file into a branch.
32485 \begin_layout Plain Layout
32486 Branches are described in section
32499 By enabling/disabling branches you can decide what included files will
32500 appear in the output.
32503 \begin_layout Standard
32504 \begin_inset Note Greyedout
32507 \begin_layout Plain Layout
32512 Due to a bug in LyX the LaTeX command
32518 can currently not be used as an alternative to decide what files should
32527 \begin_layout Standard
32528 \begin_inset Note Greyedout
32531 \begin_layout Plain Layout
32536 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32537 w the document in case the child document uses another document class than
32538 the master document as this will lead to unexpected outputs.
32546 \begin_layout Description
32547 Input This method is very similar to the Include method.
32548 The differences are:
32552 \begin_layout Itemize
32553 Input files don't start with a new page and don't end with a page break.
32556 \begin_layout Itemize
32557 Input files can be previewed in LyX when
32560 \begin_inset space ~
32565 is enabled in LyX's preferences under
32568 \begin_inset space ~
32572 \begin_inset space ~
32575 feel\SpecialChar \menuseparator
32581 \begin_layout Itemize
32592 \begin_layout Standard
32593 Here is a child document inserted using
32598 \begin_inset CommandInset include
32600 filename "DummyDocument2.lyx"
32607 \begin_layout Description
32608 Verbatim With this method every text file can be included.
32609 The file is shown in the output with its source code; no command used in
32610 the text is invoked.
32611 You can use the option
32613 Mark spaces in output
32615 that displays the character
32616 \begin_inset Quotes eld
32623 \begin_layout Plain Layout
32633 \begin_inset Quotes erd
32636 for every space character in the source code.
32637 The difference from the method via the menu
32639 Insert\SpecialChar \menuseparator
32640 File\SpecialChar \menuseparator
32642 \begin_inset space ~
32647 is that the document content is not shown in LyX.
32650 \begin_layout Standard
32651 Here is a child document inserted as Verbatim:
32652 \begin_inset CommandInset include
32653 LatexCommand verbatiminput
32654 filename "DummyTextDocument.txt"
32659 \begin_inset VSpace bigskip
32662 Here is a child document inserted as Verbatim using the
32664 Mark spaces in output
32667 \begin_inset CommandInset include
32668 LatexCommand verbatiminput*
32669 filename "DummyTextDocument.txt"
32676 \begin_layout Standard
32677 \begin_inset VSpace bigskip
32683 \begin_layout Standard
32684 \begin_inset Note Greyedout
32687 \begin_layout Plain Layout
32692 As you can see in the examples above, the text of the documents included
32697 is not broken at the end of the document lines.
32705 \begin_layout Description
32706 Listings This type is described in chapter
32707 \begin_inset space ~
32711 \begin_inset CommandInset ref
32713 reference "cha:Program-Code-Listings"
32720 \begin_layout Standard
32721 \begin_inset Note Greyedout
32724 \begin_layout Plain Layout
32729 Including the same document twice in a document using different methods
32730 could cause LaTeX-problems.
32738 \begin_layout Chapter
32739 Program Code Listings
32740 \begin_inset CommandInset label
32742 name "cha:Program-Code-Listings"
32747 \begin_inset Index idx
32750 \begin_layout Plain Layout
32757 \begin_inset Index idx
32760 \begin_layout Plain Layout
32767 \begin_inset Index idx
32770 \begin_layout Plain Layout
32779 \begin_layout Standard
32780 To include and typeset program code you can use the
32784 inset that can be inserted via the menu
32786 Insert\SpecialChar \menuseparator
32795 \begin_inset Index idx
32798 \begin_layout Plain Layout
32799 LaTeX-packages ! listings
32804 provides a powerful and flexible way to insert program source code into
32808 \begin_layout Standard
32809 Right-clicking on a listings inset opens the context menu containing where
32810 you can set the listings format.
32813 \begin_layout Standard
32814 By default, a listing starts a new paragraph in the output.
32815 The placement option
32818 \begin_inset space ~
32823 prints the listing inline like this:
32824 \begin_inset listings
32825 lstparams "language={C++}"
32829 \begin_layout Plain Layout
32837 \begin_inset Newline newline
32844 creates a listings float where you can specify the placement options
32845 \begin_inset Quotes eld
32853 \begin_inset Quotes erd
32857 \begin_inset Quotes eld
32865 \begin_inset Quotes erd
32869 \begin_inset Quotes eld
32877 \begin_inset Quotes erd
32881 \begin_inset Quotes eld
32889 \begin_inset Quotes erd
32892 corresponding to the float placement options described in section
32893 \begin_inset space ~
32897 \begin_inset CommandInset ref
32899 reference "sec:Float-Placement"
32904 The placement options can be mixed and are inserted without any separation,
32906 \begin_inset space \thinspace{}
32910 \begin_inset space \space{}
32914 \begin_inset Quotes eld
32922 \begin_inset Quotes erd
32927 \begin_inset Quotes eld
32931 \begin_inset Quotes erd
32934 has sometimes no effect, but you don't need to use the
32938 option in this case as also non-float listings can have captions and be
32942 \begin_layout Standard
32943 You can add captions to listings with the menu
32945 Insert\SpecialChar \menuseparator
32949 Listings can be referenced like floats: Listing
32950 \begin_inset space ~
32954 \begin_inset CommandInset ref
32956 reference "lst:Example-Listing"
32963 \begin_layout Standard
32964 \begin_inset listings
32965 lstparams "language=Python"
32969 \begin_layout Plain Layout
32971 \begin_inset Caption
32973 \begin_layout Plain Layout
32974 \begin_inset CommandInset label
32976 name "lst:Example-Listing"
32980 Example Listing float
32985 # Example listing float
32988 \begin_layout Plain Layout
32993 \begin_layout Plain Layout
32995 'this is a python function'
32998 \begin_layout Plain Layout
33008 \begin_layout Standard
33009 When you have set a programming language in the listings dialog, the keywords
33010 of this language will be recognized and specially typeset in the output.
33011 In the example listings the Python keyword
33012 \begin_inset Quotes eld
33016 \begin_inset Quotes erd
33019 is recognized and printed bold in the output.
33022 \begin_layout Standard
33023 \begin_inset Note Greyedout
33026 \begin_layout Plain Layout
33031 If you don't get bold keywords when using typewriter fonts, your
33035 font probably doesn't provide a bold shape.
33036 In this case select a different one in the menu
33038 Document\SpecialChar \menuseparator
33039 Settings\SpecialChar \menuseparator
33051 provide bold shapes.)
33059 \begin_layout Standard
33063 \begin_inset space ~
33068 of the listings dialog you can specify the line numbering style.
33069 You can insert a number to specify which lines are numbered in the field
33076 \begin_inset space \thinspace{}
33080 \begin_inset space \space{}
33084 \begin_inset Quotes eld
33088 \begin_inset Quotes erd
33091 , only every 3rd line will be numbered.
33094 \begin_layout Standard
33095 You can furthermore specify a range of lines; only these will then appear
33099 Extended character table
33101 should be used when you use national characters like the German umlauts
33103 \begin_inset Newline newline
33106 Here is an example listing with left line numbering, step
33107 \begin_inset Quotes eld
33111 \begin_inset Quotes erd
33115 \begin_inset Quotes eld
33119 \begin_inset Quotes erd
33123 \begin_inset Quotes eld
33126 Extended character table
33127 \begin_inset Quotes erd
33131 \begin_inset Quotes eld
33135 \begin_inset space ~
33139 \begin_inset space ~
33143 \begin_inset Quotes erd
33147 \begin_inset space \thinspace{}
33151 \begin_inset space \thinspace{}
33157 \begin_layout Standard
33158 \begin_inset listings
33159 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33163 \begin_layout Plain Layout
33168 \begin_layout Plain Layout
33170 'this is a python function'
33173 \begin_layout Plain Layout
33178 \begin_layout Plain Layout
33183 \begin_layout Plain Layout
33185 'This is a German word: Tschüß'
33188 \begin_layout Plain Layout
33193 \begin_layout Plain Layout
33198 \begin_layout Plain Layout
33200 'this is a python function'
33203 \begin_layout Plain Layout
33213 \begin_layout Standard
33214 When you have tabulators in your listing, you can specify the number of
33215 characters that are spanned by a tabulator in the field
33218 \begin_inset space ~
33226 \begin_layout Standard
33227 \begin_inset Note Greyedout
33230 \begin_layout Plain Layout
33235 Due to a bug in the
33239 package the line numbering is shifted by a line by every previous listing.
33240 That's the reason why the lines 2 and 5 are numbered in the above listing
33241 and not the lines 3 and 6.
33249 \begin_layout Standard
33250 \begin_inset VSpace bigskip
33256 \begin_layout Standard
33257 It is also possible to print lines from a file as listing.
33258 To do this, use the menu
33260 Insert\SpecialChar \menuseparator
33261 File\SpecialChar \menuseparator
33264 and choose the type
33272 \begin_layout Plain Layout
33273 The other child document types are described in section
33274 \begin_inset space ~
33278 \begin_inset CommandInset ref
33280 reference "sec:Child-Documents"
33289 In the child document dialog you can specify the listing parameters in
33291 To show a list of all available parameters, type in a question mark
33292 \begin_inset Quotes eld
33296 \begin_inset Quotes erd
33302 \begin_layout Standard
33303 To reference child document listings, write a label text into the corresponding
33304 field of the child document dialog.
33305 The label can then be referenced using the menu
33307 Insert\SpecialChar \menuseparator
33313 \begin_layout Standard
33315 \begin_inset space ~
33319 \begin_inset CommandInset ref
33321 reference "lst:file-listing"
33325 is an example for a listing of a file; there the lines 10
33326 \begin_inset space \thinspace{}
33330 \begin_inset space \thinspace{}
33333 15 of this LyX file are listed.
33336 \begin_layout Standard
33337 \begin_inset CommandInset include
33338 LatexCommand lstinputlisting
33339 filename "EmbeddedObjects.lyx"
33340 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33347 \begin_layout Standard
33348 \begin_inset VSpace bigskip
33354 \begin_layout Standard
33355 Inserting a formula into a listing can be done the following way:
33358 \begin_layout Enumerate
33359 Open the listings dialog and add
33360 \begin_inset Newline newline
33368 \begin_inset Newline newline
33371 to the field of the
33378 \begin_layout Enumerate
33379 Create a formula outside the listing
33382 \begin_layout Enumerate
33383 Copy the content of the formula (not the formula inset) to the clipboard
33393 \begin_layout Enumerate
33394 In the listing write
33395 \begin_inset Quotes eld
33403 \begin_inset Quotes erd
33406 and copy from the clipboard between the dollar-signs (shortcut
33415 \begin_layout Standard
33416 \begin_inset listings
33417 lstparams "language=Python,mathescape=true"
33421 \begin_layout Plain Layout
33423 \begin_inset Caption
33425 \begin_layout Plain Layout
33426 Example Listing float containing a formula
33431 # Example listing float
33434 \begin_layout Plain Layout
33439 \begin_layout Plain Layout
33452 \begin_layout Plain Layout
33462 \begin_layout Standard
33463 \begin_inset VSpace bigskip
33469 \begin_layout Standard
33470 Global listings settings can be set in the
33472 Document\SpecialChar \menuseparator
33473 Settings\SpecialChar \menuseparator
33477 To get there a list of available options, type in a question mark
33478 \begin_inset Quotes eld
33482 \begin_inset Quotes erd
33488 \begin_inset space ~
33496 \begin_layout Standard
33497 For more information about the
33501 package, we refer to its documentation
33502 \begin_inset CommandInset citation
33511 \begin_layout Standard
33512 \begin_inset Newpage newpage
33518 \begin_layout Chapter
33520 Units available in LyX
33521 \begin_inset Index idx
33524 \begin_layout Plain Layout
33531 \begin_inset CommandInset label
33533 name "cha:Units-available-in"
33540 \begin_layout Standard
33541 To understand the units described in this documentation, Table
33542 \begin_inset space ~
33546 \begin_inset CommandInset ref
33548 reference "tab:Units"
33552 explains all units available in LyX.
33555 \begin_layout Standard
33556 \begin_inset Float table
33562 \begin_layout Plain Layout
33563 \begin_inset Caption
33565 \begin_layout Plain Layout
33566 \begin_inset CommandInset label
33580 \begin_layout Plain Layout
33581 \begin_inset VSpace medskip
33587 \begin_layout Plain Layout
33589 \begin_inset Tabular
33590 <lyxtabular version="3" rows="20" columns="2">
33591 <features tabularvalignment="middle">
33592 <column alignment="center" valignment="top" width="0">
33593 <column alignment="center" valignment="top" width="0">
33595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33598 \begin_layout Plain Layout
33604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33607 \begin_layout Plain Layout
33615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33618 \begin_layout Plain Layout
33624 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33627 \begin_layout Plain Layout
33635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33638 \begin_layout Plain Layout
33644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33647 \begin_layout Plain Layout
33655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33658 \begin_layout Plain Layout
33664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33667 \begin_layout Plain Layout
33675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33678 \begin_layout Plain Layout
33684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33687 \begin_layout Plain Layout
33689 \begin_inset space \thinspace{}
33693 \begin_inset space \thinspace{}
33703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33706 \begin_layout Plain Layout
33712 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33715 \begin_layout Plain Layout
33717 \begin_inset space \thinspace{}
33721 \begin_inset space \thinspace{}
33731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33734 \begin_layout Plain Layout
33740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33743 \begin_layout Plain Layout
33744 scaled point (65536
33745 \begin_inset space \thinspace{}
33749 \begin_inset space \thinspace{}
33759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33762 \begin_layout Plain Layout
33768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33771 \begin_layout Plain Layout
33773 \begin_inset space \thinspace{}
33777 \begin_inset space \thinspace{}
33787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33790 \begin_layout Plain Layout
33796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33799 \begin_layout Plain Layout
33801 \begin_inset space \thinspace{}
33805 \begin_inset Formula $\approx$
33809 \begin_inset space \thinspace{}
33819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33822 \begin_layout Plain Layout
33828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33831 \begin_layout Plain Layout
33833 \begin_inset space \thinspace{}
33837 \begin_inset space \thinspace{}
33847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33850 \begin_layout Plain Layout
33856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33859 \begin_layout Plain Layout
33860 % of original image width
33867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33870 \begin_layout Plain Layout
33876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33879 \begin_layout Plain Layout
33887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33890 \begin_layout Plain Layout
33896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33899 \begin_layout Plain Layout
33907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33910 \begin_layout Plain Layout
33916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33919 \begin_layout Plain Layout
33927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33930 \begin_layout Plain Layout
33936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33939 \begin_layout Plain Layout
33947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33950 \begin_layout Plain Layout
33956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33959 \begin_layout Plain Layout
33967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33970 \begin_layout Plain Layout
33976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33979 \begin_layout Plain Layout
33987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33990 \begin_layout Plain Layout
33996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33999 \begin_layout Plain Layout
34011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34014 \begin_layout Plain Layout
34020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34023 \begin_layout Plain Layout
34035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34038 \begin_layout Plain Layout
34044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34047 \begin_layout Plain Layout
34049 \begin_inset space \thinspace{}
34053 \begin_inset space \thinspace{}
34074 \begin_layout Chapter
34075 Output File Formats with Graphics
34076 \begin_inset CommandInset label
34078 name "cha:Output-File-Formats"
34085 \begin_layout Section
34087 \begin_inset Index idx
34090 \begin_layout Plain Layout
34097 \begin_inset Index idx
34100 \begin_layout Plain Layout
34105 \begin_layout Plain Layout
34116 \begin_layout Plain Layout
34131 \begin_layout Standard
34132 This file type has the extension
34133 \begin_inset Quotes eld
34141 \begin_inset Quotes erd
34146 \begin_inset Quotes eld
34150 \begin_inset Quotes erd
34153 (DVI), because it is completely portable; you can move them from one machine
34154 to another without needing to do any sort of conversion.
34155 At the time when this file-format was developed, this was no matter of
34157 DVIs are used for quick previews and as pre-stage for other output formats,
34161 \begin_layout Standard
34162 \begin_inset Note Greyedout
34165 \begin_layout Plain Layout
34170 DVI-files do not contain images; they will only be a linked.
34175 So don't forget this, if you move your
34179 file to another computer.
34180 This property can also slow down your computer when you view the DVI, because
34181 the DVI-viewer has to convert the image in the background to make it visible
34182 when you scroll in the DVI.
34183 So it is recommended that you use PDF for files with many images.
34186 \begin_layout Standard
34187 You can export your document to DVI by using the menu
34189 File\SpecialChar \menuseparator
34190 Export\SpecialChar \menuseparator
34194 You can view your document as DVI via the
34198 menu or by using the toolbar button
34199 \begin_inset Graphics
34200 filename ../images/buffer-view_dvi.png
34202 scaleBeforeRotation
34209 \begin_layout Section
34211 \begin_inset CommandInset label
34213 name "sec:PostScript"
34218 \begin_inset Index idx
34221 \begin_layout Plain Layout
34222 File Formats ! PostScript
34228 \begin_inset Index idx
34231 \begin_layout Plain Layout
34236 \begin_layout Plain Layout
34247 \begin_layout Plain Layout
34262 \begin_layout Standard
34263 This file type has the extension
34264 \begin_inset Quotes eld
34272 \begin_inset Quotes erd
34276 PostScript was developed by the company
34280 as a printer language.
34281 The file therefore contains commands that the printer uses to print the
34283 PostScript can be seen as a
34284 \begin_inset Quotes eld
34287 programming language
34288 \begin_inset Quotes erd
34291 ; you can calculate with it and draw diagrams and images
34295 \begin_layout Plain Layout
34296 If you are interested to learn more about this, have a look at the LaTeX-package
34302 \begin_inset CommandInset citation
34314 Due to this ability, the files are often bigger than PDFs.
34317 \begin_layout Standard
34318 PostScript can only contain images in the format
34319 \begin_inset Quotes eld
34322 Encapsulated PostScript
34323 \begin_inset Quotes erd
34326 (EPS, file extension
34327 \begin_inset Quotes eld
34335 \begin_inset Quotes erd
34339 As LyX allows you to use any known image format in your document, it has
34340 to convert images in the background to EPS.
34342 \begin_inset space ~
34346 \begin_inset space ~
34349 images in your document, LyX has to do 50
34350 \begin_inset space ~
34353 conversions whenever you view or export your document.
34354 This will slow down your work flow with LyX drastically.
34355 So if you plan to use PostScript, you can insert your images directly as
34356 EPS to avoid this problem.
34359 \begin_layout Standard
34360 You can export your document to PostScript using the menu
34362 File\SpecialChar \menuseparator
34363 Export\SpecialChar \menuseparator
34367 You can view your document as PostScript via the
34371 menu or by using the toolbar button
34372 \begin_inset Graphics
34373 filename ../images/buffer-view_ps.png
34375 scaleBeforeRotation
34382 \begin_layout Section
34384 \begin_inset Index idx
34387 \begin_layout Plain Layout
34394 \begin_inset Index idx
34397 \begin_layout Plain Layout
34406 \begin_layout Standard
34407 This file type has the extension
34408 \begin_inset Quotes eld
34416 \begin_inset Quotes erd
34421 \begin_inset Quotes eld
34424 Portable Document Format
34425 \begin_inset Quotes erd
34428 (PDF) was developed by
34432 as a derivative of PostScript.
34433 It is more compressed and it uses fewer commands than PostScript.
34435 \begin_inset Quotes eld
34439 \begin_inset Quotes erd
34442 implies, it can be processed at any computer system and the printed output
34443 looks exactly the same.
34446 \begin_layout Standard
34447 PDF can contain images in its own PDF format, in the format
34448 \begin_inset Quotes eld
34451 Joint Photographic Experts Group
34452 \begin_inset Quotes erd
34455 (JPG, file extension
34456 \begin_inset Quotes eld
34464 \begin_inset Quotes erd
34468 \begin_inset Quotes eld
34476 \begin_inset Quotes erd
34479 ), and in the format
34480 \begin_inset Quotes eld
34483 Portable Network Graphics
34484 \begin_inset Quotes erd
34487 (PNG, file extension
34488 \begin_inset Quotes eld
34496 \begin_inset Quotes erd
34500 Nevertheless you can use any other image format, because LyX converts them
34501 in the background to one of these formats.
34502 But as described in the section about PostScript, the image conversion
34503 will slow down your work flow.
34504 So it is recommended that you use images in one of the three mentioned
34508 \begin_layout Standard
34509 You can export your document to PDF via the menu
34511 File\SpecialChar \menuseparator
34514 in three different ways:
34517 \begin_layout Description
34519 \begin_inset space ~
34522 (ps2pdf) This uses the program
34526 that creates a PDF from a PostScript-version of your file.
34527 The PostScript-version is produced by the program
34531 which uses a DVI-version as intermediate step.
34532 So this export variant consists of three conversions.
34535 \begin_layout Description
34537 \begin_inset space ~
34540 (dvipdfm) This uses the program
34544 that converts your file in the background to DVI and in a second step to
34548 \begin_layout Description
34550 \begin_inset space ~
34553 (pdflatex) This uses the program
34557 that converts your file directly to PDF.
34560 \begin_layout Standard
34561 It is recommended that you use
34564 \begin_inset space ~
34573 supports all features of actual PDF-versions, is quick and works stable.
34578 is not under development and therefore a bit outdated.
34581 \begin_layout Standard
34582 You can view your document as PDF via the
34586 menu or by using the toolbar button
34587 \begin_inset Graphics
34588 filename ../images/buffer-view_pdf2.png
34590 scaleBeforeRotation
34601 \begin_inset space ~
34609 \begin_layout Chapter
34610 Explanation of Equation
34611 \begin_inset space ~
34615 \begin_inset CommandInset ref
34622 \begin_inset CommandInset label
34624 name "cha:Explanation-of-Equation"
34631 \begin_layout Standard
34632 We can calculate the total width of
34637 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34643 \begin_layout Standard
34644 \begin_inset Formula \begin{equation}
34645 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}
34650 \begin_inset Formula $W_{g\, n}$
34653 is the given width of all cells,
34659 is the LaTeX-length between the cell text and the cell border (its default
34661 \begin_inset space \thinspace{}
34671 is the thickness of the cell border line, the default is 0.4
34672 \begin_inset space \thinspace{}
34678 \begin_layout Standard
34680 \begin_inset space ~
34684 \begin_inset CommandInset ref
34686 reference "eq:Wtot_n"
34690 , the total width of a multicolumn
34691 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34697 \begin_layout Standard
34698 \begin_inset Formula \begin{equation}
34699 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34706 \begin_layout Standard
34707 By setting equation
34708 \begin_inset space ~
34712 \begin_inset CommandInset ref
34714 reference "eq:Wtot_n"
34719 \begin_inset CommandInset ref
34721 reference "eq:Wtot_mult"
34725 equal we can calculate the needed given width
34726 \begin_inset Formula $W_{g\, n}$
34733 columns are spanned, so that each column has a total width of
34734 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34740 \begin_layout Standard
34741 \begin_inset Formula \begin{equation}
34742 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34749 \begin_layout Bibliography
34750 \labelwidthstring Bibliography
34751 \begin_inset CommandInset bibitem
34752 LatexCommand bibitem
34753 key "latexcompanion"
34757 Frank Mittelbach and Michel Goossens:
34759 The LaTeX Companion Second Edition.
34762 Addison-Wesley, 2004
34765 \begin_layout Bibliography
34766 \labelwidthstring Bibliography
34767 \begin_inset CommandInset bibitem
34768 LatexCommand bibitem
34773 Helmut Kopka and Patrick W.
34776 A Guide to LaTeX Fourth Edition.
34779 Addison-Wesley, 2003
34782 \begin_layout Bibliography
34783 \labelwidthstring Bibliography
34784 \begin_inset CommandInset bibitem
34785 LatexCommand bibitem
34792 LaTeX: A Document Preparation System.
34795 Addison-Wesley, second edition, 1994
34798 \begin_layout Bibliography
34799 \labelwidthstring Bibliography
34800 \begin_inset CommandInset bibitem
34801 LatexCommand bibitem
34806 Documentation of the LaTeX-package
34809 \begin_inset CommandInset href
34812 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34819 \begin_inset Index idx
34822 \begin_layout Plain Layout
34823 LaTeX-packages ! booktabs
34831 \begin_layout Bibliography
34832 \labelwidthstring Bibliography
34833 \begin_inset CommandInset bibitem
34834 LatexCommand bibitem
34839 Documentation of the LaTeX-package
34842 \begin_inset CommandInset href
34845 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34852 \begin_inset Index idx
34855 \begin_layout Plain Layout
34856 LaTeX-packages ! caption
34864 \begin_layout Bibliography
34865 \labelwidthstring Bibliography
34866 \begin_inset CommandInset bibitem
34867 LatexCommand bibitem
34872 Documentation of the LaTeX-package
34875 \begin_inset CommandInset href
34878 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34885 \begin_inset Index idx
34888 \begin_layout Plain Layout
34889 LaTeX-packages ! endfloat
34897 \begin_layout Bibliography
34898 \labelwidthstring Bibliography
34899 \begin_inset CommandInset bibitem
34900 LatexCommand bibitem
34905 Documentation of the LaTeX-package
34908 \begin_inset CommandInset href
34911 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34918 \begin_inset Index idx
34921 \begin_layout Plain Layout
34922 LaTeX-packages ! wrapfig
34926 \begin_layout Plain Layout
34943 \begin_layout Bibliography
34944 \labelwidthstring Bibliography
34945 \begin_inset CommandInset bibitem
34946 LatexCommand bibitem
34951 Documentation of the LaTeX-package
34954 \begin_inset CommandInset href
34957 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34964 \begin_inset Index idx
34967 \begin_layout Plain Layout
34968 LaTeX-packages ! footmisc
34976 \begin_layout Bibliography
34977 \labelwidthstring Bibliography
34978 \begin_inset CommandInset bibitem
34979 LatexCommand bibitem
34984 Documentation of the LaTeX-package
34987 \begin_inset CommandInset href
34990 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34997 \begin_inset Index idx
35000 \begin_layout Plain Layout
35001 LaTeX-packages ! hyperref
35009 \begin_layout Bibliography
35010 \labelwidthstring Bibliography
35011 \begin_inset CommandInset bibitem
35012 LatexCommand bibitem
35017 Documentation of the LaTeX-package
35020 \begin_inset CommandInset href
35023 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35030 \begin_inset Index idx
35033 \begin_layout Plain Layout
35034 LaTeX-packages ! hyperref
35042 \begin_layout Bibliography
35043 \labelwidthstring Bibliography
35044 \begin_inset CommandInset bibitem
35045 LatexCommand bibitem
35050 Documentation of the LaTeX-package
35053 \begin_inset CommandInset href
35056 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35063 \begin_inset Index idx
35066 \begin_layout Plain Layout
35067 LaTeX-packages ! KOMA-Script
35075 \begin_layout Bibliography
35076 \labelwidthstring Bibliography
35077 \begin_inset CommandInset bibitem
35078 LatexCommand bibitem
35083 Documentation of the LaTeX-package
35086 \begin_inset CommandInset href
35089 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35096 \begin_inset Index idx
35099 \begin_layout Plain Layout
35100 LaTeX-packages ! listings
35108 \begin_layout Bibliography
35109 \labelwidthstring Bibliography
35110 \begin_inset CommandInset bibitem
35111 LatexCommand bibitem
35116 Documentation of the LaTeX-package
35119 \begin_inset CommandInset href
35122 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35129 \begin_inset Index idx
35132 \begin_layout Plain Layout
35133 LaTeX-packages ! marginnote
35141 \begin_layout Bibliography
35142 \labelwidthstring Bibliography
35143 \begin_inset CommandInset bibitem
35144 LatexCommand bibitem
35149 Web page of the LaTeX-package
35152 \begin_inset CommandInset href
35155 target "http://tug.org/PSTricks/"
35162 \begin_inset Index idx
35165 \begin_layout Plain Layout
35166 LaTeX-packages ! PSTricks
35174 \begin_layout Bibliography
35175 \labelwidthstring Bibliography
35176 \begin_inset CommandInset bibitem
35177 LatexCommand bibitem
35182 Documentation of the LaTeX-package
35185 \begin_inset CommandInset href
35188 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35195 \begin_inset Index idx
35198 \begin_layout Plain Layout
35199 LaTeX-packages ! sidecap
35207 \begin_layout Bibliography
35208 \labelwidthstring Bibliography
35209 \begin_inset CommandInset bibitem
35210 LatexCommand bibitem
35215 Documentation of the LaTeX-package
35218 \begin_inset CommandInset href
35221 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35228 \begin_inset Index idx
35231 \begin_layout Plain Layout
35232 LaTeX-packages ! prettyref
35240 \begin_layout Bibliography
35241 \labelwidthstring Bibliography
35242 \begin_inset CommandInset bibitem
35243 LatexCommand bibitem
35248 Documentation of the LaTeX-package
35251 \begin_inset CommandInset href
35254 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35261 \begin_inset Index idx
35264 \begin_layout Plain Layout
35265 LaTeX-packages ! refstyle
35273 \begin_layout Bibliography
35274 \labelwidthstring Bibliography
35275 \begin_inset CommandInset bibitem
35276 LatexCommand bibitem
35282 \begin_inset CommandInset href
35285 target "http://wiki.lyx.org/LyX/NewInLyX20"
35289 about new features in
35296 \begin_layout Standard
35297 \begin_inset CommandInset index_print
35298 LatexCommand printindex