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}, tableposition=top]{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}
126 % ------------------------------------
127 % used to check for needed LaTeX packages
130 % check for package arydshln
131 % used for tables with dashed lines
132 \newboolean{arydshln}
133 \IfFileExists{arydshln.sty}
134 {\usepackage{arydshln}
135 \setboolean{arydshln}{true}}
136 {\setboolean{arydshln}{false}}
138 % check for package marginnote
139 % used for margin notes
140 \newboolean{marginnote}
141 \IfFileExists{marginnote.sty}
142 {\usepackage{marginnote}
143 \let\marginpar\marginnote
144 \setboolean{marginnote}{true}}
145 {\setboolean{marginnote}{false}}
147 % check for package sidecap
148 % used for captions on the side
150 \IfFileExists{sidecap.sty}
151 {\usepackage{sidecap}
152 \setboolean{sidecap}{true}}
153 {\setboolean{sidecap}{false}}
155 % redefine the \LyX macro for PDF bookmarks
156 \def\LyX{\texorpdfstring{%
157 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
160 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
161 \use_default_options false
162 \maintain_unincluded_children false
168 \font_typewriter default
169 \font_default_family default
177 \default_output_format default
179 \bibtex_command default
180 \index_command default
184 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
185 \pdf_author "LyX Team, Uwe Stöhr"
186 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
187 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
189 \pdf_bookmarksnumbered true
190 \pdf_bookmarksopen true
191 \pdf_bookmarksopenlevel 1
192 \pdf_breaklinks false
196 \pdf_pdfusetitle false
197 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
207 \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"
1202 Two distorted images.
1203 Both images are in the image settings group named
1204 \begin_inset Quotes eld
1208 \begin_inset Quotes erd
1224 \begin_layout Standard
1225 \begin_inset Newpage newpage
1231 \begin_layout Section
1233 \begin_inset CommandInset label
1235 name "sec:Image-Formats"
1240 \begin_inset Index idx
1243 \begin_layout Plain Layout
1250 \begin_inset Index idx
1253 \begin_layout Plain Layout
1254 Figures ! Image Formats
1262 \begin_layout Standard
1263 You can insert images in any known file format.
1264 But as explained in appendix
1265 \begin_inset space ~
1269 \begin_inset CommandInset ref
1271 reference "cha:Output-File-Formats"
1275 , each output document format allows only a few image formats.
1276 LyX uses therefore the program
1280 in the background to convert the images to the right format.
1281 To increase your work flow by avoiding these conversions in the background,
1282 you can use only the image formats that can directly be embedded in the
1284 The output file formats are explained in appendix
1285 \begin_inset space ~
1289 \begin_inset CommandInset ref
1291 reference "cha:Output-File-Formats"
1298 \begin_layout Standard
1299 Similar to fonts there are two types of image formats:
1302 \begin_layout Description
1304 \begin_inset space ~
1307 images consist of pixel values, often in a compressed form.
1308 They are therefore not fully scalable and look pixelated in large zooms.
1309 Well-known bitmap image formats are
1310 \begin_inset Quotes eld
1313 Graphics Interchange Format
1314 \begin_inset Quotes erd
1317 (GIF, file extension
1318 \begin_inset Quotes eld
1326 \begin_inset Quotes erd
1330 \begin_inset Index idx
1333 \begin_layout Plain Layout
1338 \begin_layout Plain Layout
1349 \begin_layout Plain Layout
1362 \begin_inset Quotes eld
1365 Portable Network Graphics
1366 \begin_inset Quotes erd
1369 (PNG, file extension
1370 \begin_inset Quotes eld
1378 \begin_inset Quotes erd
1382 \begin_inset Index idx
1385 \begin_layout Plain Layout
1390 \begin_layout Plain Layout
1401 \begin_layout Plain Layout
1414 \begin_inset Quotes eld
1417 Joint Photographic Experts Group
1418 \begin_inset Quotes erd
1421 (JPG, file extension
1422 \begin_inset Quotes eld
1430 \begin_inset Quotes erd
1434 \begin_inset Quotes eld
1442 \begin_inset Quotes erd
1446 \begin_inset Index idx
1449 \begin_layout Plain Layout
1454 \begin_layout Plain Layout
1465 \begin_layout Plain Layout
1480 \begin_layout Description
1482 \begin_inset space ~
1485 images consist of vectors and can therefore be scaled to any size without
1487 The scaling ability is necessary if you want to create presentations, because
1488 presentations are always scaled by the video projector.
1489 Scaling is also useful for online documents to let the user zoom into diagrams.
1490 \begin_inset Newline newline
1493 Well-known scalable image formats are
1494 \begin_inset Quotes eld
1497 Scalable Vector Graphics
1498 \begin_inset Quotes erd
1501 (SVG, file extension
1502 \begin_inset Quotes eld
1510 \begin_inset Quotes erd
1514 \begin_inset Index idx
1517 \begin_layout Plain Layout
1522 \begin_layout Plain Layout
1533 \begin_layout Plain Layout
1546 \begin_inset Quotes eld
1549 Encapsulated PostScript
1550 \begin_inset Quotes erd
1553 (EPS, file extension
1554 \begin_inset Quotes eld
1562 \begin_inset Quotes erd
1566 \begin_inset Index idx
1569 \begin_layout Plain Layout
1574 \begin_layout Plain Layout
1585 \begin_layout Plain Layout
1598 \begin_inset Quotes eld
1601 Portable Document Format
1602 \begin_inset Quotes erd
1605 (PDF, file extension
1606 \begin_inset Quotes eld
1614 \begin_inset Quotes erd
1618 \begin_inset Index idx
1621 \begin_layout Plain Layout
1628 \begin_inset Quotes eld
1632 \begin_inset Quotes erd
1635 (WMF, file extension
1636 \begin_inset Quotes eld
1644 \begin_inset Quotes erd
1648 \begin_inset Index idx
1651 \begin_layout Plain Layout
1656 \begin_layout Plain Layout
1667 \begin_layout Plain Layout
1681 \begin_inset Quotes eld
1685 \begin_inset Quotes erd
1688 , because you can convert any bitmap image to a PDF or EPS-image and the
1689 result will still be a bitmap image.
1690 In such cases only a header with the image properties is added to the original
1695 \begin_layout Plain Layout
1696 In the case of PDF, the original image is additionally compressed.
1702 The PDF-files generated by
1706 are for example bitmap images.
1709 \begin_layout Standard
1710 Normally it is not possible to convert a bitmap image into a scalable one,
1712 Only the image formats PDF and EPS can directly be embedded to PDF and
1713 PostScript output files, respectively.
1714 SVG and WMF-images are recalculated to bitmaps when the output file is
1715 generated because there is currently no adequate WMF/SVG
1716 \begin_inset Formula $\to$
1719 PDF/EPS converter available.
1722 \begin_layout Chapter
1724 \begin_inset Index idx
1727 \begin_layout Plain Layout
1736 \begin_layout Section
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1742 Table ! Introduction
1750 \begin_layout Standard
1751 You can insert a table using either the toolbar button
1752 \begin_inset Graphics
1753 filename ../images/tabular-insert.png
1761 Insert\SpecialChar \menuseparator
1765 The toolbar button offers you a graphical selection: move the mouse to
1766 set the column/row number of the table that should be created and then
1767 press a mouse button.
1768 When you use the menu to create a table, a dialog will appear, asking you
1769 for the number of rows and columns.
1770 \begin_inset Newline newline
1773 The default table has lines around any cell and the first row appears separated
1774 from the rest of the table.
1775 This separation occurs due to a double line: The cells of the first row
1776 have a line below them and the cells of the second row have a line above
1778 Here is an example table:
1781 \begin_layout Standard
1783 \begin_inset Tabular
1784 <lyxtabular version="3" rows="4" columns="4">
1785 <features tabularvalignment="middle">
1786 <column alignment="center" valignment="top" width="0">
1787 <column alignment="center" valignment="top" width="0">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1830 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1877 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1915 \begin_layout Plain Layout
1921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1924 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1935 \begin_layout Plain Layout
1950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1953 \begin_layout Plain Layout
1959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1962 \begin_layout Plain Layout
1968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1971 \begin_layout Plain Layout
1985 \begin_layout Section
1987 \begin_inset Index idx
1990 \begin_layout Plain Layout
1999 \begin_layout Standard
2000 You can alter a table by clicking on it with the right mouse button, which
2001 brings up the table dialog.
2002 Here you can adjust the settings of that cell and row/column respectively
2003 where the cursor is currently placed.
2004 Most of the dialog options also work on selections.
2005 This means if you select more cells, columns or rows, the action is done
2006 for the whole selection.
2007 Note that there is a difference between selecting the
2011 of the cell, and the cell itself.
2012 You can alter tables with the following tabs of the table dialog:
2015 \begin_layout Description
2019 \begin_inset space ~
2024 Here you can set the horizontal alignment and the width of the current
2026 When you have set a width you can also adjust the vertical alignment of
2028 A given width will allow the cell to have line breaks and multiple paragraphs
2029 of text, see section
2030 \begin_inset space ~
2034 \begin_inset CommandInset ref
2036 reference "sub:Multiple-Lines-in"
2041 If you set no width, the column is as wide as the content of the widest
2043 \begin_inset Newline newline
2046 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2048 \begin_inset space ~
2052 \begin_inset CommandInset ref
2054 reference "sub:Multicolumns"
2059 \begin_inset Newline newline
2062 The rotate check boxes rotate the current cell, a selection, or the whole
2063 table counter-clockwise by 90°.
2064 The rotation is not shown within LyX, only in the output.
2065 \begin_inset Newline newline
2069 \begin_inset Note Greyedout
2072 \begin_layout Plain Layout
2077 Not all DVI-viewers are able to display rotations.
2083 \begin_inset Newline newline
2086 It is also possible to enter a LaTeX-argument which is needed for special
2087 table formattings, see section
2088 \begin_inset space ~
2092 \begin_inset CommandInset ref
2094 reference "sub:Multicolumn-Calculations"
2099 \begin_inset CommandInset ref
2101 reference "sec:Colored-Tables"
2108 \begin_layout Description
2113 In this tab you can add and delete border lines for the current row/column.
2114 \begin_inset Newline newline
2117 Using the style option
2121 will convert the table to a formal table as described in section
2122 \begin_inset space ~
2126 \begin_inset CommandInset ref
2128 reference "sec:Formal-Tables"
2133 \begin_inset Newline newline
2136 You can also add here space to table rows as described in section
2137 \begin_inset space ~
2141 \begin_inset CommandInset ref
2143 reference "sub:Row-Spacing"
2150 \begin_layout Description
2155 This tab is to make a table a so called
2156 \begin_inset Quotes eld
2164 \begin_inset Quotes erd
2167 that can run over several pages.
2169 \begin_inset space ~
2173 \begin_inset CommandInset ref
2175 reference "sec:Longtables"
2180 \begin_inset CommandInset ref
2182 reference "sec:Special-Longtable-Issues"
2186 describe the longtable features in detail.
2189 \begin_layout Standard
2190 When the table dialog is open, you can move the cursor with the arrow keys
2191 from cell to cell and the property of the current cell will immediately
2192 be displayed in the dialog.
2195 \begin_layout Section
2197 \begin_inset Index idx
2200 \begin_layout Plain Layout
2209 \begin_layout Standard
2210 The table toolbar is an alternative to the table dialog to be able to alter
2212 It should normally appear at the bottom of LyX's main window when the cursor
2214 You can alternatively switch it on to appear always, by right-clicking
2215 in LyX's main menu bar.
2218 \begin_layout Standard
2219 The toolbar has the following icons:
2222 \begin_layout Labeling
2223 \labelwidthstring 00.00.0000
2224 \begin_inset Graphics
2225 filename ../images/tabular-feature_append-row.png
2230 adds a row below the current cell or selection
2233 \begin_layout Labeling
2234 \labelwidthstring 00.00.0000
2235 \begin_inset Graphics
2236 filename ../images/tabular-feature_append-column.png
2241 adds a column right beside the current cell or selection
2244 \begin_layout Labeling
2245 \labelwidthstring 00.00.0000
2246 \begin_inset Graphics
2247 filename ../images/tabular-feature_delete-row.png
2252 deletes the current row or selection
2255 \begin_layout Labeling
2256 \labelwidthstring 00.00.0000
2257 \begin_inset Graphics
2258 filename ../images/tabular-feature_delete-column.png
2263 deletes the current column or selection
2266 \begin_layout Labeling
2267 \labelwidthstring 00.00.0000
2268 \begin_inset Graphics
2269 filename ../images/tabular-feature_toggle-line-top.png
2274 adds a line at the top of the current cell / row or of a selection
2277 \begin_layout Labeling
2278 \labelwidthstring 00.00.0000
2279 \begin_inset Graphics
2280 filename ../images/tabular-feature_toggle-line-bottom.png
2285 adds a line at the bottom of the current cell / row or of a selection
2288 \begin_layout Labeling
2289 \labelwidthstring 00.00.0000
2290 \begin_inset Graphics
2291 filename ../images/tabular-feature_toggle-line-left.png
2296 adds a line at the left side of the current cell / row or of a selection
2299 \begin_layout Labeling
2300 \labelwidthstring 00.00.0000
2301 \begin_inset Graphics
2302 filename ../images/tabular-feature_toggle-line-right.png
2307 adds a line at the right side of the current cell / row or of a selection
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Graphics
2313 filename ../images/tabular-feature_set-all-lines.png
2318 adds lines around the current or selected cells - if the current cell no
2319 multicolumn cell this also affects the current row and column
2322 \begin_layout Labeling
2323 \labelwidthstring 00.00.0000
2324 \begin_inset Graphics
2325 filename ../images/tabular-feature_unset-all-lines.png
2330 deletes all lines of the current or selected cells - if the current cell
2331 no multicolumn cell this also affects the current row and column
2334 \begin_layout Labeling
2335 \labelwidthstring 00.00.0000
2336 \begin_inset Graphics
2337 filename ../images/tabular-feature_m-align-left.png
2342 left-aligns the content of the current cell / column
2345 \begin_layout Labeling
2346 \labelwidthstring 00.00.0000
2347 \begin_inset Graphics
2348 filename ../images/tabular-feature_m-align-center.png
2353 centers the content of the current cell / column horizontally
2356 \begin_layout Labeling
2357 \labelwidthstring 00.00.0000
2358 \begin_inset Graphics
2359 filename ../images/tabular-feature_m-align-right.png
2364 right-aligns the content of the current cell / column
2367 \begin_layout Labeling
2368 \labelwidthstring 00.00.0000
2369 \begin_inset Graphics
2370 filename ../images/tabular-feature_m-valign-top.png
2375 aligns the content of the current cell vertically to the top
2378 \begin_layout Labeling
2379 \labelwidthstring 00.00.0000
2380 \begin_inset Graphics
2381 filename ../images/tabular-feature_m-valign-middle.png
2386 centers the content of the current cell vertically
2389 \begin_layout Labeling
2390 \labelwidthstring 00.00.0000
2391 \begin_inset Graphics
2392 filename ../images/tabular-feature_m-valign-bottom.png
2397 aligns the content of the current cell vertically to the bottom
2400 \begin_layout Labeling
2401 \labelwidthstring 00.00.0000
2402 \begin_inset Graphics
2403 filename ../images/tabular-feature_set-rotate-cell.png
2408 rotates the current cell or selection counter-clockwise by 90°
2411 \begin_layout Labeling
2412 \labelwidthstring 00.00.0000
2413 \begin_inset Graphics
2414 filename ../images/tabular-feature_set-rotate-tabular.png
2419 rotates the whole table counter-clockwise by 90°
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Graphics
2425 filename ../images/tabular-feature_multicolumn.png
2430 sets the current cell or selection as a multicolumn
2433 \begin_layout Standard
2434 \begin_inset Note Greyedout
2437 \begin_layout Plain Layout
2442 For the output the vertical alignment of the first cell in a row is used
2443 for all following cells in the row.
2451 \begin_layout Section
2453 \begin_inset Index idx
2456 \begin_layout Plain Layout
2465 \begin_layout Standard
2466 Additionally to the table dialog and toolbar, the menu
2468 Edit\SpecialChar \menuseparator
2471 allows you to add and delete border lines for the current row/column and
2472 to set the current selection as multicolumn.
2473 The menu is only available when the cursor is inside a table.
2476 \begin_layout Section
2478 \begin_inset CommandInset label
2480 name "sec:Table-Floats"
2485 \begin_inset Index idx
2488 \begin_layout Plain Layout
2495 \begin_inset Index idx
2498 \begin_layout Plain Layout
2507 \begin_layout Standard
2508 For general explanations about floats, have a look at section
2509 \begin_inset space ~
2513 \begin_inset CommandInset ref
2515 reference "sec:FloatIntroduction"
2522 \begin_layout Standard
2523 \begin_inset Float table
2529 \begin_layout Plain Layout
2530 \begin_inset Caption
2532 \begin_layout Plain Layout
2533 \begin_inset CommandInset label
2535 name "tab:a table float"
2547 \begin_layout Plain Layout
2549 \begin_inset Tabular
2550 <lyxtabular version="3" rows="3" columns="3">
2551 <features tabularvalignment="middle">
2552 <column alignment="center" valignment="top" width="0pt">
2553 <column alignment="center" valignment="top" width="0pt">
2554 <column alignment="center" valignment="top" width="0pt">
2556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2559 \begin_layout Plain Layout
2574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2577 \begin_layout Plain Layout
2592 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2595 \begin_layout Plain Layout
2612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2615 \begin_layout Plain Layout
2630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2633 \begin_layout Plain Layout
2648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2651 \begin_layout Plain Layout
2668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2671 \begin_layout Plain Layout
2681 \begin_inset Formula $\int x^{2}dx$
2689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2692 \begin_layout Plain Layout
2702 \begin_inset Formula $\left[\begin{array}{cc}
2713 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2716 \begin_layout Plain Layout
2726 \begin_inset Formula $1+1=2$
2747 \begin_layout Standard
2748 Table floats can be inserted using the menu
2750 Insert\SpecialChar \menuseparator
2751 Float\SpecialChar \menuseparator
2754 or the toolbar button
2755 \begin_inset Graphics
2756 filename ../images/float-insert_table.png
2765 \begin_layout Standard
2766 The float appears as a collapsible box with a caption that has the label
2768 \begin_inset Quotes eld
2772 \begin_inset space ~
2776 \begin_inset Quotes erd
2779 (# is the actual table number).
2780 You can insert tables in the float above or below the caption.
2783 \begin_layout Standard
2785 \begin_inset space ~
2789 \begin_inset CommandInset ref
2791 reference "tab:a table float"
2795 is an example table within a table float.
2798 \begin_layout Standard
2799 Having the caption above the table is the common rule that is unfortunately
2800 not supported in LaTeX's standard classes.
2801 This means that, if you are using the document classes
2817 , there will be no space between the caption and the table.
2818 To insert the needed space, add the following option to the load command
2819 of the LaTeX-package
2824 \begin_inset Index idx
2827 \begin_layout Plain Layout
2828 LaTeX-packages ! caption
2833 in your document preamble
2837 \begin_layout Plain Layout
2838 For more information have a look at section
2839 \begin_inset space ~
2843 \begin_inset CommandInset ref
2845 reference "sec:Caption-Placement"
2857 \begin_layout Standard
2863 \begin_layout Standard
2868 , which is described in section
2869 \begin_inset space ~
2873 \begin_inset CommandInset ref
2875 reference "sec:Caption-Formatting"
2879 , is used to adjust the caption format.
2882 \begin_layout Standard
2883 \begin_inset Index idx
2886 \begin_layout Plain Layout
2887 References ! to Tables
2892 Tables can be cross-referenced in the text by referencing their label.
2893 To do this insert a label in the caption using the menu
2895 Insert\SpecialChar \menuseparator
2898 or the toolbar button
2899 \begin_inset Graphics
2900 filename ../images/label-insert.png
2907 You can now refer to the label using the menu
2909 Insert\SpecialChar \menuseparator
2911 \begin_inset space ~
2916 or the toolbar button
2917 \begin_inset Graphics
2918 filename ../images/dialog-show-new-inset_ref.png
2925 \begin_inset Newline newline
2928 Referencing is explained in detail in section
2929 \begin_inset space ~
2933 \begin_inset CommandInset ref
2935 reference "sec:Referencing-Floats"
2942 \begin_layout Section
2944 \begin_inset CommandInset label
2946 name "sec:Longtables"
2951 \begin_inset Index idx
2954 \begin_layout Plain Layout
2961 \begin_inset Index idx
2964 \begin_layout Plain Layout
2973 \begin_layout Standard
2974 If the table is too long to fit on one page, you can use the option
2977 \begin_inset space ~
2981 \begin_inset space ~
2990 of the table dialog to split the table automatically over more pages.
2991 Doing this enables the following options:
2994 \begin_layout Description
2995 Header: The current row is defined to be a header row that appears on all
2996 pages of the longtable; except for the first page, if
2999 \begin_inset space ~
3005 This is therefore called the main header.
3008 \begin_layout Description
3010 \begin_inset space ~
3013 header: The current row is defined to be a header row that appears on the
3014 first page of the longtable.
3017 \begin_layout Description
3018 Footer: The current row is defined to be a footer row that appears on all
3019 pages of the longtable; except for the last page, if
3022 \begin_inset space ~
3030 \begin_layout Description
3032 \begin_inset space ~
3035 footer: The current row is defined to be a footer row that appears on the
3036 last page of the longtable.
3039 \begin_layout Description
3040 Caption: The current row contains the table caption.
3041 The row is reset as single column and a caption is inserted.
3042 More about longtable captions is explained in sec.
3043 \begin_inset space \thinspace{}
3047 \begin_inset CommandInset ref
3049 reference "sub:Longtable-Captions"
3056 \begin_layout Standard
3057 You can also specify a row where the table is split.
3058 See the following longtable to see how it works:
3061 \begin_layout Standard
3063 \begin_inset Tabular
3064 <lyxtabular version="3" rows="69" columns="3">
3065 <features islongtable="true" longtabularalignment="center">
3066 <column alignment="left" valignment="top" width="0cm">
3067 <column alignment="left" valignment="top" width="0pt">
3068 <column alignment="center" valignment="top" width="0pt">
3069 <row endfirsthead="true">
3070 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3073 \begin_layout Plain Layout
3076 Example Phone List (ignore the names)
3081 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3084 \begin_layout Plain Layout
3090 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3093 \begin_layout Plain Layout
3100 <row endfirsthead="true">
3101 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3104 \begin_layout Plain Layout
3112 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3115 \begin_layout Plain Layout
3121 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3124 \begin_layout Plain Layout
3133 <row endhead="true">
3134 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3137 \begin_layout Plain Layout
3145 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3148 \begin_layout Plain Layout
3154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3157 \begin_layout Plain Layout
3164 <row endhead="true">
3165 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3168 \begin_layout Plain Layout
3176 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3179 \begin_layout Plain Layout
3185 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3188 \begin_layout Plain Layout
3197 <row endfoot="true">
3198 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3201 \begin_layout Plain Layout
3202 continued on next page
3207 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3210 \begin_layout Plain Layout
3216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3219 \begin_layout Plain Layout
3227 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3230 \begin_layout Plain Layout
3238 <cell alignment="center" valignment="top" usebox="none">
3241 \begin_layout Plain Layout
3247 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3250 \begin_layout Plain Layout
3258 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3261 \begin_layout Plain Layout
3269 <cell alignment="center" valignment="top" usebox="none">
3272 \begin_layout Plain Layout
3278 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3281 \begin_layout Plain Layout
3289 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3292 \begin_layout Plain Layout
3300 <cell alignment="center" valignment="top" usebox="none">
3303 \begin_layout Plain Layout
3309 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3312 \begin_layout Plain Layout
3320 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3323 \begin_layout Plain Layout
3331 <cell alignment="center" valignment="top" usebox="none">
3334 \begin_layout Plain Layout
3340 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3343 \begin_layout Plain Layout
3351 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3354 \begin_layout Plain Layout
3362 <cell alignment="center" valignment="top" usebox="none">
3365 \begin_layout Plain Layout
3371 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3374 \begin_layout Plain Layout
3382 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3385 \begin_layout Plain Layout
3393 <cell alignment="center" valignment="top" usebox="none">
3396 \begin_layout Plain Layout
3402 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3405 \begin_layout Plain Layout
3413 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3416 \begin_layout Plain Layout
3424 <cell alignment="center" valignment="top" usebox="none">
3427 \begin_layout Plain Layout
3433 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3436 \begin_layout Plain Layout
3444 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3447 \begin_layout Plain Layout
3455 <cell alignment="center" valignment="top" usebox="none">
3458 \begin_layout Plain Layout
3464 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3467 \begin_layout Plain Layout
3475 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3478 \begin_layout Plain Layout
3486 <cell alignment="center" valignment="top" usebox="none">
3489 \begin_layout Plain Layout
3495 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3498 \begin_layout Plain Layout
3506 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3509 \begin_layout Plain Layout
3517 <cell alignment="center" valignment="top" usebox="none">
3520 \begin_layout Plain Layout
3526 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3529 \begin_layout Plain Layout
3537 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3540 \begin_layout Plain Layout
3548 <cell alignment="center" valignment="top" usebox="none">
3551 \begin_layout Plain Layout
3557 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3560 \begin_layout Plain Layout
3568 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3571 \begin_layout Plain Layout
3579 <cell alignment="center" valignment="top" usebox="none">
3582 \begin_layout Plain Layout
3588 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3591 \begin_layout Plain Layout
3599 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3602 \begin_layout Plain Layout
3610 <cell alignment="center" valignment="top" usebox="none">
3613 \begin_layout Plain Layout
3619 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Plain Layout
3630 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3633 \begin_layout Plain Layout
3641 <cell alignment="center" valignment="top" usebox="none">
3644 \begin_layout Plain Layout
3650 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Plain Layout
3661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3664 \begin_layout Plain Layout
3672 <cell alignment="center" valignment="top" usebox="none">
3675 \begin_layout Plain Layout
3681 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Plain Layout
3692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3695 \begin_layout Plain Layout
3703 <cell alignment="center" valignment="top" usebox="none">
3706 \begin_layout Plain Layout
3712 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Plain Layout
3723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3726 \begin_layout Plain Layout
3734 <cell alignment="center" valignment="top" usebox="none">
3737 \begin_layout Plain Layout
3743 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Plain Layout
3754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3757 \begin_layout Plain Layout
3765 <cell alignment="center" valignment="top" usebox="none">
3768 \begin_layout Plain Layout
3774 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Plain Layout
3785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3788 \begin_layout Plain Layout
3796 <cell alignment="center" valignment="top" usebox="none">
3799 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3819 \begin_layout Plain Layout
3827 <cell alignment="center" valignment="top" usebox="none">
3830 \begin_layout Plain Layout
3836 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Plain Layout
3847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3850 \begin_layout Plain Layout
3858 <cell alignment="center" valignment="top" usebox="none">
3861 \begin_layout Plain Layout
3867 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Plain Layout
3878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3881 \begin_layout Plain Layout
3889 <cell alignment="center" valignment="top" usebox="none">
3892 \begin_layout Plain Layout
3898 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Plain Layout
3909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3912 \begin_layout Plain Layout
3920 <cell alignment="center" valignment="top" usebox="none">
3923 \begin_layout Plain Layout
3929 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3943 \begin_layout Plain Layout
3951 <cell alignment="center" valignment="top" usebox="none">
3954 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3974 \begin_layout Plain Layout
3982 <cell alignment="center" valignment="top" usebox="none">
3985 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Plain Layout
4002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4005 \begin_layout Plain Layout
4013 <cell alignment="center" valignment="top" usebox="none">
4016 \begin_layout Plain Layout
4022 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Plain Layout
4033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4036 \begin_layout Plain Layout
4044 <cell alignment="center" valignment="top" usebox="none">
4047 \begin_layout Plain Layout
4053 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Plain Layout
4064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4067 \begin_layout Plain Layout
4075 <cell alignment="center" valignment="top" usebox="none">
4078 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4098 \begin_layout Plain Layout
4106 <cell alignment="center" valignment="top" usebox="none">
4109 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4129 \begin_layout Plain Layout
4137 <cell alignment="center" valignment="top" usebox="none">
4140 \begin_layout Plain Layout
4146 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Plain Layout
4157 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4160 \begin_layout Plain Layout
4168 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4171 \begin_layout Plain Layout
4177 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Plain Layout
4188 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4191 \begin_layout Plain Layout
4197 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4200 \begin_layout Plain Layout
4206 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4209 \begin_layout Plain Layout
4217 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4220 \begin_layout Plain Layout
4228 <cell alignment="center" valignment="top" usebox="none">
4231 \begin_layout Plain Layout
4237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4240 \begin_layout Plain Layout
4248 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4251 \begin_layout Plain Layout
4259 <cell alignment="center" valignment="top" usebox="none">
4262 \begin_layout Plain Layout
4268 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4271 \begin_layout Plain Layout
4279 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4282 \begin_layout Plain Layout
4290 <cell alignment="center" valignment="top" usebox="none">
4293 \begin_layout Plain Layout
4299 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4302 \begin_layout Plain Layout
4310 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4313 \begin_layout Plain Layout
4321 <cell alignment="center" valignment="top" usebox="none">
4324 \begin_layout Plain Layout
4330 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4333 \begin_layout Plain Layout
4341 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4344 \begin_layout Plain Layout
4352 <cell alignment="center" valignment="top" usebox="none">
4355 \begin_layout Plain Layout
4361 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4364 \begin_layout Plain Layout
4372 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4375 \begin_layout Plain Layout
4383 <cell alignment="center" valignment="top" usebox="none">
4386 \begin_layout Plain Layout
4392 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4395 \begin_layout Plain Layout
4403 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4406 \begin_layout Plain Layout
4414 <cell alignment="center" valignment="top" usebox="none">
4417 \begin_layout Plain Layout
4423 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4426 \begin_layout Plain Layout
4434 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4437 \begin_layout Plain Layout
4445 <cell alignment="center" valignment="top" usebox="none">
4448 \begin_layout Plain Layout
4454 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4457 \begin_layout Plain Layout
4465 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4468 \begin_layout Plain Layout
4476 <cell alignment="center" valignment="top" usebox="none">
4479 \begin_layout Plain Layout
4485 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4488 \begin_layout Plain Layout
4496 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4499 \begin_layout Plain Layout
4507 <cell alignment="center" valignment="top" usebox="none">
4510 \begin_layout Plain Layout
4516 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4519 \begin_layout Plain Layout
4527 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4530 \begin_layout Plain Layout
4538 <cell alignment="center" valignment="top" usebox="none">
4541 \begin_layout Plain Layout
4547 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4550 \begin_layout Plain Layout
4558 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4561 \begin_layout Plain Layout
4569 <cell alignment="center" valignment="top" usebox="none">
4572 \begin_layout Plain Layout
4578 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4581 \begin_layout Plain Layout
4589 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4592 \begin_layout Plain Layout
4600 <cell alignment="center" valignment="top" usebox="none">
4603 \begin_layout Plain Layout
4609 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4612 \begin_layout Plain Layout
4620 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4623 \begin_layout Plain Layout
4631 <cell alignment="center" valignment="top" usebox="none">
4634 \begin_layout Plain Layout
4640 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4643 \begin_layout Plain Layout
4651 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4654 \begin_layout Plain Layout
4662 <cell alignment="center" valignment="top" usebox="none">
4665 \begin_layout Plain Layout
4671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4674 \begin_layout Plain Layout
4682 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4685 \begin_layout Plain Layout
4693 <cell alignment="center" valignment="top" usebox="none">
4696 \begin_layout Plain Layout
4702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4705 \begin_layout Plain Layout
4713 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4716 \begin_layout Plain Layout
4724 <cell alignment="center" valignment="top" usebox="none">
4727 \begin_layout Plain Layout
4733 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4736 \begin_layout Plain Layout
4744 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4747 \begin_layout Plain Layout
4755 <cell alignment="center" valignment="top" usebox="none">
4758 \begin_layout Plain Layout
4764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4767 \begin_layout Plain Layout
4775 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4778 \begin_layout Plain Layout
4786 <cell alignment="center" valignment="top" usebox="none">
4789 \begin_layout Plain Layout
4795 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4798 \begin_layout Plain Layout
4806 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4809 \begin_layout Plain Layout
4817 <cell alignment="center" valignment="top" usebox="none">
4820 \begin_layout Plain Layout
4826 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4829 \begin_layout Plain Layout
4837 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4840 \begin_layout Plain Layout
4848 <cell alignment="center" valignment="top" usebox="none">
4851 \begin_layout Plain Layout
4857 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4860 \begin_layout Plain Layout
4868 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4871 \begin_layout Plain Layout
4879 <cell alignment="center" valignment="top" usebox="none">
4882 \begin_layout Plain Layout
4888 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4891 \begin_layout Plain Layout
4899 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4902 \begin_layout Plain Layout
4910 <cell alignment="center" valignment="top" usebox="none">
4913 \begin_layout Plain Layout
4919 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4922 \begin_layout Plain Layout
4930 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4933 \begin_layout Plain Layout
4941 <cell alignment="center" valignment="top" usebox="none">
4944 \begin_layout Plain Layout
4950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4953 \begin_layout Plain Layout
4961 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4964 \begin_layout Plain Layout
4972 <cell alignment="center" valignment="top" usebox="none">
4975 \begin_layout Plain Layout
4981 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4984 \begin_layout Plain Layout
4992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4995 \begin_layout Plain Layout
5003 <cell alignment="center" valignment="top" usebox="none">
5006 \begin_layout Plain Layout
5012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5015 \begin_layout Plain Layout
5023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5026 \begin_layout Plain Layout
5034 <cell alignment="center" valignment="top" usebox="none">
5037 \begin_layout Plain Layout
5043 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5046 \begin_layout Plain Layout
5054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5057 \begin_layout Plain Layout
5065 <cell alignment="center" valignment="top" usebox="none">
5068 \begin_layout Plain Layout
5074 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5077 \begin_layout Plain Layout
5085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5088 \begin_layout Plain Layout
5096 <cell alignment="center" valignment="top" usebox="none">
5099 \begin_layout Plain Layout
5105 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5108 \begin_layout Plain Layout
5116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5119 \begin_layout Plain Layout
5127 <cell alignment="center" valignment="top" usebox="none">
5130 \begin_layout Plain Layout
5136 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5139 \begin_layout Plain Layout
5147 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5150 \begin_layout Plain Layout
5158 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5161 \begin_layout Plain Layout
5167 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5170 \begin_layout Plain Layout
5177 <row endlastfoot="true">
5178 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5181 \begin_layout Plain Layout
5187 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5190 \begin_layout Plain Layout
5196 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5199 \begin_layout Plain Layout
5214 \begin_layout Plain Layout
5218 addtocounter{table}{-1}
5224 \begin_inset Note Note
5227 \begin_layout Plain Layout
5228 See the first greyed-out note in section
5229 \begin_inset space ~
5233 \begin_inset CommandInset ref
5235 reference "sub:Longtable-Captions"
5239 for an explanation of this command.
5247 \begin_layout Subsection
5248 Footnotes in Longtables
5249 \begin_inset CommandInset label
5251 name "sub:Footnotes-in-Longtables"
5256 \begin_inset Index idx
5259 \begin_layout Plain Layout
5260 Longtables ! Footnotes
5268 \begin_layout Standard
5269 Footnotes can be inserted to every longtable cell.
5270 They appear at the bottom of the page where the table cell with the footnote
5273 \begin_inset space ~
5277 \begin_inset CommandInset ref
5279 reference "tab:DiffCaptions"
5283 has for example a footnote.
5286 \begin_layout Subsection
5288 \begin_inset Index idx
5291 \begin_layout Plain Layout
5292 Longtables ! Alignment
5300 \begin_layout Standard
5301 Longtables are by default centered.
5302 Unlike the alignment of the table columns and rows, the table alignment
5303 can currently not be changed in the table dialog.
5304 To change the alignment of longtables you have to change the value of the
5317 by inserting this line as TeX-Code before the corresponding longtable:
5320 \begin_layout Standard
5330 \begin_layout Standard
5331 where the value can have any of the units listed in Table
5332 \begin_inset space ~
5336 \begin_inset CommandInset ref
5338 reference "tab:Units"
5349 controls the horizontal distance from the left page border to the longtable,
5356 the distance from the right side.
5357 The default value for both lengths is
5363 , which is in this case the same as an horizontal fill in LyX.
5366 \begin_layout Standard
5367 The following longtable was left-aligned by setting
5374 \begin_inset space \thinspace{}
5381 \begin_layout Plain Layout
5395 \begin_layout Standard
5396 \begin_inset Tabular
5397 <lyxtabular version="3" rows="5" columns="5">
5398 <features islongtable="true" longtabularalignment="center">
5399 <column alignment="center" valignment="top" width="0">
5400 <column alignment="center" valignment="top" width="0">
5401 <column alignment="center" valignment="top" width="0">
5402 <column alignment="center" valignment="top" width="0">
5403 <column alignment="center" valignment="top" width="0">
5405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5408 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5417 \begin_layout Plain Layout
5423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5426 \begin_layout Plain Layout
5432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5435 \begin_layout Plain Layout
5441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5444 \begin_layout Plain Layout
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5464 \begin_layout Plain Layout
5470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5473 \begin_layout Plain Layout
5479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5482 \begin_layout Plain Layout
5488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5491 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5511 \begin_layout Plain Layout
5517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5520 \begin_layout Plain Layout
5526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5529 \begin_layout Plain Layout
5535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5538 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Plain Layout
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_layout Plain Layout
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5567 \begin_layout Plain Layout
5573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5576 \begin_layout Plain Layout
5582 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5585 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5605 \begin_layout Plain Layout
5611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5614 \begin_layout Plain Layout
5620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5623 \begin_layout Plain Layout
5629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5632 \begin_layout Plain Layout
5647 \begin_layout Plain Layout
5664 \begin_layout Plain Layout
5668 addtocounter{table}{-1}
5674 \begin_inset Note Note
5677 \begin_layout Plain Layout
5678 See the first greyed-out note in section
5679 \begin_inset space ~
5683 \begin_inset CommandInset ref
5685 reference "sub:Longtable-Captions"
5689 for an explanation of this command.
5697 \begin_layout Subsection
5699 \begin_inset Index idx
5702 \begin_layout Plain Layout
5703 Longtables ! Captions
5709 \begin_inset CommandInset label
5711 name "sub:Longtable-Captions"
5718 \begin_layout Standard
5719 A longtable cannot be put into a table float because floats can only be
5721 But the caption environment of floats can also be used for longtables when
5722 you use the longtable option
5726 as described in sec.
5727 \begin_inset space \thinspace{}
5731 \begin_inset CommandInset ref
5733 reference "sec:Longtables"
5738 Only one table row can contain the caption.
5741 \begin_layout Standard
5742 Here is a short longtable to see how it works:
5745 \begin_layout Standard
5746 \begin_inset Tabular
5747 <lyxtabular version="3" rows="6" columns="5">
5748 <features islongtable="true" longtabularalignment="center">
5749 <column alignment="center" valignment="top" width="0">
5750 <column alignment="center" valignment="top" width="0">
5751 <column alignment="center" valignment="top" width="0">
5752 <column alignment="center" valignment="top" width="0">
5753 <column alignment="center" valignment="top" width="0">
5754 <row caption="true">
5755 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5758 \begin_layout Plain Layout
5759 \begin_inset Caption
5761 \begin_layout Plain Layout
5762 Longtable with caption
5763 \begin_inset Argument
5766 \begin_layout Plain Layout
5782 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5785 \begin_layout Plain Layout
5791 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5794 \begin_layout Plain Layout
5800 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5803 \begin_layout Plain Layout
5809 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5812 \begin_layout Plain Layout
5820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5823 \begin_layout Plain Layout
5829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5832 \begin_layout Plain Layout
5838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5841 \begin_layout Plain Layout
5847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5850 \begin_layout Plain Layout
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5859 \begin_layout Plain Layout
5867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5870 \begin_layout Plain Layout
5876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5879 \begin_layout Plain Layout
5885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5888 \begin_layout Plain Layout
5894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5897 \begin_layout Plain Layout
5903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5906 \begin_layout Plain Layout
5914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5917 \begin_layout Plain Layout
5923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5926 \begin_layout Plain Layout
5932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5935 \begin_layout Plain Layout
5941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5944 \begin_layout Plain Layout
5950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5953 \begin_layout Plain Layout
5961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5964 \begin_layout Plain Layout
5970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5973 \begin_layout Plain Layout
5979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5982 \begin_layout Plain Layout
5988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5991 \begin_layout Plain Layout
5997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6000 \begin_layout Plain Layout
6008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6011 \begin_layout Plain Layout
6017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6020 \begin_layout Plain Layout
6026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6029 \begin_layout Plain Layout
6035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6038 \begin_layout Plain Layout
6044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6047 \begin_layout Plain Layout
6061 \begin_layout Standard
6062 \begin_inset VSpace medskip
6066 \begin_inset Note Greyedout
6069 \begin_layout Plain Layout
6073 \begin_inset space ~
6078 The table number is increased for for every longtable, even if you did
6079 not set a caption for it.
6080 For this reason you could have the case that e.
6081 \begin_inset space \thinspace{}
6085 \begin_inset space \space{}
6089 \begin_inset space ~
6093 \begin_inset space ~
6096 2.1 in the list of tables if there are two longtables without captions.
6097 To avoid this you can add the following command in TeX-Code after every
6098 longtable without a caption:
6101 \begin_layout Plain Layout
6106 addtocounter{table}{-1}
6109 \begin_layout Plain Layout
6110 This is not needed when none of your longtables have a caption and you add
6111 the following code to the document preamble:
6114 \begin_layout Plain Layout
6124 \begin_inset Newline newline
6135 addtocounter{table}{-1}}
6143 \begin_layout Standard
6144 \begin_inset Note Greyedout
6147 \begin_layout Plain Layout
6151 \begin_inset space ~
6161 \begin_inset Index idx
6164 \begin_layout Plain Layout
6165 LaTeX-packages ! hyperref
6178 dialog to link cross-references, the link to a longtable caption will always
6179 point to the beginning of the document.
6187 \begin_layout Subsubsection
6188 References to Longtables
6189 \begin_inset Index idx
6192 \begin_layout Plain Layout
6193 Longtables ! References
6201 \begin_layout Standard
6202 \begin_inset Tabular
6203 <lyxtabular version="3" rows="6" columns="5">
6204 <features islongtable="true" longtabularalignment="center">
6205 <column alignment="center" valignment="top" width="0">
6206 <column alignment="center" valignment="top" width="0">
6207 <column alignment="center" valignment="top" width="0">
6208 <column alignment="center" valignment="top" width="0">
6209 <column alignment="center" valignment="top" width="0">
6210 <row caption="true">
6211 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6214 \begin_layout Plain Layout
6215 \begin_inset Caption
6217 \begin_layout Plain Layout
6218 Referenced longtable
6219 \begin_inset CommandInset label
6221 name "tab:RefExample"
6235 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6238 \begin_layout Plain Layout
6244 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6247 \begin_layout Plain Layout
6253 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6256 \begin_layout Plain Layout
6262 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6265 \begin_layout Plain Layout
6273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_layout Plain Layout
6282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6285 \begin_layout Plain Layout
6291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6294 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6303 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6312 \begin_layout Plain Layout
6320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6323 \begin_layout Plain Layout
6329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6332 \begin_layout Plain Layout
6338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6341 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6350 \begin_layout Plain Layout
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6359 \begin_layout Plain Layout
6367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6370 \begin_layout Plain Layout
6376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6379 \begin_layout Plain Layout
6385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6388 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6397 \begin_layout Plain Layout
6403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6406 \begin_layout Plain Layout
6414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6417 \begin_layout Plain Layout
6423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6426 \begin_layout Plain Layout
6432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6435 \begin_layout Plain Layout
6441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6444 \begin_layout Plain Layout
6450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6453 \begin_layout Plain Layout
6461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6464 \begin_layout Plain Layout
6470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6473 \begin_layout Plain Layout
6479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6482 \begin_layout Plain Layout
6488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6491 \begin_layout Plain Layout
6497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6500 \begin_layout Plain Layout
6514 \begin_layout Standard
6515 To reference a longtable, insert a label into the caption.
6518 \begin_layout Standard
6519 This is a reference to Table
6520 \begin_inset space ~
6524 \begin_inset CommandInset ref
6526 reference "tab:RefExample"
6533 \begin_layout Standard
6534 The caption layout can be set together with all other captions of your document
6535 using the LaTeX-package
6540 \begin_inset Index idx
6543 \begin_layout Plain Layout
6544 LaTeX-packages ! caption
6550 \begin_inset space ~
6554 \begin_inset CommandInset ref
6556 reference "sec:Caption-Formatting"
6563 \begin_layout Subsubsection
6565 \begin_inset Index idx
6568 \begin_layout Plain Layout
6569 Longtables ! Caption Width
6577 \begin_layout Standard
6578 The maximal width of of caption lines is defined by the length
6585 Its default value is 4
6586 \begin_inset space \thinspace{}
6590 To change it add the following command to your document preamble or as
6591 TeX-Code into your document before the longtable that should be affected
6594 \begin_layout Standard
6604 \begin_layout Standard
6605 where the width could have one of the units listed in appendix
6606 \begin_inset space ~
6610 \begin_inset CommandInset ref
6612 reference "cha:Units-available-in"
6619 \begin_layout Standard
6620 The following tables show the difference:
6623 \begin_layout Standard
6624 \begin_inset Tabular
6625 <lyxtabular version="3" rows="6" columns="5">
6626 <features islongtable="true" longtabularalignment="center">
6627 <column alignment="center" valignment="top" width="0">
6628 <column alignment="center" valignment="top" width="0">
6629 <column alignment="center" valignment="top" width="0">
6630 <column alignment="center" valignment="top" width="0">
6631 <column alignment="center" valignment="top" width="0">
6632 <row caption="true">
6633 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6636 \begin_layout Plain Layout
6637 \begin_inset Caption
6639 \begin_layout Plain Layout
6640 long full title with default width long full title with default width long
6641 full title with default width
6642 \begin_inset Argument
6645 \begin_layout Plain Layout
6646 caption with default width
6661 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6664 \begin_layout Plain Layout
6670 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6673 \begin_layout Plain Layout
6679 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6682 \begin_layout Plain Layout
6688 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6691 \begin_layout Plain Layout
6699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6702 \begin_layout Plain Layout
6708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6711 \begin_layout Plain Layout
6717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6720 \begin_layout Plain Layout
6726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6729 \begin_layout Plain Layout
6735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6738 \begin_layout Plain Layout
6746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6749 \begin_layout Plain Layout
6755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6758 \begin_layout Plain Layout
6764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6767 \begin_layout Plain Layout
6773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6776 \begin_layout Plain Layout
6782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6785 \begin_layout Plain Layout
6793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6796 \begin_layout Plain Layout
6802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6805 \begin_layout Plain Layout
6811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6814 \begin_layout Plain Layout
6820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6823 \begin_layout Plain Layout
6829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6832 \begin_layout Plain Layout
6840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6843 \begin_layout Plain Layout
6849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6852 \begin_layout Plain Layout
6858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6861 \begin_layout Plain Layout
6867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6870 \begin_layout Plain Layout
6876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6879 \begin_layout Plain Layout
6887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6890 \begin_layout Plain Layout
6896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6899 \begin_layout Plain Layout
6905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6908 \begin_layout Plain Layout
6914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6917 \begin_layout Plain Layout
6923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6926 \begin_layout Plain Layout
6940 \begin_layout Standard
6944 \begin_layout Plain Layout
6956 \begin_inset Tabular
6957 <lyxtabular version="3" rows="6" columns="5">
6958 <features islongtable="true" longtabularalignment="center">
6959 <column alignment="center" valignment="top" width="0">
6960 <column alignment="center" valignment="top" width="0">
6961 <column alignment="center" valignment="top" width="0">
6962 <column alignment="center" valignment="top" width="0">
6963 <column alignment="center" valignment="top" width="0">
6964 <row caption="true">
6965 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6968 \begin_layout Plain Layout
6969 \begin_inset Caption
6971 \begin_layout Plain Layout
6972 long full title with width set to 5
6973 \begin_inset space \thinspace{}
6976 cm long full title with width set to 5
6977 \begin_inset space \thinspace{}
6980 cm long full title with width set to 5
6981 \begin_inset space \thinspace{}
6985 \begin_inset Argument
6988 \begin_layout Plain Layout
6990 \begin_inset space \thinspace{}
6994 \begin_inset space \thinspace{}
6998 \begin_inset space \thinspace{}
7016 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7019 \begin_layout Plain Layout
7025 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7028 \begin_layout Plain Layout
7034 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7037 \begin_layout Plain Layout
7043 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7046 \begin_layout Plain Layout
7054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7057 \begin_layout Plain Layout
7063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7066 \begin_layout Plain Layout
7072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7075 \begin_layout Plain Layout
7081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7084 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7093 \begin_layout Plain Layout
7101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7104 \begin_layout Plain Layout
7110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7113 \begin_layout Plain Layout
7119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7122 \begin_layout Plain Layout
7128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7131 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7140 \begin_layout Plain Layout
7148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7151 \begin_layout Plain Layout
7157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7160 \begin_layout Plain Layout
7166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7169 \begin_layout Plain Layout
7175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7178 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7187 \begin_layout Plain Layout
7195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7198 \begin_layout Plain Layout
7204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7207 \begin_layout Plain Layout
7213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7216 \begin_layout Plain Layout
7222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7225 \begin_layout Plain Layout
7231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7234 \begin_layout Plain Layout
7242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7245 \begin_layout Plain Layout
7251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7254 \begin_layout Plain Layout
7260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7263 \begin_layout Plain Layout
7269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7272 \begin_layout Plain Layout
7278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7281 \begin_layout Plain Layout
7295 \begin_layout Standard
7299 \begin_layout Plain Layout
7313 \begin_layout Standard
7314 \begin_inset Note Greyedout
7317 \begin_layout Plain Layout
7322 When the LaTeX-package
7327 \begin_inset Index idx
7330 \begin_layout Plain Layout
7331 LaTeX-packages ! caption
7336 is used, as in this document, the full page width is used for the caption
7337 when you use the default value of 4
7338 \begin_inset space \thinspace{}
7348 To get in this case exactly a 4
7349 \begin_inset space \thinspace{}
7352 in wide caption, you can either use a value slightly different from 4.0
7353 \begin_inset space \thinspace{}
7357 \begin_inset space \thinspace{}
7361 \begin_inset space \space{}
7365 \begin_inset space \thinspace{}
7368 in, or the LaTeX-command
7372 captionsetup{width=value}
7374 that is provided by the
7386 \begin_layout Subsubsection
7387 Different Captions for Table Pages
7388 \begin_inset Index idx
7391 \begin_layout Plain Layout
7392 Longtables ! Different Captions for Pages
7400 \begin_layout Standard
7401 When the table captions for the following pages should differ from the one
7402 of the first table page, insert a caption with the TeX code command
7405 \begin_layout Standard
7410 caption*{caption text}
7417 \begin_layout Standard
7418 in a dummy caption row that is marked as a header.
7420 \begin_inset space ~
7424 \begin_inset CommandInset ref
7426 reference "tab:DiffCaptions"
7430 is an example of a longtable with different heading where the second caption
7431 doesn't include the table number.
7434 \begin_layout Standard
7436 \begin_inset Tabular
7437 <lyxtabular version="3" rows="59" columns="3">
7438 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7439 <column alignment="left" valignment="top" width="0cm">
7440 <column alignment="left" valignment="top" width="0pt">
7441 <column alignment="center" valignment="top" width="0pt">
7442 <row caption="true">
7443 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7446 \begin_layout Plain Layout
7447 \begin_inset Caption
7449 \begin_layout Plain Layout
7451 \begin_inset CommandInset label
7453 name "tab:DiffCaptions"
7458 \begin_inset Argument
7461 \begin_layout Plain Layout
7477 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7480 \begin_layout Plain Layout
7486 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7489 \begin_layout Plain Layout
7496 <row endfirsthead="true">
7497 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7500 \begin_layout Plain Layout
7503 Example Phone List (ignore the names)
7508 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7511 \begin_layout Plain Layout
7517 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7520 \begin_layout Plain Layout
7527 <row endfirsthead="true">
7528 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7531 \begin_layout Plain Layout
7539 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7551 \begin_layout Plain Layout
7560 <row endhead="true">
7561 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7564 \begin_layout Plain Layout
7568 \begin_layout Plain Layout
7572 caption*{Continued Example Phone List}
7586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7589 \begin_layout Plain Layout
7595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7598 \begin_layout Plain Layout
7605 <row endhead="true">
7606 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7609 \begin_layout Plain Layout
7617 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7620 \begin_layout Plain Layout
7626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7629 \begin_layout Plain Layout
7636 <row endhead="true">
7637 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7640 \begin_layout Plain Layout
7648 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7651 \begin_layout Plain Layout
7657 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7660 \begin_layout Plain Layout
7669 <row endfoot="true">
7670 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7673 \begin_layout Plain Layout
7674 continued on next page
7679 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7682 \begin_layout Plain Layout
7688 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7691 \begin_layout Plain Layout
7699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7702 \begin_layout Plain Layout
7710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7713 \begin_layout Plain Layout
7719 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7722 \begin_layout Plain Layout
7730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7733 \begin_layout Plain Layout
7741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7744 \begin_layout Plain Layout
7750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7753 \begin_layout Plain Layout
7761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7764 \begin_layout Plain Layout
7772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7775 \begin_layout Plain Layout
7781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7784 \begin_layout Plain Layout
7792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7795 \begin_layout Plain Layout
7803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7806 \begin_layout Plain Layout
7812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7815 \begin_layout Plain Layout
7823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7826 \begin_layout Plain Layout
7834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7837 \begin_layout Plain Layout
7843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7846 \begin_layout Plain Layout
7854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7857 \begin_layout Plain Layout
7865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7868 \begin_layout Plain Layout
7874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7877 \begin_layout Plain Layout
7885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7888 \begin_layout Plain Layout
7896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7899 \begin_layout Plain Layout
7905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7908 \begin_layout Plain Layout
7916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7919 \begin_layout Plain Layout
7927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7930 \begin_layout Plain Layout
7936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7939 \begin_layout Plain Layout
7947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7950 \begin_layout Plain Layout
7958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7961 \begin_layout Plain Layout
7967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7970 \begin_layout Plain Layout
7978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7981 \begin_layout Plain Layout
7989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7992 \begin_layout Plain Layout
7998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8001 \begin_layout Plain Layout
8009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8012 \begin_layout Plain Layout
8020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8023 \begin_layout Plain Layout
8029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8032 \begin_layout Plain Layout
8040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8043 \begin_layout Plain Layout
8051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8054 \begin_layout Plain Layout
8060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8063 \begin_layout Plain Layout
8071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8074 \begin_layout Plain Layout
8082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8085 \begin_layout Plain Layout
8091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8094 \begin_layout Plain Layout
8102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8105 \begin_layout Plain Layout
8113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8116 \begin_layout Plain Layout
8122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8125 \begin_layout Plain Layout
8133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8136 \begin_layout Plain Layout
8145 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8159 \begin_layout Plain Layout
8165 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8168 \begin_layout Plain Layout
8176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8179 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8190 \begin_layout Plain Layout
8196 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8199 \begin_layout Plain Layout
8207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8210 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8221 \begin_layout Plain Layout
8227 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8230 \begin_layout Plain Layout
8238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8241 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8252 \begin_layout Plain Layout
8258 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8261 \begin_layout Plain Layout
8269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8272 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8283 \begin_layout Plain Layout
8289 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8292 \begin_layout Plain Layout
8300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8303 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8314 \begin_layout Plain Layout
8320 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8323 \begin_layout Plain Layout
8331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8334 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8345 \begin_layout Plain Layout
8351 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8354 \begin_layout Plain Layout
8362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8365 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8376 \begin_layout Plain Layout
8382 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8385 \begin_layout Plain Layout
8393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8396 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8407 \begin_layout Plain Layout
8413 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8416 \begin_layout Plain Layout
8424 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8427 \begin_layout Plain Layout
8435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8438 \begin_layout Plain Layout
8444 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8447 \begin_layout Plain Layout
8455 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8458 \begin_layout Plain Layout
8466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8469 \begin_layout Plain Layout
8475 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8478 \begin_layout Plain Layout
8486 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8489 \begin_layout Plain Layout
8497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8500 \begin_layout Plain Layout
8506 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8509 \begin_layout Plain Layout
8517 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8520 \begin_layout Plain Layout
8528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8531 \begin_layout Plain Layout
8537 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8540 \begin_layout Plain Layout
8548 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8551 \begin_layout Plain Layout
8559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8562 \begin_layout Plain Layout
8568 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8571 \begin_layout Plain Layout
8579 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8582 \begin_layout Plain Layout
8590 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8593 \begin_layout Plain Layout
8599 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8602 \begin_layout Plain Layout
8610 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8613 \begin_layout Plain Layout
8621 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8624 \begin_layout Plain Layout
8630 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8633 \begin_layout Plain Layout
8641 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8644 \begin_layout Plain Layout
8652 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8655 \begin_layout Plain Layout
8661 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8664 \begin_layout Plain Layout
8672 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8675 \begin_layout Plain Layout
8681 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8684 \begin_layout Plain Layout
8690 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8693 \begin_layout Plain Layout
8701 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8704 \begin_layout Plain Layout
8712 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8715 \begin_layout Plain Layout
8721 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8724 \begin_layout Plain Layout
8732 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8735 \begin_layout Plain Layout
8743 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8746 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8755 \begin_layout Plain Layout
8763 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8766 \begin_layout Plain Layout
8774 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8777 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8786 \begin_layout Plain Layout
8794 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8797 \begin_layout Plain Layout
8805 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8808 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8817 \begin_layout Plain Layout
8825 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8828 \begin_layout Plain Layout
8836 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8839 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8848 \begin_layout Plain Layout
8856 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8859 \begin_layout Plain Layout
8867 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8870 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8879 \begin_layout Plain Layout
8887 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8890 \begin_layout Plain Layout
8898 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8901 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8910 \begin_layout Plain Layout
8918 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8921 \begin_layout Plain Layout
8929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8932 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8941 \begin_layout Plain Layout
8949 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8952 \begin_layout Plain Layout
8960 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8963 \begin_layout Plain Layout
8969 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8972 \begin_layout Plain Layout
8980 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8983 \begin_layout Plain Layout
8991 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8994 \begin_layout Plain Layout
9000 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9003 \begin_layout Plain Layout
9011 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9014 \begin_layout Plain Layout
9022 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9025 \begin_layout Plain Layout
9031 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9034 \begin_layout Plain Layout
9042 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9045 \begin_layout Plain Layout
9053 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9056 \begin_layout Plain Layout
9062 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9065 \begin_layout Plain Layout
9073 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9076 \begin_layout Plain Layout
9084 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9087 \begin_layout Plain Layout
9093 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9096 \begin_layout Plain Layout
9104 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9107 \begin_layout Plain Layout
9115 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9118 \begin_layout Plain Layout
9124 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9127 \begin_layout Plain Layout
9135 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9138 \begin_layout Plain Layout
9146 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9149 \begin_layout Plain Layout
9155 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9158 \begin_layout Plain Layout
9166 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9169 \begin_layout Plain Layout
9177 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9180 \begin_layout Plain Layout
9186 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9189 \begin_layout Plain Layout
9197 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9200 \begin_layout Plain Layout
9208 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9211 \begin_layout Plain Layout
9217 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9220 \begin_layout Plain Layout
9228 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9231 \begin_layout Plain Layout
9239 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9242 \begin_layout Plain Layout
9248 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9251 \begin_layout Plain Layout
9259 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9262 \begin_layout Plain Layout
9270 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9273 \begin_layout Plain Layout
9279 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9282 \begin_layout Plain Layout
9290 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9293 \begin_layout Plain Layout
9301 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9304 \begin_layout Plain Layout
9310 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9313 \begin_layout Plain Layout
9327 \begin_layout Section
9328 Special Longtable Issues
9329 \begin_inset CommandInset label
9331 name "sec:Special-Longtable-Issues"
9338 \begin_layout Subsection
9339 Longtable Calculation
9340 \begin_inset Index idx
9343 \begin_layout Plain Layout
9344 Longtables ! Calculation
9352 \begin_layout Standard
9353 LaTeX calculates the height of table pages and their page breaks using so
9355 Chunks are parts of tables that held at the same time in LaTeX's memory.
9356 The default value was historically set to only 20 table rows.
9357 If you are using longtables with many pages this may slow down the creation
9359 You can safely increase the chunk size to values of 100-1000 by adding
9360 this command line to your document preamble:
9363 \begin_layout Standard
9368 setcounter{LTchunksize}{100}
9371 \begin_layout Subsection
9372 Floats and Longtables
9373 \begin_inset Index idx
9376 \begin_layout Plain Layout
9385 \begin_layout Standard
9386 There might be problems when a float appears on the same page where a longtable
9388 To avoid such a situation, insert a
9389 \begin_inset Quotes eld
9393 \begin_inset Quotes erd
9398 Insert\SpecialChar \menuseparator
9399 Formatting\SpecialChar \menuseparator
9401 \begin_inset space ~
9406 ) before your longtable.
9409 \begin_layout Subsection
9411 \begin_inset Index idx
9414 \begin_layout Plain Layout
9415 Longtables ! Forced Page Breaks
9423 \begin_layout Standard
9424 By default tables are only broken between rows.
9425 If you have a cell with multiples lines and want to have a page break within
9426 the cell, insert the new line command
9427 \begin_inset Quotes eld
9439 \begin_inset Quotes erd
9442 as TeX-Code at the point of the cell where it can be broken.
9451 command you have to insert in TeX-Code as many
9452 \begin_inset Quotes eld
9460 \begin_inset Quotes erd
9463 characters as the number of the following table columns.
9468 is the character to separate table cells.
9469 Write in TeX-Code after each
9473 the content of the corresponding following cell and delete the content
9475 \begin_inset Newline newline
9486 command, insert as many
9490 characters as the number of table columns before the current column.
9492 \begin_inset space ~
9496 \begin_inset CommandInset ref
9498 reference "tab:ForcedPagebreak"
9502 the cell that should be broken is in the second column followed by another
9504 Therefore the following command was inserted in the cell as TeX-Code after
9506 \begin_inset Quotes eld
9514 \begin_inset Quotes erd
9520 \begin_layout Standard
9530 \begin_inset Newline newline
9536 \begin_layout Standard
9538 \begin_inset Quotes eld
9542 \begin_inset Quotes erd
9545 in the third column of the row was deleted.
9552 is only needed when a page break should definitely occur at this position,
9553 otherwise it would be a conditional break.
9554 If your footer row of the longtable has for a certain reason no upper line
9555 but you would have a horizontal line where the cell is broken, use this
9559 \begin_layout Standard
9567 \begin_inset Newline newline
9575 \begin_layout Standard
9576 When the cell to be broken is in the last column, the command
9579 \begin_layout Standard
9589 \begin_layout Standard
9590 must be inserted as TeX-Code at the beginning of the cell.
9591 This ensures that the part of the cell that will be displayed on the new
9592 page appears with the full width.
9595 \begin_layout Standard
9597 \begin_inset Tabular
9598 <lyxtabular version="3" rows="38" columns="3">
9599 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9600 <column alignment="left" valignment="top" width="0cm">
9601 <column alignment="left" valignment="top" width="3cm">
9602 <column alignment="center" valignment="top" width="0pt">
9603 <row caption="true">
9604 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9607 \begin_layout Plain Layout
9608 \begin_inset Caption
9610 \begin_layout Plain Layout
9611 Table with forced page break in table cell
9612 \begin_inset CommandInset label
9614 name "tab:ForcedPagebreak"
9619 \begin_inset Argument
9622 \begin_layout Plain Layout
9623 Table with forced page break in table cell
9638 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9641 \begin_layout Plain Layout
9647 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9650 \begin_layout Plain Layout
9657 <row endfirsthead="true">
9658 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9661 \begin_layout Plain Layout
9664 Example Phone List (ignore the names)
9669 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9672 \begin_layout Plain Layout
9678 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9681 \begin_layout Plain Layout
9688 <row endfirsthead="true">
9689 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9692 \begin_layout Plain Layout
9700 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9703 \begin_layout Plain Layout
9709 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9712 \begin_layout Plain Layout
9721 <row endhead="true">
9722 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9725 \begin_layout Plain Layout
9729 \begin_layout Plain Layout
9733 caption*{Continued Example Phone List}
9747 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9750 \begin_layout Plain Layout
9756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9759 \begin_layout Plain Layout
9766 <row endhead="true">
9767 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9770 \begin_layout Plain Layout
9778 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9781 \begin_layout Plain Layout
9787 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9790 \begin_layout Plain Layout
9797 <row endhead="true">
9798 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9801 \begin_layout Plain Layout
9809 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9812 \begin_layout Plain Layout
9818 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9821 \begin_layout Plain Layout
9830 <row endfoot="true">
9831 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9834 \begin_layout Plain Layout
9835 continued on next page
9840 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9843 \begin_layout Plain Layout
9849 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9852 \begin_layout Plain Layout
9860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9863 \begin_layout Plain Layout
9871 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9874 \begin_layout Plain Layout
9880 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9883 \begin_layout Plain Layout
9891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9894 \begin_layout Plain Layout
9902 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9905 \begin_layout Plain Layout
9911 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9914 \begin_layout Plain Layout
9922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9925 \begin_layout Plain Layout
9933 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9936 \begin_layout Plain Layout
9942 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9956 \begin_layout Plain Layout
9964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9967 \begin_layout Plain Layout
9973 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9987 \begin_layout Plain Layout
9995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9998 \begin_layout Plain Layout
10004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10007 \begin_layout Plain Layout
10015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10018 \begin_layout Plain Layout
10026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10029 \begin_layout Plain Layout
10035 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10038 \begin_layout Plain Layout
10046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10049 \begin_layout Plain Layout
10057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10060 \begin_layout Plain Layout
10066 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10069 \begin_layout Plain Layout
10077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10080 \begin_layout Plain Layout
10088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10091 \begin_layout Plain Layout
10097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10100 \begin_layout Plain Layout
10108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10111 \begin_layout Plain Layout
10119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10122 \begin_layout Plain Layout
10128 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10131 \begin_layout Plain Layout
10139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10142 \begin_layout Plain Layout
10150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10153 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10162 \begin_layout Plain Layout
10170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10173 \begin_layout Plain Layout
10181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10184 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10193 \begin_layout Plain Layout
10201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10204 \begin_layout Plain Layout
10212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10215 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10224 \begin_layout Plain Layout
10232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10235 \begin_layout Plain Layout
10243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10246 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10255 \begin_layout Plain Layout
10263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10266 \begin_layout Plain Layout
10274 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10277 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10286 \begin_layout Plain Layout
10294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10297 \begin_layout Plain Layout
10305 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10308 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10317 \begin_layout Plain Layout
10325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10328 \begin_layout Plain Layout
10336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10339 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10348 \begin_layout Plain Layout
10356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10359 \begin_layout Plain Layout
10367 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10370 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10379 \begin_layout Plain Layout
10387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10390 \begin_layout Plain Layout
10398 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10401 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10410 \begin_layout Plain Layout
10418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10421 \begin_layout Plain Layout
10429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10432 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10441 \begin_layout Plain Layout
10449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10452 \begin_layout Plain Layout
10460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10463 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10472 \begin_layout Plain Layout
10480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10483 \begin_layout Plain Layout
10491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10494 \begin_layout Plain Layout
10500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10503 \begin_layout Plain Layout
10511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10514 \begin_layout Plain Layout
10522 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10525 \begin_layout Plain Layout
10531 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10534 \begin_layout Plain Layout
10542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10545 \begin_layout Plain Layout
10553 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10556 \begin_layout Plain Layout
10558 Fürst von Montecompatri, 11.
10559 Fürst von Sulmona und Vivaro, 10.
10560 Fürst von Rossano, 5.
10561 Herzog von Canemorte, 11.
10562 Herzog von Palombara, 5.
10563 Herzog von Castelchiodato,
10567 \begin_layout Plain Layout
10578 \begin_layout Plain Layout
10586 Herzog von Poggionativo, 11.
10587 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10588 Graf von Valinfreda, 11.
10589 Baron von Cropalati, 11.
10590 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10595 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10598 \begin_layout Plain Layout
10606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10609 \begin_layout Plain Layout
10617 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10620 \begin_layout Plain Layout
10626 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10629 \begin_layout Plain Layout
10637 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10640 \begin_layout Plain Layout
10648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10651 \begin_layout Plain Layout
10657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10660 \begin_layout Plain Layout
10668 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10671 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10682 \begin_layout Plain Layout
10688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10691 \begin_layout Plain Layout
10699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10702 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10713 \begin_layout Plain Layout
10719 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10722 \begin_layout Plain Layout
10730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10733 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10744 \begin_layout Plain Layout
10750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10753 \begin_layout Plain Layout
10761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10764 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10775 \begin_layout Plain Layout
10781 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10784 \begin_layout Plain Layout
10792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10795 \begin_layout Plain Layout
10803 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10806 \begin_layout Plain Layout
10812 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10815 \begin_layout Plain Layout
10823 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10826 \begin_layout Plain Layout
10834 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10837 \begin_layout Plain Layout
10843 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10846 \begin_layout Plain Layout
10860 \begin_layout Section
10861 Multiple Lines Columns and Rows
10864 \begin_layout Subsection
10865 Multiple Lines in Table Cells
10866 \begin_inset CommandInset label
10868 name "sub:Multiple-Lines-in"
10873 \begin_inset Index idx
10876 \begin_layout Plain Layout
10877 Multiple Lines in Table Cells
10883 \begin_inset Index idx
10886 \begin_layout Plain Layout
10895 \begin_layout Standard
10897 \begin_inset Float table
10903 \begin_layout Plain Layout
10904 \begin_inset Caption
10906 \begin_layout Plain Layout
10907 \begin_inset CommandInset label
10909 name "tab:Table-with-multiple"
10913 Table with multiple lines in cells
10921 \begin_layout Plain Layout
10923 \begin_inset Tabular
10924 <lyxtabular version="3" rows="3" columns="3">
10925 <features tabularvalignment="middle">
10926 <column alignment="center" valignment="middle" width="2.5cm">
10927 <column alignment="center" valignment="middle" width="0">
10928 <column alignment="center" valignment="middle" width="0">
10930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10933 \begin_layout Plain Layout
10935 \begin_inset Newline linebreak
10943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10946 \begin_layout Plain Layout
10952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10955 \begin_layout Plain Layout
10963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10966 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10975 \begin_layout Plain Layout
10981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10984 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10995 \begin_layout Plain Layout
11001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11004 \begin_layout Plain Layout
11010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11013 \begin_layout Plain Layout
11032 \begin_layout Standard
11033 Setting a fixed width for a column enables you to enter text as a paragraph
11034 with multiple lines and hyphenation.
11037 \begin_layout Standard
11039 \begin_inset space ~
11043 \begin_inset CommandInset ref
11045 reference "tab:Table-with-multiple"
11049 , create a 3×3 table, mark the first cell and right-click on it.
11050 In the appearing table dialog we set a cell width of 2.5
11051 \begin_inset space \thinspace{}
11054 cm and choose centered for the vertical and horizontal alignment.
11055 The vertical alignment is used for all cells of the row.
11056 As our text is smaller than 2.5
11057 \begin_inset space \thinspace{}
11060 cm, only one line will appear.
11061 To get two lines, a justified line break (shortcut
11064 arg "newline-insert linebreak"
11068 If the text is wider than the set cell width, it will automatically be
11069 broken to several lines.
11072 \begin_layout Standard
11073 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11074 by LaTeX if it is the first entry.
11075 Therefore you need to insert something to prevent the word not being the
11077 So add a horizontal space of 0
11078 \begin_inset space \thinspace{}
11081 pt before the word.
11082 As the space is zero, it doesn't change the output.
11084 \begin_inset space ~
11088 \begin_inset CommandInset ref
11090 reference "tab:Table-with-and"
11097 \begin_layout Standard
11098 \begin_inset Float table
11104 \begin_layout Plain Layout
11105 \begin_inset Caption
11107 \begin_layout Plain Layout
11108 \begin_inset CommandInset label
11110 name "tab:Table-with-and"
11114 Table with and without hyphenation
11122 \begin_layout Plain Layout
11123 \begin_inset space \hfill{}
11127 \begin_inset Tabular
11128 <lyxtabular version="3" rows="3" columns="3">
11129 <features tabularvalignment="middle">
11130 <column alignment="center" valignment="middle" width="2.5cm">
11131 <column alignment="center" valignment="middle" width="0">
11132 <column alignment="center" valignment="middle" width="0">
11134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11137 \begin_layout Plain Layout
11138 verylongtablecellword
11143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11146 \begin_layout Plain Layout
11152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11155 \begin_layout Plain Layout
11163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11166 \begin_layout Plain Layout
11172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11175 \begin_layout Plain Layout
11181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11184 \begin_layout Plain Layout
11192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11195 \begin_layout Plain Layout
11201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11204 \begin_layout Plain Layout
11210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11213 \begin_layout Plain Layout
11225 \begin_inset space \hfill{}
11229 \begin_inset Tabular
11230 <lyxtabular version="3" rows="3" columns="3">
11231 <features tabularvalignment="middle">
11232 <column alignment="center" valignment="middle" width="2.5cm">
11233 <column alignment="center" valignment="middle" width="0">
11234 <column alignment="center" valignment="middle" width="0">
11236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11239 \begin_layout Plain Layout
11240 \begin_inset space \hspace{}
11244 verylongtablecellword
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11252 \begin_layout Plain Layout
11258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11261 \begin_layout Plain Layout
11269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11272 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11281 \begin_layout Plain Layout
11287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11290 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11310 \begin_layout Plain Layout
11316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11319 \begin_layout Plain Layout
11331 \begin_inset space \hfill{}
11342 \begin_layout Subsection
11344 \begin_inset CommandInset label
11346 name "sub:Multicolumns"
11351 \begin_inset Index idx
11354 \begin_layout Plain Layout
11361 \begin_inset Index idx
11364 \begin_layout Plain Layout
11365 Table ! Multicolumns
11373 \begin_layout Subsubsection
11377 \begin_layout Standard
11378 To merge cells over multiple columns, select as many cells within a row
11379 as you want to merge and use either the table-toolbar button
11380 \begin_inset Graphics
11381 filename ../images/tabular-feature_multicolumn.png
11383 scaleBeforeRotation
11389 Edit\SpecialChar \menuseparator
11390 Table\SpecialChar \menuseparator
11393 , or right click on the marked cells and choose
11397 in the appearing context menu.
11400 \begin_layout Standard
11401 Multicolumns have there own cell settings.
11402 That means changing cell borders, cell alignment, and the width only affects
11404 Here is an example table with a multicolumn cell in the first row and one
11405 in the last row without the upper border:
11408 \begin_layout Standard
11410 \begin_inset Tabular
11411 <lyxtabular version="3" rows="3" columns="4">
11412 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11413 <column alignment="center" valignment="top" width="0pt">
11414 <column alignment="center" valignment="middle" width="0">
11415 <column alignment="center" valignment="top" width="0in">
11416 <column alignment="center" valignment="top" width="0pt">
11418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11421 \begin_layout Plain Layout
11427 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11430 \begin_layout Plain Layout
11436 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11439 \begin_layout Plain Layout
11445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11448 \begin_layout Plain Layout
11456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11459 \begin_layout Plain Layout
11474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11477 \begin_layout Plain Layout
11483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11486 \begin_layout Plain Layout
11492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11495 \begin_layout Plain Layout
11503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11506 \begin_layout Plain Layout
11512 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11515 \begin_layout Plain Layout
11521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11524 \begin_layout Plain Layout
11530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11533 \begin_layout Plain Layout
11547 \begin_layout Subsubsection
11548 Multicolumn Calculations
11549 \begin_inset CommandInset label
11551 name "sub:Multicolumn-Calculations"
11556 \begin_inset Index idx
11559 \begin_layout Plain Layout
11560 Multicolumns ! Calculations
11568 \begin_layout Standard
11569 LyX supports multicolumns directly, but we have to take account of the cell
11570 width of the columns spanned by the multicolumn cell.
11573 \begin_layout Standard
11574 \begin_inset Float table
11580 \begin_layout Plain Layout
11581 \begin_inset Caption
11583 \begin_layout Plain Layout
11584 \begin_inset CommandInset label
11586 name "tab:Table-with-centered"
11590 Table with centered multicolumn text above two columns that have exactly
11591 half the width of the multicolumn cell
11592 \begin_inset Argument
11595 \begin_layout Plain Layout
11596 Perfect multicolumn table
11609 \begin_layout Plain Layout
11611 \begin_inset Tabular
11612 <lyxtabular version="3" rows="3" columns="3">
11613 <features tabularvalignment="middle">
11614 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11615 <column alignment="center" valignment="middle" width="0">
11616 <column alignment="center" valignment="top" width="0">
11618 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11621 \begin_layout Plain Layout
11622 multiple lines multicolumn
11627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11630 \begin_layout Plain Layout
11636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11639 \begin_layout Plain Layout
11647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11650 \begin_layout Plain Layout
11656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11659 \begin_layout Plain Layout
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11668 \begin_layout Plain Layout
11676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11679 \begin_layout Plain Layout
11685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11688 \begin_layout Plain Layout
11694 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11697 \begin_layout Plain Layout
11716 \begin_layout Standard
11717 To create for example Table
11718 \begin_inset space ~
11722 \begin_inset CommandInset ref
11724 reference "tab:Table-with-centered"
11728 , mark the first two cells in the first row of a 3×3 table and right-click
11730 Now choose for this cell
11739 \begin_inset space \thinspace{}
11742 cm in the table dialog.
11743 The merged columns should have exactly half the width of the multicolumn
11744 cell, so that you would set a width of 1.25
11745 \begin_inset space \thinspace{}
11748 cm for the first column.
11749 The second column has then automatically a width of 1.25
11750 \begin_inset space \thinspace{}
11753 cm (multicolumn width - width of first column).
11754 This was done for Table
11755 \begin_inset space ~
11759 \begin_inset CommandInset ref
11761 reference "tab:Table-without-half"
11768 \begin_layout Standard
11769 \begin_inset Float table
11774 \begin_layout Plain Layout
11775 \begin_inset Caption
11777 \begin_layout Plain Layout
11778 \begin_inset CommandInset label
11780 name "tab:Table-without-half"
11784 Table where the spanned table columns are not exactly half the width of
11785 the multicolumn cell
11786 \begin_inset Argument
11789 \begin_layout Plain Layout
11790 Imperfect multicolumn table
11803 \begin_layout Plain Layout
11805 \begin_inset Tabular
11806 <lyxtabular version="3" rows="3" columns="3">
11807 <features tabularvalignment="middle">
11808 <column alignment="center" valignment="top" width="1.25cm">
11809 <column alignment="center" valignment="top" width="0">
11810 <column alignment="center" valignment="top" width="0">
11812 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11815 \begin_layout Plain Layout
11816 multiple lines multicolumn
11821 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11824 \begin_layout Plain Layout
11830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11833 \begin_layout Plain Layout
11841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11844 \begin_layout Plain Layout
11850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11853 \begin_layout Plain Layout
11859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11862 \begin_layout Plain Layout
11870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11873 \begin_layout Plain Layout
11879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11882 \begin_layout Plain Layout
11888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11891 \begin_layout Plain Layout
11910 \begin_layout Standard
11911 You can see that the first column is not half the width of the multicolumn
11912 cell, it is a bit bigger.
11913 The reason is that the specified width of a cell
11914 \begin_inset Formula $W_{g}$
11917 is not its total width
11918 \begin_inset Formula $W_{\mathrm{tot}}$
11921 because a cell is always a bit larger than specified.
11923 \begin_inset space ~
11927 \begin_inset CommandInset ref
11929 reference "cha:Explanation-of-Equation"
11933 explains this in detail.
11936 \begin_layout Standard
11938 \begin_inset Formula $W_{g\, n}$
11941 which the user needs to set when
11945 columns are spanned can be calculated, so that each column has a total
11947 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11951 \begin_inset Formula \begin{equation}
11952 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11959 \begin_layout Standard
11960 In our case we have
11961 \begin_inset Formula $n=2$
11965 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11968 cm and the default values for the lengths, so that equation
11969 \begin_inset CommandInset ref
11976 \begin_inset Formula \begin{equation}
11977 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11984 \begin_layout Standard
11985 To enable calculations in LaTeX, the LaTeX-package
11989 must be loaded with the document preamble line
11990 \begin_inset Index idx
11993 \begin_layout Plain Layout
11994 LaTeX-packages ! calc
12002 \begin_layout Standard
12010 \begin_layout Standard
12011 LyX does not allow you to calculate lengths in the
12015 field of the table dialog.
12016 Therefore you have to format the column by inserting a LaTeX-argument in
12018 Here is an overview about the arguments:
12021 \begin_layout Itemize
12026 creates cell with a fixed width, its text is vertically top-aligned
12029 \begin_layout Itemize
12034 creates cell with a fixed width, its text is vertically centered
12037 \begin_layout Itemize
12042 creates cell with a fixed width, its text is vertically bottom-aligned
12045 \begin_layout Standard
12046 By entering a LaTeX-argument, all cell settings set in the table dialog
12050 \begin_layout Standard
12051 \begin_inset Note Greyedout
12054 \begin_layout Plain Layout
12059 Due to a bug, LyX shows the overwritten settings anyway.
12067 \begin_layout Standard
12068 As the text should be horizontally centered, the command
12075 You can now enter the following LaTeX-argument for the first spanned column:
12078 \begin_layout Standard
12083 centering}m{1.25cm-6.2pt}
12086 \begin_layout Standard
12091 means, that the commands inside the braces are applied before the cell
12095 \begin_layout Standard
12096 Although we have chosen centered alignment for the text of the multicolumn
12097 cell, it is still left aligned.
12098 This is because LyX only applies the alignment to single columns.
12099 So for the multicolumn cell we have to use the LaTeX-argument
12102 \begin_layout Standard
12110 \begin_layout Subsection
12112 \begin_inset Index idx
12115 \begin_layout Plain Layout
12122 \begin_inset Index idx
12125 \begin_layout Plain Layout
12134 \begin_layout Standard
12135 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12136 TeX-Code needs to be used.
12137 To use multirows load the LaTeX-package
12142 \begin_inset Index idx
12145 \begin_layout Plain Layout
12146 LaTeX-packages ! multirow
12151 in your document preamble with the command
12154 \begin_layout Standard
12159 usepackage{multirow}
12162 \begin_layout Standard
12163 Multirows are created with the command
12166 \begin_layout Standard
12171 multirow{number of rows}{cell width}{cell entry}
12174 \begin_layout Standard
12175 To create the following table:
12178 \begin_layout Standard
12183 \begin_layout Plain Layout
12197 \begin_inset Tabular
12198 <lyxtabular version="3" rows="3" columns="3">
12199 <features tabularvalignment="middle">
12200 <column alignment="center" valignment="top" width="0">
12201 <column alignment="center" valignment="top" width="0">
12202 <column alignment="center" valignment="top" width="0">
12204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12207 \begin_layout Plain Layout
12213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12216 \begin_layout Plain Layout
12222 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12225 \begin_layout Plain Layout
12233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12236 \begin_layout Plain Layout
12240 \begin_layout Plain Layout
12244 multirow{2}{2.5cm}{
12253 \begin_layout Plain Layout
12265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12268 \begin_layout Plain Layout
12274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12277 \begin_layout Plain Layout
12285 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12288 \begin_layout Plain Layout
12294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12297 \begin_layout Plain Layout
12303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12306 \begin_layout Plain Layout
12321 \begin_layout Plain Layout
12337 \begin_layout Standard
12338 create a 3×3 table.
12339 Unset the upper border of the last cell in the first column.
12340 The multirow is now created in the second row of the first column by inserting
12344 \begin_layout Standard
12349 multirow{2}{2.5cm}{
12352 \begin_layout Standard
12354 According to the command parameters the multirow spans now two rows and
12356 \begin_inset space \thinspace{}
12360 The content of the multirow cell follows outside the TeX-Code box and the
12361 command is finished with a right brace
12365 in another TeX-Code-box after the text.
12368 \begin_layout Standard
12375 left-aligns its content by default.
12376 To override the default, renew the command
12385 \begin_layout Standard
12397 \begin_layout Standard
12398 in TeX-Code in the document preamble.
12399 Then all entries of multirow cells in the document are centered.
12400 If centering is only needed for several tables, you can renew the command
12401 in a TeX-Code box just before the table instead of the preamble.
12402 If the text should be right-aligned, replace
12415 To return to left-alignment
12424 \begin_layout Section
12426 \begin_inset CommandInset label
12428 name "sec:Formal-Tables"
12433 \begin_inset Index idx
12436 \begin_layout Plain Layout
12445 \begin_layout Standard
12446 Tables are often typeset in books similar to Table
12447 \begin_inset space ~
12451 \begin_inset CommandInset ref
12453 reference "tab:Example-booktabs-table"
12458 This kind of tables is called
12459 \begin_inset Quotes eld
12467 \begin_inset Quotes erd
12471 To make a table a formal table use the option
12479 tab of the table dialog.
12482 \begin_layout Standard
12483 \begin_inset Float table
12489 \begin_layout Plain Layout
12490 \begin_inset Caption
12492 \begin_layout Plain Layout
12493 \begin_inset CommandInset label
12495 name "tab:Example-booktabs-table"
12499 Example booktabs-table
12507 \begin_layout Plain Layout
12509 \begin_inset Tabular
12510 <lyxtabular version="3" rows="8" columns="4">
12511 <features booktabs="true" tabularvalignment="middle">
12512 <column alignment="center" valignment="top" width="0">
12513 <column alignment="center" valignment="top" width="0">
12514 <column alignment="center" valignment="top" width="0">
12515 <column alignment="center" valignment="top" width="0">
12517 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12520 \begin_layout Plain Layout
12526 <cell alignment="center" valignment="top" topline="true" usebox="none">
12529 \begin_layout Plain Layout
12531 \begin_inset space \thinspace{}
12539 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12542 \begin_layout Plain Layout
12544 \begin_inset space \thinspace{}
12552 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12555 \begin_layout Plain Layout
12563 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12566 \begin_layout Plain Layout
12570 \begin_layout Plain Layout
12583 \begin_layout Plain Layout
12592 Detector thickness in µm
12597 <cell alignment="center" valignment="top" usebox="none">
12600 \begin_layout Plain Layout
12606 <cell alignment="center" valignment="top" usebox="none">
12609 \begin_layout Plain Layout
12615 <cell alignment="center" valignment="top" usebox="none">
12618 \begin_layout Plain Layout
12626 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12629 \begin_layout Plain Layout
12635 <cell alignment="center" valignment="top" topline="true" usebox="none">
12638 \begin_layout Plain Layout
12644 <cell alignment="center" valignment="top" topline="true" usebox="none">
12647 \begin_layout Plain Layout
12653 <cell alignment="center" valignment="top" topline="true" usebox="none">
12656 \begin_layout Plain Layout
12663 <row topspace="default">
12664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12667 \begin_layout Plain Layout
12668 Spatial resolution in µm
12673 <cell alignment="center" valignment="top" usebox="none">
12676 \begin_layout Plain Layout
12682 <cell alignment="center" valignment="top" usebox="none">
12685 \begin_layout Plain Layout
12691 <cell alignment="center" valignment="top" usebox="none">
12694 \begin_layout Plain Layout
12701 <row topspace="default">
12702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12705 \begin_layout Plain Layout
12707 \begin_inset Formula $f_{\mathrm{max}}$
12715 <cell alignment="center" valignment="top" usebox="none">
12718 \begin_layout Plain Layout
12724 <cell alignment="center" valignment="top" usebox="none">
12727 \begin_layout Plain Layout
12733 <cell alignment="center" valignment="top" usebox="none">
12736 \begin_layout Plain Layout
12743 <row topspace="default">
12744 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12747 \begin_layout Plain Layout
12751 \begin_layout Plain Layout
12755 cmidrule(l{10pt}){1-1}
12760 LSF-spatial resolution
12765 <cell alignment="center" valignment="top" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" usebox="none">
12777 \begin_layout Plain Layout
12783 <cell alignment="center" valignment="top" usebox="none">
12786 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" usebox="none">
12806 \begin_layout Plain Layout
12812 <cell alignment="center" valignment="top" usebox="none">
12815 \begin_layout Plain Layout
12821 <cell alignment="center" valignment="top" usebox="none">
12824 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12835 \begin_layout Plain Layout
12841 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12844 \begin_layout Plain Layout
12850 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12853 \begin_layout Plain Layout
12859 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12862 \begin_layout Plain Layout
12881 \begin_layout Standard
12882 Spaces to table rows can be added using the
12886 tab of the table dialog as described in section
12887 \begin_inset space ~
12891 \begin_inset CommandInset ref
12893 reference "sub:Row-Spacing"
12900 \begin_layout Standard
12901 Unlike normal tables, formal tables have no vertical table lines.
12902 The horizontal table lines can be set as for normal tables but they appear
12903 with different widths in the output:
12904 \begin_inset Newline newline
12907 The first and the last table line have a default width of 0.08
12908 \begin_inset space \thinspace{}
12911 em while the other lines have a default width of 0.05
12912 \begin_inset space \thinspace{}
12918 \begin_layout Standard
12919 The default widths can be changed with the following preamble lines
12922 \begin_layout Standard
12932 \begin_inset Newline newline
12944 \begin_layout Standard
12945 This example is for the first line, the so called
12950 If you want to change the width for the last line, replace
12959 To change the width for the other lines replace
12968 You can use all units listed in appendix
12969 \begin_inset space ~
12973 \begin_inset CommandInset ref
12975 reference "cha:Units-available-in"
12982 \begin_layout Standard
12983 Lines that do not span all table columns can be created by setting a table
12984 line for multicolumn cells.
12985 LyX will then internally use the command
12991 to create this line.
12995 \begin_layout Standard
13000 cmidrule[width](trim){startcol-endcol}
13003 \begin_layout Standard
13010 are currently not supported by LyX so you have to use TeX-Code to be able
13018 s can manually be created by inserting the command as TeX-Code as the first
13019 cell entry of the first cell of a row.
13020 The line is then drawn in the output above the current row.
13023 \begin_layout Standard
13024 The default for the width is 0.03
13025 \begin_inset space \thinspace{}
13029 Startcol is the number of the column where the line starts and endcol the
13030 column number where the line ends.
13031 The endcol always needs to be specified, also when the line should span
13033 The optional parameter trim could be either
13041 where the trimwidth is also optional.
13042 Using for example the parameter
13046 means that the line is trimmed from its left end by 2
13047 \begin_inset space \thinspace{}
13051 If you don't specify the trimwidth the lines are trimmed by the default
13053 \begin_inset space \thinspace{}
13059 \begin_layout Standard
13060 \begin_inset VSpace bigskip
13064 \begin_inset space ~
13068 \begin_inset CommandInset ref
13070 reference "tab:Example-booktabs-table"
13074 was created using the commands
13077 \begin_layout Standard
13087 \begin_layout Standard
13088 at the beginning of the second row and
13091 \begin_layout Standard
13096 cmidrule(l{10pt}){1-1}
13099 \begin_layout Standard
13103 \begin_layout Standard
13104 \begin_inset VSpace bigskip
13110 \begin_layout Standard
13111 You might want to have overlapping
13118 \begin_inset space ~
13122 \begin_inset CommandInset ref
13124 reference "tab:Special-booktabs-table"
13129 This can be achieved with the TeX-Code command
13132 \begin_layout Standard
13140 \begin_layout Standard
13141 The command that was used for the second row of Table
13142 \begin_inset space ~
13146 \begin_inset CommandInset ref
13148 reference "tab:Special-booktabs-table"
13155 \begin_layout Standard
13169 \begin_layout Standard
13170 The command for the sixth row is
13173 \begin_layout Standard
13185 \begin_layout Standard
13186 \begin_inset VSpace bigskip
13192 \begin_layout Standard
13193 If you are anyway not satisfied with the border line spacing, you can use
13194 the following command to produce lines that span over all table columns
13199 \begin_layout Standard
13204 specialrule{width}{space above}{space below}
13207 \begin_layout Standard
13208 For more information about these features, refer to the manual of the LaTeX-pack
13214 \begin_inset CommandInset citation
13221 \begin_inset Index idx
13224 \begin_layout Plain Layout
13225 LaTeX-packages ! booktabs
13233 \begin_layout Standard
13234 \begin_inset Float table
13240 \begin_layout Plain Layout
13241 \begin_inset Caption
13243 \begin_layout Plain Layout
13244 \begin_inset CommandInset label
13246 name "tab:Special-booktabs-table"
13250 Special booktabs-table
13258 \begin_layout Plain Layout
13260 \begin_inset Tabular
13261 <lyxtabular version="3" rows="8" columns="4">
13262 <features booktabs="true" tabularvalignment="middle">
13263 <column alignment="center" valignment="top" width="0">
13264 <column alignment="center" valignment="top" width="0">
13265 <column alignment="center" valignment="top" width="0">
13266 <column alignment="center" valignment="top" width="0">
13268 <cell alignment="center" valignment="top" topline="true" usebox="none">
13271 \begin_layout Plain Layout
13277 <cell alignment="center" valignment="top" topline="true" usebox="none">
13280 \begin_layout Plain Layout
13282 \begin_inset space \thinspace{}
13290 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13293 \begin_layout Plain Layout
13295 \begin_inset space \thinspace{}
13303 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13306 \begin_layout Plain Layout
13314 <cell alignment="center" valignment="top" usebox="none">
13317 \begin_layout Plain Layout
13321 \begin_layout Plain Layout
13334 \begin_layout Plain Layout
13347 \begin_layout Plain Layout
13360 \begin_layout Plain Layout
13369 Detector thickness in µm
13374 <cell alignment="center" valignment="top" usebox="none">
13377 \begin_layout Plain Layout
13383 <cell alignment="center" valignment="top" usebox="none">
13386 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" usebox="none">
13395 \begin_layout Plain Layout
13403 <cell alignment="center" valignment="top" topline="true" usebox="none">
13406 \begin_layout Plain Layout
13412 <cell alignment="center" valignment="top" topline="true" usebox="none">
13415 \begin_layout Plain Layout
13421 <cell alignment="center" valignment="top" topline="true" usebox="none">
13424 \begin_layout Plain Layout
13430 <cell alignment="center" valignment="top" topline="true" usebox="none">
13433 \begin_layout Plain Layout
13440 <row topspace="default">
13441 <cell alignment="center" valignment="top" usebox="none">
13444 \begin_layout Plain Layout
13445 Spatial resolution in µm
13450 <cell alignment="center" valignment="top" usebox="none">
13453 \begin_layout Plain Layout
13459 <cell alignment="center" valignment="top" usebox="none">
13462 \begin_layout Plain Layout
13468 <cell alignment="center" valignment="top" usebox="none">
13471 \begin_layout Plain Layout
13478 <row topspace="default">
13479 <cell alignment="center" valignment="top" usebox="none">
13482 \begin_layout Plain Layout
13484 \begin_inset Formula $f_{\mathrm{max}}$
13492 <cell alignment="center" valignment="top" usebox="none">
13495 \begin_layout Plain Layout
13501 <cell alignment="center" valignment="top" usebox="none">
13504 \begin_layout Plain Layout
13510 <cell alignment="center" valignment="top" usebox="none">
13513 \begin_layout Plain Layout
13521 <cell alignment="center" valignment="top" topline="true" usebox="none">
13524 \begin_layout Plain Layout
13528 \begin_layout Plain Layout
13541 \begin_layout Plain Layout
13550 LSF-spatial resolution
13555 <cell alignment="center" valignment="top" topline="true" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" topline="true" usebox="none">
13567 \begin_layout Plain Layout
13573 <cell alignment="center" valignment="top" topline="true" usebox="none">
13576 \begin_layout Plain Layout
13584 <cell alignment="center" valignment="top" usebox="none">
13587 \begin_layout Plain Layout
13593 <cell alignment="center" valignment="top" usebox="none">
13596 \begin_layout Plain Layout
13602 <cell alignment="center" valignment="top" usebox="none">
13605 \begin_layout Plain Layout
13611 <cell alignment="center" valignment="top" usebox="none">
13614 \begin_layout Plain Layout
13622 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13625 \begin_layout Plain Layout
13631 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13634 \begin_layout Plain Layout
13640 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13643 \begin_layout Plain Layout
13649 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13652 \begin_layout Plain Layout
13671 \begin_layout Section
13672 Vertical Table Alignment
13673 \begin_inset Index idx
13676 \begin_layout Plain Layout
13685 \begin_layout Standard
13686 To align tables vertically in a text line the table must be inside a box.
13687 The box can then be vertically aligned as described in section
13688 \begin_inset space ~
13692 \begin_inset CommandInset ref
13694 reference "sec:Box-Dialog"
13701 \begin_layout Standard
13702 In the following example the tables are inside a minipage
13706 \begin_layout Plain Layout
13707 Minipages are described in section
13708 \begin_inset space ~
13712 \begin_inset CommandInset ref
13714 reference "sec:Minipages"
13723 box that has a width of 15
13724 \begin_inset space \thinspace{}
13730 \begin_layout Itemize
13732 \begin_inset Box Frameless
13742 height_special "totalheight"
13745 \begin_layout Plain Layout
13746 \begin_inset Tabular
13747 <lyxtabular version="3" rows="3" columns="3">
13748 <features tabularvalignment="middle">
13749 <column alignment="center" valignment="top" width="0">
13750 <column alignment="center" valignment="top" width="0">
13751 <column alignment="center" valignment="top" width="0">
13753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13756 \begin_layout Plain Layout
13762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13765 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13774 \begin_layout Plain Layout
13782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13785 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13794 \begin_layout Plain Layout
13800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13803 \begin_layout Plain Layout
13811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13814 \begin_layout Plain Layout
13820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13823 \begin_layout Plain Layout
13829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13832 \begin_layout Plain Layout
13852 \begin_layout Plain Layout
13864 \begin_inset Box Frameless
13874 height_special "totalheight"
13877 \begin_layout Plain Layout
13878 \begin_inset Tabular
13879 <lyxtabular version="3" rows="3" columns="3">
13880 <features tabularvalignment="middle">
13881 <column alignment="center" valignment="top" width="0">
13882 <column alignment="center" valignment="top" width="0">
13883 <column alignment="center" valignment="top" width="0">
13885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13888 \begin_layout Plain Layout
13894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13897 \begin_layout Plain Layout
13903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13906 \begin_layout Plain Layout
13914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13917 \begin_layout Plain Layout
13923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13935 \begin_layout Plain Layout
13943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13946 \begin_layout Plain Layout
13952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13955 \begin_layout Plain Layout
13961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13964 \begin_layout Plain Layout
13984 \begin_layout Plain Layout
13994 \begin_layout Itemize
13996 \begin_inset Box Frameless
14006 height_special "totalheight"
14009 \begin_layout Plain Layout
14010 \begin_inset Tabular
14011 <lyxtabular version="3" rows="3" columns="3">
14012 <features tabularvalignment="middle">
14013 <column alignment="center" valignment="top" width="0">
14014 <column alignment="center" valignment="top" width="0">
14015 <column alignment="center" valignment="top" width="0">
14017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14020 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14029 \begin_layout Plain Layout
14035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14038 \begin_layout Plain Layout
14046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14049 \begin_layout Plain Layout
14055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14058 \begin_layout Plain Layout
14064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14067 \begin_layout Plain Layout
14075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14078 \begin_layout Plain Layout
14084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14087 \begin_layout Plain Layout
14093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14096 \begin_layout Plain Layout
14115 \begin_layout Itemize
14117 \begin_inset Box Frameless
14127 height_special "totalheight"
14130 \begin_layout Plain Layout
14131 \begin_inset Tabular
14132 <lyxtabular version="3" rows="3" columns="3">
14133 <features tabularvalignment="middle">
14134 <column alignment="center" valignment="top" width="0">
14135 <column alignment="center" valignment="top" width="0">
14136 <column alignment="center" valignment="top" width="0">
14138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14141 \begin_layout Plain Layout
14147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14150 \begin_layout Plain Layout
14156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14159 \begin_layout Plain Layout
14167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14170 \begin_layout Plain Layout
14176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14179 \begin_layout Plain Layout
14185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14188 \begin_layout Plain Layout
14196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14199 \begin_layout Plain Layout
14205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14208 \begin_layout Plain Layout
14214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14217 \begin_layout Plain Layout
14237 \begin_layout Plain Layout
14249 \begin_inset Box Frameless
14259 height_special "totalheight"
14262 \begin_layout Plain Layout
14263 \begin_inset Tabular
14264 <lyxtabular version="3" rows="3" columns="3">
14265 <features tabularvalignment="middle">
14266 <column alignment="center" valignment="top" width="0">
14267 <column alignment="center" valignment="top" width="0">
14268 <column alignment="center" valignment="top" width="0">
14270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14273 \begin_layout Plain Layout
14279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14282 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14291 \begin_layout Plain Layout
14299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14302 \begin_layout Plain Layout
14308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14311 \begin_layout Plain Layout
14317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14320 \begin_layout Plain Layout
14328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14331 \begin_layout Plain Layout
14337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14340 \begin_layout Plain Layout
14346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14349 \begin_layout Plain Layout
14369 \begin_layout Plain Layout
14379 \begin_layout Standard
14380 As you will see, the content of the first and last table row is not correctly
14382 To get this alignment, the minipage box must be set into a raisebox
14386 \begin_layout Plain Layout
14387 Raiseboxes are described in section
14388 \begin_inset space ~
14392 \begin_inset CommandInset ref
14394 reference "sub:Vertical-Alignment"
14404 In the example above the second table in the first item is aligned using
14405 the TeX-Code-command
14408 \begin_layout Standard
14418 \begin_layout Standard
14420 After the box the closing brace
14424 is inserted as TeX-Code.
14425 For the second table in the last item the command
14428 \begin_layout Standard
14438 \begin_layout Standard
14442 \begin_layout Standard
14443 \begin_inset Note Greyedout
14446 \begin_layout Plain Layout
14451 The alignment of the table row content to the surrounding text line is
14453 The required value for the
14459 command for this alignment depends on the document font, the font size,
14460 and the table line thickness.
14468 \begin_layout Section
14470 \begin_inset CommandInset label
14472 name "sec:Colored-Tables"
14477 \begin_inset Index idx
14480 \begin_layout Plain Layout
14489 \begin_layout Subsection
14491 \begin_inset Index idx
14494 \begin_layout Plain Layout
14495 Table Color ! for Cells
14501 \begin_inset Index idx
14504 \begin_layout Plain Layout
14505 Color ! for Table Cells
14513 \begin_layout Standard
14514 \begin_inset Float table
14520 \begin_layout Plain Layout
14521 \begin_inset Caption
14523 \begin_layout Plain Layout
14524 \begin_inset CommandInset label
14526 name "tab:Table-colored-without"
14530 Table colored without using the package
14535 \begin_inset Argument
14538 \begin_layout Plain Layout
14539 Table without colortbl
14552 \begin_layout Plain Layout
14554 \begin_inset Tabular
14555 <lyxtabular version="3" rows="3" columns="3">
14556 <features tabularvalignment="middle">
14557 <column alignment="center" valignment="top" width="0">
14558 <column alignment="center" valignment="top" width="0">
14559 <column alignment="center" valignment="top" width="0">
14561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14564 \begin_layout Plain Layout
14572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14575 \begin_layout Plain Layout
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14586 \begin_layout Plain Layout
14596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14599 \begin_layout Plain Layout
14607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14610 \begin_layout Plain Layout
14618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14621 \begin_layout Plain Layout
14631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14634 \begin_layout Plain Layout
14642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14645 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14656 \begin_layout Plain Layout
14677 \begin_layout Standard
14678 If you only need colored text, mark the cells and choose a color in the
14681 Edit\SpecialChar \menuseparator
14683 \begin_inset space ~
14689 This was used to create Table
14690 \begin_inset space ~
14694 \begin_inset CommandInset ref
14696 reference "tab:Table-colored-without"
14701 In any other case you have to use the LaTeX-package
14706 \begin_inset Index idx
14709 \begin_layout Plain Layout
14710 LaTeX-packages ! colortbl
14718 \begin_layout Standard
14722 \begin_layout Plain Layout
14732 \begin_inset Note Note
14735 \begin_layout Plain Layout
14736 The following section part will only be displayed when the LaTeX-package
14749 \begin_layout Standard
14750 To create colored tables,
14754 must be loaded in the preamble with the line
14757 \begin_layout Standard
14762 usepackage{colortbl}
14765 \begin_layout Standard
14766 The color of a column is adjusted with the command
14769 \begin_layout Standard
14774 columncolor{name of color}
14777 \begin_layout Standard
14783 More about the command
14787 is contained in section
14788 \begin_inset space ~
14792 \begin_inset CommandInset ref
14794 reference "sub:Multicolumn-Calculations"
14801 \begin_layout Standard
14802 The following color names are predefined:
14805 \begin_layout Standard
14839 \begin_layout Standard
14840 \begin_inset VSpace medskip
14846 \begin_layout Standard
14847 You can also define your own color with the command
14850 \begin_layout Standard
14855 definecolor{color name}{color model}{color values}
14858 \begin_layout Standard
14859 The color model can be
14862 \begin_layout Labeling
14863 \labelwidthstring 00.00.0000
14864 cmyk: cyan, magenta, yellow, black
14867 \begin_layout Labeling
14868 \labelwidthstring 00.00.0000
14869 rgb: red, green blue
14872 \begin_layout Labeling
14873 \labelwidthstring 00.00.0000
14877 \begin_layout Standard
14878 and the color values are comma separated numbers between 0 and 1 describing
14879 the factor for the corresponding color of the color model.
14882 \begin_layout Standard
14884 \begin_inset space \thinspace{}
14888 \begin_inset space \space{}
14895 " in the preamble with
14898 \begin_layout Standard
14903 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14906 \begin_layout Standard
14914 \begin_layout Standard
14919 definecolor{lightgray}{gray}{0.8}
14922 \begin_layout Standard
14923 \begin_inset VSpace medskip
14929 \begin_layout Standard
14930 Lines are colored with the command
14933 \begin_layout Standard
14938 rowcolor{name of color}
14941 \begin_layout Standard
14942 and cells are colored with the command
14945 \begin_layout Standard
14950 cellcolor{name of color}
14953 \begin_layout Standard
14954 Both commands are inserted at the beginning of a cell as TeX-Code.
14957 \begin_layout Standard
14958 To color characters in the table, mark the cells and use the LyX menu
14960 Edit\SpecialChar \menuseparator
14962 \begin_inset space ~
14968 If a cell contains TeX-Code mark only the characters, otherwise the colored
14969 TeX-Code will cause LaTeX-errors.
14972 \begin_layout Standard
14973 \begin_inset Note Greyedout
14976 \begin_layout Plain Layout
14981 Not all DVI-viewers are able to display self-defined colors.
14989 \begin_layout Standard
14990 \begin_inset VSpace bigskip
14996 \begin_layout Standard
14998 \begin_inset space ~
15002 \begin_inset CommandInset ref
15004 reference "tab:Table-colored-using"
15008 do the following: The color of the first column should be
15016 \begin_layout Standard
15021 columncolor{darkgreen}
15026 \begin_layout Standard
15027 as LaTeX-argument for this column.
15028 The first row should be blue, therefore the TeX-Code command
15031 \begin_layout Standard
15039 \begin_layout Standard
15040 is inserted to the first cell of this row.
15041 Note that this overwrites the column color for the first cell.
15042 The last cell of the last row is colored magenta by inserting the TeX-Code
15046 \begin_layout Standard
15054 \begin_layout Standard
15055 The characters could now be colored using the menu
15057 Edit\SpecialChar \menuseparator
15059 \begin_inset space ~
15067 \begin_layout Standard
15068 \begin_inset Float table
15074 \begin_layout Plain Layout
15075 \begin_inset Caption
15077 \begin_layout Plain Layout
15078 \begin_inset CommandInset label
15080 name "tab:Table-colored-using"
15084 Table colored using the package
15089 \begin_inset Argument
15092 \begin_layout Plain Layout
15093 Table with colortbl
15106 \begin_layout Plain Layout
15108 \begin_inset Tabular
15109 <lyxtabular version="3" rows="3" columns="3">
15110 <features tabularvalignment="middle">
15111 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15112 <column alignment="center" valignment="top" width="0">
15113 <column alignment="center" valignment="top" width="0">
15115 <cell alignment="center" valignment="top" usebox="none">
15118 \begin_layout Plain Layout
15122 \begin_layout Plain Layout
15138 <cell alignment="center" valignment="top" usebox="none">
15141 \begin_layout Plain Layout
15149 <cell alignment="center" valignment="top" usebox="none">
15152 \begin_layout Plain Layout
15162 <cell alignment="center" valignment="top" usebox="none">
15165 \begin_layout Plain Layout
15173 <cell alignment="center" valignment="top" usebox="none">
15176 \begin_layout Plain Layout
15184 <cell alignment="center" valignment="top" usebox="none">
15187 \begin_layout Plain Layout
15197 <cell alignment="center" valignment="top" usebox="none">
15200 \begin_layout Plain Layout
15208 <cell alignment="center" valignment="top" usebox="none">
15211 \begin_layout Plain Layout
15219 <cell alignment="center" valignment="top" usebox="none">
15222 \begin_layout Plain Layout
15226 \begin_layout Plain Layout
15255 \begin_layout Standard
15259 \begin_layout Plain Layout
15269 \begin_inset Note Note
15272 \begin_layout Plain Layout
15273 The following will be displayed when the LaTeX-package
15285 \begin_layout Standard
15286 You need to install the package
15290 to see the content of this section in the output.
15293 \begin_layout Standard
15297 \begin_layout Plain Layout
15309 \begin_layout Subsection
15311 \begin_inset Index idx
15314 \begin_layout Plain Layout
15315 Table Color ! for Lines
15321 \begin_inset Index idx
15324 \begin_layout Plain Layout
15325 Color ! for Table Lines
15333 \begin_layout Standard
15334 As described in section
15335 \begin_inset space ~
15339 \begin_inset CommandInset ref
15341 reference "sub:Line-Thickness"
15345 , the line thickness for all lines in a table can be adjusted with the length
15354 \begin_inset space \thinspace{}
15357 pt for all tables of this section.
15361 \begin_layout Plain Layout
15367 arrayrulewidth}{1.5pt}
15375 \begin_layout Standard
15376 To color vertical lines for example with green, create the following column
15377 format in the document preamble, according to the description in section
15378 \begin_inset space ~
15382 \begin_inset CommandInset ref
15384 reference "sub:Customized-Format"
15391 \begin_layout Standard
15396 newcolumntype{W}{!{
15403 \begin_layout Standard
15405 \begin_inset space ~
15409 \begin_inset CommandInset ref
15411 reference "tab:Table-with-vertical-colored"
15419 was used for the last column and
15423 for the other columns.
15426 \begin_layout Standard
15427 If you want to have several colors, define more column formats.
15430 \begin_layout Standard
15431 \begin_inset Float table
15437 \begin_layout Plain Layout
15438 \begin_inset Caption
15440 \begin_layout Plain Layout
15441 \begin_inset CommandInset label
15443 name "tab:Table-with-vertical-colored"
15447 Table with colored vertical lines
15455 \begin_layout Plain Layout
15457 \begin_inset Tabular
15458 <lyxtabular version="3" rows="3" columns="3">
15459 <features tabularvalignment="middle">
15460 <column alignment="center" valignment="top" width="0" special="Wc">
15461 <column alignment="center" valignment="top" width="0" special="Wc">
15462 <column alignment="center" valignment="top" width="0" special="WcW">
15464 <cell alignment="center" valignment="top" topline="true" usebox="none">
15467 \begin_layout Plain Layout
15473 <cell alignment="center" valignment="top" topline="true" usebox="none">
15476 \begin_layout Plain Layout
15482 <cell alignment="center" valignment="top" topline="true" usebox="none">
15485 \begin_layout Plain Layout
15493 <cell alignment="center" valignment="top" topline="true" usebox="none">
15496 \begin_layout Plain Layout
15502 <cell alignment="center" valignment="top" topline="true" usebox="none">
15505 \begin_layout Plain Layout
15511 <cell alignment="center" valignment="top" topline="true" usebox="none">
15514 \begin_layout Plain Layout
15522 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15525 \begin_layout Plain Layout
15531 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15534 \begin_layout Plain Layout
15540 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15543 \begin_layout Plain Layout
15562 \begin_layout Standard
15563 \begin_inset VSpace bigskip
15566 To color horizontal lines for example with red, as in Table
15567 \begin_inset space ~
15571 \begin_inset CommandInset ref
15573 reference "tab:Table-with-horizontal-colored"
15577 , insert these commands in TeX-Code before the table or table float:
15580 \begin_layout Standard
15590 \begin_inset Newline newline
15598 \begin_inset Newline newline
15602 \begin_inset Phantom HPhantom
15605 \begin_layout Plain Layout
15608 \begin_inset space ~
15618 arrayrulecolor{red}
15622 arrayrulecolor{black}}
15625 \begin_layout Standard
15629 \begin_layout Plain Layout
15640 \begin_layout Plain Layout
15649 \begin_layout Plain Layout
15653 arrayrulecolor{red}
15657 arrayrulecolor{black}}
15663 \begin_inset Float table
15669 \begin_layout Plain Layout
15670 \begin_inset Caption
15672 \begin_layout Plain Layout
15673 \begin_inset CommandInset label
15675 name "tab:Table-with-horizontal-colored"
15679 Table with colored horizontal lines
15687 \begin_layout Plain Layout
15689 \begin_inset Tabular
15690 <lyxtabular version="3" rows="3" columns="3">
15691 <features tabularvalignment="middle">
15692 <column alignment="center" valignment="top" width="0">
15693 <column alignment="center" valignment="top" width="0">
15694 <column alignment="center" valignment="top" width="0">
15696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15699 \begin_layout Plain Layout
15705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15708 \begin_layout Plain Layout
15714 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15717 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15728 \begin_layout Plain Layout
15734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15737 \begin_layout Plain Layout
15743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15746 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15757 \begin_layout Plain Layout
15763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15766 \begin_layout Plain Layout
15772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15775 \begin_layout Plain Layout
15794 \begin_layout Standard
15795 To return to the default line color black, insert this command in TeX-Code
15796 after the table or table float:
15799 \begin_layout Standard
15811 \begin_layout Standard
15813 \begin_inset space ~
15817 \begin_inset CommandInset ref
15819 reference "tab:Table-with-colored"
15823 is an example with colored vertical and horizontal lines.
15826 \begin_layout Standard
15827 \begin_inset Float table
15833 \begin_layout Plain Layout
15834 \begin_inset Caption
15836 \begin_layout Plain Layout
15837 \begin_inset CommandInset label
15839 name "tab:Table-with-colored"
15843 Table with colored lines
15851 \begin_layout Plain Layout
15853 \begin_inset Tabular
15854 <lyxtabular version="3" rows="3" columns="3">
15855 <features tabularvalignment="middle">
15856 <column alignment="center" valignment="top" width="0" special="Wc">
15857 <column alignment="center" valignment="top" width="0" special="Wc">
15858 <column alignment="center" valignment="top" width="0" special="WcW">
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" topline="true" usebox="none">
15872 \begin_layout Plain Layout
15878 <cell alignment="center" valignment="top" topline="true" usebox="none">
15881 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" usebox="none">
15892 \begin_layout Plain Layout
15898 <cell alignment="center" valignment="top" topline="true" usebox="none">
15901 \begin_layout Plain Layout
15907 <cell alignment="center" valignment="top" topline="true" usebox="none">
15910 \begin_layout Plain Layout
15917 <row topspace="default">
15918 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15921 \begin_layout Plain Layout
15927 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15930 \begin_layout Plain Layout
15936 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15939 \begin_layout Plain Layout
15958 \begin_layout Standard
15962 \begin_layout Plain Layout
15978 \begin_layout Standard
15982 \begin_layout Plain Layout
15988 arrayrulewidth}{0.4pt}
15996 \begin_layout Section
15997 Table Customization
15998 \begin_inset Index idx
16001 \begin_layout Plain Layout
16002 Table Customization
16008 \begin_inset Index idx
16011 \begin_layout Plain Layout
16012 Table ! Customization
16020 \begin_layout Subsection
16022 \begin_inset CommandInset label
16024 name "sub:Row-Spacing"
16029 \begin_inset Index idx
16032 \begin_layout Plain Layout
16033 Table Customization ! Row Spacing
16041 \begin_layout Standard
16042 You can add vertical space to table rows in the
16046 tab of the table dialog.
16047 You find there three possibilities:
16050 \begin_layout Description
16052 \begin_inset space ~
16056 \begin_inset space ~
16059 row will add space above the characters of the table row.
16060 If the table is a formal table
16064 \begin_layout Plain Layout
16065 Formal tables are explained in section
16066 \begin_inset space ~
16070 \begin_inset CommandInset ref
16072 reference "sec:Formal-Tables"
16081 LyX will insert as default 0.5
16082 \begin_inset space \thinspace{}
16086 For normal tables the inserted space will unfortunately destroy the vertical
16087 table lines as in the following table:
16088 \begin_inset VSpace medskip
16092 \begin_inset Newline newline
16096 \begin_inset space \hspace*{}
16101 \begin_inset space \hfill{}
16105 \begin_inset Tabular
16106 <lyxtabular version="3" rows="3" columns="1">
16107 <features tabularvalignment="middle">
16108 <column alignment="center" valignment="top" width="0">
16110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16113 \begin_layout Plain Layout
16120 <row topspace="3mm">
16121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16124 \begin_layout Plain Layout
16126 \begin_inset space \thinspace{}
16129 mm space top of row
16136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16139 \begin_layout Plain Layout
16151 \begin_inset space \hfill{}
16155 \begin_inset space \hspace*{}
16160 \begin_inset VSpace medskip
16164 \begin_inset Newline newline
16167 So inserting space in the top of row for normal tables is only useful when
16168 you don't have vertical lines.
16171 \begin_layout Description
16173 \begin_inset space ~
16177 \begin_inset space ~
16180 row will add space below the characters of the table row.
16181 If the table is a formal table LyX will insert as default 0.5
16182 \begin_inset space \thinspace{}
16185 em space, for normal tables the default size is 2
16186 \begin_inset space \thinspace{}
16192 \begin_layout Description
16194 \begin_inset space ~
16197 rows adds space between the current and the following row.
16198 If the table is a formal table LyX will insert as default 0.5
16199 \begin_inset space \thinspace{}
16203 For normal tables the inserted space will unfortunately destroy the vertical
16204 table lines as in the following table:
16205 \begin_inset VSpace medskip
16209 \begin_inset Newline newline
16213 \begin_inset space \hspace*{}
16218 \begin_inset space \hfill{}
16222 \begin_inset Tabular
16223 <lyxtabular version="3" rows="3" columns="1">
16224 <features tabularvalignment="middle">
16225 <column alignment="center" valignment="top" width="0">
16227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16230 \begin_layout Plain Layout
16237 <row interlinespace="3mm">
16238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16241 \begin_layout Plain Layout
16242 \begin_inset Formula $\downarrow$
16246 \begin_inset space \thinspace{}
16249 mm space between row
16250 \begin_inset Formula $\downarrow$
16260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16263 \begin_layout Plain Layout
16264 \begin_inset Formula $\uparrow$
16268 \begin_inset space \thinspace{}
16271 mm space between row
16272 \begin_inset Formula $\uparrow$
16286 \begin_inset space \hfill{}
16290 \begin_inset space \hspace*{}
16295 \begin_inset VSpace medskip
16299 \begin_inset Newline newline
16302 So inserting space between rows for normal tables is only useful when you
16303 don't have vertical lines.
16306 \begin_layout Standard
16307 \begin_inset VSpace bigskip
16310 When you want to add extra height to all cells of all tables, you can do
16311 this with the following preamble lines:
16314 \begin_layout Standard
16319 @ifundefined{extrarowheight}
16320 \begin_inset Newline newline
16324 \begin_inset Phantom HPhantom
16327 \begin_layout Plain Layout
16330 \begin_inset space ~
16340 usepackage{array}}{}
16341 \begin_inset Newline newline
16348 extrarowheight}{height}
16351 \begin_layout Standard
16352 But this has the disadvantage that the cell texts are no longer exactly
16353 vertically centered.
16358 will be loaded automatically by LyX when you use self defined table formats.
16359 To avoid that it being loaded twice the command
16365 is used in the above command.)
16368 \begin_layout Standard
16369 If you are using font sizes larger than the normal size, the table borders
16370 are often too close to the letters.
16371 This can be corrected by inserting the command
16377 in TeX code at the beginning of a table row.
16379 \begin_inset space ~
16383 \begin_inset CommandInset ref
16385 reference "tab:Vertical-alignment-of"
16389 illustrates the effect.
16392 \begin_layout Standard
16394 \begin_inset Float table
16400 \begin_layout Plain Layout
16401 \begin_inset Caption
16403 \begin_layout Plain Layout
16404 \begin_inset CommandInset label
16406 name "tab:Vertical-alignment-of"
16410 Vertical alignment of text with large font sizes.
16418 \begin_layout Plain Layout
16419 \begin_inset space \hfill{}
16423 \begin_inset Float table
16428 \begin_layout Plain Layout
16429 \begin_inset Caption
16431 \begin_layout Plain Layout
16440 \begin_layout Plain Layout
16443 \begin_inset Tabular
16444 <lyxtabular version="3" rows="6" columns="1">
16445 <features tabularvalignment="middle">
16446 <column alignment="left" valignment="top" width="0">
16448 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16451 \begin_layout Plain Layout
16459 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16462 \begin_layout Plain Layout
16472 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16475 \begin_layout Plain Layout
16485 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16488 \begin_layout Plain Layout
16498 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16501 \begin_layout Plain Layout
16511 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16514 \begin_layout Plain Layout
16533 \begin_inset space \hfill{}
16537 \begin_inset Float table
16542 \begin_layout Plain Layout
16543 \begin_inset Caption
16545 \begin_layout Plain Layout
16546 Table using the command
16560 \begin_layout Plain Layout
16563 \begin_inset Tabular
16564 <lyxtabular version="3" rows="6" columns="1">
16565 <features tabularvalignment="middle">
16566 <column alignment="left" valignment="top" width="0">
16568 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16579 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16582 \begin_layout Plain Layout
16588 \begin_layout Plain Layout
16604 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16607 \begin_layout Plain Layout
16613 \begin_layout Plain Layout
16629 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16632 \begin_layout Plain Layout
16638 \begin_layout Plain Layout
16654 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16657 \begin_layout Plain Layout
16663 \begin_layout Plain Layout
16679 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16682 \begin_layout Plain Layout
16688 \begin_layout Plain Layout
16715 \begin_inset space \hfill{}
16726 \begin_layout Subsection
16727 Special Cell Alignment
16728 \begin_inset Index idx
16731 \begin_layout Plain Layout
16732 Table Customization ! Special Cell Alignment
16740 \begin_layout Standard
16741 Sometimes it looks better when the cell entries of a column are aligned
16742 with a special character, e.
16743 \begin_inset space \thinspace{}
16747 \begin_inset space \space{}
16750 with the decimal separator as in Table
16751 \begin_inset space ~
16755 \begin_inset CommandInset ref
16757 reference "tab:Table-cells-of"
16764 \begin_layout Standard
16765 \begin_inset Float table
16771 \begin_layout Plain Layout
16772 \begin_inset Caption
16774 \begin_layout Plain Layout
16775 \begin_inset CommandInset label
16777 name "tab:Table-cells-of"
16781 Table cells of a column aligned with the decimal separator.
16789 \begin_layout Plain Layout
16791 \begin_inset Tabular
16792 <lyxtabular version="3" rows="4" columns="2">
16793 <features tabularvalignment="middle">
16794 <column alignment="right" valignment="top" width="0">
16795 <column alignment="left" valignment="top" width="0" special="@{}l">
16797 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16800 \begin_layout Plain Layout
16806 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16809 \begin_layout Plain Layout
16817 <cell alignment="center" valignment="top" usebox="none">
16820 \begin_layout Plain Layout
16826 <cell alignment="center" valignment="top" usebox="none">
16829 \begin_layout Plain Layout
16837 <cell alignment="center" valignment="top" usebox="none">
16840 \begin_layout Plain Layout
16846 <cell alignment="center" valignment="top" usebox="none">
16849 \begin_layout Plain Layout
16857 <cell alignment="center" valignment="top" usebox="none">
16860 \begin_layout Plain Layout
16866 <cell alignment="center" valignment="top" usebox="none">
16869 \begin_layout Plain Layout
16888 \begin_layout Standard
16889 This table was created with a 4×2 table.
16890 The heading is a centered multicolumn.
16891 The first column is right-aligned and contains the digits before the decimal
16892 point and the decimal point.
16893 The second column is left aligned and contains the digits after the decimal
16895 To omit the space that is normally between two table columns, the following
16896 LaTeX-argument was used for the second column:
16899 \begin_layout Standard
16905 \begin_layout Standard
16907 \begin_inset space ~
16911 \begin_inset CommandInset ref
16913 reference "tab:Several-table-cell"
16917 shows some example alignments.
16918 For the alignment with the relation sign, you must add the second smallest
16919 math-space at the beginning of the last column to get the correct space
16920 surrounding the relation sign.
16923 \begin_layout Standard
16924 \begin_inset Float table
16930 \begin_layout Plain Layout
16931 \begin_inset Caption
16933 \begin_layout Plain Layout
16934 \begin_inset CommandInset label
16936 name "tab:Several-table-cell"
16940 Several table cell alignments.
16948 \begin_layout Plain Layout
16950 \begin_inset Tabular
16951 <lyxtabular version="3" rows="4" columns="6">
16952 <features tabularvalignment="middle">
16953 <column alignment="right" valignment="top" width="0">
16954 <column alignment="left" valignment="top" width="0" special="@{}l">
16955 <column alignment="right" valignment="top" width="0">
16956 <column alignment="left" valignment="top" width="0" special="@{}l">
16957 <column alignment="right" valignment="top" width="0">
16958 <column alignment="left" valignment="top" width="0" special="@{}l">
16960 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16963 \begin_layout Plain Layout
16969 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16972 \begin_layout Plain Layout
16978 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16981 \begin_layout Plain Layout
16987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16990 \begin_layout Plain Layout
16996 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16999 \begin_layout Plain Layout
17005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17008 \begin_layout Plain Layout
17016 <cell alignment="center" valignment="top" usebox="none">
17019 \begin_layout Plain Layout
17025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17028 \begin_layout Plain Layout
17030 \begin_inset space \thinspace{}
17038 <cell alignment="center" valignment="top" usebox="none">
17041 \begin_layout Plain Layout
17042 \begin_inset Formula $10\cdot$
17050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17053 \begin_layout Plain Layout
17054 \begin_inset Formula $10^{\mbox{-}17}$
17062 <cell alignment="center" valignment="top" usebox="none">
17065 \begin_layout Plain Layout
17066 \begin_inset Formula $\Gamma(t)\propto$
17074 <cell alignment="center" valignment="top" usebox="none">
17077 \begin_layout Plain Layout
17078 \begin_inset Formula $\:\Upsilon(t)$
17088 <cell alignment="center" valignment="top" usebox="none">
17091 \begin_layout Plain Layout
17097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17100 \begin_layout Plain Layout
17102 \begin_inset space \thinspace{}
17110 <cell alignment="center" valignment="top" usebox="none">
17113 \begin_layout Plain Layout
17114 \begin_inset Formula $5.78\cdot$
17122 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17125 \begin_layout Plain Layout
17126 \begin_inset Formula $10^{7}$
17134 <cell alignment="center" valignment="top" usebox="none">
17137 \begin_layout Plain Layout
17138 \begin_inset Formula $A\ne$
17146 <cell alignment="center" valignment="top" usebox="none">
17149 \begin_layout Plain Layout
17150 \begin_inset Formula $\: B_{\mathrm{red}}$
17160 <cell alignment="center" valignment="top" usebox="none">
17163 \begin_layout Plain Layout
17169 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17172 \begin_layout Plain Layout
17174 \begin_inset space \thinspace{}
17182 <cell alignment="center" valignment="top" usebox="none">
17185 \begin_layout Plain Layout
17187 \begin_inset Formula $33.5\cdot$
17195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17198 \begin_layout Plain Layout
17199 \begin_inset Formula $10^{4}$
17207 <cell alignment="center" valignment="top" usebox="none">
17210 \begin_layout Plain Layout
17211 \begin_inset Formula $\sin(\alpha)\ge$
17219 <cell alignment="center" valignment="top" usebox="none">
17222 \begin_layout Plain Layout
17223 \begin_inset Formula $\:\sin(\beta)$
17244 \begin_layout Standard
17245 \begin_inset VSpace bigskip
17248 There is also the LaTeX-package
17253 \begin_inset Index idx
17256 \begin_layout Plain Layout
17257 LaTeX-packages ! dcolumn
17262 that provides table cell alignments.
17263 But this unfortunately treats the cell entries as math and does not allow
17264 formulas in table cells: The first column of Table
17265 \begin_inset space ~
17269 \begin_inset CommandInset ref
17271 reference "tab:Several-table-cell"
17279 like the first column in Table
17280 \begin_inset space ~
17284 \begin_inset CommandInset ref
17286 reference "tab:Alignments-when"
17290 and only with some tricks as you would want.
17291 The alignment of the second and third column of Table
17292 \begin_inset space ~
17296 \begin_inset CommandInset ref
17298 reference "tab:Several-table-cell"
17302 is not possible with
17309 \begin_layout Standard
17310 \begin_inset Newpage newpage
17316 \begin_layout Standard
17317 \begin_inset Float table
17323 \begin_layout Plain Layout
17324 \begin_inset Caption
17326 \begin_layout Plain Layout
17327 \begin_inset CommandInset label
17329 name "tab:Alignments-when"
17333 Alignments when LaTeX-package dcolumn is used.
17334 For all column alignments tricks have to be used to get the output.
17342 \begin_layout Plain Layout
17344 \begin_inset Tabular
17345 <lyxtabular version="3" rows="4" columns="3">
17346 <features tabularvalignment="middle">
17347 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17348 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17349 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17351 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17354 \begin_layout Plain Layout
17360 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17363 \begin_layout Plain Layout
17369 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17372 \begin_layout Plain Layout
17380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17383 \begin_layout Plain Layout
17385 \begin_inset space \thinspace{}
17393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17396 \begin_layout Plain Layout
17398 \begin_inset space \thinspace{}
17402 \begin_inset Formula $\mbox{bottles}$
17410 <cell alignment="center" valignment="top" usebox="none">
17413 \begin_layout Plain Layout
17418 \begin_layout Plain Layout
17428 \begin_inset Formula $\mbox{bottles}$
17438 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17441 \begin_layout Plain Layout
17443 \begin_inset space \thinspace{}
17451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17454 \begin_layout Plain Layout
17456 \begin_inset space \thinspace{}
17460 \begin_inset Formula $\mbox{Pixels}$
17468 <cell alignment="center" valignment="top" usebox="none">
17471 \begin_layout Plain Layout
17476 \begin_layout Plain Layout
17486 \begin_inset Formula $\mbox{Pixels}$
17496 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17499 \begin_layout Plain Layout
17501 \begin_inset space \thinspace{}
17509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17512 \begin_layout Plain Layout
17514 \begin_inset space \thinspace{}
17518 \begin_inset Formula $\mbox{cm}$
17526 <cell alignment="center" valignment="top" usebox="none">
17529 \begin_layout Plain Layout
17534 \begin_layout Plain Layout
17544 \begin_inset Formula $\mbox{cm}$
17565 \begin_layout Subsection
17566 Customized Cell/Column Format
17567 \begin_inset CommandInset label
17569 name "sub:Customized-Format"
17574 \begin_inset Index idx
17577 \begin_layout Plain Layout
17578 Table Customization ! Cell/Column Format
17586 \begin_layout Standard
17587 Calculating the required width for spanned columns as in section
17588 \begin_inset space ~
17592 \begin_inset CommandInset ref
17594 reference "sub:Multicolumn-Calculations"
17598 is very annoying if you have several tables with multicolumn cells.
17599 To make life easier, you can define a cell/column format in the preamble,
17600 so that it can be used in all tables of the document.
17601 The format is defined with the command
17604 \begin_layout Standard
17609 newcolumntype{name of format}[number of arguments]{commands}
17612 \begin_layout Standard
17613 The format name may only consist of one letter.
17638 are predefined and cannot be used.
17639 But all letters are allowed as capitals.
17642 \begin_layout Standard
17643 \begin_inset VSpace medskip
17649 \begin_layout Standard
17650 For vertically and horizontally centered multicolumn cells with a fixed
17651 width you can define the cell format
17654 \begin_layout Standard
17659 newcolumntype{M}[1]{>{
17666 \begin_layout Standard
17673 avoids the problem of hyphenating the first word, as described in section
17674 \begin_inset space ~
17678 \begin_inset CommandInset ref
17680 reference "sub:Multiple-Lines-in"
17685 Now you can simply enter
17688 \begin_layout Standard
17694 \begin_layout Standard
17695 as LaTeX-argument in the table dialog to create a multicolumn.
17698 \begin_layout Standard
17699 \begin_inset VSpace bigskip
17705 \begin_layout Standard
17706 For cells spanned by a multicolumn cell, you can define the format
17709 \begin_layout Standard
17714 newcolumntype{S}[2]{>{
17719 \begin_inset Newline newline
17723 \begin_inset Phantom HPhantom
17726 \begin_layout Plain Layout
17740 arrayrulewidth)*(1-#2))/#2}}
17743 \begin_layout Standard
17744 This format uses equation
17745 \begin_inset CommandInset ref
17751 to calculate the required width so that each spanned cell has the same
17755 \begin_layout Standard
17759 \begin_layout Standard
17762 S{width of multicolumn cell}{number of spanned columns}
17765 \begin_layout Standard
17766 as LaTeX-argument of the column.
17769 \begin_layout Standard
17770 \begin_inset VSpace bigskip
17776 \begin_layout Standard
17777 For colored columns, you can define
17780 \begin_layout Standard
17785 newcolumntype{K}[1]{>{
17792 \begin_layout Standard
17794 \begin_inset Quotes eld
17798 \begin_inset Quotes erd
17801 at the end creates a column with a flexible width whose text is horizontally
17806 \begin_layout Standard
17812 \begin_layout Standard
17816 \begin_layout Standard
17817 \begin_inset VSpace bigskip
17823 \begin_layout Standard
17825 \begin_inset space ~
17829 \begin_inset CommandInset ref
17831 reference "tab:Table-using-user-defined"
17835 use the LaTeX-arguments
17838 \begin_layout Standard
17844 \begin_layout Standard
17845 for the first column and the multicolumn,
17848 \begin_layout Standard
17854 \begin_layout Standard
17855 for the last column, and
17858 \begin_layout Standard
17864 \begin_layout Standard
17865 for the cells in the second column.
17868 \begin_layout Standard
17869 \begin_inset Float table
17875 \begin_layout Plain Layout
17876 \begin_inset Caption
17878 \begin_layout Plain Layout
17879 \begin_inset CommandInset label
17881 name "tab:Table-using-user-defined"
17885 Table using user-defined table formats
17893 \begin_layout Plain Layout
17895 \begin_inset Tabular
17896 <lyxtabular version="3" rows="3" columns="4">
17897 <features tabularvalignment="middle">
17898 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17899 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17900 <column alignment="center" valignment="middle" width="0">
17901 <column alignment="center" valignment="middle" width="0" special="K{red}">
17903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17906 \begin_layout Plain Layout
17907 verylongtablecellword
17912 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17915 \begin_layout Plain Layout
17916 multiple lines multicolumn
17921 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17924 \begin_layout Plain Layout
17930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17933 \begin_layout Plain Layout
17941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17944 \begin_layout Plain Layout
17950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17953 \begin_layout Plain Layout
17959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17962 \begin_layout Plain Layout
17968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17971 \begin_layout Plain Layout
17979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17982 \begin_layout Plain Layout
17988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17991 \begin_layout Plain Layout
17997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18000 \begin_layout Plain Layout
18006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18009 \begin_layout Plain Layout
18028 \begin_layout Subsection
18030 \begin_inset CommandInset label
18032 name "sub:Line-Thickness"
18037 \begin_inset Index idx
18040 \begin_layout Plain Layout
18041 Table Customization ! Line Thickness
18049 \begin_layout Standard
18050 The line thickness for all lines in a table can be adjusted with the length
18058 To set for example a line thickness of 1.5
18059 \begin_inset space \thinspace{}
18063 \begin_inset space ~
18067 \begin_inset CommandInset ref
18069 reference "tab:Table-with-1.5"
18073 , insert the command
18076 \begin_layout Standard
18083 arrayrulewidth}{1.5pt}
18086 \begin_layout Standard
18087 in TeX-Code before the table or table float.
18088 The changed thickness is valid for all subsequent tables.
18089 To use the default value again, set
18096 \begin_inset space \thinspace{}
18099 pt in TeX-Code after the table or table float.
18102 \begin_layout Standard
18106 \begin_layout Plain Layout
18112 arrayrulewidth}{1.5pt}
18118 \begin_inset Float table
18123 \begin_layout Plain Layout
18124 \begin_inset Caption
18126 \begin_layout Plain Layout
18127 \begin_inset CommandInset label
18129 name "tab:Table-with-1.5"
18134 \begin_inset space \thinspace{}
18145 \begin_layout Plain Layout
18147 \begin_inset Tabular
18148 <lyxtabular version="3" rows="3" columns="3">
18149 <features tabularvalignment="middle">
18150 <column alignment="center" valignment="top" width="0">
18151 <column alignment="center" valignment="top" width="0">
18152 <column alignment="center" valignment="top" width="0">
18154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18157 \begin_layout Plain Layout
18163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18166 \begin_layout Plain Layout
18172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18175 \begin_layout Plain Layout
18183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18186 \begin_layout Plain Layout
18192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18195 \begin_layout Plain Layout
18201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18204 \begin_layout Plain Layout
18212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18215 \begin_layout Plain Layout
18221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18224 \begin_layout Plain Layout
18230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18233 \begin_layout Plain Layout
18253 \begin_layout Plain Layout
18259 arrayrulewidth}{0.4pt}
18267 \begin_layout Standard
18268 \begin_inset VSpace bigskip
18271 To set the line thickness to 1.5
18272 \begin_inset space \thinspace{}
18275 pt only for horizontal lines, as in Table
18276 \begin_inset space ~
18280 \begin_inset CommandInset ref
18282 reference "tab:Table-with-horizontal"
18286 , insert these commands in TeX-Code before the table or table float:
18289 \begin_layout Standard
18299 \begin_inset Newline newline
18307 \begin_inset Newline newline
18316 arrayrulewidth 1.5pt}
18317 \begin_inset Newline newline
18328 arrayrulewidth 0.4pt}}
18331 \begin_layout Standard
18332 To return to the default line thickness, insert this command in TeX-Code
18333 after the table or table float:
18336 \begin_layout Standard
18348 \begin_layout Standard
18352 \begin_layout Plain Layout
18363 \begin_layout Plain Layout
18372 \begin_layout Plain Layout
18380 arrayrulewidth 1.5pt}
18383 \begin_layout Plain Layout
18393 arrayrulewidth 0.4pt}}
18399 \begin_inset Float table
18404 \begin_layout Plain Layout
18405 \begin_inset Caption
18407 \begin_layout Plain Layout
18408 \begin_inset CommandInset label
18410 name "tab:Table-with-horizontal"
18415 \begin_inset space \thinspace{}
18418 pt thick horizontal lines
18426 \begin_layout Plain Layout
18428 \begin_inset Tabular
18429 <lyxtabular version="3" rows="3" columns="3">
18430 <features tabularvalignment="middle">
18431 <column alignment="center" valignment="top" width="0">
18432 <column alignment="center" valignment="top" width="0">
18433 <column alignment="center" valignment="top" width="0">
18435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18438 \begin_layout Plain Layout
18444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18447 \begin_layout Plain Layout
18453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18456 \begin_layout Plain Layout
18464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18467 \begin_layout Plain Layout
18473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18476 \begin_layout Plain Layout
18482 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18485 \begin_layout Plain Layout
18493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18496 \begin_layout Plain Layout
18502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18505 \begin_layout Plain Layout
18511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18514 \begin_layout Plain Layout
18534 \begin_layout Plain Layout
18550 \begin_layout Standard
18551 \begin_inset VSpace bigskip
18554 To set the line thickness to 1.5
18555 \begin_inset space \thinspace{}
18558 pt only for vertical lines, create the following column format in the document
18559 preamble, according to the description in section
18560 \begin_inset space ~
18564 \begin_inset CommandInset ref
18566 reference "sub:Customized-Format"
18573 \begin_layout Standard
18578 newcolumntype{V}{!{
18580 vrule width 1.5pt}}
18583 \begin_layout Standard
18585 \begin_inset space ~
18589 \begin_inset CommandInset ref
18591 reference "tab:Table-with-vertical"
18598 \begin_layout Standard
18604 \begin_layout Standard
18605 was used for the last column and
18608 \begin_layout Standard
18614 \begin_layout Standard
18615 for the other columns.
18618 \begin_layout Standard
18619 \begin_inset Float table
18624 \begin_layout Plain Layout
18625 \begin_inset Caption
18627 \begin_layout Plain Layout
18628 \begin_inset CommandInset label
18630 name "tab:Table-with-vertical"
18635 \begin_inset space \thinspace{}
18638 pt thick vertical lines
18646 \begin_layout Plain Layout
18648 \begin_inset Tabular
18649 <lyxtabular version="3" rows="3" columns="3">
18650 <features tabularvalignment="middle">
18651 <column alignment="center" valignment="top" width="0" special="Vc">
18652 <column alignment="center" valignment="top" width="0" special="Vc">
18653 <column alignment="center" valignment="top" width="0" special="VcV">
18655 <cell alignment="center" valignment="top" topline="true" usebox="none">
18658 \begin_layout Plain Layout
18664 <cell alignment="center" valignment="top" topline="true" usebox="none">
18667 \begin_layout Plain Layout
18673 <cell alignment="center" valignment="top" topline="true" usebox="none">
18676 \begin_layout Plain Layout
18684 <cell alignment="center" valignment="top" topline="true" usebox="none">
18687 \begin_layout Plain Layout
18693 <cell alignment="center" valignment="top" topline="true" usebox="none">
18696 \begin_layout Plain Layout
18702 <cell alignment="center" valignment="top" topline="true" usebox="none">
18705 \begin_layout Plain Layout
18713 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18716 \begin_layout Plain Layout
18722 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18725 \begin_layout Plain Layout
18731 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18734 \begin_layout Plain Layout
18753 \begin_layout Subsection
18755 \begin_inset Index idx
18758 \begin_layout Plain Layout
18759 Table Customization ! Dashed Lines
18767 \begin_layout Standard
18771 \begin_layout Plain Layout
18781 \begin_inset Note Note
18784 \begin_layout Plain Layout
18785 The following section will only be displayed when the LaTeX-package
18797 \begin_layout Standard
18798 \begin_inset Float table
18804 \begin_layout Plain Layout
18805 \begin_inset Caption
18807 \begin_layout Plain Layout
18808 \begin_inset CommandInset label
18810 name "tab:Table-with-dashed"
18814 Table with dashed lines
18822 \begin_layout Plain Layout
18824 \begin_inset Tabular
18825 <lyxtabular version="3" rows="5" columns="5">
18826 <features tabularvalignment="middle">
18827 <column alignment="center" valignment="top" width="0">
18828 <column alignment="center" valignment="top" width="0">
18829 <column alignment="center" valignment="top" width="0" special=":c">
18830 <column alignment="center" valignment="top" width="0">
18831 <column alignment="center" valignment="top" width="0">
18833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18836 \begin_layout Plain Layout
18842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18845 \begin_layout Plain Layout
18851 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18854 \begin_layout Plain Layout
18860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18863 \begin_layout Plain Layout
18869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18872 \begin_layout Plain Layout
18880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18883 \begin_layout Plain Layout
18889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18892 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18910 \begin_layout Plain Layout
18916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18919 \begin_layout Plain Layout
18927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18930 \begin_layout Plain Layout
18934 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18951 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18969 \begin_layout Plain Layout
18975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18978 \begin_layout Plain Layout
18986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18989 \begin_layout Plain Layout
18993 \begin_layout Plain Layout
19007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19010 \begin_layout Plain Layout
19016 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19019 \begin_layout Plain Layout
19025 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19028 \begin_layout Plain Layout
19034 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19037 \begin_layout Plain Layout
19045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19048 \begin_layout Plain Layout
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19057 \begin_layout Plain Layout
19063 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19066 \begin_layout Plain Layout
19072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19075 \begin_layout Plain Layout
19081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19084 \begin_layout Plain Layout
19103 \begin_layout Standard
19104 LyX does not natively support dashed lines, so you have to use TeX-Code.
19105 As a prerequisite the LaTeX-package
19110 \begin_inset Index idx
19113 \begin_layout Plain Layout
19114 LaTeX-packages ! arydshln
19119 must be loaded in the document preamble with the command
19122 \begin_layout Standard
19127 usepackage{arydshln}
19130 \begin_layout Standard
19131 To make a vertical line dashed, enter the colon
19132 \begin_inset Quotes eld
19136 \begin_inset Quotes erd
19139 together with the character for the horizontal alignment as LaTeX-argument
19140 in the table cell dialog.
19143 \begin_layout Standard
19144 For a horizontal dashed line add the command
19147 \begin_layout Standard
19155 \begin_layout Standard
19156 in TeX-Code as first element of the first cell in the table row.
19159 \begin_layout Standard
19160 For dashed multicolumn lines use the command
19163 \begin_layout Standard
19168 cdashline{line number
19173 \begin_layout Standard
19174 in TeX-Code as the first element of the first cell in the table row.
19175 If you have for example a multicolumn spanning columns 2 to 4 and you want
19176 to have a dashed line above, add the command
19179 \begin_layout Standard
19187 \begin_layout Standard
19188 as the first element of the first cell in the row of the multicolumn.
19191 \begin_layout Standard
19192 \begin_inset VSpace bigskip
19198 \begin_layout Standard
19200 \begin_inset space ~
19204 \begin_inset CommandInset ref
19206 reference "tab:Table-with-dashed"
19211 \begin_inset Quotes eld
19219 \begin_inset Quotes erd
19222 as LaTeX-argument of the third column.
19223 The TeX-Code command
19229 was inserted in the first cell of the third row and the TeX-Code command
19230 \begin_inset Newline newline
19239 was inserted in the first cell of the fourth row.
19242 \begin_layout Standard
19243 \begin_inset Note Greyedout
19246 \begin_layout Plain Layout
19255 is apparently not compatible with the LaTeX-package
19260 \begin_inset Index idx
19263 \begin_layout Plain Layout
19264 LaTeX-packages ! colortbl
19269 that is used for colored tables in section
19270 \begin_inset space ~
19274 \begin_inset CommandInset ref
19276 reference "sec:Colored-Tables"
19281 That means colored tables cannot have dashed lines.
19289 \begin_layout Standard
19293 \begin_layout Plain Layout
19303 \begin_inset Note Note
19306 \begin_layout Plain Layout
19307 The following will be displayed when the LaTeX-package
19319 \begin_layout Standard
19320 You need to install the package
19324 to see the content of this section in the output.
19327 \begin_layout Standard
19331 \begin_layout Plain Layout
19343 \begin_layout Chapter
19345 \begin_inset Index idx
19348 \begin_layout Plain Layout
19357 \begin_layout Section
19359 \begin_inset CommandInset label
19361 name "sec:FloatIntroduction"
19366 \begin_inset Index idx
19369 \begin_layout Plain Layout
19370 Floats ! Introduction
19378 \begin_layout Standard
19379 A float is a block of text associated with some sort of label, which doesn't
19380 have a fixed location.
19382 \begin_inset Quotes eld
19386 \begin_inset Quotes erd
19389 forward or backward a page or two, to wherever it fits best.
19397 \begin_inset space ~
19402 are also floats, because they can float to the next page when there are
19403 too many notes on the page.
19406 \begin_layout Standard
19407 Floats allow a high quality layout.
19408 Images and tables can be spread evenly to the pages to avoid white space
19409 and pages without text.
19410 As the floating often destroys the context between the text and the image/table
19411 , every float can be referenced in the text.
19412 Floats are therefore numbered.
19413 Referencing is described in section
19414 \begin_inset space ~
19418 \begin_inset CommandInset ref
19420 reference "sec:Referencing-Floats"
19427 \begin_layout Standard
19428 To insert a float, use the menu
19430 Insert\SpecialChar \menuseparator
19438 inset, a box with a label.
19439 The label will automatically be translated to the document language in
19441 After the label you can insert the caption text.
19442 The image or table is inserted above or below the caption in a separate
19443 paragraph within the float.
19444 More about the caption placement is contained in section
19445 \begin_inset space ~
19449 \begin_inset CommandInset ref
19451 reference "sec:Caption-Placement"
19456 To keep your LyX-document readable, you can open and close the float box
19457 by left-clicking on the box label.
19458 A closed float box looks like this:
19459 \begin_inset Graphics
19460 filename clipart/floatQt4.png
19462 scaleBeforeRotation
19466 – a gray button with a red label.
19469 \begin_layout Standard
19470 It is recommended that you insert floats as a separate standard paragraph
19471 to avoid possible LaTeX-errors that can occur when the surrounding text
19472 is specially formatted.
19475 \begin_layout Standard
19476 Existing figures or tables can be put into a float by highlighting them
19477 and then pressing the corresponding toolbar button for a new float.
19480 \begin_layout Section
19484 \begin_layout Standard
19485 Besides figure and table floats that are described in sections
19486 \begin_inset space ~
19490 \begin_inset CommandInset ref
19492 reference "sec:Figure-Floats"
19497 \begin_inset CommandInset ref
19499 reference "sec:Table-Floats"
19503 respectively, LyX offers the float types
19514 \begin_layout Subsection
19516 \begin_inset Index idx
19519 \begin_layout Plain Layout
19520 Floats ! Algorithms
19528 \begin_layout Standard
19529 \begin_inset Float algorithm
19535 \begin_layout Plain Layout
19536 \begin_inset Caption
19538 \begin_layout Plain Layout
19539 \begin_inset CommandInset label
19541 name "alg:Example-Algorithm-float"
19545 Example Algorithm float
19553 \begin_layout LyX-Code
19555 \begin_inset Newline newline
19558 Sum:= Sum + A(I); /*comment*/
19559 \begin_inset Newline newline
19563 \begin_inset VSpace -4mm
19574 \begin_layout Standard
19575 This float type is inserted with the menu
19577 Insert\SpecialChar \menuseparator
19578 Floats\SpecialChar \menuseparator
19582 It is used for program codes and descriptions of algorithms and can be
19583 seen as an alternative to program code listings that are explained in chapter
19584 \begin_inset space ~
19588 \begin_inset CommandInset ref
19590 reference "cha:Program-Code-Listings"
19595 A possible environment for algorithms is the
19599 , described in LyX's
19605 \begin_inset space ~
19609 \begin_inset CommandInset ref
19611 reference "alg:Example-Algorithm-float"
19615 is an example of an algorithm float where -4
19616 \begin_inset space \thinspace{}
19619 mm vertical space was added at the end of the float to have the bottom rule
19620 exactly below the last text line.
19623 \begin_layout Standard
19624 The float label is not automatically translated into the document language.
19625 If your document is not in English, you have to do this manually by adding
19626 the following line to the document preamble
19631 \begin_layout Standard
19636 floatname{algorithm}{your
19637 \begin_inset space ~
19643 \begin_layout Standard
19647 \begin_inset space ~
19653 \begin_inset Quotes eld
19661 \begin_inset Quotes erd
19667 \begin_layout Standard
19668 To insert the list of algorithms you can use the menu
19670 Insert\SpecialChar \menuseparator
19672 \begin_inset space \thinspace{}
19676 \begin_inset space \thinspace{}
19679 TOC\SpecialChar \menuseparator
19682 when your document has the same language as LyX's menu names.
19683 In other cases use this command in TeX-Code instead:
19686 \begin_layout Standard
19691 listof{algorithm}{your
19692 \begin_inset space ~
19698 \begin_layout Standard
19702 \begin_inset space ~
19708 \begin_inset Quotes eld
19716 \begin_inset Quotes erd
19722 \begin_layout Standard
19723 Algorithm floats are not by default numbered in the scheme
19724 \begin_inset Quotes eld
19728 \begin_inset Quotes erd
19731 as is the case for table and figure floats in many document-classes.
19732 To number algorithm floats in the same scheme, add this command to your
19736 \begin_layout Standard
19741 numberwithin{algorithm}{chapter}
19744 \begin_layout Standard
19745 To be able to use the command
19754 \begin_inset space ~
19759 in the document settings the option
19762 \begin_inset space ~
19766 \begin_inset space ~
19770 \begin_inset space ~
19778 \begin_layout Subsection
19780 \begin_inset Index idx
19783 \begin_layout Plain Layout
19784 Floats ! Wrap Floats
19792 \begin_layout Standard
19793 \begin_inset Wrap figure
19800 \begin_layout Plain Layout
19801 \begin_inset Graphics
19802 filename clipart/mobius.eps
19804 scaleBeforeRotation
19805 rotateOrigin center
19812 \begin_layout Plain Layout
19813 \begin_inset Caption
19815 \begin_layout Plain Layout
19816 \begin_inset CommandInset label
19818 name "fig:This-is-a"
19822 This is a figure wrap float.
19832 This float type is used if you want to wrap text around a figure or table
19833 so that it only occupies some fraction of the column width.
19834 It can be inserted using the menu
19836 Insert\SpecialChar \menuseparator
19837 Floats\SpecialChar \menuseparator
19839 \begin_inset space ~
19843 \begin_inset space ~
19851 \begin_inset space ~
19855 \begin_inset space ~
19860 if the LaTeX-package
19865 \begin_inset Index idx
19868 \begin_layout Plain Layout
19869 LaTeX-packages ! wrapfig
19873 \begin_layout Plain Layout
19891 \begin_layout Plain Layout
19892 Installing a LaTeX-package is explained it in the
19895 \begin_inset space ~
19905 The settings of the float can be modified by right-clicking on the float
19907 The mandatory settings are the float
19920 that specifies how much the float is set into the paragraph
19921 \begin_inset space \thinspace{}
19925 \begin_inset space \thinspace{}
19928 page margin, and the
19931 \begin_inset space ~
19936 that specifies how many text lines the float will approximately need.
19937 The line span is often hard to approximate; so it is better only to use
19938 it when you encounter float placement problems.
19939 You can furthermore decide if LaTeX is allowed to let the float float within
19940 the paragraph or to surrounding paragraphs.
19942 \begin_inset space ~
19946 \begin_inset CommandInset ref
19948 reference "fig:This-is-a"
19952 is an example text wrap float with a width of 40
19953 \begin_inset space \thinspace{}
19957 \begin_inset space \thinspace{}
19960 cm overhang, set to the left.
19964 \begin_layout Plain Layout
19965 Available units are explained in appendix
19966 \begin_inset space ~
19970 \begin_inset CommandInset ref
19972 reference "cha:Units-available-in"
19984 \begin_layout Standard
19985 \begin_inset Note Greyedout
19988 \begin_layout Plain Layout
19994 \begin_inset space ~
19997 wrap float floats are fragile! E.
19998 \begin_inset space \thinspace{}
20002 \begin_inset space \space{}
20005 having a figure too close to the bottom of the page can mess things up in
20006 such a way that the float does not appear in the output or that it is placed
20007 over some other text.
20015 \begin_layout Standard
20019 \begin_layout Itemize
20020 Wrap floats should not be placed in paragraphs that run over a page break.
20021 That means that wrap floats are better inserted in their exact place when
20022 the document is almost finished and you are able to estimate where page
20023 breaks will appear.
20026 \begin_layout Itemize
20027 Wrap floats should either be placed in their own paragraph before the paragraph
20028 where they should wrap into or within a paragraph.
20031 \begin_layout Itemize
20032 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20033 there is a text paragraph between them as separator.
20036 \begin_layout Itemize
20037 Wrap floats are not allowed in section headings or tables.
20040 \begin_layout Section
20042 \begin_inset Index idx
20045 \begin_layout Plain Layout
20054 \begin_layout Standard
20055 Floats are usually numbered either independently from the sections the floats
20056 are in, or in the scheme
20057 \begin_inset Quotes eld
20061 \begin_inset Quotes erd
20065 \begin_inset Quotes eld
20069 \begin_inset Quotes erd
20073 This depends on the document class used.
20076 \begin_layout Standard
20077 To change section-independent numbering, you can use this command in the
20081 \begin_layout Standard
20093 \begin_layout Standard
20100 is the command that prints the table number, for figure floats, the command
20114 in the command above prints the table number as small roman number.
20117 \begin_layout Standard
20118 To change the numbering scheme for example to
20119 \begin_inset Quotes eld
20123 \begin_inset Quotes erd
20126 , use this command in the preamble:
20129 \begin_layout Standard
20134 numberwithin{table}{subsection}
20137 \begin_layout Standard
20138 To be able to use the command
20147 \begin_inset space ~
20152 in the document settings the option
20155 \begin_inset space ~
20159 \begin_inset space ~
20163 \begin_inset space ~
20171 \begin_layout Standard
20172 Please also have a look at section
20173 \begin_inset space ~
20177 \begin_inset CommandInset ref
20179 reference "sub:Footnote-Numbering"
20183 for the details and important notes about the numbering commands.
20186 \begin_layout Section
20188 \begin_inset CommandInset label
20190 name "sec:Referencing-Floats"
20195 \begin_inset Index idx
20198 \begin_layout Plain Layout
20199 Floats ! References
20205 \begin_inset Index idx
20208 \begin_layout Plain Layout
20209 References ! to Floats
20217 \begin_layout Standard
20218 To reference a float, insert a label into its caption using the menu
20220 Insert\SpecialChar \menuseparator
20223 or the toolbar button
20224 \begin_inset Graphics
20225 filename ../images/label-insert.png
20227 scaleBeforeRotation
20232 A grey label box like this one:
20233 \begin_inset Graphics
20234 filename clipart/labelQt4.png
20236 scaleBeforeRotation
20240 will be inserted and the label window pops up asking for the label text.
20241 LyX offers as text the first words of the caption with a prefix.
20242 The prefix depends on the float type, e.
20243 \begin_inset space \thinspace{}
20247 \begin_inset space \space{}
20250 for figure floats the prefix will be "
20257 \begin_layout Standard
20258 The label is used as anchor and name for the reference.
20259 You can refer to the label using the menu
20261 Insert\SpecialChar \menuseparator
20264 or the toolbar button
20265 \begin_inset Graphics
20266 filename ../images/dialog-show-new-inset_ref.png
20268 scaleBeforeRotation
20273 A grey cross-reference box like this one:
20274 \begin_inset Graphics
20275 filename clipart/referenceQt4.png
20277 scaleBeforeRotation
20281 will be inserted and the cross-reference window appear showing all labels
20283 If you have multiple LyX-documents opened, choose the one you are working
20284 on from the drop-list at the top of the dialog.
20285 You can now sort the labels alphabetically and then choose one.
20286 At the position of the cross-reference box the float number will appear
20290 \begin_layout Standard
20291 It is recommended that you use a protected space between the cross-reference
20292 name and its number to avoid line breaks between them.
20293 If a cross-reference refers to a non-existing label, you will see two question
20294 marks in the output instead of the reference.
20297 \begin_layout Standard
20298 You can change labels at any time by clicking on the label box.
20299 References to the changed label will automatically change its link to the
20300 new label text, so that you don't need to take care about this.
20303 \begin_layout Standard
20307 \begin_inset space ~
20311 \begin_inset space ~
20316 in the cross-reference window sets the cursor before the referred label.
20317 The button text changes then to Go
20318 \begin_inset space ~
20321 Back and you can use it to set the cursor back to the cross-reference.
20322 Right-clicking on a cross-reference box also sets the cursor before the
20323 referenced label but without the possibility of going back.
20326 \begin_layout Subsection
20327 Cross-Reference Formats
20328 \begin_inset CommandInset label
20330 name "sub:Cross-Reference-Formats"
20335 \begin_inset Index idx
20338 \begin_layout Plain Layout
20339 References ! Formats
20347 \begin_layout Standard
20348 There are six varieties of cross-references:
20351 \begin_layout Description
20352 <reference>: prints the float number, this is the default:
20353 \begin_inset CommandInset ref
20355 reference "fig:Two-distorted-images"
20362 \begin_layout Description
20363 (<reference>): prints the float number within two parentheses, this is the
20364 style normally used to reference formulas, especially when the reference
20366 \begin_inset Quotes eld
20370 \begin_inset Quotes erd
20374 \begin_inset CommandInset ref
20383 \begin_layout Description
20384 <page>: prints the page number: Page
20385 \begin_inset space ~
20389 \begin_inset CommandInset ref
20390 LatexCommand pageref
20391 reference "fig:Two-distorted-images"
20398 \begin_layout Description
20400 \begin_inset space ~
20404 \begin_inset space ~
20407 <page>: prints the text "on page" and the page number:
20408 \begin_inset CommandInset ref
20409 LatexCommand vpageref
20410 reference "fig:Two-distorted-images"
20417 \begin_layout Description
20419 \begin_inset space ~
20423 \begin_inset space ~
20427 \begin_inset space ~
20430 <page>: prints the float number, the text "on page", and the page number:
20432 \begin_inset CommandInset ref
20434 reference "fig:Two-distorted-images"
20441 \begin_layout Description
20443 \begin_inset space ~
20446 reference: prints a self defined cross-reference format.
20447 \begin_inset Newline newline
20451 \begin_inset Note Greyedout
20454 \begin_layout Plain Layout
20459 This feature is only available when you have the LaTeX-package
20464 \begin_inset Index idx
20467 \begin_layout Plain Layout
20468 LaTeX-packages ! prettyref
20481 \begin_layout Standard
20486 will not print the page number if the label is on the previous, the same,
20489 \begin_inset space \thinspace{}
20493 \begin_inset space \space{}
20497 \begin_inset Quotes eld
20505 \begin_inset Quotes erd
20511 <reference> on page <page>
20513 will not print anything about the page if the label is on the same page.
20516 \begin_layout Standard
20517 The number and current page of the part of the document referred to in the
20518 output is automatically calculated by LaTeX.
20519 The varieties are adjusted in the field
20523 of the cross-reference window that appears when you click on the cross-referenc
20527 \begin_layout Standard
20528 \begin_inset Note Greyedout
20531 \begin_layout Plain Layout
20541 \begin_inset Index idx
20544 \begin_layout Plain Layout
20545 LaTeX-packages ! prettyref
20550 does not know all of LyX's possible label shortcuts
20554 \begin_layout Plain Layout
20555 \begin_inset Quotes eld
20559 \begin_inset Quotes erd
20562 is for example LyX's shortcut for labels in figure captions.
20567 and is not internationalized.
20568 To find out how to tell
20572 new shortcuts and translations, have a look at its documentation
20573 \begin_inset CommandInset citation
20587 \begin_layout Standard
20588 \begin_inset Note Greyedout
20591 \begin_layout Plain Layout
20596 Due to a bug in the LaTeX-package
20600 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20601 languages that make the period character active (like French).
20602 For a workaround, see
20603 \begin_inset Newline newline
20607 \begin_inset CommandInset href
20609 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20621 \begin_layout Subsection
20622 Automatic Reference Naming
20623 \begin_inset Index idx
20626 \begin_layout Plain Layout
20627 References ! Automatic Reference Naming
20635 \begin_layout Standard
20641 \begin_inset Index idx
20644 \begin_layout Plain Layout
20645 LaTeX-packages ! hyperref
20650 , that is enabled in the
20658 dialog, provides a very useful feature that cross-references automatically
20659 include the name of the referenced floats (or text parts like
20664 So you will save having to write e.
20665 \begin_inset space \thinspace{}
20669 \begin_inset space \space{}
20673 \begin_inset Quotes eld
20677 \begin_inset Quotes erd
20680 before every reference to a figure.
20681 To use this feature, enable
20685 and insert this line to the LaTeX preamble:
20688 \begin_layout Standard
20704 \begin_layout Standard
20705 When you prefer other reference names than the default ones, for example
20706 you want instead of
20707 \begin_inset Quotes eld
20711 \begin_inset Quotes erd
20715 \begin_inset Quotes eld
20719 \begin_inset space \thinspace{}
20723 \begin_inset Quotes eld
20726 , you can redefine the name by inserting this in the preamble:
20729 \begin_layout Standard
20740 sectionautorefname}
20741 \begin_inset Newline newline
20745 \begin_inset Phantom HPhantom
20748 \begin_layout Plain Layout
20751 \begin_inset space ~
20764 \begin_layout Standard
20765 When you are using another document language than English, replace
20766 \begin_inset Newline newline
20781 , where *** is the name of the language used.
20784 \begin_layout Standard
20785 To get automatic names, but not for certain reference types, for example
20786 not for equations, use this preamble code:
20789 \begin_layout Standard
20797 \begin_inset Newline newline
20807 \begin_inset Newline newline
20818 equationautorefname}
20819 \begin_inset Newline newline
20823 \begin_inset Phantom HPhantom
20826 \begin_layout Plain Layout
20829 \begin_inset space ~
20844 \begin_layout Standard
20845 More about this topic can be found in
20850 \begin_inset CommandInset citation
20859 \begin_layout Standard
20860 \begin_inset Note Greyedout
20863 \begin_layout Plain Layout
20868 Automatic reference naming cannot be used when you use cross-references
20872 \begin_inset space ~
20877 style, as described in section
20878 \begin_inset space ~
20882 \begin_inset CommandInset ref
20884 reference "sub:Cross-Reference-Formats"
20896 \begin_layout Standard
20901 manual is an example where automatic reference naming is used.
20904 \begin_layout Subsection
20906 \begin_inset CommandInset label
20908 name "sub:Reference-Position"
20913 \begin_inset Index idx
20916 \begin_layout Plain Layout
20917 References ! Reference Position
20925 \begin_layout Standard
20931 \begin_inset Index idx
20934 \begin_layout Plain Layout
20935 LaTeX-packages ! hyperref
20948 dialog to link cross-references in the output, you will see that clicking
20949 on an image float reference jumps to the image label.
20950 The caption will be the first text part on the screen, so that you cannot
20951 see the image without scrolling.
20952 This is because the reference link anchor is placed at the position of
20954 With the use of the package
20959 \begin_inset Index idx
20962 \begin_layout Plain Layout
20963 LaTeX-packages ! hypcap
20968 , which is part of the LaTeX-package
20973 \begin_inset Index idx
20976 \begin_layout Plain Layout
20977 LaTeX-packages ! oberdiek
20982 , the link anchor is placed at the beginning of a float.
20983 To use this feature for figure floats, load
20987 in the document preamble with the line
20990 \begin_layout Standard
20995 usepackage[figure]{hypcap}
20998 \begin_layout Standard
21003 for all float types but this is not recommended for stability reasons.
21004 For more information, have a look at
21009 \begin_inset CommandInset citation
21018 \begin_layout Standard
21019 \begin_inset Note Greyedout
21022 \begin_layout Plain Layout
21031 has no effect on references to subfigures.
21039 \begin_layout Section
21041 \begin_inset CommandInset label
21043 name "sec:Float-Placement"
21048 \begin_inset Index idx
21051 \begin_layout Plain Layout
21060 \begin_layout Standard
21061 Right-clicking on a float-box opens a dialog where you can alter the placement
21062 options that LaTeX uses for positioning the float.
21063 \begin_inset Newline newline
21069 \begin_inset space ~
21074 is only useful for two-column documents: If you select it, the float will
21075 span both columns on the page instead of being confined to just one.
21076 \begin_inset Newline newline
21082 \begin_inset space ~
21087 is used to rotate floats, see section
21088 \begin_inset CommandInset ref
21090 reference "sec:Rotated-Floats"
21097 \begin_layout Standard
21098 You can use one ore more of the following options in the float dialog to
21099 set the placement for a particular float when you uncheck the option
21102 \begin_inset space ~
21106 \begin_inset space ~
21114 \begin_layout Description
21116 \begin_inset space ~
21120 \begin_inset space ~
21123 possible try to place the float on the position where it has been inserted
21126 \begin_layout Description
21128 \begin_inset space ~
21132 \begin_inset space ~
21135 page try to place the float at the top of the current page
21138 \begin_layout Description
21140 \begin_inset space ~
21144 \begin_inset space ~
21147 page try to place the float at the bottom of the current page
21150 \begin_layout Description
21152 \begin_inset space ~
21156 \begin_inset space ~
21159 floats try to place the float on its own page
21162 \begin_layout Standard
21163 The order of the above option is
21168 That means, if you use the default placement, LaTeX will first try out
21172 \begin_inset space ~
21176 \begin_inset space ~
21184 \begin_inset space ~
21188 \begin_inset space ~
21193 , and then the others.
21194 If you do not use the default, LaTeX will try only the checked options
21195 but in the same order.
21197 \begin_inset space ~
21200 placements are possible the procedure is internally repeated but it is tried
21201 to put the float on the following page.
21204 \begin_layout Standard
21205 By default, each option has its own rules:
21208 \begin_layout Labeling
21209 \labelwidthstring 00.00.0000
21213 \begin_inset space ~
21217 \begin_inset space ~
21222 only floats occupying less than 70
21223 \begin_inset space \thinspace{}
21226 % of the page can be placed at the top of a page (
21235 \begin_layout Labeling
21236 \labelwidthstring 00.00.0000
21240 \begin_inset space ~
21244 \begin_inset space ~
21249 : only floats occupying less than 30
21250 \begin_inset space \thinspace{}
21253 % of the page can be placed at the bottom of a page.
21263 \begin_layout Labeling
21264 \labelwidthstring 00.00.0000
21268 \begin_inset space ~
21272 \begin_inset space ~
21277 : only if more than 50
21278 \begin_inset space \thinspace{}
21281 % of the page are occupied by floats, several floats can be set together
21292 \begin_layout Standard
21293 If you don't like these rules, you can ignore them by using the additional
21297 \begin_inset space ~
21301 \begin_inset space ~
21307 \begin_inset Newline newline
21310 You can also redefine the rules with LaTeX-commands that are given in parenthese
21311 s after the rules description above.
21312 To increase for example the often too small default of the bottom-rule
21314 \begin_inset space \thinspace{}
21317 % of the page, add this line to your document preamble:
21320 \begin_layout Standard
21327 bottomfraction}{0.5}
21330 \begin_layout Standard
21331 Sometimes you might need, under all circumstances, a float to be placed
21332 exactly at the position where it is inserted.
21333 For this case you can use the option
21336 \begin_inset space ~
21342 Use this option very rarely and only if the document is almost ready to
21343 be printed, because the float is then no longer able to
21344 \begin_inset Quotes eld
21348 \begin_inset Quotes erd
21351 when you change your document and this will often destroy the page layout.
21354 \begin_layout Standard
21355 There are no placement options for text wrap floats, because they are always
21356 surrounded by the text of a certain paragraph.
21357 \begin_inset VSpace bigskip
21363 \begin_layout Standard
21364 Sometimes you have the problem that a float is placed at the top of a page
21365 while its corresponding section starts at the middle of the page, so that
21366 the reader could think the float is part of the previous section.
21367 To avoid this the LaTeX-command
21374 It suppresses a given float placement for the page where it is inserted
21375 and can therefore be used to avoid floats being set before a section starts.
21376 To get this, add these commands to your document preamble:
21379 \begin_layout Standard
21389 \begin_inset Newline newline
21403 \begin_layout Standard
21404 You can define the same for all section headings, like chapters and subsections.
21405 This definition is not recommended to be used for small text parts like
21406 subsubsections because LaTeX may then have problems finding a suitable
21410 \begin_layout Standard
21411 \begin_inset VSpace bigskip
21414 In some cases it is required to have all figures/tables at the end of the
21416 For this purpose the LaTeX-package
21421 \begin_inset Index idx
21424 \begin_layout Plain Layout
21425 LaTeX-packages ! endfloat
21431 It puts all figure and table floats at the end of the document into their
21433 At the original float position a text hint like
21434 \begin_inset Quotes eld
21440 \begin_inset space ~
21446 \begin_inset Quotes erd
21450 The endfloat-package is loaded in the preamble with the line
21453 \begin_layout Standard
21458 usepackage[options]{endfloat}
21461 \begin_layout Standard
21462 There are various package options to format the created figure/table sections.
21463 For more information we refer to the
21468 \begin_inset CommandInset citation
21475 \begin_inset Newline newline
21479 \begin_inset Note Greyedout
21482 \begin_layout Plain Layout
21487 doesn't provide an automatic translation for the text hint, you have to
21488 do this manually, see section
21489 \begin_inset space ~
21493 \begin_inset CommandInset citation
21505 \begin_inset Newline newline
21509 \begin_inset Note Greyedout
21512 \begin_layout Plain Layout
21517 There is currently a bug in
21521 when the caption contains a German
21522 \begin_inset Quotes eld
21526 \begin_inset Quotes erd
21530 Use in this case the command
21531 \begin_inset Quotes eld
21541 \begin_inset Quotes erd
21544 in TeX-Code instead of
21545 \begin_inset Quotes eld
21549 \begin_inset Quotes erd
21560 \begin_layout Standard
21561 \begin_inset VSpace bigskip
21564 For more details about float placements, have a look at LaTeX books,
21565 \begin_inset CommandInset citation
21567 key "latexcompanion,latexguide,latexbook"
21574 \begin_layout Section
21576 \begin_inset CommandInset label
21578 name "sec:Rotated-Floats"
21583 \begin_inset Index idx
21586 \begin_layout Plain Layout
21595 \begin_layout Standard
21596 Especially for wide tables you might have floats rotated.
21597 To rotate a whole float including the caption, right-click on the float-box
21601 \begin_inset space ~
21609 \begin_layout Standard
21610 Rotated floats are always placed on a page of their own (or column of their
21611 own; in case you have a multi-column document).
21612 You can let them span several columns using the float settings option
21615 \begin_inset space ~
21621 Floats are rotated so that you can read them from the outside margin.
21622 To force a certain rotation direction for all pages, you can add either
21631 to the document class options.
21634 \begin_layout Standard
21635 Referencing rotated floats is the same as for normal floats, the caption
21636 format is also the same: Table
21637 \begin_inset space ~
21641 \begin_inset CommandInset ref
21643 reference "tab:Rotated-table"
21647 is an example of a rotated table float.
21650 \begin_layout Standard
21651 \begin_inset Note Greyedout
21654 \begin_layout Plain Layout
21659 Not all DVI-viewers are able to display rotated floats.
21667 \begin_layout Standard
21668 \begin_inset Float table
21673 \begin_layout Plain Layout
21674 \begin_inset Caption
21676 \begin_layout Plain Layout
21677 \begin_inset CommandInset label
21679 name "tab:Rotated-table"
21691 \begin_layout Plain Layout
21693 \begin_inset Tabular
21694 <lyxtabular version="3" rows="1" columns="5">
21695 <features tabularvalignment="middle">
21696 <column alignment="center" valignment="top" width="0">
21697 <column alignment="center" valignment="top" width="0">
21698 <column alignment="center" valignment="top" width="0">
21699 <column alignment="center" valignment="top" width="0">
21700 <column alignment="center" valignment="top" width="0">
21702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21705 \begin_layout Plain Layout
21711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21714 \begin_layout Plain Layout
21720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21723 \begin_layout Plain Layout
21729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21732 \begin_layout Plain Layout
21738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21741 \begin_layout Plain Layout
21760 \begin_layout Section
21762 \begin_inset Index idx
21765 \begin_layout Plain Layout
21774 \begin_layout Standard
21775 Subfloats are for example used when a figure consists of several images.
21776 They are created by inserting a float into an existing float.
21777 The placement of the subfloats can be controlled in the same way as for
21778 paragraphs as shown in table
21779 \begin_inset space ~
21783 \begin_inset CommandInset ref
21785 reference "tab:Two-subtables-side"
21790 \begin_inset CommandInset ref
21792 reference "tab:Two-subtables-upon"
21799 \begin_layout Standard
21800 Referencing subfloats works as for normal floats: Table
21801 \begin_inset space ~
21805 \begin_inset CommandInset ref
21807 reference "tab:This-is-subtable-a"
21812 \begin_inset CommandInset ref
21814 reference "tab:This-is-subtable-b"
21818 are subtables of table
21819 \begin_inset space ~
21823 \begin_inset CommandInset ref
21825 reference "tab:Two-subtables-side"
21832 \begin_layout Standard
21833 \begin_inset Float table
21838 \begin_layout Plain Layout
21839 \begin_inset Caption
21841 \begin_layout Plain Layout
21842 \begin_inset CommandInset label
21844 name "tab:Two-subtables-side"
21848 Two subtables placed side by side.
21856 \begin_layout Plain Layout
21858 \begin_inset space \hfill{}
21862 \begin_inset Float table
21867 \begin_layout Plain Layout
21868 \begin_inset Caption
21870 \begin_layout Plain Layout
21871 \begin_inset CommandInset label
21873 name "tab:This-is-subtable-a"
21877 This is subtable a.
21885 \begin_layout Plain Layout
21887 \begin_inset Tabular
21888 <lyxtabular version="3" rows="1" columns="5">
21889 <features tabularvalignment="middle">
21890 <column alignment="center" valignment="top" width="0">
21891 <column alignment="center" valignment="top" width="0">
21892 <column alignment="center" valignment="top" width="0">
21893 <column alignment="center" valignment="top" width="0">
21894 <column alignment="center" valignment="top" width="0">
21896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21899 \begin_layout Plain Layout
21905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21908 \begin_layout Plain Layout
21914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21917 \begin_layout Plain Layout
21923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21926 \begin_layout Plain Layout
21932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21935 \begin_layout Plain Layout
21952 \begin_inset space \hfill{}
21956 \begin_inset Float table
21961 \begin_layout Plain Layout
21962 \begin_inset Caption
21964 \begin_layout Plain Layout
21965 \begin_inset CommandInset label
21967 name "tab:This-is-subtable-b"
21971 This is subtable b.
21979 \begin_layout Plain Layout
21981 \begin_inset Tabular
21982 <lyxtabular version="3" rows="1" columns="5">
21983 <features tabularvalignment="middle">
21984 <column alignment="center" valignment="top" width="0">
21985 <column alignment="center" valignment="top" width="0">
21986 <column alignment="center" valignment="top" width="0">
21987 <column alignment="center" valignment="top" width="0">
21988 <column alignment="center" valignment="top" width="0">
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21993 \begin_layout Plain Layout
21999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22002 \begin_layout Plain Layout
22008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22011 \begin_layout Plain Layout
22017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22020 \begin_layout Plain Layout
22026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22029 \begin_layout Plain Layout
22046 \begin_inset space \hfill{}
22057 \begin_layout Standard
22058 \begin_inset Float table
22063 \begin_layout Plain Layout
22064 \begin_inset Caption
22066 \begin_layout Plain Layout
22067 \begin_inset CommandInset label
22069 name "tab:Two-subtables-upon"
22073 Two subtables placed one above the other.
22074 (a) table with 4 cells, (b) table with 5 cells.
22082 \begin_layout Plain Layout
22084 \begin_inset Float table
22089 \begin_layout Plain Layout
22090 \begin_inset Caption
22092 \begin_layout Plain Layout
22101 \begin_layout Plain Layout
22103 \begin_inset Tabular
22104 <lyxtabular version="3" rows="1" columns="4">
22105 <features tabularvalignment="middle">
22106 <column alignment="center" valignment="top" width="0">
22107 <column alignment="center" valignment="top" width="0">
22108 <column alignment="center" valignment="top" width="0">
22109 <column alignment="center" valignment="top" width="0">
22111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22114 \begin_layout Plain Layout
22120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22123 \begin_layout Plain Layout
22129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22132 \begin_layout Plain Layout
22138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22141 \begin_layout Plain Layout
22160 \begin_layout Plain Layout
22162 \begin_inset Float table
22167 \begin_layout Plain Layout
22168 \begin_inset Caption
22170 \begin_layout Plain Layout
22179 \begin_layout Plain Layout
22181 \begin_inset Tabular
22182 <lyxtabular version="3" rows="1" columns="5">
22183 <features tabularvalignment="middle">
22184 <column alignment="center" valignment="top" width="0">
22185 <column alignment="center" valignment="top" width="0">
22186 <column alignment="center" valignment="top" width="0">
22187 <column alignment="center" valignment="top" width="0">
22188 <column alignment="center" valignment="top" width="0">
22190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22202 \begin_layout Plain Layout
22208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22211 \begin_layout Plain Layout
22217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22220 \begin_layout Plain Layout
22226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22229 \begin_layout Plain Layout
22253 \begin_layout Section
22254 Floats Side by Side
22255 \begin_inset Index idx
22258 \begin_layout Plain Layout
22259 Floats ! Side by side
22267 \begin_layout Standard
22268 To place floats side by side, as in Figures
22269 \begin_inset space ~
22273 \begin_inset CommandInset ref
22275 reference "fig:Float-left"
22280 \begin_inset CommandInset ref
22282 reference "fig:Float-right"
22291 In it two minipage boxes are inserted.
22295 \begin_layout Plain Layout
22296 Minipages are explained in section
22297 \begin_inset space ~
22301 \begin_inset CommandInset ref
22303 reference "sec:Minipages"
22312 The width is set to 45
22313 \begin_inset space \thinspace{}
22317 \begin_inset space \thinspace{}
22320 column% and the box alignment to
22325 The minipage boxes contain the image and the caption in the same way as
22326 they are in a float.
22327 The only difference is that the image unit
22330 \begin_inset space ~
22334 \begin_inset space ~
22339 is now calculated according to the width of the minipage boxes.
22342 \begin_layout Standard
22343 \begin_inset Float figure
22348 \begin_layout Plain Layout
22349 \begin_inset Box Frameless
22359 height_special "totalheight"
22362 \begin_layout Plain Layout
22364 \begin_inset Graphics
22365 filename clipart/mobius.eps
22368 scaleBeforeRotation
22375 \begin_layout Plain Layout
22376 \begin_inset Caption
22378 \begin_layout Plain Layout
22379 \begin_inset CommandInset label
22381 name "fig:Float-left"
22385 Float on the left side.
22396 \begin_inset space \hfill{}
22400 \begin_inset Box Frameless
22410 height_special "totalheight"
22413 \begin_layout Plain Layout
22415 \begin_inset Graphics
22416 filename clipart/platypus.eps
22419 scaleBeforeRotation
22426 \begin_layout Plain Layout
22427 \begin_inset Caption
22429 \begin_layout Plain Layout
22430 \begin_inset CommandInset label
22432 name "fig:Float-right"
22436 Float on the right side.
22449 \begin_layout Plain Layout
22458 \begin_layout Section
22460 \begin_inset Index idx
22463 \begin_layout Plain Layout
22464 Caption ! Formatting
22470 \begin_inset Index idx
22473 \begin_layout Plain Layout
22474 Floats ! Caption Formatting
22480 \begin_inset CommandInset label
22482 name "sec:Caption-Formatting"
22489 \begin_layout Standard
22494 environment is the default paragraph environment for
22499 On the LyX screen captions appear as label, e.
22500 \begin_inset space \thinspace{}
22504 \begin_inset space \space{}
22508 \begin_inset Quotes eld
22516 \begin_inset Quotes erd
22519 followed by the caption text.
22521 \begin_inset Quotes eld
22525 \begin_inset Quotes erd
22528 is the actual reference number.
22529 By default the label and the number are in the same font as the caption
22530 text and a colon follows the number to divide the label from the text.
22531 This caption format is not suitable for all document formats.
22535 \begin_layout Standard
22536 To change the default caption format, load the LaTeX-package
22541 \begin_inset Index idx
22544 \begin_layout Plain Layout
22545 LaTeX-packages ! caption
22550 in the document preamble with this line:
22553 \begin_layout Standard
22558 usepackage[format definition]{caption}
22561 \begin_layout Standard
22562 To have for example the label and the number in sans-serif bold font and
22563 the table captions always above the table as in this document, use the
22567 \begin_layout Standard
22572 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22575 \begin_layout Standard
22576 You can also define different caption formats for the different float types.
22577 In this case load the
22581 package without format specific options and define the different formats
22582 with the help of the command
22585 \begin_layout Standard
22590 captionsetup[float type]{format definition}
22593 \begin_layout Standard
22594 in the document preamble.
22595 For example the caption formats of Figure
22596 \begin_inset space ~
22600 \begin_inset CommandInset ref
22602 reference "fig:This-is-an-fig"
22607 \begin_inset space ~
22611 \begin_inset CommandInset ref
22613 reference "tab:This-is-an-tab"
22617 can be created using these commands in the document preamble:
22620 \begin_layout Standard
22625 usepackage[tableposition=top]{caption}
22628 \begin_inset Newline newline
22635 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22636 \begin_inset Newline newline
22640 \begin_inset Phantom HPhantom
22643 \begin_layout Plain Layout
22648 captionsetup[figure]{
22654 \begin_inset Newline newline
22659 captionsetup[table]{labelfont={bf,sf}}
22662 \begin_layout Standard
22663 \begin_inset Note Greyedout
22666 \begin_layout Plain Layout
22675 has no effect when a
22680 \begin_inset Index idx
22683 \begin_layout Plain Layout
22684 LaTeX-packages ! KOMA-Script
22689 document class is used.
22690 In this case the document class option
22702 \begin_layout Standard
22703 For more information about the package
22707 we refer to its documentation
22708 \begin_inset CommandInset citation
22717 \begin_layout Standard
22718 To change the label name from e.
22719 \begin_inset space \thinspace{}
22723 \begin_inset space \space{}
22727 \begin_inset Quotes eld
22731 \begin_inset Quotes erd
22735 \begin_inset Quotes eld
22739 \begin_inset Quotes erd
22742 use this preamble command:
22745 \begin_layout Standard
22752 fnum@figure}{Image~
22757 \begin_layout Standard
22764 inserts the figure number and
22767 \begin_inset Quotes eld
22773 \begin_inset Quotes erd
22776 creates a protected space.
22779 \begin_layout Standard
22780 \begin_inset VSpace bigskip
22788 \begin_inset Index idx
22791 \begin_layout Plain Layout
22792 LaTeX-packages ! KOMA-Script
22799 article (KOMA-Script)
22807 letter (KOMA-Script)
22811 report (KOMA-Script)
22814 \begin_inset space \thinspace{}
22817 ), you can alternatively to the
22825 's built-in command
22832 For example, to have the caption label in bold, add this command to your
22836 \begin_layout Standard
22841 setkomafont{captionlabel}{
22846 \begin_layout Standard
22847 For more information about
22858 \begin_inset CommandInset citation
22867 \begin_layout Standard
22871 \begin_layout Plain Layout
22875 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22882 \begin_inset Note Note
22885 \begin_layout Plain Layout
22886 The caption format is changed only for this example.
22894 \begin_layout Standard
22895 \begin_inset Float figure
22901 \begin_layout Plain Layout
22903 \begin_inset Graphics
22904 filename clipart/mobius.eps
22907 scaleBeforeRotation
22914 \begin_layout Plain Layout
22915 \begin_inset Caption
22917 \begin_layout Plain Layout
22918 \begin_inset CommandInset label
22920 name "fig:This-is-an-fig"
22924 This is an example figure caption that is longer than one line to show the
22925 different caption format.
22926 Here a self-defined caption format is used.
22939 \begin_layout Standard
22943 \begin_layout Plain Layout
22947 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22956 \begin_layout Standard
22957 \begin_inset Float table
22963 \begin_layout Plain Layout
22964 \begin_inset Caption
22966 \begin_layout Plain Layout
22967 \begin_inset CommandInset label
22969 name "tab:This-is-an-tab"
22973 This is an example table caption that is longer than one line to show the
22974 different caption format.
22975 Here the standard caption format for tables in this document is used.
22983 \begin_layout Plain Layout
22985 \begin_inset Tabular
22986 <lyxtabular version="3" rows="1" columns="5">
22987 <features tabularvalignment="middle">
22988 <column alignment="center" valignment="top" width="0">
22989 <column alignment="center" valignment="top" width="0">
22990 <column alignment="center" valignment="top" width="0">
22991 <column alignment="center" valignment="top" width="0">
22992 <column alignment="center" valignment="top" width="0">
22994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22997 \begin_layout Plain Layout
23003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23006 \begin_layout Plain Layout
23012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23015 \begin_layout Plain Layout
23021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23024 \begin_layout Plain Layout
23030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23033 \begin_layout Plain Layout
23052 \begin_layout Section
23054 \begin_inset Index idx
23057 \begin_layout Plain Layout
23058 Caption ! Placement
23064 \begin_inset Index idx
23067 \begin_layout Plain Layout
23068 Floats ! Caption Placement
23074 \begin_inset CommandInset label
23076 name "sec:Caption-Placement"
23083 \begin_layout Standard
23084 The common caption placement rule is:
23087 \begin_layout Description
23088 Figure: Caption is set below the figure
23091 \begin_layout Description
23092 Table: Caption is set above the table
23095 \begin_layout Standard
23096 Having the caption above the table is unfortunately not supported in LaTeX's
23098 That means if you are using the document classes
23114 there will be no space between the caption and the table.
23115 To insert the necessary space, add the following option to the load command
23116 of the LaTeX-package
23120 in your document preamble
23124 \begin_layout Plain Layout
23126 \begin_inset space ~
23130 \begin_inset CommandInset ref
23132 reference "sec:Caption-Formatting"
23136 for more information of the package
23148 \begin_layout Standard
23154 \begin_layout Standard
23160 \begin_inset Index idx
23163 \begin_layout Plain Layout
23164 LaTeX-packages ! KOMA-Script
23171 article (KOMA-Script)
23179 letter (KOMA-Script)
23183 report (KOMA-Script)
23186 \begin_inset space \thinspace{}
23189 ), you can alternatively to the
23193 package set the document class option
23200 \begin_layout Standard
23201 \begin_inset VSpace bigskip
23204 It is also possible to set the caption beside a figure or table.
23205 To get this the LaTeX-package
23210 \begin_inset Index idx
23213 \begin_layout Plain Layout
23214 LaTeX-packages ! sidecap
23219 has to be loaded in the document preamble with the line
23222 \begin_layout Standard
23227 usepackage[option]{sidecap}
23230 \begin_layout Standard
23231 If you set no option, the caption is placed on the side of the outer page
23232 margin – to the right on odd pages, to the left on even pages.
23233 You can change the placement to inner margin with the option
23238 To force the placement always to the right or left, use the option
23249 \begin_layout Standard
23253 \begin_layout Plain Layout
23263 \begin_inset Note Note
23266 \begin_layout Plain Layout
23267 The following section will only be displayed when the LaTeX-package
23279 \begin_layout Standard
23280 To place in LyX the caption of a float on the side, it is necessary to add
23281 these commands to the document preamble:
23284 \begin_layout Standard
23286 \begin_inset CommandInset line
23297 \begin_layout Standard
23305 \begin_inset Newline newline
23309 \begin_inset Phantom HPhantom
23312 \begin_layout Plain Layout
23315 \begin_inset space ~
23330 \begin_inset Newline newline
23334 \begin_inset Phantom HPhantom
23337 \begin_layout Plain Layout
23340 \begin_inset space ~
23355 \begin_inset Newline newline
23359 \begin_inset Phantom HPhantom
23362 \begin_layout Plain Layout
23365 \begin_inset space ~
23375 renewenvironment{table}{
23382 \begin_layout Standard
23390 \begin_inset Newline newline
23394 \begin_inset Phantom HPhantom
23397 \begin_layout Plain Layout
23400 \begin_inset space ~
23415 \begin_inset Newline newline
23419 \begin_inset Phantom HPhantom
23422 \begin_layout Plain Layout
23425 \begin_inset space ~
23442 \begin_layout Standard
23450 \begin_inset Newline newline
23454 \begin_inset Phantom HPhantom
23457 \begin_layout Plain Layout
23460 \begin_inset space ~
23475 \begin_inset Newline newline
23479 \begin_inset Phantom HPhantom
23482 \begin_layout Plain Layout
23485 \begin_inset space ~
23500 \begin_inset Newline newline
23504 \begin_inset Phantom HPhantom
23507 \begin_layout Plain Layout
23510 \begin_inset space ~
23520 renewenvironment{figure}{
23527 \begin_layout Standard
23535 \begin_inset Newline newline
23539 \begin_inset Phantom HPhantom
23542 \begin_layout Plain Layout
23545 \begin_inset space ~
23560 \begin_inset Newline newline
23564 \begin_inset Phantom HPhantom
23567 \begin_layout Plain Layout
23570 \begin_inset space ~
23587 \begin_layout Standard
23589 \begin_inset CommandInset line
23600 \begin_layout Standard
23601 The commands allow you to redefine the floats so that the caption is set
23603 For figure floats use the command
23606 \begin_layout Standard
23614 \begin_layout Standard
23615 in TeX-Code before the float.
23616 After the float insert the command
23619 \begin_layout Standard
23627 \begin_layout Standard
23628 in TeX-Code to get back to the original float definition.
23631 \begin_layout Standard
23632 For table floats use the corresponding commands
23635 \begin_layout Standard
23649 \begin_layout Standard
23651 \begin_inset space ~
23655 \begin_inset CommandInset ref
23657 reference "fig:cap-beside-fig"
23662 \begin_inset space ~
23666 \begin_inset CommandInset ref
23668 reference "tab:cap-beside-tab"
23672 are examples where the caption is set beside.
23675 \begin_layout Standard
23676 You can see in the examples that the caption text appears at the top of
23677 the floats for table floats and at the bottom for figure floats.
23678 To change this, you can use the command
23681 \begin_layout Standard
23686 sidecaptionvpos{float type}{placement}
23689 \begin_layout Standard
23690 in the document preamble or in TeX-Code before the float.
23691 The float type is either
23699 , the placement can be
23700 \begin_inset Quotes eld
23708 \begin_inset Quotes erd
23712 \begin_inset Quotes eld
23720 \begin_inset Quotes erd
23724 \begin_inset Quotes eld
23732 \begin_inset Quotes erd
23736 To have for example the caption of figure floats vertically centered, use
23740 \begin_layout Standard
23745 sidecaptionvpos{figure}{c}
23748 \begin_layout Standard
23749 This was used for Figure
23750 \begin_inset space ~
23754 \begin_inset CommandInset ref
23756 reference "fig:cap-beside-fig-2"
23763 \begin_layout Standard
23764 \begin_inset VSpace medskip
23767 For more information about the package
23771 we refer to its documentation
23772 \begin_inset CommandInset citation
23781 \begin_layout Standard
23782 \begin_inset Note Greyedout
23785 \begin_layout Plain Layout
23795 \begin_inset Index idx
23798 \begin_layout Plain Layout
23799 LaTeX-packages ! hypcap
23804 , described in section
23805 \begin_inset space ~
23809 \begin_inset CommandInset ref
23811 reference "sub:Reference-Position"
23815 , has no effect on floats with the caption set beside.
23823 \begin_layout Standard
23827 \begin_layout Plain Layout
23839 \begin_layout Standard
23840 \begin_inset Float figure
23845 \begin_layout Plain Layout
23846 \begin_inset Graphics
23847 filename clipart/escher-lsd.eps
23849 scaleBeforeRotation
23856 \begin_layout Plain Layout
23857 \begin_inset Caption
23859 \begin_layout Plain Layout
23860 \begin_inset CommandInset label
23862 name "fig:cap-beside-fig"
23866 This is a caption beside a figure.
23879 \begin_layout Standard
23883 \begin_layout Plain Layout
23895 \begin_layout Standard
23896 \begin_inset Float table
23901 \begin_layout Plain Layout
23902 \begin_inset Caption
23904 \begin_layout Plain Layout
23905 \begin_inset CommandInset label
23907 name "tab:cap-beside-tab"
23911 This is a caption beside a table.
23919 \begin_layout Plain Layout
23920 \begin_inset Tabular
23921 <lyxtabular version="3" rows="4" columns="5">
23922 <features tabularvalignment="middle">
23923 <column alignment="center" valignment="top" width="0">
23924 <column alignment="center" valignment="top" width="0">
23925 <column alignment="center" valignment="top" width="0">
23926 <column alignment="center" valignment="top" width="0">
23927 <column alignment="center" valignment="top" width="0">
23929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23932 \begin_layout Plain Layout
23938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23941 \begin_layout Plain Layout
23947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23950 \begin_layout Plain Layout
23956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23959 \begin_layout Plain Layout
23965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23968 \begin_layout Plain Layout
23976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23979 \begin_layout Plain Layout
23985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23988 \begin_layout Plain Layout
23994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23997 \begin_layout Plain Layout
24003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24006 \begin_layout Plain Layout
24012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24015 \begin_layout Plain Layout
24023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24026 \begin_layout Plain Layout
24032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24035 \begin_layout Plain Layout
24041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24044 \begin_layout Plain Layout
24050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24053 \begin_layout Plain Layout
24059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24062 \begin_layout Plain Layout
24070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24073 \begin_layout Plain Layout
24079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24082 \begin_layout Plain Layout
24088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24091 \begin_layout Plain Layout
24097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24100 \begin_layout Plain Layout
24106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24109 \begin_layout Plain Layout
24128 \begin_layout Standard
24132 \begin_layout Plain Layout
24144 \begin_layout Standard
24148 \begin_layout Plain Layout
24152 sidecaptionvpos{figure}{c}
24158 \begin_inset Float figure
24163 \begin_layout Plain Layout
24164 \begin_inset Graphics
24165 filename clipart/escher-lsd.eps
24167 scaleBeforeRotation
24174 \begin_layout Plain Layout
24175 \begin_inset Caption
24177 \begin_layout Plain Layout
24178 \begin_inset CommandInset label
24180 name "fig:cap-beside-fig-2"
24184 This is a vertically centered caption beside a figure.
24197 \begin_layout Standard
24201 \begin_layout Plain Layout
24213 \begin_layout Standard
24217 \begin_layout Plain Layout
24227 \begin_inset Note Note
24230 \begin_layout Plain Layout
24231 The following will be displayed when the LaTeX-package
24243 \begin_layout Standard
24244 You need to install the LaTeX-package
24248 to see the following part of this section in the output.
24251 \begin_layout Standard
24255 \begin_layout Plain Layout
24267 \begin_layout Section
24269 \begin_inset Index idx
24272 \begin_layout Plain Layout
24273 Floats ! Float Lists
24281 \begin_layout Standard
24282 Similar to the table of contents where the sections of the document are
24283 listed, there are listings for all float types, like the figures of the
24285 You can insert them via the
24287 Insert\SpecialChar \menuseparator
24289 \begin_inset space ~
24293 \begin_inset space ~
24301 \begin_layout Standard
24302 The list entries are the float captions or its short title, the float number,
24303 and the page number where they appear in the document.
24306 \begin_layout Standard
24307 You can find the list of figures and tables at the end of this document.
24310 \begin_layout Chapter
24314 \begin_layout Section
24316 \begin_inset Index idx
24319 \begin_layout Plain Layout
24328 \begin_layout Standard
24329 Notes are inserted with the toolbar button
24330 \begin_inset Graphics
24331 filename ../images/note-insert.png
24333 scaleBeforeRotation
24339 Insert\SpecialChar \menuseparator
24343 There are three types of notes:
24346 \begin_layout Description
24348 \begin_inset space ~
24351 Note This note type is for internal notes that won't appear in the output.
24352 Its note-box looks like this:
24353 \begin_inset Newline newline
24357 \begin_inset Newline newline
24361 \begin_inset Graphics
24362 filename clipart/LyXNoteImageQt4.png
24365 scaleBeforeRotation
24370 \begin_inset Note Note
24373 \begin_layout Plain Layout
24374 This is text in a note box that doesn't appear in the output.
24382 \begin_layout Description
24383 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24384 ent, when you export the document to LaTeX via the menu
24386 File\SpecialChar \menuseparator
24387 Export\SpecialChar \menuseparator
24388 LaTeX (pdflatex) / (plain)
24391 Its note-box looks like this:
24392 \begin_inset Newline newline
24396 \begin_inset Newline newline
24400 \begin_inset Graphics
24401 filename clipart/CommentNoteImageQt4.png
24404 scaleBeforeRotation
24409 \begin_inset Note Comment
24412 \begin_layout Plain Layout
24413 This is text in a note box that only appears as comment in LaTeX-files.
24421 \begin_layout Description
24423 \begin_inset space ~
24426 Out This note will appear in the output as grey text.
24427 Its note-box looks like this:
24428 \begin_inset Newline newline
24432 \begin_inset Newline newline
24436 \begin_inset Graphics
24437 filename clipart/GreyedOutNoteImageQt4.png
24440 scaleBeforeRotation
24445 \begin_inset Newline newline
24452 \begin_layout Plain Layout
24456 renewenvironment{lyxgreyedout}
24459 \begin_layout Plain Layout
24463 textcolor[gray]{0.8}
24473 \begin_inset Note Greyedout
24476 \begin_layout Plain Layout
24481 \begin_layout Plain Layout
24482 This is an example footnote within a greyed out note.
24487 of a comment that appears in the output as grey text.
24496 \begin_layout Plain Layout
24500 renewenvironment{lyxgreyedout}
24503 \begin_layout Plain Layout
24517 \begin_inset Note Note
24520 \begin_layout Plain Layout
24521 The greyed out note is here redefined to show it with the original LyX definitio
24522 n because greyed out notes are redefined in the preamble of this document,
24523 as described below, to have blue text.
24529 \begin_inset Newline newline
24533 \begin_inset Newline newline
24536 As you can see in the example, the first line of greyed out notes is a bit
24537 indented and greyed out notes can have footnotes.
24540 \begin_layout Standard
24541 \begin_inset VSpace bigskip
24544 When you use the toolbar button
24545 \begin_inset Graphics
24546 filename ../images/note-insert.png
24548 scaleBeforeRotation
24555 \begin_inset space ~
24561 You can switch between the five note types by right-clicking on the note-box.
24566 If you want to turn existing text into a note, mark it and click on the
24580 To change a note to text, press the backspace key when the cursor is in
24581 the first position of a note, or press the delete key when the cursor is
24582 in the very last position of the note, respectively.
24585 \begin_layout Standard
24586 \begin_inset VSpace bigskip
24589 You can change the text color of the greyed out notes in the preamble with
24590 the following command:
24593 \begin_layout Standard
24598 renewenvironment{lyxgreyedout}
24599 \begin_inset Newline newline
24603 \begin_inset Phantom HPhantom
24606 \begin_layout Plain Layout
24609 \begin_inset space ~
24626 \begin_layout Standard
24627 The available colors and the method to define colors is explained in section
24628 \begin_inset space ~
24632 \begin_inset CommandInset ref
24634 reference "sec:Colored-Tables"
24641 \begin_layout Standard
24642 Notes that appear in blue in this document are set using greyed out notes
24646 \begin_layout Section
24648 \begin_inset CommandInset label
24650 name "sec:Footnotes"
24655 \begin_inset Index idx
24658 \begin_layout Plain Layout
24665 \begin_inset Index idx
24668 \begin_layout Plain Layout
24677 \begin_layout Standard
24678 Footnotes can be inserted using the toolbar button
24679 \begin_inset Graphics
24680 filename ../images/footnote-insert.png
24682 scaleBeforeRotation
24688 Insert\SpecialChar \menuseparator
24700 then the following footnote-box:
24701 \begin_inset Graphics
24702 filename clipart/footnoteQt4.png
24704 scaleBeforeRotation
24712 where you can enter the footnote text.
24713 If you want to turn existing text into a footnote, mark it and click on
24735 to text, press the Backspace key when the cursor is in the first position
24744 , or press the Delete key when the cursor is in the very last position of
24756 \begin_layout Standard
24757 Here is an example footnote:
24765 \begin_layout Plain Layout
24766 \begin_inset CommandInset label
24768 name "foot:This-is-an"
24772 This is an example footnote.
24785 \begin_layout Plain Layout
24789 newcounter{MyRepeatFoot}
24792 \begin_layout Plain Layout
24796 setcounter{MyRepeatFoot}{
24806 \begin_layout Standard
24807 The footnote will appear in the output as a superscript number at the text
24808 position where the footnote box is placed.
24809 The footnote text is placed at the bottom of the current page.
24810 The footnote number is calculated by LaTeX; the numbers are consecutive.
24811 It depends on your document-class, whether the footnote number is reset
24815 \begin_layout Standard
24816 Footnotes can be referenced like floats: Insert a label into the footnote
24817 and cross-reference this label in the text as described in section
24818 \begin_inset space ~
24822 \begin_inset CommandInset ref
24824 reference "sec:Referencing-Floats"
24829 \begin_inset Newline newline
24832 This is a cross-reference of Footnote
24833 \begin_inset space ~
24837 \begin_inset CommandInset ref
24839 reference "foot:This-is-an"
24846 \begin_layout Standard
24847 \begin_inset VSpace defskip
24850 Footnotes in tables are not printed by LaTeX due to technical reasons.
24851 However there exists another method to print them: Instead of the footnote
24858 is inserted as TeX-code.
24859 The text of the footnote is entered as an argument of the TeX-code command
24867 \begin_inset Newline newline
24870 This was done for the following table with the command
24873 \begin_layout Standard
24880 Printed table footnote.
24885 \begin_layout Standard
24886 \begin_inset Tabular
24887 <lyxtabular version="3" rows="2" columns="1">
24888 <features tabularvalignment="middle">
24889 <column alignment="center" valignment="top" width="0">
24891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24894 \begin_layout Plain Layout
24895 This an example text.
24899 \begin_layout Plain Layout
24900 This footnote will not be printed!
24912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24915 \begin_layout Plain Layout
24916 This an example text.
24920 \begin_layout Plain Layout
24943 \begin_layout Plain Layout
24952 Printed table footnote.
24956 \begin_layout Plain Layout
24966 \begin_layout Standard
24967 Footnotes in longtables are described in section
24968 \begin_inset space ~
24972 \begin_inset CommandInset ref
24974 reference "sub:Footnotes-in-Longtables"
24981 \begin_layout Standard
24982 Footnotes in minipage boxes are printed, but inside the box and with a different
24983 numbering because a minipage box is like a page inside a page.
24984 (For more about minipages, see section
24985 \begin_inset space ~
24989 \begin_inset CommandInset ref
24991 reference "sec:Minipages"
24995 .) To get a footnote in the minipage that is output at the bottom of the
24996 page like normal footnotes, also use the method of
25011 \begin_layout Standard
25012 \begin_inset Box Frameless
25022 height_special "totalheight"
25025 \begin_layout Plain Layout
25026 This an example text in a minipage.
25030 \begin_layout Plain Layout
25031 Footnote in the minipage.
25039 \begin_layout Plain Layout
25040 This an example text in a minipage.
25044 \begin_layout Plain Layout
25061 \begin_layout Standard
25065 \begin_layout Plain Layout
25074 Footnote outside the minipage.
25078 \begin_layout Plain Layout
25088 \begin_layout Standard
25089 \begin_inset VSpace defskip
25095 \begin_layout Standard
25096 To refer to the same footnote several times without printing the footnote
25097 text every time, use the command
25101 footnotemark[number]
25104 \begin_inset Newline newline
25107 As you do not know the number of the repeating footnote while you are writing
25108 the text, you have to store its number.
25109 For the following footnote mark example, these commands were inserted in
25110 TeX-code after Footnote
25111 \begin_inset space ~
25115 \begin_inset CommandInset ref
25117 reference "foot:This-is-an"
25121 to store the footnote number:
25124 \begin_layout Standard
25129 newcounter{MyRepeatFoot}
25130 \begin_inset Newline newline
25135 setcounter{MyRepeatFoot}{
25140 \begin_layout Standard
25141 The footnote mark was then created with this command:
25144 \begin_layout Standard
25154 \begin_layout Standard
25155 Here is a repeated footnote:
25163 \begin_layout Plain Layout
25177 \begin_layout Standard
25178 If you want to repeat the previous footnote, you can omit the storage of
25179 the footnote number and just use this command instead:
25182 \begin_layout Standard
25192 \begin_layout Standard
25193 Here is another repeated footnote:
25201 \begin_layout Plain Layout
25215 \begin_layout Subsection
25217 \begin_inset CommandInset label
25219 name "sub:Footnote-Numbering"
25224 \begin_inset Index idx
25227 \begin_layout Plain Layout
25228 Footnotes ! Numbering
25236 \begin_layout Standard
25237 To reset the footnote number back to 1 after each section
25239 , add this command to your document preamble:
25242 \begin_layout Standard
25247 @addtoreset{footnote}{section}
25250 \begin_layout Standard
25251 \begin_inset VSpace bigskip
25254 The following preamble command changes the footnote numbering style to small
25258 \begin_layout Standard
25270 \begin_layout Standard
25274 \begin_layout Plain Layout
25287 This is a footnote with roman numbering:
25291 \begin_layout Plain Layout
25292 This is an example footnote with roman numbering.
25300 \begin_layout Standard
25301 To change the numbering style to capital roman numerals replace in the command
25316 \begin_inset Quotes eld
25320 \begin_inset Quotes erd
25323 footnotes with capital or small Latin letters use
25337 \begin_inset Quotes eld
25341 \begin_inset Quotes erd
25344 footnotes with symbols use
25353 \begin_layout Standard
25354 \begin_inset Note Greyedout
25357 \begin_layout Plain Layout
25362 You can only number 26 footnotes with Latin letters, because this numbering
25363 is limited to single letters.
25369 \begin_inset Newline newline
25373 \begin_inset Note Greyedout
25376 \begin_layout Plain Layout
25381 You can only number 9 footnotes with symbols.
25389 \begin_layout Standard
25390 To return to the default numbering style after you have changed to another
25403 in the command above.
25407 \begin_layout Plain Layout
25423 \begin_layout Standard
25424 \begin_inset VSpace bigskip
25430 \begin_layout Standard
25431 If you want to have footnotes numbered in the scheme
25432 \begin_inset Quotes eld
25436 \begin_inset Quotes erd
25439 , add the following command to your document preamble:
25442 \begin_layout Standard
25447 numberwithin{footnote}{chapter}
25450 \begin_layout Standard
25451 To be able to use the command
25460 \begin_inset space ~
25465 in the document settings the option
25468 \begin_inset space ~
25472 \begin_inset space ~
25476 \begin_inset space ~
25484 \begin_layout Standard
25488 \begin_layout Plain Layout
25492 numberwithin{footnote}{chapter}
25497 This is another example footnote:
25503 \begin_layout Plain Layout
25504 This is a footnote numbered in the scheme
25505 \begin_inset Quotes eld
25509 \begin_inset Quotes erd
25523 \begin_layout Plain Layout
25539 \begin_layout Standard
25540 \begin_inset Note Greyedout
25543 \begin_layout Plain Layout
25554 always prints out the footnote number as arabic number; previous redefinitions
25555 to get non-arabic numbers are overwritten.
25563 \begin_layout Standard
25564 So to get for example the scheme
25565 \begin_inset Quotes eld
25571 \begin_inset Quotes erd
25574 , use this command instead of
25583 \begin_layout Standard
25597 \begin_layout Subsection
25599 \begin_inset Index idx
25602 \begin_layout Plain Layout
25603 Footnotes ! Placement
25611 \begin_layout Standard
25612 If you have several footnotes in one page, they appear without vertical
25613 space between them at the bottom of the page.
25614 To make them more readable you can e.
25615 \begin_inset space \thinspace{}
25619 \begin_inset space \space{}
25623 \begin_inset space \thinspace{}
25626 mm space with the following preamble command:
25629 \begin_layout Standard
25639 \begin_inset Newline newline
25653 \begin_layout Standard
25654 \begin_inset VSpace bigskip
25657 In a two-column document the footnotes appear at the bottom of every column,
25659 \begin_inset space ~
25663 \begin_inset CommandInset ref
25665 reference "fig:Standard-footnote-placement"
25670 If the footnotes should only appear at the bottom of the right column,
25672 \begin_inset space ~
25676 \begin_inset CommandInset ref
25678 reference "fig:Footnote-placement-in"
25682 , use the LaTeX-package
25687 \begin_inset Index idx
25690 \begin_layout Plain Layout
25691 LaTeX-packages ! ftnright
25696 with this command in the document preamble:
25699 \begin_layout Standard
25704 usepackage{ftnright}
25707 \begin_layout Standard
25708 \begin_inset Float figure
25714 \begin_layout Plain Layout
25718 \begin_layout Plain Layout
25728 \begin_inset Graphics
25729 filename clipart/without_fntright.pdf
25731 scaleBeforeRotation
25739 \begin_layout Plain Layout
25749 \begin_layout Plain Layout
25750 \begin_inset Caption
25752 \begin_layout Plain Layout
25753 \begin_inset CommandInset label
25755 name "fig:Standard-footnote-placement"
25759 Standard footnote placement in two-column documents.
25772 \begin_layout Standard
25773 \begin_inset Float figure
25779 \begin_layout Plain Layout
25783 \begin_layout Plain Layout
25793 \begin_inset Graphics
25794 filename clipart/with_fntright.pdf
25796 scaleBeforeRotation
25804 \begin_layout Plain Layout
25814 \begin_layout Plain Layout
25815 \begin_inset Caption
25817 \begin_layout Plain Layout
25818 \begin_inset CommandInset label
25820 name "fig:Footnote-placement-in"
25824 Footnote placement in two-column documents when the LaTeX-package
25841 \begin_layout Standard
25842 \begin_inset VSpace bigskip
25845 In some scientific literature it is usual to collect the footnotes and print
25846 them in a separate paragraph at the end of a section, as in Figure
25847 \begin_inset space ~
25851 \begin_inset CommandInset ref
25853 reference "fig:Endnotes"
25858 They are then called
25859 \begin_inset Quotes eld
25863 \begin_inset Quotes erd
25867 \begin_inset Index idx
25870 \begin_layout Plain Layout
25876 To use endnotes instead of footnotes in your document, load in the menu
25879 Document\SpecialChar \menuseparator
25880 Settings\SpecialChar \menuseparator
25886 \begin_inset space ~
25890 \begin_inset space ~
25896 To insert the collected footnotes, insert the command
25899 \begin_layout Standard
25907 \begin_layout Standard
25908 in TeX-Code at the end of a section or chapter.
25911 \begin_layout Standard
25912 \begin_inset Float figure
25917 \begin_layout Plain Layout
25922 \begin_layout Plain Layout
25932 \begin_inset Graphics
25933 filename clipart/endnotes.pdf
25934 scaleBeforeRotation
25942 \begin_layout Plain Layout
25952 \begin_layout Plain Layout
25953 \begin_inset Caption
25955 \begin_layout Plain Layout
25956 \begin_inset CommandInset label
25958 name "fig:Endnotes"
25962 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25976 \begin_layout Standard
25977 \begin_inset VSpace medskip
25980 The paragraph heading for the endnotes isn't automatically translated into
25981 the document language, this must be done manually.
25982 The following preamble command translates the default English
25983 \begin_inset Quotes eld
25987 \begin_inset Quotes erd
25991 \begin_inset Quotes eld
25995 \begin_inset Quotes erd
26001 \begin_layout Standard
26008 notesname}{Anmerkungen}
26011 \begin_layout Standard
26012 \begin_inset VSpace medskip
26015 The numbering of endnotes can be changed like the footnote numbering as
26016 described in section
26017 \begin_inset space ~
26021 \begin_inset CommandInset ref
26023 reference "sub:Footnote-Numbering"
26027 ; just replace the command
26040 To reset the endnote number use the command
26046 as described in section
26047 \begin_inset space ~
26051 \begin_inset CommandInset ref
26053 reference "sub:Footnote-Numbering"
26057 and replace the command parameter
26068 \begin_layout Standard
26069 For endnotes there is the command
26073 endnotemark[number]
26075 similar to the command
26081 , that is described in section
26082 \begin_inset space ~
26086 \begin_inset CommandInset ref
26088 reference "sec:Footnotes"
26095 \begin_layout Standard
26096 \begin_inset VSpace bigskip
26099 Footnotes can also be placed in the page margin and the footnote text alignment
26100 can be changed, see the LaTeX-package
26105 \begin_inset Index idx
26108 \begin_layout Plain Layout
26109 LaTeX-packages ! footmisc
26115 \begin_inset CommandInset citation
26121 for more information about this.
26124 \begin_layout Standard
26125 For various further footnote formatting issues have a look at LaTeX-books,
26127 \begin_inset CommandInset citation
26129 key "latexcompanion,latexguide,latexbook"
26136 \begin_layout Section
26138 \begin_inset Index idx
26141 \begin_layout Plain Layout
26142 Notes ! Margin Notes
26150 \begin_layout Standard
26151 Margin notes look and behave in LyX like footnotes.
26152 They are inserted via the menu
26154 Insert\SpecialChar \menuseparator
26156 \begin_inset space ~
26161 or the toolbar button
26162 \begin_inset Graphics
26163 filename ../images/marginalnote-insert.png
26165 scaleBeforeRotation
26180 \begin_inset Quotes eld
26184 \begin_inset Quotes erd
26187 appears where you can enter the text of the margin note.
26190 \begin_layout Standard
26191 At the side is an example margin note.
26196 \begin_inset Marginal
26199 \begin_layout Plain Layout
26200 This is a margin note.
26208 \begin_layout Standard
26209 Margin notes appear at the right side in single-sided documents.
26210 In double-sided documents they appear in the outer margin – left on even
26211 pages, right on odd pages.
26212 The text of margin notes is aligned opposite to the outer margin – right-aligne
26213 d when the note appears in the left margin.
26214 The first line of the margin note is placed at the position of the text
26215 line where it is inserted in the document.
26218 \begin_layout Standard
26219 \begin_inset VSpace bigskip
26222 To place the margin note in the inner margin, add the command
26225 \begin_layout Standard
26233 \begin_layout Standard
26234 in TeX-Code before a margin note.
26235 The new placement is valid for all subsequent margin notes.
26240 \begin_layout Plain Layout
26250 \begin_inset Marginal
26253 \begin_layout Plain Layout
26254 This is a margin note in the inner margin.
26262 \begin_inset Newline newline
26268 \begin_inset Note Greyedout
26271 \begin_layout Plain Layout
26276 There is often not enough space in the inner margin so that the notes are
26277 not correctly displayed in the output.
26285 \begin_layout Standard
26286 To return to the default placement insert the command
26289 \begin_layout Standard
26297 \begin_layout Standard
26302 \begin_layout Plain Layout
26312 \begin_inset Note Greyedout
26315 \begin_layout Plain Layout
26320 The command is ignored when it is within a paragraph where also the command
26335 \begin_layout Standard
26336 \begin_inset VSpace bigskip
26343 \begin_inset Marginal
26346 \begin_layout Plain Layout
26347 AVeryLongMarginParWord that isn't hyphenated.
26355 Similar to the case described in section
26356 \begin_inset space ~
26360 \begin_inset CommandInset ref
26362 reference "sub:Multiple-Lines-in"
26366 , long words cannot be hyphenated when they are the first word in a margin
26368 To avoid this, insert 0
26369 \begin_inset space \thinspace{}
26372 pt horizontal space before the word
26377 \begin_inset Marginal
26380 \begin_layout Plain Layout
26381 \begin_inset space \hspace*{}
26385 AVeryLongMarginParWord that is hyphenated.
26393 \begin_layout Standard
26394 \begin_inset VSpace bigskip
26400 \begin_layout Standard
26401 \begin_inset Note Greyedout
26404 \begin_layout Plain Layout
26409 Margin notes can normally not be used inside tables, floats, and footnotes.
26417 \begin_layout Standard
26418 \begin_inset VSpace bigskip
26424 \begin_layout Standard
26428 \begin_layout Plain Layout
26438 \begin_inset Note Note
26441 \begin_layout Plain Layout
26442 The following section will only be displayed when the LaTeX-package
26454 \begin_layout Standard
26455 This restriction can be evaded by using the LaTeX-package
26460 \begin_inset Index idx
26463 \begin_layout Plain Layout
26464 LaTeX-packages ! marginnote
26470 By adding these two lines to your document preamble, the command used by
26471 LyX for margin notes is redefined to use the command provided by the
26478 \begin_layout Standard
26483 usepackage{marginnote}
26484 \begin_inset Newline newline
26496 \begin_layout Standard
26497 This is also used in this document because
26501 has another useful feature: You can set a vertical offset for the note.
26502 This is often needed when too many margin notes are too close together
26503 or for a better page layout.
26504 The offset is set in LyX as TeX-Code directly after the margin note in
26508 \begin_layout Standard
26514 \begin_layout Standard
26515 where the offset is a length with one of the units listed in Table
26516 \begin_inset space ~
26520 \begin_inset CommandInset ref
26522 reference "tab:Units"
26527 A negative value shifts the note up, a positive value shifts it down.
26531 For example the margin note beside this text line is shifted up 1.5
26532 \begin_inset space \thinspace{}
26535 cm with the TeX-Code-command
26536 \begin_inset Quotes eld
26546 \begin_inset Quotes erd
26550 \begin_inset Marginal
26553 \begin_layout Plain Layout
26554 This margin note is shifted up 1.5
26555 \begin_inset space \thinspace{}
26558 cm from its original position.
26570 \begin_layout Plain Layout
26580 \begin_layout Standard
26581 \begin_inset VSpace medskip
26588 you can also change the alignment of the text in the margin note.
26589 For example the commands
26592 \begin_layout Standard
26599 raggedleftmarginnote}{
26602 \begin_inset Newline newline
26609 raggedrightmarginnote}{
26614 \begin_layout Standard
26615 set the alignment to centered.
26620 raggedleftmarginnote
26622 denotes margin notes that appear at the left side.
26629 \begin_layout Plain Layout
26635 raggedleftmarginnote}{
26640 \begin_layout Plain Layout
26646 raggedrightmarginnote}{
26654 \begin_inset Marginal
26657 \begin_layout Plain Layout
26658 The text of this margin note is centered.
26669 \begin_layout Standard
26676 raggedleftmarginnote}{
26679 \begin_inset Newline newline
26686 raggedrightmarginnote}{
26695 \begin_layout Plain Layout
26701 raggedleftmarginnote}{
26706 \begin_layout Plain Layout
26712 raggedrightmarginnote}{
26722 \begin_layout Standard
26723 \begin_inset VSpace medskip
26726 For the other features of
26730 refer to its documentation
26731 \begin_inset CommandInset citation
26740 \begin_layout Standard
26741 \begin_inset VSpace bigskip
26744 You can adjust the layout of margin notes by changing its definition.
26745 To create for example a header for all margin notes with the underlined,
26746 sans-serif, and bold header text
26747 \begin_inset Quotes eld
26759 \begin_inset Quotes erd
26762 , add this to your document preamble:
26765 \begin_layout Standard
26775 \begin_inset Newline newline
26785 \begin_inset Newline newline
26789 \begin_inset Phantom HPhantom
26792 \begin_layout Plain Layout
26795 \begin_inset space ~
26811 underbar{Attention!}}}%
26812 \begin_inset Newline newline
26816 \begin_inset Phantom HPhantom
26819 \begin_layout Plain Layout
26822 \begin_inset space ~
26839 \begin_layout Standard
26846 \begin_layout Plain Layout
26857 \begin_layout Plain Layout
26868 \begin_layout Plain Layout
26876 underbar{Attention!}}}%
26879 \begin_layout Plain Layout
26893 \begin_inset Marginal
26896 \begin_layout Plain Layout
26897 This is a margin note with a defined heading.
26909 \begin_layout Plain Layout
26923 \begin_layout Plain Layout
26940 \begin_inset Note Note
26943 \begin_layout Plain Layout
26944 The margin note format is changed only for this example.
26952 \begin_layout Standard
26956 \begin_layout Plain Layout
26966 \begin_inset Note Note
26969 \begin_layout Plain Layout
26970 The following will be displayed when the LaTeX-package
26982 \begin_layout Standard
26983 You need to install the LaTeX-package
26987 to see the following part of this section in the output.
26990 \begin_layout Standard
26994 \begin_layout Plain Layout
27006 \begin_layout Chapter
27010 \begin_layout Section
27012 \begin_inset Index idx
27015 \begin_layout Plain Layout
27016 Boxes ! Introduction
27024 \begin_layout Standard
27025 Boxes are used to format a block of text.
27026 Boxes can be used to write documents with multiple languages, see section
27027 \begin_inset space ~
27031 \begin_inset CommandInset ref
27033 reference "sec:Minipages"
27037 , to frame texts, see section
27038 \begin_inset space ~
27042 \begin_inset CommandInset ref
27044 reference "sec:Decoration"
27048 , to prevent words from being hyphenated, see section
27049 \begin_inset space ~
27053 \begin_inset CommandInset ref
27055 reference "sec:Prevent-Hyphenation"
27059 , to align text, see section
27060 \begin_inset space ~
27064 \begin_inset CommandInset ref
27066 reference "sub:Vertical-Alignment"
27070 , or to set the background color of texts, see section
27071 \begin_inset space ~
27075 \begin_inset CommandInset ref
27077 reference "sec:Colored-Boxes"
27084 \begin_layout Standard
27085 Boxes can be inserted with the menu
27087 Insert\SpecialChar \menuseparator
27090 or the toolbar button
27091 \begin_inset Graphics
27092 filename ../images/box-insert.png
27094 scaleBeforeRotation
27099 A grey box with the label
27104 \begin_inset Graphics
27105 filename clipart/BoxInsetDefaultQt4.png
27107 scaleBeforeRotation
27112 The box type can be specified by right-clicking on the box and selecting
27118 The box dialog offers the
27121 \begin_inset space ~
27143 is the default for new boxes and is explained in section
27144 \begin_inset space ~
27148 \begin_inset CommandInset ref
27150 reference "sec:Minipages"
27158 is described in section
27159 \begin_inset space ~
27163 \begin_inset CommandInset ref
27165 reference "sec:Parboxes"
27174 \begin_inset CommandInset ref
27176 reference "sec:Prevent-Hyphenation"
27183 \begin_layout Standard
27184 Boxes are not numbered and can therefore not be referenced like floats or
27188 \begin_layout Standard
27189 \begin_inset Note Greyedout
27192 \begin_layout Plain Layout
27197 Boxes must not be the item in an
27213 \begin_layout Standard
27214 \begin_inset Note Greyedout
27217 \begin_layout Plain Layout
27222 For an unknown reason you can only set the
27225 \begin_inset space ~
27234 when you use a framed box.
27238 \begin_inset space ~
27243 type and without frames are explained in section
27244 \begin_inset space ~
27248 \begin_inset CommandInset ref
27250 reference "sec:Prevent-Hyphenation"
27262 \begin_layout Section
27264 \begin_inset CommandInset label
27266 name "sec:Box-Dialog"
27271 \begin_inset Index idx
27274 \begin_layout Plain Layout
27283 \begin_layout Subsection
27285 \begin_inset Index idx
27288 \begin_layout Plain Layout
27297 \begin_layout Standard
27298 In the box dialog you can adjust the box geometry in the fields
27307 The available units for the geometry are explained in Table
27308 \begin_inset space ~
27312 \begin_inset CommandInset ref
27314 reference "tab:Units"
27323 offers the following additional sizes:
27326 \begin_layout Description
27327 Depth This is the plain text
27328 \begin_inset Quotes eld
27332 \begin_inset Quotes erd
27336 It ignores the total depth when there are multiple text lines in the box:
27337 \begin_inset Newline newline
27341 \begin_inset Newline newline
27345 \begin_inset Newline newline
27349 \begin_inset Box Boxed
27359 height_special "depth"
27362 \begin_layout Plain Layout
27364 Box height set to 1
27365 \begin_inset space \thinspace{}
27374 \begin_inset Newline newline
27378 \begin_inset Newline newline
27384 \begin_layout Description
27385 Height This is the height of the text that is inside the box.
27387 \begin_inset space \thinspace{}
27391 \begin_inset space \space{}
27394 2 for this size will set the box height to 2
27395 \begin_inset space ~
27398 times the text height:
27399 \begin_inset Box Boxed
27409 height_special "height"
27412 \begin_layout Plain Layout
27414 Box height set to 2
27415 \begin_inset space \thinspace{}
27426 \begin_layout Description
27428 \begin_inset space ~
27431 Height This is the Height
27432 \begin_inset space \thinspace{}
27436 \begin_inset space \thinspace{}
27440 \begin_inset Box Boxed
27450 height_special "totalheight"
27453 \begin_layout Plain Layout
27455 Box height set to 1
27456 \begin_inset space \thinspace{}
27460 \begin_inset space ~
27471 \begin_layout Description
27472 Width This sets the width of the box as height:
27473 \begin_inset Box Boxed
27483 height_special "width"
27486 \begin_layout Plain Layout
27488 Box height set to 1
27489 \begin_inset space \thinspace{}
27500 \begin_layout Subsection
27502 \begin_inset Index idx
27505 \begin_layout Plain Layout
27514 \begin_layout Standard
27515 When you have chosen an
27518 \begin_inset space ~
27523 , the vertical box alignment can be:
27526 \begin_layout Description
27527 Top This is an example text line.
27529 \begin_inset Box Boxed
27539 height_special "totalheight"
27542 \begin_layout Plain Layout
27544 This box is top-aligned.
27549 This is an example text line.
27552 \begin_layout Description
27553 Middle This is an example text line.
27555 \begin_inset Box Boxed
27565 height_special "totalheight"
27568 \begin_layout Plain Layout
27570 This box is middle-aligned.
27575 This is an example text line.
27578 \begin_layout Description
27579 Bottom This is an example text line.
27581 \begin_inset Box Boxed
27591 height_special "totalheight"
27594 \begin_layout Plain Layout
27596 This box is bottom-aligned.
27601 This is an example text line.
27604 \begin_layout Standard
27605 \begin_inset Note Greyedout
27608 \begin_layout Plain Layout
27613 The vertical box alignment can be lost in the output when you have two
27614 boxes in a line and one has e.
27615 \begin_inset space \thinspace{}
27619 \begin_inset space \space{}
27622 a shadow and the other one not.
27630 \begin_layout Standard
27631 The horizontal box alignment can be set via LyX's paragraph dialog when
27632 you set the box into its own paragraph.
27635 \begin_layout Standard
27636 \begin_inset VSpace bigskip
27639 When you have chosen an
27642 \begin_inset space ~
27647 , the box content can be aligned vertically to:
27650 \begin_layout Description
27651 top This is an example text line.
27653 \begin_inset Box Boxed
27663 height_special "totalheight"
27666 \begin_layout Plain Layout
27668 This box text is top-aligned.
27673 This is an example text line.
27676 \begin_layout Description
27677 middle This is an example text line.
27679 \begin_inset Box Boxed
27689 height_special "totalheight"
27692 \begin_layout Plain Layout
27694 This box text is middle-aligned.
27699 This is an example text line.
27702 \begin_layout Description
27703 bottom This is an example text line.
27705 \begin_inset Box Boxed
27715 height_special "totalheight"
27718 \begin_layout Plain Layout
27720 This box text is bottom-aligned.
27725 This is an example text line.
27728 \begin_layout Description
27729 stretch This is an example text line.
27731 \begin_inset Box Boxed
27741 height_special "totalheight"
27744 \begin_layout Plain Layout
27749 \begin_layout Plain Layout
27754 \begin_layout Plain Layout
27761 This is an example text line.
27764 \begin_layout Standard
27765 To stretch the box content, it must consist of more than one paragraph.
27766 In the example above every text line is in an own paragraph.
27769 \begin_layout Standard
27770 \begin_inset VSpace bigskip
27773 To align the box content horizontally you can use LyX's paragraph dialog
27774 when you have chosen an
27777 \begin_inset space ~
27785 \begin_layout Standard
27787 \begin_inset Box Boxed
27797 height_special "totalheight"
27800 \begin_layout Plain Layout
27805 \begin_layout Plain Layout
27810 \begin_layout Plain Layout
27820 \begin_layout Standard
27821 If you have not set an
27824 \begin_inset space ~
27829 , you can align the box content horizontally in the box dialog.
27832 \begin_layout Standard
27834 \begin_inset Box Boxed
27844 height_special "totalheight"
27847 \begin_layout Plain Layout
27849 This box text is horizontally stretched.
27857 \begin_layout Subsection
27859 \begin_inset CommandInset label
27861 name "sec:Decoration"
27866 \begin_inset Index idx
27869 \begin_layout Plain Layout
27878 \begin_layout Standard
27879 The type of the box can be specified in the box dialog in the drop-down
27885 The following types are possible:
27888 \begin_layout Description
27890 \begin_inset space ~
27893 frame Nothing is drawn.
27896 \begin_layout Description
27898 \begin_inset space ~
27902 \begin_inset space ~
27905 frame This draws a rectangular frame around the box.
27906 The frame line thickness has the size of
27914 \begin_inset Box Boxed
27924 height_special "totalheight"
27927 \begin_layout Plain Layout
27937 \begin_layout Description
27939 \begin_inset space ~
27943 \begin_inset space ~
27946 thin This draws an oval frame around the box.
27947 The frame line thickness has the size 0.4
27948 \begin_inset space \thinspace{}
27953 \begin_inset Box ovalbox
27963 height_special "totalheight"
27966 \begin_layout Plain Layout
27976 \begin_layout Description
27978 \begin_inset space ~
27982 \begin_inset space ~
27985 thick This draws an oval frame around the box.
27986 The frame line thickness has the size 0.8
27987 \begin_inset space \thinspace{}
27992 \begin_inset Box Ovalbox
28002 height_special "totalheight"
28005 \begin_layout Plain Layout
28015 \begin_layout Description
28017 \begin_inset space ~
28020 shadow This draws a rectangular frame with a shadow around the box.
28021 The frame line thickness has the size of
28027 , the shadow has a width of 4
28028 \begin_inset space \thinspace{}
28033 \begin_inset Box Shadowbox
28043 height_special "totalheight"
28046 \begin_layout Plain Layout
28056 \begin_layout Description
28058 \begin_inset space ~
28061 background This draws a box with a red background.
28062 Unlike colored boxes
28066 \begin_layout Plain Layout
28068 \begin_inset space \thinspace{}
28072 \begin_inset CommandInset ref
28074 reference "sec:Colored-Boxes"
28083 , it always uses the whole column width and the box is set as its own paragraph.
28085 \begin_inset Box Shaded
28095 height_special "totalheight"
28098 \begin_layout Plain Layout
28099 Shaded background box
28107 \begin_layout Description
28109 \begin_inset space ~
28113 \begin_inset space ~
28116 frame This draws a double-line rectangular frame around the box.
28117 The line thickness of the inner frame is 0.75
28118 \begin_inset space \thinspace{}
28127 , the thickness of the outer frame is 1.5
28128 \begin_inset space \thinspace{}
28138 The distance between the lines is 1.5
28139 \begin_inset space \thinspace{}
28149 \begin_inset space \thinspace{}
28153 \begin_inset space \thinspace{}
28157 \begin_inset space \thinspace{}
28162 \begin_inset Box Doublebox
28172 height_special "totalheight"
28175 \begin_layout Plain Layout
28177 Double rectangular box
28185 \begin_layout Standard
28186 \begin_inset VSpace bigskip
28189 LyX's box label will reflect the different frame types.
28190 To be able to use all types, the LaTeX-package
28195 \begin_inset Index idx
28198 \begin_layout Plain Layout
28199 LaTeX-packages ! fancybox
28207 \begin_layout Standard
28208 \begin_inset VSpace bigskip
28211 When you use the decoration
28213 simple rectangular frame
28215 and no inner box, you can allow page breaks within a box.
28216 Note that then, unlike other framed boxes, the frame always uses the whole
28217 column width, the box is set as its own paragraph, and
28229 have no effect on this box type.
28230 The frame line thickness has the size of
28238 \begin_inset Box Framed
28248 height_special "totalheight"
28251 \begin_layout Plain Layout
28252 Allow page break box
28260 \begin_layout Section
28262 \begin_inset Index idx
28265 \begin_layout Plain Layout
28266 Boxes ! Customization
28274 \begin_layout Standard
28275 The default value for the size
28282 \begin_inset space \thinspace{}
28286 It can be changed with the following command in TeX-Code to e.
28287 \begin_inset space \thinspace{}
28291 \begin_inset space \space{}
28295 \begin_inset space \thinspace{}
28301 \begin_layout Standard
28311 \begin_layout Standard
28315 \begin_layout Plain Layout
28327 \begin_inset Box Boxed
28337 height_special "totalheight"
28340 \begin_layout Plain Layout
28342 Rectangular box with
28349 \begin_inset space \thinspace{}
28353 \begin_inset space \thinspace{}
28357 \begin_inset space \thinspace{}
28369 \begin_layout Plain Layout
28383 \begin_layout Standard
28384 \begin_inset VSpace bigskip
28387 The space between the frame and the box content is for all frame styles
28389 \begin_inset space \thinspace{}
28393 You can change it by setting the length
28400 For example the command
28403 \begin_layout Standard
28413 \begin_layout Standard
28414 sets the value to 10
28415 \begin_inset space \thinspace{}
28418 pt, as with the following box:
28421 \begin_layout Standard
28425 \begin_layout Plain Layout
28437 \begin_inset Box Boxed
28447 height_special "totalheight"
28450 \begin_layout Plain Layout
28452 Rectangular box with
28459 \begin_inset space \thinspace{}
28463 \begin_inset space \thinspace{}
28467 \begin_inset space \thinspace{}
28479 \begin_layout Plain Layout
28493 \begin_layout Standard
28494 \begin_inset VSpace bigskip
28497 The diameter of the round corners of the oval boxes can be set with the
28508 \begin_layout Standard
28516 \begin_layout Standard
28517 sets the diameter to 1
28518 \begin_inset space \thinspace{}
28525 \begin_layout Standard
28533 \begin_layout Standard
28534 sets the diameter to
28537 \begin_inset space \thinspace{}
28541 \begin_inset space \thinspace{}
28544 minimum(width and heigth of box)
28556 \begin_layout Standard
28560 \begin_layout Plain Layout
28570 \begin_inset Box Ovalbox
28580 height_special "totalheight"
28583 \begin_layout Plain Layout
28592 \begin_inset space \thinspace{}
28596 \begin_inset space \thinspace{}
28600 \begin_inset space \thinspace{}
28612 \begin_layout Plain Layout
28624 \begin_layout Standard
28625 \begin_inset VSpace bigskip
28628 The size of the shadow can be adjusted by changing the length
28636 \begin_inset space \thinspace{}
28639 pt for the following box by this command:
28642 \begin_layout Standard
28652 \begin_layout Standard
28656 \begin_layout Plain Layout
28668 \begin_inset Box Shadowbox
28678 height_special "totalheight"
28681 \begin_layout Plain Layout
28690 \begin_inset space \thinspace{}
28694 \begin_inset space \thinspace{}
28698 \begin_inset space \thinspace{}
28710 \begin_layout Plain Layout
28724 \begin_layout Standard
28725 \begin_inset VSpace bigskip
28731 \begin_layout Standard
28732 The default value for the size
28739 \begin_inset space \thinspace{}
28743 The default space between the note content and the frame is 9
28744 \begin_inset space \thinspace{}
28747 pt and can be changed with the value of
28754 For example the frame appearance of the following
28758 is set with the TeX-Code commands
28761 \begin_layout Standard
28769 \begin_inset Newline newline
28779 \begin_layout Standard
28783 \begin_layout Plain Layout
28792 \begin_layout Plain Layout
28804 \begin_inset Box Framed
28814 height_special "totalheight"
28817 \begin_layout Plain Layout
28831 \begin_layout Plain Layout
28840 \begin_layout Plain Layout
28854 \begin_layout Standard
28855 \begin_inset VSpace bigskip
28861 \begin_layout Standard
28866 boxes the default space between the box content and the box border is 3
28867 \begin_inset space \thinspace{}
28870 pt and can be changed with the value of
28877 The default background color red can either be changed locally with the
28882 definecolor{shadecolor}
28884 or globally with the menu
28886 Tools\SpecialChar \menuseparator
28887 Preferences\SpecialChar \menuseparator
28888 Colors\SpecialChar \menuseparator
28890 \begin_inset space ~
28902 command is explained in section
28903 \begin_inset space ~
28907 \begin_inset CommandInset ref
28909 reference "sec:Colored-Tables"
28917 \begin_layout Plain Layout
28924 requires the LaTeX-package
28928 in the preamble, see section
28929 \begin_inset space ~
28933 \begin_inset CommandInset ref
28935 reference "sec:Colored-Boxes"
28944 For example the appearance of the following shaded background box is set
28945 with the TeX-Code commands
28948 \begin_layout Standard
28958 \begin_inset Newline newline
28965 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28968 \begin_layout Standard
28972 \begin_layout Plain Layout
28981 \begin_layout Plain Layout
28985 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28991 \begin_inset Box Shaded
29001 height_special "totalheight"
29004 \begin_layout Plain Layout
29007 This is yellow text in a
29017 box with dark green background.
29026 \begin_layout Plain Layout
29035 \begin_layout Plain Layout
29039 definecolor{shadecolor}{rgb}{1,0,0}
29047 \begin_layout Standard
29048 \begin_inset VSpace bigskip
29051 Changed lengths and widths are valid for all boxes following the commands
29055 \begin_layout Section
29057 \begin_inset CommandInset label
29059 name "sec:Minipages"
29064 \begin_inset Index idx
29067 \begin_layout Plain Layout
29076 \begin_layout Standard
29077 Minipages are treated by LaTeX as pages within pages and can therefore for
29078 example have their own footnotes.
29081 \begin_layout Standard
29082 Minipages are useful when you write documents with different languages.
29085 \begin_layout Standard
29086 Below are two example minipages side by side.
29087 Their width is set to 45
29088 \begin_inset space \thinspace{}
29091 col% and they are separated by a horizontal fill, that was inserted via
29094 Insert\SpecialChar \menuseparator
29096 \begin_inset space ~
29099 Formatting\SpecialChar \menuseparator
29101 \begin_inset space ~
29107 \begin_inset Newpage newpage
29113 \begin_layout Standard
29114 \begin_inset Box Frameless
29124 height_special "totalheight"
29127 \begin_layout Plain Layout
29130 Dies ist ein deutscher Text.
29131 Dies ist ein deutscher Text.
29132 Dies ist ein deutscher Text.
29133 Dies ist ein deutscher Text.
29134 Dies ist ein deutscher Text.
29135 Dies ist ein deutscher Text.
29136 Dies ist ein deutscher Text.
29137 Dies ist ein deutscher Text.
29138 Dies ist ein deutscher Text.
29139 Dies ist ein deutscher Text.
29140 Dies ist ein deutscher Text.
29141 Dies ist ein deutscher Text.
29142 Dies ist ein deutscher Text
29146 \begin_layout Plain Layout
29149 Dies ist eine deutsche Fußnote.
29155 Dies ist ein deutscher Text.
29156 Dies ist ein deutscher Text.
29162 \begin_inset space \hfill{}
29166 \begin_inset Box Frameless
29176 height_special "totalheight"
29179 \begin_layout Plain Layout
29180 This is an English Text.
29181 This is an English Text.
29182 This is an English Text.
29183 This is an English Text.
29184 This is an English Text.
29185 This is an English Text.
29186 This is an English Text.
29187 This is an English Text.
29188 This is an English Text.
29189 This is an English Text.
29190 This is an English Text.
29191 This is an English Text.
29192 This is an English Text.
29193 This is an English Text.
29194 This is an English Text.
29195 This is an English Text.
29199 \begin_layout Plain Layout
29200 This is an English footnote.
29205 This is an English Text.
29214 \begin_layout Standard
29215 \begin_inset VSpace bigskip
29218 The document-wide paragraph settings are ignored within minipages.
29219 That means that there will be no space between paragraphs in minipages
29220 although you set it to e.
29221 \begin_inset space \thinspace{}
29225 \begin_inset space \space{}
29232 in the document settings.
29235 \begin_layout Standard
29236 Minipages can also be used to set a background color for text parts, see
29238 \begin_inset space ~
29242 \begin_inset CommandInset ref
29244 reference "sub:Color-for-Paragraphs"
29251 \begin_layout Standard
29252 \begin_inset Note Greyedout
29255 \begin_layout Plain Layout
29260 You cannot have floats or margin notes inside minipages but minipages can
29261 be used inside tables, floats, and other boxes.
29269 \begin_layout Section
29271 \begin_inset CommandInset label
29273 name "sec:Parboxes"
29278 \begin_inset Index idx
29281 \begin_layout Plain Layout
29290 \begin_layout Standard
29291 Parboxes are very similar to minipages with the difference that they cannot
29292 have footnotes, because minipages, unlike parboxes, are not real boxes
29293 but LaTeX-environments.
29296 \begin_layout Standard
29298 \begin_inset Box Frameless
29308 height_special "totalheight"
29311 \begin_layout Plain Layout
29312 This a text within a parbox.
29313 This a text within a parbox.
29316 \begin_layout Plain Layout
29317 This footnote won't appear:
29321 \begin_layout Plain Layout
29322 This footnote is inside a parbox and will therefore not appear.
29335 \begin_layout Section
29336 Boxes for Words and Characters
29337 \begin_inset Index idx
29340 \begin_layout Plain Layout
29341 Boxes ! for Characters
29349 \begin_layout Subsection
29350 Prevent Hyphenation
29351 \begin_inset CommandInset label
29353 name "sec:Prevent-Hyphenation"
29358 \begin_inset Index idx
29361 \begin_layout Plain Layout
29362 Boxes ! to Prevent Hyphenation
29370 \begin_layout Standard
29371 You can use the box type
29375 to prevent words or text from being hyphenated.
29376 \begin_inset Newline newline
29379 Here is an example text:
29382 \begin_layout Standard
29383 This line is an example to show how you can prevent the hyphenation of
29384 \begin_inset Quotes eld
29388 \begin_inset Quotes erd
29394 \begin_layout Standard
29395 To prevent the hyphenation of the word
29396 \begin_inset Quotes eld
29400 \begin_inset Quotes erd
29403 , put the word into a box, set the
29406 \begin_inset space ~
29416 \begin_inset space \thinspace{}
29422 \begin_layout Standard
29423 This is the result:
29426 \begin_layout Standard
29427 This line is an example to show how you can prevent the hyphenation of
29428 \begin_inset Box Frameless
29438 height_special "totalheight"
29441 \begin_layout Plain Layout
29442 \begin_inset Quotes eld
29446 \begin_inset Quotes erd
29457 \begin_layout Standard
29458 You can alternatively set the command
29459 \begin_inset Quotes eld
29469 \begin_inset Quotes grd
29472 as TeX-Code directly before the word:
29475 \begin_layout Standard
29476 This line is an example to show how you can prevent the hyphenation of
29477 \begin_inset Quotes eld
29484 \begin_layout Plain Layout
29494 \begin_inset Quotes erd
29500 \begin_layout Standard
29501 Of course the word now protrudes over the side margin.
29502 To avoid this, add via the menu
29504 Insert\SpecialChar \menuseparator
29506 \begin_inset space ~
29509 Formatting\SpecialChar \menuseparator
29511 \begin_inset space ~
29519 arg "newline-insert newline"
29522 ) a line break before the word:
29525 \begin_layout Standard
29526 This line is an example to show how you can prevent the hyphenation of
29527 \begin_inset Newline newline
29531 \begin_inset Box Frameless
29541 height_special "totalheight"
29544 \begin_layout Plain Layout
29545 \begin_inset Quotes eld
29549 \begin_inset Quotes erd
29560 \begin_layout Subsection
29562 \begin_inset CommandInset label
29564 name "sub:Vertical-Alignment"
29569 \begin_inset Index idx
29572 \begin_layout Plain Layout
29573 Boxes ! for Vertical Alignment
29579 \begin_inset Index idx
29582 \begin_layout Plain Layout
29591 \begin_layout Standard
29592 With the help of the command
29598 you can align words, characters or other boxes vertically relative to the
29606 is used with the following scheme:
29609 \begin_layout Standard
29614 raisebox{lift}[height][depth]{box content}
29617 \begin_layout Standard
29618 The lift can be a positive value to raise the box or a negative value to
29622 \begin_layout Standard
29623 To align for example the word
29624 \begin_inset Quotes eld
29628 \begin_inset Quotes erd
29631 so that the bottom of the
29632 \begin_inset Quotes eld
29636 \begin_inset Quotes erd
29640 \begin_inset Quotes eld
29644 \begin_inset Quotes erd
29647 is at the baseline, insert the command
29650 \begin_layout Standard
29660 \begin_layout Standard
29661 in TeX-Code before the word.
29662 After the word insert a closing brace
29663 \begin_inset Quotes eld
29671 \begin_inset Quotes erd
29675 \begin_inset Newline newline
29678 This is the result:
29681 \begin_layout Standard
29682 This is a text line with the word
29686 \begin_layout Plain Layout
29698 \begin_inset Quotes eld
29702 \begin_inset Quotes erd
29709 \begin_layout Plain Layout
29719 \begin_layout Standard
29720 \begin_inset VSpace bigskip
29723 When you raise or lower characters in a line, the line distance will be
29727 \begin_layout Standard
29728 This is a text line with the word
29732 \begin_layout Plain Layout
29744 \begin_inset Quotes eld
29748 \begin_inset Quotes erd
29755 \begin_layout Plain Layout
29763 \begin_inset Newline newline
29766 This is a text line with the word
29770 \begin_layout Plain Layout
29780 \begin_inset Quotes eld
29784 \begin_inset Quotes erd
29791 \begin_layout Plain Layout
29801 \begin_layout Standard
29802 If you want to prevent this for a certain reason, set the box height to
29807 \begin_layout Standard
29817 \begin_layout Standard
29818 This is a text line with the word
29822 \begin_layout Plain Layout
29834 \begin_inset Quotes eld
29838 \begin_inset Quotes erd
29845 \begin_layout Plain Layout
29853 \begin_inset Newline newline
29856 This is a text line with the word
29860 \begin_layout Plain Layout
29864 raisebox{0.5cm}[0pt]{
29870 \begin_inset Quotes eld
29874 \begin_inset Quotes erd
29881 \begin_layout Plain Layout
29891 \begin_layout Section
29893 \begin_inset CommandInset label
29895 name "sec:Colored-Boxes"
29900 \begin_inset Index idx
29903 \begin_layout Plain Layout
29912 \begin_layout Subsection
29914 \begin_inset Index idx
29917 \begin_layout Plain Layout
29926 \begin_layout Standard
29927 To color the background of text the text must be put into a so called
29928 \begin_inset Quotes eld
29932 \begin_inset Quotes erd
29936 This requires that the LaTeX-package
29941 \begin_inset Index idx
29944 \begin_layout Plain Layout
29945 LaTeX-packages ! color
29950 is loaded in the document preamble with the command
29953 \begin_layout Standard
29958 @ifundefined{textcolor}
29959 \begin_inset Newline newline
29963 \begin_inset Phantom HPhantom
29966 \begin_layout Plain Layout
29969 \begin_inset space ~
29979 usepackage{color}}{}
29982 \begin_layout Standard
29987 will be loaded automatically by LyX when you color text.
29991 \begin_layout Plain Layout
29992 To avoid it being loaded twice the command
30006 \begin_layout Standard
30007 \begin_inset VSpace medskip
30010 Colorboxes are created with the command
30017 This will be used with the following scheme:
30020 \begin_layout Standard
30025 colorbox{color}{box content}
30028 \begin_layout Standard
30029 The box content can also be a box and colorboxes can also be within other
30033 \begin_layout Standard
30034 The following colors are predefined:
30035 \begin_inset Newline newline
30074 \begin_inset Newline newline
30077 You can also define your own color as described in section
30078 \begin_inset space ~
30082 \begin_inset CommandInset ref
30084 reference "sec:Colored-Tables"
30091 \begin_layout Standard
30093 \begin_inset space \thinspace{}
30097 \begin_inset space \space{}
30100 a red background for a word, insert the command
30103 \begin_layout Standard
30111 \begin_layout Standard
30112 before the word in TeX-Code.
30113 After the word insert a closing brace
30114 \begin_inset Quotes eld
30122 \begin_inset Quotes erd
30126 \begin_inset Newline newline
30129 This is the result:
30132 \begin_layout Standard
30133 This is a line where the word
30137 \begin_layout Plain Layout
30147 \begin_inset Quotes eld
30151 \begin_inset Quotes erd
30158 \begin_layout Plain Layout
30165 has a red background.
30168 \begin_layout Standard
30169 \begin_inset VSpace bigskip
30172 If you would like the box frame in a different color, you can use the command
30179 with the following scheme:
30182 \begin_layout Standard
30187 fcolorbox{frame color}{box color}{box content}
30190 \begin_layout Standard
30204 The frame thickness and the space between the frame and the box content
30205 can be adjusted with the lengths
30217 , respectively, as described in section
30218 \begin_inset space ~
30222 \begin_inset CommandInset ref
30224 reference "sec:Decoration"
30231 \begin_layout Standard
30232 For the following example the command
30235 \begin_layout Standard
30240 fcolorbox{cyan}{magenta}{
30243 \begin_layout Standard
30247 \begin_layout Standard
30248 Here is an example where the frame line thickness was set to 1
30249 \begin_inset space \thinspace{}
30253 \begin_inset Newline newline
30260 \begin_layout Plain Layout
30275 \begin_layout Plain Layout
30279 fcolorbox{cyan}{magenta}{
30284 This is text within a colored, framed box.
30288 \begin_layout Plain Layout
30298 \begin_layout Standard
30299 \begin_inset VSpace bigskip
30302 Of course you can also have colored text inside a colorbox:
30303 \begin_inset Newline newline
30310 \begin_layout Plain Layout
30314 fcolorbox{cyan}{magenta}{
30321 This is colored text within a colored, framed box.
30327 \begin_layout Plain Layout
30338 \begin_layout Plain Layout
30352 \begin_layout Standard
30355 \begin_inset VSpace medskip
30361 \begin_layout Standard
30362 \begin_inset Note Greyedout
30365 \begin_layout Plain Layout
30370 Text in colorboxes cannot have line breaks.
30371 To color multiple text lines or paragraphs, use a box inside a colorbox
30372 as described in the following.
30380 \begin_layout Subsection
30381 Color for Paragraphs
30382 \begin_inset CommandInset label
30384 name "sub:Color-for-Paragraphs"
30389 \begin_inset Index idx
30392 \begin_layout Plain Layout
30393 Color ! for Paragraphs
30401 \begin_layout Standard
30402 To set the background color for more than one text line, put the text into
30404 Before the minipage insert the
30413 \begin_layout Standard
30421 \begin_layout Standard
30423 After the minipage insert a closing brace
30424 \begin_inset Quotes eld
30432 \begin_inset Quotes erd
30438 \begin_layout Standard
30442 \begin_layout Plain Layout
30446 colorbox{lightgrey}{
30452 \begin_inset Box Frameless
30462 height_special "totalheight"
30465 \begin_layout Plain Layout
30466 This is text with background color.
30467 This is text with background color.
30470 \begin_layout Plain Layout
30471 \begin_inset VSpace defskip
30474 The text can have footnotes
30478 \begin_layout Plain Layout
30479 Another example footnote
30484 and can include tables and figures.
30487 \begin_layout Plain Layout
30489 \begin_inset Tabular
30490 <lyxtabular version="3" rows="3" columns="3">
30491 <features tabularvalignment="middle">
30492 <column alignment="center" valignment="top" width="0">
30493 <column alignment="center" valignment="top" width="0">
30494 <column alignment="center" valignment="top" width="0">
30496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30499 \begin_layout Plain Layout
30505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30508 \begin_layout Plain Layout
30514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30517 \begin_layout Plain Layout
30525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30528 \begin_layout Plain Layout
30534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30537 \begin_layout Plain Layout
30539 \begin_inset Quotes erd
30547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30550 \begin_layout Plain Layout
30558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30561 \begin_layout Plain Layout
30567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30570 \begin_layout Plain Layout
30576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30579 \begin_layout Plain Layout
30599 \begin_layout Plain Layout
30609 \begin_layout Section
30610 Rotated and Scaled Boxes
30613 \begin_layout Standard
30614 To use the commands described in this section, the LaTeX-package
30619 \begin_inset Index idx
30622 \begin_layout Plain Layout
30623 LaTeX-packages ! graphicx
30628 needs to be loaded in the document preamble with the command
30631 \begin_layout Standard
30636 @ifundefined{rotatebox}
30637 \begin_inset Newline newline
30641 \begin_inset Phantom HPhantom
30644 \begin_layout Plain Layout
30647 \begin_inset space ~
30657 usepackage{graphicx}}{}
30660 \begin_layout Standard
30661 \begin_inset Note Greyedout
30664 \begin_layout Plain Layout
30669 Some DVI-viewers can't display rotated or scaled material.
30677 \begin_layout Standard
30678 \begin_inset Note Greyedout
30681 \begin_layout Plain Layout
30686 Floats mustn't be inside a rotated or scaled box.
30694 \begin_layout Subsection
30696 \begin_inset Index idx
30699 \begin_layout Plain Layout
30706 \begin_inset Index idx
30709 \begin_layout Plain Layout
30716 \begin_inset Index idx
30719 \begin_layout Plain Layout
30726 \begin_inset Index idx
30729 \begin_layout Plain Layout
30730 Table Customization ! Rotating
30738 \begin_layout Standard
30739 To rotate material, you can put it into a rotated box.
30740 Such a box is created using the command
30746 in TeX-Code with the following scheme:
30749 \begin_layout Standard
30754 rotatebox[rotation origin]{rotation angle}{box content}
30757 \begin_layout Standard
30758 The rotation origin is specified in the form
30763 The following positions are possible:
30783 (top), along with meaningful combinations of the four base positions.
30788 means that the rotation origin is at the top left corner of the box.
30789 When no rotation origin is specified, the position
30794 The rotation angle is a number that can be negative that specifies the
30796 The rotation direction is counterclockwise.
30799 \begin_layout Standard
30800 In the following example the command
30804 rotatebox[origin=c]{60}{
30806 was inserted as TeX-Code before the text
30807 \begin_inset Quotes eld
30811 \begin_inset Quotes erd
30814 ; after the text the box was closed by a closing brace
30821 \begin_layout Standard
30826 \begin_layout Plain Layout
30830 rotatebox[origin=c]{60}{
30839 \begin_layout Plain Layout
30849 \begin_layout Standard
30850 The box content can also be another box or an inline formula:
30853 \begin_layout Standard
30858 \begin_layout Plain Layout
30862 rotatebox[origin=r]{-60}{
30868 \begin_inset Box Doublebox
30878 height_special "totalheight"
30881 \begin_layout Plain Layout
30891 \begin_layout Plain Layout
30902 \begin_layout Plain Layout
30906 rotatebox[origin=lb]{60}{
30912 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30919 \begin_layout Plain Layout
30929 \begin_layout Standard
30930 or an image or table:
30933 \begin_layout Standard
30938 \begin_layout Plain Layout
30942 rotatebox[origin=lb]{90}{
30948 \begin_inset Graphics
30949 filename clipart/platypus.eps
30959 \begin_layout Plain Layout
30966 with a rotated image
30970 \begin_layout Plain Layout
30974 rotatebox[origin=l]{-90}{
30980 \begin_inset Tabular
30981 <lyxtabular version="3" rows="2" columns="2">
30982 <features tabularvalignment="middle">
30983 <column alignment="center" valignment="top" width="0">
30984 <column alignment="center" valignment="top" width="0">
30986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30989 \begin_layout Plain Layout
30995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30998 \begin_layout Plain Layout
31006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31009 \begin_layout Plain Layout
31015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31018 \begin_layout Plain Layout
31033 \begin_layout Plain Layout
31043 \begin_layout Subsection
31045 \begin_inset Index idx
31048 \begin_layout Plain Layout
31055 \begin_inset Index idx
31058 \begin_layout Plain Layout
31065 \begin_inset Index idx
31068 \begin_layout Plain Layout
31075 \begin_inset Index idx
31078 \begin_layout Plain Layout
31079 Table Customization ! Scaling
31087 \begin_layout Standard
31088 To scale material the commands
31100 can be used as TeX-Code.
31103 \begin_layout Standard
31110 is used with the following scheme:
31113 \begin_layout Standard
31118 scalebox{horizontal}[vertical]{box content}
31121 \begin_layout Standard
31122 Horizontal and vertical are the corresponding scaling factors.
31123 If no vertical scaling factor is given, the horizontal factor will also
31124 be used as the vertical one.
31127 \begin_layout Standard
31134 creates for example a double size
31138 \begin_layout Plain Layout
31151 \begin_layout Plain Layout
31158 , compared with the document text size.
31161 \begin_layout Standard
31166 scalebox{2}[1]{Hello}
31168 on the other hand distorts the
31172 \begin_layout Plain Layout
31185 \begin_layout Plain Layout
31195 \begin_layout Standard
31196 If the scaling factor is negative, the box content will be mirrored.
31197 Therefore the command
31201 scalebox{-1}[1]{Hello}
31203 can be used to create mirror writing:
31207 \begin_layout Plain Layout
31220 \begin_layout Plain Layout
31230 \begin_layout Standard
31235 scalebox{1}[-1]{Hello}
31241 \begin_layout Plain Layout
31254 \begin_layout Plain Layout
31264 \begin_layout Standard
31269 scalebox{-1}[1]{box content}
31271 there exists the command
31272 \begin_inset Newline newline
31279 reflectbox{box content}
31284 \begin_layout Standard
31285 \begin_inset VSpace bigskip
31294 is used to scale the box to a defined width and height.
31295 The command scheme is:
31298 \begin_layout Standard
31303 resizebox{width}{height}{box content}
31306 \begin_layout Standard
31307 If one of the two command arguments given is an exclamation mark
31311 , the size is set so that the aspect ratio of the box content is kept.
31314 \begin_layout Standard
31319 resizebox{2cm}{1cm}{Hello}
31325 \begin_layout Plain Layout
31329 resizebox{2cm}{1cm}{
31338 \begin_layout Plain Layout
31346 \begin_inset Newline newline
31353 resizebox{2cm}{!}{Hello}
31359 \begin_layout Plain Layout
31372 \begin_layout Plain Layout
31382 \begin_layout Standard
31383 \begin_inset VSpace bigskip
31387 \begin_inset Note Greyedout
31390 \begin_layout Plain Layout
31407 are set to zero, no LaTeX-errors occur when exporting the document but
31408 the exported files can not or only partly be displayed.
31416 \begin_layout Standard
31417 \begin_inset VSpace bigskip
31423 \begin_layout Standard
31424 The boxes can be combined in any order.
31426 \begin_inset space \thinspace{}
31430 \begin_inset space \space{}
31434 \begin_inset Newline newline
31441 rotatebox[origin=c]{-45}{
31445 reflectbox{Hello}}}
31446 \begin_inset Newline newline
31454 \begin_layout Standard
31459 \begin_layout Plain Layout
31463 rotatebox[origin=c]{-45}{
31476 \begin_layout Plain Layout
31486 \begin_layout Standard
31488 Images, tables, and inline formulas are allowed as box content:
31491 \begin_layout Standard
31496 \begin_layout Plain Layout
31500 rotatebox[origin=c]{-30}{
31510 \begin_inset Graphics
31511 filename clipart/platypus.eps
31521 \begin_layout Plain Layout
31532 \begin_layout Plain Layout
31536 rotatebox[origin=c]{-45}{
31546 \begin_inset Tabular
31547 <lyxtabular version="3" rows="2" columns="2">
31548 <features tabularvalignment="middle">
31549 <column alignment="center" valignment="top" width="0">
31550 <column alignment="center" valignment="top" width="0">
31552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31555 \begin_layout Plain Layout
31561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31564 \begin_layout Plain Layout
31572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31575 \begin_layout Plain Layout
31581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31584 \begin_layout Plain Layout
31599 \begin_layout Plain Layout
31610 \begin_layout Plain Layout
31614 rotatebox[origin=c]{-45}{
31624 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31631 \begin_layout Plain Layout
31641 \begin_layout Standard
31642 When the global formula style
31646 is used in the document
31650 \begin_layout Plain Layout
31652 \begin_inset Quotes eld
31656 \begin_inset Quotes erd
31659 is added to the document class options.
31664 , display style formulas can also be scaled.
31667 \begin_layout Chapter
31668 External Document Parts
31669 \begin_inset Index idx
31672 \begin_layout Plain Layout
31673 External Document Parts
31681 \begin_layout Standard
31684 Insert\SpecialChar \menuseparator
31687 you can insert external material to your document.
31691 \begin_layout Description
31693 \begin_inset space ~
31696 Document Another LyX document; its content is directly inserted to your
31700 \begin_layout Description
31702 \begin_inset space ~
31705 Text A text document; each line is inserted in your document as a separate
31709 \begin_layout Description
31711 \begin_inset space ~
31715 \begin_inset space ~
31719 \begin_inset space ~
31722 Lines A text document; text lines are inserted in your document continuously
31723 but an empty text line creates a new paragraph.
31726 \begin_layout Description
31728 \begin_inset space ~
31731 Material Files in various formats.
31734 \begin_layout Description
31736 \begin_inset space ~
31739 Document LyX or LaTeX-documents.
31742 \begin_layout Section
31744 \begin_inset Index idx
31747 \begin_layout Plain Layout
31748 External Document Parts ! External Material
31756 \begin_layout Standard
31757 The external material feature allows you to insert files in to your document
31758 without converting them to a format that can be read by the document output
31760 LyX takes care of the necessary conversions.
31761 This is similar to images that can be inserted in various image formats
31763 When you have enabled Instant Preview in LyX's preferences under
31766 \begin_inset space ~
31770 \begin_inset space ~
31773 feel\SpecialChar \menuseparator
31776 , the external material types Dia and Xfig are directly shown in LyX.
31779 \begin_layout Standard
31780 External material can be inserted via the
31784 dialog that is accessible with the menu
31786 Insert\SpecialChar \menuseparator
31787 File\SpecialChar \menuseparator
31789 \begin_inset space ~
31795 Currently the following file types (
31802 \begin_layout Description
31803 ChessDiagram This template supports chess position diagrams made with the
31807 \begin_inset CommandInset href
31810 target "http://en.wikipedia.org/wiki/XBoard"
31819 \begin_layout Description
31820 Date This inserts the date in the form
31825 This is a date inserted as external material:
31826 \begin_inset External
31833 \begin_inset space ~
31837 \begin_inset Note Note
31840 \begin_layout Plain Layout
31841 Remove the protected space when bug 4398 is fixed!
31847 \begin_inset Newline newline
31850 The date is not shown within LyX, only in the output.
31851 There are two other methods of inserting a date: Via menu
31853 Insert\SpecialChar \menuseparator
31856 and with the LaTeX command
31863 The different methods are compared in Table
31864 \begin_inset space ~
31868 \begin_inset CommandInset ref
31870 reference "tab:Comparison-of-the"
31877 \begin_layout Description
31878 Dia This template supports diagrams created with the program
31881 \begin_inset CommandInset href
31884 target "http://en.wikipedia.org/wiki/Dia_(software)"
31893 \begin_layout Description
31894 LilyPond This template is used for music notation typeset with the program
31895 \begin_inset Newline linebreak
31901 \begin_inset CommandInset href
31904 target "http://en.wikipedia.org/wiki/LilyPond"
31913 \begin_layout Description
31914 PDFPages With this template you can insert PDF documents to your document.
31915 To insert certain or all pages of a PDF, use the
31925 LaTeX and LyX options
31927 tab according to the template description in the dialog.
31932 option is given, only the first page of the PDF will be inserted.
31935 \begin_layout Description
31936 RasterImage This can be used for bitmap images.
31937 Nearly all popular image formats are supported.
31938 The image can be treated in the
31942 dialog like the images that are usually included via the
31946 dialog as described in section
31947 \begin_inset space ~
31951 \begin_inset CommandInset ref
31953 reference "sec:Graphics-Dialog"
31958 The difference is that only raster images are allowed; that means that
31959 PDF and EPS-images are not supported.
31962 \begin_layout Description
31963 XFig This template supports images created with the program
31966 \begin_inset CommandInset href
31969 target "http://en.wikipedia.org/wiki/Xfig"
31978 \begin_layout Standard
31979 \begin_inset Float table
31985 \begin_layout Plain Layout
31986 \begin_inset Caption
31988 \begin_layout Plain Layout
31989 \begin_inset CommandInset label
31991 name "tab:Comparison-of-the"
31995 Comparison of the date input methods.
32003 \begin_layout Plain Layout
32005 \begin_inset Tabular
32006 <lyxtabular version="3" rows="4" columns="4">
32007 <features tabularvalignment="middle">
32008 <column alignment="center" valignment="top" width="0">
32009 <column alignment="center" valignment="top" width="0">
32010 <column alignment="center" valignment="top" width="0">
32011 <column alignment="center" valignment="top" width="0">
32013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32016 \begin_layout Plain Layout
32022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32025 \begin_layout Plain Layout
32028 External Material\SpecialChar \menuseparator
32034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32037 \begin_layout Plain Layout
32040 Insert\SpecialChar \menuseparator
32046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32049 \begin_layout Plain Layout
32061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32064 \begin_layout Plain Layout
32070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32073 \begin_layout Plain Layout
32079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32082 \begin_layout Plain Layout
32088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32091 \begin_layout Plain Layout
32092 as TeX-Code inset box
32099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32102 \begin_layout Plain Layout
32108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32111 \begin_layout Plain Layout
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" rightline="true" usebox="none">
32129 \begin_layout Plain Layout
32137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32140 \begin_layout Plain Layout
32146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32149 \begin_layout Plain Layout
32155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32158 \begin_layout Plain Layout
32164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32167 \begin_layout Plain Layout
32186 \begin_layout Standard
32187 When you use the option
32199 dialog, only the path to the inserted file is shown in the output.
32200 \begin_inset Newline newline
32203 External material is displayed in LyX either as a box like this:
32204 \begin_inset Graphics
32205 filename clipart/ExternalMaterialQt4.png
32207 scaleBeforeRotation
32211 or as image, depending on the option
32217 LaTeX and LyX options
32222 \begin_layout Standard
32229 manual explains how you can define your own templates.
32232 \begin_layout Section
32234 \begin_inset CommandInset label
32236 name "sec:Child-Documents"
32241 \begin_inset Index idx
32244 \begin_layout Plain Layout
32245 External Document Parts ! Child Documents
32251 \begin_inset Index idx
32254 \begin_layout Plain Layout
32263 \begin_layout Standard
32264 Child documents are used when you have a long document consisting of several
32265 larger parts or sections.
32266 For maintenance it is often useful and sometimes even required to split
32267 the document in several files that can be revised separately.
32268 The different documents are then the so called child documents and a master
32269 document connects them to print the full document or parts of it.
32270 A child documents inherits elements of its master, for example the LaTeX
32271 preamble, the bibliography, and labels for cross-references.
32274 \begin_layout Standard
32275 To be able to work on child documents without the need to open their master,
32276 specify in the child document the master in the menu
32278 Document\SpecialChar \menuseparator
32279 Settings\SpecialChar \menuseparator
32281 \begin_inset space ~
32287 This master document will then be used in the background by LyX when you
32288 edit the child document.
32291 \begin_layout Standard
32292 Included documents are displayed in LyX as a box like this:
32293 \begin_inset Graphics
32294 filename clipart/ChildDocumentQt4.png
32296 scaleBeforeRotation
32300 To include child documents in a master document use the menu
32302 Insert\SpecialChar \menuseparator
32303 File\SpecialChar \menuseparator
32305 \begin_inset space ~
32311 A dialog pops up where you can choose between four include methods:
32314 \begin_layout Description
32315 Include You can include LyX and LaTeX-documents.
32324 dialog, the included documents will be opened in LyX in a new file tab
32325 so that you can modify them.
32326 \begin_inset Newline newline
32332 \begin_layout Standard
32333 Here is a child document inserted using
32338 \begin_inset CommandInset include
32339 LatexCommand include
32340 filename "DummyDocument1.lyx"
32347 \begin_layout Standard
32348 The section numbering includes the sections of the included files in the
32349 order they are inserted in the master document.
32350 The included example document has for example a subsection that is numbered
32351 as a subsection of this section.
32352 Labels of included documents can be referenced: Subsection
32353 \begin_inset space ~
32357 \begin_inset CommandInset ref
32359 reference "sub:External-Subsection-1"
32366 \begin_layout Standard
32367 The preamble of the child document is ignored; only the preamble of the
32368 master document is used.
32369 Branches in child documents will be ignored by the master document when
32370 the master document does not have a branch with the same name.
32371 Included documents are inserted starting on a new page and ending with
32375 \begin_layout Standard
32376 If you are only working on a certain chapter of a large document and want
32377 to save compiling time, you can put each included file into a branch.
32381 \begin_layout Plain Layout
32382 Branches are described in section
32395 By enabling/disabling branches you can decide what included files will
32396 appear in the output.
32399 \begin_layout Standard
32400 \begin_inset Note Greyedout
32403 \begin_layout Plain Layout
32408 Due to a bug in LyX the LaTeX command
32414 can currently not be used as an alternative to decide what files should
32423 \begin_layout Standard
32424 \begin_inset Note Greyedout
32427 \begin_layout Plain Layout
32432 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32433 w the document in case the child document uses another document class than
32434 the master document as this will lead to unexpected outputs.
32442 \begin_layout Description
32443 Input This method is very similar to the Include method.
32444 The differences are:
32448 \begin_layout Itemize
32449 Input files don't start with a new page and don't end with a page break.
32452 \begin_layout Itemize
32453 Input files can be previewed in LyX when
32456 \begin_inset space ~
32461 is enabled in LyX's preferences under
32464 \begin_inset space ~
32468 \begin_inset space ~
32471 feel\SpecialChar \menuseparator
32477 \begin_layout Itemize
32488 \begin_layout Standard
32489 Here is a child document inserted using
32494 \begin_inset CommandInset include
32496 filename "DummyDocument2.lyx"
32503 \begin_layout Description
32504 Verbatim With this method every text file can be included.
32505 The file is shown in the output with its source code; no command used in
32506 the text is invoked.
32507 You can use the option
32509 Mark spaces in output
32511 that displays the character
32512 \begin_inset Quotes eld
32519 \begin_layout Plain Layout
32529 \begin_inset Quotes erd
32532 for every space character in the source code.
32533 The difference from the method via the menu
32535 Insert\SpecialChar \menuseparator
32536 File\SpecialChar \menuseparator
32538 \begin_inset space ~
32543 is that the document content is not shown in LyX.
32546 \begin_layout Standard
32547 Here is a child document inserted as Verbatim:
32548 \begin_inset CommandInset include
32549 LatexCommand verbatiminput
32550 filename "DummyTextDocument.txt"
32555 \begin_inset VSpace bigskip
32558 Here is a child document inserted as Verbatim using the
32560 Mark spaces in output
32563 \begin_inset CommandInset include
32564 LatexCommand verbatiminput*
32565 filename "DummyTextDocument.txt"
32572 \begin_layout Standard
32573 \begin_inset VSpace bigskip
32579 \begin_layout Standard
32580 \begin_inset Note Greyedout
32583 \begin_layout Plain Layout
32588 As you can see in the examples above, the text of the documents included
32593 is not broken at the end of the document lines.
32601 \begin_layout Description
32602 Listings This type is described in chapter
32603 \begin_inset space ~
32607 \begin_inset CommandInset ref
32609 reference "cha:Program-Code-Listings"
32616 \begin_layout Standard
32617 \begin_inset Note Greyedout
32620 \begin_layout Plain Layout
32625 Including the same document twice in a document using different methods
32626 could cause LaTeX-problems.
32634 \begin_layout Chapter
32635 Program Code Listings
32636 \begin_inset CommandInset label
32638 name "cha:Program-Code-Listings"
32643 \begin_inset Index idx
32646 \begin_layout Plain Layout
32653 \begin_inset Index idx
32656 \begin_layout Plain Layout
32663 \begin_inset Index idx
32666 \begin_layout Plain Layout
32675 \begin_layout Standard
32676 To include and typeset program code you can use the
32680 inset that can be inserted via the menu
32682 Insert\SpecialChar \menuseparator
32691 \begin_inset Index idx
32694 \begin_layout Plain Layout
32695 LaTeX-packages ! listings
32700 provides a powerful and flexible way to insert program source code into
32704 \begin_layout Standard
32705 Right-clicking on a listings inset opens the context menu containing where
32706 you can set the listings format.
32709 \begin_layout Standard
32710 By default, a listing starts a new paragraph in the output.
32711 The placement option
32714 \begin_inset space ~
32719 prints the listing inline like this:
32720 \begin_inset listings
32721 lstparams "language={C++}"
32725 \begin_layout Plain Layout
32733 \begin_inset Newline newline
32740 creates a listings float where you can specify the placement options
32741 \begin_inset Quotes eld
32749 \begin_inset Quotes erd
32753 \begin_inset Quotes eld
32761 \begin_inset Quotes erd
32765 \begin_inset Quotes eld
32773 \begin_inset Quotes erd
32777 \begin_inset Quotes eld
32785 \begin_inset Quotes erd
32788 corresponding to the float placement options described in section
32789 \begin_inset space ~
32793 \begin_inset CommandInset ref
32795 reference "sec:Float-Placement"
32800 The placement options can be mixed and are inserted without any separation,
32802 \begin_inset space \thinspace{}
32806 \begin_inset space \space{}
32810 \begin_inset Quotes eld
32818 \begin_inset Quotes erd
32823 \begin_inset Quotes eld
32827 \begin_inset Quotes erd
32830 has sometimes no effect, but you don't need to use the
32834 option in this case as also non-float listings can have captions and be
32838 \begin_layout Standard
32839 You can add captions to listings with the menu
32841 Insert\SpecialChar \menuseparator
32845 Listings can be referenced like floats: Listing
32846 \begin_inset space ~
32850 \begin_inset CommandInset ref
32852 reference "lst:Example-Listing"
32859 \begin_layout Standard
32860 \begin_inset listings
32861 lstparams "language=Python"
32865 \begin_layout Plain Layout
32867 \begin_inset Caption
32869 \begin_layout Plain Layout
32870 \begin_inset CommandInset label
32872 name "lst:Example-Listing"
32876 Example Listing float
32881 # Example listing float
32884 \begin_layout Plain Layout
32889 \begin_layout Plain Layout
32891 'this is a python function'
32894 \begin_layout Plain Layout
32904 \begin_layout Standard
32905 When you have set a programming language in the listings dialog, the keywords
32906 of this language will be recognized and specially typeset in the output.
32907 In the example listings the Python keyword
32908 \begin_inset Quotes eld
32912 \begin_inset Quotes erd
32915 is recognized and printed bold in the output.
32918 \begin_layout Standard
32919 \begin_inset Note Greyedout
32922 \begin_layout Plain Layout
32927 If you don't get bold keywords when using typewriter fonts, your
32931 font probably doesn't provide a bold shape.
32932 In this case select a different one in the menu
32934 Document\SpecialChar \menuseparator
32935 Settings\SpecialChar \menuseparator
32947 provide bold shapes.)
32955 \begin_layout Standard
32959 \begin_inset space ~
32964 of the listings dialog you can specify the line numbering style.
32965 You can insert a number to specify which lines are numbered in the field
32972 \begin_inset space \thinspace{}
32976 \begin_inset space \space{}
32980 \begin_inset Quotes eld
32984 \begin_inset Quotes erd
32987 , only every 3rd line will be numbered.
32990 \begin_layout Standard
32991 You can furthermore specify a range of lines; only these will then appear
32995 Extended character table
32997 should be used when you use national characters like the German umlauts
32999 \begin_inset Newline newline
33002 Here is an example listing with left line numbering, step
33003 \begin_inset Quotes eld
33007 \begin_inset Quotes erd
33011 \begin_inset Quotes eld
33015 \begin_inset Quotes erd
33019 \begin_inset Quotes eld
33022 Extended character table
33023 \begin_inset Quotes erd
33027 \begin_inset Quotes eld
33031 \begin_inset space ~
33035 \begin_inset space ~
33039 \begin_inset Quotes erd
33043 \begin_inset space \thinspace{}
33047 \begin_inset space \thinspace{}
33053 \begin_layout Standard
33054 \begin_inset listings
33055 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33059 \begin_layout Plain Layout
33064 \begin_layout Plain Layout
33066 'this is a python function'
33069 \begin_layout Plain Layout
33074 \begin_layout Plain Layout
33079 \begin_layout Plain Layout
33081 'This is a German word: Tschüß'
33084 \begin_layout Plain Layout
33089 \begin_layout Plain Layout
33094 \begin_layout Plain Layout
33096 'this is a python function'
33099 \begin_layout Plain Layout
33109 \begin_layout Standard
33110 When you have tabulators in your listing, you can specify the number of
33111 characters that are spanned by a tabulator in the field
33114 \begin_inset space ~
33122 \begin_layout Standard
33123 \begin_inset Note Greyedout
33126 \begin_layout Plain Layout
33131 Due to a bug in the
33135 package the line numbering is shifted by a line by every previous listing.
33136 That's the reason why the lines 2 and 5 are numbered in the above listing
33137 and not the lines 3 and 6.
33145 \begin_layout Standard
33146 \begin_inset VSpace bigskip
33152 \begin_layout Standard
33153 It is also possible to print lines from a file as listing.
33154 To do this, use the menu
33156 Insert\SpecialChar \menuseparator
33157 File\SpecialChar \menuseparator
33160 and choose the type
33168 \begin_layout Plain Layout
33169 The other child document types are described in section
33170 \begin_inset space ~
33174 \begin_inset CommandInset ref
33176 reference "sec:Child-Documents"
33185 In the child document dialog you can specify the listing parameters in
33187 To show a list of all available parameters, type in a question mark
33188 \begin_inset Quotes eld
33192 \begin_inset Quotes erd
33198 \begin_layout Standard
33199 To reference child document listings, write a label text into the corresponding
33200 field of the child document dialog.
33201 The label can then be referenced using the menu
33203 Insert\SpecialChar \menuseparator
33209 \begin_layout Standard
33211 \begin_inset space ~
33215 \begin_inset CommandInset ref
33217 reference "lst:file-listing"
33221 is an example for a listing of a file; there the lines 10
33222 \begin_inset space \thinspace{}
33226 \begin_inset space \thinspace{}
33229 15 of this LyX file are listed.
33232 \begin_layout Standard
33233 \begin_inset CommandInset include
33234 LatexCommand lstinputlisting
33235 filename "EmbeddedObjects.lyx"
33236 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33243 \begin_layout Standard
33244 \begin_inset VSpace bigskip
33250 \begin_layout Standard
33251 Global listings settings can be set in the
33253 Document\SpecialChar \menuseparator
33254 Settings\SpecialChar \menuseparator
33258 To get there a list of available options, type in a question mark
33259 \begin_inset Quotes eld
33263 \begin_inset Quotes erd
33269 \begin_inset space ~
33277 \begin_layout Standard
33278 For more information about the
33282 package, we refer to its documentation
33283 \begin_inset CommandInset citation
33292 \begin_layout Standard
33293 \begin_inset Newpage newpage
33299 \begin_layout Chapter
33301 Units available in LyX
33302 \begin_inset Index idx
33305 \begin_layout Plain Layout
33312 \begin_inset CommandInset label
33314 name "cha:Units-available-in"
33321 \begin_layout Standard
33322 To understand the units described in this documentation, Table
33323 \begin_inset space ~
33327 \begin_inset CommandInset ref
33329 reference "tab:Units"
33333 explains all units available in LyX.
33336 \begin_layout Standard
33337 \begin_inset Float table
33343 \begin_layout Plain Layout
33344 \begin_inset Caption
33346 \begin_layout Plain Layout
33347 \begin_inset CommandInset label
33361 \begin_layout Plain Layout
33362 \begin_inset VSpace medskip
33368 \begin_layout Plain Layout
33370 \begin_inset Tabular
33371 <lyxtabular version="3" rows="20" columns="2">
33372 <features tabularvalignment="middle">
33373 <column alignment="center" valignment="top" width="0">
33374 <column alignment="center" valignment="top" width="0">
33376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33379 \begin_layout Plain Layout
33385 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33388 \begin_layout Plain Layout
33396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33399 \begin_layout Plain Layout
33405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33408 \begin_layout Plain Layout
33416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33419 \begin_layout Plain Layout
33425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33428 \begin_layout Plain Layout
33436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33439 \begin_layout Plain Layout
33445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33448 \begin_layout Plain Layout
33456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33459 \begin_layout Plain Layout
33465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33468 \begin_layout Plain Layout
33470 \begin_inset space \thinspace{}
33474 \begin_inset space \thinspace{}
33484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33487 \begin_layout Plain Layout
33493 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33496 \begin_layout Plain Layout
33498 \begin_inset space \thinspace{}
33502 \begin_inset space \thinspace{}
33512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33515 \begin_layout Plain Layout
33521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33524 \begin_layout Plain Layout
33525 scaled point (65536
33526 \begin_inset space \thinspace{}
33530 \begin_inset space \thinspace{}
33540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33543 \begin_layout Plain Layout
33549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33552 \begin_layout Plain Layout
33554 \begin_inset space \thinspace{}
33558 \begin_inset space \thinspace{}
33568 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33571 \begin_layout Plain Layout
33577 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33580 \begin_layout Plain Layout
33582 \begin_inset space \thinspace{}
33586 \begin_inset Formula $\approx$
33590 \begin_inset space \thinspace{}
33600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33603 \begin_layout Plain Layout
33609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33612 \begin_layout Plain Layout
33614 \begin_inset space \thinspace{}
33618 \begin_inset space \thinspace{}
33628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33631 \begin_layout Plain Layout
33637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33640 \begin_layout Plain Layout
33641 % of original image width
33648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33651 \begin_layout Plain Layout
33657 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33660 \begin_layout Plain Layout
33668 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33671 \begin_layout Plain Layout
33677 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33680 \begin_layout Plain Layout
33688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33691 \begin_layout Plain Layout
33697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33700 \begin_layout Plain Layout
33708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33711 \begin_layout Plain Layout
33717 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33720 \begin_layout Plain Layout
33728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33731 \begin_layout Plain Layout
33737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33740 \begin_layout Plain Layout
33748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33751 \begin_layout Plain Layout
33757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33760 \begin_layout Plain Layout
33768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33771 \begin_layout Plain Layout
33777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33780 \begin_layout Plain Layout
33792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33795 \begin_layout Plain Layout
33801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33804 \begin_layout Plain Layout
33816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33819 \begin_layout Plain Layout
33825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33828 \begin_layout Plain Layout
33830 \begin_inset space \thinspace{}
33834 \begin_inset space \thinspace{}
33855 \begin_layout Chapter
33856 Output File Formats with Graphics
33857 \begin_inset CommandInset label
33859 name "cha:Output-File-Formats"
33866 \begin_layout Section
33868 \begin_inset Index idx
33871 \begin_layout Plain Layout
33878 \begin_inset Index idx
33881 \begin_layout Plain Layout
33886 \begin_layout Plain Layout
33897 \begin_layout Plain Layout
33912 \begin_layout Standard
33913 This file type has the extension
33914 \begin_inset Quotes eld
33922 \begin_inset Quotes erd
33927 \begin_inset Quotes eld
33931 \begin_inset Quotes erd
33934 (DVI), because it is completely portable; you can move them from one machine
33935 to another without needing to do any sort of conversion.
33936 At the time when this file-format was developed, this was no matter of
33938 DVIs are used for quick previews and as pre-stage for other output formats,
33942 \begin_layout Standard
33943 \begin_inset Note Greyedout
33946 \begin_layout Plain Layout
33951 DVI-files do not contain images; they will only be a linked.
33956 So don't forget this, if you move your
33960 file to another computer.
33961 This property can also slow down your computer when you view the DVI, because
33962 the DVI-viewer has to convert the image in the background to make it visible
33963 when you scroll in the DVI.
33964 So it is recommended that you use PDF for files with many images.
33967 \begin_layout Standard
33968 You can export your document to DVI by using the menu
33970 File\SpecialChar \menuseparator
33971 Export\SpecialChar \menuseparator
33975 You can view your document as DVI via the
33979 menu or by using the toolbar button
33980 \begin_inset Graphics
33981 filename ../images/buffer-view_dvi.png
33983 scaleBeforeRotation
33990 \begin_layout Section
33992 \begin_inset CommandInset label
33994 name "sec:PostScript"
33999 \begin_inset Index idx
34002 \begin_layout Plain Layout
34003 File Formats ! PostScript
34009 \begin_inset Index idx
34012 \begin_layout Plain Layout
34017 \begin_layout Plain Layout
34028 \begin_layout Plain Layout
34043 \begin_layout Standard
34044 This file type has the extension
34045 \begin_inset Quotes eld
34053 \begin_inset Quotes erd
34057 PostScript was developed by the company
34061 as a printer language.
34062 The file therefore contains commands that the printer uses to print the
34064 PostScript can be seen as a
34065 \begin_inset Quotes eld
34068 programming language
34069 \begin_inset Quotes erd
34072 ; you can calculate with it and draw diagrams and images
34076 \begin_layout Plain Layout
34077 If you are interested to learn more about this, have a look at the LaTeX-package
34083 \begin_inset CommandInset citation
34095 Due to this ability, the files are often bigger than PDFs.
34098 \begin_layout Standard
34099 PostScript can only contain images in the format
34100 \begin_inset Quotes eld
34103 Encapsulated PostScript
34104 \begin_inset Quotes erd
34107 (EPS, file extension
34108 \begin_inset Quotes eld
34116 \begin_inset Quotes erd
34120 As LyX allows you to use any known image format in your document, it has
34121 to convert images in the background to EPS.
34123 \begin_inset space ~
34127 \begin_inset space ~
34130 images in your document, LyX has to do 50
34131 \begin_inset space ~
34134 conversions whenever you view or export your document.
34135 This will slow down your work flow with LyX drastically.
34136 So if you plan to use PostScript, you can insert your images directly as
34137 EPS to avoid this problem.
34140 \begin_layout Standard
34141 You can export your document to PostScript using the menu
34143 File\SpecialChar \menuseparator
34144 Export\SpecialChar \menuseparator
34148 You can view your document as PostScript via the
34152 menu or by using the toolbar button
34153 \begin_inset Graphics
34154 filename ../images/buffer-view_ps.png
34156 scaleBeforeRotation
34163 \begin_layout Section
34165 \begin_inset Index idx
34168 \begin_layout Plain Layout
34175 \begin_inset Index idx
34178 \begin_layout Plain Layout
34187 \begin_layout Standard
34188 This file type has the extension
34189 \begin_inset Quotes eld
34197 \begin_inset Quotes erd
34202 \begin_inset Quotes eld
34205 Portable Document Format
34206 \begin_inset Quotes erd
34209 (PDF) was developed by
34213 as a derivative of PostScript.
34214 It is more compressed and it uses fewer commands than PostScript.
34216 \begin_inset Quotes eld
34220 \begin_inset Quotes erd
34223 implies, it can be processed at any computer system and the printed output
34224 looks exactly the same.
34227 \begin_layout Standard
34228 PDF can contain images in its own PDF format, in the format
34229 \begin_inset Quotes eld
34232 Joint Photographic Experts Group
34233 \begin_inset Quotes erd
34236 (JPG, file extension
34237 \begin_inset Quotes eld
34245 \begin_inset Quotes erd
34249 \begin_inset Quotes eld
34257 \begin_inset Quotes erd
34260 ), and in the format
34261 \begin_inset Quotes eld
34264 Portable Network Graphics
34265 \begin_inset Quotes erd
34268 (PNG, file extension
34269 \begin_inset Quotes eld
34277 \begin_inset Quotes erd
34281 Nevertheless you can use any other image format, because LyX converts them
34282 in the background to one of these formats.
34283 But as described in the section about PostScript, the image conversion
34284 will slow down your work flow.
34285 So it is recommended that you use images in one of the three mentioned
34289 \begin_layout Standard
34290 You can export your document to PDF via the menu
34292 File\SpecialChar \menuseparator
34295 in three different ways:
34298 \begin_layout Description
34300 \begin_inset space ~
34303 (ps2pdf) This uses the program
34307 that creates a PDF from a PostScript-version of your file.
34308 The PostScript-version is produced by the program
34312 which uses a DVI-version as intermediate step.
34313 So this export variant consists of three conversions.
34316 \begin_layout Description
34318 \begin_inset space ~
34321 (dvipdfm) This uses the program
34325 that converts your file in the background to DVI and in a second step to
34329 \begin_layout Description
34331 \begin_inset space ~
34334 (pdflatex) This uses the program
34338 that converts your file directly to PDF.
34341 \begin_layout Standard
34342 It is recommended that you use
34345 \begin_inset space ~
34354 supports all features of actual PDF-versions, is quick and works stable.
34359 is not under development and therefore a bit outdated.
34362 \begin_layout Standard
34363 You can view your document as PDF via the
34367 menu or by using the toolbar button
34368 \begin_inset Graphics
34369 filename ../images/buffer-view_pdf2.png
34371 scaleBeforeRotation
34382 \begin_inset space ~
34390 \begin_layout Chapter
34391 Explanation of Equation
34392 \begin_inset space ~
34396 \begin_inset CommandInset ref
34403 \begin_inset CommandInset label
34405 name "cha:Explanation-of-Equation"
34412 \begin_layout Standard
34413 We can calculate the total width of
34418 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34424 \begin_layout Standard
34425 \begin_inset Formula \begin{equation}
34426 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}
34431 \begin_inset Formula $W_{g\, n}$
34434 is the given width of all cells,
34440 is the LaTeX-length between the cell text and the cell border (its default
34442 \begin_inset space \thinspace{}
34452 is the thickness of the cell border line, the default is 0.4
34453 \begin_inset space \thinspace{}
34459 \begin_layout Standard
34461 \begin_inset space ~
34465 \begin_inset CommandInset ref
34467 reference "eq:Wtot_n"
34471 , the total width of a multicolumn
34472 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34478 \begin_layout Standard
34479 \begin_inset Formula \begin{equation}
34480 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34487 \begin_layout Standard
34488 By setting equation
34489 \begin_inset space ~
34493 \begin_inset CommandInset ref
34495 reference "eq:Wtot_n"
34500 \begin_inset CommandInset ref
34502 reference "eq:Wtot_mult"
34506 equal we can calculate the needed given width
34507 \begin_inset Formula $W_{g\, n}$
34514 columns are spanned, so that each column has a total width of
34515 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34521 \begin_layout Standard
34522 \begin_inset Formula \begin{equation}
34523 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34530 \begin_layout Bibliography
34531 \labelwidthstring Bibliography
34532 \begin_inset CommandInset bibitem
34533 LatexCommand bibitem
34534 key "latexcompanion"
34538 Frank Mittelbach and Michel Goossens:
34540 The LaTeX Companion Second Edition.
34543 Addison-Wesley, 2004
34546 \begin_layout Bibliography
34547 \labelwidthstring Bibliography
34548 \begin_inset CommandInset bibitem
34549 LatexCommand bibitem
34554 Helmut Kopka and Patrick W.
34557 A Guide to LaTeX Fourth Edition.
34560 Addison-Wesley, 2003
34563 \begin_layout Bibliography
34564 \labelwidthstring Bibliography
34565 \begin_inset CommandInset bibitem
34566 LatexCommand bibitem
34573 LaTeX: A Document Preparation System.
34576 Addison-Wesley, second edition, 1994
34579 \begin_layout Bibliography
34580 \labelwidthstring Bibliography
34581 \begin_inset CommandInset bibitem
34582 LatexCommand bibitem
34587 Documentation of the LaTeX-package
34590 \begin_inset CommandInset href
34593 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34600 \begin_inset Index idx
34603 \begin_layout Plain Layout
34604 LaTeX-packages ! booktabs
34612 \begin_layout Bibliography
34613 \labelwidthstring Bibliography
34614 \begin_inset CommandInset bibitem
34615 LatexCommand bibitem
34620 Documentation of the LaTeX-package
34623 \begin_inset CommandInset href
34626 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34633 \begin_inset Index idx
34636 \begin_layout Plain Layout
34637 LaTeX-packages ! caption
34645 \begin_layout Bibliography
34646 \labelwidthstring Bibliography
34647 \begin_inset CommandInset bibitem
34648 LatexCommand bibitem
34653 Documentation of the LaTeX-package
34656 \begin_inset CommandInset href
34659 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34666 \begin_inset Index idx
34669 \begin_layout Plain Layout
34670 LaTeX-packages ! endfloat
34678 \begin_layout Bibliography
34679 \labelwidthstring Bibliography
34680 \begin_inset CommandInset bibitem
34681 LatexCommand bibitem
34686 Documentation of the LaTeX-package
34689 \begin_inset CommandInset href
34692 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34699 \begin_inset Index idx
34702 \begin_layout Plain Layout
34703 LaTeX-packages ! wrapfig
34707 \begin_layout Plain Layout
34724 \begin_layout Bibliography
34725 \labelwidthstring Bibliography
34726 \begin_inset CommandInset bibitem
34727 LatexCommand bibitem
34732 Documentation of the LaTeX-package
34735 \begin_inset CommandInset href
34738 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34745 \begin_inset Index idx
34748 \begin_layout Plain Layout
34749 LaTeX-packages ! footmisc
34757 \begin_layout Bibliography
34758 \labelwidthstring Bibliography
34759 \begin_inset CommandInset bibitem
34760 LatexCommand bibitem
34765 Documentation of the LaTeX-package
34768 \begin_inset CommandInset href
34771 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34778 \begin_inset Index idx
34781 \begin_layout Plain Layout
34782 LaTeX-packages ! hyperref
34790 \begin_layout Bibliography
34791 \labelwidthstring Bibliography
34792 \begin_inset CommandInset bibitem
34793 LatexCommand bibitem
34798 Documentation of the LaTeX-package
34801 \begin_inset CommandInset href
34804 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34811 \begin_inset Index idx
34814 \begin_layout Plain Layout
34815 LaTeX-packages ! hyperref
34823 \begin_layout Bibliography
34824 \labelwidthstring Bibliography
34825 \begin_inset CommandInset bibitem
34826 LatexCommand bibitem
34831 Documentation of the LaTeX-package
34834 \begin_inset CommandInset href
34837 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34844 \begin_inset Index idx
34847 \begin_layout Plain Layout
34848 LaTeX-packages ! KOMA-Script
34856 \begin_layout Bibliography
34857 \labelwidthstring Bibliography
34858 \begin_inset CommandInset bibitem
34859 LatexCommand bibitem
34864 Documentation of the LaTeX-package
34867 \begin_inset CommandInset href
34870 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34877 \begin_inset Index idx
34880 \begin_layout Plain Layout
34881 LaTeX-packages ! listings
34889 \begin_layout Bibliography
34890 \labelwidthstring Bibliography
34891 \begin_inset CommandInset bibitem
34892 LatexCommand bibitem
34897 Documentation of the LaTeX-package
34900 \begin_inset CommandInset href
34903 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34910 \begin_inset Index idx
34913 \begin_layout Plain Layout
34914 LaTeX-packages ! marginnote
34922 \begin_layout Bibliography
34923 \labelwidthstring Bibliography
34924 \begin_inset CommandInset bibitem
34925 LatexCommand bibitem
34930 Web page of the LaTeX-package
34933 \begin_inset CommandInset href
34936 target "http://tug.org/PSTricks/"
34943 \begin_inset Index idx
34946 \begin_layout Plain Layout
34947 LaTeX-packages ! PSTricks
34955 \begin_layout Bibliography
34956 \labelwidthstring Bibliography
34957 \begin_inset CommandInset bibitem
34958 LatexCommand bibitem
34963 Documentation of the LaTeX-package
34966 \begin_inset CommandInset href
34969 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34976 \begin_inset Index idx
34979 \begin_layout Plain Layout
34980 LaTeX-packages ! sidecap
34988 \begin_layout Bibliography
34989 \labelwidthstring Bibliography
34990 \begin_inset CommandInset bibitem
34991 LatexCommand bibitem
34996 Documentation of the LaTeX-package
34999 \begin_inset CommandInset href
35002 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35009 \begin_inset Index idx
35012 \begin_layout Plain Layout
35013 LaTeX-packages ! prettyref
35021 \begin_layout Bibliography
35022 \labelwidthstring Bibliography
35023 \begin_inset CommandInset bibitem
35024 LatexCommand bibitem
35030 \begin_inset CommandInset href
35033 target "http://wiki.lyx.org/LyX/NewInLyX16"
35037 about new features in
35044 \begin_layout Standard
35045 \begin_inset CommandInset index_print
35046 LatexCommand printindex
35054 \begin_layout Standard
35055 \begin_inset FloatList figure
35062 \begin_layout Standard
35063 \begin_inset FloatList table
35070 \begin_layout Standard
35071 \begin_inset FloatList algorithm