1 #LyX 1.6.5svn 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}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
486 in the appearing context menu.
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about the caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because as LaTeX will reposition the floats in the final document, it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , every output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixeled in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In this cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: Move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as their widest cell content
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotates the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as decribed in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table dialog is open, you can move the cursor with the arrow keys
2178 from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables to the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 That means if you are using the document classes
2803 there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appear on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 In contrary to the alignment of the table columns and row, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 Where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use for a table row the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for every longtable, also if you didn't set
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6078 2.4 follows on Table
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code behind every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example for a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are pieces of the tables that are at once in LaTeX's memory.
9342 The default value is historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such situation, add the command
9380 as TeX-Code before your longtable.
9383 \begin_layout Subsection
9388 \begin_layout Plain Layout
9389 Longtables ! Forced Page Breaks
9397 \begin_layout Standard
9398 By default tables are only broken between rows.
9399 If you have a cell with multiples lines and want to have a page break within
9400 the cell, insert the new line command
9401 \begin_inset Quotes eld
9413 \begin_inset Quotes erd
9416 as TeX-Code at this point of the cell where it can be broken.
9425 command you have to insert in TeX-Code so many
9426 \begin_inset Quotes eld
9434 \begin_inset Quotes erd
9437 characters like the number of the following table columns.
9442 is the character to separate table cells.
9443 Write in TeX-Code after each
9447 the content of the corresponding following cell and delete the content
9449 \begin_inset Newline newline
9460 command, insert so many
9464 characters like the number of table columns before the current column.
9466 \begin_inset space ~
9470 \begin_inset CommandInset ref
9472 reference "tab:ForcedPagebreak"
9476 the cell that should be broken is in the second column followed by another
9478 Therefore the following command was inserted in the cell as TeX-Code behind
9480 \begin_inset Quotes eld
9488 \begin_inset Quotes erd
9494 \begin_layout Standard
9504 \begin_inset Newline newline
9510 \begin_layout Standard
9512 \begin_inset Quotes eld
9516 \begin_inset Quotes erd
9519 in the third columns of the row was deleted.
9526 is only needed when a page break should definitively occur at this position,
9527 otherwise it is only a possibility to break.
9528 If your footer row of the longtable has for a certain reason no upper line
9529 but you would have a horizontal line where the cell is broken, use this
9533 \begin_layout Standard
9541 \begin_inset Newline newline
9549 \begin_layout Standard
9550 When the cell to be broken is in the last column, the command
9553 \begin_layout Standard
9563 \begin_layout Standard
9564 must be inserted as TeX-Code at the beginning of the cell.
9565 This assures that the part of the cell that will be displayed on the new
9566 page appears with the full width.
9569 \begin_layout Standard
9571 \begin_inset Tabular
9572 <lyxtabular version="3" rows="38" columns="3">
9573 <features islongtable="true" lastFootEmpty="true">
9574 <column alignment="left" valignment="top" width="0cm">
9575 <column alignment="left" valignment="top" width="3cm">
9576 <column alignment="center" valignment="top" width="0pt">
9577 <row caption="true">
9578 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9581 \begin_layout Plain Layout
9582 \begin_inset Caption
9584 \begin_layout Plain Layout
9585 Table with forced page break in table cell
9586 \begin_inset CommandInset label
9588 name "tab:ForcedPagebreak"
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9615 \begin_layout Plain Layout
9621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9624 \begin_layout Plain Layout
9631 <row endfirsthead="true">
9632 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9635 \begin_layout Plain Layout
9638 Example Phone List (ignore the names)
9643 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9646 \begin_layout Plain Layout
9652 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9655 \begin_layout Plain Layout
9662 <row endfirsthead="true">
9663 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9666 \begin_layout Plain Layout
9674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9677 \begin_layout Plain Layout
9683 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9686 \begin_layout Plain Layout
9695 <row endhead="true">
9696 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9699 \begin_layout Plain Layout
9703 \begin_layout Plain Layout
9707 caption*{Continued Example Phone List}
9721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9724 \begin_layout Plain Layout
9730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9733 \begin_layout Plain Layout
9740 <row endhead="true">
9741 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9744 \begin_layout Plain Layout
9752 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9755 \begin_layout Plain Layout
9761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9764 \begin_layout Plain Layout
9771 <row endhead="true">
9772 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9775 \begin_layout Plain Layout
9783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9786 \begin_layout Plain Layout
9792 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9795 \begin_layout Plain Layout
9804 <row endfoot="true">
9805 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9808 \begin_layout Plain Layout
9809 continued on next page
9814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9817 \begin_layout Plain Layout
9823 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9826 \begin_layout Plain Layout
9834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9837 \begin_layout Plain Layout
9845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9848 \begin_layout Plain Layout
9854 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9857 \begin_layout Plain Layout
9865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9868 \begin_layout Plain Layout
9876 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9879 \begin_layout Plain Layout
9885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9888 \begin_layout Plain Layout
9896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9899 \begin_layout Plain Layout
9907 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9910 \begin_layout Plain Layout
9916 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9919 \begin_layout Plain Layout
9927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9930 \begin_layout Plain Layout
9938 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9941 \begin_layout Plain Layout
9947 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9950 \begin_layout Plain Layout
9958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9961 \begin_layout Plain Layout
9969 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9972 \begin_layout Plain Layout
9978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9981 \begin_layout Plain Layout
9989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9992 \begin_layout Plain Layout
10000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10003 \begin_layout Plain Layout
10009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10012 \begin_layout Plain Layout
10020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10023 \begin_layout Plain Layout
10031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10034 \begin_layout Plain Layout
10040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10054 \begin_layout Plain Layout
10062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10065 \begin_layout Plain Layout
10071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10074 \begin_layout Plain Layout
10082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10085 \begin_layout Plain Layout
10093 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10096 \begin_layout Plain Layout
10102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10116 \begin_layout Plain Layout
10124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10127 \begin_layout Plain Layout
10133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10136 \begin_layout Plain Layout
10144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10147 \begin_layout Plain Layout
10155 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10158 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10178 \begin_layout Plain Layout
10186 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10189 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10209 \begin_layout Plain Layout
10217 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10220 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10240 \begin_layout Plain Layout
10248 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10251 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10271 \begin_layout Plain Layout
10279 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10282 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10302 \begin_layout Plain Layout
10310 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10313 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10333 \begin_layout Plain Layout
10341 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10344 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10364 \begin_layout Plain Layout
10372 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10375 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10395 \begin_layout Plain Layout
10403 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10406 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10426 \begin_layout Plain Layout
10434 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10437 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10457 \begin_layout Plain Layout
10465 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10468 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10488 \begin_layout Plain Layout
10496 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10499 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10519 \begin_layout Plain Layout
10527 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10530 \begin_layout Plain Layout
10532 Fürst von Montecompatri, 11.
10533 Fürst von Sulmona und Vivaro, 10.
10534 Fürst von Rossano, 5.
10535 Herzog von Canemorte, 11.
10536 Herzog von Palombara, 5.
10537 Herzog von Castelchiodato,
10541 \begin_layout Plain Layout
10552 \begin_layout Plain Layout
10560 Herzog von Poggionativo, 11.
10561 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10562 Graf von Valinfreda, 11.
10563 Baron von Cropalati, 11.
10564 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10569 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10572 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10594 \begin_layout Plain Layout
10600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10603 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10625 \begin_layout Plain Layout
10631 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10634 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10656 \begin_layout Plain Layout
10662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10665 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10687 \begin_layout Plain Layout
10693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10696 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10718 \begin_layout Plain Layout
10724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10727 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10749 \begin_layout Plain Layout
10755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10758 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10780 \begin_layout Plain Layout
10786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10789 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10811 \begin_layout Plain Layout
10817 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10820 \begin_layout Plain Layout
10834 \begin_layout Section
10835 Multiple Lines Columns and Rows
10838 \begin_layout Subsection
10839 Multiple Lines in Table Cells
10840 \begin_inset CommandInset label
10842 name "sub:Multiple-Lines-in"
10850 \begin_layout Plain Layout
10851 Multiple Lines in Table Cells
10860 \begin_layout Plain Layout
10869 \begin_layout Standard
10871 \begin_inset Float table
10877 \begin_layout Plain Layout
10878 \begin_inset Caption
10880 \begin_layout Plain Layout
10881 \begin_inset CommandInset label
10883 name "tab:Table-with-multiple"
10887 Table with multiple lines in cells
10895 \begin_layout Plain Layout
10897 \begin_inset Tabular
10898 <lyxtabular version="3" rows="3" columns="3">
10900 <column alignment="center" valignment="middle" width="2.5cm">
10901 <column alignment="center" valignment="middle" width="0">
10902 <column alignment="center" valignment="middle" width="0">
10904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10907 \begin_layout Plain Layout
10909 \begin_inset Newline linebreak
10917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10920 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10949 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10958 \begin_layout Plain Layout
10966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10969 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10978 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
11006 \begin_layout Standard
11007 Adjusting a fixed width for a column, enables to enter text as a paragraph
11008 with multiple lines and hyphenations.
11011 \begin_layout Standard
11013 \begin_inset space ~
11017 \begin_inset CommandInset ref
11019 reference "tab:Table-with-multiple"
11023 , create a 3×3 table, mark the first cell and right-click on it.
11024 In the appearing table dialog we set a cell width of 2.5
11025 \begin_inset space \thinspace{}
11028 cm and choose centered for the vertical and horizontal alignment.
11029 The vertical alignment is used for all cells of the row.
11030 As our text is smaller than than 2.5
11031 \begin_inset space \thinspace{}
11034 cm, only one line will appear.
11035 To get two lines, a justified line break (shortcut
11038 arg "newline-insert linebreak"
11042 If the text is wider than the set cell width, it will automatically be
11043 broken to several lines.
11046 \begin_layout Standard
11047 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11048 by LaTeX if it is the first entry.
11049 Therefore you need to insert something, to make the word not being the
11051 So add a horizontal space of 0
11052 \begin_inset space \thinspace{}
11055 pt before the word.
11056 As the space is zero, it doesn't change the output.
11058 \begin_inset space ~
11062 \begin_inset CommandInset ref
11064 reference "tab:Table-with-and"
11071 \begin_layout Standard
11072 \begin_inset Float table
11078 \begin_layout Plain Layout
11079 \begin_inset Caption
11081 \begin_layout Plain Layout
11082 \begin_inset CommandInset label
11084 name "tab:Table-with-and"
11088 Table with and without hyphenation
11096 \begin_layout Plain Layout
11097 \begin_inset space \hfill{}
11101 \begin_inset Tabular
11102 <lyxtabular version="3" rows="3" columns="3">
11104 <column alignment="center" valignment="middle" width="2.5cm">
11105 <column alignment="center" valignment="middle" width="0">
11106 <column alignment="center" valignment="middle" width="0">
11108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11111 \begin_layout Plain Layout
11112 verylongtablecellword
11117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11120 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11149 \begin_layout Plain Layout
11155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11158 \begin_layout Plain Layout
11166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11169 \begin_layout Plain Layout
11175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11178 \begin_layout Plain Layout
11184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11187 \begin_layout Plain Layout
11199 \begin_inset space \hfill{}
11203 \begin_inset Tabular
11204 <lyxtabular version="3" rows="3" columns="3">
11206 <column alignment="center" valignment="middle" width="2.5cm">
11207 <column alignment="center" valignment="middle" width="0">
11208 <column alignment="center" valignment="middle" width="0">
11210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11213 \begin_layout Plain Layout
11214 \begin_inset space \hspace{}
11218 verylongtablecellword
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11235 \begin_layout Plain Layout
11243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11246 \begin_layout Plain Layout
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11255 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11264 \begin_layout Plain Layout
11272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11275 \begin_layout Plain Layout
11281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11284 \begin_layout Plain Layout
11290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11293 \begin_layout Plain Layout
11305 \begin_inset space \hfill{}
11316 \begin_layout Subsection
11318 \begin_inset CommandInset label
11320 name "sub:Multicolumns"
11328 \begin_layout Plain Layout
11338 \begin_layout Plain Layout
11339 Table ! Multicolumns
11347 \begin_layout Subsubsection
11351 \begin_layout Standard
11352 To span a cell over multiple columns, mark as much cells within a line that
11353 should be one spanned cell and use either the table-toolbar button
11354 \begin_inset Graphics
11355 filename ../images/tabular-feature_multicolumn.png
11357 scaleBeforeRotation
11363 Edit\SpecialChar \menuseparator
11364 Table\SpecialChar \menuseparator
11367 , or right click on the marked cells and choose multicolumn in the appearing
11368 table dialog under the tab
11375 \begin_layout Standard
11376 Multicolumns have there own cell settings.
11377 That means changing cell borders, cell alignment, and the width only affects
11379 Here is an example table with a multicolumn cell in the first row and one
11380 in the last row without the upper border:
11383 \begin_layout Standard
11385 \begin_inset Tabular
11386 <lyxtabular version="3" rows="3" columns="4">
11387 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11388 <column alignment="center" valignment="top" width="0pt">
11389 <column alignment="center" valignment="middle" width="0">
11390 <column alignment="center" valignment="top" width="0in">
11391 <column alignment="center" valignment="top" width="0pt">
11393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11396 \begin_layout Plain Layout
11402 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11405 \begin_layout Plain Layout
11411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11414 \begin_layout Plain Layout
11420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11423 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11470 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11490 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11508 \begin_layout Plain Layout
11522 \begin_layout Subsubsection
11523 Multicolumn Calculations
11524 \begin_inset CommandInset label
11526 name "sub:Multicolumn-Calculations"
11534 \begin_layout Plain Layout
11535 Multicolumns ! Calculations
11543 \begin_layout Standard
11544 LyX supports multicolumns directly, but we have to take notice of the cell
11545 width of the columns spanned by the multicolumn cell.
11548 \begin_layout Standard
11549 \begin_inset Float table
11555 \begin_layout Plain Layout
11556 \begin_inset Caption
11558 \begin_layout Plain Layout
11559 \begin_inset CommandInset label
11561 name "tab:Table-with-centered"
11565 Table with centered multicolumn text above two columns that have exactly
11566 half the width of the multicolumn cell
11567 \begin_inset OptArg
11570 \begin_layout Plain Layout
11571 Perfect multicolumn table
11584 \begin_layout Plain Layout
11586 \begin_inset Tabular
11587 <lyxtabular version="3" rows="3" columns="3">
11589 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11590 <column alignment="center" valignment="middle" width="0">
11591 <column alignment="center" valignment="top" width="0">
11593 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11596 \begin_layout Plain Layout
11597 multiple lines multicolumn
11602 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Plain Layout
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11614 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11625 \begin_layout Plain Layout
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11634 \begin_layout Plain Layout
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11643 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11654 \begin_layout Plain Layout
11660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11663 \begin_layout Plain Layout
11669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11672 \begin_layout Plain Layout
11691 \begin_layout Standard
11692 To create for example Table
11693 \begin_inset space ~
11697 \begin_inset CommandInset ref
11699 reference "tab:Table-with-centered"
11703 , mark the first two cells in the first row of a 3×3 table and right-click
11705 Now choose for this cell
11714 \begin_inset space \thinspace{}
11717 cm in the table dialog.
11718 The spanned columns should have exactly half the width of the multicolumn
11719 cell, so that you would adjust a width of 1.25
11720 \begin_inset space \thinspace{}
11723 cm for the first column.
11724 The second column has then automatically a width of 1.25
11725 \begin_inset space \thinspace{}
11728 cm (multicolumn width - width of first column).
11729 This was done for Table
11730 \begin_inset space ~
11734 \begin_inset CommandInset ref
11736 reference "tab:Table-without-half"
11743 \begin_layout Standard
11744 \begin_inset Float table
11749 \begin_layout Plain Layout
11750 \begin_inset Caption
11752 \begin_layout Plain Layout
11753 \begin_inset CommandInset label
11755 name "tab:Table-without-half"
11759 Table where the spanned table columns have not exactly half the width of
11760 the multicolumn cell
11761 \begin_inset OptArg
11764 \begin_layout Plain Layout
11765 Imperfect multicolumn table
11778 \begin_layout Plain Layout
11780 \begin_inset Tabular
11781 <lyxtabular version="3" rows="3" columns="3">
11783 <column alignment="center" valignment="top" width="1.25cm">
11784 <column alignment="center" valignment="top" width="0">
11785 <column alignment="center" valignment="top" width="0">
11787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11790 \begin_layout Plain Layout
11791 multiple lines multicolumn
11796 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11799 \begin_layout Plain Layout
11805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11808 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11828 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11837 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11857 \begin_layout Plain Layout
11863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11866 \begin_layout Plain Layout
11885 \begin_layout Standard
11886 You can see that the first column has not the half width of the multicolumn
11887 cell, it is a bit bigger.
11888 The reason is that the given width of a cell
11889 \begin_inset Formula $W_{g}$
11892 is not its total width
11893 \begin_inset Formula $W_{\mathrm{tot}}$
11896 because a cell is always a bit larger than its given width.
11898 \begin_inset space ~
11902 \begin_inset CommandInset ref
11904 reference "cha:Explanation-of-Equation"
11908 explains it in detail.
11911 \begin_layout Standard
11912 The needed given width
11913 \begin_inset Formula $W_{g\, n}$
11920 columns are spanned can be calculated, so that each column has a total
11922 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11926 \begin_inset Formula \begin{equation}
11927 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11934 \begin_layout Standard
11935 In our case we have
11936 \begin_inset Formula $n=2$
11940 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11943 cm and the default values for the lengths, so that equation
11944 \begin_inset CommandInset ref
11951 \begin_inset Formula \begin{equation}
11952 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11959 \begin_layout Standard
11960 To enable calculations in LaTeX, the LaTeX-package
11964 must be loaded with the document preamble line
11968 \begin_layout Plain Layout
11969 LaTeX-packages ! calc
11977 \begin_layout Standard
11985 \begin_layout Standard
11986 LyX does not allow to calculate lengths in the width-field of the table
11988 Therefore you have to format the column by inserting a LaTeX-argument in
11990 Here is an overview about the arguments:
11993 \begin_layout Itemize
11998 creates cell with a fixed width, its text is vertically top-aligned
12001 \begin_layout Itemize
12006 creates cell with a fixed width, its text is vertically centered
12009 \begin_layout Itemize
12014 creates cell with a fixed width, its text is vertically bottom-aligned
12017 \begin_layout Standard
12018 By entering a LaTeX-argument, all cell settings set in the table dialog
12022 \begin_layout Standard
12023 \begin_inset Note Greyedout
12026 \begin_layout Plain Layout
12031 Due to a bug, LyX shows the overwritten settings anyway.
12039 \begin_layout Standard
12040 As the text should be horizontally centered, the command
12047 You can now enter the following LaTeX-argument for the first spanned column:
12050 \begin_layout Standard
12055 centering}m{1.25cm-6.2pt}
12058 \begin_layout Standard
12063 means, that the commands inside the braces are applied before the cell
12067 \begin_layout Standard
12068 Although we have chosen centered alignment for the text of the multicolumn
12069 cell, it is still left aligned.
12070 This is because LyX only applies the alignment to single columns.
12071 So we have to use for the multicolumn the LaTeX-argument
12074 \begin_layout Standard
12082 \begin_layout Subsection
12087 \begin_layout Plain Layout
12097 \begin_layout Plain Layout
12106 \begin_layout Standard
12107 In contrary to multicolumns multirows are not yet supported by LyX so a
12108 bit of TeX-Code needs to be used.
12109 To use multirows load the LaTeX-package
12117 \begin_layout Plain Layout
12118 LaTeX-packages ! multirow
12123 in your document preamble with the command
12126 \begin_layout Standard
12131 usepackage{multirow}
12134 \begin_layout Standard
12135 Multirows are created with the command
12138 \begin_layout Standard
12143 multirow{number of rows}{cell width}{cell entry}
12146 \begin_layout Standard
12147 To create the following table:
12150 \begin_layout Standard
12155 \begin_layout Plain Layout
12169 \begin_inset Tabular
12170 <lyxtabular version="3" rows="3" columns="3">
12172 <column alignment="center" valignment="top" width="0">
12173 <column alignment="center" valignment="top" width="0">
12174 <column alignment="center" valignment="top" width="0">
12176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12188 \begin_layout Plain Layout
12194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12197 \begin_layout Plain Layout
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12208 \begin_layout Plain Layout
12212 \begin_layout Plain Layout
12216 multirow{2}{2.5cm}{
12225 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12240 \begin_layout Plain Layout
12246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12249 \begin_layout Plain Layout
12257 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12269 \begin_layout Plain Layout
12275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12278 \begin_layout Plain Layout
12293 \begin_layout Plain Layout
12309 \begin_layout Standard
12310 create a 3×3 table.
12311 To get rid of the line above the last cell in the first column, the cell
12312 is marked as multicolumn and the upper border is unset.
12313 The multirow is now created in the second row of the first column by inserting
12317 \begin_layout Standard
12322 multirow{2}{2.5cm}{
12325 \begin_layout Standard
12327 According to the command parameters the multirow spans now two rows and
12329 \begin_inset space \thinspace{}
12333 The content of the multirow cell follows outside the TeX-Code box and the
12334 command is finished with a right brace
12338 in another TeX-Code-box behind the text.
12341 \begin_layout Standard
12348 left-aligns its content by default.
12349 To override the default, renew the command
12358 \begin_layout Standard
12370 \begin_layout Standard
12371 in TeX-Code in the document preamble.
12372 Then all entries of multirow cells in the document are centered.
12373 If centering is only needed for several tables, you can renew the command
12374 in an TeX-Code box just before the table instead of the preamble.
12375 If the text should be right-aligned, replace
12388 To return to left-alignment
12397 \begin_layout Section
12399 \begin_inset CommandInset label
12401 name "sec:Formal-Tables"
12409 \begin_layout Plain Layout
12418 \begin_layout Standard
12419 Tables are often typeset in books similar to Table
12420 \begin_inset space ~
12424 \begin_inset CommandInset ref
12426 reference "tab:Example-booktabs-table"
12431 This kind of tables is called
12432 \begin_inset Quotes eld
12440 \begin_inset Quotes erd
12444 To make a table a formal table use the option
12452 tab of the table dialog.
12455 \begin_layout Standard
12456 \begin_inset Float table
12462 \begin_layout Plain Layout
12463 \begin_inset Caption
12465 \begin_layout Plain Layout
12466 \begin_inset CommandInset label
12468 name "tab:Example-booktabs-table"
12472 Example booktabs-table
12480 \begin_layout Plain Layout
12482 \begin_inset Tabular
12483 <lyxtabular version="3" rows="8" columns="4">
12484 <features booktabs="true">
12485 <column alignment="center" valignment="top" width="0">
12486 <column alignment="center" valignment="top" width="0">
12487 <column alignment="center" valignment="top" width="0">
12488 <column alignment="center" valignment="top" width="0">
12490 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12493 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" topline="true" usebox="none">
12502 \begin_layout Plain Layout
12504 \begin_inset space \thinspace{}
12512 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12515 \begin_layout Plain Layout
12517 \begin_inset space \thinspace{}
12525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12528 \begin_layout Plain Layout
12536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12539 \begin_layout Plain Layout
12543 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12565 Detector thickness [µm]
12570 <cell alignment="center" valignment="top" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" usebox="none">
12582 \begin_layout Plain Layout
12588 <cell alignment="center" valignment="top" usebox="none">
12591 \begin_layout Plain Layout
12599 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" topline="true" usebox="none">
12611 \begin_layout Plain Layout
12617 <cell alignment="center" valignment="top" topline="true" usebox="none">
12620 \begin_layout Plain Layout
12626 <cell alignment="center" valignment="top" topline="true" usebox="none">
12629 \begin_layout Plain Layout
12636 <row topspace="default">
12637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12640 \begin_layout Plain Layout
12641 Spatial resolution [µm]
12646 <cell alignment="center" valignment="top" usebox="none">
12649 \begin_layout Plain Layout
12655 <cell alignment="center" valignment="top" usebox="none">
12658 \begin_layout Plain Layout
12664 <cell alignment="center" valignment="top" usebox="none">
12667 \begin_layout Plain Layout
12674 <row topspace="default">
12675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12678 \begin_layout Plain Layout
12680 \begin_inset Formula $f_{\mathrm{max}}$
12688 <cell alignment="center" valignment="top" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" usebox="none">
12700 \begin_layout Plain Layout
12706 <cell alignment="center" valignment="top" usebox="none">
12709 \begin_layout Plain Layout
12716 <row topspace="default">
12717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12720 \begin_layout Plain Layout
12724 \begin_layout Plain Layout
12728 cmidrule(l{10pt}){1-1}
12733 LSF-spatial resolution
12738 <cell alignment="center" valignment="top" usebox="none">
12741 \begin_layout Plain Layout
12747 <cell alignment="center" valignment="top" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" usebox="none">
12759 \begin_layout Plain Layout
12767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" usebox="none">
12779 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" usebox="none">
12797 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12808 \begin_layout Plain Layout
12814 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12817 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12826 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12835 \begin_layout Plain Layout
12854 \begin_layout Standard
12855 Spaces to table rows can be added using the
12859 tab of the table dialog as described in section
12860 \begin_inset space ~
12864 \begin_inset CommandInset ref
12866 reference "sub:Row-Spacing"
12873 \begin_layout Standard
12874 In contrary to normal tables, formal tables have no vertical table lines.
12875 The horizontal table lines can be set like for normal tables but they appear
12876 with different width in the output:
12877 \begin_inset Newline newline
12880 The first and the last table line have a default width of 0.08
12881 \begin_inset space \thinspace{}
12884 em while the other lines have a default width of 0.05
12885 \begin_inset space \thinspace{}
12891 \begin_layout Standard
12892 The default widths can be changed with the following preamble lines
12895 \begin_layout Standard
12905 \begin_inset Newline newline
12917 \begin_layout Standard
12918 This example is for the first line, the so called
12923 If you want to change the width for the last line, replace
12932 To change the width for the other lines replace
12941 You can use all units listed in appendix
12942 \begin_inset space ~
12946 \begin_inset CommandInset ref
12948 reference "cha:Units-available-in"
12955 \begin_layout Standard
12956 Lines that don't span over all table columns can be created by setting a
12957 table line for multicolumn cells.
12958 LyX will then internally use the command
12964 to create this line.
12968 \begin_layout Standard
12973 cmidrule[width](trim){startcol-endcol}
12976 \begin_layout Standard
12983 are are currently not supported by LyX so you have to use TeX-Code to be
12991 s can manually be created by inserting the command as TeX-Code as first
12992 cell entry of the first cell of a row.
12993 The line is then drawn in the output above the current row.
12996 \begin_layout Standard
12997 The default for the width is 0.03
12998 \begin_inset space \thinspace{}
13002 Startcol is the number of the column where the line starts and endcol the
13003 column number where the line ends.
13004 The endcol always needs to be specified, also when the line should span
13006 The optional parameter trim could be either
13014 where the trimwidth is also optional.
13015 Using for example the parameter
13019 means that the line is trimmed from its left end by 2
13020 \begin_inset space \thinspace{}
13024 If you don't specify the trimwidth the lines are trimmed by the default
13026 \begin_inset space \thinspace{}
13032 \begin_layout Standard
13033 \begin_inset VSpace bigskip
13037 \begin_inset space ~
13041 \begin_inset CommandInset ref
13043 reference "tab:Example-booktabs-table"
13047 was created using the commands
13050 \begin_layout Standard
13060 \begin_layout Standard
13061 at the beginning of the in the second row and
13064 \begin_layout Standard
13069 cmidrule(l{10pt}){1-1}
13072 \begin_layout Standard
13076 \begin_layout Standard
13077 \begin_inset VSpace bigskip
13083 \begin_layout Standard
13084 You might want to have overlapping
13091 \begin_inset space ~
13095 \begin_inset CommandInset ref
13097 reference "tab:Special-booktabs-table"
13102 This can be achieved with the TeX-Code command
13105 \begin_layout Standard
13113 \begin_layout Standard
13114 The command that was used for the second row of Table
13115 \begin_inset space ~
13119 \begin_inset CommandInset ref
13121 reference "tab:Special-booktabs-table"
13128 \begin_layout Standard
13142 \begin_layout Standard
13143 The command for the sixth row is
13146 \begin_layout Standard
13158 \begin_layout Standard
13159 \begin_inset VSpace bigskip
13165 \begin_layout Standard
13166 If you are anyway not satisfied with the border line spacing, you can use
13167 the following command to produce lines that span over all table columns
13172 \begin_layout Standard
13177 specialrule{width}{space above}{space below}
13180 \begin_layout Standard
13181 For more information about these specialties, we refer to the manual of
13187 \begin_inset CommandInset citation
13197 \begin_layout Plain Layout
13198 LaTeX-packages ! booktabs
13206 \begin_layout Standard
13207 \begin_inset Float table
13213 \begin_layout Plain Layout
13214 \begin_inset Caption
13216 \begin_layout Plain Layout
13217 \begin_inset CommandInset label
13219 name "tab:Special-booktabs-table"
13223 Special booktabs-table
13231 \begin_layout Plain Layout
13233 \begin_inset Tabular
13234 <lyxtabular version="3" rows="8" columns="4">
13235 <features booktabs="true">
13236 <column alignment="center" valignment="top" width="0">
13237 <column alignment="center" valignment="top" width="0">
13238 <column alignment="center" valignment="top" width="0">
13239 <column alignment="center" valignment="top" width="0">
13241 <cell alignment="center" valignment="top" topline="true" usebox="none">
13244 \begin_layout Plain Layout
13250 <cell alignment="center" valignment="top" topline="true" usebox="none">
13253 \begin_layout Plain Layout
13255 \begin_inset space \thinspace{}
13263 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13266 \begin_layout Plain Layout
13268 \begin_inset space \thinspace{}
13276 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13279 \begin_layout Plain Layout
13287 <cell alignment="center" valignment="top" usebox="none">
13290 \begin_layout Plain Layout
13294 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13333 \begin_layout Plain Layout
13342 Detector thickness [µm]
13347 <cell alignment="center" valignment="top" usebox="none">
13350 \begin_layout Plain Layout
13356 <cell alignment="center" valignment="top" usebox="none">
13359 \begin_layout Plain Layout
13365 <cell alignment="center" valignment="top" usebox="none">
13368 \begin_layout Plain Layout
13376 <cell alignment="center" valignment="top" topline="true" usebox="none">
13379 \begin_layout Plain Layout
13385 <cell alignment="center" valignment="top" topline="true" usebox="none">
13388 \begin_layout Plain Layout
13394 <cell alignment="center" valignment="top" topline="true" usebox="none">
13397 \begin_layout Plain Layout
13403 <cell alignment="center" valignment="top" topline="true" usebox="none">
13406 \begin_layout Plain Layout
13413 <row topspace="default">
13414 <cell alignment="center" valignment="top" usebox="none">
13417 \begin_layout Plain Layout
13418 Spatial resolution [µm]
13423 <cell alignment="center" valignment="top" usebox="none">
13426 \begin_layout Plain Layout
13432 <cell alignment="center" valignment="top" usebox="none">
13435 \begin_layout Plain Layout
13441 <cell alignment="center" valignment="top" usebox="none">
13444 \begin_layout Plain Layout
13451 <row topspace="default">
13452 <cell alignment="center" valignment="top" usebox="none">
13455 \begin_layout Plain Layout
13457 \begin_inset Formula $f_{\mathrm{max}}$
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13474 <cell alignment="center" valignment="top" usebox="none">
13477 \begin_layout Plain Layout
13483 <cell alignment="center" valignment="top" usebox="none">
13486 \begin_layout Plain Layout
13494 <cell alignment="center" valignment="top" topline="true" usebox="none">
13497 \begin_layout Plain Layout
13501 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13523 LSF-spatial resolution
13528 <cell alignment="center" valignment="top" topline="true" usebox="none">
13531 \begin_layout Plain Layout
13537 <cell alignment="center" valignment="top" topline="true" usebox="none">
13540 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" usebox="none">
13549 \begin_layout Plain Layout
13557 <cell alignment="center" valignment="top" usebox="none">
13560 \begin_layout Plain Layout
13566 <cell alignment="center" valignment="top" usebox="none">
13569 \begin_layout Plain Layout
13575 <cell alignment="center" valignment="top" usebox="none">
13578 \begin_layout Plain Layout
13584 <cell alignment="center" valignment="top" usebox="none">
13587 \begin_layout Plain Layout
13595 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13598 \begin_layout Plain Layout
13604 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13607 \begin_layout Plain Layout
13613 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13616 \begin_layout Plain Layout
13622 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13625 \begin_layout Plain Layout
13644 \begin_layout Section
13645 Vertical Table Alignment
13649 \begin_layout Plain Layout
13658 \begin_layout Standard
13659 To align tables vertically in a text line the table must be inside a box.
13660 The box can then be vertically aligned as described in section
13661 \begin_inset space ~
13665 \begin_inset CommandInset ref
13667 reference "sec:Box-Dialog"
13674 \begin_layout Standard
13675 In the following example the tables are inside a minipage
13679 \begin_layout Plain Layout
13680 Minipages are described in section
13681 \begin_inset space ~
13685 \begin_inset CommandInset ref
13687 reference "sec:Minipages"
13696 box that has a width of 15
13697 \begin_inset space \thinspace{}
13703 \begin_layout Itemize
13705 \begin_inset Box Frameless
13714 height_special "totalheight"
13717 \begin_layout Plain Layout
13718 \begin_inset Tabular
13719 <lyxtabular version="3" rows="3" columns="3">
13721 <column alignment="center" valignment="top" width="0">
13722 <column alignment="center" valignment="top" width="0">
13723 <column alignment="center" valignment="top" width="0">
13725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13728 \begin_layout Plain Layout
13734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13737 \begin_layout Plain Layout
13743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13746 \begin_layout Plain Layout
13754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13766 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13775 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13795 \begin_layout Plain Layout
13801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13804 \begin_layout Plain Layout
13824 \begin_layout Plain Layout
13836 \begin_inset Box Frameless
13845 height_special "totalheight"
13848 \begin_layout Plain Layout
13849 \begin_inset Tabular
13850 <lyxtabular version="3" rows="3" columns="3">
13852 <column alignment="center" valignment="top" width="0">
13853 <column alignment="center" valignment="top" width="0">
13854 <column alignment="center" valignment="top" width="0">
13856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13859 \begin_layout Plain Layout
13865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13868 \begin_layout Plain Layout
13874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13877 \begin_layout Plain Layout
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" bottomline="true" leftline="true" usebox="none">
13917 \begin_layout Plain Layout
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13935 \begin_layout Plain Layout
13955 \begin_layout Plain Layout
13965 \begin_layout Itemize
13967 \begin_inset Box Frameless
13976 height_special "totalheight"
13979 \begin_layout Plain Layout
13980 \begin_inset Tabular
13981 <lyxtabular version="3" rows="3" columns="3">
13983 <column alignment="center" valignment="top" width="0">
13984 <column alignment="center" valignment="top" width="0">
13985 <column alignment="center" valignment="top" width="0">
13987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13990 \begin_layout Plain Layout
13996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13999 \begin_layout Plain Layout
14005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14008 \begin_layout Plain Layout
14016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14019 \begin_layout Plain Layout
14025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14028 \begin_layout Plain Layout
14034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14037 \begin_layout Plain Layout
14045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14048 \begin_layout Plain Layout
14054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14057 \begin_layout Plain Layout
14063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14066 \begin_layout Plain Layout
14085 \begin_layout Itemize
14087 \begin_inset Box Frameless
14096 height_special "totalheight"
14099 \begin_layout Plain Layout
14100 \begin_inset Tabular
14101 <lyxtabular version="3" rows="3" columns="3">
14103 <column alignment="center" valignment="top" width="0">
14104 <column alignment="center" valignment="top" width="0">
14105 <column alignment="center" valignment="top" width="0">
14107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14110 \begin_layout Plain Layout
14116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14119 \begin_layout Plain Layout
14125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14128 \begin_layout Plain Layout
14136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14139 \begin_layout Plain Layout
14145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14148 \begin_layout Plain Layout
14154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14157 \begin_layout Plain Layout
14165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14168 \begin_layout Plain Layout
14174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14177 \begin_layout Plain Layout
14183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14186 \begin_layout Plain Layout
14206 \begin_layout Plain Layout
14218 \begin_inset Box Frameless
14227 height_special "totalheight"
14230 \begin_layout Plain Layout
14231 \begin_inset Tabular
14232 <lyxtabular version="3" rows="3" columns="3">
14234 <column alignment="center" valignment="top" width="0">
14235 <column alignment="center" valignment="top" width="0">
14236 <column alignment="center" valignment="top" width="0">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Plain Layout
14247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14250 \begin_layout Plain Layout
14256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14259 \begin_layout Plain Layout
14267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14270 \begin_layout Plain Layout
14276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14279 \begin_layout Plain Layout
14285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14288 \begin_layout Plain Layout
14296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14299 \begin_layout Plain Layout
14305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14308 \begin_layout Plain Layout
14314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14317 \begin_layout Plain Layout
14337 \begin_layout Plain Layout
14347 \begin_layout Standard
14348 As you can see, the content of the first and last table row is not correctly
14349 aligned with the text line where the table is in.
14350 To get this alignment, the minipage box must be set into a raisebox
14354 \begin_layout Plain Layout
14355 Raiseboxes are described in section
14356 \begin_inset space ~
14360 \begin_inset CommandInset ref
14362 reference "sub:Vertical-Alignment"
14372 In the example above the second table in the first item is aligned using
14373 the TeX-Code-command
14376 \begin_layout Standard
14386 \begin_layout Standard
14388 Behind the box the closing brace
14392 is inserted as TeX-Code.
14393 For the second table in the last item the command
14396 \begin_layout Standard
14406 \begin_layout Standard
14410 \begin_layout Standard
14411 \begin_inset Note Greyedout
14414 \begin_layout Plain Layout
14419 The alignment of the table row content to the surrounding text line is
14421 The needed factor of the
14427 command for this alignment depends on the document font, the font size,
14428 and the table line thickness.
14436 \begin_layout Section
14438 \begin_inset CommandInset label
14440 name "sec:Colored-Tables"
14448 \begin_layout Plain Layout
14457 \begin_layout Subsection
14462 \begin_layout Plain Layout
14463 Table Color ! for Cells
14472 \begin_layout Plain Layout
14473 Color ! for Table Cells
14481 \begin_layout Standard
14482 \begin_inset Float table
14488 \begin_layout Plain Layout
14489 \begin_inset Caption
14491 \begin_layout Plain Layout
14492 \begin_inset CommandInset label
14494 name "tab:Table-colored-without"
14498 Table colored without using the package
14503 \begin_inset OptArg
14506 \begin_layout Plain Layout
14507 Table without colortbl
14520 \begin_layout Plain Layout
14522 \begin_inset Tabular
14523 <lyxtabular version="3" rows="3" columns="3">
14525 <column alignment="center" valignment="top" width="0">
14526 <column alignment="center" valignment="top" width="0">
14527 <column alignment="center" valignment="top" width="0">
14529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14532 \begin_layout Plain Layout
14540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14543 \begin_layout Plain Layout
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14554 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14567 \begin_layout Plain Layout
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14578 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14589 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14602 \begin_layout Plain Layout
14610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14613 \begin_layout Plain Layout
14621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14624 \begin_layout Plain Layout
14645 \begin_layout Standard
14646 If you only need colored text, mark the cells and choose a color in the
14649 Edit\SpecialChar \menuseparator
14651 \begin_inset space ~
14657 This was used to create Table
14658 \begin_inset space ~
14662 \begin_inset CommandInset ref
14664 reference "tab:Table-colored-without"
14669 In any other case you have to use the LaTeX-package
14677 \begin_layout Plain Layout
14678 LaTeX-packages ! colortbl
14686 \begin_layout Standard
14690 \begin_layout Plain Layout
14700 \begin_inset Note Note
14703 \begin_layout Plain Layout
14704 The following section part will only be displayed when the LaTeX-package
14717 \begin_layout Standard
14718 To create colored tables,
14722 must be loaded in the preamble with the line
14725 \begin_layout Standard
14730 usepackage{colortbl}
14733 \begin_layout Standard
14734 The color of a column is adjusted with the command
14737 \begin_layout Standard
14742 columncolor{name of color}
14745 \begin_layout Standard
14751 More about the command
14755 is described in section
14756 \begin_inset space ~
14760 \begin_inset CommandInset ref
14762 reference "sub:Multicolumn-Calculations"
14769 \begin_layout Standard
14770 The following color names are predefined:
14773 \begin_layout Standard
14807 \begin_layout Standard
14808 \begin_inset VSpace medskip
14814 \begin_layout Standard
14815 You can also define your own color with the command
14818 \begin_layout Standard
14823 definecolor{color name}{color model}{color values}
14826 \begin_layout Standard
14827 The color model can be
14830 \begin_layout Labeling
14831 \labelwidthstring 00.00.0000
14832 cmyk: cyan, magenta, yellow, black
14835 \begin_layout Labeling
14836 \labelwidthstring 00.00.0000
14837 rgb: red, green blue
14840 \begin_layout Labeling
14841 \labelwidthstring 00.00.0000
14845 \begin_layout Standard
14846 and the color values are comma separated numbers between 0 and 1 describing
14847 the factor for the corresponding color of the color model.
14850 \begin_layout Standard
14852 \begin_inset space \thinspace{}
14856 \begin_inset space \space{}
14863 " in the preamble with
14866 \begin_layout Standard
14871 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14874 \begin_layout Standard
14882 \begin_layout Standard
14887 definecolor{lightgray}{gray}{0.8}
14890 \begin_layout Standard
14891 \begin_inset VSpace medskip
14897 \begin_layout Standard
14898 Lines are colored with the command
14901 \begin_layout Standard
14906 rowcolor{name of color}
14909 \begin_layout Standard
14910 and cells are colored with the command
14913 \begin_layout Standard
14918 cellcolor{name of color}
14921 \begin_layout Standard
14922 Both commands are inserted at the beginning of a cell as TeX-Code.
14925 \begin_layout Standard
14926 To color characters in the table, mark the cells and use the LyX menu
14928 Edit\SpecialChar \menuseparator
14930 \begin_inset space ~
14936 If a cell contains TeX-Code mark only the characters, otherwise the colored
14937 TeX-Code will cause LaTeX-errors.
14940 \begin_layout Standard
14941 \begin_inset Note Greyedout
14944 \begin_layout Plain Layout
14949 Not all DVI-viewers are able to display self-defined colors.
14957 \begin_layout Standard
14958 \begin_inset VSpace bigskip
14964 \begin_layout Standard
14966 \begin_inset space ~
14970 \begin_inset CommandInset ref
14972 reference "tab:Table-colored-using"
14976 do the following: The color of the first column should be
14984 \begin_layout Standard
14989 columncolor{darkgreen}
14994 \begin_layout Standard
14995 as LaTeX-argument for this column.
14996 The first row should be blue, therefore the TeX-Code command
14999 \begin_layout Standard
15007 \begin_layout Standard
15008 is inserted to the first cell of this row.
15009 Note that this overwrites the column color for the first cell.
15010 The last cell of the last row is colored magenta by inserting the TeX-Code
15014 \begin_layout Standard
15022 \begin_layout Standard
15023 The characters could now be colored using the menu
15025 Edit\SpecialChar \menuseparator
15027 \begin_inset space ~
15035 \begin_layout Standard
15036 \begin_inset Float table
15042 \begin_layout Plain Layout
15043 \begin_inset Caption
15045 \begin_layout Plain Layout
15046 \begin_inset CommandInset label
15048 name "tab:Table-colored-using"
15052 Table colored using the package
15057 \begin_inset OptArg
15060 \begin_layout Plain Layout
15061 Table with colortbl
15074 \begin_layout Plain Layout
15076 \begin_inset Tabular
15077 <lyxtabular version="3" rows="3" columns="3">
15079 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15080 <column alignment="center" valignment="top" width="0">
15081 <column alignment="center" valignment="top" width="0">
15083 <cell alignment="center" valignment="top" usebox="none">
15086 \begin_layout Plain Layout
15090 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" usebox="none">
15109 \begin_layout Plain Layout
15117 <cell alignment="center" valignment="top" usebox="none">
15120 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15141 <cell alignment="center" valignment="top" usebox="none">
15144 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" usebox="none">
15179 \begin_layout Plain Layout
15187 <cell alignment="center" valignment="top" usebox="none">
15190 \begin_layout Plain Layout
15194 \begin_layout Plain Layout
15223 \begin_layout Standard
15227 \begin_layout Plain Layout
15237 \begin_inset Note Note
15240 \begin_layout Plain Layout
15241 The following will be displayed when the LaTeX-package
15253 \begin_layout Standard
15254 You need to install the package
15258 to see the content of this section in the output.
15261 \begin_layout Standard
15265 \begin_layout Plain Layout
15277 \begin_layout Subsection
15282 \begin_layout Plain Layout
15283 Table Color ! for Lines
15292 \begin_layout Plain Layout
15293 Color ! for Table Lines
15301 \begin_layout Standard
15302 As described in section
15303 \begin_inset space ~
15307 \begin_inset CommandInset ref
15309 reference "sub:Line-Thickness"
15313 , the line thickness for all lines in a table can be adjusted with the length
15322 \begin_inset space \thinspace{}
15325 pt for all tables of this section.
15329 \begin_layout Plain Layout
15335 arrayrulewidth}{1.5pt}
15343 \begin_layout Standard
15344 To color vertical lines for example with green, create the following column
15345 format in the document preamble, according to the description in section
15346 \begin_inset space ~
15350 \begin_inset CommandInset ref
15352 reference "sub:Customized-Format"
15359 \begin_layout Standard
15364 newcolumntype{W}{!{
15371 \begin_layout Standard
15373 \begin_inset space ~
15377 \begin_inset CommandInset ref
15379 reference "tab:Table-with-vertical-colored"
15387 was used for the last column and
15391 for the other columns.
15394 \begin_layout Standard
15395 If you want to have several colors, define more column formats.
15398 \begin_layout Standard
15399 \begin_inset Float table
15405 \begin_layout Plain Layout
15406 \begin_inset Caption
15408 \begin_layout Plain Layout
15409 \begin_inset CommandInset label
15411 name "tab:Table-with-vertical-colored"
15415 Table with colored vertical lines
15423 \begin_layout Plain Layout
15425 \begin_inset Tabular
15426 <lyxtabular version="3" rows="3" columns="3">
15428 <column alignment="center" valignment="top" width="0" special="Wc">
15429 <column alignment="center" valignment="top" width="0" special="Wc">
15430 <column alignment="center" valignment="top" width="0" special="WcW">
15432 <cell alignment="center" valignment="top" topline="true" usebox="none">
15435 \begin_layout Plain Layout
15441 <cell alignment="center" valignment="top" topline="true" usebox="none">
15444 \begin_layout Plain Layout
15450 <cell alignment="center" valignment="top" topline="true" usebox="none">
15453 \begin_layout Plain Layout
15461 <cell alignment="center" valignment="top" topline="true" usebox="none">
15464 \begin_layout Plain Layout
15470 <cell alignment="center" valignment="top" topline="true" usebox="none">
15473 \begin_layout Plain Layout
15479 <cell alignment="center" valignment="top" topline="true" usebox="none">
15482 \begin_layout Plain Layout
15490 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15493 \begin_layout Plain Layout
15499 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15502 \begin_layout Plain Layout
15508 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15511 \begin_layout Plain Layout
15530 \begin_layout Standard
15531 \begin_inset VSpace bigskip
15534 To color horizontal lines for example with red, like in Table
15535 \begin_inset space ~
15539 \begin_inset CommandInset ref
15541 reference "tab:Table-with-horizontal-colored"
15545 , insert these commands in TeX-Code before the table or table float:
15548 \begin_layout Standard
15558 \begin_inset Newline newline
15566 \begin_inset Newline newline
15573 \begin_layout Plain Layout
15584 arrayrulecolor{red}
15588 arrayrulecolor{black}}
15591 \begin_layout Standard
15595 \begin_layout Plain Layout
15606 \begin_layout Plain Layout
15615 \begin_layout Plain Layout
15619 arrayrulecolor{red}
15623 arrayrulecolor{black}}
15629 \begin_inset Float table
15635 \begin_layout Plain Layout
15636 \begin_inset Caption
15638 \begin_layout Plain Layout
15639 \begin_inset CommandInset label
15641 name "tab:Table-with-horizontal-colored"
15645 Table with colored horizontal lines
15653 \begin_layout Plain Layout
15655 \begin_inset Tabular
15656 <lyxtabular version="3" rows="3" columns="3">
15658 <column alignment="center" valignment="top" width="0">
15659 <column alignment="center" valignment="top" width="0">
15660 <column alignment="center" valignment="top" width="0">
15662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15665 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15683 \begin_layout Plain Layout
15691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15694 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15703 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15712 \begin_layout Plain Layout
15720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15723 \begin_layout Plain Layout
15729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15732 \begin_layout Plain Layout
15738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15741 \begin_layout Plain Layout
15760 \begin_layout Standard
15761 To return to the default line color black, insert this command in TeX-Code
15762 behind the table or table float:
15765 \begin_layout Standard
15777 \begin_layout Standard
15779 \begin_inset space ~
15783 \begin_inset CommandInset ref
15785 reference "tab:Table-with-colored"
15789 is an example with colored vertical and horizontal lines.
15792 \begin_layout Standard
15793 \begin_inset Float table
15799 \begin_layout Plain Layout
15800 \begin_inset Caption
15802 \begin_layout Plain Layout
15803 \begin_inset CommandInset label
15805 name "tab:Table-with-colored"
15809 Table with colored lines
15817 \begin_layout Plain Layout
15819 \begin_inset Tabular
15820 <lyxtabular version="3" rows="3" columns="3">
15822 <column alignment="center" valignment="top" width="0" special="Wc">
15823 <column alignment="center" valignment="top" width="0" special="Wc">
15824 <column alignment="center" valignment="top" width="0" special="WcW">
15826 <cell alignment="center" valignment="top" topline="true" usebox="none">
15829 \begin_layout Plain Layout
15835 <cell alignment="center" valignment="top" topline="true" usebox="none">
15838 \begin_layout Plain Layout
15844 <cell alignment="center" valignment="top" topline="true" usebox="none">
15847 \begin_layout Plain Layout
15855 <cell alignment="center" valignment="top" topline="true" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" topline="true" usebox="none">
15867 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" topline="true" usebox="none">
15876 \begin_layout Plain Layout
15883 <row topspace="default">
15884 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15887 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15896 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15905 \begin_layout Plain Layout
15924 \begin_layout Standard
15928 \begin_layout Plain Layout
15944 \begin_layout Standard
15948 \begin_layout Plain Layout
15954 arrayrulewidth}{0.4pt}
15962 \begin_layout Section
15963 Table Customization
15967 \begin_layout Plain Layout
15968 Table Customization
15977 \begin_layout Plain Layout
15978 Table ! Customization
15986 \begin_layout Subsection
15988 \begin_inset CommandInset label
15990 name "sub:Row-Spacing"
15998 \begin_layout Plain Layout
15999 Table Customization ! Row Spacing
16007 \begin_layout Standard
16008 You can add vertical space to table rows in the
16012 tab of the table dialog.
16013 You find there three possibilities:
16016 \begin_layout Description
16018 \begin_inset space ~
16022 \begin_inset space ~
16025 row will add space above the characters of the table row.
16026 If the table is a formal table
16030 \begin_layout Plain Layout
16031 Formal tables are explained in section
16032 \begin_inset space ~
16036 \begin_inset CommandInset ref
16038 reference "sec:Formal-Tables"
16047 LyX will insert as default 0.5
16048 \begin_inset space \thinspace{}
16052 For normal tables the inserted space will unfortunately destroy the vertical
16053 table lines as in the following table:
16054 \begin_inset VSpace medskip
16058 \begin_inset Newline newline
16062 \begin_inset space \hspace*{}
16067 \begin_inset space \hfill{}
16071 \begin_inset Tabular
16072 <lyxtabular version="3" rows="3" columns="1">
16074 <column alignment="center" valignment="top" width="0">
16076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16079 \begin_layout Plain Layout
16086 <row topspace="3mm">
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16090 \begin_layout Plain Layout
16092 \begin_inset space \thinspace{}
16095 mm space top of row
16102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16117 \begin_inset space \hfill{}
16121 \begin_inset space \hspace*{}
16126 \begin_inset VSpace medskip
16130 \begin_inset Newline newline
16133 So inserting space to the top of row for normal tables is only useful when
16134 you don't have vertical lines.
16137 \begin_layout Description
16139 \begin_inset space ~
16143 \begin_inset space ~
16146 row will add space below the characters of the table row.
16147 If the table is a formal table LyX will insert as default 0.5
16148 \begin_inset space \thinspace{}
16151 em space, for normal tables the default size is 2
16152 \begin_inset space \thinspace{}
16158 \begin_layout Description
16160 \begin_inset space ~
16163 rows adds space between the current and the following row.
16164 If the table is a formal table LyX will insert as default 0.5
16165 \begin_inset space \thinspace{}
16169 For normal tables the inserted space will unfortunately destroy the vertical
16170 table lines as in the following table:
16171 \begin_inset VSpace medskip
16175 \begin_inset Newline newline
16179 \begin_inset space \hspace*{}
16184 \begin_inset space \hfill{}
16188 \begin_inset Tabular
16189 <lyxtabular version="3" rows="3" columns="1">
16191 <column alignment="center" valignment="top" width="0">
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16196 \begin_layout Plain Layout
16203 <row interlinespace="3mm">
16204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16207 \begin_layout Plain Layout
16208 \begin_inset Formula $\downarrow$
16212 \begin_inset space \thinspace{}
16215 mm space between row
16216 \begin_inset Formula $\downarrow$
16226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16229 \begin_layout Plain Layout
16230 \begin_inset Formula $\uparrow$
16234 \begin_inset space \thinspace{}
16237 mm space between row
16238 \begin_inset Formula $\uparrow$
16252 \begin_inset space \hfill{}
16256 \begin_inset space \hspace*{}
16261 \begin_inset VSpace medskip
16265 \begin_inset Newline newline
16268 So inserting space between rows for normal tables is only useful when you
16269 don't have vertical lines.
16272 \begin_layout Standard
16273 \begin_inset VSpace bigskip
16276 When you want to add extra height to all cells of all tables, you can do
16277 this with the following preamble lines:
16280 \begin_layout Standard
16285 @ifundefined{extrarowheight}
16286 \begin_inset Newline newline
16293 \begin_layout Plain Layout
16304 usepackage{array}}{}
16305 \begin_inset Newline newline
16312 extrarowheight}{height}
16315 \begin_layout Standard
16316 But this has the disadvantage that the cell texts are no longer exactly
16317 vertically centered.
16322 will be loaded automatically by LyX when you use self defined table formats.
16323 To avoid that it is loaded twice the command
16329 is used in the above command.)
16332 \begin_layout Standard
16333 In case you are using font sizes larger than the normal size, the table
16334 borders are often too close to the letters.
16335 This can be corrected by inserting the command
16341 in TeX code at the beginning of a table row.
16343 \begin_inset space ~
16347 \begin_inset CommandInset ref
16349 reference "tab:Vertical-alignment-of"
16353 visualizes the effect.
16356 \begin_layout Standard
16358 \begin_inset Float table
16364 \begin_layout Plain Layout
16365 \begin_inset Caption
16367 \begin_layout Plain Layout
16368 \begin_inset CommandInset label
16370 name "tab:Vertical-alignment-of"
16374 Vertical alignment of text with large font sizes.
16382 \begin_layout Plain Layout
16383 \begin_inset space \hfill{}
16387 \begin_inset Float table
16392 \begin_layout Plain Layout
16393 \begin_inset Caption
16395 \begin_layout Plain Layout
16404 \begin_layout Plain Layout
16407 \begin_inset Tabular
16408 <lyxtabular version="3" rows="6" columns="1">
16410 <column alignment="left" valignment="top" width="0">
16412 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16415 \begin_layout Plain Layout
16423 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16426 \begin_layout Plain Layout
16436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16475 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16497 \begin_inset space \hfill{}
16501 \begin_inset Float table
16506 \begin_layout Plain Layout
16507 \begin_inset Caption
16509 \begin_layout Plain Layout
16510 Table using the command
16524 \begin_layout Plain Layout
16527 \begin_inset Tabular
16528 <lyxtabular version="3" rows="6" columns="1">
16530 <column alignment="left" valignment="top" width="0">
16532 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16543 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16546 \begin_layout Plain Layout
16552 \begin_layout Plain Layout
16568 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16577 \begin_layout Plain Layout
16593 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 \begin_layout Plain Layout
16618 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16621 \begin_layout Plain Layout
16627 \begin_layout Plain Layout
16643 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16646 \begin_layout Plain Layout
16652 \begin_layout Plain Layout
16679 \begin_inset space \hfill{}
16690 \begin_layout Subsection
16691 Special Cell Alignment
16695 \begin_layout Plain Layout
16696 Table Customization ! Special Cell Alignment
16704 \begin_layout Standard
16705 Sometimes it looks better when the cell entries of a column are aligned
16706 with a special character, e.
16707 \begin_inset space \thinspace{}
16711 \begin_inset space \space{}
16714 with the decimal separator as in Table
16715 \begin_inset space ~
16719 \begin_inset CommandInset ref
16721 reference "tab:Table-cells-of"
16728 \begin_layout Standard
16729 \begin_inset Float table
16735 \begin_layout Plain Layout
16736 \begin_inset Caption
16738 \begin_layout Plain Layout
16739 \begin_inset CommandInset label
16741 name "tab:Table-cells-of"
16745 Table cells of a column aligned with the decimal separator.
16753 \begin_layout Plain Layout
16755 \begin_inset Tabular
16756 <lyxtabular version="3" rows="4" columns="2">
16758 <column alignment="right" valignment="top" width="0">
16759 <column alignment="left" valignment="top" width="0" special="@{}l">
16761 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16764 \begin_layout Plain Layout
16770 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16773 \begin_layout Plain Layout
16781 <cell alignment="center" valignment="top" usebox="none">
16784 \begin_layout Plain Layout
16790 <cell alignment="center" valignment="top" usebox="none">
16793 \begin_layout Plain Layout
16801 <cell alignment="center" valignment="top" usebox="none">
16804 \begin_layout Plain Layout
16810 <cell alignment="center" valignment="top" usebox="none">
16813 \begin_layout Plain Layout
16821 <cell alignment="center" valignment="top" usebox="none">
16824 \begin_layout Plain Layout
16830 <cell alignment="center" valignment="top" usebox="none">
16833 \begin_layout Plain Layout
16852 \begin_layout Standard
16853 This table was created with a 4×2 table.
16854 The heading is a centered multicolumn.
16855 The first column is right-aligned and contains the digits before the decimal
16856 point and the decimal point.
16857 The second column is left aligned and contains the digits after the decimal
16859 To omit the space that is normally between two table columns, use the following
16860 LaTeX-argument for the second column:
16863 \begin_layout Standard
16869 \begin_layout Standard
16871 \begin_inset space ~
16875 \begin_inset CommandInset ref
16877 reference "tab:Several-table-cell"
16881 shows some example alignments.
16882 For the alignment with the relation sign, you must add the second smallest
16883 math-space at the beginning of the last column to get the correct space
16884 surrounding the relation sign.
16887 \begin_layout Standard
16888 \begin_inset Float table
16893 \begin_layout Plain Layout
16894 \begin_inset Caption
16896 \begin_layout Plain Layout
16897 \begin_inset CommandInset label
16899 name "tab:Several-table-cell"
16903 Several table cell alignments.
16911 \begin_layout Plain Layout
16913 \begin_inset Tabular
16914 <lyxtabular version="3" rows="4" columns="6">
16916 <column alignment="right" valignment="top" width="0">
16917 <column alignment="left" valignment="top" width="0" special="@{}l">
16918 <column alignment="right" valignment="top" width="0">
16919 <column alignment="left" valignment="top" width="0" special="@{}l">
16920 <column alignment="right" valignment="top" width="0">
16921 <column alignment="left" valignment="top" width="0" special="@{}l">
16923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16926 \begin_layout Plain Layout
16932 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16935 \begin_layout Plain Layout
16941 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16953 \begin_layout Plain Layout
16959 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16962 \begin_layout Plain Layout
16968 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16971 \begin_layout Plain Layout
16979 <cell alignment="center" valignment="top" usebox="none">
16982 \begin_layout Plain Layout
16988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16991 \begin_layout Plain Layout
16993 \begin_inset space \thinspace{}
17001 <cell alignment="center" valignment="top" usebox="none">
17004 \begin_layout Plain Layout
17005 \begin_inset Formula $10\cdot$
17013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17016 \begin_layout Plain Layout
17017 \begin_inset Formula $10^{\mbox{-}17}$
17025 <cell alignment="center" valignment="top" usebox="none">
17028 \begin_layout Plain Layout
17029 \begin_inset Formula $\Gamma(t)\propto$
17037 <cell alignment="center" valignment="top" usebox="none">
17040 \begin_layout Plain Layout
17041 \begin_inset Formula $\:\Upsilon(t)$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17063 \begin_layout Plain Layout
17065 \begin_inset space \thinspace{}
17073 <cell alignment="center" valignment="top" usebox="none">
17076 \begin_layout Plain Layout
17077 \begin_inset Formula $5.78\cdot$
17085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17088 \begin_layout Plain Layout
17089 \begin_inset Formula $10^{7}$
17097 <cell alignment="center" valignment="top" usebox="none">
17100 \begin_layout Plain Layout
17101 \begin_inset Formula $A\ne$
17109 <cell alignment="center" valignment="top" usebox="none">
17112 \begin_layout Plain Layout
17113 \begin_inset Formula $\: B_{\mathrm{red}}$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17135 \begin_layout Plain Layout
17137 \begin_inset space \thinspace{}
17145 <cell alignment="center" valignment="top" usebox="none">
17148 \begin_layout Plain Layout
17150 \begin_inset Formula $33.5\cdot$
17158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17161 \begin_layout Plain Layout
17162 \begin_inset Formula $10^{4}$
17170 <cell alignment="center" valignment="top" usebox="none">
17173 \begin_layout Plain Layout
17174 \begin_inset Formula $\sin(\alpha)\ge$
17182 <cell alignment="center" valignment="top" usebox="none">
17185 \begin_layout Plain Layout
17186 \begin_inset Formula $\:\sin(\beta)$
17207 \begin_layout Standard
17208 \begin_inset VSpace bigskip
17211 There is also the LaTeX-package
17219 \begin_layout Plain Layout
17220 LaTeX-packages ! dcolumn
17225 that provides table cell alignments.
17226 But this unfortunately treats the cell entries as math and doesn't allow
17227 formulas in table cells: The first column of Table
17228 \begin_inset space ~
17232 \begin_inset CommandInset ref
17234 reference "tab:Several-table-cell"
17242 like the first column in Table
17243 \begin_inset space ~
17247 \begin_inset CommandInset ref
17249 reference "tab:Alignments-when"
17253 and only with some tricks like the expected.
17254 The alignment of the second and third column of Table
17255 \begin_inset space ~
17259 \begin_inset CommandInset ref
17261 reference "tab:Several-table-cell"
17265 is not possible with
17272 \begin_layout Standard
17273 \begin_inset Float table
17279 \begin_layout Plain Layout
17280 \begin_inset Caption
17282 \begin_layout Plain Layout
17283 \begin_inset CommandInset label
17285 name "tab:Alignments-when"
17289 Alignments when LaTeX-package dcolumn is used.
17290 For all column alignments tricks have to be used to get the output.
17298 \begin_layout Plain Layout
17300 \begin_inset Tabular
17301 <lyxtabular version="3" rows="4" columns="3">
17303 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17304 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17305 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17307 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17310 \begin_layout Plain Layout
17316 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17319 \begin_layout Plain Layout
17325 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17328 \begin_layout Plain Layout
17336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17339 \begin_layout Plain Layout
17341 \begin_inset space \thinspace{}
17349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17352 \begin_layout Plain Layout
17354 \begin_inset space \thinspace{}
17358 \begin_inset Formula $\mbox{bottles}$
17366 <cell alignment="center" valignment="top" usebox="none">
17369 \begin_layout Plain Layout
17374 \begin_layout Plain Layout
17384 \begin_inset Formula $\mbox{bottles}$
17394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17397 \begin_layout Plain Layout
17399 \begin_inset space \thinspace{}
17407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17410 \begin_layout Plain Layout
17412 \begin_inset space \thinspace{}
17416 \begin_inset Formula $\mbox{Pixels}$
17424 <cell alignment="center" valignment="top" usebox="none">
17427 \begin_layout Plain Layout
17432 \begin_layout Plain Layout
17442 \begin_inset Formula $\mbox{Pixels}$
17452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17455 \begin_layout Plain Layout
17457 \begin_inset space \thinspace{}
17465 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17468 \begin_layout Plain Layout
17470 \begin_inset space \thinspace{}
17474 \begin_inset Formula $\mbox{cm}$
17482 <cell alignment="center" valignment="top" usebox="none">
17485 \begin_layout Plain Layout
17490 \begin_layout Plain Layout
17500 \begin_inset Formula $\mbox{cm}$
17521 \begin_layout Subsection
17522 Customized Cell/Column Format
17523 \begin_inset CommandInset label
17525 name "sub:Customized-Format"
17533 \begin_layout Plain Layout
17534 Table Customization ! Cell/Column Format
17542 \begin_layout Standard
17543 Calculating the needed width for spanned columns like in section
17544 \begin_inset space ~
17548 \begin_inset CommandInset ref
17550 reference "sub:Multicolumn-Calculations"
17554 is very annoying if you have several tables with multicolumn cells.
17555 To make life easier, you can define a cell/column format in the preamble,
17556 so that it can be used in all tables of the document.
17557 The format is defined with the command
17560 \begin_layout Standard
17565 newcolumntype{name of format}[number of arguments]{commands}
17568 \begin_layout Standard
17569 The format name may only consist of one letter.
17594 are predefined and cannot be used.
17595 But all letters are allowed as capitals.
17598 \begin_layout Standard
17599 \begin_inset VSpace medskip
17605 \begin_layout Standard
17606 For vertically and horizontally centered multicolumn cells with a fixed
17607 width you can define the cell format
17610 \begin_layout Standard
17615 newcolumntype{M}[1]{>{
17622 \begin_layout Standard
17629 avoids the problem of hyphenating the first word, as described in section
17630 \begin_inset space ~
17634 \begin_inset CommandInset ref
17636 reference "sub:Multiple-Lines-in"
17641 Now you can simply enter
17644 \begin_layout Standard
17650 \begin_layout Standard
17651 as LaTeX-argument in the table dialog to create a multicolumn.
17654 \begin_layout Standard
17655 \begin_inset VSpace bigskip
17661 \begin_layout Standard
17662 For cells spanned by a multicolumn cell, you can define the format
17665 \begin_layout Standard
17670 newcolumntype{S}[2]{>{
17675 \begin_inset Newline newline
17682 \begin_layout Plain Layout
17697 \begin_layout Plain Layout
17708 arrayrulewidth)*(1-#2))/#2}}
17711 \begin_layout Standard
17712 This format uses equation
17713 \begin_inset CommandInset ref
17719 to calculate the needed width so that each spanned cell has the same width.
17722 \begin_layout Standard
17726 \begin_layout Standard
17729 S{width of multicolumn cell}{number of spanned columns}
17732 \begin_layout Standard
17733 as LaTeX-argument of the column.
17736 \begin_layout Standard
17737 \begin_inset VSpace bigskip
17743 \begin_layout Standard
17744 For colored columns, you can define
17747 \begin_layout Standard
17752 newcolumntype{K}[1]{>{
17759 \begin_layout Standard
17761 \begin_inset Quotes eld
17765 \begin_inset Quotes erd
17768 at the end creates a column with a flexible width whose text is horizontally
17773 \begin_layout Standard
17779 \begin_layout Standard
17783 \begin_layout Standard
17784 \begin_inset VSpace bigskip
17790 \begin_layout Standard
17792 \begin_inset space ~
17796 \begin_inset CommandInset ref
17798 reference "tab:Table-using-user-defined"
17802 use the LaTeX-arguments
17805 \begin_layout Standard
17811 \begin_layout Standard
17812 for the first column and the multicolumn,
17815 \begin_layout Standard
17821 \begin_layout Standard
17822 for the the last column, and
17825 \begin_layout Standard
17831 \begin_layout Standard
17832 for the cells in the second column.
17835 \begin_layout Standard
17836 \begin_inset Float table
17842 \begin_layout Plain Layout
17843 \begin_inset Caption
17845 \begin_layout Plain Layout
17846 \begin_inset CommandInset label
17848 name "tab:Table-using-user-defined"
17852 Table using user-defined table formats
17860 \begin_layout Plain Layout
17862 \begin_inset Tabular
17863 <lyxtabular version="3" rows="3" columns="4">
17865 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17866 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17867 <column alignment="center" valignment="middle" width="0">
17868 <column alignment="center" valignment="middle" width="0" special="K{red}">
17870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17873 \begin_layout Plain Layout
17874 verylongtablecellword
17879 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17882 \begin_layout Plain Layout
17883 multiple lines multicolumn
17888 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17891 \begin_layout Plain Layout
17897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17900 \begin_layout Plain Layout
17908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17911 \begin_layout Plain Layout
17917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17920 \begin_layout Plain Layout
17926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17929 \begin_layout Plain Layout
17935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17938 \begin_layout Plain Layout
17946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17949 \begin_layout Plain Layout
17955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17958 \begin_layout Plain Layout
17964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17967 \begin_layout Plain Layout
17973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17976 \begin_layout Plain Layout
17995 \begin_layout Subsection
17997 \begin_inset CommandInset label
17999 name "sub:Line-Thickness"
18007 \begin_layout Plain Layout
18008 Table Customization ! Line Thickness
18016 \begin_layout Standard
18017 The line thickness for all lines in a table can be adjusted with the length
18025 To set for example a line thickness of 1.5
18026 \begin_inset space \thinspace{}
18030 \begin_inset space ~
18034 \begin_inset CommandInset ref
18036 reference "tab:Table-with-1.5"
18040 , insert the command
18043 \begin_layout Standard
18050 arrayrulewidth}{1.5pt}
18053 \begin_layout Standard
18054 in TeX-Code before the table or table float.
18055 The changed thickness is valid for all following tables.
18056 To use the default value again, set
18063 \begin_inset space \thinspace{}
18066 pt in TeX-Code behind the table or table float.
18069 \begin_layout Standard
18073 \begin_layout Plain Layout
18079 arrayrulewidth}{1.5pt}
18085 \begin_inset Float table
18090 \begin_layout Plain Layout
18091 \begin_inset Caption
18093 \begin_layout Plain Layout
18094 \begin_inset CommandInset label
18096 name "tab:Table-with-1.5"
18101 \begin_inset space \thinspace{}
18112 \begin_layout Plain Layout
18114 \begin_inset Tabular
18115 <lyxtabular version="3" rows="3" columns="3">
18117 <column alignment="center" valignment="top" width="0">
18118 <column alignment="center" valignment="top" width="0">
18119 <column alignment="center" valignment="top" width="0">
18121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18133 \begin_layout Plain Layout
18139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18142 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18162 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18171 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18182 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18191 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18200 \begin_layout Plain Layout
18220 \begin_layout Plain Layout
18226 arrayrulewidth}{0.4pt}
18234 \begin_layout Standard
18235 \begin_inset VSpace bigskip
18238 To set the line thickness to 1.5
18239 \begin_inset space \thinspace{}
18242 pt only for horizontal lines, like in Table
18243 \begin_inset space ~
18247 \begin_inset CommandInset ref
18249 reference "tab:Table-with-horizontal"
18253 , insert these commands in TeX-Code before the table or table float:
18256 \begin_layout Standard
18266 \begin_inset Newline newline
18274 \begin_inset Newline newline
18283 arrayrulewidth 1.5pt}
18284 \begin_inset Newline newline
18295 arrayrulewidth 0.4pt}}
18298 \begin_layout Standard
18299 To return to the default line thickness, insert this command in TeX-Code
18300 behind the table or table float:
18303 \begin_layout Standard
18315 \begin_layout Standard
18319 \begin_layout Plain Layout
18330 \begin_layout Plain Layout
18339 \begin_layout Plain Layout
18347 arrayrulewidth 1.5pt}
18350 \begin_layout Plain Layout
18360 arrayrulewidth 0.4pt}}
18366 \begin_inset Float table
18371 \begin_layout Plain Layout
18372 \begin_inset Caption
18374 \begin_layout Plain Layout
18375 \begin_inset CommandInset label
18377 name "tab:Table-with-horizontal"
18382 \begin_inset space \thinspace{}
18385 pt thick horizontal lines
18393 \begin_layout Plain Layout
18395 \begin_inset Tabular
18396 <lyxtabular version="3" rows="3" columns="3">
18398 <column alignment="center" valignment="top" width="0">
18399 <column alignment="center" valignment="top" width="0">
18400 <column alignment="center" valignment="top" width="0">
18402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18405 \begin_layout Plain Layout
18411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18414 \begin_layout Plain Layout
18420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18423 \begin_layout Plain Layout
18431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18434 \begin_layout Plain Layout
18440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18443 \begin_layout Plain Layout
18449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18452 \begin_layout Plain Layout
18460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18472 \begin_layout Plain Layout
18478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18481 \begin_layout Plain Layout
18501 \begin_layout Plain Layout
18517 \begin_layout Standard
18518 \begin_inset VSpace bigskip
18521 To set the line thickness to 1.5
18522 \begin_inset space \thinspace{}
18525 pt only for vertical lines, create the following column format in the document
18526 preamble, according to the description in section
18527 \begin_inset space ~
18531 \begin_inset CommandInset ref
18533 reference "sub:Customized-Format"
18540 \begin_layout Standard
18545 newcolumntype{V}{!{
18547 vrule width 1.5pt}}
18550 \begin_layout Standard
18552 \begin_inset space ~
18556 \begin_inset CommandInset ref
18558 reference "tab:Table-with-vertical"
18565 \begin_layout Standard
18571 \begin_layout Standard
18572 was used for the last column and
18575 \begin_layout Standard
18581 \begin_layout Standard
18582 for the other columns.
18585 \begin_layout Standard
18586 \begin_inset Float table
18591 \begin_layout Plain Layout
18592 \begin_inset Caption
18594 \begin_layout Plain Layout
18595 \begin_inset CommandInset label
18597 name "tab:Table-with-vertical"
18602 \begin_inset space \thinspace{}
18605 pt thick vertical lines
18613 \begin_layout Plain Layout
18615 \begin_inset Tabular
18616 <lyxtabular version="3" rows="3" columns="3">
18618 <column alignment="center" valignment="top" width="0" special="Vc">
18619 <column alignment="center" valignment="top" width="0" special="Vc">
18620 <column alignment="center" valignment="top" width="0" special="VcV">
18622 <cell alignment="center" valignment="top" topline="true" usebox="none">
18625 \begin_layout Plain Layout
18631 <cell alignment="center" valignment="top" topline="true" usebox="none">
18634 \begin_layout Plain Layout
18640 <cell alignment="center" valignment="top" topline="true" usebox="none">
18643 \begin_layout Plain Layout
18651 <cell alignment="center" valignment="top" topline="true" usebox="none">
18654 \begin_layout Plain Layout
18660 <cell alignment="center" valignment="top" topline="true" usebox="none">
18663 \begin_layout Plain Layout
18669 <cell alignment="center" valignment="top" topline="true" usebox="none">
18672 \begin_layout Plain Layout
18680 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18683 \begin_layout Plain Layout
18689 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18692 \begin_layout Plain Layout
18698 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18701 \begin_layout Plain Layout
18720 \begin_layout Subsection
18725 \begin_layout Plain Layout
18726 Table Customization ! Dashed Lines
18734 \begin_layout Standard
18738 \begin_layout Plain Layout
18748 \begin_inset Note Note
18751 \begin_layout Plain Layout
18752 The following section will only be displayed when the LaTeX-package
18764 \begin_layout Standard
18765 \begin_inset Float table
18771 \begin_layout Plain Layout
18772 \begin_inset Caption
18774 \begin_layout Plain Layout
18775 \begin_inset CommandInset label
18777 name "tab:Table-with-dashed"
18781 Table with dashed lines
18789 \begin_layout Plain Layout
18791 \begin_inset Tabular
18792 <lyxtabular version="3" rows="5" columns="5">
18794 <column alignment="center" valignment="top" width="0">
18795 <column alignment="center" valignment="top" width="0">
18796 <column alignment="center" valignment="top" width="0" special=":c">
18797 <column alignment="center" valignment="top" width="0">
18798 <column alignment="center" valignment="top" width="0">
18800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18803 \begin_layout Plain Layout
18809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18812 \begin_layout Plain Layout
18818 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18821 \begin_layout Plain Layout
18827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18830 \begin_layout Plain Layout
18836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18839 \begin_layout Plain Layout
18847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18850 \begin_layout Plain Layout
18856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18859 \begin_layout Plain Layout
18865 <cell alignment="center" valignment="top" topline="true" usebox="none">
18868 \begin_layout Plain Layout
18874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18877 \begin_layout Plain Layout
18883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18886 \begin_layout Plain Layout
18894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18897 \begin_layout Plain Layout
18901 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18918 \begin_layout Plain Layout
18924 <cell alignment="center" valignment="top" usebox="none">
18927 \begin_layout Plain Layout
18933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18936 \begin_layout Plain Layout
18942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18945 \begin_layout Plain Layout
18953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18956 \begin_layout Plain Layout
18960 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18977 \begin_layout Plain Layout
18983 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18986 \begin_layout Plain Layout
18992 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18995 \begin_layout Plain Layout
19001 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19004 \begin_layout Plain Layout
19012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19015 \begin_layout Plain Layout
19021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19024 \begin_layout Plain Layout
19030 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19033 \begin_layout Plain Layout
19039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19042 \begin_layout Plain Layout
19048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19051 \begin_layout Plain Layout
19070 \begin_layout Standard
19071 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19072 As prerequisite the LaTeX-package
19080 \begin_layout Plain Layout
19081 LaTeX-packages ! arydshln
19086 must be loaded in the document preamble with the command
19089 \begin_layout Standard
19094 usepackage{arydshln}
19097 \begin_layout Standard
19098 To make a vertical line dashed, enter the colon
19099 \begin_inset Quotes eld
19103 \begin_inset Quotes erd
19106 together with the character for the horizontal alignment as LaTeX-argument
19107 in the table cell dialog.
19110 \begin_layout Standard
19111 For a horizontal dashed line add the command
19114 \begin_layout Standard
19122 \begin_layout Standard
19123 in TeX-Code as first element of the first cell in the table row.
19126 \begin_layout Standard
19127 For dashed multicolumn lines use the command
19130 \begin_layout Standard
19135 cdashline{line number
19140 \begin_layout Standard
19141 in TeX-Code as first element of the first cell in the table row.
19142 If you have for example a multicolumn spanning over columns 2 to 4 and
19143 you want to have a dashed line above, add the command
19146 \begin_layout Standard
19154 \begin_layout Standard
19155 as first element of the first cell in the row of the multicolumn.
19158 \begin_layout Standard
19159 \begin_inset VSpace bigskip
19165 \begin_layout Standard
19167 \begin_inset space ~
19171 \begin_inset CommandInset ref
19173 reference "tab:Table-with-dashed"
19178 \begin_inset Quotes eld
19186 \begin_inset Quotes erd
19189 as LaTeX-argument of the third column.
19190 The TeX-Code command
19196 was inserted to the first cell of the third row and the the TeX-Code command
19197 \begin_inset Newline newline
19206 was inserted to the first cell of the fourth row.
19209 \begin_layout Standard
19210 \begin_inset Note Greyedout
19213 \begin_layout Plain Layout
19218 The used LaTeX-package
19222 is apparently not compatible with the LaTeX-package
19230 \begin_layout Plain Layout
19231 LaTeX-packages ! colortbl
19236 that is used for colored tables in section
19237 \begin_inset space ~
19241 \begin_inset CommandInset ref
19243 reference "sec:Colored-Tables"
19248 That means colored tables cannot have dashed lines.
19256 \begin_layout Standard
19260 \begin_layout Plain Layout
19270 \begin_inset Note Note
19273 \begin_layout Plain Layout
19274 The following will be displayed when the LaTeX-package
19286 \begin_layout Standard
19287 You need to install the package
19291 to see the content of this section in the output.
19294 \begin_layout Standard
19298 \begin_layout Plain Layout
19310 \begin_layout Chapter
19315 \begin_layout Plain Layout
19324 \begin_layout Section
19326 \begin_inset CommandInset label
19328 name "sec:FloatIntroduction"
19336 \begin_layout Plain Layout
19337 Floats ! Introduction
19345 \begin_layout Standard
19346 A float is a block of text associated with some sort of label, which doesn't
19347 have a fixed location.
19349 \begin_inset Quotes eld
19353 \begin_inset Quotes erd
19356 forward or backward a page or two, to wherever it fits best.
19364 \begin_inset space ~
19369 are also floats, because they can float to the next page when there are
19370 too many notes at the page.
19373 \begin_layout Standard
19374 Floats allow a high quality layout.
19375 Images and tables can evenly be spread to the pages to avoid white space
19376 and pages without text.
19377 As the floating often destroys the context between the text and the image/table
19378 , every float can be referenced in the text.
19379 Floats are therefore numbered.
19380 Referencing is described in section
19381 \begin_inset space ~
19385 \begin_inset CommandInset ref
19387 reference "sec:Referencing-Floats"
19394 \begin_layout Standard
19395 To insert a float, use the menu
19397 Insert\SpecialChar \menuseparator
19405 inset, a box with a label.
19406 The label will automatically be translated to the document language in
19408 Behind the label you can insert the caption text.
19409 The image or table is inserted above or below the caption in a separate
19410 paragraph within the float.
19411 More about the caption placement is described in section
19412 \begin_inset space ~
19416 \begin_inset CommandInset ref
19418 reference "sec:Caption-Placement"
19423 To keep your LyX-document readable, you can open and close the float box
19424 by left-clicking on the box label.
19425 A closed float box looks like this:
19426 \begin_inset Graphics
19427 filename clipart/floatQt4.png
19429 scaleBeforeRotation
19433 – a gray button with a red label.
19436 \begin_layout Standard
19437 It is recommended to insert floats as a separate paragraph to avoid possible
19438 LaTeX-errors that can occur when the surrounding text is specially formatted.
19441 \begin_layout Standard
19442 Existing figures or tables can be put into a float by marking them and then
19443 pressing the corresponding toolbar button for a new float.
19446 \begin_layout Section
19450 \begin_layout Standard
19451 Besides figure and table floats that are described in section
19452 \begin_inset space ~
19456 \begin_inset CommandInset ref
19458 reference "sec:Figure-Floats"
19463 \begin_inset CommandInset ref
19465 reference "sec:Table-Floats"
19469 , respectively, LyX offers the float types
19480 \begin_layout Subsection
19485 \begin_layout Plain Layout
19486 Floats ! Algorithms
19494 \begin_layout Standard
19495 \begin_inset Float algorithm
19501 \begin_layout Plain Layout
19502 \begin_inset Caption
19504 \begin_layout Plain Layout
19505 \begin_inset CommandInset label
19507 name "alg:Example-Algorithm-float"
19511 Example Algorithm float
19519 \begin_layout LyX-Code
19521 \begin_inset Newline newline
19524 Sum:= Sum + A(I); /*comment*/
19525 \begin_inset Newline newline
19529 \begin_inset VSpace -4mm
19540 \begin_layout Standard
19541 This float type is inserted with the menu
19543 Insert\SpecialChar \menuseparator
19544 Floats\SpecialChar \menuseparator
19548 It is used for program codes and descriptions of algorithms and can be
19549 seen as an alternative to program code listings that are explained in chapter
19550 \begin_inset space ~
19554 \begin_inset CommandInset ref
19556 reference "cha:Program-Code-Listings"
19561 A possible environment for algorithms is the
19565 , described in LyX's
19571 \begin_inset space ~
19575 \begin_inset CommandInset ref
19577 reference "alg:Example-Algorithm-float"
19581 is an example of an algorithm float where -4
19582 \begin_inset space \thinspace{}
19585 mm vertical space was added at the end of the float to have the bottom rule
19586 exactly below the last text line.
19589 \begin_layout Standard
19590 The float label is not automatically translated into the document language.
19591 If your document is not in English, you have to do this manually by adding
19592 the following line to the document preamble
19597 \begin_layout Standard
19602 floatname{algorithm}{your
19603 \begin_inset space ~
19609 \begin_layout Standard
19613 \begin_inset space ~
19619 \begin_inset Quotes eld
19627 \begin_inset Quotes erd
19633 \begin_layout Standard
19634 To insert the list of algorithms you can use the menu
19636 Insert\SpecialChar \menuseparator
19638 \begin_inset space \thinspace{}
19642 \begin_inset space \thinspace{}
19645 TOC\SpecialChar \menuseparator
19648 when your document has the same language as LyX's menu names.
19649 In other cases use this command in TeX-Code instead:
19652 \begin_layout Standard
19657 listof{algorithm}{your
19658 \begin_inset space ~
19664 \begin_layout Standard
19668 \begin_inset space ~
19674 \begin_inset Quotes eld
19682 \begin_inset Quotes erd
19688 \begin_layout Standard
19689 Algorithm floats are not by default numbered in the scheme
19690 \begin_inset Quotes eld
19694 \begin_inset Quotes erd
19697 like it is the case for table and figure floats in many document-classes.
19698 To number algorithm floats in the same scheme, add this command to your
19702 \begin_layout Standard
19707 numberwithin{algorithm}{chapter}
19710 \begin_layout Standard
19711 To be able to use the command
19720 \begin_inset space ~
19725 in the document settings the option
19728 \begin_inset space ~
19732 \begin_inset space ~
19736 \begin_inset space ~
19744 \begin_layout Subsection
19749 \begin_layout Plain Layout
19750 Floats ! Wrap Floats
19758 \begin_layout Standard
19759 \begin_inset Wrap figure
19766 \begin_layout Plain Layout
19767 \begin_inset Graphics
19768 filename clipart/mobius.eps
19770 scaleBeforeRotation
19771 rotateOrigin center
19778 \begin_layout Plain Layout
19779 \begin_inset Caption
19781 \begin_layout Plain Layout
19782 \begin_inset CommandInset label
19784 name "fig:This-is-a"
19788 This is a figure wrap float.
19798 This float type is used if you want to wrap text around a figure or table
19799 so that it only occupies some fraction of the column width.
19800 It can be inserted using the menu
19802 Insert\SpecialChar \menuseparator
19803 Floats\SpecialChar \menuseparator
19805 \begin_inset space ~
19809 \begin_inset space ~
19817 \begin_inset space ~
19821 \begin_inset space ~
19826 if the LaTeX-package
19834 \begin_layout Plain Layout
19835 LaTeX-packages ! wrapfig
19839 \begin_layout Plain Layout
19857 \begin_layout Plain Layout
19858 Installing a LaTeX-package is explained it in the
19861 \begin_inset space ~
19871 The settings of the float can be modified by right-clicking on the float
19873 The mandatory settings are the float
19886 that specifies how much the float is set into the paragraph
19887 \begin_inset space \thinspace{}
19891 \begin_inset space \thinspace{}
19894 page margin, and the
19897 \begin_inset space ~
19902 that specifies how many text lines the float will approximately need.
19903 The line span is often hard to be approximated, so better only use it when
19904 you encounter float placement problems.
19905 You can furthermore decide if LaTeX is allowed to let the float float within
19906 the paragraph or to surrounding paragraphs.
19908 \begin_inset space ~
19912 \begin_inset CommandInset ref
19914 reference "fig:This-is-a"
19918 is an example text wrap float with a width of 40
19919 \begin_inset space \thinspace{}
19923 \begin_inset space \thinspace{}
19926 cm overhang, set to the left.
19930 \begin_layout Plain Layout
19931 Available units are explained in appendix
19932 \begin_inset space ~
19936 \begin_inset CommandInset ref
19938 reference "cha:Units-available-in"
19950 \begin_layout Standard
19951 \begin_inset Note Greyedout
19954 \begin_layout Plain Layout
19960 \begin_inset space ~
19963 wrap float floats are fragile! E.
19964 \begin_inset space \thinspace{}
19968 \begin_inset space \space{}
19971 having a figure too close to the bottom of the page can mess things up in
19972 the way that the float doesn't appear in the output or that it is placed
19973 over some other text.
19981 \begin_layout Standard
19985 \begin_layout Itemize
19986 Wrap floats should not be placed in paragraphs that run over a page break.
19987 That means that wrap floats should better be inserted to the exact place
19988 when the document is nearly finished and you are able to estimate where
19989 page breaks will appear.
19992 \begin_layout Itemize
19993 Wrap floats should either be placed in an own paragraph before the paragraph
19994 where they should wrap into or within a paragraph.
19997 \begin_layout Itemize
19998 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19999 there is a text paragraph between them as separator.
20002 \begin_layout Itemize
20003 Wrap floats are not allowed in section headings or tables.
20006 \begin_layout Section
20011 \begin_layout Plain Layout
20020 \begin_layout Standard
20021 Floats are usually numbered either independent from the sections the floats
20022 are in, or in the scheme
20023 \begin_inset Quotes eld
20027 \begin_inset Quotes erd
20031 \begin_inset Quotes eld
20035 \begin_inset Quotes erd
20039 This depends on the used document class.
20042 \begin_layout Standard
20043 To change the section independent numbering, you can use this command in
20044 the document preamble:
20047 \begin_layout Standard
20059 \begin_layout Standard
20066 is the command that prints the table number, for figure floats, the command
20080 prints in the command above the table number as small roman number.
20083 \begin_layout Standard
20084 To change the numbering scheme for example to
20085 \begin_inset Quotes eld
20089 \begin_inset Quotes erd
20092 , use this command in the preamble:
20095 \begin_layout Standard
20100 numberwithin{table}{subsection}
20103 \begin_layout Standard
20104 To be able to use the command
20113 \begin_inset space ~
20118 in the document settings the option
20121 \begin_inset space ~
20125 \begin_inset space ~
20129 \begin_inset space ~
20137 \begin_layout Standard
20138 Please also have a look at section
20139 \begin_inset space ~
20143 \begin_inset CommandInset ref
20145 reference "sub:Footnote-Numbering"
20149 for the details and important notes about the numbering commands.
20152 \begin_layout Section
20154 \begin_inset CommandInset label
20156 name "sec:Referencing-Floats"
20164 \begin_layout Plain Layout
20165 Floats ! References
20174 \begin_layout Plain Layout
20175 References ! to Floats
20183 \begin_layout Standard
20184 To reference a float, insert a label into its caption using the menu
20186 Insert\SpecialChar \menuseparator
20189 or the toolbar button
20190 \begin_inset Graphics
20191 filename ../images/label-insert.png
20193 scaleBeforeRotation
20198 A grey label box like this one:
20199 \begin_inset Graphics
20200 filename clipart/labelQt4.png
20202 scaleBeforeRotation
20206 will be inserted and the label window pops up asking for the label text.
20207 LyX offers as text the first words of the caption with a prefix.
20208 The prefix depends on the float type, e.
20209 \begin_inset space \thinspace{}
20213 \begin_inset space \space{}
20216 for figure floats the prefix will be "
20223 \begin_layout Standard
20224 The label is used as anchor and name for the reference.
20225 You can refer to the label using the menu
20227 Insert\SpecialChar \menuseparator
20230 or the toolbar button
20231 \begin_inset Graphics
20232 filename ../images/dialog-show-new-inset_ref.png
20234 scaleBeforeRotation
20239 A grey cross-reference box like this one:
20240 \begin_inset Graphics
20241 filename clipart/referenceQt4.png
20243 scaleBeforeRotation
20247 will be inserted and the cross-reference window appear showing all labels
20249 If you have multiple LyX-documents opened, choose the one you are working
20250 on from the drop-list at the top of the dialog.
20251 You can now sort the labels alphabetically and then choose one.
20252 At the position of the cross-reference box the float number will appear
20256 \begin_layout Standard
20257 It is recommended to use a protected space between the cross-reference name
20258 and its number to avoid line breaks between them.
20259 If a cross-reference refers to a non-existing label, you will see two question
20260 marks in the output instead of the reference.
20263 \begin_layout Standard
20264 You can change labels at any time by clicking on the label box.
20265 References to the changed label will automatically change its link to the
20266 new label text, so that you don't need to take care about this.
20269 \begin_layout Standard
20273 \begin_inset space ~
20277 \begin_inset space ~
20282 in the cross-reference window sets the cursor before the referred label.
20283 The button text changes then to Go
20284 \begin_inset space ~
20287 Back and you can use it to set the cursor back to the cross-reference.
20288 Right-clicking on a cross-reference box also sets the cursor before the
20289 referenced label but without a possibility to go back.
20292 \begin_layout Subsection
20293 Cross-Reference Formats
20294 \begin_inset CommandInset label
20296 name "sub:Cross-Reference-Formats"
20304 \begin_layout Plain Layout
20305 References ! Formats
20313 \begin_layout Standard
20314 There are six varieties of cross-references:
20317 \begin_layout Description
20318 <reference>: prints the float number, this is the default:
20319 \begin_inset CommandInset ref
20321 reference "fig:Two-distorted-images"
20328 \begin_layout Description
20329 (<reference>): prints the float number within two parentheses, this is the
20330 style normally used to reference formulas, especially when the reference
20332 \begin_inset Quotes eld
20336 \begin_inset Quotes erd
20340 \begin_inset CommandInset ref
20349 \begin_layout Description
20350 <page>: prints the page number: Page
20351 \begin_inset space ~
20355 \begin_inset CommandInset ref
20356 LatexCommand pageref
20357 reference "fig:Two-distorted-images"
20364 \begin_layout Description
20366 \begin_inset space ~
20370 \begin_inset space ~
20373 <page>: prints the text "on page" and the page number:
20374 \begin_inset CommandInset ref
20375 LatexCommand vpageref
20376 reference "fig:Two-distorted-images"
20383 \begin_layout Description
20385 \begin_inset space ~
20389 \begin_inset space ~
20393 \begin_inset space ~
20396 <page>: prints the float number, the text "on page", and the page number:
20398 \begin_inset CommandInset ref
20400 reference "fig:Two-distorted-images"
20407 \begin_layout Description
20409 \begin_inset space ~
20412 reference: prints a self defined cross-reference format.
20414 \begin_inset Note Greyedout
20417 \begin_layout Plain Layout
20422 This feature is only available when you have the LaTeX-package
20434 \begin_layout Standard
20435 Note that the style <page> won't print the page number if the label is on
20436 the previous, the same, or the next page.
20438 \begin_inset space \thinspace{}
20442 \begin_inset space \space{}
20446 \begin_inset Quotes eld
20454 \begin_inset Quotes erd
20460 \begin_layout Standard
20461 The number and current page of the referred document part in the output,
20462 is automatically calculated by LaTeX.
20463 The varieties are adjusted in the field
20467 of the cross-reference window, that appear when you click on the cross-referenc
20471 \begin_layout Subsection
20472 Automatic Reference Naming
20476 \begin_layout Plain Layout
20477 References ! Automatic Reference Naming
20485 \begin_layout Standard
20494 \begin_layout Plain Layout
20495 LaTeX-packages ! hyperref
20500 , that is enabled in the
20508 dialog, provides a very useful feature that cross-references automatically
20509 include the name of the referenced floats (or text parts like
20514 So you will save to write e.
20515 \begin_inset space \thinspace{}
20519 \begin_inset space \space{}
20523 \begin_inset Quotes eld
20527 \begin_inset Quotes erd
20530 before every reference to a figure.
20531 To use this feature, enable
20535 and insert this line to the LaTeX preamble:
20538 \begin_layout Standard
20554 \begin_layout Standard
20555 When you prefer other reference names than the default ones, for example
20556 you want instead of
20557 \begin_inset Quotes eld
20561 \begin_inset Quotes erd
20565 \begin_inset Quotes eld
20569 \begin_inset space \thinspace{}
20573 \begin_inset Quotes eld
20576 , you can redefine the name by inserting this to the preamble:
20579 \begin_layout Standard
20590 sectionautorefname}
20591 \begin_inset Newline newline
20598 \begin_layout Plain Layout
20612 \begin_layout Standard
20613 When you are using another document language than English, replace
20614 \begin_inset Newline newline
20629 , where *** is the name of the used language.
20632 \begin_layout Standard
20633 To get automatic names, but not for certain reference types, for example
20634 not for equations, use this preamble code:
20637 \begin_layout Standard
20645 \begin_inset Newline newline
20655 \begin_inset Newline newline
20666 equationautorefname}
20667 \begin_inset Newline newline
20674 \begin_layout Plain Layout
20690 \begin_layout Standard
20691 More about this topic can be found in
20696 \begin_inset CommandInset citation
20705 \begin_layout Standard
20706 \begin_inset Note Greyedout
20709 \begin_layout Plain Layout
20714 Automatic reference naming cannot be used when you use cross-references
20718 \begin_inset space ~
20723 style, as described in section
20724 \begin_inset space ~
20728 \begin_inset CommandInset ref
20730 reference "sub:Cross-Reference-Formats"
20742 \begin_layout Standard
20747 manual is an example where automatic reference naming is used.
20750 \begin_layout Subsection
20752 \begin_inset CommandInset label
20754 name "sub:Reference-Position"
20762 \begin_layout Plain Layout
20763 References ! Reference Position
20771 \begin_layout Standard
20780 \begin_layout Plain Layout
20781 LaTeX-packages ! hyperref
20794 dialog to link cross-references in the output, you will see that clicking
20795 on an image float reference jumps to the image label.
20796 The caption will be the first text part on the screen, so that you cannot
20797 see the image without scrolling.
20798 This is because the reference link anchor is placed at the position of
20800 With the use of the package
20808 \begin_layout Plain Layout
20809 LaTeX-packages ! hypcap
20814 , which is part of the LaTeX-package
20822 \begin_layout Plain Layout
20823 LaTeX-packages ! oberdiek
20828 , the link anchor is placed at the beginning of a float.
20829 To use this feature for figure floats, load
20833 in the document preamble with the line
20836 \begin_layout Standard
20841 usepackage[figure]{hypcap}
20844 \begin_layout Standard
20849 for all float types but this is not recommended for stability reasons.
20850 For more information, have a look at
20855 \begin_inset CommandInset citation
20864 \begin_layout Standard
20865 \begin_inset Note Greyedout
20868 \begin_layout Plain Layout
20877 has no effect for references to subfigures.
20885 \begin_layout Section
20887 \begin_inset CommandInset label
20889 name "sec:Float-Placement"
20897 \begin_layout Plain Layout
20906 \begin_layout Standard
20907 Right-clicking on a float-box opens a dialog where you can alter the placement
20908 options that LaTeX uses for positioning the float.
20909 \begin_inset Newline newline
20915 \begin_inset space ~
20920 is only useful for two-column documents: If you select it, the float will
20921 span across both columns on the page instead of being confined to just
20923 \begin_inset Newline newline
20929 \begin_inset space ~
20934 is used to rotate floats, see section
20935 \begin_inset CommandInset ref
20937 reference "sec:Rotated-Floats"
20944 \begin_layout Standard
20945 You can use one ore more of the following options in the float dialog to
20946 set the placement for a particular float when you uncheck the option
20949 \begin_inset space ~
20953 \begin_inset space ~
20961 \begin_layout Description
20963 \begin_inset space ~
20967 \begin_inset space ~
20970 possible try to place the float on the position where it is inserted
20973 \begin_layout Description
20975 \begin_inset space ~
20979 \begin_inset space ~
20982 page try to place the float on the top of the current page
20985 \begin_layout Description
20987 \begin_inset space ~
20991 \begin_inset space ~
20994 page try to place the float on the bottom of the current page
20997 \begin_layout Description
20999 \begin_inset space ~
21003 \begin_inset space ~
21006 floats try to place the float on an own page
21009 \begin_layout Standard
21010 The order of the above option is
21015 That means, if you use the default placement, LaTeX will first try out
21019 \begin_inset space ~
21023 \begin_inset space ~
21031 \begin_inset space ~
21035 \begin_inset space ~
21040 , and then the others.
21041 If you don't use the default, LaTeX will try only the checked options but
21043 If none of the 4 placements are possible the procedure is internally repeated
21044 but it is tried to put the float on the following page.
21047 \begin_layout Standard
21048 By default, each option has its own rules:
21051 \begin_layout Labeling
21052 \labelwidthstring 00.00.0000
21056 \begin_inset space ~
21060 \begin_inset space ~
21065 only floats occupying less than 70
21066 \begin_inset space \thinspace{}
21069 % of the page can be placed at the top of a page (
21078 \begin_layout Labeling
21079 \labelwidthstring 00.00.0000
21083 \begin_inset space ~
21087 \begin_inset space ~
21092 : only floats occupying less than 30
21093 \begin_inset space \thinspace{}
21096 % of the page can be placed at the bottom of a page.
21106 \begin_layout Labeling
21107 \labelwidthstring 00.00.0000
21111 \begin_inset space ~
21115 \begin_inset space ~
21120 : only if more than 50
21121 \begin_inset space \thinspace{}
21124 % of the page are occupied by floats, several floats can be set together
21135 \begin_layout Standard
21136 If you don't like these rules, you can ignore them by using the additional
21140 \begin_inset space ~
21144 \begin_inset space ~
21150 \begin_inset Newline newline
21153 You can also redefine the rules with LaTeX-commands that are given in parenthese
21154 s behind the rules description above.
21155 To increase for example the often too small default of the bottom-rule
21157 \begin_inset space \thinspace{}
21160 % of the page, add this line to your document preamble:
21163 \begin_layout Standard
21170 bottomfraction}{0.5}
21173 \begin_layout Standard
21174 Sometimes you might need, under all circumstances, a float to be placed
21175 exactly at the position where it is inserted.
21176 For this case you can use the option
21179 \begin_inset space ~
21185 Use this option very rarely and only if the document is nearly ready to
21187 Because the float is then no longer able to
21188 \begin_inset Quotes eld
21192 \begin_inset Quotes erd
21195 when you change your document and this will often destroy the page layout.
21198 \begin_layout Standard
21199 There are no placement options for text wrap floats, because they are always
21200 surrounded by the text of a certain paragraph.
21201 \begin_inset VSpace bigskip
21207 \begin_layout Standard
21208 Sometimes you have the problem that a float is placed at the top of a page
21209 while its corresponding section starts at the middle of the page, so that
21210 the reader could think the float is part of the previous section.
21211 To avoid this the LaTeX-command
21218 It suppresses a given float placement for the page where it is inserted
21219 and can therefore be used to avoid that floats could be set before a section
21221 To get this, add these commands to your document preamble:
21224 \begin_layout Standard
21234 \begin_inset Newline newline
21248 \begin_layout Standard
21249 You can define the same for all section headings, like chapters and subsections.
21250 This definition is not recommended to be used for small text parts like
21251 subsubsections because LaTeX may then have problems to find a suitable
21255 \begin_layout Standard
21256 \begin_inset VSpace bigskip
21259 In some cases it is required to have all figures/tables at the end of the
21261 For this purpose the LaTeX-package
21269 \begin_layout Plain Layout
21270 LaTeX-packages ! endfloat
21276 It puts all figure and table floats at the end of the document into own
21278 At the original float position a text hint like
21279 \begin_inset Quotes eld
21285 \begin_inset space ~
21291 \begin_inset Quotes erd
21295 The endfloat-package is loaded in the preamble with the line
21298 \begin_layout Standard
21303 usepackage[options]{endfloat}
21306 \begin_layout Standard
21307 There are various package options to format the created figure/table sections.
21308 For more information we refer to the
21313 \begin_inset CommandInset citation
21320 \begin_inset Newline newline
21324 \begin_inset Note Greyedout
21327 \begin_layout Plain Layout
21332 doesn't provide an automatic translation for the text hint, you have to
21333 do this manually, see section
21334 \begin_inset space ~
21338 \begin_inset CommandInset citation
21350 \begin_inset Newline newline
21354 \begin_inset Note Greyedout
21357 \begin_layout Plain Layout
21362 There is currently a bug in
21366 when the caption contains a German
21367 \begin_inset Quotes eld
21371 \begin_inset Quotes erd
21375 Use in this case the command
21376 \begin_inset Quotes eld
21386 \begin_inset Quotes erd
21389 in TeX-Code instead of
21390 \begin_inset Quotes eld
21394 \begin_inset Quotes erd
21405 \begin_layout Standard
21406 \begin_inset VSpace bigskip
21409 For more details about float placements, have a look at LaTeX books,
21410 \begin_inset CommandInset citation
21412 key "latexcompanion,latexguide,latexbook"
21419 \begin_layout Section
21421 \begin_inset CommandInset label
21423 name "sec:Rotated-Floats"
21431 \begin_layout Plain Layout
21440 \begin_layout Standard
21441 Especially for wide tables you might have floats rotated.
21442 To rotate a whole float including the caption, right-click on the float-box
21446 \begin_inset space ~
21454 \begin_layout Standard
21455 Rotated floats are always placed on its own page (or column, in case you
21456 have a multi-column document).
21457 You can let them span several columns using the float settings option
21460 \begin_inset space ~
21466 Floats are rotated so that you can read them from the outside margin.
21467 To force a certain rotation direction for all pages, you can add either
21476 to the document class options.
21479 \begin_layout Standard
21480 Referencing rotated floats is the same like for normal floats, the caption
21481 format is also the same: Table
21482 \begin_inset space ~
21486 \begin_inset CommandInset ref
21488 reference "tab:Rotated-table"
21492 is an example of a rotated table float.
21495 \begin_layout Standard
21496 \begin_inset Note Greyedout
21499 \begin_layout Plain Layout
21504 Not all DVI-viewers are able to display rotated floats.
21512 \begin_layout Standard
21513 \begin_inset Float table
21518 \begin_layout Plain Layout
21519 \begin_inset Caption
21521 \begin_layout Plain Layout
21522 \begin_inset CommandInset label
21524 name "tab:Rotated-table"
21536 \begin_layout Plain Layout
21538 \begin_inset Tabular
21539 <lyxtabular version="3" rows="1" columns="5">
21541 <column alignment="center" valignment="top" width="0">
21542 <column alignment="center" valignment="top" width="0">
21543 <column alignment="center" valignment="top" width="0">
21544 <column alignment="center" valignment="top" width="0">
21545 <column alignment="center" valignment="top" width="0">
21547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21550 \begin_layout Plain Layout
21556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21559 \begin_layout Plain Layout
21565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21568 \begin_layout Plain Layout
21574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21577 \begin_layout Plain Layout
21583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21586 \begin_layout Plain Layout
21605 \begin_layout Section
21610 \begin_layout Plain Layout
21619 \begin_layout Standard
21620 Subfloats are for example used when a figure consists of several images.
21621 They are created by inserting a float to an existing float.
21622 The placement of the subfloats can be controlled like for paragraphs as
21624 \begin_inset space ~
21628 \begin_inset CommandInset ref
21630 reference "tab:Two-subtables-side"
21635 \begin_inset CommandInset ref
21637 reference "tab:Two-subtables-upon"
21644 \begin_layout Standard
21645 Referencing subfloats works as for normal floats: Table
21646 \begin_inset space ~
21650 \begin_inset CommandInset ref
21652 reference "tab:This-is-subtable-a"
21657 \begin_inset CommandInset ref
21659 reference "tab:This-is-subtable-b"
21663 are subtables of table
21664 \begin_inset space ~
21668 \begin_inset CommandInset ref
21670 reference "tab:Two-subtables-side"
21677 \begin_layout Standard
21678 \begin_inset Float table
21683 \begin_layout Plain Layout
21684 \begin_inset Caption
21686 \begin_layout Plain Layout
21687 \begin_inset CommandInset label
21689 name "tab:Two-subtables-side"
21693 Two subtables placed side by side.
21701 \begin_layout Plain Layout
21703 \begin_inset space \hfill{}
21707 \begin_inset Float table
21712 \begin_layout Plain Layout
21713 \begin_inset Caption
21715 \begin_layout Plain Layout
21716 \begin_inset CommandInset label
21718 name "tab:This-is-subtable-a"
21722 This is subtable a.
21730 \begin_layout Plain Layout
21732 \begin_inset Tabular
21733 <lyxtabular version="3" rows="1" columns="5">
21735 <column alignment="center" valignment="top" width="0">
21736 <column alignment="center" valignment="top" width="0">
21737 <column alignment="center" valignment="top" width="0">
21738 <column alignment="center" valignment="top" width="0">
21739 <column alignment="center" valignment="top" width="0">
21741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21744 \begin_layout Plain Layout
21750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21753 \begin_layout Plain Layout
21759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21762 \begin_layout Plain Layout
21768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21771 \begin_layout Plain Layout
21777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21780 \begin_layout Plain Layout
21797 \begin_inset space \hfill{}
21801 \begin_inset Float table
21806 \begin_layout Plain Layout
21807 \begin_inset Caption
21809 \begin_layout Plain Layout
21810 \begin_inset CommandInset label
21812 name "tab:This-is-subtable-b"
21816 This is subtable b.
21824 \begin_layout Plain Layout
21826 \begin_inset Tabular
21827 <lyxtabular version="3" rows="1" columns="5">
21829 <column alignment="center" valignment="top" width="0">
21830 <column alignment="center" valignment="top" width="0">
21831 <column alignment="center" valignment="top" width="0">
21832 <column alignment="center" valignment="top" width="0">
21833 <column alignment="center" valignment="top" width="0">
21835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21838 \begin_layout Plain Layout
21844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21847 \begin_layout Plain Layout
21853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21856 \begin_layout Plain Layout
21862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21865 \begin_layout Plain Layout
21871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21874 \begin_layout Plain Layout
21891 \begin_inset space \hfill{}
21902 \begin_layout Standard
21903 \begin_inset Float table
21908 \begin_layout Plain Layout
21909 \begin_inset Caption
21911 \begin_layout Plain Layout
21912 \begin_inset CommandInset label
21914 name "tab:Two-subtables-upon"
21918 Two subtables placed one upon the other.
21919 (a) table with 4 cells, (b) table with 5 cells.
21927 \begin_layout Plain Layout
21929 \begin_inset Float table
21934 \begin_layout Plain Layout
21935 \begin_inset Caption
21937 \begin_layout Plain Layout
21946 \begin_layout Plain Layout
21948 \begin_inset Tabular
21949 <lyxtabular version="3" rows="1" columns="4">
21951 <column alignment="center" valignment="top" width="0">
21952 <column alignment="center" valignment="top" width="0">
21953 <column alignment="center" valignment="top" width="0">
21954 <column alignment="center" valignment="top" width="0">
21956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21959 \begin_layout Plain Layout
21965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21968 \begin_layout Plain Layout
21974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21977 \begin_layout Plain Layout
21983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21986 \begin_layout Plain Layout
22005 \begin_layout Plain Layout
22007 \begin_inset Float table
22012 \begin_layout Plain Layout
22013 \begin_inset Caption
22015 \begin_layout Plain Layout
22024 \begin_layout Plain Layout
22026 \begin_inset Tabular
22027 <lyxtabular version="3" rows="1" columns="5">
22029 <column alignment="center" valignment="top" width="0">
22030 <column alignment="center" valignment="top" width="0">
22031 <column alignment="center" valignment="top" width="0">
22032 <column alignment="center" valignment="top" width="0">
22033 <column alignment="center" valignment="top" width="0">
22035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22038 \begin_layout Plain Layout
22044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22047 \begin_layout Plain Layout
22053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22056 \begin_layout Plain Layout
22062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22065 \begin_layout Plain Layout
22071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22074 \begin_layout Plain Layout
22098 \begin_layout Section
22099 Floats Side by Side
22103 \begin_layout Plain Layout
22104 Floats ! Side by side
22112 \begin_layout Standard
22113 To place floats side by side, like for Figure
22114 \begin_inset space ~
22118 \begin_inset CommandInset ref
22120 reference "fig:Float-left"
22125 \begin_inset CommandInset ref
22127 reference "fig:Float-right"
22136 In it two minipage boxes are inserted.
22140 \begin_layout Plain Layout
22141 Minipages are explained in section
22142 \begin_inset space ~
22146 \begin_inset CommandInset ref
22148 reference "sec:Minipages"
22157 The width is set to 45
22158 \begin_inset space \thinspace{}
22162 \begin_inset space \thinspace{}
22165 column% and the box alignment to
22170 The minipage boxes contain the image and the caption in the same way as
22171 they are in a float.
22172 The only difference is that the image unit
22175 \begin_inset space ~
22179 \begin_inset space ~
22184 is now calculated according to the width of the minipage boxes.
22187 \begin_layout Standard
22188 \begin_inset Float figure
22193 \begin_layout Plain Layout
22194 \begin_inset Box Frameless
22203 height_special "totalheight"
22206 \begin_layout Plain Layout
22208 \begin_inset Graphics
22209 filename clipart/mobius.eps
22212 scaleBeforeRotation
22219 \begin_layout Plain Layout
22220 \begin_inset Caption
22222 \begin_layout Plain Layout
22223 \begin_inset CommandInset label
22225 name "fig:Float-left"
22229 Float on the left side.
22240 \begin_inset space \hfill{}
22244 \begin_inset Box Frameless
22253 height_special "totalheight"
22256 \begin_layout Plain Layout
22258 \begin_inset Graphics
22259 filename clipart/platypus.eps
22262 scaleBeforeRotation
22269 \begin_layout Plain Layout
22270 \begin_inset Caption
22272 \begin_layout Plain Layout
22273 \begin_inset CommandInset label
22275 name "fig:Float-right"
22279 Float on the right side.
22292 \begin_layout Plain Layout
22301 \begin_layout Section
22306 \begin_layout Plain Layout
22307 Caption ! Formatting
22316 \begin_layout Plain Layout
22317 Floats ! Caption Formatting
22323 \begin_inset CommandInset label
22325 name "sec:Caption-Formatting"
22332 \begin_layout Standard
22337 environment is the default paragraph environment for
22342 On the LyX screen captions appear as label, e.
22343 \begin_inset space \thinspace{}
22347 \begin_inset space \space{}
22351 \begin_inset Quotes eld
22359 \begin_inset Quotes erd
22362 followed by the caption text.
22364 \begin_inset Quotes eld
22368 \begin_inset Quotes erd
22371 is the actual reference number.
22372 By default the label and the number are in the same font as the caption
22373 text and a colon follows the number to divide the label from the text.
22374 This caption format is not suitable for all document formats.
22378 \begin_layout Standard
22379 To change the default caption format, load the LaTeX-package
22387 \begin_layout Plain Layout
22388 LaTeX-packages ! caption
22393 in the document preamble with this line:
22396 \begin_layout Standard
22401 usepackage[format definition]{caption}
22404 \begin_layout Standard
22405 To have for example the label and the number in sans-serif bold font and
22406 the table captions always above the table like in this document, use the
22410 \begin_layout Standard
22415 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22418 \begin_layout Standard
22419 You can also define different caption formats for the different float types.
22420 In this case load the
22424 package without format specific options and define the different formats
22425 with the help of the command
22428 \begin_layout Standard
22433 captionsetup[float type]{format definition}
22436 \begin_layout Standard
22437 in the document preamble.
22438 For example the caption formats of Figure
22439 \begin_inset space ~
22443 \begin_inset CommandInset ref
22445 reference "fig:This-is-an-fig"
22450 \begin_inset space ~
22454 \begin_inset CommandInset ref
22456 reference "tab:This-is-an-tab"
22460 can be created using these commands in the document preamble:
22463 \begin_layout Standard
22468 usepackage[tableposition=top]{caption}
22471 \begin_inset Newline newline
22478 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22479 \begin_inset Newline newline
22486 \begin_layout Plain Layout
22494 captionsetup[figure]
22502 \begin_inset Newline newline
22507 captionsetup[table]{labelfont={bf,sf}}
22510 \begin_layout Standard
22511 \begin_inset Note Greyedout
22514 \begin_layout Plain Layout
22523 has no effect when a
22531 \begin_layout Plain Layout
22532 LaTeX-packages ! KOMA-script
22537 document class is used.
22538 In this case the document class option
22550 \begin_layout Standard
22551 For more information about the package
22555 we refer to its documentation
22556 \begin_inset CommandInset citation
22565 \begin_layout Standard
22566 To change the label name from e.
22567 \begin_inset space \thinspace{}
22571 \begin_inset space \space{}
22575 \begin_inset Quotes eld
22579 \begin_inset Quotes erd
22583 \begin_inset Quotes eld
22587 \begin_inset Quotes erd
22590 use this preamble command:
22593 \begin_layout Standard
22600 fnum@figure}{Image~
22605 \begin_layout Standard
22612 inserts the figure number and
22615 \begin_inset Quotes eld
22621 \begin_inset Quotes erd
22624 creates a protected space.
22627 \begin_layout Standard
22628 \begin_inset VSpace bigskip
22639 \begin_layout Plain Layout
22640 LaTeX-packages ! KOMA-script
22647 article (KOMA-script)
22655 letter (KOMA-script)
22659 report (KOMA-script)
22662 \begin_inset space \thinspace{}
22665 ), you can alternatively to the
22673 's built-in command
22680 For example, to have the caption label in bold, add this command to your
22684 \begin_layout Standard
22689 setkomafont{captionlabel}{
22694 \begin_layout Standard
22695 For more information about
22706 \begin_inset CommandInset citation
22715 \begin_layout Standard
22719 \begin_layout Plain Layout
22723 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22730 \begin_inset Note Note
22733 \begin_layout Plain Layout
22734 The caption format is changed only for this example.
22742 \begin_layout Standard
22743 \begin_inset Float figure
22749 \begin_layout Plain Layout
22751 \begin_inset Graphics
22752 filename clipart/mobius.eps
22755 scaleBeforeRotation
22762 \begin_layout Plain Layout
22763 \begin_inset Caption
22765 \begin_layout Plain Layout
22766 \begin_inset CommandInset label
22768 name "fig:This-is-an-fig"
22772 This is an example figure caption that is longer than one line to show the
22773 different caption format.
22774 Here a self-defined caption format is used.
22787 \begin_layout Standard
22791 \begin_layout Plain Layout
22795 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22804 \begin_layout Standard
22805 \begin_inset Float table
22811 \begin_layout Plain Layout
22812 \begin_inset Caption
22814 \begin_layout Plain Layout
22815 \begin_inset CommandInset label
22817 name "tab:This-is-an-tab"
22821 This is an example table caption that is longer than one line to show the
22822 different caption format.
22823 Here the standard caption format for tables in this document is used.
22831 \begin_layout Plain Layout
22833 \begin_inset Tabular
22834 <lyxtabular version="3" rows="1" columns="5">
22836 <column alignment="center" valignment="top" width="0">
22837 <column alignment="center" valignment="top" width="0">
22838 <column alignment="center" valignment="top" width="0">
22839 <column alignment="center" valignment="top" width="0">
22840 <column alignment="center" valignment="top" width="0">
22842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22845 \begin_layout Plain Layout
22851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22854 \begin_layout Plain Layout
22860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22863 \begin_layout Plain Layout
22869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22872 \begin_layout Plain Layout
22878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22881 \begin_layout Plain Layout
22900 \begin_layout Section
22905 \begin_layout Plain Layout
22906 Caption ! Placement
22915 \begin_layout Plain Layout
22916 Floats ! Caption Placement
22922 \begin_inset CommandInset label
22924 name "sec:Caption-Placement"
22931 \begin_layout Standard
22932 The common caption placement rule is:
22935 \begin_layout Description
22936 Figure: Caption is set below the figure
22939 \begin_layout Description
22940 Table: Caption is set above the table
22943 \begin_layout Standard
22944 Having the caption above the table is unfortunately not supported in LaTeX's
22946 That means if you are using the document classes
22962 there will be no space between the caption and the table.
22963 To insert the needed space, add the following option to the load command
22964 of the LaTeX-package
22968 in your document preamble
22972 \begin_layout Plain Layout
22974 \begin_inset space ~
22978 \begin_inset CommandInset ref
22980 reference "sec:Caption-Formatting"
22984 for more information of the package
22996 \begin_layout Standard
23002 \begin_layout Standard
23011 \begin_layout Plain Layout
23012 LaTeX-packages ! KOMA-script
23019 article (KOMA-script)
23027 letter (KOMA-script)
23031 report (KOMA-script)
23034 \begin_inset space \thinspace{}
23037 ), you can alternatively to the
23041 package set the document class option
23048 \begin_layout Standard
23049 \begin_inset VSpace bigskip
23052 It is also possible to set the caption beside a figure or table.
23053 To get this the LaTeX-package
23061 \begin_layout Plain Layout
23062 LaTeX-packages ! sidecap
23067 has to be loaded in the document preamble with the line
23070 \begin_layout Standard
23075 usepackage[option]{sidecap}
23078 \begin_layout Standard
23079 If you set no option, the caption is placed on the side of the outer page
23080 margin – to the right on odd pages, to the left on even pages.
23081 You can change the placement to inner margin with the option
23086 To force the placement always to the right or left, use the option
23097 \begin_layout Standard
23101 \begin_layout Plain Layout
23111 \begin_inset Note Note
23114 \begin_layout Plain Layout
23115 The following section will only be displayed when the LaTeX-package
23127 \begin_layout Standard
23128 To place in LyX the caption of a float on the side, it is necessary to add
23129 these commands to the document preamble:
23132 \begin_layout Standard
23138 \begin_layout Standard
23146 \begin_inset Newline newline
23153 \begin_layout Plain Layout
23169 \begin_inset Newline newline
23176 \begin_layout Plain Layout
23192 \begin_inset Newline newline
23199 \begin_layout Plain Layout
23210 renewenvironment{table}{
23217 \begin_layout Standard
23225 \begin_inset Newline newline
23232 \begin_layout Plain Layout
23248 \begin_inset Newline newline
23255 \begin_layout Plain Layout
23273 \begin_layout Standard
23281 \begin_inset Newline newline
23288 \begin_layout Plain Layout
23304 \begin_inset Newline newline
23311 \begin_layout Plain Layout
23327 \begin_inset Newline newline
23334 \begin_layout Plain Layout
23345 renewenvironment{figure}{
23352 \begin_layout Standard
23360 \begin_inset Newline newline
23367 \begin_layout Plain Layout
23383 \begin_inset Newline newline
23390 \begin_layout Plain Layout
23408 \begin_layout Standard
23414 \begin_layout Standard
23415 The commands allow you to redefine the floats so that the caption is set
23417 For figure floats use the command
23420 \begin_layout Standard
23428 \begin_layout Standard
23429 in TeX-Code before the float.
23430 Behind the float insert the command
23433 \begin_layout Standard
23441 \begin_layout Standard
23442 in TeX-Code to get back to the original float definition.
23445 \begin_layout Standard
23446 For table floats use the corresponding commands
23449 \begin_layout Standard
23463 \begin_layout Standard
23465 \begin_inset space ~
23469 \begin_inset CommandInset ref
23471 reference "fig:cap-beside-fig"
23476 \begin_inset space ~
23480 \begin_inset CommandInset ref
23482 reference "tab:cap-beside-tab"
23486 are examples where the caption is set beside.
23489 \begin_layout Standard
23490 You can see in the examples that the caption text appears at the top of
23491 the floats for table floats and at the bottom for figure floats.
23492 To change this, you can use the command
23495 \begin_layout Standard
23500 sidecaptionvpos{float type}{placement}
23503 \begin_layout Standard
23504 in the document preamble or in TeX-Code before the float.
23505 The float type is either
23513 , the placement can be
23514 \begin_inset Quotes eld
23522 \begin_inset Quotes erd
23526 \begin_inset Quotes eld
23534 \begin_inset Quotes erd
23538 \begin_inset Quotes eld
23546 \begin_inset Quotes erd
23550 To have for example the caption of figure floats vertically centered, use
23554 \begin_layout Standard
23559 sidecaptionvpos{figure}{c}
23562 \begin_layout Standard
23563 This was used for Figure
23564 \begin_inset space ~
23568 \begin_inset CommandInset ref
23570 reference "fig:cap-beside-fig-2"
23577 \begin_layout Standard
23578 \begin_inset VSpace medskip
23581 For more information about the package
23585 we refer to its documentation
23586 \begin_inset CommandInset citation
23595 \begin_layout Standard
23596 \begin_inset Note Greyedout
23599 \begin_layout Plain Layout
23612 \begin_layout Plain Layout
23613 LaTeX-packages ! hypcap
23618 , described in section
23619 \begin_inset space ~
23623 \begin_inset CommandInset ref
23625 reference "sub:Reference-Position"
23629 , has no effect on floats with the caption set beside.
23637 \begin_layout Standard
23641 \begin_layout Plain Layout
23653 \begin_layout Standard
23654 \begin_inset Float figure
23659 \begin_layout Plain Layout
23660 \begin_inset Graphics
23661 filename clipart/escher-lsd.eps
23663 scaleBeforeRotation
23670 \begin_layout Plain Layout
23671 \begin_inset Caption
23673 \begin_layout Plain Layout
23674 \begin_inset CommandInset label
23676 name "fig:cap-beside-fig"
23680 This is a caption beside a figure.
23693 \begin_layout Standard
23697 \begin_layout Plain Layout
23709 \begin_layout Standard
23710 \begin_inset Float table
23715 \begin_layout Plain Layout
23716 \begin_inset Caption
23718 \begin_layout Plain Layout
23719 \begin_inset CommandInset label
23721 name "tab:cap-beside-tab"
23725 This is a caption beside a table.
23733 \begin_layout Plain Layout
23734 \begin_inset Tabular
23735 <lyxtabular version="3" rows="4" columns="5">
23737 <column alignment="center" valignment="top" width="0">
23738 <column alignment="center" valignment="top" width="0">
23739 <column alignment="center" valignment="top" width="0">
23740 <column alignment="center" valignment="top" width="0">
23741 <column alignment="center" valignment="top" width="0">
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23746 \begin_layout Plain Layout
23752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23755 \begin_layout Plain Layout
23761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23764 \begin_layout Plain Layout
23770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23773 \begin_layout Plain Layout
23779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23782 \begin_layout Plain Layout
23790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23793 \begin_layout Plain Layout
23799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23802 \begin_layout Plain Layout
23808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23811 \begin_layout Plain Layout
23817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23820 \begin_layout Plain Layout
23826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23829 \begin_layout Plain Layout
23837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23840 \begin_layout Plain Layout
23846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23849 \begin_layout Plain Layout
23855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23858 \begin_layout Plain Layout
23864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23867 \begin_layout Plain Layout
23873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23876 \begin_layout Plain Layout
23884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23887 \begin_layout Plain Layout
23893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23896 \begin_layout Plain Layout
23902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23905 \begin_layout Plain Layout
23911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23914 \begin_layout Plain Layout
23920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23923 \begin_layout Plain Layout
23942 \begin_layout Standard
23946 \begin_layout Plain Layout
23958 \begin_layout Standard
23962 \begin_layout Plain Layout
23966 sidecaptionvpos{figure}{c}
23972 \begin_inset Float figure
23977 \begin_layout Plain Layout
23978 \begin_inset Graphics
23979 filename clipart/escher-lsd.eps
23981 scaleBeforeRotation
23988 \begin_layout Plain Layout
23989 \begin_inset Caption
23991 \begin_layout Plain Layout
23992 \begin_inset CommandInset label
23994 name "fig:cap-beside-fig-2"
23998 This is a vertically centered caption beside a figure.
24011 \begin_layout Standard
24015 \begin_layout Plain Layout
24027 \begin_layout Standard
24031 \begin_layout Plain Layout
24041 \begin_inset Note Note
24044 \begin_layout Plain Layout
24045 The following will be displayed when the LaTeX-package
24057 \begin_layout Standard
24058 You need to install the LaTeX-package
24062 to see the following part of this section in the output.
24065 \begin_layout Standard
24069 \begin_layout Plain Layout
24081 \begin_layout Section
24086 \begin_layout Plain Layout
24087 Floats ! Float Lists
24095 \begin_layout Standard
24096 Similar to the the table of contents where the sections of the document
24097 are listed, there are listings for all float types, like the figures of
24099 You can insert them via the
24101 Insert\SpecialChar \menuseparator
24103 \begin_inset space ~
24107 \begin_inset space ~
24115 \begin_layout Standard
24116 The list entries are the float captions or its short title, the float number,
24117 and the page number where they appear in the document.
24120 \begin_layout Standard
24121 You can find the list of figures and tables at the end of this document.
24124 \begin_layout Chapter
24128 \begin_layout Section
24133 \begin_layout Plain Layout
24142 \begin_layout Standard
24143 Notes are inserted with the toolbar button
24144 \begin_inset Graphics
24145 filename ../images/note-insert.png
24147 scaleBeforeRotation
24153 Insert\SpecialChar \menuseparator
24157 There are three types of notes:
24160 \begin_layout Description
24162 \begin_inset space ~
24165 Note This note type is for internal notes that won't appear in the output.
24166 Its note-box looks like this:
24167 \begin_inset Newline newline
24171 \begin_inset Newline newline
24175 \begin_inset Graphics
24176 filename clipart/LyXNoteImageQt4.png
24179 scaleBeforeRotation
24184 \begin_inset Note Note
24187 \begin_layout Plain Layout
24188 This is text in a note box that doesn't appear in the output.
24196 \begin_layout Description
24197 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24198 ent, when you export the document to LaTeX via the menu
24200 File\SpecialChar \menuseparator
24201 Export\SpecialChar \menuseparator
24202 LaTeX (pdflatex) / (plain)
24205 Its note-box looks like this:
24206 \begin_inset Newline newline
24210 \begin_inset Newline newline
24214 \begin_inset Graphics
24215 filename clipart/CommentNoteImageQt4.png
24218 scaleBeforeRotation
24223 \begin_inset Note Comment
24226 \begin_layout Plain Layout
24227 This is text in a note box that only appears as comment in LaTeX-files.
24235 \begin_layout Description
24237 \begin_inset space ~
24240 Out This note will appear in the output as grey text.
24241 Its note-box looks like this:
24242 \begin_inset Newline newline
24246 \begin_inset Newline newline
24250 \begin_inset Graphics
24251 filename clipart/GreyedOutNoteImageQt4.png
24254 scaleBeforeRotation
24259 \begin_inset Newline newline
24266 \begin_layout Plain Layout
24270 renewenvironment{lyxgreyedout}
24273 \begin_layout Plain Layout
24277 textcolor[gray]{0.8}
24287 \begin_inset Note Greyedout
24290 \begin_layout Plain Layout
24295 \begin_layout Plain Layout
24296 This is an example footnote within a greyed out note.
24301 of a comment that appears in the output as grey text.
24310 \begin_layout Plain Layout
24314 renewenvironment{lyxgreyedout}
24317 \begin_layout Plain Layout
24331 \begin_inset Note Note
24334 \begin_layout Plain Layout
24335 The greyed out note is here redefined to show it with the original LyX definitio
24336 n because greyed out notes are redefined in the preamble of this document,
24337 as described below, to have blue text.
24343 \begin_inset Newline newline
24347 \begin_inset Newline newline
24350 As you can see in the example, the first line of greyed out notes is a bit
24351 indented and greyed out notes can have footnotes.
24354 \begin_layout Standard
24355 \begin_inset VSpace bigskip
24358 When you use the toolbar button
24359 \begin_inset Graphics
24360 filename ../images/note-insert.png
24362 scaleBeforeRotation
24369 \begin_inset space ~
24375 You can switch between the five note types by right-clicking on the note-box.
24380 If you want to turn existing text into a note, mark it and click on the
24394 To change a note to text, press the backspace key when the cursor is in
24395 the first position of a note, or press the deletey key when the cursor
24396 is in the very last position of the note, respectively.
24399 \begin_layout Standard
24400 \begin_inset VSpace bigskip
24403 You can change the text color of the greyed out notes in the preamble with
24404 the following command:
24407 \begin_layout Standard
24412 renewenvironment{lyxgreyedout}
24413 \begin_inset Newline newline
24420 \begin_layout Plain Layout
24438 \begin_layout Standard
24439 The available colors and the method to define own colors is explained in
24441 \begin_inset space ~
24445 \begin_inset CommandInset ref
24447 reference "sec:Colored-Tables"
24454 \begin_layout Standard
24455 Notes that appear in blue in this document are set using greyed out notes
24459 \begin_layout Section
24461 \begin_inset CommandInset label
24463 name "sec:Footnotes"
24471 \begin_layout Plain Layout
24481 \begin_layout Plain Layout
24490 \begin_layout Standard
24491 Footnotes can be inserted using the toolbar button
24492 \begin_inset Graphics
24493 filename ../images/footnote-insert.png
24495 scaleBeforeRotation
24501 Insert\SpecialChar \menuseparator
24513 then the following footnote-box:
24514 \begin_inset Graphics
24515 filename clipart/footnoteQt4.png
24517 scaleBeforeRotation
24525 where you can enter the footnote text.
24526 If you want to turn existing text into a footnote, mark it and click on
24548 to text, press the Backspace key when the cursor is in the first position
24557 , or press the Delete key when the cursor is in the very last position of
24569 \begin_layout Standard
24570 Here is an example footnote:
24578 \begin_layout Plain Layout
24579 \begin_inset CommandInset label
24581 name "foot:This-is-an"
24585 This is an example footnote.
24598 \begin_layout Plain Layout
24602 newcounter{MyRepeatFoot}
24605 \begin_layout Plain Layout
24609 setcounter{MyRepeatFoot}{
24619 \begin_layout Standard
24620 The footnote will appear in the output as a superscript number at the text
24621 position where the footnote box is placed.
24622 The footnote text is placed at the bottom of the current page.
24623 The footnote number is calculated by LaTeX, the numbers are consecutive.
24624 It depends on your document-class, if the footnote number is reset for
24628 \begin_layout Standard
24629 Footnotes can be referenced like floats: Insert a label into the footnote
24630 and cross-reference this label in the text as described in section
24631 \begin_inset space ~
24635 \begin_inset CommandInset ref
24637 reference "sec:Referencing-Floats"
24642 \begin_inset Newline newline
24645 This is a cross-reference of Footnote
24646 \begin_inset space ~
24650 \begin_inset CommandInset ref
24652 reference "foot:This-is-an"
24659 \begin_layout Standard
24660 \begin_inset VSpace defskip
24663 To use footnotes within tables, you have to use minipages, see section
24664 \begin_inset space ~
24668 \begin_inset CommandInset ref
24670 reference "sec:Minipages"
24675 Footnotes within longtables are described in section
24676 \begin_inset space ~
24680 \begin_inset CommandInset ref
24682 reference "sub:Footnotes-in-Longtables"
24689 \begin_layout Standard
24690 \begin_inset VSpace defskip
24693 To create only a mark for a footnote, use the command
24697 footnotemark[number]
24700 This is used when you have the same annotation several times in a text
24701 but doesn't want to print the footnote text every time.
24702 \begin_inset Newline newline
24705 As you don't know the number of the repeating footnote while you are writing
24706 the text, you have to store its number.
24707 For the following footnote mark example, these commands were inserted in
24708 TeX-Code behind Footnote
24709 \begin_inset space ~
24713 \begin_inset CommandInset ref
24715 reference "foot:This-is-an"
24719 to store the footnote number:
24722 \begin_layout Standard
24727 newcounter{MyRepeatFoot}
24728 \begin_inset Newline newline
24733 setcounter{MyRepeatFoot}{
24738 \begin_layout Standard
24739 The footnote mark was then created with this command:
24742 \begin_layout Standard
24752 \begin_layout Standard
24753 Here is an example footnote mark:
24761 \begin_layout Plain Layout
24775 \begin_layout Subsection
24777 \begin_inset CommandInset label
24779 name "sub:Footnote-Numbering"
24787 \begin_layout Plain Layout
24788 Footnotes ! Numbering
24796 \begin_layout Standard
24797 To reset the footnote number back to 1 after each section
24799 , add this command to your document preamble:
24802 \begin_layout Standard
24807 @addtoreset{footnote}{section}
24810 \begin_layout Standard
24811 \begin_inset VSpace bigskip
24814 The following preamble command changes the footnote numbering style to small
24818 \begin_layout Standard
24830 \begin_layout Standard
24834 \begin_layout Plain Layout
24847 This is a footnote with roman numbering:
24851 \begin_layout Plain Layout
24852 This is an example footnote with roman numbering.
24860 \begin_layout Standard
24861 To change the numbering style to capital roman numerals replace in the command
24876 \begin_inset Quotes eld
24880 \begin_inset Quotes erd
24883 footnotes with capital or small Latin letters use
24897 \begin_inset Quotes eld
24901 \begin_inset Quotes erd
24904 footnotes with symbols use
24913 \begin_layout Standard
24914 \begin_inset Note Greyedout
24917 \begin_layout Plain Layout
24922 You can only number 26 footnotes with Latin letters, because this numbering
24923 is limited to single letters.
24929 \begin_inset Newline newline
24933 \begin_inset Note Greyedout
24936 \begin_layout Plain Layout
24941 You can only number 9 footnotes with symbols.
24949 \begin_layout Standard
24950 To return to the default numbering style when you changed to another one,
24963 in the command above.
24967 \begin_layout Plain Layout
24983 \begin_layout Standard
24984 \begin_inset VSpace bigskip
24990 \begin_layout Standard
24991 If you want to have footnotes numbered in the scheme
24992 \begin_inset Quotes eld
24996 \begin_inset Quotes erd
24999 , add the following command to your document preamble:
25002 \begin_layout Standard
25007 numberwithin{footnote}{chapter}
25010 \begin_layout Standard
25011 To be able to use the command
25020 \begin_inset space ~
25025 in the document settings the option
25028 \begin_inset space ~
25032 \begin_inset space ~
25036 \begin_inset space ~
25044 \begin_layout Standard
25048 \begin_layout Plain Layout
25052 numberwithin{footnote}{chapter}
25057 This is another example footnote:
25063 \begin_layout Plain Layout
25064 This is a footnote numbered in the scheme
25065 \begin_inset Quotes eld
25069 \begin_inset Quotes erd
25083 \begin_layout Plain Layout
25099 \begin_layout Standard
25100 \begin_inset Note Greyedout
25103 \begin_layout Plain Layout
25114 always prints out the footnote number as arabic number; previous redefinitions
25115 to get non-arabic numbers are overwritten.
25123 \begin_layout Standard
25124 So to get for example the scheme
25125 \begin_inset Quotes eld
25131 \begin_inset Quotes erd
25134 , use this command instead of
25143 \begin_layout Standard
25157 \begin_layout Subsection
25162 \begin_layout Plain Layout
25163 Footnotes ! Placement
25171 \begin_layout Standard
25172 If you have several footnotes in one page, they appear without vertical
25173 space between them at the bottom of the page.
25174 To make them better readable you can e.
25175 \begin_inset space \thinspace{}
25179 \begin_inset space \space{}
25183 \begin_inset space \thinspace{}
25186 mm space with the following preamble command:
25189 \begin_layout Standard
25199 \begin_inset Newline newline
25213 \begin_layout Standard
25214 \begin_inset VSpace bigskip
25217 In a two-column document the footnotes appear at the bottom of every column,
25219 \begin_inset space ~
25223 \begin_inset CommandInset ref
25225 reference "fig:Standard-footnote-placement"
25230 If the footnotes should only appear at the bottom of the right column,
25232 \begin_inset space ~
25236 \begin_inset CommandInset ref
25238 reference "fig:Footnote-placement-in"
25242 , use the LaTeX-package
25250 \begin_layout Plain Layout
25251 LaTeX-packages ! ftnright
25256 with this command in the document preamble:
25259 \begin_layout Standard
25264 usepackage{ftnright}
25267 \begin_layout Standard
25268 \begin_inset Float figure
25274 \begin_layout Plain Layout
25278 \begin_layout Plain Layout
25288 \begin_inset Graphics
25289 filename clipart/without_fntright.pdf
25291 scaleBeforeRotation
25299 \begin_layout Plain Layout
25309 \begin_layout Plain Layout
25310 \begin_inset Caption
25312 \begin_layout Plain Layout
25313 \begin_inset CommandInset label
25315 name "fig:Standard-footnote-placement"
25319 Standard footnote placement in two-column documents.
25332 \begin_layout Standard
25333 \begin_inset Float figure
25339 \begin_layout Plain Layout
25343 \begin_layout Plain Layout
25353 \begin_inset Graphics
25354 filename clipart/with_fntright.pdf
25356 scaleBeforeRotation
25364 \begin_layout Plain Layout
25374 \begin_layout Plain Layout
25375 \begin_inset Caption
25377 \begin_layout Plain Layout
25378 \begin_inset CommandInset label
25380 name "fig:Footnote-placement-in"
25384 Footnote placement in two-column documents when the LaTeX-package
25401 \begin_layout Standard
25402 \begin_inset VSpace bigskip
25405 In some scientific literature it is usual to collect the footnotes and print
25406 them in a separate paragraph at the the end of a section, like in Figure
25407 \begin_inset space ~
25411 \begin_inset CommandInset ref
25413 reference "fig:Endnotes"
25418 They are then so called
25419 \begin_inset Quotes eld
25423 \begin_inset Quotes erd
25430 \begin_layout Plain Layout
25436 To use endnotes instead of footnotes in your document, load in the menu
25439 Document\SpecialChar \menuseparator
25440 Settings\SpecialChar \menuseparator
25446 \begin_inset space ~
25450 \begin_inset space ~
25456 To insert the collected footnotes, insert the command
25459 \begin_layout Standard
25467 \begin_layout Standard
25468 in TeX-Code at the the end of a section or chapter.
25471 \begin_layout Standard
25472 \begin_inset Float figure
25477 \begin_layout Plain Layout
25482 \begin_layout Plain Layout
25492 \begin_inset Graphics
25493 filename clipart/endnotes.pdf
25494 scaleBeforeRotation
25502 \begin_layout Plain Layout
25512 \begin_layout Plain Layout
25513 \begin_inset Caption
25515 \begin_layout Plain Layout
25516 \begin_inset CommandInset label
25518 name "fig:Endnotes"
25522 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25536 \begin_layout Standard
25537 \begin_inset VSpace medskip
25540 The paragraph heading for the endnotes isn't automatically translated into
25541 the document language, this must be done manually.
25542 The following preamble command translate the default English name
25543 \begin_inset Quotes eld
25547 \begin_inset Quotes erd
25550 to the German translation
25551 \begin_inset Quotes eld
25555 \begin_inset Quotes erd
25561 \begin_layout Standard
25568 notesname}{Anmerkungen}
25571 \begin_layout Standard
25572 \begin_inset VSpace medskip
25575 The numbering of endnotes can be changed like the footnote numbering as
25576 described in section
25577 \begin_inset space ~
25581 \begin_inset CommandInset ref
25583 reference "sub:Footnote-Numbering"
25587 ; just replace the command
25600 To reset the endnote number use the command
25606 as described in section
25607 \begin_inset space ~
25611 \begin_inset CommandInset ref
25613 reference "sub:Footnote-Numbering"
25617 and replace the command parameter
25628 \begin_layout Standard
25629 To create only a mark for an endnote, use the command
25633 endnotemark[number]
25635 similar to the command
25641 , described in section
25642 \begin_inset space ~
25646 \begin_inset CommandInset ref
25648 reference "sec:Footnotes"
25655 \begin_layout Standard
25656 \begin_inset VSpace bigskip
25659 Footnotes can also be placed in the page margin and the footnote text alignment
25660 can be changed, see the LaTeX-package
25668 \begin_layout Plain Layout
25669 LaTeX-packages ! footmisc
25675 \begin_inset CommandInset citation
25681 for more information about this.
25684 \begin_layout Standard
25685 For various further footnote formatting issues have a look at LaTeX-books,
25687 \begin_inset CommandInset citation
25689 key "latexcompanion,latexguide,latexbook"
25696 \begin_layout Section
25701 \begin_layout Plain Layout
25702 Notes ! Margin Notes
25710 \begin_layout Standard
25711 Margin notes look and behave in LyX like footnotes.
25712 They are inserted via the menu
25714 Insert\SpecialChar \menuseparator
25716 \begin_inset space ~
25721 or the toolbar button
25722 \begin_inset Graphics
25723 filename ../images/marginalnote-insert.png
25725 scaleBeforeRotation
25740 \begin_inset Quotes eld
25744 \begin_inset Quotes erd
25747 appears where you can enter the text of the margin note.
25750 \begin_layout Standard
25751 At the side is an example margin note.
25756 \begin_inset Marginal
25759 \begin_layout Plain Layout
25760 This is a margin note.
25768 \begin_layout Standard
25769 Margin notes appear at the right side in single-sided documents.
25770 In double-sided documents they appear in the outer margin – left on even
25771 pages, right on odd pages.
25772 The text of margin notes is aligned opposite to the outer margin – right-aligne
25773 d when the note appears in the left margin.
25774 The first line of the margin note is placed at the position of the text
25775 line where it is inserted in the document.
25778 \begin_layout Standard
25779 \begin_inset VSpace bigskip
25782 To place the margin note in the inner margin, add the command
25785 \begin_layout Standard
25793 \begin_layout Standard
25794 in TeX-Code before a margin note.
25795 The new placement is valid for all following margin notes.
25800 \begin_layout Plain Layout
25810 \begin_inset Marginal
25813 \begin_layout Plain Layout
25814 This is a margin note in the inner margin.
25822 \begin_inset Newline newline
25828 \begin_inset Note Greyedout
25831 \begin_layout Plain Layout
25836 There is often not enough space in the inner margin so that the notes are
25837 not correctly displayed in the output.
25845 \begin_layout Standard
25846 To return to the default placement insert the command
25849 \begin_layout Standard
25857 \begin_layout Standard
25862 \begin_layout Plain Layout
25872 \begin_inset Note Greyedout
25875 \begin_layout Plain Layout
25880 The command is ignored when it is within a paragraph where also the command
25895 \begin_layout Standard
25896 \begin_inset VSpace bigskip
25903 \begin_inset Marginal
25906 \begin_layout Plain Layout
25907 AVeryLongMarginParWord that isn't hyphenated.
25915 Similar to the case described in section
25916 \begin_inset space ~
25920 \begin_inset CommandInset ref
25922 reference "sub:Multiple-Lines-in"
25926 , long words cannot be hyphenated when they are the first word in a margin
25928 To avoid this, insert 0
25929 \begin_inset space \thinspace{}
25932 pt horizontal space before the word
25937 \begin_inset Marginal
25940 \begin_layout Plain Layout
25941 \begin_inset space \hspace*{}
25945 AVeryLongMarginParWord that is hyphenated.
25953 \begin_layout Standard
25954 \begin_inset VSpace bigskip
25960 \begin_layout Standard
25961 \begin_inset Note Greyedout
25964 \begin_layout Plain Layout
25969 Margin notes can normally not be used inside tables, floats, and footnotes.
25977 \begin_layout Standard
25978 \begin_inset VSpace bigskip
25984 \begin_layout Standard
25988 \begin_layout Plain Layout
25998 \begin_inset Note Note
26001 \begin_layout Plain Layout
26002 The following section will only be displayed when the LaTeX-package
26014 \begin_layout Standard
26015 This restriction can be evaded by using the LaTeX-package
26023 \begin_layout Plain Layout
26024 LaTeX-packages ! marginnote
26030 By adding these two lines to your document preamble, the command used by
26031 LyX for margin notes is redefined to use the command provided by the
26038 \begin_layout Standard
26043 usepackage{marginnote}
26044 \begin_inset Newline newline
26056 \begin_layout Standard
26057 This is also used in this document because
26061 has another useful feature: You can set a vertical offset for the note.
26062 This is often needed when too many margin notes are too close together
26063 or for a better page layout.
26064 The offset is set in LyX as TeX-Code directly behind the margin note in
26068 \begin_layout Standard
26074 \begin_layout Standard
26075 where the offset is a length with one of the units listed in Table
26076 \begin_inset space ~
26080 \begin_inset CommandInset ref
26082 reference "tab:Units"
26087 A negative value shifts the note up, a positive value shifts it down.
26091 For example the margin note beside this text line is shifted up 1.5
26092 \begin_inset space \thinspace{}
26095 cm with the TeX-Code-command
26096 \begin_inset Quotes eld
26106 \begin_inset Quotes erd
26110 \begin_inset Marginal
26113 \begin_layout Plain Layout
26114 This margin note is shifted up 1.5
26115 \begin_inset space \thinspace{}
26118 cm from its original position.
26130 \begin_layout Plain Layout
26140 \begin_layout Standard
26141 \begin_inset VSpace medskip
26148 you can also change the alignment of the text in the margin note.
26149 For example the commands
26152 \begin_layout Standard
26159 raggedleftmarginnote}{
26162 \begin_inset Newline newline
26169 raggedrightmarginnote}{
26174 \begin_layout Standard
26175 set the alignment to centered.
26180 raggedleftmarginnote
26182 denotes margin notes that appear at the left side.
26189 \begin_layout Plain Layout
26195 raggedleftmarginnote}{
26200 \begin_layout Plain Layout
26206 raggedrightmarginnote}{
26214 \begin_inset Marginal
26217 \begin_layout Plain Layout
26218 The text of this margin note is centered.
26229 \begin_layout Standard
26236 raggedleftmarginnote}{
26239 \begin_inset Newline newline
26246 raggedrightmarginnote}{
26255 \begin_layout Plain Layout
26261 raggedleftmarginnote}{
26266 \begin_layout Plain Layout
26272 raggedrightmarginnote}{
26282 \begin_layout Standard
26283 \begin_inset VSpace medskip
26286 For the other features of
26290 we refer to its documentation
26291 \begin_inset CommandInset citation
26300 \begin_layout Standard
26301 \begin_inset VSpace bigskip
26304 You can adjust the layout of margin notes by changing its definition.
26305 To create for example a header for all margin notes with the underlined,
26306 sans-serif, and bold header text
26307 \begin_inset Quotes eld
26319 \begin_inset Quotes erd
26322 , add this to your document preamble:
26325 \begin_layout Standard
26335 \begin_inset Newline newline
26345 \begin_inset Newline newline
26352 \begin_layout Plain Layout
26369 underbar{Attention!}}}%
26370 \begin_inset Newline newline
26377 \begin_layout Plain Layout
26395 \begin_layout Standard
26402 \begin_layout Plain Layout
26413 \begin_layout Plain Layout
26424 \begin_layout Plain Layout
26432 underbar{Attention!}}}%
26435 \begin_layout Plain Layout
26449 \begin_inset Marginal
26452 \begin_layout Plain Layout
26453 This is a margin note with a defined heading.
26465 \begin_layout Plain Layout
26479 \begin_layout Plain Layout
26496 \begin_inset Note Note
26499 \begin_layout Plain Layout
26500 The margin note format is changed only for this example.
26508 \begin_layout Standard
26512 \begin_layout Plain Layout
26522 \begin_inset Note Note
26525 \begin_layout Plain Layout
26526 The following will be displayed when the LaTeX-package
26538 \begin_layout Standard
26539 You need to install the LaTeX-package
26543 to see the following part of this section in the output.
26546 \begin_layout Standard
26550 \begin_layout Plain Layout
26562 \begin_layout Chapter
26566 \begin_layout Section
26571 \begin_layout Plain Layout
26572 Boxes ! Introduction
26580 \begin_layout Standard
26581 Boxes are used to format a block of text.
26582 Boxes can be used to write documents with multiple languages, see section
26583 \begin_inset space ~
26587 \begin_inset CommandInset ref
26589 reference "sec:Minipages"
26593 , to frame texts, see section
26594 \begin_inset space ~
26598 \begin_inset CommandInset ref
26600 reference "sec:Decoration"
26604 , to prevent words to be hyphenated, see section
26605 \begin_inset space ~
26609 \begin_inset CommandInset ref
26611 reference "sec:Prevent-Hyphenation"
26615 , to align text, see section
26616 \begin_inset space ~
26620 \begin_inset CommandInset ref
26622 reference "sub:Vertical-Alignment"
26626 , or to set the background color of texts, see section
26627 \begin_inset space ~
26631 \begin_inset CommandInset ref
26633 reference "sec:Colored-Boxes"
26640 \begin_layout Standard
26641 Boxes can be inserted with the menu
26643 Insert\SpecialChar \menuseparator
26646 or the toolbar button
26647 \begin_inset Graphics
26648 filename ../images/box-insert.png
26650 scaleBeforeRotation
26655 A grey box with the label
26660 \begin_inset Graphics
26661 filename clipart/BoxInsetDefaultQt4.png
26663 scaleBeforeRotation
26668 The box type can be specified by right-clicking on the box.
26669 The appearing box dialog offers the
26672 \begin_inset space ~
26690 is the default for new boxes and is explained in section
26691 \begin_inset space ~
26695 \begin_inset CommandInset ref
26697 reference "sec:Minipages"
26705 is described in section
26706 \begin_inset space ~
26710 \begin_inset CommandInset ref
26712 reference "sec:Parboxes"
26719 \begin_layout Standard
26720 Boxes aren't numbered and can therefore not be referenced like floats or
26724 \begin_layout Standard
26725 \begin_inset Note Greyedout
26728 \begin_layout Plain Layout
26733 Boxes must not be the item in an
26749 \begin_layout Standard
26750 \begin_inset Note Greyedout
26753 \begin_layout Plain Layout
26758 For an unknown reason you can only set the
26761 \begin_inset space ~
26770 when you use a framed box.
26774 \begin_inset space ~
26779 type and without frames are explained in section
26780 \begin_inset space ~
26784 \begin_inset CommandInset ref
26786 reference "sec:Prevent-Hyphenation"
26798 \begin_layout Section
26800 \begin_inset CommandInset label
26802 name "sec:Box-Dialog"
26810 \begin_layout Plain Layout
26819 \begin_layout Subsection
26824 \begin_layout Plain Layout
26833 \begin_layout Standard
26834 In the box dialog you can adjust the box geometry in the fields
26843 The available units for the geometry are explained in Table
26844 \begin_inset space ~
26848 \begin_inset CommandInset ref
26850 reference "tab:Units"
26859 offers the following additional sizes:
26862 \begin_layout Description
26863 Depth This is the plain text
26864 \begin_inset Quotes eld
26868 \begin_inset Quotes erd
26872 It ignores the total depth when there are multiple text lines in the box:
26873 \begin_inset Newline newline
26877 \begin_inset Newline newline
26881 \begin_inset Newline newline
26885 \begin_inset Box Boxed
26894 height_special "depth"
26897 \begin_layout Plain Layout
26899 Box height set to 1
26900 \begin_inset space \thinspace{}
26909 \begin_inset Newline newline
26913 \begin_inset Newline newline
26919 \begin_layout Description
26920 Height This is the heigth of the text that is inside the box.
26922 \begin_inset space \thinspace{}
26926 \begin_inset space \space{}
26929 2 for this size will set the box heigth to 2 times the text height:
26930 \begin_inset Box Boxed
26939 height_special "height"
26942 \begin_layout Plain Layout
26944 Box height set to 2
26945 \begin_inset space \thinspace{}
26956 \begin_layout Description
26958 \begin_inset space ~
26961 Height This is the Height
26962 \begin_inset space \thinspace{}
26966 \begin_inset space \thinspace{}
26970 \begin_inset Box Boxed
26979 height_special "totalheight"
26982 \begin_layout Plain Layout
26984 Box height set to 1
26985 \begin_inset space \thinspace{}
26989 \begin_inset space ~
27000 \begin_layout Description
27001 Width This sets the width of the box as heigth:
27002 \begin_inset Box Boxed
27011 height_special "width"
27014 \begin_layout Plain Layout
27016 Box height set to 1
27017 \begin_inset space \thinspace{}
27028 \begin_layout Subsection
27033 \begin_layout Plain Layout
27042 \begin_layout Standard
27043 When you have chosen an
27046 \begin_inset space ~
27051 , the vertical box alignment can be:
27054 \begin_layout Description
27055 Top This is an example text line.
27057 \begin_inset Box Boxed
27066 height_special "totalheight"
27069 \begin_layout Plain Layout
27071 This box is top-aligned.
27076 This is an example text line.
27079 \begin_layout Description
27080 Middle This is an example text line.
27082 \begin_inset Box Boxed
27091 height_special "totalheight"
27094 \begin_layout Plain Layout
27096 This box is middle-aligned.
27101 This is an example text line.
27104 \begin_layout Description
27105 Bottom This is an example text line.
27107 \begin_inset Box Boxed
27116 height_special "totalheight"
27119 \begin_layout Plain Layout
27121 This box is bottom-aligned.
27126 This is an example text line.
27129 \begin_layout Standard
27130 \begin_inset Note Greyedout
27133 \begin_layout Plain Layout
27138 The vertical box aligment can be lost in the output when you have two boxes
27139 in a line and one has e.
27140 \begin_inset space \thinspace{}
27144 \begin_inset space \space{}
27147 a shadow and the other one not.
27155 \begin_layout Standard
27156 The horizontal box alignment can be set via LyX's paragraph dialog when
27157 you set the box into its own paragraph.
27160 \begin_layout Standard
27161 \begin_inset VSpace bigskip
27164 When you have chosen an
27167 \begin_inset space ~
27172 , the box content can be vertical aligned to:
27175 \begin_layout Description
27176 top This is an example text line.
27178 \begin_inset Box Boxed
27187 height_special "totalheight"
27190 \begin_layout Plain Layout
27192 This box text is top-aligned.
27197 This is an example text line.
27200 \begin_layout Description
27201 middle This is an example text line.
27203 \begin_inset Box Boxed
27212 height_special "totalheight"
27215 \begin_layout Plain Layout
27217 This box text is middle-aligned.
27222 This is an example text line.
27225 \begin_layout Description
27226 bottom This is an example text line.
27228 \begin_inset Box Boxed
27237 height_special "totalheight"
27240 \begin_layout Plain Layout
27242 This box text is bottom-aligned.
27247 This is an example text line.
27250 \begin_layout Description
27251 stretch This is an example text line.
27253 \begin_inset Box Boxed
27262 height_special "totalheight"
27265 \begin_layout Plain Layout
27270 \begin_layout Plain Layout
27275 \begin_layout Plain Layout
27282 This is an example text line.
27285 \begin_layout Standard
27286 To stretch the box content, it must consist of more than one paragraph.
27287 In the example above every text line is in an own paragraph.
27290 \begin_layout Standard
27291 \begin_inset VSpace bigskip
27294 To align the box content horizontally you can use LyX's paragraph dialog
27295 when you have chosen an
27298 \begin_inset space ~
27306 \begin_layout Standard
27308 \begin_inset Box Boxed
27317 height_special "totalheight"
27320 \begin_layout Plain Layout
27325 \begin_layout Plain Layout
27330 \begin_layout Plain Layout
27340 \begin_layout Standard
27341 If you haven't set an
27344 \begin_inset space ~
27349 , you can align the box content horizontally in the box dialog.
27352 \begin_layout Standard
27354 \begin_inset Box Boxed
27363 height_special "totalheight"
27366 \begin_layout Plain Layout
27368 This box text is horizontally stretched.
27376 \begin_layout Subsection
27378 \begin_inset CommandInset label
27380 name "sec:Decoration"
27388 \begin_layout Plain Layout
27397 \begin_layout Standard
27398 The type of the box can be specified in the box-dialog in the drop-down
27404 The following types are possible:
27407 \begin_layout Description
27409 \begin_inset space ~
27413 \begin_inset space ~
27416 frame This draws a rectangle frame around the box.
27417 The frame line thickness has the size of
27425 \begin_inset Box Boxed
27434 height_special "totalheight"
27437 \begin_layout Plain Layout
27447 \begin_layout Description
27449 \begin_inset space ~
27453 \begin_inset space ~
27456 break When you use the decoration
27458 simple rectangular frame
27460 and no inner box, you can allow page breaks within a box.
27461 Note that then, in contrary to other framed boxes, the frame always uses
27462 the whole column width, the box is set as its own paragraph, and
27474 has no effect on this box type.
27475 The frame line thickness has the size of
27483 \begin_inset Box Framed
27492 height_special "totalheight"
27495 \begin_layout Plain Layout
27496 Allow page break box
27504 \begin_layout Description
27506 \begin_inset space ~
27510 \begin_inset space ~
27513 thin This draws an oval frame around the box.
27514 The frame line thickness has the size 0.4
27515 \begin_inset space \thinspace{}
27520 \begin_inset Box ovalbox
27529 height_special "totalheight"
27532 \begin_layout Plain Layout
27542 \begin_layout Description
27544 \begin_inset space ~
27548 \begin_inset space ~
27551 thick This draws an oval frame around the box.
27552 The frame line thickness has the size 0.8
27553 \begin_inset space \thinspace{}
27558 \begin_inset Box Ovalbox
27567 height_special "totalheight"
27570 \begin_layout Plain Layout
27580 \begin_layout Description
27582 \begin_inset space ~
27585 shadow This draws a rectangle frame with a shadow around the box.
27586 The frame line thickness has the size of
27592 , the shadow has a width of 4
27593 \begin_inset space \thinspace{}
27598 \begin_inset Box Shadowbox
27607 height_special "totalheight"
27610 \begin_layout Plain Layout
27620 \begin_layout Description
27622 \begin_inset space ~
27625 background This draws a box with red background color.
27626 In contrary to colored boxes
27630 \begin_layout Plain Layout
27632 \begin_inset space \thinspace{}
27636 \begin_inset CommandInset ref
27638 reference "sec:Colored-Boxes"
27647 , it always uses the whole column width and the box is set as its own paragraph.
27649 \begin_inset Box Shaded
27658 height_special "totalheight"
27661 \begin_layout Plain Layout
27662 Shaded background box
27670 \begin_layout Description
27672 \begin_inset space ~
27676 \begin_inset space ~
27679 frame This draws a double-line rectangle frame around the box.
27680 The line thickness of the inner frame is 0.75
27681 \begin_inset space \thinspace{}
27690 , the thickness of the outer frame is 1.5
27691 \begin_inset space \thinspace{}
27701 The distance between the lines is 1.5
27702 \begin_inset space \thinspace{}
27712 \begin_inset space \thinspace{}
27716 \begin_inset space \thinspace{}
27720 \begin_inset space \thinspace{}
27725 \begin_inset Box Doublebox
27734 height_special "totalheight"
27737 \begin_layout Plain Layout
27739 Double rectangular box
27747 \begin_layout Standard
27748 \begin_inset VSpace bigskip
27751 LyX's box label will reflect the different frame types.
27752 To be able to use all types, the LaTeX-package
27760 \begin_layout Plain Layout
27761 LaTeX-packages ! fancybox
27769 \begin_layout Section
27774 \begin_layout Plain Layout
27775 Boxes ! Customization
27783 \begin_layout Standard
27784 The default value for the size
27791 \begin_inset space \thinspace{}
27795 It can be changed with the following command in TeX-Code to e.
27796 \begin_inset space \thinspace{}
27800 \begin_inset space \space{}
27804 \begin_inset space \thinspace{}
27810 \begin_layout Standard
27820 \begin_layout Standard
27824 \begin_layout Plain Layout
27836 \begin_inset Box Boxed
27845 height_special "totalheight"
27848 \begin_layout Plain Layout
27850 Rectangular box with
27857 \begin_inset space \thinspace{}
27861 \begin_inset space \thinspace{}
27865 \begin_inset space \thinspace{}
27877 \begin_layout Plain Layout
27891 \begin_layout Standard
27892 \begin_inset VSpace bigskip
27895 The space between the frame and the box content is for all frame styles
27897 \begin_inset space \thinspace{}
27901 You can change it by setting the length
27908 For example the command
27911 \begin_layout Standard
27921 \begin_layout Standard
27922 sets the value to 10
27923 \begin_inset space \thinspace{}
27926 pt, like for the following box:
27929 \begin_layout Standard
27933 \begin_layout Plain Layout
27945 \begin_inset Box Boxed
27954 height_special "totalheight"
27957 \begin_layout Plain Layout
27959 Rectangular box with
27966 \begin_inset space \thinspace{}
27970 \begin_inset space \thinspace{}
27974 \begin_inset space \thinspace{}
27986 \begin_layout Plain Layout
28000 \begin_layout Standard
28001 \begin_inset VSpace bigskip
28004 The diameter of the round corners of the oval boxes can be set with the
28015 \begin_layout Standard
28023 \begin_layout Standard
28024 sets the diameter to 1
28025 \begin_inset space \thinspace{}
28032 \begin_layout Standard
28040 \begin_layout Standard
28041 sets the diameter to
28044 \begin_inset space \thinspace{}
28048 \begin_inset space \thinspace{}
28051 minimum(width and heigth of box)
28063 \begin_layout Standard
28067 \begin_layout Plain Layout
28077 \begin_inset Box Ovalbox
28086 height_special "totalheight"
28089 \begin_layout Plain Layout
28098 \begin_inset space \thinspace{}
28102 \begin_inset space \thinspace{}
28106 \begin_inset space \thinspace{}
28118 \begin_layout Plain Layout
28130 \begin_layout Standard
28131 \begin_inset VSpace bigskip
28134 The size of the shadow can be adjusted by changing the length
28142 \begin_inset space \thinspace{}
28145 pt for the following box by this command:
28148 \begin_layout Standard
28158 \begin_layout Standard
28162 \begin_layout Plain Layout
28174 \begin_inset Box Shadowbox
28183 height_special "totalheight"
28186 \begin_layout Plain Layout
28195 \begin_inset space \thinspace{}
28199 \begin_inset space \thinspace{}
28203 \begin_inset space \thinspace{}
28215 \begin_layout Plain Layout
28229 \begin_layout Standard
28230 \begin_inset VSpace bigskip
28236 \begin_layout Standard
28237 The default value for the size
28244 \begin_inset space \thinspace{}
28248 The default space between the note content and the frame is 9
28249 \begin_inset space \thinspace{}
28252 pt and can be changed with the value of
28259 For example the frame appearance of the following
28263 is set with the TeX-Code commands
28266 \begin_layout Standard
28274 \begin_inset Newline newline
28284 \begin_layout Standard
28288 \begin_layout Plain Layout
28297 \begin_layout Plain Layout
28309 \begin_inset Box Framed
28318 height_special "totalheight"
28321 \begin_layout Plain Layout
28335 \begin_layout Plain Layout
28344 \begin_layout Plain Layout
28358 \begin_layout Standard
28359 \begin_inset VSpace bigskip
28365 \begin_layout Standard
28370 boxes the default space between the box content and the box border is 3
28371 \begin_inset space \thinspace{}
28374 pt and can be changed with the value of
28381 The default background color red can either be changed locally with the
28386 definecolor{shadebox}
28388 or globally with the menu
28390 Tools\SpecialChar \menuseparator
28391 Preferences\SpecialChar \menuseparator
28392 Colors\SpecialChar \menuseparator
28394 \begin_inset space ~
28406 command is explained in section
28407 \begin_inset space ~
28411 \begin_inset CommandInset ref
28413 reference "sec:Colored-Tables"
28421 \begin_layout Plain Layout
28428 requires the LaTeX-package
28432 in the preamble, see section
28433 \begin_inset space ~
28437 \begin_inset CommandInset ref
28439 reference "sec:Colored-Boxes"
28448 For example the appearance of the following shaded background note is set
28449 with the TeX-Code commands
28452 \begin_layout Standard
28462 \begin_inset Newline newline
28469 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28472 \begin_layout Standard
28476 \begin_layout Plain Layout
28485 \begin_layout Plain Layout
28489 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28495 \begin_inset Box Shaded
28504 height_special "totalheight"
28507 \begin_layout Plain Layout
28510 This is yellow text in a
28520 box with dark green background.
28529 \begin_layout Plain Layout
28538 \begin_layout Plain Layout
28542 definecolor{shadecolor}{rgb}{1,0,0}
28550 \begin_layout Standard
28551 \begin_inset VSpace bigskip
28554 Changed lengths and widths are valid for all boxes following the commands
28558 \begin_layout Section
28560 \begin_inset CommandInset label
28562 name "sec:Minipages"
28570 \begin_layout Plain Layout
28579 \begin_layout Standard
28580 Minipages are treated by LaTeX as pages within pages and can therefore for
28581 example have their own footnotes.
28584 \begin_layout Standard
28585 Minipages are useful when you write documents with different languages.
28588 \begin_layout Standard
28589 Below are two example minipages side by side.
28590 Their width is set to 45
28591 \begin_inset space \thinspace{}
28594 col% and they are separated by a horizontal fill, that was inserted via
28597 Insert\SpecialChar \menuseparator
28599 \begin_inset space ~
28602 Formatting\SpecialChar \menuseparator
28604 \begin_inset space ~
28610 \begin_inset Newpage newpage
28616 \begin_layout Standard
28617 \begin_inset Box Frameless
28626 height_special "totalheight"
28629 \begin_layout Plain Layout
28632 Dies ist ein deutscher Text.
28633 Dies ist ein deutscher Text.
28634 Dies ist ein deutscher Text.
28635 Dies ist ein deutscher Text.
28636 Dies ist ein deutscher Text.
28637 Dies ist ein deutscher Text.
28638 Dies ist ein deutscher Text.
28639 Dies ist ein deutscher Text.
28640 Dies ist ein deutscher Text.
28641 Dies ist ein deutscher Text.
28642 Dies ist ein deutscher Text.
28643 Dies ist ein deutscher Text.
28644 Dies ist ein deutscher Text
28648 \begin_layout Plain Layout
28651 Dies ist eine deutsche Fußnote.
28657 Dies ist ein deutscher Text.
28658 Dies ist ein deutscher Text.
28664 \begin_inset space \hfill{}
28668 \begin_inset Box Frameless
28677 height_special "totalheight"
28680 \begin_layout Plain Layout
28681 This is an English Text.
28682 This is an English Text.
28683 This is an English Text.
28684 This is an English Text.
28685 This is an English Text.
28686 This is an English Text.
28687 This is an English Text.
28688 This is an English Text.
28689 This is an English Text.
28690 This is an English Text.
28691 This is an English Text.
28692 This is an English Text.
28693 This is an English Text.
28694 This is an English Text.
28695 This is an English Text.
28696 This is an English Text.
28700 \begin_layout Plain Layout
28701 This is an English footnote.
28706 This is an English Text.
28715 \begin_layout Standard
28716 \begin_inset VSpace bigskip
28719 Another application for minipages are footnotes within tables.
28720 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28721 bottom of the current page.
28722 But when you put the table with the footnote to a minipage, the footnote
28723 will appear at its bottom, numbered with Latin letters.
28724 The footnote number is reset to 1 in every minipage but not outside the
28728 \begin_layout Standard
28729 The footnote of this table doesn't appear:
28730 \begin_inset Tabular
28731 <lyxtabular version="3" rows="3" columns="4">
28733 <column alignment="center" valignment="top" width="0pt">
28734 <column alignment="center" valignment="top" width="0pt">
28735 <column alignment="center" valignment="top" width="0pt">
28736 <column alignment="center" valignment="top" width="0pt">
28738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28741 \begin_layout Plain Layout
28747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28750 \begin_layout Plain Layout
28756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28759 \begin_layout Plain Layout
28764 \begin_layout Plain Layout
28765 This is a footnote within a table.
28775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28778 \begin_layout Plain Layout
28786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28789 \begin_layout Plain Layout
28795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28798 \begin_layout Plain Layout
28804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28807 \begin_layout Plain Layout
28813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28816 \begin_layout Plain Layout
28824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28827 \begin_layout Plain Layout
28833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28836 \begin_layout Plain Layout
28842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28845 \begin_layout Plain Layout
28851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28854 \begin_layout Plain Layout
28868 \begin_layout Standard
28870 \begin_inset Box Frameless
28879 height_special "totalheight"
28882 \begin_layout Plain Layout
28884 \begin_inset Tabular
28885 <lyxtabular version="3" rows="3" columns="4">
28887 <column alignment="center" valignment="top" width="0pt">
28888 <column alignment="center" valignment="top" width="0pt">
28889 <column alignment="center" valignment="top" width="0pt">
28890 <column alignment="center" valignment="top" width="0pt">
28892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28895 \begin_layout Plain Layout
28901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28904 \begin_layout Plain Layout
28910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28913 \begin_layout Plain Layout
28918 \begin_layout Plain Layout
28919 This is a footnote within a table.
28929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28932 \begin_layout Plain Layout
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28943 \begin_layout Plain Layout
28949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28952 \begin_layout Plain Layout
28958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28961 \begin_layout Plain Layout
28967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28970 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28981 \begin_layout Plain Layout
28987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28990 \begin_layout Plain Layout
28996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28999 \begin_layout Plain Layout
29005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29008 \begin_layout Plain Layout
29027 \begin_layout Standard
29028 \begin_inset VSpace bigskip
29031 The document-wide paragraph settings are ignored within minipages.
29032 That means that there will be no space between paragraphs in minipages
29033 although you set it to e.
29034 \begin_inset space \thinspace{}
29038 \begin_inset space \space{}
29045 in the document settings.
29048 \begin_layout Standard
29049 Minipages can also be used to set a background color for text parts, see
29051 \begin_inset space ~
29055 \begin_inset CommandInset ref
29057 reference "sub:Color-for-Paragraphs"
29064 \begin_layout Standard
29065 \begin_inset Note Greyedout
29068 \begin_layout Plain Layout
29073 You cannot have floats or margin notes inside minipages but minipages can
29074 be used inside tables, floats, and other boxes.
29082 \begin_layout Section
29084 \begin_inset CommandInset label
29086 name "sec:Parboxes"
29094 \begin_layout Plain Layout
29103 \begin_layout Standard
29104 Parboxes are very similar to minipages with the difference that they cannot
29106 The main difference to minipages is that minipages are in contrary to parboxes
29107 no real boxes but LaTeX-environments.
29110 \begin_layout Standard
29112 \begin_inset Box Frameless
29121 height_special "totalheight"
29124 \begin_layout Plain Layout
29125 This a text within a parbox.
29126 This a text within a parbox.
29129 \begin_layout Plain Layout
29130 This footnote won't appear:
29134 \begin_layout Plain Layout
29135 This footnote is inside a parbox and will therefore not appear.
29148 \begin_layout Section
29149 Boxes for Words and Characters
29153 \begin_layout Plain Layout
29154 Boxes ! for Characters
29162 \begin_layout Subsection
29163 Prevent Hyphenation
29164 \begin_inset CommandInset label
29166 name "sec:Prevent-Hyphenation"
29174 \begin_layout Plain Layout
29175 Boxes ! to Prevent Hyphenation
29183 \begin_layout Standard
29184 You can use a special kind of boxes to prevent words or text to be hyphenated.
29185 \begin_inset Newline newline
29188 Here is an example text:
29191 \begin_layout Standard
29192 This line is an example to show how you can prevent the hyphenation of
29193 \begin_inset Quotes eld
29197 \begin_inset Quotes erd
29203 \begin_layout Standard
29204 To prevent the hyphenation of the word
29205 \begin_inset Quotes eld
29209 \begin_inset Quotes erd
29215 \begin_layout Standard
29223 \begin_layout Standard
29224 in TeX-Code before the word.
29225 Behind the word insert a closing brace
29226 \begin_inset Quotes eld
29234 \begin_inset Quotes erd
29240 \begin_layout Standard
29241 This is the result:
29244 \begin_layout Standard
29245 This line is an example to show how you can prevent the hyphenation of
29249 \begin_layout Plain Layout
29259 \begin_inset Quotes eld
29263 \begin_inset Quotes erd
29270 \begin_layout Plain Layout
29280 \begin_layout Standard
29281 You can alternatively set the command
29282 \begin_inset Quotes eld
29292 \begin_inset Quotes grd
29295 as TeX-Code directly before the word:
29298 \begin_layout Standard
29299 This line is an example to show how you can prevent the hyphenation of
29300 \begin_inset Quotes eld
29307 \begin_layout Plain Layout
29317 \begin_inset Quotes erd
29323 \begin_layout Standard
29324 Of course the word now protrudes over the side margin.
29325 To avoid this, add via the menu
29327 Insert\SpecialChar \menuseparator
29329 \begin_inset space ~
29332 Formatting\SpecialChar \menuseparator
29334 \begin_inset space ~
29342 arg "newline-insert newline"
29345 ) a line break before the word:
29348 \begin_layout Standard
29349 This line is an example to show how you can prevent the hyphenation of
29350 \begin_inset Newline newline
29357 \begin_layout Plain Layout
29367 \begin_inset Quotes eld
29371 \begin_inset Quotes erd
29378 \begin_layout Plain Layout
29388 \begin_layout Subsection
29390 \begin_inset CommandInset label
29392 name "sub:Vertical-Alignment"
29400 \begin_layout Plain Layout
29401 Boxes ! for Vertical Alignment
29410 \begin_layout Plain Layout
29419 \begin_layout Standard
29420 With the help of the command
29426 you can align words, characters or other boxes vertically to the surrounding
29434 is used with the following scheme:
29437 \begin_layout Standard
29442 raisebox{lift}[height][depth]{box content}
29445 \begin_layout Standard
29446 The lift can be a positive value to raise the box or a negative value to
29450 \begin_layout Standard
29451 To align for example the word
29452 \begin_inset Quotes eld
29456 \begin_inset Quotes erd
29459 so that the bottom of the
29460 \begin_inset Quotes eld
29464 \begin_inset Quotes erd
29468 \begin_inset Quotes eld
29472 \begin_inset Quotes erd
29475 is at the baseline, insert the command
29478 \begin_layout Standard
29488 \begin_layout Standard
29489 in TeX-Code before the word.
29490 Behind the word insert a closing brace
29491 \begin_inset Quotes eld
29499 \begin_inset Quotes erd
29503 \begin_inset Newline newline
29506 This is the result:
29509 \begin_layout Standard
29510 This is a text line with the word
29514 \begin_layout Plain Layout
29526 \begin_inset Quotes eld
29530 \begin_inset Quotes erd
29537 \begin_layout Plain Layout
29547 \begin_layout Standard
29548 \begin_inset VSpace bigskip
29551 When you raise or lower characters in a line, the line distance will be
29555 \begin_layout Standard
29556 This is a text line with the word
29560 \begin_layout Plain Layout
29572 \begin_inset Quotes eld
29576 \begin_inset Quotes erd
29583 \begin_layout Plain Layout
29591 \begin_inset Newline newline
29594 This is a text line with the word
29598 \begin_layout Plain Layout
29608 \begin_inset Quotes eld
29612 \begin_inset Quotes erd
29619 \begin_layout Plain Layout
29629 \begin_layout Standard
29630 If you want to prevent this for a certain reason, set the box height to
29635 \begin_layout Standard
29645 \begin_layout Standard
29646 This is a text line with the word
29650 \begin_layout Plain Layout
29662 \begin_inset Quotes eld
29666 \begin_inset Quotes erd
29673 \begin_layout Plain Layout
29681 \begin_inset Newline newline
29684 This is a text line with the word
29688 \begin_layout Plain Layout
29692 raisebox{0.5cm}[0pt]{
29698 \begin_inset Quotes eld
29702 \begin_inset Quotes erd
29709 \begin_layout Plain Layout
29719 \begin_layout Section
29721 \begin_inset CommandInset label
29723 name "sec:Colored-Boxes"
29731 \begin_layout Plain Layout
29740 \begin_layout Subsection
29745 \begin_layout Plain Layout
29754 \begin_layout Standard
29755 To color the background of text the text must be put into a so called
29756 \begin_inset Quotes eld
29760 \begin_inset Quotes erd
29764 This requires that the LaTeX-package
29772 \begin_layout Plain Layout
29773 LaTeX-packages ! color
29778 is loaded in the document preamble with the command
29781 \begin_layout Standard
29786 @ifundefined{textcolor}
29787 \begin_inset Newline newline
29794 \begin_layout Plain Layout
29805 usepackage{color}}{}
29808 \begin_layout Standard
29813 will be loaded automatically by LyX when you color text
29817 \begin_layout Plain Layout
29818 To avoid that it is loaded twice the command
29832 \begin_layout Standard
29833 \begin_inset VSpace medskip
29836 Colorboxes are created with the command
29843 This will be used with the following scheme:
29846 \begin_layout Standard
29851 colorbox{color}{box content}
29854 \begin_layout Standard
29855 The box content can also be a box and colorboxes can also be within other
29859 \begin_layout Standard
29860 The following colors are predefined:
29861 \begin_inset Newline newline
29900 \begin_inset Newline newline
29903 You can also define your own color as described in section
29904 \begin_inset space ~
29908 \begin_inset CommandInset ref
29910 reference "sec:Colored-Tables"
29917 \begin_layout Standard
29919 \begin_inset space \thinspace{}
29923 \begin_inset space \space{}
29926 a red background for a word, insert the command
29929 \begin_layout Standard
29937 \begin_layout Standard
29938 before the word in TeX-Code.
29939 Behind the word insert a closing brace
29940 \begin_inset Quotes eld
29948 \begin_inset Quotes erd
29952 \begin_inset Newline newline
29955 This is the result:
29958 \begin_layout Standard
29959 This is a line where the word
29963 \begin_layout Plain Layout
29973 \begin_inset Quotes eld
29977 \begin_inset Quotes erd
29984 \begin_layout Plain Layout
29991 has a red background.
29994 \begin_layout Standard
29995 \begin_inset VSpace bigskip
29998 If you would have the box frame in a different color, you can use the command
30005 with the following scheme:
30008 \begin_layout Standard
30013 fcolorbox{frame color}{box color}{box content}
30016 \begin_layout Standard
30030 The frame thickness and the space between the frame and the box content
30031 can be adjusted with the lengths
30043 , respectively, as described in section
30044 \begin_inset space ~
30048 \begin_inset CommandInset ref
30050 reference "sec:Decoration"
30057 \begin_layout Standard
30058 For the following example the command
30061 \begin_layout Standard
30066 fcolorbox{cyan}{magenta}{
30069 \begin_layout Standard
30073 \begin_layout Standard
30074 Here is an example where the frame line thickness was set to 1
30075 \begin_inset space \thinspace{}
30079 \begin_inset Newline newline
30086 \begin_layout Plain Layout
30101 \begin_layout Plain Layout
30105 fcolorbox{cyan}{magenta}{
30110 This is text within a colored, framed box.
30114 \begin_layout Plain Layout
30124 \begin_layout Standard
30125 \begin_inset VSpace bigskip
30128 Of course you can also have colored text inside a colorbox:
30129 \begin_inset Newline newline
30136 \begin_layout Plain Layout
30140 fcolorbox{cyan}{magenta}{
30147 This is colored text within a colored, framed box.
30153 \begin_layout Plain Layout
30164 \begin_layout Plain Layout
30178 \begin_layout Standard
30181 \begin_inset VSpace medskip
30187 \begin_layout Standard
30188 \begin_inset Note Greyedout
30191 \begin_layout Plain Layout
30196 Text in colorboxes cannot have line breaks.
30197 To color multiple text lines or paragraphs, use a box inside a colorbox
30198 as described in the following.
30206 \begin_layout Subsection
30207 Color for Paragraphs
30208 \begin_inset CommandInset label
30210 name "sub:Color-for-Paragraphs"
30218 \begin_layout Plain Layout
30219 Color ! for Paragraphs
30227 \begin_layout Standard
30228 To set the background color for more than one text line, put the text into
30230 Before the minipage insert the
30239 \begin_layout Standard
30247 \begin_layout Standard
30249 Behind the minipage insert a closing brace
30250 \begin_inset Quotes eld
30258 \begin_inset Quotes erd
30264 \begin_layout Standard
30268 \begin_layout Plain Layout
30272 colorbox{lightgrey}{
30278 \begin_inset Box Frameless
30287 height_special "totalheight"
30290 \begin_layout Plain Layout
30291 This is text with background color.
30292 This is text with background color.
30295 \begin_layout Plain Layout
30296 \begin_inset VSpace defskip
30299 The text can have footnotes
30303 \begin_layout Plain Layout
30304 Another example footnote
30309 and can include tables and figures.
30312 \begin_layout Plain Layout
30314 \begin_inset Tabular
30315 <lyxtabular version="3" rows="3" columns="3">
30317 <column alignment="center" valignment="top" width="0">
30318 <column alignment="center" valignment="top" width="0">
30319 <column alignment="center" valignment="top" width="0">
30321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30324 \begin_layout Plain Layout
30330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30333 \begin_layout Plain Layout
30339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30342 \begin_layout Plain Layout
30350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30353 \begin_layout Plain Layout
30359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30362 \begin_layout Plain Layout
30364 \begin_inset Quotes erd
30372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30375 \begin_layout Plain Layout
30383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30386 \begin_layout Plain Layout
30392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30395 \begin_layout Plain Layout
30401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30404 \begin_layout Plain Layout
30424 \begin_layout Plain Layout
30434 \begin_layout Section
30435 Rotated and Scaled Boxes
30438 \begin_layout Standard
30439 To use the the commands described in this section, the LaTeX-package
30447 \begin_layout Plain Layout
30448 LaTeX-packages ! graphicx
30453 needs to be loaded in the document preamble with the command
30456 \begin_layout Standard
30461 @ifundefined{rotatebox}
30462 \begin_inset Newline newline
30469 \begin_layout Plain Layout
30480 usepackage{graphicx}}{}
30483 \begin_layout Standard
30484 \begin_inset Note Greyedout
30487 \begin_layout Plain Layout
30492 Some DVI-viewers can't display rotated or scaled material.
30500 \begin_layout Standard
30501 \begin_inset Note Greyedout
30504 \begin_layout Plain Layout
30509 Floats mustn't be inside a rotated or scaled box.
30517 \begin_layout Subsection
30522 \begin_layout Plain Layout
30532 \begin_layout Plain Layout
30542 \begin_layout Plain Layout
30552 \begin_layout Plain Layout
30553 Table Customization ! Rotating
30561 \begin_layout Standard
30562 To rotate material, you can put it into a rotated box.
30563 Such a box is created using the command
30569 in TeX-Code with the following scheme:
30572 \begin_layout Standard
30577 rotatebox[rotation origin]{rotation angle}{box content}
30580 \begin_layout Standard
30581 The rotation origin is specified in the form
30586 The following positions are possible:
30606 (top), and also expedient combinations of the four base positions.
30611 means, that the rotation origin is at the top left corner of the box.
30612 When no rotation origin is specified, the position
30617 The rotation angle is a number that can be negative that specifies the
30619 The rotation direction is counterclockwise.
30622 \begin_layout Standard
30623 In the following example the command
30627 rotatebox[origin=c]{60}{
30629 was inserted as TeX-Code before the text
30630 \begin_inset Quotes eld
30634 \begin_inset Quotes erd
30637 ; after the text the box was closed by a closing brace
30644 \begin_layout Standard
30649 \begin_layout Plain Layout
30653 rotatebox[origin=c]{60}{
30662 \begin_layout Plain Layout
30672 \begin_layout Standard
30673 The box content can also be another box or an inline formula:
30676 \begin_layout Standard
30681 \begin_layout Plain Layout
30685 rotatebox[origin=r]{-60}{
30691 \begin_inset Box Doublebox
30700 height_special "totalheight"
30703 \begin_layout Plain Layout
30713 \begin_layout Plain Layout
30724 \begin_layout Plain Layout
30728 rotatebox[origin=lb]{60}{
30734 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30741 \begin_layout Plain Layout
30751 \begin_layout Standard
30752 or an image or table:
30755 \begin_layout Standard
30760 \begin_layout Plain Layout
30764 rotatebox[origin=lb]{90}{
30770 \begin_inset Graphics
30771 filename clipart/platypus.eps
30781 \begin_layout Plain Layout
30788 with a rotated image
30792 \begin_layout Plain Layout
30796 rotatebox[origin=l]{-90}{
30802 \begin_inset Tabular
30803 <lyxtabular version="3" rows="2" columns="2">
30805 <column alignment="center" valignment="top" width="0">
30806 <column alignment="center" valignment="top" width="0">
30808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30811 \begin_layout Plain Layout
30817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30820 \begin_layout Plain Layout
30828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30831 \begin_layout Plain Layout
30837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30840 \begin_layout Plain Layout
30855 \begin_layout Plain Layout
30865 \begin_layout Subsection
30870 \begin_layout Plain Layout
30880 \begin_layout Plain Layout
30890 \begin_layout Plain Layout
30900 \begin_layout Plain Layout
30901 Table Customization ! Scaling
30909 \begin_layout Standard
30910 To scale material the commands
30922 can be used as TeX-Code.
30925 \begin_layout Standard
30932 is used with the following scheme:
30935 \begin_layout Standard
30940 scalebox{horizontal}[vertical]{box content}
30943 \begin_layout Standard
30944 Horizontal and vertical are the corresponding scaling factors.
30945 If no vertical scaling factor is given, the horizontal factor will also
30946 be used as vertical one.
30949 \begin_layout Standard
30956 creates for example a double size
30960 \begin_layout Plain Layout
30973 \begin_layout Plain Layout
30980 , compared to the document text size.
30983 \begin_layout Standard
30988 scalebox{2}[1]{Hello}
30990 in contrary distorts the
30994 \begin_layout Plain Layout
31007 \begin_layout Plain Layout
31017 \begin_layout Standard
31018 If a the scaling factor is negative, the box content will be mirrored.
31019 Therefore the command
31023 scalebox{-1}[1]{Hello}
31025 can be used to create mirror writing:
31029 \begin_layout Plain Layout
31042 \begin_layout Plain Layout
31052 \begin_layout Standard
31057 scalebox{1}[-1]{Hello}
31063 \begin_layout Plain Layout
31076 \begin_layout Plain Layout
31086 \begin_layout Standard
31091 scalebox{-1}[1]{box content}
31093 there exists the command
31094 \begin_inset Newline newline
31101 reflectbox{box content}
31106 \begin_layout Standard
31107 \begin_inset VSpace bigskip
31116 is used to scale the box to a defined width and height.
31117 The command scheme is:
31120 \begin_layout Standard
31125 resizebox{width}{height}{box content}
31128 \begin_layout Standard
31129 Is one of the two command arguments given as exclamation mark
31133 , the size is set so that the aspect ratio of the box content is kept.
31136 \begin_layout Standard
31141 resizebox{2cm}{1cm}{Hello}
31147 \begin_layout Plain Layout
31151 resizebox{2cm}{1cm}{
31160 \begin_layout Plain Layout
31168 \begin_inset Newline newline
31175 resizebox{2cm}{!}{Hello}
31181 \begin_layout Plain Layout
31194 \begin_layout Plain Layout
31204 \begin_layout Standard
31205 \begin_inset VSpace bigskip
31209 \begin_inset Note Greyedout
31212 \begin_layout Plain Layout
31229 are set to zero, no LaTeX-errors occur when exporting the document but
31230 the exported files can not or only partly be displayed.
31238 \begin_layout Standard
31239 \begin_inset VSpace bigskip
31245 \begin_layout Standard
31246 The boxes can be combined in any order.
31248 \begin_inset space \thinspace{}
31252 \begin_inset space \space{}
31256 \begin_inset Newline newline
31263 rotatebox[origin=c]{-45}{
31267 reflectbox{Hello}}}
31268 \begin_inset Newline newline
31276 \begin_layout Standard
31281 \begin_layout Plain Layout
31285 rotatebox[origin=c]{-45}{
31298 \begin_layout Plain Layout
31308 \begin_layout Standard
31310 Images, tables, and inline formulas are allowed as box content:
31313 \begin_layout Standard
31318 \begin_layout Plain Layout
31322 rotatebox[origin=c]{-30}{
31332 \begin_inset Graphics
31333 filename clipart/platypus.eps
31343 \begin_layout Plain Layout
31354 \begin_layout Plain Layout
31358 rotatebox[origin=c]{-45}{
31368 \begin_inset Tabular
31369 <lyxtabular version="3" rows="2" columns="2">
31371 <column alignment="center" valignment="top" width="0">
31372 <column alignment="center" valignment="top" width="0">
31374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31377 \begin_layout Plain Layout
31383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31386 \begin_layout Plain Layout
31394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31397 \begin_layout Plain Layout
31403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31406 \begin_layout Plain Layout
31421 \begin_layout Plain Layout
31432 \begin_layout Plain Layout
31436 rotatebox[origin=c]{-45}{
31446 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31453 \begin_layout Plain Layout
31463 \begin_layout Standard
31464 When the global formula style
31468 is used in the document
31472 \begin_layout Plain Layout
31474 \begin_inset Quotes eld
31478 \begin_inset Quotes erd
31481 is added to the document class options.
31486 , also display formulas can be scaled.
31489 \begin_layout Chapter
31490 External Document Parts
31494 \begin_layout Plain Layout
31495 External Document Parts
31503 \begin_layout Standard
31506 Insert\SpecialChar \menuseparator
31509 you can insert external material to your document.
31513 \begin_layout Description
31515 \begin_inset space ~
31518 Document Another LyX document; its content is directly inserted to your
31522 \begin_layout Description
31524 \begin_inset space ~
31527 Text A text document; every of its text lines is inserted to your document
31531 \begin_layout Description
31533 \begin_inset space ~
31537 \begin_inset space ~
31541 \begin_inset space ~
31544 Lines A text document; its text lines are inserted as they are.
31545 Empty text lines creates a new paragraph in your document.
31548 \begin_layout Description
31550 \begin_inset space ~
31553 Material Files in various formats.
31556 \begin_layout Description
31558 \begin_inset space ~
31561 Document LyX or LaTeX-documents.
31564 \begin_layout Section
31569 \begin_layout Plain Layout
31570 External Document Parts ! External Material
31578 \begin_layout Standard
31579 The external material feature allows you to insert files to your document
31580 without converting them previously to a format that can be read by the
31581 document output format because LyX takes care of needed conversions.
31582 This is similar to images that can be inserted in various image formats
31584 When you have enabled Instant Preview in LyX's preferences under
31587 \begin_inset space ~
31591 \begin_inset space ~
31594 feel\SpecialChar \menuseparator
31597 , the external material types Dia and Xfig is directly shown in LyX.
31600 \begin_layout Standard
31601 External material can be inserted via the
31605 dialog that is accessible with the menu
31607 Insert\SpecialChar \menuseparator
31608 File\SpecialChar \menuseparator
31610 \begin_inset space ~
31616 Currently the following file types (
31623 \begin_layout Description
31624 ChessDiagram This template supports chess position diagrams made with the
31628 \begin_inset CommandInset href
31631 target "http://en.wikipedia.org/wiki/XBoard"
31640 \begin_layout Description
31641 Date This inserts the date in the form
31646 This is a date inserted as external material:
31647 \begin_inset External
31654 \begin_inset space ~
31658 \begin_inset Note Note
31661 \begin_layout Plain Layout
31662 Remove the protected space when bug 4398 is fixed!
31668 \begin_inset Newline newline
31671 The date is not shown within LyX, only in the output.
31672 There are two other methods of inserting a date: Via menu
31674 Insert\SpecialChar \menuseparator
31677 and with the LaTeX command
31684 The different methods are compared in Table
31685 \begin_inset space ~
31689 \begin_inset CommandInset ref
31691 reference "tab:Comparison-of-the"
31698 \begin_layout Description
31699 Dia This template supports diagrams created with the program
31702 \begin_inset CommandInset href
31705 target "http://en.wikipedia.org/wiki/Dia_(software)"
31714 \begin_layout Description
31715 LilyPond This template is used for music notation typeset with the program
31716 \begin_inset Newline linebreak
31722 \begin_inset CommandInset href
31725 target "http://en.wikipedia.org/wiki/LilyPond"
31734 \begin_layout Description
31735 PDFPages With this template you can insert PDF documents to your document.
31736 To insert certain or all pages of a PDF, use the
31746 LaTeX and LyX options
31748 tab according to the template description in the dialog.
31753 option is given, only the first page of the PDF will be inserted.
31756 \begin_layout Description
31757 RasterImage This can be used for bitmap images.
31758 Nearly all popular image formats are supported.
31759 The image can be treated in the
31763 dialog like the images that are usually included via the
31767 dialog as described in section
31768 \begin_inset space ~
31772 \begin_inset CommandInset ref
31774 reference "sec:Graphics-Dialog"
31779 The difference is that only raster images are allowed, that means that
31780 PDF and EPS-images are not supported.
31783 \begin_layout Description
31784 XFig This template supports images created with the program
31787 \begin_inset CommandInset href
31790 target "http://en.wikipedia.org/wiki/Xfig"
31799 \begin_layout Standard
31800 \begin_inset Float table
31806 \begin_layout Plain Layout
31807 \begin_inset Caption
31809 \begin_layout Plain Layout
31810 \begin_inset CommandInset label
31812 name "tab:Comparison-of-the"
31816 Comparison of the date input methods.
31824 \begin_layout Plain Layout
31826 \begin_inset Tabular
31827 <lyxtabular version="3" rows="4" columns="4">
31829 <column alignment="center" valignment="top" width="0">
31830 <column alignment="center" valignment="top" width="0">
31831 <column alignment="center" valignment="top" width="0">
31832 <column alignment="center" valignment="top" width="0">
31834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31837 \begin_layout Plain Layout
31843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31846 \begin_layout Plain Layout
31849 External Material\SpecialChar \menuseparator
31855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31858 \begin_layout Plain Layout
31861 Insert\SpecialChar \menuseparator
31867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31870 \begin_layout Plain Layout
31882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31885 \begin_layout Plain Layout
31891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31894 \begin_layout Plain Layout
31900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31903 \begin_layout Plain Layout
31909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31912 \begin_layout Plain Layout
31913 as TeX-Code inset box
31920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31923 \begin_layout Plain Layout
31929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31932 \begin_layout Plain Layout
31938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31941 \begin_layout Plain Layout
31947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31950 \begin_layout Plain Layout
31958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31961 \begin_layout Plain Layout
31967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31970 \begin_layout Plain Layout
31976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31979 \begin_layout Plain Layout
31985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31988 \begin_layout Plain Layout
32007 \begin_layout Standard
32008 When you use the option
32020 dialog, only the path to the inserted file is shown in the output.
32021 \begin_inset Newline newline
32024 External material is displayed in LyX either as box like this:
32025 \begin_inset Graphics
32026 filename clipart/ExternalMaterialQt4.png
32028 scaleBeforeRotation
32032 or as image, depending on the option
32038 LaTeX and LyX options
32043 \begin_layout Standard
32050 manual explains how you can define your own templates.
32053 \begin_layout Section
32055 \begin_inset CommandInset label
32057 name "sec:Child-Documents"
32065 \begin_layout Plain Layout
32066 External Document Parts ! Child Documents
32075 \begin_layout Plain Layout
32084 \begin_layout Standard
32085 Child documents are used when you have a long document consisting of several
32086 larger parts or sections.
32087 For maintenance it is often useful and sometimes even required to split
32088 the document in several files that can be revised separately.
32089 The different documents are then the so called child documents and a master
32090 document connects them to print the full document or parts of it.
32091 A child documents inherits contents of its master, for example the LaTeX
32092 preamble, the bibliography, and labels for cross-references.
32095 \begin_layout Standard
32096 To be able to work on child documents without the need to open its master,
32097 specify in the child document the master in the menu
32099 Document\SpecialChar \menuseparator
32100 Settings\SpecialChar \menuseparator
32102 \begin_inset space ~
32108 This master document will then be used in the background by LyX when you
32109 edit the child document.
32112 \begin_layout Standard
32113 Included documents are displayed in LyX as a box like this:
32114 \begin_inset Graphics
32115 filename clipart/ChildDocumentQt4.png
32117 scaleBeforeRotation
32121 To include child documents to a master document use the menu
32123 Insert\SpecialChar \menuseparator
32124 File\SpecialChar \menuseparator
32126 \begin_inset space ~
32132 A dialog pops up where you can choose between four include methods:
32135 \begin_layout Description
32136 Include You can include LyX and LaTeX-documents.
32145 dialog, the included documents will be opened in LyX in a new file tab
32146 so that you can modify it.
32147 \begin_inset Newline newline
32153 \begin_layout Standard
32154 Here is a child document inserted using
32159 \begin_inset CommandInset include
32160 LatexCommand include
32161 filename "DummyDocument1.lyx"
32168 \begin_layout Standard
32169 The section numbering includes the sections of the included files in the
32170 order they are inserted in the master document.
32171 The included example document has for example a subsection that is numbered
32172 as subsection of this section.
32173 Labels of included documents can be referenced: Subsection
32174 \begin_inset space ~
32178 \begin_inset CommandInset ref
32180 reference "sub:External-Subsection-1"
32187 \begin_layout Standard
32188 The preamble of the child document is ignored, only the preamble of the
32189 master document is used.
32190 Branches in child documents will be ignored by the master document when
32191 the master document does not have a branch with the same name.
32192 Included documents are inserted starting on a new page and end with a page
32196 \begin_layout Standard
32197 With the LaTeX-command
32203 you can specify which included child documents are processed when the output
32205 This is useful when you are perhaps only working on a certain chapter of
32206 your large document as this saves compiling time.
32213 is inserted to the master document preamble.
32214 It takes a comma-separated list of the filenames as argument, e.
32215 \begin_inset space \thinspace{}
32221 \begin_layout Standard
32226 includeonly{chapter1,chapter5}
32229 \begin_layout Standard
32230 will only process the included files named
32231 \begin_inset Quotes eld
32235 \begin_inset Quotes erd
32239 \begin_inset Quotes eld
32243 \begin_inset Quotes erd
32247 \begin_inset Quotes eld
32251 \begin_inset Quotes erd
32257 \begin_layout Standard
32258 \begin_inset Note Greyedout
32261 \begin_layout Plain Layout
32266 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32267 w the document in case that the child document uses another document class
32268 than the master document as this will lead to unexpected outputs.
32276 \begin_layout Description
32277 Input This method is very similar to the Include method.
32278 The differences are:
32282 \begin_layout Itemize
32283 Input files don't start with a new page and don't end with a page break.
32286 \begin_layout Itemize
32287 Input files can be previewed in LyX when
32290 \begin_inset space ~
32295 is enabled in LyX's preferences under
32298 \begin_inset space ~
32302 \begin_inset space ~
32305 feel\SpecialChar \menuseparator
32311 \begin_layout Itemize
32322 \begin_layout Standard
32323 Here is a child document inserted using
32328 \begin_inset CommandInset include
32330 filename "DummyDocument2.lyx"
32337 \begin_layout Description
32338 Verbatim With this method every text file can be included.
32339 The file is shown in the output with its source code, no command used in
32340 the text is invoked.
32341 You can use the option
32343 Mark spaces in output
32345 that displays the character
32346 \begin_inset Quotes eld
32353 \begin_layout Plain Layout
32363 \begin_inset Quotes erd
32366 for every space character in the source code.
32367 The difference to the method via the menu
32369 Insert\SpecialChar \menuseparator
32370 File\SpecialChar \menuseparator
32372 \begin_inset space ~
32377 is that the document content is not shown in LyX.
32380 \begin_layout Standard
32381 Here is a child document inserted as Verbatim:
32382 \begin_inset CommandInset include
32383 LatexCommand verbatiminput
32384 filename "DummyTextDocument.txt"
32389 \begin_inset VSpace bigskip
32392 Here is a child document inserted as Verbatim using the
32394 Mark spaces in output
32397 \begin_inset CommandInset include
32398 LatexCommand verbatiminput*
32399 filename "DummyTextDocument.txt"
32406 \begin_layout Standard
32407 \begin_inset VSpace bigskip
32413 \begin_layout Standard
32414 \begin_inset Note Greyedout
32417 \begin_layout Plain Layout
32422 As you can see in the examples above, the text of the documents included
32427 is not broken at the end of the document lines.
32435 \begin_layout Description
32436 Listings This type is described in chapter
32437 \begin_inset space ~
32441 \begin_inset CommandInset ref
32443 reference "cha:Program-Code-Listings"
32450 \begin_layout Standard
32451 \begin_inset Note Greyedout
32454 \begin_layout Plain Layout
32459 Including the same document twice in a document using different methods
32460 could cause LaTeX-problems.
32468 \begin_layout Chapter
32469 Program Code Listings
32470 \begin_inset CommandInset label
32472 name "cha:Program-Code-Listings"
32480 \begin_layout Plain Layout
32490 \begin_layout Plain Layout
32500 \begin_layout Plain Layout
32509 \begin_layout Standard
32510 To include and typeset program code you can use the
32514 inset that can be inserted via the menu
32516 Insert\SpecialChar \menuseparator
32528 \begin_layout Plain Layout
32529 LaTeX-packages ! listings
32534 provides a powerful and flexible way to insert program source code to your
32538 \begin_layout Standard
32539 Right-clicking on a listings inset opens the context menu containing where
32540 you can set the listings format.
32543 \begin_layout Standard
32544 By default, a listing starts a new paragraph in the output.
32545 The placement option
32548 \begin_inset space ~
32553 prints the listing inline like this:
32554 \begin_inset listings
32555 lstparams "language={C++}"
32559 \begin_layout Plain Layout
32567 \begin_inset Newline newline
32574 creates a listings float where you can specify the placement options
32575 \begin_inset Quotes eld
32583 \begin_inset Quotes erd
32587 \begin_inset Quotes eld
32595 \begin_inset Quotes erd
32599 \begin_inset Quotes eld
32607 \begin_inset Quotes erd
32611 \begin_inset Quotes eld
32619 \begin_inset Quotes erd
32622 corresponding to the float placement options described in section
32623 \begin_inset space ~
32627 \begin_inset CommandInset ref
32629 reference "sec:Float-Placement"
32634 The placement options can be mixed and are inserted without any separation,
32636 \begin_inset space \thinspace{}
32640 \begin_inset space \space{}
32644 \begin_inset Quotes eld
32652 \begin_inset Quotes erd
32657 \begin_inset Quotes eld
32661 \begin_inset Quotes erd
32664 has sometimes no effect, but you don't need to use the
32668 option in this case as also non-float listings can have captions and be
32672 \begin_layout Standard
32673 You can add captions to listings with the menu
32675 Insert\SpecialChar \menuseparator
32679 Listings can be referenced like floats: Listing
32680 \begin_inset space ~
32684 \begin_inset CommandInset ref
32686 reference "lst:Example-Listing"
32693 \begin_layout Standard
32694 \begin_inset listings
32695 lstparams "language=Python"
32699 \begin_layout Plain Layout
32701 \begin_inset Caption
32703 \begin_layout Plain Layout
32704 \begin_inset CommandInset label
32706 name "lst:Example-Listing"
32710 Example Listing float
32715 # Example listing float
32718 \begin_layout Plain Layout
32723 \begin_layout Plain Layout
32725 'this is a python function'
32728 \begin_layout Plain Layout
32738 \begin_layout Standard
32739 When you have set a programming language in the listings dialog, the keywords
32740 of this language will be recognized and specially typeset in the output.
32741 In the example listings the Python keyword
32742 \begin_inset Quotes eld
32746 \begin_inset Quotes erd
32749 is recognized and printed bold in the output.
32752 \begin_layout Standard
32753 \begin_inset Note Greyedout
32756 \begin_layout Plain Layout
32761 If you don't get bold keywords when using typewriter fonts, your
32765 font probably doesn't provide a bold shape.
32766 In this case select a different one in the menu
32768 Document\SpecialChar \menuseparator
32769 Settings\SpecialChar \menuseparator
32781 provide bold shapes.)
32789 \begin_layout Standard
32793 \begin_inset space ~
32798 of the listings dialog you can specify the line numbering style.
32799 You can insert a number to specify which lines are numbered to the field
32806 \begin_inset space \thinspace{}
32810 \begin_inset space \space{}
32814 \begin_inset Quotes eld
32818 \begin_inset Quotes erd
32821 , only every 3rd line will be numbered.
32824 \begin_layout Standard
32825 You can furthermore specify a range of lines, only these will then appear
32829 Extended character table
32831 should be used when you use national characters like the German umlauts
32833 \begin_inset Newline newline
32836 Here is an example listing with left line numbering, step
32837 \begin_inset Quotes eld
32841 \begin_inset Quotes erd
32845 \begin_inset Quotes eld
32849 \begin_inset Quotes erd
32853 \begin_inset Quotes eld
32856 Extended character table
32857 \begin_inset Quotes erd
32861 \begin_inset Quotes eld
32865 \begin_inset space ~
32869 \begin_inset space ~
32873 \begin_inset Quotes erd
32877 \begin_inset space \thinspace{}
32881 \begin_inset space \thinspace{}
32887 \begin_layout Standard
32888 \begin_inset listings
32889 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32893 \begin_layout Plain Layout
32898 \begin_layout Plain Layout
32900 'this is a python function'
32903 \begin_layout Plain Layout
32908 \begin_layout Plain Layout
32913 \begin_layout Plain Layout
32915 'This is a German word: Tschüß'
32918 \begin_layout Plain Layout
32923 \begin_layout Plain Layout
32928 \begin_layout Plain Layout
32930 'this is a python function'
32933 \begin_layout Plain Layout
32943 \begin_layout Standard
32944 When you have tabulators in your listing, you can specify the number of
32945 characters that are spanned by a tabulator in the field
32948 \begin_inset space ~
32956 \begin_layout Standard
32957 \begin_inset Note Greyedout
32960 \begin_layout Plain Layout
32965 Due to a bug in the
32969 package the line numbering is shifted by a line by every previous listing.
32970 That's the reason why the lines 2 and 5 are numbered in the above listing
32971 and not the lines 3 and 6.
32979 \begin_layout Standard
32980 \begin_inset VSpace bigskip
32986 \begin_layout Standard
32987 It is also possible to print lines from a file as listing.
32988 To do this, use the menu
32990 Insert\SpecialChar \menuseparator
32991 File\SpecialChar \menuseparator
32994 and choose the type
33002 \begin_layout Plain Layout
33003 The other child document types are described in section
33004 \begin_inset space ~
33008 \begin_inset CommandInset ref
33010 reference "sec:Child-Documents"
33019 In the child document dialog you can specify the listing parameters in
33021 To show a list of all available parameters, type in a question mark
33022 \begin_inset Quotes eld
33026 \begin_inset Quotes erd
33032 \begin_layout Standard
33033 To reference child document listings, write a label text into the corresponding
33034 field of the child document dialog.
33035 The label can then be referenced using the menu
33037 Insert\SpecialChar \menuseparator
33043 \begin_layout Standard
33045 \begin_inset space ~
33049 \begin_inset CommandInset ref
33051 reference "lst:file-listing"
33055 is an example for a listing of a file; there the lines 10
33056 \begin_inset space \thinspace{}
33060 \begin_inset space \thinspace{}
33063 15 of this LyX file are listed.
33066 \begin_layout Standard
33067 \begin_inset CommandInset include
33068 LatexCommand lstinputlisting
33069 filename "EmbeddedObjects.lyx"
33070 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33077 \begin_layout Standard
33078 \begin_inset VSpace bigskip
33084 \begin_layout Standard
33085 Global listings settings can be set in the
33087 Document\SpecialChar \menuseparator
33088 Settings\SpecialChar \menuseparator
33092 To get there a list of available options, type in a question mark
33093 \begin_inset Quotes eld
33097 \begin_inset Quotes erd
33103 \begin_inset space ~
33111 \begin_layout Standard
33112 For more information about the
33116 package, we refer to its documentation
33117 \begin_inset CommandInset citation
33126 \begin_layout Standard
33127 \begin_inset Newpage newpage
33133 \begin_layout Chapter
33135 Units available in LyX
33139 \begin_layout Plain Layout
33146 \begin_inset CommandInset label
33148 name "cha:Units-available-in"
33155 \begin_layout Standard
33156 To understand the units described in this documentation, Table
33157 \begin_inset space ~
33161 \begin_inset CommandInset ref
33163 reference "tab:Units"
33167 explains all units available in LyX.
33170 \begin_layout Standard
33171 \begin_inset Float table
33177 \begin_layout Plain Layout
33178 \begin_inset Caption
33180 \begin_layout Plain Layout
33181 \begin_inset CommandInset label
33195 \begin_layout Plain Layout
33196 \begin_inset VSpace medskip
33202 \begin_layout Plain Layout
33204 \begin_inset Tabular
33205 <lyxtabular version="3" rows="20" columns="2">
33207 <column alignment="center" valignment="top" width="0">
33208 <column alignment="center" valignment="top" width="0">
33210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33213 \begin_layout Plain Layout
33219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33222 \begin_layout Plain Layout
33230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33233 \begin_layout Plain Layout
33239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33242 \begin_layout Plain Layout
33250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33253 \begin_layout Plain Layout
33259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33262 \begin_layout Plain Layout
33270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33273 \begin_layout Plain Layout
33279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33282 \begin_layout Plain Layout
33290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33293 \begin_layout Plain Layout
33299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33302 \begin_layout Plain Layout
33304 \begin_inset space \thinspace{}
33308 \begin_inset space \thinspace{}
33318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33321 \begin_layout Plain Layout
33327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33330 \begin_layout Plain Layout
33332 \begin_inset space \thinspace{}
33336 \begin_inset space \thinspace{}
33346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33349 \begin_layout Plain Layout
33355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33358 \begin_layout Plain Layout
33359 scaled point (65536
33360 \begin_inset space \thinspace{}
33364 \begin_inset space \thinspace{}
33374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33377 \begin_layout Plain Layout
33383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33386 \begin_layout Plain Layout
33388 \begin_inset space \thinspace{}
33392 \begin_inset space \thinspace{}
33402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33405 \begin_layout Plain Layout
33411 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33414 \begin_layout Plain Layout
33416 \begin_inset space \thinspace{}
33420 \begin_inset Formula $\approx$
33424 \begin_inset space \thinspace{}
33434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33437 \begin_layout Plain Layout
33443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33446 \begin_layout Plain Layout
33448 \begin_inset space \thinspace{}
33452 \begin_inset space \thinspace{}
33462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33465 \begin_layout Plain Layout
33471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33474 \begin_layout Plain Layout
33475 % of original image width
33482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33485 \begin_layout Plain Layout
33491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33494 \begin_layout Plain Layout
33502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33505 \begin_layout Plain Layout
33511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33514 \begin_layout Plain Layout
33522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33525 \begin_layout Plain Layout
33531 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33534 \begin_layout Plain Layout
33542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33545 \begin_layout Plain Layout
33551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33554 \begin_layout Plain Layout
33562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33565 \begin_layout Plain Layout
33571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33574 \begin_layout Plain Layout
33582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33585 \begin_layout Plain Layout
33591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33594 \begin_layout Plain Layout
33602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33605 \begin_layout Plain Layout
33611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33614 \begin_layout Plain Layout
33626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33629 \begin_layout Plain Layout
33635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33638 \begin_layout Plain Layout
33650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33653 \begin_layout Plain Layout
33659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33662 \begin_layout Plain Layout
33664 \begin_inset space \thinspace{}
33668 \begin_inset space \thinspace{}
33689 \begin_layout Chapter
33690 Output File Formats with Graphics
33691 \begin_inset CommandInset label
33693 name "cha:Output-File-Formats"
33700 \begin_layout Section
33705 \begin_layout Plain Layout
33715 \begin_layout Plain Layout
33720 \begin_layout Plain Layout
33731 \begin_layout Plain Layout
33746 \begin_layout Standard
33747 This file type has the extension
33748 \begin_inset Quotes eld
33756 \begin_inset Quotes erd
33761 \begin_inset Quotes eld
33765 \begin_inset Quotes erd
33768 (DVI), because it is completely portable; you can move them from one machine
33769 to another without needing to do any sort of conversion.
33770 At the time when this file-format was developed, this was no matter of
33772 DVIs are used for quick previews and as pre-stage for other output formats,
33776 \begin_layout Standard
33777 \begin_inset Note Greyedout
33780 \begin_layout Plain Layout
33785 DVI-files doesn't contain images, they will only be a linked.
33790 So don't forget this, if you move your
33794 file to another computer.
33795 This property can also slow down your computer when you view the DVI.
33796 Because the DVI-viewer has to convert the image in the background to make
33797 it visible when you scroll in the DVI.
33798 So we recommend to use PDF for files with many images.
33801 \begin_layout Standard
33802 You can export your document to DVI by using the menu
33804 File\SpecialChar \menuseparator
33805 Export\SpecialChar \menuseparator
33809 You can view your document as DVI via the
33813 menu or by using the toolbar button
33814 \begin_inset Graphics
33815 filename ../images/buffer-view_dvi.png
33817 scaleBeforeRotation
33824 \begin_layout Section
33826 \begin_inset CommandInset label
33828 name "sec:PostScript"
33836 \begin_layout Plain Layout
33837 File Formats ! PostScript
33846 \begin_layout Plain Layout
33851 \begin_layout Plain Layout
33862 \begin_layout Plain Layout
33877 \begin_layout Standard
33878 This file type has the extension
33879 \begin_inset Quotes eld
33887 \begin_inset Quotes erd
33891 PostScript was developed by the company
33895 as printer language.
33896 The file contains therefore commands that the printer uses to print the
33898 PostScript can be seen as
33899 \begin_inset Quotes eld
33902 programming language
33903 \begin_inset Quotes erd
33906 ; you can calculate with it and draw diagrams and images
33910 \begin_layout Plain Layout
33911 If you are interested to learn more about this, have a look at the LaTeX-package
33917 \begin_inset CommandInset citation
33929 Due to this ability, the files are often bigger than PDFs.
33932 \begin_layout Standard
33933 PostScript can only contain images in the format
33934 \begin_inset Quotes eld
33937 Encapsulated PostScript
33938 \begin_inset Quotes erd
33941 (EPS, file extension
33942 \begin_inset Quotes eld
33950 \begin_inset Quotes erd
33954 As LyX allows you to use any known image format in your document, it has
33955 to convert images in the background to EPS.
33956 If you have e.g 50 images in your document, LyX has to do 50 conversions
33957 whenever you view or export your document.
33958 This will slow down your work flow with LyX drastically.
33959 So if you plan to use PostScript, you can insert your images directly as
33960 EPS to avoid this problem.
33963 \begin_layout Standard
33964 You can export your document to PostScript using the menu
33966 File\SpecialChar \menuseparator
33967 Export\SpecialChar \menuseparator
33971 You can view your document as PostScript via the
33975 menu or by using the toolbar button
33976 \begin_inset Graphics
33977 filename ../images/buffer-view_ps.png
33979 scaleBeforeRotation
33986 \begin_layout Section
33991 \begin_layout Plain Layout
34001 \begin_layout Plain Layout
34010 \begin_layout Standard
34011 This file type has the extension
34012 \begin_inset Quotes eld
34020 \begin_inset Quotes erd
34025 \begin_inset Quotes eld
34028 Portable Document Format
34029 \begin_inset Quotes erd
34032 (PDF) is developed by
34036 as derivative from PostScript.
34037 It is more compressed and it uses much less commands than PostScript.
34039 \begin_inset Quotes eld
34043 \begin_inset Quotes erd
34046 implies, it can be processed at any computer system and the printed output
34047 looks exactly the same.
34050 \begin_layout Standard
34051 PDF can contain images in its own PDF format, in the format
34052 \begin_inset Quotes eld
34055 Joint Photographic Experts Group
34056 \begin_inset Quotes erd
34059 (JPG, file extension
34060 \begin_inset Quotes eld
34068 \begin_inset Quotes erd
34072 \begin_inset Quotes eld
34080 \begin_inset Quotes erd
34083 ), and in the format
34084 \begin_inset Quotes eld
34087 Portable Network Graphics
34088 \begin_inset Quotes erd
34091 (PNG, file extension
34092 \begin_inset Quotes eld
34100 \begin_inset Quotes erd
34104 Nevertheless you can use any other image format, because LyX converts them
34105 in the background to one of these formats.
34106 But as described in the section about PostScript, the image conversion
34107 will slow down your work flow.
34108 So it is recommended to use images in one of the three mentioned formats.
34111 \begin_layout Standard
34112 You can export your document to PDF via the menu
34114 File\SpecialChar \menuseparator
34117 in three different ways:
34120 \begin_layout Description
34122 \begin_inset space ~
34125 (ps2pdf) This uses the program
34129 that creates a PDF from a PostScript-version of your file.
34130 The PostScript-version is produced by the program
34134 which uses a DVI-version as intermediate step.
34135 So this export variant consist of three conversions.
34138 \begin_layout Description
34140 \begin_inset space ~
34143 (dvipdfm) This uses the program
34147 that converts your file in the background to DVI and in a second step to
34151 \begin_layout Description
34153 \begin_inset space ~
34156 (pdflatex) This uses the program
34160 that converts your file directly to PDF.
34163 \begin_layout Standard
34164 It is recommended to use
34167 \begin_inset space ~
34176 supports all features of actual PDF-versions, is quick and works stable
34182 is not under development and therefore a bit outdated.
34185 \begin_layout Standard
34186 You can view your document as PDF via the
34190 menu or by using the toolbar button
34191 \begin_inset Graphics
34192 filename ../images/buffer-view_pdf2.png
34194 scaleBeforeRotation
34205 \begin_inset space ~
34213 \begin_layout Chapter
34214 Explanation of Equation
34215 \begin_inset space ~
34219 \begin_inset CommandInset ref
34226 \begin_inset CommandInset label
34228 name "cha:Explanation-of-Equation"
34235 \begin_layout Standard
34241 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34244 can be calculated to
34247 \begin_layout Standard
34248 \begin_inset Formula \begin{equation}
34249 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}
34256 \begin_layout Standard
34258 \begin_inset Formula $W_{g\, n}$
34261 is the given width of all cells.
34268 is the LaTeX-length between the cell text and the cell border, its default
34270 \begin_inset space \thinspace{}
34280 is the thickness of the cell border line, the default is 0.4
34281 \begin_inset space \thinspace{}
34287 \begin_layout Standard
34289 \begin_inset space ~
34293 \begin_inset CommandInset ref
34295 reference "eq:Wtot_n"
34299 , the total width of a multicolumn
34300 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34306 \begin_layout Standard
34307 \begin_inset Formula \begin{equation}
34308 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34315 \begin_layout Standard
34316 By setting equation
34317 \begin_inset space ~
34321 \begin_inset CommandInset ref
34323 reference "eq:Wtot_n"
34328 \begin_inset CommandInset ref
34330 reference "eq:Wtot_mult"
34334 equal we can calculate the needed given width
34335 \begin_inset Formula $W_{g\, n}$
34342 columns are spanned, so that each column has a total width of
34343 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34349 \begin_layout Standard
34350 \begin_inset Formula \begin{equation}
34351 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34358 \begin_layout Bibliography
34359 \begin_inset CommandInset bibitem
34360 LatexCommand bibitem
34361 key "latexcompanion"
34365 Frank Mittelbach and Michel Goossens:
34367 The LaTeX Companion Second Edition.
34370 Addison-Wesley, 2004
34373 \begin_layout Bibliography
34374 \begin_inset CommandInset bibitem
34375 LatexCommand bibitem
34380 Helmut Kopka and Patrick W.
34383 A Guide to LaTeX Fourth Edition.
34386 Addison-Wesley, 2003
34389 \begin_layout Bibliography
34390 \begin_inset CommandInset bibitem
34391 LatexCommand bibitem
34398 LaTeX: A Document Preparation System.
34401 Addison-Wesley, second edition, 1994
34404 \begin_layout Bibliography
34405 \begin_inset CommandInset bibitem
34406 LatexCommand bibitem
34411 Documentation of the LaTeX-package
34414 \begin_inset CommandInset href
34417 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34427 \begin_layout Plain Layout
34428 LaTeX-packages ! booktabs
34436 \begin_layout Bibliography
34437 \begin_inset CommandInset bibitem
34438 LatexCommand bibitem
34443 Documentation of the LaTeX-package
34446 \begin_inset CommandInset href
34449 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34459 \begin_layout Plain Layout
34460 LaTeX-packages ! caption
34468 \begin_layout Bibliography
34469 \begin_inset CommandInset bibitem
34470 LatexCommand bibitem
34475 Documentation of the LaTeX-package
34478 \begin_inset CommandInset href
34481 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34491 \begin_layout Plain Layout
34492 LaTeX-packages ! endfloat
34500 \begin_layout Bibliography
34501 \begin_inset CommandInset bibitem
34502 LatexCommand bibitem
34507 Documentation of the LaTeX-package
34510 \begin_inset CommandInset href
34513 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34523 \begin_layout Plain Layout
34524 LaTeX-packages ! wrapfig
34528 \begin_layout Plain Layout
34545 \begin_layout Bibliography
34546 \begin_inset CommandInset bibitem
34547 LatexCommand bibitem
34552 Documentation of the LaTeX-package
34555 \begin_inset CommandInset href
34558 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34568 \begin_layout Plain Layout
34569 LaTeX-packages ! footmisc
34577 \begin_layout Bibliography
34578 \begin_inset CommandInset bibitem
34579 LatexCommand bibitem
34584 Documentation of the LaTeX-package
34587 \begin_inset CommandInset href
34590 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34600 \begin_layout Plain Layout
34601 LaTeX-packages ! hyperref
34609 \begin_layout Bibliography
34610 \begin_inset CommandInset bibitem
34611 LatexCommand bibitem
34616 Documentation of the LaTeX-package
34619 \begin_inset CommandInset href
34622 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34632 \begin_layout Plain Layout
34633 LaTeX-packages ! hyperref
34641 \begin_layout Bibliography
34642 \begin_inset CommandInset bibitem
34643 LatexCommand bibitem
34648 Documentation of the LaTeX-package
34651 \begin_inset CommandInset href
34654 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34664 \begin_layout Plain Layout
34665 LaTeX-packages ! KOMA-script
34673 \begin_layout Bibliography
34674 \begin_inset CommandInset bibitem
34675 LatexCommand bibitem
34680 Documentation of the LaTeX-package
34683 \begin_inset CommandInset href
34686 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34696 \begin_layout Plain Layout
34697 LaTeX-packages ! listings
34705 \begin_layout Bibliography
34706 \begin_inset CommandInset bibitem
34707 LatexCommand bibitem
34712 Documentation of the LaTeX-package
34715 \begin_inset CommandInset href
34718 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34728 \begin_layout Plain Layout
34729 LaTeX-packages ! marginnote
34737 \begin_layout Bibliography
34738 \begin_inset CommandInset bibitem
34739 LatexCommand bibitem
34744 Web page of the LaTeX-package
34747 \begin_inset CommandInset href
34750 target "http://tug.org/PSTricks/"
34760 \begin_layout Plain Layout
34761 LaTeX-packages ! PSTricks
34769 \begin_layout Bibliography
34770 \begin_inset CommandInset bibitem
34771 LatexCommand bibitem
34776 Documentation of the LaTeX-package
34779 \begin_inset CommandInset href
34782 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34792 \begin_layout Plain Layout
34793 LaTeX-packages ! sidecap
34801 \begin_layout Bibliography
34802 \begin_inset CommandInset bibitem
34803 LatexCommand bibitem
34809 \begin_inset CommandInset href
34812 target "http://wiki.lyx.org/LyX/NewInLyX16"
34816 about new features in
34823 \begin_layout Standard
34824 \begin_inset CommandInset index_print
34825 LatexCommand printindex
34832 \begin_layout Standard
34833 \begin_inset FloatList figure
34840 \begin_layout Standard
34841 \begin_inset FloatList table
34848 \begin_layout Standard
34849 \begin_inset FloatList algorithm