1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
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 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
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_pagebackref false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
324 \begin_inset CommandInset label
334 \begin_layout Plain Layout
344 \begin_layout Plain Layout
349 \begin_layout Plain Layout
360 \begin_layout Plain Layout
375 \begin_layout Section
380 \begin_layout Plain Layout
381 Figures ! Graphics Dialog
387 \begin_inset CommandInset label
389 name "sec:Graphics-Dialog"
396 \begin_layout Standard
397 To insert an image into your document, place the cursor at the text position
398 you want and click on the toolbar icon
399 \begin_inset Graphics
400 filename ../images/dialog-show-new-inset_graphics.png
408 Insert\SpecialChar \menuseparator
412 Then a dialog will appear to choose the file to load.
413 The image will appear in the output exactly at the position where it is
417 \begin_layout Standard
418 The graphics dialog can be called at any time by right-clicking on an image.
419 This dialog has three tabs:
422 \begin_layout Description
427 Here you can choose an image file and adjust its appearance in the output.
428 The available units for the image size are explained in appendix
433 \begin_inset CommandInset ref
435 reference "cha:Units-available-in"
440 \begin_inset Newline newline
447 \begin_layout Plain Layout
453 You can rotate images counter-clockwise by setting a rotation angle and
455 The image will also be rotated inside LyX.
456 \begin_inset Newline newline
463 \begin_layout Plain Layout
469 Images can be scaled by using a percentage value or by setting the width
470 and height explicitly.
471 If you set only the width or only the height, the other size will be determined
473 If you set both, then the image will be transformed to the given size,
474 possibly distorting it.
475 To prevent the image from distortion, use the option
477 Maintain aspect ratio
480 The image will then be scaled so that its width and height don't exceed
481 the specified dimensions.
482 \begin_inset Newline newline
485 Images can be opened in a program of your choice when pressing the
490 The program can be set for every image format in the file format settings
491 in LyX's preferences.
494 \begin_layout Description
499 Alternatively to the usage of scaling units it is possible to set image
500 coordinates to adjust the height and width of the image in the output.
501 The coordinates can also be calculated automatically by pressing the button
531 will only print the image region within the given coordinates.
532 Normally you don't need to take care about image coordinates and can ignore
536 \begin_layout Description
545 In this tab you can modify the appearance of the image within LyX and set
546 the image to be a subfigure of a figure float with an own caption.
547 Subfigures are explained in section
552 \begin_inset CommandInset ref
554 reference "sec:Figure-Floats"
559 \begin_inset Newline newline
562 LaTeX experts can also specify on this tab additional LaTeX options.
563 \begin_inset Newline newline
574 makes the image appear in the output only as a frame with the size of the
576 \begin_inset Newline newline
595 option only affects zipped EPS-graphics, e.
596 \begin_inset space \thinspace{}
608 When the option is used the images will not be unzipped on export, since
609 LaTeX can handle them as they are.
610 \begin_inset Newline newline
613 Zipped EPS-graphics are useful to save disk space when you choose PostScript
614 as output format, see appendix
619 \begin_inset CommandInset ref
621 reference "sec:PostScript"
626 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
628 \begin_inset Newline newline
636 \begin_inset Newline newline
641 zgrep %%Bounding x.eps.gz > x.eps.bb
644 \begin_inset Newline newline
647 The second command creates the bounding box file
648 \begin_inset Quotes eld
652 \begin_inset Quotes erd
655 that is needed by LaTeX for zipped graphics.
658 \begin_layout Standard
659 \begin_inset VSpace bigskip
665 \begin_layout Standard
666 This is an example image in EPS format
670 \begin_layout Plain Layout
671 Image formats are explained in section
676 \begin_inset CommandInset ref
678 reference "sec:Image-Formats"
687 within a separate, horizontally centered paragraph:
690 \begin_layout Standard
692 \begin_inset Graphics
693 filename clipart/mobius.eps
703 \begin_layout Standard
704 This is the same image like the one above but in draft mode:
707 \begin_layout Standard
709 \begin_inset Graphics
710 filename clipart/mobius.eps
721 \begin_layout Section
723 \begin_inset CommandInset label
725 name "sec:Figure-Floats"
733 \begin_layout Plain Layout
743 \begin_layout Plain Layout
752 \begin_layout Standard
753 For general explanations about floats, have a look at section
758 \begin_inset CommandInset ref
760 reference "sec:FloatIntroduction"
767 \begin_layout Standard
769 \begin_inset Graphics
770 filename ../images/float-insert_figure.png
778 Insert\SpecialChar \menuseparator
779 Float\SpecialChar \menuseparator
782 inserts a float with a caption that has the label
783 \begin_inset Quotes eld
791 \begin_inset Quotes erd
794 (# is the actual number).
795 You can insert the image above the caption, like in Figure
800 \begin_inset CommandInset ref
802 reference "fig:kill-plat"
806 or below the caption, like in Figure
811 \begin_inset CommandInset ref
813 reference "fig:escher"
818 More about the caption placement is described in section
823 \begin_inset CommandInset ref
825 reference "sec:Caption-Placement"
832 \begin_layout Standard
833 \begin_inset Float figure
838 \begin_layout Plain Layout
840 \begin_inset Graphics
841 filename clipart/platypus.eps
851 \begin_layout Plain Layout
854 \begin_layout Plain Layout
855 \begin_inset CommandInset label
861 A severely distorted platypus in a float.
874 \begin_layout Standard
875 \begin_inset Float figure
880 \begin_layout Plain Layout
883 \begin_layout Plain Layout
884 \begin_inset CommandInset label
899 \begin_layout Plain Layout
901 \begin_inset Graphics
902 filename clipart/escher-lsd.eps
917 \begin_layout Standard
921 \begin_layout Plain Layout
922 References ! to Figures
932 \begin_inset CommandInset ref
934 reference "fig:kill-plat"
939 \begin_inset CommandInset ref
941 reference "fig:escher"
945 are examples of referenced figures.
946 Figures can be referenced in the text by referencing their label.
947 To do this insert a label in the caption using the menu
949 Insert\SpecialChar \menuseparator
952 or the toolbar button
953 \begin_inset Graphics
954 filename ../images/label-insert.png
961 You can now refer to the label using the menu
963 Insert\SpecialChar \menuseparator
970 or the toolbar button
971 \begin_inset Graphics
972 filename ../images/dialog-show-new-inset_ref.png
979 It is important to use references to floats, rather than using vague references
981 \begin_inset Quotes eld
985 \begin_inset Quotes erd
988 , because as LaTeX will reposition the floats in the final document, it
990 \begin_inset Quotes eld
994 \begin_inset Quotes erd
998 \begin_inset Newline newline
1001 Referencing is explained in detail in section
1002 \begin_inset space ~
1006 \begin_inset CommandInset ref
1008 reference "sec:Referencing-Floats"
1015 \begin_layout Standard
1016 Normally only one image is inserted to a figure float, but sometimes you
1017 might want to use two images with separate subcaptions.
1018 This can be done by inserting image floats into existing image floats.
1019 Note that only the main caption of the float is added to the List of Figures.
1021 \begin_inset space ~
1025 \begin_inset CommandInset ref
1027 reference "fig:Two-distorted-images"
1031 is an example of a figure float with two images set side by side.
1032 You can also set the images one below the other.
1034 \begin_inset space ~
1038 \begin_inset CommandInset ref
1040 reference "fig:Undefinable-structure"
1045 \begin_inset CommandInset ref
1047 reference "fig:A-Platypus"
1054 \begin_layout Standard
1055 \begin_inset Float figure
1060 \begin_layout Plain Layout
1061 \begin_inset space \hfill{}
1065 \begin_inset Float figure
1070 \begin_layout Plain Layout
1071 \begin_inset Caption
1073 \begin_layout Plain Layout
1074 \begin_inset CommandInset label
1076 name "fig:Undefinable-structure"
1080 Undefinable structure.
1088 \begin_layout Plain Layout
1089 \begin_inset Graphics
1090 filename clipart/escher-lsd.eps
1102 \begin_inset space \hfill{}
1106 \begin_inset Float figure
1111 \begin_layout Plain Layout
1112 \begin_inset Caption
1114 \begin_layout Plain Layout
1115 \begin_inset CommandInset label
1117 name "fig:A-Platypus"
1129 \begin_layout Plain Layout
1130 \begin_inset Graphics
1131 filename clipart/platypus.eps
1144 \begin_inset space \hfill{}
1150 \begin_layout Plain Layout
1151 \begin_inset Caption
1153 \begin_layout Plain Layout
1154 \begin_inset CommandInset label
1156 name "fig:Two-distorted-images"
1160 Two distorted images.
1173 \begin_layout Section
1175 \begin_inset CommandInset label
1177 name "sec:Image-Formats"
1185 \begin_layout Plain Layout
1195 \begin_layout Plain Layout
1196 Figures ! Image Formats
1204 \begin_layout Standard
1205 You can insert images in any known file format.
1206 But as explained in appendix
1207 \begin_inset space ~
1211 \begin_inset CommandInset ref
1213 reference "cha:Output-File-Formats"
1217 , every output document format allows only a few image formats.
1218 LyX uses therefore the program
1222 in the background to convert the images to the right format.
1223 To increase your work flow by avoiding these conversions in the background,
1224 you can use only the image formats that can directly be embedded in the
1226 The output file formats are explained in appendix
1227 \begin_inset space ~
1231 \begin_inset CommandInset ref
1233 reference "cha:Output-File-Formats"
1240 \begin_layout Standard
1241 Similar to fonts there are two types of image formats:
1244 \begin_layout Description
1246 \begin_inset space ~
1249 images consist of pixel values, often in a compressed form.
1250 They are therefore not fully scalable and look pixeled in large zooms.
1251 Well-known bitmap image formats are
1252 \begin_inset Quotes eld
1255 Graphics Interchange Format
1256 \begin_inset Quotes erd
1259 (GIF, file extension
1260 \begin_inset Quotes eld
1268 \begin_inset Quotes erd
1275 \begin_layout Plain Layout
1280 \begin_layout Plain Layout
1291 \begin_layout Plain Layout
1304 \begin_inset Quotes eld
1307 Portable Network Graphics
1308 \begin_inset Quotes erd
1311 (PNG, file extension
1312 \begin_inset Quotes eld
1320 \begin_inset Quotes erd
1327 \begin_layout Plain Layout
1332 \begin_layout Plain Layout
1343 \begin_layout Plain Layout
1356 \begin_inset Quotes eld
1359 Joint Photographic Experts Group
1360 \begin_inset Quotes erd
1363 (JPG, file extension
1364 \begin_inset Quotes eld
1372 \begin_inset Quotes erd
1376 \begin_inset Quotes eld
1384 \begin_inset Quotes erd
1391 \begin_layout Plain Layout
1396 \begin_layout Plain Layout
1407 \begin_layout Plain Layout
1422 \begin_layout Description
1424 \begin_inset space ~
1427 images consist of vectors and can therefore be scaled to any size without
1429 The scaling ability is necessary if you want to create presentations, because
1430 presentations are always scaled by the video projector.
1431 Scaling is also useful for online documents to let the user zoom into diagrams.
1432 \begin_inset Newline newline
1435 Well-known scalable image formats are
1436 \begin_inset Quotes eld
1439 Scalable Vector Graphics
1440 \begin_inset Quotes erd
1443 (SVG, file extension
1444 \begin_inset Quotes eld
1452 \begin_inset Quotes erd
1459 \begin_layout Plain Layout
1464 \begin_layout Plain Layout
1475 \begin_layout Plain Layout
1488 \begin_inset Quotes eld
1491 Encapsulated PostScript
1492 \begin_inset Quotes erd
1495 (EPS, file extension
1496 \begin_inset Quotes eld
1504 \begin_inset Quotes erd
1511 \begin_layout Plain Layout
1516 \begin_layout Plain Layout
1527 \begin_layout Plain Layout
1540 \begin_inset Quotes eld
1543 Portable Document Format
1544 \begin_inset Quotes erd
1547 (PDF, file extension
1548 \begin_inset Quotes eld
1556 \begin_inset Quotes erd
1563 \begin_layout Plain Layout
1570 \begin_inset Quotes eld
1574 \begin_inset Quotes erd
1577 (WMF, file extension
1578 \begin_inset Quotes eld
1586 \begin_inset Quotes erd
1593 \begin_layout Plain Layout
1598 \begin_layout Plain Layout
1609 \begin_layout Plain Layout
1623 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1630 , because you can convert any bitmap image to a PDF or EPS-image and the
1631 result will still be a bitmap image.
1632 In this cases only a header with the image properties is added to the original
1637 \begin_layout Plain Layout
1638 In the case of PDF, the original image is additionally compressed.
1644 The PDF-files generated by
1648 are for example bitmap images.
1651 \begin_layout Standard
1652 Normally it is not possible to convert a bitmap image into a scalable one,
1654 Only the image formats PDF and EPS can directly be embedded to PDF and
1655 PostScript output files, respectively.
1656 SVG and WMF-images are recalculated to bitmaps when the output file is
1657 generated because there is currently no adequate WMF/SVG
1658 \begin_inset Formula $\to$
1661 PDF/EPS converter available.
1664 \begin_layout Chapter
1666 \begin_inset CommandInset label
1676 \begin_layout Plain Layout
1685 \begin_layout Section
1690 \begin_layout Plain Layout
1691 Table ! Introduction
1699 \begin_layout Standard
1700 You can insert a table using either the toolbar button
1701 \begin_inset Graphics
1702 filename ../images/tabular-insert.png
1710 Insert\SpecialChar \menuseparator
1714 The toolbar button offers you a graphical selection: Move the mouse to
1715 set the column/row number of the table that should be created and then
1716 press a mouse button.
1717 When you use the menu to create a table, a dialog will appear, asking you
1718 for the number of rows and columns.
1719 \begin_inset Newline newline
1722 The default table has lines around any cell and the first row appears separated
1723 from the rest of the table.
1724 This separation occurs due to a double line: The cells of the first row
1725 have a line below them and the cells of the second row have a line above
1727 Here is an example table:
1730 \begin_layout Standard
1732 \begin_inset Tabular
1733 <lyxtabular version="3" rows="4" columns="4">
1735 <column alignment="center" valignment="top" width="0">
1736 <column alignment="center" valignment="top" width="0">
1737 <column alignment="center" valignment="top" width="0">
1738 <column alignment="center" valignment="top" width="0">
1740 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1743 \begin_layout Plain Layout
1749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1752 \begin_layout Plain Layout
1767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1770 \begin_layout Plain Layout
1776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1779 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1817 \begin_layout Plain Layout
1823 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1826 \begin_layout Plain Layout
1834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1837 \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" usebox="none">
1864 \begin_layout Plain Layout
1870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1873 \begin_layout Plain Layout
1881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1884 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1911 \begin_layout Plain Layout
1917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1920 \begin_layout Plain Layout
1934 \begin_layout Section
1939 \begin_layout Plain Layout
1948 \begin_layout Standard
1949 You can alter a table by clicking on it with the right mouse button, which
1950 brings up the table dialog.
1951 Here you can adjust the settings of that cell and row/column respectively
1952 where the cursor is currently placed.
1953 Most of the dialog options also work on selections.
1954 This means if you select more cells, columns or rows, the action is done
1955 for the whole selection.
1956 Note that there is a difference between selecting the
1960 of the cell, and the cell itself.
1961 You can alter tables with the following tabs of the table dialog:
1964 \begin_layout Description
1968 \begin_inset space ~
1973 Here you can set the horizontal alignment and the width of the current
1975 When you have set a width you can also adjust the vertical alignment of
1977 A given width will allow the cell to have line breaks and multiple paragraphs
1978 of text, see section
1979 \begin_inset space ~
1983 \begin_inset CommandInset ref
1985 reference "sub:Multiple-Lines-in"
1990 If you set no width, the column is as wide as their widest cell content
1992 \begin_inset Newline newline
1995 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1997 \begin_inset space ~
2001 \begin_inset CommandInset ref
2003 reference "sub:Multicolumns"
2008 \begin_inset Newline newline
2011 The rotate check boxes rotates the current cell, a selection, or the whole
2012 table counter-clockwise by 90°.
2013 The rotation is not shown within LyX, only in the output.
2014 \begin_inset Newline newline
2018 \begin_inset Note Greyedout
2021 \begin_layout Plain Layout
2026 Not all DVI-viewers are able to display rotations.
2032 \begin_inset Newline newline
2035 It is also possible to enter a LaTeX-argument which is needed for special
2036 table formattings, see section
2037 \begin_inset space ~
2041 \begin_inset CommandInset ref
2043 reference "sub:Multicolumn-Calculations"
2048 \begin_inset CommandInset ref
2050 reference "sec:Colored-Tables"
2057 \begin_layout Description
2062 In this tab you can add and delete border lines for the current row/column.
2063 \begin_inset Newline newline
2066 Using the style option
2070 will convert the table to a formal table as described in section
2071 \begin_inset space ~
2075 \begin_inset CommandInset ref
2077 reference "sec:Formal-Tables"
2082 \begin_inset Newline newline
2085 You can also add here space to table rows as decribed in section
2086 \begin_inset space ~
2090 \begin_inset CommandInset ref
2092 reference "sub:Row-Spacing"
2099 \begin_layout Description
2104 This tab is to make a table a so called
2105 \begin_inset Quotes eld
2113 \begin_inset Quotes erd
2116 that can run over several pages.
2118 \begin_inset space ~
2122 \begin_inset CommandInset ref
2124 reference "sec:Longtables"
2129 \begin_inset CommandInset ref
2131 reference "sec:Special-Longtable-Issues"
2135 describe the longtable features in detail.
2138 \begin_layout Standard
2139 When the table toolbar is opened, you can move the cursor with the arrow
2140 keys from cell to cell and the property of the current cell will immediately
2141 be displayed in the dialog.
2144 \begin_layout Section
2149 \begin_layout Plain Layout
2158 \begin_layout Standard
2159 The table toolbar is an alternative to the table dialog to be able to alter
2161 It should normally appear at the bottom of LyX's main window when the cursor
2163 You can alternatively switch it on to appear always, by right-clicking
2164 in LyX's main menu bar.
2167 \begin_layout Standard
2168 The toolbar has the following icons:
2171 \begin_layout Labeling
2172 \labelwidthstring 00.00.0000
2173 \begin_inset Graphics
2174 filename ../images/tabular-feature_append-row.png
2179 adds a row below the current cell or selection
2182 \begin_layout Labeling
2183 \labelwidthstring 00.00.0000
2184 \begin_inset Graphics
2185 filename ../images/tabular-feature_append-column.png
2190 adds a column right beside the current cell or selection
2193 \begin_layout Labeling
2194 \labelwidthstring 00.00.0000
2195 \begin_inset Graphics
2196 filename ../images/tabular-feature_delete-row.png
2201 deletes the current row or selection
2204 \begin_layout Labeling
2205 \labelwidthstring 00.00.0000
2206 \begin_inset Graphics
2207 filename ../images/tabular-feature_delete-column.png
2212 deletes the current column or selection
2215 \begin_layout Labeling
2216 \labelwidthstring 00.00.0000
2217 \begin_inset Graphics
2218 filename ../images/tabular-feature_toggle-line-top.png
2223 adds a line at the top of the current cell / row or of a selection
2226 \begin_layout Labeling
2227 \labelwidthstring 00.00.0000
2228 \begin_inset Graphics
2229 filename ../images/tabular-feature_toggle-line-bottom.png
2234 adds a line at the bottom of the current cell / row or of a selection
2237 \begin_layout Labeling
2238 \labelwidthstring 00.00.0000
2239 \begin_inset Graphics
2240 filename ../images/tabular-feature_toggle-line-left.png
2245 adds a line at the left side of the current cell / row or of a selection
2248 \begin_layout Labeling
2249 \labelwidthstring 00.00.0000
2250 \begin_inset Graphics
2251 filename ../images/tabular-feature_toggle-line-right.png
2256 adds a line at the right side of the current cell / row or of a selection
2259 \begin_layout Labeling
2260 \labelwidthstring 00.00.0000
2261 \begin_inset Graphics
2262 filename ../images/tabular-feature_set-all-lines.png
2267 adds lines around the current or selected cells - if the current cell no
2268 multicolumn this also affects the current row and column
2271 \begin_layout Labeling
2272 \labelwidthstring 00.00.0000
2273 \begin_inset Graphics
2274 filename ../images/tabular-feature_unset-all-lines.png
2279 deletes all lines of the current or selected cells - if the current cell
2280 no multicolumn this also affects the current row and column
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Graphics
2286 filename ../images/tabular-feature_align-left.png
2291 left-aligns the content of the current cell / column
2294 \begin_layout Labeling
2295 \labelwidthstring 00.00.0000
2296 \begin_inset Graphics
2297 filename ../images/tabular-feature_align-center.png
2302 centers the content of the current cell / column horizontally
2305 \begin_layout Labeling
2306 \labelwidthstring 00.00.0000
2307 \begin_inset Graphics
2308 filename ../images/tabular-feature_align-right.png
2313 right-aligns the content of the current cell / column
2316 \begin_layout Labeling
2317 \labelwidthstring 00.00.0000
2318 \begin_inset Graphics
2319 filename ../images/tabular-feature_valign-top.png
2324 aligns the content of the current cell vertically to the top
2327 \begin_layout Labeling
2328 \labelwidthstring 00.00.0000
2329 \begin_inset Graphics
2330 filename ../images/tabular-feature_valign-middle.png
2335 centers the content of the current cell vertically
2338 \begin_layout Labeling
2339 \labelwidthstring 00.00.0000
2340 \begin_inset Graphics
2341 filename ../images/tabular-feature_valign-bottom.png
2346 aligns the content of the current cell vertically to the bottom
2349 \begin_layout Labeling
2350 \labelwidthstring 00.00.0000
2351 \begin_inset Graphics
2352 filename ../images/tabular-feature_set-rotate-cell.png
2357 rotates the current cell or selection counter-clockwise by 90°
2360 \begin_layout Labeling
2361 \labelwidthstring 00.00.0000
2362 \begin_inset Graphics
2363 filename ../images/tabular-feature_set-rotate-tabular.png
2368 rotates the whole table counter-clockwise by 90°
2371 \begin_layout Labeling
2372 \labelwidthstring 00.00.0000
2373 \begin_inset Graphics
2374 filename ../images/tabular-feature_multicolumn.png
2379 sets the current cell or selection as a multicolumn
2382 \begin_layout Standard
2383 \begin_inset Note Greyedout
2386 \begin_layout Plain Layout
2391 For the output the vertical alignment of the first cell in a row is used
2392 for all following cells in the row.
2400 \begin_layout Section
2405 \begin_layout Plain Layout
2414 \begin_layout Standard
2415 Additionally to the table dialog and toolbar, the menu
2417 Edit\SpecialChar \menuseparator
2420 allows you to add and delete border lines for the current row/column and
2421 to set the current selection as multicolumn.
2422 The menu is only available when the cursor is inside a table.
2425 \begin_layout Section
2427 \begin_inset CommandInset label
2429 name "sec:Table-Floats"
2437 \begin_layout Plain Layout
2447 \begin_layout Plain Layout
2456 \begin_layout Standard
2457 For general explanations about floats, have a look at section
2458 \begin_inset space ~
2462 \begin_inset CommandInset ref
2464 reference "sec:FloatIntroduction"
2471 \begin_layout Standard
2472 \begin_inset Float table
2478 \begin_layout Plain Layout
2479 \begin_inset Caption
2481 \begin_layout Plain Layout
2482 \begin_inset CommandInset label
2484 name "tab:a table float"
2496 \begin_layout Plain Layout
2498 \begin_inset Tabular
2499 <lyxtabular version="3" rows="3" columns="3">
2501 <column alignment="center" valignment="top" width="0pt">
2502 <column alignment="center" valignment="top" width="0pt">
2503 <column alignment="center" valignment="top" width="0pt">
2505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2508 \begin_layout Plain Layout
2523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2526 \begin_layout Plain Layout
2541 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2544 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2582 \begin_layout Plain Layout
2597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2600 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2630 \begin_inset Formula $\int x^{2}dx$
2638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2641 \begin_layout Plain Layout
2651 \begin_inset Formula $\left[\begin{array}{cc}
2653 c & d\end{array}\right]$
2661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2664 \begin_layout Plain Layout
2674 \begin_inset Formula $1+1=2$
2695 \begin_layout Standard
2696 Table floats can be inserted using the menu
2698 Insert\SpecialChar \menuseparator
2699 Float\SpecialChar \menuseparator
2702 or the toolbar button
2703 \begin_inset Graphics
2704 filename ../images/float-insert_table.png
2713 \begin_layout Standard
2714 The float appears as a collapsible box with a caption that has the label
2716 \begin_inset Quotes eld
2720 \begin_inset space ~
2724 \begin_inset Quotes erd
2727 (# is the actual table number).
2728 You can insert tables to the float above or below the caption.
2731 \begin_layout Standard
2733 \begin_inset space ~
2737 \begin_inset CommandInset ref
2739 reference "tab:a table float"
2743 is an example table within a table float.
2746 \begin_layout Standard
2747 Having the caption above the table is the common rule that is unfortunately
2748 not supported in LaTeX's standard classes.
2749 That means if you are using the document classes
2765 there will be no space between the caption and the table.
2766 To insert the needed space, add the following option to the load command
2767 of the LaTeX-package
2775 \begin_layout Plain Layout
2776 LaTeX-packages ! caption
2781 in your document preamble
2785 \begin_layout Plain Layout
2786 For more information have a look at section
2787 \begin_inset space ~
2791 \begin_inset CommandInset ref
2793 reference "sec:Caption-Placement"
2805 \begin_layout Standard
2811 \begin_layout Standard
2816 , which is described in section
2817 \begin_inset space ~
2821 \begin_inset CommandInset ref
2823 reference "sec:Caption-Formatting"
2827 , is used to adjust the caption format.
2830 \begin_layout Standard
2834 \begin_layout Plain Layout
2835 References ! to Tables
2840 Tables can be cross-referenced in the text by referencing their label.
2841 To do this insert a label in the caption using the menu
2843 Insert\SpecialChar \menuseparator
2846 or the toolbar button
2847 \begin_inset Graphics
2848 filename ../images/label-insert.png
2855 You can now refer to the label using the menu
2857 Insert\SpecialChar \menuseparator
2859 \begin_inset space ~
2864 or the toolbar button
2865 \begin_inset Graphics
2866 filename ../images/dialog-show-new-inset_ref.png
2873 \begin_inset Newline newline
2876 Referencing is explained in detail in section
2877 \begin_inset space ~
2881 \begin_inset CommandInset ref
2883 reference "sec:Referencing-Floats"
2890 \begin_layout Section
2892 \begin_inset CommandInset label
2894 name "sec:Longtables"
2902 \begin_layout Plain Layout
2912 \begin_layout Plain Layout
2921 \begin_layout Standard
2922 If the table is too long to fit on one page, you can use the option
2925 \begin_inset space ~
2929 \begin_inset space ~
2938 of the table dialog to split the table automatically over more pages.
2939 Doing this enables some check boxes and you can now define:
2942 \begin_layout Description
2947 : The current row and all rows above, that don't have any special options
2948 defined, are defined to be the header rows of all pages of the longtable;
2949 except for the first page, if
2952 \begin_inset space ~
2958 This therefore called the main header.
2961 \begin_layout Description
2965 \begin_inset space ~
2970 : The current row and all rows above, that don't have any special options
2971 defined, are defined to be the header rows of the first page of the longtable.
2974 \begin_layout Description
2979 : The current row and all rows below, that don't have any special options
2980 defined, are defined to be the footer rows of all pages of the longtable;
2981 except for the last page, if
2984 \begin_inset space ~
2992 \begin_layout Description
2996 \begin_inset space ~
3001 : The current row and all rows below, that don't have any special options
3002 defined, are defined to be the footer rows of the last page of the longtable.
3005 \begin_layout Standard
3006 You can also specify a row where the table is splitted.
3007 If you set more than one option in the same table row, you should be aware
3008 of the fact that only the first one is used in the given table row.
3009 The others will then be defined as
3014 In this context, first means first in this order:
3021 \begin_inset space ~
3024 header, Footer, Last
3025 \begin_inset space ~
3031 See the following longtable to see how it works:
3034 \begin_layout Standard
3036 \begin_inset Tabular
3037 <lyxtabular version="3" rows="69" columns="3">
3038 <features islongtable="true">
3039 <column alignment="left" valignment="top" width="0cm">
3040 <column alignment="left" valignment="top" width="0pt">
3041 <column alignment="center" valignment="top" width="0pt">
3042 <row endfirsthead="true">
3043 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3046 \begin_layout Plain Layout
3049 Example Phone List (ignore the names)
3054 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3057 \begin_layout Plain Layout
3063 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3066 \begin_layout Plain Layout
3073 <row endfirsthead="true">
3074 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3077 \begin_layout Plain Layout
3085 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3088 \begin_layout Plain Layout
3094 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3097 \begin_layout Plain Layout
3106 <row endhead="true">
3107 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3121 \begin_layout Plain Layout
3127 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3130 \begin_layout Plain Layout
3137 <row endhead="true">
3138 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3141 \begin_layout Plain Layout
3149 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3152 \begin_layout Plain Layout
3158 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3161 \begin_layout Plain Layout
3170 <row endfoot="true">
3171 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3174 \begin_layout Plain Layout
3175 continued on next page
3180 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3183 \begin_layout Plain Layout
3189 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3192 \begin_layout Plain Layout
3200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3203 \begin_layout Plain Layout
3211 <cell alignment="center" valignment="top" usebox="none">
3214 \begin_layout Plain Layout
3220 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3223 \begin_layout Plain Layout
3231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3234 \begin_layout Plain Layout
3242 <cell alignment="center" valignment="top" usebox="none">
3245 \begin_layout Plain Layout
3251 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3254 \begin_layout Plain Layout
3262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3265 \begin_layout Plain Layout
3273 <cell alignment="center" valignment="top" usebox="none">
3276 \begin_layout Plain Layout
3282 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3285 \begin_layout Plain Layout
3293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3296 \begin_layout Plain Layout
3304 <cell alignment="center" valignment="top" usebox="none">
3307 \begin_layout Plain Layout
3313 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3316 \begin_layout Plain Layout
3324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3327 \begin_layout Plain Layout
3335 <cell alignment="center" valignment="top" usebox="none">
3338 \begin_layout Plain Layout
3344 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3347 \begin_layout Plain Layout
3355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3358 \begin_layout Plain Layout
3366 <cell alignment="center" valignment="top" usebox="none">
3369 \begin_layout Plain Layout
3375 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3378 \begin_layout Plain Layout
3386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3389 \begin_layout Plain Layout
3397 <cell alignment="center" valignment="top" usebox="none">
3400 \begin_layout Plain Layout
3406 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3409 \begin_layout Plain Layout
3417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3420 \begin_layout Plain Layout
3428 <cell alignment="center" valignment="top" usebox="none">
3431 \begin_layout Plain Layout
3437 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3440 \begin_layout Plain Layout
3448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3451 \begin_layout Plain Layout
3459 <cell alignment="center" valignment="top" usebox="none">
3462 \begin_layout Plain Layout
3468 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3471 \begin_layout Plain Layout
3479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3482 \begin_layout Plain Layout
3490 <cell alignment="center" valignment="top" usebox="none">
3493 \begin_layout Plain Layout
3499 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3502 \begin_layout Plain Layout
3510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3513 \begin_layout Plain Layout
3521 <cell alignment="center" valignment="top" usebox="none">
3524 \begin_layout Plain Layout
3530 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3533 \begin_layout Plain Layout
3541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3544 \begin_layout Plain Layout
3552 <cell alignment="center" valignment="top" usebox="none">
3555 \begin_layout Plain Layout
3561 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3564 \begin_layout Plain Layout
3572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3575 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" usebox="none">
3586 \begin_layout Plain Layout
3592 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3595 \begin_layout Plain Layout
3603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3606 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" usebox="none">
3617 \begin_layout Plain Layout
3623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3626 \begin_layout Plain Layout
3634 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3637 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" usebox="none">
3648 \begin_layout Plain Layout
3654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3657 \begin_layout Plain Layout
3665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3668 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" usebox="none">
3679 \begin_layout Plain Layout
3685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3688 \begin_layout Plain Layout
3696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3699 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" usebox="none">
3710 \begin_layout Plain Layout
3716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3719 \begin_layout Plain Layout
3727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3730 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" usebox="none">
3741 \begin_layout Plain Layout
3747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3750 \begin_layout Plain Layout
3758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3761 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" usebox="none">
3772 \begin_layout Plain Layout
3778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3781 \begin_layout Plain Layout
3789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3792 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" usebox="none">
3803 \begin_layout Plain Layout
3809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3812 \begin_layout Plain Layout
3820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3823 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" usebox="none">
3834 \begin_layout Plain Layout
3840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3843 \begin_layout Plain Layout
3851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3854 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" usebox="none">
3865 \begin_layout Plain Layout
3871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3874 \begin_layout Plain Layout
3882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3885 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" usebox="none">
3896 \begin_layout Plain Layout
3902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3905 \begin_layout Plain Layout
3913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3916 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" usebox="none">
3927 \begin_layout Plain Layout
3933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3936 \begin_layout Plain Layout
3944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3947 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" usebox="none">
3958 \begin_layout Plain Layout
3964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3967 \begin_layout Plain Layout
3975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3978 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" usebox="none">
3989 \begin_layout Plain Layout
3995 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3998 \begin_layout Plain Layout
4006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4009 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" usebox="none">
4020 \begin_layout Plain Layout
4026 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4029 \begin_layout Plain Layout
4037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4040 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" usebox="none">
4051 \begin_layout Plain Layout
4057 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4060 \begin_layout Plain Layout
4068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4071 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" usebox="none">
4082 \begin_layout Plain Layout
4088 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4091 \begin_layout Plain Layout
4099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4102 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" usebox="none">
4113 \begin_layout Plain Layout
4119 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4122 \begin_layout Plain Layout
4130 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4133 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4144 \begin_layout Plain Layout
4150 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4153 \begin_layout Plain Layout
4161 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4164 \begin_layout Plain Layout
4170 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4173 \begin_layout Plain Layout
4179 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4182 \begin_layout Plain Layout
4190 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4193 \begin_layout Plain Layout
4201 <cell alignment="center" valignment="top" usebox="none">
4204 \begin_layout Plain Layout
4210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4213 \begin_layout Plain Layout
4221 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4224 \begin_layout Plain Layout
4232 <cell alignment="center" valignment="top" usebox="none">
4235 \begin_layout Plain Layout
4241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4244 \begin_layout Plain Layout
4252 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4255 \begin_layout Plain Layout
4263 <cell alignment="center" valignment="top" usebox="none">
4266 \begin_layout Plain Layout
4272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4275 \begin_layout Plain Layout
4283 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4286 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" usebox="none">
4297 \begin_layout Plain Layout
4303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4306 \begin_layout Plain Layout
4314 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4317 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" usebox="none">
4328 \begin_layout Plain Layout
4334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4337 \begin_layout Plain Layout
4345 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4348 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" usebox="none">
4359 \begin_layout Plain Layout
4365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4368 \begin_layout Plain Layout
4376 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4379 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" usebox="none">
4390 \begin_layout Plain Layout
4396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4399 \begin_layout Plain Layout
4407 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4410 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" usebox="none">
4421 \begin_layout Plain Layout
4427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4430 \begin_layout Plain Layout
4438 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4441 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" usebox="none">
4452 \begin_layout Plain Layout
4458 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4461 \begin_layout Plain Layout
4469 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4472 \begin_layout Plain Layout
4480 <cell alignment="center" valignment="top" usebox="none">
4483 \begin_layout Plain Layout
4489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4492 \begin_layout Plain Layout
4500 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4503 \begin_layout Plain Layout
4511 <cell alignment="center" valignment="top" usebox="none">
4514 \begin_layout Plain Layout
4520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4523 \begin_layout Plain Layout
4531 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4534 \begin_layout Plain Layout
4542 <cell alignment="center" valignment="top" usebox="none">
4545 \begin_layout Plain Layout
4551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4554 \begin_layout Plain Layout
4562 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4565 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" usebox="none">
4576 \begin_layout Plain Layout
4582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4585 \begin_layout Plain Layout
4593 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4596 \begin_layout Plain Layout
4604 <cell alignment="center" valignment="top" usebox="none">
4607 \begin_layout Plain Layout
4613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4616 \begin_layout Plain Layout
4624 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4627 \begin_layout Plain Layout
4635 <cell alignment="center" valignment="top" usebox="none">
4638 \begin_layout Plain Layout
4644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4647 \begin_layout Plain Layout
4655 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4658 \begin_layout Plain Layout
4666 <cell alignment="center" valignment="top" usebox="none">
4669 \begin_layout Plain Layout
4675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4678 \begin_layout Plain Layout
4686 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4689 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" usebox="none">
4700 \begin_layout Plain Layout
4706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4709 \begin_layout Plain Layout
4717 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4720 \begin_layout Plain Layout
4728 <cell alignment="center" valignment="top" usebox="none">
4731 \begin_layout Plain Layout
4737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4740 \begin_layout Plain Layout
4748 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4751 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" usebox="none">
4762 \begin_layout Plain Layout
4768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4771 \begin_layout Plain Layout
4779 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4782 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" usebox="none">
4793 \begin_layout Plain Layout
4799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4802 \begin_layout Plain Layout
4810 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4813 \begin_layout Plain Layout
4821 <cell alignment="center" valignment="top" usebox="none">
4824 \begin_layout Plain Layout
4830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4833 \begin_layout Plain Layout
4841 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4844 \begin_layout Plain Layout
4852 <cell alignment="center" valignment="top" usebox="none">
4855 \begin_layout Plain Layout
4861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4864 \begin_layout Plain Layout
4872 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4875 \begin_layout Plain Layout
4883 <cell alignment="center" valignment="top" usebox="none">
4886 \begin_layout Plain Layout
4892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4895 \begin_layout Plain Layout
4903 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4906 \begin_layout Plain Layout
4914 <cell alignment="center" valignment="top" usebox="none">
4917 \begin_layout Plain Layout
4923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4926 \begin_layout Plain Layout
4934 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4937 \begin_layout Plain Layout
4945 <cell alignment="center" valignment="top" usebox="none">
4948 \begin_layout Plain Layout
4954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4957 \begin_layout Plain Layout
4965 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4968 \begin_layout Plain Layout
4976 <cell alignment="center" valignment="top" usebox="none">
4979 \begin_layout Plain Layout
4985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4988 \begin_layout Plain Layout
4996 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4999 \begin_layout Plain Layout
5007 <cell alignment="center" valignment="top" usebox="none">
5010 \begin_layout Plain Layout
5016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5019 \begin_layout Plain Layout
5027 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5030 \begin_layout Plain Layout
5038 <cell alignment="center" valignment="top" usebox="none">
5041 \begin_layout Plain Layout
5047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5050 \begin_layout Plain Layout
5058 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5061 \begin_layout Plain Layout
5069 <cell alignment="center" valignment="top" usebox="none">
5072 \begin_layout Plain Layout
5078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5081 \begin_layout Plain Layout
5089 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5092 \begin_layout Plain Layout
5100 <cell alignment="center" valignment="top" usebox="none">
5103 \begin_layout Plain Layout
5109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5112 \begin_layout Plain Layout
5120 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5123 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5134 \begin_layout Plain Layout
5140 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5143 \begin_layout Plain Layout
5150 <row endlastfoot="true">
5151 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5154 \begin_layout Plain Layout
5160 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5163 \begin_layout Plain Layout
5169 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5172 \begin_layout Plain Layout
5187 \begin_layout Plain Layout
5191 addtocounter{table}{-1}
5197 \begin_inset Note Note
5200 \begin_layout Plain Layout
5201 See greyed-out note in section
5202 \begin_inset space ~
5206 \begin_inset CommandInset ref
5208 reference "sub:Longtable-Captions"
5212 for an explanation of this command.
5220 \begin_layout Subsection
5221 Footnotes in Longtables
5222 \begin_inset CommandInset label
5224 name "sub:Footnotes-in-Longtables"
5232 \begin_layout Plain Layout
5233 Longtables ! Footnotes
5241 \begin_layout Standard
5242 Footnotes can be inserted to every longtable cell.
5243 They appear at the bottom of the page where the table cell with the footnote
5246 \begin_inset space ~
5250 \begin_inset CommandInset ref
5252 reference "tab:DiffCaptions"
5256 has for example a footnote.
5259 \begin_layout Subsection
5264 \begin_layout Plain Layout
5265 Longtables ! Alignment
5273 \begin_layout Standard
5274 Longtables are by default centered.
5275 In contrary to the alignment of the table columns and row, the table alignment
5276 can currently not be changed in the table dialog.
5277 To change the alignment of longtables you have to change the value of the
5290 by inserting this line as TeX-Code before the corresponding longtable:
5293 \begin_layout Standard
5303 \begin_layout Standard
5304 Where the value can have any of the units listed in Table
5305 \begin_inset space ~
5309 \begin_inset CommandInset ref
5311 reference "tab:Units"
5322 controls the horizontal distance from the left page border to the longtable,
5329 the distance from the right side.
5330 The default value for both lengths is
5336 , which is in this case the same as an horizontal fill in LyX.
5339 \begin_layout Standard
5340 The following longtable was left-aligned by setting
5347 \begin_inset space \thinspace{}
5354 \begin_layout Plain Layout
5368 \begin_layout Standard
5369 \begin_inset Tabular
5370 <lyxtabular version="3" rows="5" columns="5">
5371 <features islongtable="true">
5372 <column alignment="center" valignment="top" width="0">
5373 <column alignment="center" valignment="top" width="0">
5374 <column alignment="center" valignment="top" width="0">
5375 <column alignment="center" valignment="top" width="0">
5376 <column alignment="center" valignment="top" width="0">
5378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5381 \begin_layout Plain Layout
5387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5390 \begin_layout Plain Layout
5396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5399 \begin_layout Plain Layout
5405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5408 \begin_layout Plain Layout
5414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5417 \begin_layout Plain Layout
5425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5428 \begin_layout Plain Layout
5434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5437 \begin_layout Plain Layout
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5446 \begin_layout Plain Layout
5452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5455 \begin_layout Plain Layout
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5464 \begin_layout Plain Layout
5472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5475 \begin_layout Plain Layout
5481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5484 \begin_layout Plain Layout
5490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5493 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5511 \begin_layout Plain Layout
5519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5522 \begin_layout Plain Layout
5528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5531 \begin_layout Plain Layout
5537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5540 \begin_layout Plain Layout
5546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5549 \begin_layout Plain Layout
5555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5558 \begin_layout Plain Layout
5566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5569 \begin_layout Plain Layout
5575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5578 \begin_layout Plain Layout
5584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5587 \begin_layout Plain Layout
5593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5596 \begin_layout Plain Layout
5602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5605 \begin_layout Plain Layout
5620 \begin_layout Plain Layout
5636 \begin_layout Subsection
5641 \begin_layout Plain Layout
5642 Longtables ! Captions
5648 \begin_inset CommandInset label
5650 name "sub:Longtable-Captions"
5657 \begin_layout Standard
5658 A longtable cannot be put into a table float because floats can only be
5659 on one page but the caption environment of floats can also be used for
5663 \begin_layout Standard
5664 As LyX does not yet fully support captions in longtables, a hack is needed
5668 \begin_layout Enumerate
5674 \begin_layout Enumerate
5675 Mark the first row and disable its upper line.
5678 \begin_layout Enumerate
5679 Insert a caption via the menu
5681 Insert\SpecialChar \menuseparator
5684 into the first table cell.
5685 \begin_inset Newline newline
5688 You can also add a short title for the caption.
5691 \begin_layout Enumerate
5693 \begin_inset Quotes eld
5705 \begin_inset Quotes erd
5708 as TeX-Code behind the caption.
5711 \begin_layout Standard
5712 A short title that will appear in the LOT instead of the full title.
5721 behind the caption omits the vertical lines between the following cells
5723 The first table row is now only a dummy row for the caption, the actual
5724 table starts with the second row.
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
6060 The table number is increased for every longtable, also if you didn't set
6062 For this reason you could have the case that e.g.
6064 \begin_inset space ~
6067 2.4 follows on Table
6068 \begin_inset space ~
6071 2.1 in the list of tables if there are two longtables without captions.
6072 To avoid this you can add the following command in TeX-Code behind every
6073 longtable without a caption:
6076 \begin_layout Plain Layout
6081 addtocounter{table}{-1}
6089 \begin_layout Standard
6090 \begin_inset Note Greyedout
6093 \begin_layout Plain Layout
6098 If you are using the LaTeX-package
6106 \begin_layout Plain Layout
6107 LaTeX-packages ! hyperref
6112 to link cross-references, the link to a longtable caption will always point
6113 to the beginning of the document.
6121 \begin_layout Standard
6122 \begin_inset Newpage newpage
6128 \begin_layout Subsubsection
6129 References to Longtables
6133 \begin_layout Plain Layout
6134 Longtables ! References
6142 \begin_layout Standard
6143 \begin_inset Tabular
6144 <lyxtabular version="3" rows="6" columns="5">
6145 <features islongtable="true">
6146 <column alignment="center" valignment="top" width="0">
6147 <column alignment="center" valignment="top" width="0">
6148 <column alignment="center" valignment="top" width="0">
6149 <column alignment="center" valignment="top" width="0">
6150 <column alignment="center" valignment="top" width="0">
6151 <row caption="true">
6152 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6155 \begin_layout Plain Layout
6156 \begin_inset Caption
6158 \begin_layout Plain Layout
6159 Referenced longtable
6160 \begin_inset CommandInset label
6162 name "tab:RefExample"
6176 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6179 \begin_layout Plain Layout
6185 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6188 \begin_layout Plain Layout
6194 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6197 \begin_layout Plain Layout
6203 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6206 \begin_layout Plain Layout
6214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6217 \begin_layout Plain Layout
6223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6226 \begin_layout Plain Layout
6232 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6235 \begin_layout Plain Layout
6241 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6244 \begin_layout Plain Layout
6250 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6253 \begin_layout Plain Layout
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6264 \begin_layout Plain Layout
6270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6273 \begin_layout Plain Layout
6279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6282 \begin_layout Plain Layout
6288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6291 \begin_layout Plain Layout
6297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6300 \begin_layout Plain Layout
6308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6311 \begin_layout Plain Layout
6317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6320 \begin_layout Plain Layout
6326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6329 \begin_layout Plain Layout
6335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6338 \begin_layout Plain Layout
6344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6347 \begin_layout Plain Layout
6355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6358 \begin_layout Plain Layout
6364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6367 \begin_layout Plain Layout
6373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6376 \begin_layout Plain Layout
6382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6385 \begin_layout Plain Layout
6391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6394 \begin_layout Plain Layout
6402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6405 \begin_layout Plain Layout
6411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6414 \begin_layout Plain Layout
6420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6423 \begin_layout Plain Layout
6429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6432 \begin_layout Plain Layout
6438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6441 \begin_layout Plain Layout
6455 \begin_layout Standard
6456 To reference a longtable, insert a label into the caption.
6457 Note that you have to add the label prefix
6458 \begin_inset Quotes eld
6466 \begin_inset Quotes eld
6469 manually in the label field.
6472 \begin_layout Standard
6473 This is a reference to Table
6474 \begin_inset space ~
6478 \begin_inset CommandInset ref
6480 reference "tab:RefExample"
6487 \begin_layout Standard
6488 The caption layout can be set together with all other caption of your document
6489 using the LaTeX-package
6497 \begin_layout Plain Layout
6498 LaTeX-packages ! caption
6504 \begin_inset space ~
6508 \begin_inset CommandInset ref
6510 reference "sec:Caption-Formatting"
6517 \begin_layout Subsubsection
6522 \begin_layout Plain Layout
6523 Longtables ! Caption Width
6531 \begin_layout Standard
6532 The maximal width of of caption lines is defined by the length
6539 Its default value is 4
6540 \begin_inset space \thinspace{}
6544 To change it add the following command to your document preamble or as
6545 TeX-Code into your document before the longtable that should be affected
6548 \begin_layout Standard
6558 \begin_layout Standard
6559 where the width could have one of the units listed in appendix
6560 \begin_inset space ~
6564 \begin_inset CommandInset ref
6566 reference "cha:Units-available-in"
6573 \begin_layout Standard
6574 The following tables show the difference:
6577 \begin_layout Standard
6578 \begin_inset Tabular
6579 <lyxtabular version="3" rows="6" columns="5">
6580 <features islongtable="true">
6581 <column alignment="center" valignment="top" width="0">
6582 <column alignment="center" valignment="top" width="0">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <row caption="true">
6587 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6590 \begin_layout Plain Layout
6591 \begin_inset Caption
6593 \begin_layout Plain Layout
6594 long full title with default width long full title with default width long
6595 full title with default width
6599 \begin_layout Plain Layout
6600 caption with default width
6615 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6618 \begin_layout Plain Layout
6624 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6645 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6656 \begin_layout Plain Layout
6662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6665 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6692 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6703 \begin_layout Plain Layout
6709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6712 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6739 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6750 \begin_layout Plain Layout
6756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6759 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6786 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6797 \begin_layout Plain Layout
6803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6806 \begin_layout Plain Layout
6812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6815 \begin_layout Plain Layout
6821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6824 \begin_layout Plain Layout
6830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6833 \begin_layout Plain Layout
6841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6844 \begin_layout Plain Layout
6850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6853 \begin_layout Plain Layout
6859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6862 \begin_layout Plain Layout
6868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6871 \begin_layout Plain Layout
6877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6880 \begin_layout Plain Layout
6894 \begin_layout Standard
6898 \begin_layout Plain Layout
6910 \begin_inset Tabular
6911 <lyxtabular version="3" rows="6" columns="5">
6912 <features islongtable="true">
6913 <column alignment="center" valignment="top" width="0">
6914 <column alignment="center" valignment="top" width="0">
6915 <column alignment="center" valignment="top" width="0">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <row caption="true">
6919 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6922 \begin_layout Plain Layout
6923 \begin_inset Caption
6925 \begin_layout Plain Layout
6926 long full title with width set to 5
6927 \begin_inset space \thinspace{}
6930 cm long full title with width set to 5
6931 \begin_inset space \thinspace{}
6934 cm long full title with width set to 5
6935 \begin_inset space \thinspace{}
6942 \begin_layout Plain Layout
6944 \begin_inset space \thinspace{}
6948 \begin_inset space \thinspace{}
6952 \begin_inset space \thinspace{}
6970 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6973 \begin_layout Plain Layout
6979 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6982 \begin_layout Plain Layout
6988 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6991 \begin_layout Plain Layout
6997 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7000 \begin_layout Plain Layout
7008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7011 \begin_layout Plain Layout
7017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7020 \begin_layout Plain Layout
7026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7029 \begin_layout Plain Layout
7035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7038 \begin_layout Plain Layout
7044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7047 \begin_layout Plain Layout
7055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7058 \begin_layout Plain Layout
7064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7067 \begin_layout Plain Layout
7073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7076 \begin_layout Plain Layout
7082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7085 \begin_layout Plain Layout
7091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7094 \begin_layout Plain Layout
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7105 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7114 \begin_layout Plain Layout
7120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7123 \begin_layout Plain Layout
7129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7132 \begin_layout Plain Layout
7138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7141 \begin_layout Plain Layout
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7161 \begin_layout Plain Layout
7167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7170 \begin_layout Plain Layout
7176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7179 \begin_layout Plain Layout
7185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7188 \begin_layout Plain Layout
7196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7199 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7208 \begin_layout Plain Layout
7214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7217 \begin_layout Plain Layout
7223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7226 \begin_layout Plain Layout
7232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7235 \begin_layout Plain Layout
7249 \begin_layout Standard
7253 \begin_layout Plain Layout
7267 \begin_layout Standard
7268 \begin_inset Note Greyedout
7271 \begin_layout Plain Layout
7276 When the LaTeX-package
7284 \begin_layout Plain Layout
7285 LaTeX-packages ! caption
7290 is used, as in this document, the full page width is used for the caption
7291 when you use the default value of 4
7292 \begin_inset space \thinspace{}
7302 To get in this case exactly a 4
7303 \begin_inset space \thinspace{}
7306 in wide caption, you can either use a value slightly different from 4.0
7307 \begin_inset space \thinspace{}
7312 \begin_inset space \thinspace{}
7315 in, or the LaTeX-command
7319 captionsetup{width=value}
7321 that is provided by the
7333 \begin_layout Subsubsection
7334 Different Captions for Table Pages
7338 \begin_layout Plain Layout
7339 Longtables ! Different Captions for Pages
7347 \begin_layout Standard
7348 When the other captions should differ from the one of the first table page,
7349 insert a caption with a non-empty short title in a dummy caption row marked
7351 The caption used for the other table pages is inserted as caption without
7352 a short title in a dummy caption row that is marked as main header.
7353 When this caption shouldn't include the table number, use the command
7356 \begin_layout Standard
7361 caption*{caption text}
7364 \begin_layout Standard
7365 instead of LyX's caption box.
7366 The label to reference the table is inserted into the caption of the first
7369 \begin_inset space ~
7373 \begin_inset CommandInset ref
7375 reference "tab:DiffCaptions"
7379 is an example for a longtable with different heading where the second caption
7380 doesn't include the table number.
7383 \begin_layout Standard
7385 \begin_inset Tabular
7386 <lyxtabular version="3" rows="59" columns="3">
7387 <features islongtable="true">
7388 <column alignment="left" valignment="top" width="0cm">
7389 <column alignment="left" valignment="top" width="0pt">
7390 <column alignment="center" valignment="top" width="0pt">
7391 <row endfirsthead="true" caption="true">
7392 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7395 \begin_layout Plain Layout
7396 \begin_inset Caption
7398 \begin_layout Plain Layout
7400 \begin_inset CommandInset label
7402 name "tab:DiffCaptions"
7410 \begin_layout Plain Layout
7426 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7429 \begin_layout Plain Layout
7435 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7438 \begin_layout Plain Layout
7445 <row endfirsthead="true">
7446 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7449 \begin_layout Plain Layout
7452 Example Phone List (ignore the names)
7457 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7460 \begin_layout Plain Layout
7466 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7469 \begin_layout Plain Layout
7476 <row endfirsthead="true">
7477 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7480 \begin_layout Plain Layout
7488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7491 \begin_layout Plain Layout
7497 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7500 \begin_layout Plain Layout
7509 <row endhead="true" caption="true">
7510 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7513 \begin_layout Plain Layout
7517 \begin_layout Plain Layout
7521 caption*{Continued Example Phone List}
7535 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7538 \begin_layout Plain Layout
7544 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7547 \begin_layout Plain Layout
7554 <row endhead="true">
7555 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7558 \begin_layout Plain Layout
7566 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7569 \begin_layout Plain Layout
7575 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7578 \begin_layout Plain Layout
7585 <row endhead="true">
7586 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7589 \begin_layout Plain Layout
7597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7600 \begin_layout Plain Layout
7606 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7609 \begin_layout Plain Layout
7618 <row endfoot="true">
7619 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7622 \begin_layout Plain Layout
7623 continued on next page
7628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7631 \begin_layout Plain Layout
7637 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7640 \begin_layout Plain Layout
7648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7651 \begin_layout Plain Layout
7659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7662 \begin_layout Plain Layout
7668 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7671 \begin_layout Plain Layout
7679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7682 \begin_layout Plain Layout
7690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7693 \begin_layout Plain Layout
7699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7702 \begin_layout Plain Layout
7710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7713 \begin_layout Plain Layout
7721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7724 \begin_layout Plain Layout
7730 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7733 \begin_layout Plain Layout
7741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7744 \begin_layout Plain Layout
7752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7755 \begin_layout Plain Layout
7761 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7764 \begin_layout Plain Layout
7772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7775 \begin_layout Plain Layout
7783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7786 \begin_layout Plain Layout
7792 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7795 \begin_layout Plain Layout
7803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7806 \begin_layout Plain Layout
7814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7817 \begin_layout Plain Layout
7823 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7826 \begin_layout Plain Layout
7834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7837 \begin_layout Plain Layout
7845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7848 \begin_layout Plain Layout
7854 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7857 \begin_layout Plain Layout
7865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7868 \begin_layout Plain Layout
7876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7879 \begin_layout Plain Layout
7885 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7888 \begin_layout Plain Layout
7896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7899 \begin_layout Plain Layout
7907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7910 \begin_layout Plain Layout
7916 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7919 \begin_layout Plain Layout
7927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7930 \begin_layout Plain Layout
7938 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7941 \begin_layout Plain Layout
7947 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7950 \begin_layout Plain Layout
7958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7961 \begin_layout Plain Layout
7969 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7972 \begin_layout Plain Layout
7978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7981 \begin_layout Plain Layout
7989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7992 \begin_layout Plain Layout
8000 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8003 \begin_layout Plain Layout
8009 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8012 \begin_layout Plain Layout
8020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8023 \begin_layout Plain Layout
8031 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8034 \begin_layout Plain Layout
8040 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8043 \begin_layout Plain Layout
8051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8054 \begin_layout Plain Layout
8062 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8065 \begin_layout Plain Layout
8071 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8074 \begin_layout Plain Layout
8082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8085 \begin_layout Plain Layout
8094 \begin_layout Plain Layout
8105 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8108 \begin_layout Plain Layout
8114 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8117 \begin_layout Plain Layout
8125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8128 \begin_layout Plain Layout
8136 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8139 \begin_layout Plain Layout
8145 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8148 \begin_layout Plain Layout
8156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8159 \begin_layout Plain Layout
8167 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8170 \begin_layout Plain Layout
8176 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8179 \begin_layout Plain Layout
8187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8190 \begin_layout Plain Layout
8198 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8201 \begin_layout Plain Layout
8207 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8210 \begin_layout Plain Layout
8218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8221 \begin_layout Plain Layout
8229 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8232 \begin_layout Plain Layout
8238 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8241 \begin_layout Plain Layout
8249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8252 \begin_layout Plain Layout
8260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8263 \begin_layout Plain Layout
8269 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8272 \begin_layout Plain Layout
8280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8283 \begin_layout Plain Layout
8291 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8294 \begin_layout Plain Layout
8300 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8303 \begin_layout Plain Layout
8311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8314 \begin_layout Plain Layout
8322 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8325 \begin_layout Plain Layout
8331 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8334 \begin_layout Plain Layout
8342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8345 \begin_layout Plain Layout
8353 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8356 \begin_layout Plain Layout
8362 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8365 \begin_layout Plain Layout
8373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8376 \begin_layout Plain Layout
8384 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8387 \begin_layout Plain Layout
8393 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8396 \begin_layout Plain Layout
8404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8407 \begin_layout Plain Layout
8415 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8418 \begin_layout Plain Layout
8424 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8427 \begin_layout Plain Layout
8435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8438 \begin_layout Plain Layout
8446 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8449 \begin_layout Plain Layout
8455 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8458 \begin_layout Plain Layout
8466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8469 \begin_layout Plain Layout
8477 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8480 \begin_layout Plain Layout
8486 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8489 \begin_layout Plain Layout
8497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8500 \begin_layout Plain Layout
8508 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8511 \begin_layout Plain Layout
8517 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8520 \begin_layout Plain Layout
8528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8531 \begin_layout Plain Layout
8539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8542 \begin_layout Plain Layout
8548 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8551 \begin_layout Plain Layout
8559 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8562 \begin_layout Plain Layout
8570 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8573 \begin_layout Plain Layout
8579 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8582 \begin_layout Plain Layout
8590 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8593 \begin_layout Plain Layout
8601 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8604 \begin_layout Plain Layout
8610 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8613 \begin_layout Plain Layout
8621 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8624 \begin_layout Plain Layout
8630 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8633 \begin_layout Plain Layout
8639 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8642 \begin_layout Plain Layout
8650 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8653 \begin_layout Plain Layout
8661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8664 \begin_layout Plain Layout
8670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8673 \begin_layout Plain Layout
8681 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8684 \begin_layout Plain Layout
8692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8695 \begin_layout Plain Layout
8701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8704 \begin_layout Plain Layout
8712 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8715 \begin_layout Plain Layout
8723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8726 \begin_layout Plain Layout
8732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8735 \begin_layout Plain Layout
8743 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8746 \begin_layout Plain Layout
8754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8757 \begin_layout Plain Layout
8763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8766 \begin_layout Plain Layout
8774 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8777 \begin_layout Plain Layout
8785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8788 \begin_layout Plain Layout
8794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8797 \begin_layout Plain Layout
8805 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8808 \begin_layout Plain Layout
8816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8819 \begin_layout Plain Layout
8825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8828 \begin_layout Plain Layout
8836 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8839 \begin_layout Plain Layout
8847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8850 \begin_layout Plain Layout
8856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8859 \begin_layout Plain Layout
8867 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8870 \begin_layout Plain Layout
8878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8881 \begin_layout Plain Layout
8887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8890 \begin_layout Plain Layout
8898 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8901 \begin_layout Plain Layout
8909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8912 \begin_layout Plain Layout
8918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8921 \begin_layout Plain Layout
8929 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8932 \begin_layout Plain Layout
8940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8943 \begin_layout Plain Layout
8949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8952 \begin_layout Plain Layout
8960 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8963 \begin_layout Plain Layout
8971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8974 \begin_layout Plain Layout
8980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8983 \begin_layout Plain Layout
8991 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8994 \begin_layout Plain Layout
9002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9005 \begin_layout Plain Layout
9011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9014 \begin_layout Plain Layout
9022 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9025 \begin_layout Plain Layout
9033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9036 \begin_layout Plain Layout
9042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9045 \begin_layout Plain Layout
9053 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9056 \begin_layout Plain Layout
9064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9067 \begin_layout Plain Layout
9073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9076 \begin_layout Plain Layout
9084 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9087 \begin_layout Plain Layout
9095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9098 \begin_layout Plain Layout
9104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9107 \begin_layout Plain Layout
9115 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9118 \begin_layout Plain Layout
9126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9129 \begin_layout Plain Layout
9135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9138 \begin_layout Plain Layout
9146 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9149 \begin_layout Plain Layout
9157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9160 \begin_layout Plain Layout
9166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9169 \begin_layout Plain Layout
9177 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9180 \begin_layout Plain Layout
9188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9191 \begin_layout Plain Layout
9197 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9200 \begin_layout Plain Layout
9208 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9211 \begin_layout Plain Layout
9219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9222 \begin_layout Plain Layout
9228 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9231 \begin_layout Plain Layout
9239 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9242 \begin_layout Plain Layout
9250 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9253 \begin_layout Plain Layout
9259 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9262 \begin_layout Plain Layout
9276 \begin_layout Section
9277 Special Longtable Issues
9278 \begin_inset CommandInset label
9280 name "sec:Special-Longtable-Issues"
9287 \begin_layout Subsection
9288 Longtable Calculation
9292 \begin_layout Plain Layout
9293 Longtables ! Calculation
9301 \begin_layout Standard
9302 LaTeX calculates the height of table pages and their page breaks using so
9304 Chunks are pieces of the tables that are at once in LaTeX's memory.
9305 The default value is historically set to only 20 table rows.
9306 If you are using longtables with many pages this may slow down the creation
9308 You can safely increase the chunk size to values of 100-1000 by adding
9309 this command line to your document preamble:
9312 \begin_layout Standard
9317 setcounter{LTchunksize}{100}
9320 \begin_layout Subsection
9321 Floats and Longtables
9325 \begin_layout Plain Layout
9334 \begin_layout Standard
9335 There might be problems when a float appears on the same page where a longtable
9337 To avoid such situation, add the command
9343 as TeX-Code before your longtable.
9346 \begin_layout Subsection
9351 \begin_layout Plain Layout
9352 Longtables ! Forced Page Breaks
9360 \begin_layout Standard
9361 By default tables are only broken between rows.
9362 If you have a cell with multiples lines and want to have a page break within
9363 the cell, insert the new line command
9364 \begin_inset Quotes eld
9376 \begin_inset Quotes erd
9379 as TeX-Code at this point of the cell where it should be broken.
9388 command you have to insert in TeX-Code so many
9389 \begin_inset Quotes eld
9397 \begin_inset Quotes erd
9400 characters like the number of the following table columns.
9405 is the character to separate table cells.
9406 Write in TeX-Code after each
9410 the content of the corresponding following cell and delete the content
9412 \begin_inset Newline newline
9423 command, insert so many
9427 characters like the number of table columns before the current column.
9429 \begin_inset space ~
9433 \begin_inset CommandInset ref
9435 reference "tab:ForcedPagebreak"
9439 the cell that should be broken is in the second column followed by another
9441 Therefore the following command was inserted in the cell as TeX-Code behind
9443 \begin_inset Quotes eld
9451 \begin_inset Quotes erd
9457 \begin_layout Standard
9465 \begin_inset Newline newline
9471 \begin_layout Standard
9473 \begin_inset Quotes eld
9477 \begin_inset Quotes erd
9480 in the third columns of the row was deleted.
9481 If your footer row of the longtable has for a certain reason no upper line
9482 but you would have a horizontal line where the cell is broken, use this
9486 \begin_layout Standard
9494 \begin_inset Newline newline
9502 \begin_layout Standard
9503 When the cell to be broken is in the last column, the command
9506 \begin_layout Standard
9516 \begin_layout Standard
9517 must be inserted as TeX-Code at the beginning of the cell.
9518 This assures that the part of the cell that will be displayed on the new
9519 page appears with the full width.
9522 \begin_layout Standard
9524 \begin_inset Tabular
9525 <lyxtabular version="3" rows="38" columns="3">
9526 <features islongtable="true">
9527 <column alignment="left" valignment="top" width="0cm">
9528 <column alignment="left" valignment="top" width="3cm">
9529 <column alignment="center" valignment="top" width="0pt">
9530 <row endfirsthead="true" caption="true">
9531 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9534 \begin_layout Plain Layout
9535 \begin_inset Caption
9537 \begin_layout Plain Layout
9538 Table with forced page break in table cell
9539 \begin_inset CommandInset label
9541 name "tab:ForcedPagebreak"
9549 \begin_layout Plain Layout
9550 Table with forced page break in table cell
9565 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9568 \begin_layout Plain Layout
9574 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9577 \begin_layout Plain Layout
9584 <row endfirsthead="true">
9585 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9588 \begin_layout Plain Layout
9591 Example Phone List (ignore the names)
9596 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9599 \begin_layout Plain Layout
9605 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9608 \begin_layout Plain Layout
9615 <row endfirsthead="true">
9616 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9619 \begin_layout Plain Layout
9627 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9630 \begin_layout Plain Layout
9636 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9639 \begin_layout Plain Layout
9648 <row endhead="true" caption="true">
9649 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9652 \begin_layout Plain Layout
9656 \begin_layout Plain Layout
9660 caption*{Continued table with forced page break in table cell}
9674 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9677 \begin_layout Plain Layout
9683 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9686 \begin_layout Plain Layout
9693 <row endhead="true">
9694 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9697 \begin_layout Plain Layout
9705 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9708 \begin_layout Plain Layout
9714 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9717 \begin_layout Plain Layout
9724 <row endhead="true">
9725 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9728 \begin_layout Plain Layout
9736 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9739 \begin_layout Plain Layout
9745 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9748 \begin_layout Plain Layout
9757 <row endfoot="true">
9758 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9761 \begin_layout Plain Layout
9762 continued on next page
9767 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9770 \begin_layout Plain Layout
9776 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9779 \begin_layout Plain Layout
9787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9790 \begin_layout Plain Layout
9798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9801 \begin_layout Plain Layout
9807 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9810 \begin_layout Plain Layout
9818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9821 \begin_layout Plain Layout
9829 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9832 \begin_layout Plain Layout
9838 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9841 \begin_layout Plain Layout
9849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9852 \begin_layout Plain Layout
9860 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9863 \begin_layout Plain Layout
9869 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9872 \begin_layout Plain Layout
9880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9883 \begin_layout Plain Layout
9891 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9894 \begin_layout Plain Layout
9900 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9903 \begin_layout Plain Layout
9911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9914 \begin_layout Plain Layout
9922 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9925 \begin_layout Plain Layout
9931 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9934 \begin_layout Plain Layout
9942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9945 \begin_layout Plain Layout
9953 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9956 \begin_layout Plain Layout
9962 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9976 \begin_layout Plain Layout
9984 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9987 \begin_layout Plain Layout
9993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9996 \begin_layout Plain Layout
10004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10007 \begin_layout Plain Layout
10015 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10018 \begin_layout Plain Layout
10024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10027 \begin_layout Plain Layout
10035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10038 \begin_layout Plain Layout
10046 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10049 \begin_layout Plain Layout
10055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10058 \begin_layout Plain Layout
10066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10069 \begin_layout Plain Layout
10077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10080 \begin_layout Plain Layout
10086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10089 \begin_layout Plain Layout
10097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10100 \begin_layout Plain Layout
10108 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10111 \begin_layout Plain Layout
10117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10120 \begin_layout Plain Layout
10128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10131 \begin_layout Plain Layout
10139 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10142 \begin_layout Plain Layout
10148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10151 \begin_layout Plain Layout
10159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10162 \begin_layout Plain Layout
10170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10173 \begin_layout Plain Layout
10179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10182 \begin_layout Plain Layout
10190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10193 \begin_layout Plain Layout
10201 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10204 \begin_layout Plain Layout
10210 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10213 \begin_layout Plain Layout
10221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10224 \begin_layout Plain Layout
10232 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10235 \begin_layout Plain Layout
10241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10244 \begin_layout Plain Layout
10252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10255 \begin_layout Plain Layout
10263 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10266 \begin_layout Plain Layout
10272 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10275 \begin_layout Plain Layout
10283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10286 \begin_layout Plain Layout
10294 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10297 \begin_layout Plain Layout
10303 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10306 \begin_layout Plain Layout
10314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10317 \begin_layout Plain Layout
10325 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10328 \begin_layout Plain Layout
10334 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10337 \begin_layout Plain Layout
10345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10348 \begin_layout Plain Layout
10356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10359 \begin_layout Plain Layout
10365 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10368 \begin_layout Plain Layout
10376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10379 \begin_layout Plain Layout
10387 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10390 \begin_layout Plain Layout
10396 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10399 \begin_layout Plain Layout
10407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10410 \begin_layout Plain Layout
10418 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10421 \begin_layout Plain Layout
10427 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10430 \begin_layout Plain Layout
10438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10441 \begin_layout Plain Layout
10449 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10452 \begin_layout Plain Layout
10458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10461 \begin_layout Plain Layout
10469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10472 \begin_layout Plain Layout
10480 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10483 \begin_layout Plain Layout
10485 Fürst von Montecompatri, 11.
10486 Fürst von Sulmona und Vivaro, 10.
10487 Fürst von Rossano, 5.
10488 Herzog von Canemorte, 11.
10489 Herzog von Palombara, 5.
10490 Herzog von Castelchiodato,
10494 \begin_layout Plain Layout
10503 \begin_layout Plain Layout
10511 Herzog von Poggionativo, 11.
10512 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10513 Graf von Valinfreda, 11.
10514 Baron von Cropalati, 11.
10515 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10520 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10523 \begin_layout Plain Layout
10531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10534 \begin_layout Plain Layout
10542 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10545 \begin_layout Plain Layout
10551 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10554 \begin_layout Plain Layout
10562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10565 \begin_layout Plain Layout
10573 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10576 \begin_layout Plain Layout
10582 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10585 \begin_layout Plain Layout
10593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10596 \begin_layout Plain Layout
10604 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10607 \begin_layout Plain Layout
10613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10616 \begin_layout Plain Layout
10624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10627 \begin_layout Plain Layout
10635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10638 \begin_layout Plain Layout
10644 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10647 \begin_layout Plain Layout
10655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10658 \begin_layout Plain Layout
10666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10669 \begin_layout Plain Layout
10675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10678 \begin_layout Plain Layout
10686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10689 \begin_layout Plain Layout
10697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10700 \begin_layout Plain Layout
10706 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10709 \begin_layout Plain Layout
10717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10720 \begin_layout Plain Layout
10728 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10731 \begin_layout Plain Layout
10737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10740 \begin_layout Plain Layout
10748 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10751 \begin_layout Plain Layout
10759 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10762 \begin_layout Plain Layout
10768 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10771 \begin_layout Plain Layout
10785 \begin_layout Standard
10786 \begin_inset Newpage newpage
10792 \begin_layout Section
10793 Multiple Lines Columns and Rows
10796 \begin_layout Subsection
10797 Multiple Lines in Table Cells
10798 \begin_inset CommandInset label
10800 name "sub:Multiple-Lines-in"
10808 \begin_layout Plain Layout
10809 Multiple Lines in Table Cells
10818 \begin_layout Plain Layout
10827 \begin_layout Standard
10829 \begin_inset Float table
10835 \begin_layout Plain Layout
10836 \begin_inset Caption
10838 \begin_layout Plain Layout
10839 \begin_inset CommandInset label
10841 name "tab:Table-with-multiple"
10845 Table with multiple lines in cells
10853 \begin_layout Plain Layout
10855 \begin_inset Tabular
10856 <lyxtabular version="3" rows="3" columns="3">
10858 <column alignment="center" valignment="middle" width="2.5cm">
10859 <column alignment="center" valignment="middle" width="0">
10860 <column alignment="center" valignment="middle" width="0">
10862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10865 \begin_layout Plain Layout
10867 \begin_inset Newline linebreak
10875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10878 \begin_layout Plain Layout
10884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10887 \begin_layout Plain Layout
10895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10898 \begin_layout Plain Layout
10904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10907 \begin_layout Plain Layout
10913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10916 \begin_layout Plain Layout
10924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10927 \begin_layout Plain Layout
10933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10936 \begin_layout Plain Layout
10942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10945 \begin_layout Plain Layout
10964 \begin_layout Standard
10965 Adjusting a fixed width for a column, enables to enter text as a paragraph
10966 with multiple lines and hyphenations.
10969 \begin_layout Standard
10971 \begin_inset space ~
10975 \begin_inset CommandInset ref
10977 reference "tab:Table-with-multiple"
10981 , create a 3×3 table, mark the first cell and right-click on it.
10982 In the appearing table dialog we set a cell width of 2.5
10983 \begin_inset space \thinspace{}
10986 cm and choose centered for the vertical and horizontal alignment.
10987 The vertical alignment is used for all cells of the row.
10988 As our text is smaller than than 2.5
10989 \begin_inset space \thinspace{}
10992 cm, only one line will appear.
10993 To get two lines, a justified line break (shortcut
10998 If the text is wider than the set cell width, it will automatically be
10999 broken to several lines.
11002 \begin_layout Standard
11003 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11004 by LaTeX if it is the first entry.
11005 Therefore you need to insert something, to make the word not being the
11007 So add a horizontal space of 0
11008 \begin_inset space \thinspace{}
11011 pt before the word.
11012 As the space is zero, it doesn't change the output.
11014 \begin_inset space ~
11018 \begin_inset CommandInset ref
11020 reference "tab:Table-with-and"
11027 \begin_layout Standard
11028 \begin_inset Float table
11034 \begin_layout Plain Layout
11035 \begin_inset Caption
11037 \begin_layout Plain Layout
11038 \begin_inset CommandInset label
11040 name "tab:Table-with-and"
11044 Table with and without hyphenation
11052 \begin_layout Plain Layout
11053 \begin_inset space \hfill{}
11057 \begin_inset Tabular
11058 <lyxtabular version="3" rows="3" columns="3">
11060 <column alignment="center" valignment="middle" width="2.5cm">
11061 <column alignment="center" valignment="middle" width="0">
11062 <column alignment="center" valignment="middle" width="0">
11064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11067 \begin_layout Plain Layout
11068 verylongtablecellword
11073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11076 \begin_layout Plain Layout
11082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11085 \begin_layout Plain Layout
11093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11096 \begin_layout Plain Layout
11102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11105 \begin_layout Plain Layout
11111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11114 \begin_layout Plain Layout
11122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11125 \begin_layout Plain Layout
11131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11134 \begin_layout Plain Layout
11140 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11143 \begin_layout Plain Layout
11155 \begin_inset space \hfill{}
11159 \begin_inset Tabular
11160 <lyxtabular version="3" rows="3" columns="3">
11162 <column alignment="center" valignment="middle" width="2.5cm">
11163 <column alignment="center" valignment="middle" width="0">
11164 <column alignment="center" valignment="middle" width="0">
11166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11169 \begin_layout Plain Layout
11170 \begin_inset space \hspace{}
11174 verylongtablecellword
11179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11182 \begin_layout Plain Layout
11188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11191 \begin_layout Plain Layout
11199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11202 \begin_layout Plain Layout
11208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11211 \begin_layout Plain Layout
11217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11220 \begin_layout Plain Layout
11228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11231 \begin_layout Plain Layout
11237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11240 \begin_layout Plain Layout
11246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11249 \begin_layout Plain Layout
11261 \begin_inset space \hfill{}
11272 \begin_layout Standard
11273 \begin_inset Newpage newpage
11279 \begin_layout Subsection
11281 \begin_inset CommandInset label
11283 name "sub:Multicolumns"
11291 \begin_layout Plain Layout
11301 \begin_layout Plain Layout
11302 Table ! Multicolumns
11310 \begin_layout Subsubsection
11314 \begin_layout Standard
11315 To span a cell over multiple columns, mark as much cells within a line that
11316 should be one spanned cell and use either the table-toolbar button
11317 \begin_inset Graphics
11318 filename ../images/tabular-feature_multicolumn.png
11320 scaleBeforeRotation
11326 Edit\SpecialChar \menuseparator
11327 Table\SpecialChar \menuseparator
11330 , or right click on the marked cells and choose multicolumn in the appearing
11331 table dialog under the tab
11338 \begin_layout Standard
11339 Multicolumns have there own cell settings.
11340 That means changing cell borders, cell alignment, and the width only affects
11342 Here is an example table with a multicolumn cell in the first row and one
11343 in the last row without the upper border:
11346 \begin_layout Standard
11348 \begin_inset Tabular
11349 <lyxtabular version="3" rows="3" columns="4">
11350 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11351 <column alignment="center" valignment="top" width="0pt">
11352 <column alignment="center" valignment="middle" width="0">
11353 <column alignment="center" valignment="top" width="0in">
11354 <column alignment="center" valignment="top" width="0pt">
11356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11359 \begin_layout Plain Layout
11365 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11368 \begin_layout Plain Layout
11374 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11377 \begin_layout Plain Layout
11383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11386 \begin_layout Plain Layout
11394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11397 \begin_layout Plain Layout
11412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11415 \begin_layout Plain Layout
11421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11424 \begin_layout Plain Layout
11430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11433 \begin_layout Plain Layout
11441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11444 \begin_layout Plain Layout
11450 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11453 \begin_layout Plain Layout
11459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11462 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11471 \begin_layout Plain Layout
11485 \begin_layout Subsubsection
11486 Multicolumn Calculations
11487 \begin_inset CommandInset label
11489 name "sub:Multicolumn-Calculations"
11497 \begin_layout Plain Layout
11498 Multicolumns ! Calculations
11506 \begin_layout Standard
11507 LyX supports multicolumns directly, but we have to take notice of the cell
11508 width of the columns spanned by the multicolumn cell.
11511 \begin_layout Standard
11512 \begin_inset Float table
11518 \begin_layout Plain Layout
11519 \begin_inset Caption
11521 \begin_layout Plain Layout
11522 \begin_inset CommandInset label
11524 name "tab:Table-with-centered"
11528 Table with centered multicolumn text above two columns that have exactly
11529 half the width of the multicolumn cell
11530 \begin_inset OptArg
11533 \begin_layout Plain Layout
11534 Perfect multicolumn table
11547 \begin_layout Plain Layout
11549 \begin_inset Tabular
11550 <lyxtabular version="3" rows="3" columns="3">
11552 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11553 <column alignment="center" valignment="middle" width="0">
11554 <column alignment="center" valignment="top" width="0">
11556 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11559 \begin_layout Plain Layout
11560 multiple lines multicolumn
11565 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11568 \begin_layout Plain Layout
11574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11577 \begin_layout Plain Layout
11585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11588 \begin_layout Plain Layout
11594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11597 \begin_layout Plain Layout
11603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11606 \begin_layout Plain Layout
11614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11617 \begin_layout Plain Layout
11623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11626 \begin_layout Plain Layout
11632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11635 \begin_layout Plain Layout
11654 \begin_layout Standard
11655 To create for example Table
11656 \begin_inset space ~
11660 \begin_inset CommandInset ref
11662 reference "tab:Table-with-centered"
11666 , mark the first two cells in the first row of a 3×3 table and right-click
11668 Now choose for this cell
11677 \begin_inset space \thinspace{}
11680 cm in the table dialog.
11681 The spanned columns should have exactly half the width of the multicolumn
11682 cell, so that you would adjust a width of 1.25
11683 \begin_inset space \thinspace{}
11686 cm for the first column.
11687 The second column has then automatically a width of 1.25
11688 \begin_inset space \thinspace{}
11691 cm (multicolumn width - width of first column).
11692 This was done for Table
11693 \begin_inset space ~
11697 \begin_inset CommandInset ref
11699 reference "tab:Table-without-half"
11706 \begin_layout Standard
11707 \begin_inset Float table
11712 \begin_layout Plain Layout
11713 \begin_inset Caption
11715 \begin_layout Plain Layout
11716 \begin_inset CommandInset label
11718 name "tab:Table-without-half"
11722 Table where the spanned table columns have not exactly half the width of
11723 the multicolumn cell
11724 \begin_inset OptArg
11727 \begin_layout Plain Layout
11728 Imperfect multicolumn table
11741 \begin_layout Plain Layout
11743 \begin_inset Tabular
11744 <lyxtabular version="3" rows="3" columns="3">
11746 <column alignment="center" valignment="top" width="1.25cm">
11747 <column alignment="center" valignment="top" width="0">
11748 <column alignment="center" valignment="top" width="0">
11750 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11753 \begin_layout Plain Layout
11754 multiple lines multicolumn
11759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11762 \begin_layout Plain Layout
11768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11771 \begin_layout Plain Layout
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11791 \begin_layout Plain Layout
11797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11800 \begin_layout Plain Layout
11808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11829 \begin_layout Plain Layout
11848 \begin_layout Standard
11849 You can see that the first column has not the half width of the multicolumn
11850 cell, it is a bit bigger.
11851 The reason is that the given width of a cell
11852 \begin_inset Formula $W_{g}$
11855 is not its total width
11856 \begin_inset Formula $W_{\mathrm{tot}}$
11859 because a cell is always a bit larger than its given width.
11861 \begin_inset space ~
11865 \begin_inset CommandInset ref
11867 reference "cha:Explanation-of-Equation"
11871 explains it in detail.
11874 \begin_layout Standard
11875 The needed given width
11876 \begin_inset Formula $W_{g\, n}$
11883 columns are spanned can be calculated, so that each column has a total
11885 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11889 \begin_inset Formula \begin{equation}
11890 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11897 \begin_layout Standard
11898 In our case we have
11899 \begin_inset Formula $n=2$
11903 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11906 cm and the default values for the lengths, so that equation
11907 \begin_inset CommandInset ref
11914 \begin_inset Formula \begin{equation}
11915 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11922 \begin_layout Standard
11923 To enable calculations in LaTeX, the LaTeX-package
11927 must be loaded with the document preamble line
11931 \begin_layout Plain Layout
11932 LaTeX-packages ! calc
11940 \begin_layout Standard
11948 \begin_layout Standard
11949 LyX does not allow to calculate lengths in the width-field of the table
11951 Therefore you have to format the column by inserting a LaTeX-argument in
11953 Here is an overview about the arguments:
11956 \begin_layout Itemize
11961 creates cell with a fixed width, its text is vertically top-aligned
11964 \begin_layout Itemize
11969 creates cell with a fixed width, its text is vertically centered
11972 \begin_layout Itemize
11977 creates cell with a fixed width, its text is vertically bottom-aligned
11980 \begin_layout Standard
11981 By entering a LaTeX-argument, all cell settings set in the table dialog
11985 \begin_layout Standard
11986 \begin_inset Note Greyedout
11989 \begin_layout Plain Layout
11994 Due to a bug, LyX shows the overwritten settings anyway.
12002 \begin_layout Standard
12003 As the text should be horizontally centered, the command
12010 You can now enter the following LaTeX-argument for the first spanned column:
12013 \begin_layout Standard
12018 centering}m{1.25cm-6.2pt}
12021 \begin_layout Standard
12026 means, that the commands inside the braces are applied before the cell
12030 \begin_layout Standard
12031 Although we have chosen centered alignment for the text of the multicolumn
12032 cell, it is still left aligned.
12033 This is because LyX only applies the alignment to single columns.
12034 So we have to use for the multicolumn the LaTeX-argument
12037 \begin_layout Standard
12045 \begin_layout Subsection
12050 \begin_layout Plain Layout
12060 \begin_layout Plain Layout
12070 \begin_layout Plain Layout
12071 LaTeX-packages ! multirow
12079 \begin_layout Standard
12080 In contrary to multicolumns multirows are not yet supported by LyX so a
12081 bit of TeX-Code needs to be used.
12082 To use multirows load the LaTeX-package
12086 in your document preamble with the command
12089 \begin_layout Standard
12094 usepackage{multirow}
12097 \begin_layout Standard
12098 Multirows are created with the command
12101 \begin_layout Standard
12106 multirow{number of rows}{cell width}{cell entry}
12109 \begin_layout Standard
12110 To create the following table:
12113 \begin_layout Standard
12118 \begin_layout Plain Layout
12132 \begin_inset Tabular
12133 <lyxtabular version="3" rows="3" columns="3">
12135 <column alignment="center" valignment="top" width="0">
12136 <column alignment="center" valignment="top" width="0">
12137 <column alignment="center" valignment="top" width="0">
12139 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12142 \begin_layout Plain Layout
12148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12151 \begin_layout Plain Layout
12157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12160 \begin_layout Plain Layout
12168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12171 \begin_layout Plain Layout
12175 \begin_layout Plain Layout
12179 multirow{2}{2.5cm}{
12188 \begin_layout Plain Layout
12200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12203 \begin_layout Plain Layout
12209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12212 \begin_layout Plain Layout
12220 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12223 \begin_layout Plain Layout
12229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12232 \begin_layout Plain Layout
12238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12241 \begin_layout Plain Layout
12256 \begin_layout Plain Layout
12272 \begin_layout Standard
12273 create a 3×3 table.
12274 To get rid of the line above the last cell in the first column, the cell
12275 is marked as multicolumn and the upper border is unset.
12276 The multirow is now created in the second row of the first column by inserting
12280 \begin_layout Standard
12285 multirow{2}{2.5cm}{
12288 \begin_layout Standard
12290 According to the command parameters the multirow spans now two rows and
12292 \begin_inset space \thinspace{}
12296 The content of the multirow cell follows outside the TeX-Code box and the
12297 command is finished with a right brace
12301 in another TeX-Code-box behind the text.
12304 \begin_layout Standard
12311 left-aligns its content by default.
12312 To override the default, renew the command
12321 \begin_layout Standard
12333 \begin_layout Standard
12334 in TeX-Code in the document preamble.
12335 Then all entries of multirow cells in the document are centered.
12336 If centering is only needed for several tables, you can renew the command
12337 in an TeX-Code box just before the table instead of the preamble.
12338 If the text should be right-aligned, replace
12351 To return to left-alignment
12360 \begin_layout Section
12362 \begin_inset CommandInset label
12364 name "sec:Formal-Tables"
12372 \begin_layout Plain Layout
12381 \begin_layout Standard
12382 Tables are often typeset in books similar to Table
12383 \begin_inset space ~
12387 \begin_inset CommandInset ref
12389 reference "tab:Example-booktabs-table"
12394 This kind of tables is called
12395 \begin_inset Quotes eld
12403 \begin_inset Quotes erd
12407 To make a table a formal table use the option
12415 tab of the table dialog.
12418 \begin_layout Standard
12419 \begin_inset Float table
12425 \begin_layout Plain Layout
12426 \begin_inset Caption
12428 \begin_layout Plain Layout
12429 \begin_inset CommandInset label
12431 name "tab:Example-booktabs-table"
12435 Example booktabs-table
12443 \begin_layout Plain Layout
12445 \begin_inset Tabular
12446 <lyxtabular version="3" rows="8" columns="4">
12447 <features booktabs="true">
12448 <column alignment="center" valignment="top" width="0">
12449 <column alignment="center" valignment="top" width="0">
12450 <column alignment="center" valignment="top" width="0">
12451 <column alignment="center" valignment="top" width="0">
12453 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12456 \begin_layout Plain Layout
12462 <cell alignment="center" valignment="top" topline="true" usebox="none">
12465 \begin_layout Plain Layout
12467 \begin_inset Formula $\,$
12475 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12478 \begin_layout Plain Layout
12480 \begin_inset Formula $\,$
12488 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12491 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12502 \begin_layout Plain Layout
12506 \begin_layout Plain Layout
12519 \begin_layout Plain Layout
12528 Detector thickness [µm]
12533 <cell alignment="center" valignment="top" usebox="none">
12536 \begin_layout Plain Layout
12542 <cell alignment="center" valignment="top" usebox="none">
12545 \begin_layout Plain Layout
12551 <cell alignment="center" valignment="top" usebox="none">
12554 \begin_layout Plain Layout
12562 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12565 \begin_layout Plain Layout
12571 <cell alignment="center" valignment="top" topline="true" usebox="none">
12574 \begin_layout Plain Layout
12580 <cell alignment="center" valignment="top" topline="true" usebox="none">
12583 \begin_layout Plain Layout
12589 <cell alignment="center" valignment="top" topline="true" usebox="none">
12592 \begin_layout Plain Layout
12599 <row topspace="default">
12600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12603 \begin_layout Plain Layout
12604 Spatial resolution [µm]
12609 <cell alignment="center" valignment="top" usebox="none">
12612 \begin_layout Plain Layout
12618 <cell alignment="center" valignment="top" usebox="none">
12621 \begin_layout Plain Layout
12627 <cell alignment="center" valignment="top" usebox="none">
12630 \begin_layout Plain Layout
12637 <row topspace="default">
12638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12641 \begin_layout Plain Layout
12643 \begin_inset Formula $f_{\mathrm{max}}$
12651 <cell alignment="center" valignment="top" usebox="none">
12654 \begin_layout Plain Layout
12660 <cell alignment="center" valignment="top" usebox="none">
12663 \begin_layout Plain Layout
12669 <cell alignment="center" valignment="top" usebox="none">
12672 \begin_layout Plain Layout
12679 <row topspace="default">
12680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12683 \begin_layout Plain Layout
12687 \begin_layout Plain Layout
12691 cmidrule(l{10pt}){1-1}
12696 LSF-spatial resolution
12701 <cell alignment="center" valignment="top" usebox="none">
12704 \begin_layout Plain Layout
12710 <cell alignment="center" valignment="top" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" usebox="none">
12722 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12739 <cell alignment="center" valignment="top" usebox="none">
12742 \begin_layout Plain Layout
12748 <cell alignment="center" valignment="top" usebox="none">
12751 \begin_layout Plain Layout
12757 <cell alignment="center" valignment="top" usebox="none">
12760 \begin_layout Plain Layout
12768 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12771 \begin_layout Plain Layout
12777 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12780 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12798 \begin_layout Plain Layout
12817 \begin_layout Standard
12818 Spaces to table rows can be added using the
12822 tab of the table dialog as described in section
12823 \begin_inset space ~
12827 \begin_inset CommandInset ref
12829 reference "sub:Row-Spacing"
12836 \begin_layout Standard
12837 In contrary to normal tables, formal tables have no vertical table lines.
12838 The horizontal table lines can be set like for normal tables but they appear
12839 with different width in the output:
12840 \begin_inset Newline newline
12843 The first and the last table line have a default width of 0.08
12844 \begin_inset space \thinspace{}
12847 em while the other lines have a default width of 0.05
12848 \begin_inset space \thinspace{}
12854 \begin_layout Standard
12855 The default widths can be changed with the following preamble lines
12858 \begin_layout Standard
12868 \begin_inset Newline newline
12880 \begin_layout Standard
12881 This example is for the first line, the so called
12886 If you want to change the width for the last line, replace
12895 To change the width for the other lines replace
12904 You can use all units listed in appendix
12905 \begin_inset space ~
12909 \begin_inset CommandInset ref
12911 reference "cha:Units-available-in"
12918 \begin_layout Standard
12919 Lines that don't span over all table columns can be created by setting a
12920 table line for multicolumn cells.
12921 LyX will then internally use the command
12927 to create this line.
12931 \begin_layout Standard
12936 cmidrule[width](trim){startcol-endcol}
12939 \begin_layout Standard
12946 are are currently not supported by LyX so you have to use TeX-Code to be
12954 s can manually be created by inserting the command as TeX-Code as first
12955 cell entry of the first cell of a row.
12956 The line is then drawn in the output above the current row.
12959 \begin_layout Standard
12960 The default for the width is 0.03
12961 \begin_inset space \thinspace{}
12965 Startcol is the number of the column where the line starts and endcol the
12966 column number where the line ends.
12967 The endcol always needs to be specified, also when the line should span
12969 The optional parameter trim could be either
12977 where the trimwidth is also optional.
12978 Using for example the parameter
12982 means that the line is trimmed from its left end by 2
12983 \begin_inset space \thinspace{}
12987 If you don't specify the trimwidth the lines are trimmed by the default
12989 \begin_inset space \thinspace{}
12995 \begin_layout Standard
12996 \begin_inset VSpace bigskip
13000 \begin_inset space ~
13004 \begin_inset CommandInset ref
13006 reference "tab:Example-booktabs-table"
13010 was created using the commands
13013 \begin_layout Standard
13023 \begin_layout Standard
13024 at the beginning of the in the second row and
13027 \begin_layout Standard
13032 cmidrule(l{10pt}){1-1}
13035 \begin_layout Standard
13039 \begin_layout Standard
13040 \begin_inset VSpace bigskip
13046 \begin_layout Standard
13047 You might want to have overlapping
13054 \begin_inset space ~
13058 \begin_inset CommandInset ref
13060 reference "tab:Special-booktabs-table"
13065 This can be achieved with the TeX-Code command
13068 \begin_layout Standard
13076 \begin_layout Standard
13077 The command that was used for the second row of Table
13078 \begin_inset space ~
13082 \begin_inset CommandInset ref
13084 reference "tab:Special-booktabs-table"
13091 \begin_layout Standard
13105 \begin_layout Standard
13106 The command for the sixth row is
13109 \begin_layout Standard
13121 \begin_layout Standard
13122 \begin_inset VSpace bigskip
13128 \begin_layout Standard
13129 If you are anyway not satisfied with the border line spacing, you can use
13130 the following command to produce lines that span over all table columns
13135 \begin_layout Standard
13140 specialrule{width}{space above}{space below}
13143 \begin_layout Standard
13144 For more informations about these specialties, we refer to the manual of
13150 \begin_inset CommandInset citation
13160 \begin_layout Plain Layout
13161 LaTeX-packages ! booktabs
13169 \begin_layout Standard
13170 \begin_inset Float table
13176 \begin_layout Plain Layout
13177 \begin_inset Caption
13179 \begin_layout Plain Layout
13180 \begin_inset CommandInset label
13182 name "tab:Special-booktabs-table"
13186 Special booktabs-table
13194 \begin_layout Plain Layout
13196 \begin_inset Tabular
13197 <lyxtabular version="3" rows="8" columns="4">
13198 <features booktabs="true">
13199 <column alignment="center" valignment="top" width="0">
13200 <column alignment="center" valignment="top" width="0">
13201 <column alignment="center" valignment="top" width="0">
13202 <column alignment="center" valignment="top" width="0">
13204 <cell alignment="center" valignment="top" topline="true" usebox="none">
13207 \begin_layout Plain Layout
13213 <cell alignment="center" valignment="top" topline="true" usebox="none">
13216 \begin_layout Plain Layout
13218 \begin_inset space \thinspace{}
13226 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13229 \begin_layout Plain Layout
13231 \begin_inset space \thinspace{}
13239 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13242 \begin_layout Plain Layout
13250 <cell alignment="center" valignment="top" usebox="none">
13253 \begin_layout Plain Layout
13257 \begin_layout Plain Layout
13270 \begin_layout Plain Layout
13283 \begin_layout Plain Layout
13296 \begin_layout Plain Layout
13305 Detector thickness [µm]
13310 <cell alignment="center" valignment="top" usebox="none">
13313 \begin_layout Plain Layout
13319 <cell alignment="center" valignment="top" usebox="none">
13322 \begin_layout Plain Layout
13328 <cell alignment="center" valignment="top" usebox="none">
13331 \begin_layout Plain Layout
13339 <cell alignment="center" valignment="top" topline="true" usebox="none">
13342 \begin_layout Plain Layout
13348 <cell alignment="center" valignment="top" topline="true" usebox="none">
13351 \begin_layout Plain Layout
13357 <cell alignment="center" valignment="top" topline="true" usebox="none">
13360 \begin_layout Plain Layout
13366 <cell alignment="center" valignment="top" topline="true" usebox="none">
13369 \begin_layout Plain Layout
13376 <row topspace="default">
13377 <cell alignment="center" valignment="top" usebox="none">
13380 \begin_layout Plain Layout
13381 Spatial resolution [µm]
13386 <cell alignment="center" valignment="top" usebox="none">
13389 \begin_layout Plain Layout
13395 <cell alignment="center" valignment="top" usebox="none">
13398 \begin_layout Plain Layout
13404 <cell alignment="center" valignment="top" usebox="none">
13407 \begin_layout Plain Layout
13414 <row topspace="default">
13415 <cell alignment="center" valignment="top" usebox="none">
13418 \begin_layout Plain Layout
13420 \begin_inset Formula $f_{\mathrm{max}}$
13428 <cell alignment="center" valignment="top" usebox="none">
13431 \begin_layout Plain Layout
13437 <cell alignment="center" valignment="top" usebox="none">
13440 \begin_layout Plain Layout
13446 <cell alignment="center" valignment="top" usebox="none">
13449 \begin_layout Plain Layout
13457 <cell alignment="center" valignment="top" topline="true" usebox="none">
13460 \begin_layout Plain Layout
13464 \begin_layout Plain Layout
13477 \begin_layout Plain Layout
13486 LSF-spatial resolution
13491 <cell alignment="center" valignment="top" topline="true" usebox="none">
13494 \begin_layout Plain Layout
13500 <cell alignment="center" valignment="top" topline="true" usebox="none">
13503 \begin_layout Plain Layout
13509 <cell alignment="center" valignment="top" topline="true" usebox="none">
13512 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" usebox="none">
13523 \begin_layout Plain Layout
13529 <cell alignment="center" valignment="top" usebox="none">
13532 \begin_layout Plain Layout
13538 <cell alignment="center" valignment="top" usebox="none">
13541 \begin_layout Plain Layout
13547 <cell alignment="center" valignment="top" usebox="none">
13550 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13570 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13579 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13588 \begin_layout Plain Layout
13607 \begin_layout Section
13608 Vertical Table Alignment
13612 \begin_layout Plain Layout
13621 \begin_layout Standard
13622 To align tables vertically in a text line the table must be inside a box.
13623 The box can then be vertically aligned as described in section
13624 \begin_inset space ~
13628 \begin_inset CommandInset ref
13630 reference "sec:Box-Dialog"
13637 \begin_layout Standard
13638 In the following example the tables are inside a minipage
13642 \begin_layout Plain Layout
13643 Minipages are described in section
13644 \begin_inset space ~
13648 \begin_inset CommandInset ref
13650 reference "sec:Minipages"
13659 box that has a width of 15
13660 \begin_inset space \thinspace{}
13666 \begin_layout Itemize
13668 \begin_inset Box Frameless
13677 height_special "totalheight"
13680 \begin_layout Plain Layout
13681 \begin_inset Tabular
13682 <lyxtabular version="3" rows="3" columns="3">
13684 <column alignment="center" valignment="top" width="0">
13685 <column alignment="center" valignment="top" width="0">
13686 <column alignment="center" valignment="top" width="0">
13688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13691 \begin_layout Plain Layout
13697 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13700 \begin_layout Plain Layout
13706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13709 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13729 \begin_layout Plain Layout
13735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13738 \begin_layout Plain Layout
13746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13749 \begin_layout Plain Layout
13755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13758 \begin_layout Plain Layout
13764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13767 \begin_layout Plain Layout
13787 \begin_layout Plain Layout
13799 \begin_inset Box Frameless
13808 height_special "totalheight"
13811 \begin_layout Plain Layout
13812 \begin_inset Tabular
13813 <lyxtabular version="3" rows="3" columns="3">
13815 <column alignment="center" valignment="top" width="0">
13816 <column alignment="center" valignment="top" width="0">
13817 <column alignment="center" valignment="top" width="0">
13819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13822 \begin_layout Plain Layout
13828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13831 \begin_layout Plain Layout
13837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13840 \begin_layout Plain Layout
13848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13851 \begin_layout Plain Layout
13857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13860 \begin_layout Plain Layout
13866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13869 \begin_layout Plain Layout
13877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13880 \begin_layout Plain Layout
13886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13889 \begin_layout Plain Layout
13895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13898 \begin_layout Plain Layout
13918 \begin_layout Plain Layout
13928 \begin_layout Itemize
13930 \begin_inset Box Frameless
13939 height_special "totalheight"
13942 \begin_layout Plain Layout
13943 \begin_inset Tabular
13944 <lyxtabular version="3" rows="3" columns="3">
13946 <column alignment="center" valignment="top" width="0">
13947 <column alignment="center" valignment="top" width="0">
13948 <column alignment="center" valignment="top" width="0">
13950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13953 \begin_layout Plain Layout
13959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13962 \begin_layout Plain Layout
13968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13971 \begin_layout Plain Layout
13979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13982 \begin_layout Plain Layout
13988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13991 \begin_layout Plain Layout
13997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14000 \begin_layout Plain Layout
14008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14011 \begin_layout Plain Layout
14017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14020 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14029 \begin_layout Plain Layout
14048 \begin_layout Itemize
14050 \begin_inset Box Frameless
14059 height_special "totalheight"
14062 \begin_layout Plain Layout
14063 \begin_inset Tabular
14064 <lyxtabular version="3" rows="3" columns="3">
14066 <column alignment="center" valignment="top" width="0">
14067 <column alignment="center" valignment="top" width="0">
14068 <column alignment="center" valignment="top" width="0">
14070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14073 \begin_layout Plain Layout
14079 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14082 \begin_layout Plain Layout
14088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14091 \begin_layout Plain Layout
14099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14102 \begin_layout Plain Layout
14108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14111 \begin_layout Plain Layout
14117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14120 \begin_layout Plain Layout
14128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14131 \begin_layout Plain Layout
14137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14140 \begin_layout Plain Layout
14146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14149 \begin_layout Plain Layout
14169 \begin_layout Plain Layout
14181 \begin_inset Box Frameless
14190 height_special "totalheight"
14193 \begin_layout Plain Layout
14194 \begin_inset Tabular
14195 <lyxtabular version="3" rows="3" columns="3">
14197 <column alignment="center" valignment="top" width="0">
14198 <column alignment="center" valignment="top" width="0">
14199 <column alignment="center" valignment="top" width="0">
14201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14204 \begin_layout Plain Layout
14210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14213 \begin_layout Plain Layout
14219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14222 \begin_layout Plain Layout
14230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14233 \begin_layout Plain Layout
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14242 \begin_layout Plain Layout
14248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14251 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14262 \begin_layout Plain Layout
14268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14271 \begin_layout Plain Layout
14277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14280 \begin_layout Plain Layout
14300 \begin_layout Plain Layout
14310 \begin_layout Standard
14311 As you can see, the content of the first and last table row is not correctly
14312 aligned with the text line where the table is in.
14313 To get this alignment, the minipage box must be set into a raisebox
14317 \begin_layout Plain Layout
14318 Raiseboxes are described in section
14319 \begin_inset space ~
14323 \begin_inset CommandInset ref
14325 reference "sub:Vertical-Alignment"
14335 In the example above the second table in the first item is aligned using
14336 the TeX-Code-command
14339 \begin_layout Standard
14349 \begin_layout Standard
14351 Behind the box the closing brace
14355 is inserted as TeX-Code.
14356 For the second table in the last item the command
14359 \begin_layout Standard
14369 \begin_layout Standard
14373 \begin_layout Standard
14374 \begin_inset Note Greyedout
14377 \begin_layout Plain Layout
14382 The alignment of the table row content to the surrounding text line is
14384 The needed factor of the
14390 command for this alignment depends on the document font, the font size,
14391 and the table line thickness.
14399 \begin_layout Section
14401 \begin_inset CommandInset label
14403 name "sec:Colored-Tables"
14411 \begin_layout Plain Layout
14420 \begin_layout Subsection
14425 \begin_layout Plain Layout
14426 Table Color ! for Cells
14435 \begin_layout Plain Layout
14436 Color ! for Table Cells
14444 \begin_layout Standard
14445 \begin_inset Float table
14451 \begin_layout Plain Layout
14452 \begin_inset Caption
14454 \begin_layout Plain Layout
14455 \begin_inset CommandInset label
14457 name "tab:Table-colored-without"
14461 Table colored without using the package
14466 \begin_inset OptArg
14469 \begin_layout Plain Layout
14470 Table without colortbl
14483 \begin_layout Plain Layout
14485 \begin_inset Tabular
14486 <lyxtabular version="3" rows="3" columns="3">
14488 <column alignment="center" valignment="top" width="0">
14489 <column alignment="center" valignment="top" width="0">
14490 <column alignment="center" valignment="top" width="0">
14492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14495 \begin_layout Plain Layout
14503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14506 \begin_layout Plain Layout
14514 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14517 \begin_layout Plain Layout
14527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14530 \begin_layout Plain Layout
14538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14541 \begin_layout Plain Layout
14549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14552 \begin_layout Plain Layout
14562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14565 \begin_layout Plain Layout
14573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14576 \begin_layout Plain Layout
14584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14587 \begin_layout Plain Layout
14608 \begin_layout Standard
14609 If you only need colored text, mark the cells and choose a color in the
14612 Edit\SpecialChar \menuseparator
14614 \begin_inset space ~
14620 This was used to create Table
14621 \begin_inset space ~
14625 \begin_inset CommandInset ref
14627 reference "tab:Table-colored-without"
14632 In any other case you have to use the LaTeX-package
14640 \begin_layout Plain Layout
14641 LaTeX-packages ! colortbl
14649 \begin_layout Standard
14653 \begin_layout Plain Layout
14663 \begin_inset Note Note
14666 \begin_layout Plain Layout
14667 The following section part will only be displayed when the LaTeX-package
14680 \begin_layout Standard
14681 To create colored tables,
14685 must be loaded in the preamble with the line
14688 \begin_layout Standard
14693 usepackage{colortbl}
14696 \begin_layout Standard
14697 The color of a column is adjusted with the command
14700 \begin_layout Standard
14705 columncolor{name of color}
14708 \begin_layout Standard
14714 More about the command
14718 is described in section
14719 \begin_inset space ~
14723 \begin_inset CommandInset ref
14725 reference "sub:Multicolumn-Calculations"
14732 \begin_layout Standard
14733 The following color names are predefined:
14736 \begin_layout Standard
14770 \begin_layout Standard
14771 \begin_inset VSpace medskip
14777 \begin_layout Standard
14778 You can also define your own color with the command
14781 \begin_layout Standard
14786 definecolor{color name}{color model}{color values}
14789 \begin_layout Standard
14790 The color model can be
14793 \begin_layout Labeling
14794 \labelwidthstring 00.00.0000
14795 cmyk: cyan, magenta, yellow, black
14798 \begin_layout Labeling
14799 \labelwidthstring 00.00.0000
14800 rgb: red, green blue
14803 \begin_layout Labeling
14804 \labelwidthstring 00.00.0000
14808 \begin_layout Standard
14809 and the color values are comma separated numbers between 0 and 1 describing
14810 the factor for the corresponding color of the color model.
14813 \begin_layout Standard
14815 \begin_inset space \thinspace{}
14819 \begin_inset space ~
14826 " in the preamble with
14829 \begin_layout Standard
14834 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14837 \begin_layout Standard
14845 \begin_layout Standard
14850 definecolor{lightgray}{gray}{0.8}
14853 \begin_layout Standard
14854 \begin_inset VSpace medskip
14860 \begin_layout Standard
14861 Lines are colored with the command
14864 \begin_layout Standard
14869 rowcolor{name of color}
14872 \begin_layout Standard
14873 and cells are colored with the command
14876 \begin_layout Standard
14881 cellcolor{name of color}
14884 \begin_layout Standard
14885 Both commands are inserted at the beginning of a cell as TeX-Code.
14888 \begin_layout Standard
14889 To color characters in the table, mark the cells and use the LyX menu
14891 Edit\SpecialChar \menuseparator
14893 \begin_inset space ~
14899 If a cell contains TeX-Code mark only the characters, otherwise the colored
14900 TeX-Code will cause LaTeX-errors.
14903 \begin_layout Standard
14904 \begin_inset Note Greyedout
14907 \begin_layout Plain Layout
14912 Not all DVI-viewers are able to display self-defined colors.
14920 \begin_layout Standard
14921 \begin_inset VSpace bigskip
14927 \begin_layout Standard
14929 \begin_inset space ~
14933 \begin_inset CommandInset ref
14935 reference "tab:Table-colored-using"
14939 do the following: The color of the first column should be
14947 \begin_layout Standard
14952 columncolor{darkgreen}
14957 \begin_layout Standard
14958 as LaTeX-argument for this column.
14959 The first row should be blue, therefore the TeX-Code command
14962 \begin_layout Standard
14970 \begin_layout Standard
14971 is inserted to the first cell of this row.
14972 Note that this overwrites the column color for the first cell.
14973 The last cell of the last row is colored magenta by inserting the TeX-Code
14977 \begin_layout Standard
14985 \begin_layout Standard
14986 The characters could now be colored using the menu
14988 Edit\SpecialChar \menuseparator
14990 \begin_inset space ~
14998 \begin_layout Standard
14999 \begin_inset Float table
15005 \begin_layout Plain Layout
15006 \begin_inset Caption
15008 \begin_layout Plain Layout
15009 \begin_inset CommandInset label
15011 name "tab:Table-colored-using"
15015 Table colored using the package
15020 \begin_inset OptArg
15023 \begin_layout Plain Layout
15024 Table with colortbl
15037 \begin_layout Plain Layout
15039 \begin_inset Tabular
15040 <lyxtabular version="3" rows="3" columns="3">
15042 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15043 <column alignment="center" valignment="top" width="0">
15044 <column alignment="center" valignment="top" width="0">
15046 <cell alignment="center" valignment="top" usebox="none">
15049 \begin_layout Plain Layout
15053 \begin_layout Plain Layout
15069 <cell alignment="center" valignment="top" usebox="none">
15072 \begin_layout Plain Layout
15080 <cell alignment="center" valignment="top" usebox="none">
15083 \begin_layout Plain Layout
15093 <cell alignment="center" valignment="top" usebox="none">
15096 \begin_layout Plain Layout
15104 <cell alignment="center" valignment="top" usebox="none">
15107 \begin_layout Plain Layout
15115 <cell alignment="center" valignment="top" usebox="none">
15118 \begin_layout Plain Layout
15128 <cell alignment="center" valignment="top" usebox="none">
15131 \begin_layout Plain Layout
15139 <cell alignment="center" valignment="top" usebox="none">
15142 \begin_layout Plain Layout
15150 <cell alignment="center" valignment="top" usebox="none">
15153 \begin_layout Plain Layout
15157 \begin_layout Plain Layout
15186 \begin_layout Standard
15190 \begin_layout Plain Layout
15200 \begin_inset Note Note
15203 \begin_layout Plain Layout
15204 The following will be displayed when the LaTeX-package
15216 \begin_layout Standard
15217 You need to install the package
15221 to see the content of this section in the output.
15224 \begin_layout Standard
15228 \begin_layout Plain Layout
15240 \begin_layout Subsection
15245 \begin_layout Plain Layout
15246 Table Color ! for Lines
15255 \begin_layout Plain Layout
15256 Color ! for Table Lines
15264 \begin_layout Standard
15265 As described in section
15266 \begin_inset space ~
15270 \begin_inset CommandInset ref
15272 reference "sub:Line-Thickness"
15276 , the line thickness for all lines in a table can be adjusted with the length
15285 \begin_inset space \thinspace{}
15288 pt for all tables of this section.
15292 \begin_layout Plain Layout
15298 arrayrulewidth}{1.5pt}
15306 \begin_layout Standard
15307 To color vertical lines for example with green, create the following column
15308 format in the document preamble, according to the description in section
15309 \begin_inset space ~
15313 \begin_inset CommandInset ref
15315 reference "sub:Customized-Format"
15322 \begin_layout Standard
15327 newcolumntype{W}{!{
15334 \begin_layout Standard
15336 \begin_inset space ~
15340 \begin_inset CommandInset ref
15342 reference "tab:Table-with-vertical-colored"
15350 was used for the last column and
15354 for the other columns.
15357 \begin_layout Standard
15358 If you want to have several colors, define more column formats.
15361 \begin_layout Standard
15362 \begin_inset Float table
15368 \begin_layout Plain Layout
15369 \begin_inset Caption
15371 \begin_layout Plain Layout
15372 \begin_inset CommandInset label
15374 name "tab:Table-with-vertical-colored"
15378 Table with colored vertical lines
15386 \begin_layout Plain Layout
15388 \begin_inset Tabular
15389 <lyxtabular version="3" rows="3" columns="3">
15391 <column alignment="center" valignment="top" width="0" special="Wc">
15392 <column alignment="center" valignment="top" width="0" special="Wc">
15393 <column alignment="center" valignment="top" width="0" special="WcW">
15395 <cell alignment="center" valignment="top" topline="true" usebox="none">
15398 \begin_layout Plain Layout
15404 <cell alignment="center" valignment="top" topline="true" usebox="none">
15407 \begin_layout Plain Layout
15413 <cell alignment="center" valignment="top" topline="true" usebox="none">
15416 \begin_layout Plain Layout
15424 <cell alignment="center" valignment="top" topline="true" usebox="none">
15427 \begin_layout Plain Layout
15433 <cell alignment="center" valignment="top" topline="true" usebox="none">
15436 \begin_layout Plain Layout
15442 <cell alignment="center" valignment="top" topline="true" usebox="none">
15445 \begin_layout Plain Layout
15453 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15456 \begin_layout Plain Layout
15462 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15465 \begin_layout Plain Layout
15471 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15474 \begin_layout Plain Layout
15493 \begin_layout Standard
15494 \begin_inset VSpace bigskip
15497 To color horizontal lines for example with red, like in Table
15498 \begin_inset space ~
15502 \begin_inset CommandInset ref
15504 reference "tab:Table-with-horizontal-colored"
15508 , insert these commands in TeX-Code before the table or table float:
15511 \begin_layout Standard
15521 \begin_inset Newline newline
15529 \begin_inset Newline newline
15536 \begin_layout Plain Layout
15547 arrayrulecolor{red}
15551 arrayrulecolor{black}}
15554 \begin_layout Standard
15558 \begin_layout Plain Layout
15569 \begin_layout Plain Layout
15578 \begin_layout Plain Layout
15582 arrayrulecolor{red}
15586 arrayrulecolor{black}}
15592 \begin_inset Float table
15598 \begin_layout Plain Layout
15599 \begin_inset Caption
15601 \begin_layout Plain Layout
15602 \begin_inset CommandInset label
15604 name "tab:Table-with-horizontal-colored"
15608 Table with colored horizontal lines
15616 \begin_layout Plain Layout
15618 \begin_inset Tabular
15619 <lyxtabular version="3" rows="3" columns="3">
15621 <column alignment="center" valignment="top" width="0">
15622 <column alignment="center" valignment="top" width="0">
15623 <column alignment="center" valignment="top" width="0">
15625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15628 \begin_layout Plain Layout
15634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15637 \begin_layout Plain Layout
15643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15646 \begin_layout Plain Layout
15654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15657 \begin_layout Plain Layout
15663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15666 \begin_layout Plain Layout
15672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15675 \begin_layout Plain Layout
15683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15686 \begin_layout Plain Layout
15692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15695 \begin_layout Plain Layout
15701 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15704 \begin_layout Plain Layout
15723 \begin_layout Standard
15724 To return to the default line color black, insert this command in TeX-Code
15725 behind the table or table float:
15728 \begin_layout Standard
15740 \begin_layout Standard
15742 \begin_inset space ~
15746 \begin_inset CommandInset ref
15748 reference "tab:Table-with-colored"
15752 is an example with colored vertical and horizontal lines.
15755 \begin_layout Standard
15756 \begin_inset Float table
15762 \begin_layout Plain Layout
15763 \begin_inset Caption
15765 \begin_layout Plain Layout
15766 \begin_inset CommandInset label
15768 name "tab:Table-with-colored"
15772 Table with colored lines
15780 \begin_layout Plain Layout
15782 \begin_inset Tabular
15783 <lyxtabular version="3" rows="3" columns="3">
15785 <column alignment="center" valignment="top" width="0" special="Wc">
15786 <column alignment="center" valignment="top" width="0" special="Wc">
15787 <column alignment="center" valignment="top" width="0" special="WcW">
15789 <cell alignment="center" valignment="top" topline="true" usebox="none">
15792 \begin_layout Plain Layout
15798 <cell alignment="center" valignment="top" topline="true" usebox="none">
15801 \begin_layout Plain Layout
15807 <cell alignment="center" valignment="top" topline="true" usebox="none">
15810 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" usebox="none">
15821 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" topline="true" usebox="none">
15830 \begin_layout Plain Layout
15836 <cell alignment="center" valignment="top" topline="true" usebox="none">
15839 \begin_layout Plain Layout
15846 <row topspace="default">
15847 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15850 \begin_layout Plain Layout
15856 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15859 \begin_layout Plain Layout
15865 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15868 \begin_layout Plain Layout
15887 \begin_layout Standard
15891 \begin_layout Plain Layout
15907 \begin_layout Standard
15911 \begin_layout Plain Layout
15917 arrayrulewidth}{0.4pt}
15925 \begin_layout Section
15926 Table Customization
15930 \begin_layout Plain Layout
15931 Table Customization
15940 \begin_layout Plain Layout
15941 Table ! Customization
15949 \begin_layout Subsection
15951 \begin_inset CommandInset label
15953 name "sub:Row-Spacing"
15961 \begin_layout Plain Layout
15962 Table Customization ! Row Spacing
15970 \begin_layout Standard
15971 You can add vertical space to table rows in the
15975 tab of the table dialog.
15976 You find there three possibilities:
15979 \begin_layout Description
15981 \begin_inset space ~
15985 \begin_inset space ~
15988 row will add space above the characters of the table row.
15989 If the table is a formal table
15993 \begin_layout Plain Layout
15994 Formal tables are explained in section
15995 \begin_inset space ~
15999 \begin_inset CommandInset ref
16001 reference "sec:Formal-Tables"
16010 LyX will insert as default 0.5
16011 \begin_inset space \thinspace{}
16015 For normal tables the inserted space will unfortunately destroy the vertical
16016 table lines as in the following table:
16017 \begin_inset VSpace medskip
16021 \begin_inset Newline newline
16025 \begin_inset space \hspace*{}
16030 \begin_inset space \hfill{}
16034 \begin_inset Tabular
16035 <lyxtabular version="3" rows="3" columns="1">
16037 <column alignment="center" valignment="top" width="0">
16039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16042 \begin_layout Plain Layout
16049 <row topspace="3mm">
16050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16053 \begin_layout Plain Layout
16055 \begin_inset space \thinspace{}
16058 mm space top of row
16065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16068 \begin_layout Plain Layout
16080 \begin_inset space \hfill{}
16084 \begin_inset space \hspace*{}
16089 \begin_inset VSpace medskip
16093 \begin_inset Newline newline
16096 So inserting space to the top of row for normal tables is only useful when
16097 you don't have vertical lines.
16100 \begin_layout Description
16102 \begin_inset space ~
16106 \begin_inset space ~
16109 row will add space below the characters of the table row.
16110 If the table is a formal table LyX will insert as default 0.5
16111 \begin_inset space \thinspace{}
16114 em space, for normal tables the default size is 2
16115 \begin_inset space \thinspace{}
16121 \begin_layout Description
16123 \begin_inset space ~
16126 rows adds space between the current and the following row.
16127 If the table is a formal table LyX will insert as default 0.5
16128 \begin_inset space \thinspace{}
16132 For normal tables the inserted space will unfortunately destroy the vertical
16133 table lines as in the following table:
16134 \begin_inset VSpace medskip
16138 \begin_inset Newline newline
16142 \begin_inset space \hspace*{}
16147 \begin_inset space \hfill{}
16151 \begin_inset Tabular
16152 <lyxtabular version="3" rows="3" columns="1">
16154 <column alignment="center" valignment="top" width="0">
16156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16159 \begin_layout Plain Layout
16166 <row interlinespace="3mm">
16167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16170 \begin_layout Plain Layout
16171 \begin_inset Formula $\downarrow$
16175 \begin_inset space \thinspace{}
16178 mm space between row
16179 \begin_inset Formula $\downarrow$
16189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16192 \begin_layout Plain Layout
16193 \begin_inset Formula $\uparrow$
16197 \begin_inset space \thinspace{}
16200 mm space between row
16201 \begin_inset Formula $\uparrow$
16215 \begin_inset space \hfill{}
16219 \begin_inset space \hspace*{}
16224 \begin_inset VSpace medskip
16228 \begin_inset Newline newline
16231 So inserting space between rows for normal tables is only useful when you
16232 don't have vertical lines.
16235 \begin_layout Standard
16236 \begin_inset VSpace bigskip
16239 When you want to add extra height to all cells of all tables, you can do
16240 this with the following preamble lines:
16243 \begin_layout Standard
16248 @ifundefined{extrarowheight}
16249 \begin_inset Newline newline
16256 \begin_layout Plain Layout
16267 usepackage{array}}{}
16268 \begin_inset Newline newline
16275 extrarowheight}{height}
16278 \begin_layout Standard
16279 But this has the disadvantage that the cell texts are no longer exactly
16280 vertically centered.
16285 will be loaded automatically by LyX when you use self defined table formats.
16286 To avoid that it is loaded twice the command
16292 is used in the above command.)
16295 \begin_layout Subsection
16296 Special Cell Alignment
16300 \begin_layout Plain Layout
16301 Table Customization ! Special Cell Alignment
16309 \begin_layout Standard
16310 Sometimes it looks better when the cell entries of a column are aligned
16311 with a special character, e.
16312 \begin_inset space \thinspace{}
16316 \begin_inset space ~
16319 with the decimal separator as in Table
16320 \begin_inset space ~
16324 \begin_inset CommandInset ref
16326 reference "tab:Table-cells-of"
16333 \begin_layout Standard
16334 \begin_inset Float table
16340 \begin_layout Plain Layout
16341 \begin_inset Caption
16343 \begin_layout Plain Layout
16344 \begin_inset CommandInset label
16346 name "tab:Table-cells-of"
16350 Table cells of a column aligned with the decimal separator.
16358 \begin_layout Plain Layout
16360 \begin_inset Tabular
16361 <lyxtabular version="3" rows="4" columns="2">
16363 <column alignment="right" valignment="top" width="0">
16364 <column alignment="left" valignment="top" width="0" special="@{}l">
16366 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16369 \begin_layout Plain Layout
16375 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16378 \begin_layout Plain Layout
16386 <cell alignment="center" valignment="top" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell alignment="center" valignment="top" usebox="none">
16398 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" usebox="none">
16418 \begin_layout Plain Layout
16426 <cell alignment="center" valignment="top" usebox="none">
16429 \begin_layout Plain Layout
16435 <cell alignment="center" valignment="top" usebox="none">
16438 \begin_layout Plain Layout
16457 \begin_layout Standard
16458 This table was created with a 4×2 table.
16459 The heading is a centered multicolumn.
16460 The first column is right-aligned and contains the digits before the decimal
16461 point and the decimal point.
16462 The second column is left aligned and contains the digits after the decimal
16464 To omit the space that is normally between two table columns, use the following
16465 LaTeX-argument for the second column:
16468 \begin_layout Standard
16474 \begin_layout Standard
16476 \begin_inset space ~
16480 \begin_inset CommandInset ref
16482 reference "tab:Several-table-cell"
16486 shows some example alignments.
16487 For the alignment with the relation sign, you must add the second smallest
16488 math-space at the beginning of the last column to get the correct space
16489 surrounding the relation sign.
16492 \begin_layout Standard
16493 \begin_inset Float table
16498 \begin_layout Plain Layout
16499 \begin_inset Caption
16501 \begin_layout Plain Layout
16502 \begin_inset CommandInset label
16504 name "tab:Several-table-cell"
16508 Several table cell alignments.
16516 \begin_layout Plain Layout
16518 \begin_inset Tabular
16519 <lyxtabular version="3" rows="4" columns="6">
16521 <column alignment="right" valignment="top" width="0">
16522 <column alignment="left" valignment="top" width="0" special="@{}l">
16523 <column alignment="right" valignment="top" width="0">
16524 <column alignment="left" valignment="top" width="0" special="@{}l">
16525 <column alignment="right" valignment="top" width="0">
16526 <column alignment="left" valignment="top" width="0" special="@{}l">
16528 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16531 \begin_layout Plain Layout
16537 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16540 \begin_layout Plain Layout
16546 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16549 \begin_layout Plain Layout
16555 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16558 \begin_layout Plain Layout
16564 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16567 \begin_layout Plain Layout
16573 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16576 \begin_layout Plain Layout
16584 <cell alignment="center" valignment="top" usebox="none">
16587 \begin_layout Plain Layout
16593 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16598 \begin_inset space \thinspace{}
16606 <cell alignment="center" valignment="top" usebox="none">
16609 \begin_layout Plain Layout
16610 \begin_inset Formula $10\cdot$
16618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16621 \begin_layout Plain Layout
16622 \begin_inset Formula $10^{\mbox{-}17}$
16630 <cell alignment="center" valignment="top" usebox="none">
16633 \begin_layout Plain Layout
16634 \begin_inset Formula $\Gamma(t)\propto$
16642 <cell alignment="center" valignment="top" usebox="none">
16645 \begin_layout Plain Layout
16646 \begin_inset Formula $\:\Upsilon(t)$
16656 <cell alignment="center" valignment="top" usebox="none">
16659 \begin_layout Plain Layout
16665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16668 \begin_layout Plain Layout
16670 \begin_inset space \thinspace{}
16678 <cell alignment="center" valignment="top" usebox="none">
16681 \begin_layout Plain Layout
16682 \begin_inset Formula $5.78\cdot$
16690 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16693 \begin_layout Plain Layout
16694 \begin_inset Formula $10^{7}$
16702 <cell alignment="center" valignment="top" usebox="none">
16705 \begin_layout Plain Layout
16706 \begin_inset Formula $A\ne$
16714 <cell alignment="center" valignment="top" usebox="none">
16717 \begin_layout Plain Layout
16718 \begin_inset Formula $\: B_{\mathrm{red}}$
16728 <cell alignment="center" valignment="top" usebox="none">
16731 \begin_layout Plain Layout
16737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16740 \begin_layout Plain Layout
16742 \begin_inset space \thinspace{}
16750 <cell alignment="center" valignment="top" usebox="none">
16753 \begin_layout Plain Layout
16755 \begin_inset Formula $33.5\cdot$
16763 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16766 \begin_layout Plain Layout
16767 \begin_inset Formula $10^{4}$
16775 <cell alignment="center" valignment="top" usebox="none">
16778 \begin_layout Plain Layout
16779 \begin_inset Formula $\sin(\alpha)\ge$
16787 <cell alignment="center" valignment="top" usebox="none">
16790 \begin_layout Plain Layout
16791 \begin_inset Formula $\:\sin(\beta)$
16812 \begin_layout Standard
16813 \begin_inset VSpace bigskip
16816 There is also the LaTeX-package
16824 \begin_layout Plain Layout
16825 LaTeX-packages ! dcolumn
16830 that provides table cell alignments.
16831 But this unfortunately treats the cell entries as math and doesn't allow
16832 formulas in table cells: The first column of Table
16833 \begin_inset space ~
16837 \begin_inset CommandInset ref
16839 reference "tab:Several-table-cell"
16847 like the first column in Table
16848 \begin_inset space ~
16852 \begin_inset CommandInset ref
16854 reference "tab:Alignments-when"
16858 and only with some tricks like the expected.
16859 The alignment of the second and third column of Table
16860 \begin_inset space ~
16864 \begin_inset CommandInset ref
16866 reference "tab:Several-table-cell"
16870 is not possible with
16877 \begin_layout Standard
16878 \begin_inset Float table
16884 \begin_layout Plain Layout
16885 \begin_inset Caption
16887 \begin_layout Plain Layout
16888 \begin_inset CommandInset label
16890 name "tab:Alignments-when"
16894 Alignments when LaTeX-package dcolumn is used.
16895 For all column alignments tricks have to be used to get the output.
16903 \begin_layout Plain Layout
16905 \begin_inset Tabular
16906 <lyxtabular version="3" rows="4" columns="3">
16908 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16909 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16910 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16912 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16915 \begin_layout Plain Layout
16921 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16924 \begin_layout Plain Layout
16930 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16933 \begin_layout Plain Layout
16941 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16946 \begin_inset space \thinspace{}
16954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16957 \begin_layout Plain Layout
16959 \begin_inset space \thinspace{}
16963 \begin_inset Formula $\mbox{bottles}$
16971 <cell alignment="center" valignment="top" usebox="none">
16974 \begin_layout Plain Layout
16979 \begin_layout Plain Layout
16989 \begin_inset Formula $\mbox{bottles}$
16999 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17002 \begin_layout Plain Layout
17004 \begin_inset space \thinspace{}
17012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17015 \begin_layout Plain Layout
17017 \begin_inset space \thinspace{}
17021 \begin_inset Formula $\mbox{Pixels}$
17029 <cell alignment="center" valignment="top" usebox="none">
17032 \begin_layout Plain Layout
17037 \begin_layout Plain Layout
17047 \begin_inset Formula $\mbox{Pixels}$
17057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17060 \begin_layout Plain Layout
17062 \begin_inset space \thinspace{}
17070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17073 \begin_layout Plain Layout
17075 \begin_inset space \thinspace{}
17079 \begin_inset Formula $\mbox{cm}$
17087 <cell alignment="center" valignment="top" usebox="none">
17090 \begin_layout Plain Layout
17095 \begin_layout Plain Layout
17105 \begin_inset Formula $\mbox{cm}$
17126 \begin_layout Subsection
17127 Customized Cell/Column Format
17128 \begin_inset CommandInset label
17130 name "sub:Customized-Format"
17138 \begin_layout Plain Layout
17139 Table Customization ! Cell/Column Format
17147 \begin_layout Standard
17148 Calculating the needed width for spanned columns like in section
17149 \begin_inset space ~
17153 \begin_inset CommandInset ref
17155 reference "sub:Multicolumn-Calculations"
17159 is very annoying if you have several tables with multicolumn cells.
17160 To make life easier, you can define a cell/column format in the preamble,
17161 so that it can be used in all tables of the document.
17162 The format is defined with the command
17165 \begin_layout Standard
17170 newcolumntype{name of format}[number of arguments]{commands}
17173 \begin_layout Standard
17174 The format name may only consist of one letter.
17199 are predefined and cannot be used.
17200 But all letters are allowed as capitals.
17203 \begin_layout Standard
17204 \begin_inset VSpace medskip
17210 \begin_layout Standard
17211 For vertically and horizontally centered multicolumn cells with a fixed
17212 width you can define the cell format
17215 \begin_layout Standard
17220 newcolumntype{M}[1]{>{
17227 \begin_layout Standard
17234 avoids the problem of hyphenating the first word, as described in section
17235 \begin_inset space ~
17239 \begin_inset CommandInset ref
17241 reference "sub:Multiple-Lines-in"
17246 Now you can simply enter
17249 \begin_layout Standard
17255 \begin_layout Standard
17256 as LaTeX-argument in the table dialog to create a multicolumn.
17259 \begin_layout Standard
17260 \begin_inset VSpace bigskip
17266 \begin_layout Standard
17267 For cells spanned by a multicolumn cell, you can define the format
17270 \begin_layout Standard
17275 newcolumntype{S}[2]{>{
17280 \begin_inset Newline newline
17287 \begin_layout Plain Layout
17302 \begin_layout Plain Layout
17313 arrayrulewidth)*(1-#2))/#2}}
17316 \begin_layout Standard
17317 This format uses equation
17318 \begin_inset CommandInset ref
17324 to calculate the needed width so that each spanned cell has the same width.
17327 \begin_layout Standard
17331 \begin_layout Standard
17334 S{width of multicolumn cell}{number of spanned columns}
17337 \begin_layout Standard
17338 as LaTeX-argument of the column.
17341 \begin_layout Standard
17342 \begin_inset VSpace bigskip
17348 \begin_layout Standard
17349 For colored columns, you can define
17352 \begin_layout Standard
17357 newcolumntype{K}[1]{>{
17364 \begin_layout Standard
17366 \begin_inset Quotes eld
17370 \begin_inset Quotes erd
17373 at the end creates a column with a flexible width whose text is horizontally
17378 \begin_layout Standard
17384 \begin_layout Standard
17388 \begin_layout Standard
17389 \begin_inset VSpace bigskip
17395 \begin_layout Standard
17397 \begin_inset space ~
17401 \begin_inset CommandInset ref
17403 reference "tab:Table-using-user-defined"
17407 use the LaTeX-arguments
17410 \begin_layout Standard
17416 \begin_layout Standard
17417 for the first column and the multicolumn,
17420 \begin_layout Standard
17426 \begin_layout Standard
17427 for the the last column, and
17430 \begin_layout Standard
17436 \begin_layout Standard
17437 for the cells in the second column.
17440 \begin_layout Standard
17441 \begin_inset Float table
17447 \begin_layout Plain Layout
17448 \begin_inset Caption
17450 \begin_layout Plain Layout
17451 \begin_inset CommandInset label
17453 name "tab:Table-using-user-defined"
17457 Table using user-defined table formats
17465 \begin_layout Plain Layout
17467 \begin_inset Tabular
17468 <lyxtabular version="3" rows="3" columns="4">
17470 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17471 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17472 <column alignment="center" valignment="middle" width="0">
17473 <column alignment="center" valignment="middle" width="0" special="K{red}">
17475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17478 \begin_layout Plain Layout
17479 verylongtablecellword
17484 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17487 \begin_layout Plain Layout
17488 multiple lines multicolumn
17493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17496 \begin_layout Plain Layout
17502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17505 \begin_layout Plain Layout
17513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17516 \begin_layout Plain Layout
17522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17525 \begin_layout Plain Layout
17531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17534 \begin_layout Plain Layout
17540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17543 \begin_layout Plain Layout
17551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17554 \begin_layout Plain Layout
17560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17563 \begin_layout Plain Layout
17569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17572 \begin_layout Plain Layout
17578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17581 \begin_layout Plain Layout
17600 \begin_layout Subsection
17602 \begin_inset CommandInset label
17604 name "sub:Line-Thickness"
17612 \begin_layout Plain Layout
17613 Table Customization ! Line Thickness
17621 \begin_layout Standard
17622 The line thickness for all lines in a table can be adjusted with the length
17630 To set for example a line thickness of 1.5
17631 \begin_inset space \thinspace{}
17635 \begin_inset space ~
17639 \begin_inset CommandInset ref
17641 reference "tab:Table-with-1.5"
17645 , insert the command
17648 \begin_layout Standard
17655 arrayrulewidth}{1.5pt}
17658 \begin_layout Standard
17659 in TeX-Code before the table or table float.
17660 The changed thickness is valid for all following tables.
17661 To use the default value again, set
17668 \begin_inset space \thinspace{}
17671 pt in TeX-Code behind the table or table float.
17674 \begin_layout Standard
17678 \begin_layout Plain Layout
17684 arrayrulewidth}{1.5pt}
17690 \begin_inset Float table
17695 \begin_layout Plain Layout
17696 \begin_inset Caption
17698 \begin_layout Plain Layout
17699 \begin_inset CommandInset label
17701 name "tab:Table-with-1.5"
17706 \begin_inset space \thinspace{}
17717 \begin_layout Plain Layout
17719 \begin_inset Tabular
17720 <lyxtabular version="3" rows="3" columns="3">
17722 <column alignment="center" valignment="top" width="0">
17723 <column alignment="center" valignment="top" width="0">
17724 <column alignment="center" valignment="top" width="0">
17726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17729 \begin_layout Plain Layout
17735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17738 \begin_layout Plain Layout
17744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17747 \begin_layout Plain Layout
17755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17758 \begin_layout Plain Layout
17764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17767 \begin_layout Plain Layout
17773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17776 \begin_layout Plain Layout
17784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17787 \begin_layout Plain Layout
17793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17796 \begin_layout Plain Layout
17802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17805 \begin_layout Plain Layout
17825 \begin_layout Plain Layout
17831 arrayrulewidth}{0.4pt}
17839 \begin_layout Standard
17840 \begin_inset VSpace bigskip
17843 To set the line thickness to 1.5
17844 \begin_inset space \thinspace{}
17847 pt only for horizontal lines, like in Table
17848 \begin_inset space ~
17852 \begin_inset CommandInset ref
17854 reference "tab:Table-with-horizontal"
17858 , insert these commands in TeX-Code before the table or table float:
17861 \begin_layout Standard
17871 \begin_inset Newline newline
17879 \begin_inset Newline newline
17888 arrayrulewidth 1.5pt}
17889 \begin_inset Newline newline
17900 arrayrulewidth 0.4pt}}
17903 \begin_layout Standard
17904 To return to the default line thickness, insert this command in TeX-Code
17905 behind the table or table float:
17908 \begin_layout Standard
17920 \begin_layout Standard
17924 \begin_layout Plain Layout
17935 \begin_layout Plain Layout
17944 \begin_layout Plain Layout
17952 arrayrulewidth 1.5pt}
17955 \begin_layout Plain Layout
17965 arrayrulewidth 0.4pt}}
17971 \begin_inset Float table
17976 \begin_layout Plain Layout
17977 \begin_inset Caption
17979 \begin_layout Plain Layout
17980 \begin_inset CommandInset label
17982 name "tab:Table-with-horizontal"
17987 \begin_inset space \thinspace{}
17990 pt thick horizontal lines
17998 \begin_layout Plain Layout
18000 \begin_inset Tabular
18001 <lyxtabular version="3" rows="3" columns="3">
18003 <column alignment="center" valignment="top" width="0">
18004 <column alignment="center" valignment="top" width="0">
18005 <column alignment="center" valignment="top" width="0">
18007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18010 \begin_layout Plain Layout
18016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18019 \begin_layout Plain Layout
18025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18028 \begin_layout Plain Layout
18036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18039 \begin_layout Plain Layout
18045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18048 \begin_layout Plain Layout
18054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18057 \begin_layout Plain Layout
18065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18068 \begin_layout Plain Layout
18074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18077 \begin_layout Plain Layout
18083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18086 \begin_layout Plain Layout
18106 \begin_layout Plain Layout
18122 \begin_layout Standard
18123 \begin_inset VSpace bigskip
18126 To set the line thickness to 1.5
18127 \begin_inset space \thinspace{}
18130 pt only for vertical lines, create the following column format in the document
18131 preamble, according to the description in section
18132 \begin_inset space ~
18136 \begin_inset CommandInset ref
18138 reference "sub:Customized-Format"
18145 \begin_layout Standard
18150 newcolumntype{V}{!{
18152 vrule width 1.5pt}}
18155 \begin_layout Standard
18157 \begin_inset space ~
18161 \begin_inset CommandInset ref
18163 reference "tab:Table-with-vertical"
18170 \begin_layout Standard
18176 \begin_layout Standard
18177 was used for the last column and
18180 \begin_layout Standard
18186 \begin_layout Standard
18187 for the other columns.
18190 \begin_layout Standard
18191 \begin_inset Float table
18196 \begin_layout Plain Layout
18197 \begin_inset Caption
18199 \begin_layout Plain Layout
18200 \begin_inset CommandInset label
18202 name "tab:Table-with-vertical"
18207 \begin_inset space \thinspace{}
18210 pt thick vertical lines
18218 \begin_layout Plain Layout
18220 \begin_inset Tabular
18221 <lyxtabular version="3" rows="3" columns="3">
18223 <column alignment="center" valignment="top" width="0" special="Vc">
18224 <column alignment="center" valignment="top" width="0" special="Vc">
18225 <column alignment="center" valignment="top" width="0" special="VcV">
18227 <cell alignment="center" valignment="top" topline="true" usebox="none">
18230 \begin_layout Plain Layout
18236 <cell alignment="center" valignment="top" topline="true" usebox="none">
18239 \begin_layout Plain Layout
18245 <cell alignment="center" valignment="top" topline="true" usebox="none">
18248 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" topline="true" usebox="none">
18259 \begin_layout Plain Layout
18265 <cell alignment="center" valignment="top" topline="true" usebox="none">
18268 \begin_layout Plain Layout
18274 <cell alignment="center" valignment="top" topline="true" usebox="none">
18277 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18288 \begin_layout Plain Layout
18294 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18297 \begin_layout Plain Layout
18303 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18306 \begin_layout Plain Layout
18325 \begin_layout Subsection
18330 \begin_layout Plain Layout
18331 Table Customization ! Dashed Lines
18339 \begin_layout Standard
18343 \begin_layout Plain Layout
18353 \begin_inset Note Note
18356 \begin_layout Plain Layout
18357 The following section will only be displayed when the LaTeX-package
18369 \begin_layout Standard
18370 \begin_inset Float table
18376 \begin_layout Plain Layout
18377 \begin_inset Caption
18379 \begin_layout Plain Layout
18380 \begin_inset CommandInset label
18382 name "tab:Table-with-dashed"
18386 Table with dashed lines
18394 \begin_layout Plain Layout
18396 \begin_inset Tabular
18397 <lyxtabular version="3" rows="5" columns="5">
18399 <column alignment="center" valignment="top" width="0">
18400 <column alignment="center" valignment="top" width="0">
18401 <column alignment="center" valignment="top" width="0" special=":c">
18402 <column alignment="center" valignment="top" width="0">
18403 <column alignment="center" valignment="top" width="0">
18405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18408 \begin_layout Plain Layout
18414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18417 \begin_layout Plain Layout
18423 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18426 \begin_layout Plain Layout
18432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18435 \begin_layout Plain Layout
18441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18444 \begin_layout Plain Layout
18452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18455 \begin_layout Plain Layout
18461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18464 \begin_layout Plain Layout
18470 <cell alignment="center" valignment="top" topline="true" usebox="none">
18473 \begin_layout Plain Layout
18479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18482 \begin_layout Plain Layout
18488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18491 \begin_layout Plain Layout
18499 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18502 \begin_layout Plain Layout
18506 \begin_layout Plain Layout
18520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18523 \begin_layout Plain Layout
18529 <cell alignment="center" valignment="top" usebox="none">
18532 \begin_layout Plain Layout
18538 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18541 \begin_layout Plain Layout
18547 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18550 \begin_layout Plain Layout
18558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18561 \begin_layout Plain Layout
18565 \begin_layout Plain Layout
18579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18582 \begin_layout Plain Layout
18588 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18591 \begin_layout Plain Layout
18597 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18600 \begin_layout Plain Layout
18606 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18609 \begin_layout Plain Layout
18617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18620 \begin_layout Plain Layout
18626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18629 \begin_layout Plain Layout
18635 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18638 \begin_layout Plain Layout
18644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18647 \begin_layout Plain Layout
18653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18656 \begin_layout Plain Layout
18675 \begin_layout Standard
18676 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18677 As prerequisite the LaTeX-package
18685 \begin_layout Plain Layout
18686 LaTeX-packages ! arydshln
18691 must be loaded in the document preamble with the command
18694 \begin_layout Standard
18699 usepackage{arydshln}
18702 \begin_layout Standard
18703 To make a vertical line dashed, enter the colon
18704 \begin_inset Quotes eld
18708 \begin_inset Quotes erd
18711 together with the character for the horizontal alignment as LaTeX-argument
18712 in the table cell dialog.
18715 \begin_layout Standard
18716 For a horizontal dashed line add the command
18719 \begin_layout Standard
18727 \begin_layout Standard
18728 in TeX-Code as first element of the first cell in the table row.
18731 \begin_layout Standard
18732 For dashed multicolumn lines use the command
18735 \begin_layout Standard
18740 cdashline{line number
18745 \begin_layout Standard
18746 in TeX-Code as first element of the first cell in the table row.
18747 If you have for example a multicolumn spanning over columns 2 to 4 and
18748 you want to have a dashed line above, add the command
18751 \begin_layout Standard
18759 \begin_layout Standard
18760 as first element of the first cell in the row of the multicolumn.
18763 \begin_layout Standard
18764 \begin_inset VSpace bigskip
18770 \begin_layout Standard
18772 \begin_inset space ~
18776 \begin_inset CommandInset ref
18778 reference "tab:Table-with-dashed"
18783 \begin_inset Quotes eld
18791 \begin_inset Quotes erd
18794 as LaTeX-argument of the third column.
18795 The TeX-Code command
18801 was inserted to the first cell of the third row and the the TeX-Code command
18802 \begin_inset Newline newline
18811 was inserted to the first cell of the fourth row.
18814 \begin_layout Standard
18815 \begin_inset Note Greyedout
18818 \begin_layout Plain Layout
18823 The used LaTeX-package
18827 is apparently not compatible with the LaTeX-package
18835 \begin_layout Plain Layout
18836 LaTeX-packages ! colortbl
18841 that is used for colored tables in section
18842 \begin_inset space ~
18846 \begin_inset CommandInset ref
18848 reference "sec:Colored-Tables"
18853 That means colored tables cannot have dashed lines.
18861 \begin_layout Standard
18865 \begin_layout Plain Layout
18875 \begin_inset Note Note
18878 \begin_layout Plain Layout
18879 The following will be displayed when the LaTeX-package
18891 \begin_layout Standard
18892 You need to install the package
18896 to see the content of this section in the output.
18899 \begin_layout Standard
18903 \begin_layout Plain Layout
18915 \begin_layout Chapter
18920 \begin_layout Plain Layout
18927 \begin_inset CommandInset label
18936 \begin_layout Section
18938 \begin_inset CommandInset label
18940 name "sec:FloatIntroduction"
18948 \begin_layout Plain Layout
18949 Floats ! Introduction
18957 \begin_layout Standard
18958 A float is a block of text associated with some sort of label, which doesn't
18959 have a fixed location.
18961 \begin_inset Quotes eld
18965 \begin_inset Quotes erd
18968 forward or backward a page or two, to wherever it fits best.
18976 \begin_inset space ~
18981 are also floats, because they can float to the next page when there are
18982 too many notes at the page.
18985 \begin_layout Standard
18986 Floats allow a high quality layout.
18987 Images and tables can evenly be spread to the pages to avoid white space
18988 and pages without text.
18989 As the floating often destroys the context between the text and the image/table
18990 , every float can be referenced in the text.
18991 Floats are therefore numbered.
18992 Referencing is described in section
18993 \begin_inset space ~
18997 \begin_inset CommandInset ref
18999 reference "sec:Referencing-Floats"
19006 \begin_layout Standard
19007 To insert a float, use the menu
19009 Insert\SpecialChar \menuseparator
19017 inset, a box with a label.
19018 The label will automatically be translated to the document language in
19020 Behind the label you can insert the caption text.
19021 The image or table is inserted above or below the caption in a separate
19022 paragraph within the float.
19023 More about the caption placement is described in section
19024 \begin_inset space ~
19028 \begin_inset CommandInset ref
19030 reference "sec:Caption-Placement"
19035 To keep your LyX-document readable, you can open and close the float box
19036 by left-clicking on the box label.
19037 A closed float box looks like this:
19038 \begin_inset Graphics
19039 filename clipart/floatQt4.png
19041 scaleBeforeRotation
19045 -- a gray button with a red label.
19048 \begin_layout Standard
19049 It is recommended to insert floats as a separate paragraph to avoid possible
19050 LaTeX-errors that can occur when the surrounding text is specially formatted.
19053 \begin_layout Standard
19054 Existing figures or tables can be put into a float by marking them and then
19055 pressing the corresponding toolbar button for a new float.
19058 \begin_layout Section
19062 \begin_layout Standard
19063 Besides figure and table floats that are described in section
19064 \begin_inset space ~
19068 \begin_inset CommandInset ref
19070 reference "sec:Figure-Floats"
19075 \begin_inset CommandInset ref
19077 reference "sec:Table-Floats"
19081 , respectively, LyX offers the float types
19088 \begin_inset space ~
19092 \begin_inset space ~
19100 \begin_layout Subsection
19105 \begin_layout Plain Layout
19106 Floats ! Algorithms
19112 \begin_inset CommandInset label
19114 name "sub:Algorithm-Floats"
19121 \begin_layout Standard
19122 \begin_inset Float algorithm
19128 \begin_layout Plain Layout
19129 \begin_inset Caption
19131 \begin_layout Plain Layout
19132 \begin_inset CommandInset label
19134 name "alg:Example-Algorithm-float"
19138 Example Algorithm float
19146 \begin_layout LyX-Code
19148 \begin_inset Newline newline
19151 Sum:= Sum + A(I); /*comment*/
19152 \begin_inset Newline newline
19156 \begin_inset VSpace -4mm
19167 \begin_layout Standard
19168 This float type is inserted with the menu
19170 Insert\SpecialChar \menuseparator
19171 Floats\SpecialChar \menuseparator
19175 It is used for program codes and descriptions of algorithms.
19176 A possible environment for algorithms is the
19180 , described in LyX's
19186 \begin_inset space ~
19190 \begin_inset CommandInset ref
19192 reference "alg:Example-Algorithm-float"
19196 is an example of an algorithm float where -4
19197 \begin_inset space \thinspace{}
19200 mm vertical space was added at the end of the float to have the bottom rule
19201 exactly below the last text line.
19204 \begin_layout Standard
19205 The float label is not automatically translated into the document language.
19206 If your document is not in English, you have to do this manually by adding
19207 the following line to the document preamble
19212 \begin_layout Standard
19217 floatname{algorithm}{your
19218 \begin_inset space ~
19224 \begin_layout Standard
19228 \begin_inset space ~
19234 \begin_inset Quotes eld
19242 \begin_inset Quotes erd
19248 \begin_layout Standard
19249 To insert the list of algorithms you can in this case not use the menu
19251 Insert\SpecialChar \menuseparator
19253 \begin_inset space \thinspace{}
19257 \begin_inset space \thinspace{}
19260 TOC\SpecialChar \menuseparator
19263 when your document is an English one.
19264 For non-English documents, use this command in TeX-Code instead:
19267 \begin_layout Standard
19272 listof{algorithm}{your
19273 \begin_inset space ~
19279 \begin_layout Standard
19283 \begin_inset space ~
19289 \begin_inset Quotes eld
19297 \begin_inset Quotes erd
19303 \begin_layout Standard
19304 Algorithm floats are not by default numbered in the scheme
19305 \begin_inset Quotes eld
19309 \begin_inset Quotes erd
19312 like it is the case for table and figure floats in many document-classes.
19313 To number algorithm floats in the same scheme, add this command to your
19317 \begin_layout Standard
19322 numberwithin{algorithm}{chapter}
19325 \begin_layout Standard
19326 To be able to use the command
19335 \begin_inset space ~
19340 in the document settings the option
19343 \begin_inset space ~
19347 \begin_inset space ~
19351 \begin_inset space ~
19359 \begin_layout Subsection
19364 \begin_layout Plain Layout
19365 Floats ! Text Wrap Floats
19371 \begin_inset CommandInset label
19373 name "sub:floatflt-wrap-float"
19380 \begin_layout Standard
19381 \begin_inset Wrap figure
19388 \begin_layout Plain Layout
19389 \begin_inset Graphics
19390 filename clipart/mobius.eps
19392 scaleBeforeRotation
19393 rotateOrigin center
19400 \begin_layout Plain Layout
19401 \begin_inset Caption
19403 \begin_layout Plain Layout
19404 \begin_inset CommandInset label
19406 name "fig:This-is-a"
19410 This is a wrapped figure, and this is the brilliant caption that describes
19412 \begin_inset VSpace medskip
19425 This float type is used if you want to
19426 \begin_inset Quotes eld
19430 \begin_inset Quotes erd
19433 text around a figure so that it only occupies some fraction of the column
19435 It can be inserted using the menu
19437 Insert\SpecialChar \menuseparator
19438 Floats\SpecialChar \menuseparator
19440 \begin_inset space ~
19444 \begin_inset space ~
19449 if the LaTeX-package
19457 \begin_layout Plain Layout
19458 LaTeX-packages ! wrapfig
19462 \begin_layout Plain Layout
19470 \begin_layout Plain Layout
19481 \begin_layout Plain Layout
19497 \begin_layout Plain Layout
19508 \begin_layout Plain Layout
19524 \begin_layout Plain Layout
19525 Installing a LaTeX-package is explained it in the
19528 \begin_inset space ~
19538 The width and placement of the float is adjusted by right-clicking on the
19541 \begin_inset space ~
19545 \begin_inset CommandInset ref
19547 reference "fig:This-is-a"
19551 is an example text wrap float with a width of 40
19552 \begin_inset space \thinspace{}
19559 \begin_layout Plain Layout
19560 Available units are explained in appendix
19561 \begin_inset space ~
19565 \begin_inset CommandInset ref
19567 reference "cha:Units-available-in"
19576 Some space was added under the caption to separate it better from the surroundi
19580 \begin_layout Standard
19585 also supports table wrap floats, but they are not yet supported by LyX.
19586 If you need this, read the documentation of
19591 \begin_inset CommandInset citation
19600 \begin_layout Standard
19601 \begin_inset Note Greyedout
19604 \begin_layout Plain Layout
19610 \begin_inset space ~
19613 wrap float floats are fragile! E.
19614 \begin_inset space \thinspace{}
19618 \begin_inset space ~
19621 having a figure too close to the bottom of the page can mess things up in
19622 the way that the float doesn't appear in the output or that it is placed
19623 over some other text.
19631 \begin_layout Standard
19635 \begin_layout Itemize
19636 Wrap floats should not be placed in paragraphs that run over a page break.
19637 That means that wrap floats should better be inserted to the exact place
19638 when the document is nearly finished and you are able to estimate where
19639 page breaks will appear.
19642 \begin_layout Itemize
19643 Wrap floats should either be placed in an own paragraph before the paragraph
19644 where they should wrap into or within a paragraph.
19647 \begin_layout Itemize
19648 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19649 there is a text paragraph between them as separator.
19652 \begin_layout Itemize
19653 Wrap floats are not allowed in section headings or tables.
19656 \begin_layout Section
19658 \begin_inset CommandInset label
19660 name "sec:Float-Numbering"
19668 \begin_layout Plain Layout
19677 \begin_layout Standard
19678 Floats are usually numbered either independent from the sections the floats
19679 are in, or in the scheme
19680 \begin_inset Quotes eld
19684 \begin_inset Quotes erd
19688 \begin_inset Quotes eld
19692 \begin_inset Quotes erd
19696 This depends on the used document class.
19699 \begin_layout Standard
19700 To change the section independent numbering, you can use this command in
19701 the document preamble:
19704 \begin_layout Standard
19716 \begin_layout Standard
19723 is the command that prints the table number, for figure floats, the command
19737 prints in the command above the table number as small roman number.
19740 \begin_layout Standard
19741 To change the numbering scheme for example to
19742 \begin_inset Quotes eld
19746 \begin_inset Quotes erd
19749 , use this command in the preamble:
19752 \begin_layout Standard
19757 numberwithin{table}{subsection}
19760 \begin_layout Standard
19761 To be able to use the command
19770 \begin_inset space ~
19775 in the document settings the option
19778 \begin_inset space ~
19782 \begin_inset space ~
19786 \begin_inset space ~
19794 \begin_layout Standard
19795 Please also have a look at section
19796 \begin_inset space ~
19800 \begin_inset CommandInset ref
19802 reference "sub:Footnote-Numbering"
19806 for the details and important notes about the numbering commands.
19809 \begin_layout Section
19811 \begin_inset CommandInset label
19813 name "sec:Referencing-Floats"
19821 \begin_layout Plain Layout
19822 Floats ! References
19831 \begin_layout Plain Layout
19840 \begin_layout Standard
19841 To reference a float, insert a label into its caption using the menu
19843 Insert\SpecialChar \menuseparator
19846 or the toolbar button
19847 \begin_inset Graphics
19848 filename ../images/label-insert.png
19850 scaleBeforeRotation
19855 A grey label box like this one:
19856 \begin_inset Graphics
19857 filename clipart/labelQt4.png
19859 scaleBeforeRotation
19863 will be inserted and the label window pops up asking for the label text.
19864 LyX offers as text the first words of the caption with a prefix.
19865 The prefix depends on the float type, e.
19866 \begin_inset space \thinspace{}
19870 \begin_inset space ~
19873 for figure floats the prefix will be "
19880 \begin_layout Standard
19881 The label is used as anchor and name for the reference.
19882 You can refer to the label using the menu
19884 Insert\SpecialChar \menuseparator
19887 or the toolbar button
19888 \begin_inset Graphics
19889 filename ../images/dialog-show-new-inset_ref.png
19891 scaleBeforeRotation
19896 A grey cross-reference box like this one:
19897 \begin_inset Graphics
19898 filename clipart/referenceQt4.png
19900 scaleBeforeRotation
19904 will be inserted and the cross-reference window appear showing all labels
19906 If you have multiple LyX-documents opened, choose the one you are working
19907 on from the drop-list at the top of the dialog.
19908 You can now sort the labels alphabetically and then choose one.
19909 At the position of the cross-reference box the float number will appear
19913 \begin_layout Standard
19914 It is recommended to use a protected space between the cross-reference name
19915 and its number to avoid line breaks between them.
19916 If a cross-reference refers to a non-existing label, you will see two question
19917 marks in the output instead of the reference.
19920 \begin_layout Standard
19921 You can change labels at any time by clicking on the label box.
19922 References to the changed label will automatically change its link to the
19923 new label text, so that you don't need to take care about this.
19926 \begin_layout Standard
19930 \begin_inset space ~
19934 \begin_inset space ~
19939 in the cross-reference window sets the cursor before the referred label.
19940 The button text changes then to Go
19941 \begin_inset space ~
19944 Back and you can use it to set the cursor back to the cross-reference.
19945 Right-clicking on a cross-reference box also sets the cursor before the
19946 referenced label but without a possibility to go back.
19949 \begin_layout Subsection
19950 Cross-Reference Formats
19951 \begin_inset CommandInset label
19953 name "sub:Cross-Reference-Formats"
19961 \begin_layout Plain Layout
19962 References ! Formats
19970 \begin_layout Standard
19971 There are six varieties of cross-references:
19974 \begin_layout Description
19975 <reference>: prints the float number, this is the default:
19976 \begin_inset CommandInset ref
19978 reference "fig:Two-distorted-images"
19985 \begin_layout Description
19986 (<reference>): prints the float number within two parentheses, this is the
19987 style normally used to reference formulas, especially when the reference
19989 \begin_inset Quotes eld
19993 \begin_inset Quotes erd
19997 \begin_inset CommandInset ref
20006 \begin_layout Description
20007 <page>: prints the page number: Page
20008 \begin_inset space ~
20012 \begin_inset CommandInset ref
20013 LatexCommand pageref
20014 reference "fig:Two-distorted-images"
20021 \begin_layout Description
20023 \begin_inset space ~
20027 \begin_inset space ~
20030 <page>: prints the text "on page" and the page number:
20031 \begin_inset CommandInset ref
20032 LatexCommand vpageref
20033 reference "fig:Two-distorted-images"
20040 \begin_layout Description
20042 \begin_inset space ~
20046 \begin_inset space ~
20050 \begin_inset space ~
20053 <page>: prints the float number, the text "on page", and the page number:
20055 \begin_inset CommandInset ref
20057 reference "fig:Two-distorted-images"
20064 \begin_layout Description
20066 \begin_inset space ~
20069 reference: prints a self defined cross-reference format.
20071 \begin_inset Note Greyedout
20074 \begin_layout Plain Layout
20079 This feature is only available when you have the LaTeX-package
20091 \begin_layout Standard
20092 Note that the style <page> won't print the page number if the label is on
20093 the previous, the same, or the next page.
20095 \begin_inset space \thinspace{}
20099 \begin_inset space ~
20103 \begin_inset Quotes eld
20111 \begin_inset Quotes erd
20117 \begin_layout Standard
20118 The number and current page of the referred document part in the output,
20119 is automatically calculated by LaTeX.
20120 The varieties are adjusted in the field
20124 of the cross-reference window, that appear when you click on the cross-referenc
20128 \begin_layout Subsection
20129 Automatic Reference Naming
20133 \begin_layout Plain Layout
20134 References ! Automatic Reference Naming
20142 \begin_layout Standard
20147 provides a very useful feature that cross-references automatically include
20148 the name of the referenced floats (or text parts like sections).
20149 You save to write e.
20150 \begin_inset space \thinspace{}
20154 \begin_inset space ~
20158 \begin_inset Quotes eld
20162 \begin_inset Quotes erd
20165 before every reference box.
20166 To get this automatic reference naming, you have to load the LaTeX-package
20175 \begin_layout Plain Layout
20176 LaTeX-packages ! hyperref
20181 in the document preamble with
20184 \begin_layout Standard
20189 usepackage[pdfborder={0 0 0}]{hyperref}
20190 \begin_inset Newline newline
20206 \begin_layout Standard
20211 is used to link cross-references in the DVI- and PDF-output, this means
20212 that the reader of your document will be able to click on a table of content
20213 (TOC) entry or on a reference and he will be shown the referenced document
20219 also creates PDF-bookmarks for every section of your document to make it
20220 easier for readers to navigate through the document.
20221 This is also used in this document but when you have a look in the document
20222 preamble you will find various options in the load command of
20227 To learn more about the
20231 package, we refer to its documentation
20232 \begin_inset CommandInset citation
20241 \begin_layout Standard
20242 \begin_inset Note Greyedout
20245 \begin_layout Plain Layout
20250 Automatic reference naming cannot be used when you use cross-references
20254 \begin_inset space ~
20259 style, described in section
20260 \begin_inset space ~
20264 \begin_inset CommandInset ref
20266 reference "sub:Cross-Reference-Formats"
20278 \begin_layout Subsection
20280 \begin_inset CommandInset label
20282 name "sub:Reference-Position"
20290 \begin_layout Plain Layout
20291 References ! Reference Position
20299 \begin_layout Standard
20308 \begin_layout Plain Layout
20309 LaTeX-packages ! hyperref
20314 to link cross-references in the output, you will see that clicking on an
20315 image float reference jumps to the image label.
20316 The caption will be the first text part on the screen, so that you cannot
20317 see the image without scrolling.
20318 This is because the reference link anchor is placed at the position of
20320 With the use of the package
20328 \begin_layout Plain Layout
20329 LaTeX-packages ! hypcap
20334 , which is part of the LaTeX-package
20342 \begin_layout Plain Layout
20343 LaTeX-packages ! oberdiek
20348 , the link anchor is placed at the beginning of a float.
20349 To use this feature for figure floats, load
20353 in the document preamble with the line
20356 \begin_layout Standard
20361 usepackage[figure]{hypcap}
20364 \begin_layout Standard
20369 for all floats but this isn't recommended for stability reasons.
20370 For more informations, have a look at
20375 \begin_inset CommandInset citation
20384 \begin_layout Standard
20385 \begin_inset Note Greyedout
20388 \begin_layout Plain Layout
20397 must be loaded after
20401 in the document preamble.
20409 \begin_layout Standard
20410 \begin_inset Note Greyedout
20413 \begin_layout Plain Layout
20422 has no effect for references to subfigures.
20430 \begin_layout Section
20432 \begin_inset CommandInset label
20434 name "sec:Float-Placement"
20442 \begin_layout Plain Layout
20451 \begin_layout Standard
20452 Right-clicking on a float-box opens a dialog where you can alter the placement
20453 options that LaTeX uses for positioning the float.
20454 \begin_inset Newline newline
20460 \begin_inset space ~
20465 is only useful for two-column documents: If you select it, the float will
20466 span across both columns on the page instead of being confined to just
20468 \begin_inset Newline newline
20474 \begin_inset space ~
20479 is used to rotate floats, see section
20480 \begin_inset CommandInset ref
20482 reference "sec:Rotated-Floats"
20489 \begin_layout Standard
20490 You can use one ore more of the following options in the float dialog to
20491 set the placement for a particular float when you uncheck the option
20494 \begin_inset space ~
20498 \begin_inset space ~
20506 \begin_layout Description
20508 \begin_inset space ~
20512 \begin_inset space ~
20515 possible try to place the float on the position where it is inserted
20518 \begin_layout Description
20520 \begin_inset space ~
20524 \begin_inset space ~
20527 page try to place the float on the top of the current page
20530 \begin_layout Description
20532 \begin_inset space ~
20536 \begin_inset space ~
20539 page try to place the float on the bottom of the current page
20542 \begin_layout Description
20544 \begin_inset space ~
20548 \begin_inset space ~
20551 floats try to place the float on an own page
20554 \begin_layout Standard
20555 The order of the above option is
20560 That means, if you use the default placement, LaTeX will first try out
20564 \begin_inset space ~
20568 \begin_inset space ~
20576 \begin_inset space ~
20580 \begin_inset space ~
20585 , and then the others.
20586 If you don't use the default, LaTeX will try only the checked options but
20588 If none of the 4 placements are possible the procedure is internally repeated
20589 but it is tried to put the float on the following page.
20592 \begin_layout Standard
20593 By default, each option has its own rules:
20596 \begin_layout Labeling
20597 \labelwidthstring 00.00.0000
20601 \begin_inset space ~
20605 \begin_inset space ~
20610 only floats occupying less than 70
20611 \begin_inset space \thinspace{}
20614 % of the page can be placed at the top of a page (
20623 \begin_layout Labeling
20624 \labelwidthstring 00.00.0000
20628 \begin_inset space ~
20632 \begin_inset space ~
20637 : only floats occupying less than 30
20638 \begin_inset space \thinspace{}
20641 % of the page can be placed at the bottom of a page.
20651 \begin_layout Labeling
20652 \labelwidthstring 00.00.0000
20656 \begin_inset space ~
20660 \begin_inset space ~
20665 : only if more than 50
20666 \begin_inset space \thinspace{}
20669 % of the page are occupied by floats, several floats can be set together
20680 \begin_layout Standard
20681 If you don't like these rules, you can ignore them by using the additional
20685 \begin_inset space ~
20689 \begin_inset space ~
20695 \begin_inset Newline newline
20698 You can also redefine the rules with LaTeX-commands that are given in parenthese
20699 s behind the rules description above.
20700 To increase for example the often too small default of the bottom-rule
20702 \begin_inset space \thinspace{}
20705 % of the page, add this line to your document preamble:
20708 \begin_layout Standard
20715 bottomfraction}{0.5}
20718 \begin_layout Standard
20719 Sometimes you might need, under all circumstances, a float to be placed
20720 exactly at the position where it is inserted.
20721 For this case you can use the option
20724 \begin_inset space ~
20730 Use this option very rarely and only if the document is nearly ready to
20732 Because the float is then no longer able to
20733 \begin_inset Quotes eld
20737 \begin_inset Quotes erd
20740 when you change your document and this will often destroy the page layout.
20743 \begin_layout Standard
20744 There are no placement options for text wrap floats, because they are always
20745 surrounded by the text of a certain paragraph.
20746 \begin_inset VSpace bigskip
20752 \begin_layout Standard
20753 Sometimes you have the problem that a float is placed at the top of a page
20754 while its corresponding section starts at the middle of the page, so that
20755 the reader could think the float is part of the previous section.
20756 To avoid this the LaTeX-command
20763 It suppresses a given float placement for the page where it is inserted
20764 and can therefore be used to avoid that floats could be set before a section
20766 To get this, add these commands to your document preamble:
20769 \begin_layout Standard
20779 \begin_inset Newline newline
20793 \begin_layout Standard
20794 You can define the same for all section headings, like chapters and subsections.
20795 This definition is not recommended to be used for small text parts like
20796 subsubsections because LaTeX may then have problems to find a suitable
20800 \begin_layout Standard
20801 \begin_inset VSpace bigskip
20804 In some cases it is required to have all figures/tables at the end of the
20806 For this purpose the LaTeX-package
20814 \begin_layout Plain Layout
20815 LaTeX-packages ! endfloat
20821 It puts all figure and table floats at the end of the document into own
20823 At the original float position a text hint like
20824 \begin_inset Quotes eld
20830 \begin_inset space ~
20836 \begin_inset Quotes erd
20840 The endfloat-package is loaded in the preamble with the line
20843 \begin_layout Standard
20848 usepackage[options]{endfloat}
20851 \begin_layout Standard
20852 There are various package options to format the created figure/table sections.
20853 For more information we refer to the
20858 \begin_inset CommandInset citation
20865 \begin_inset Newline newline
20869 \begin_inset Note Greyedout
20872 \begin_layout Plain Layout
20877 doesn't provide an automatic translation for the text hint, you have to
20878 do this manually, see section
20879 \begin_inset space ~
20883 \begin_inset CommandInset citation
20895 \begin_inset Newline newline
20899 \begin_inset Note Greyedout
20902 \begin_layout Plain Layout
20907 There is currently a bug in
20911 when the caption contains a German
20912 \begin_inset Quotes eld
20916 \begin_inset Quotes erd
20920 Use in this case the command
20921 \begin_inset Quotes eld
20931 \begin_inset Quotes erd
20934 in TeX-Code instead of
20935 \begin_inset Quotes eld
20939 \begin_inset Quotes erd
20950 \begin_layout Standard
20951 \begin_inset VSpace bigskip
20954 For more details about float placements, have a look at LaTeX books,
20955 \begin_inset CommandInset citation
20957 key "latexcompanion,latexguide,latexbook"
20964 \begin_layout Section
20966 \begin_inset CommandInset label
20968 name "sec:Rotated-Floats"
20976 \begin_layout Plain Layout
20985 \begin_layout Standard
20986 Especially for wide tables you might have floats rotated.
20987 To rotate a whole float including the caption, right-click on the float-box
20991 \begin_inset space ~
20999 \begin_layout Standard
21000 Rotated floats are always placed on its own page (or column, when you have
21001 a two-column document).
21002 They are rotated so that you can read them from the outside margin.
21003 To force a certain rotation direction for all pages, you can add either
21012 to the document class options.
21015 \begin_layout Standard
21016 Referencing rotated floats is the same like for normal floats, the caption
21017 format is also the same: Table
21018 \begin_inset space ~
21022 \begin_inset CommandInset ref
21024 reference "tab:Rotated-table"
21028 is an example of a rotated table float.
21031 \begin_layout Standard
21032 \begin_inset Note Greyedout
21035 \begin_layout Plain Layout
21040 Not all DVI-viewers are able to display rotated floats.
21048 \begin_layout Standard
21049 \begin_inset Float table
21054 \begin_layout Plain Layout
21055 \begin_inset Caption
21057 \begin_layout Plain Layout
21058 \begin_inset CommandInset label
21060 name "tab:Rotated-table"
21072 \begin_layout Plain Layout
21074 \begin_inset Tabular
21075 <lyxtabular version="3" rows="1" columns="5">
21077 <column alignment="center" valignment="top" width="0">
21078 <column alignment="center" valignment="top" width="0">
21079 <column alignment="center" valignment="top" width="0">
21080 <column alignment="center" valignment="top" width="0">
21081 <column alignment="center" valignment="top" width="0">
21083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21086 \begin_layout Plain Layout
21092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21095 \begin_layout Plain Layout
21101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21104 \begin_layout Plain Layout
21110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21113 \begin_layout Plain Layout
21119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21122 \begin_layout Plain Layout
21141 \begin_layout Section
21142 Floats Side by Side
21146 \begin_layout Plain Layout
21147 Floats ! Side by side
21155 \begin_layout Standard
21156 To place floats side by side, like for Figure
21157 \begin_inset space ~
21161 \begin_inset CommandInset ref
21163 reference "fig:Float-left"
21168 \begin_inset CommandInset ref
21170 reference "fig:Float-right"
21179 In it two minipage boxes are inserted.
21183 \begin_layout Plain Layout
21184 Minipages are explained in section
21185 \begin_inset space ~
21189 \begin_inset CommandInset ref
21191 reference "sec:Minipages"
21200 The width is set to 45
21201 \begin_inset space \thinspace{}
21205 \begin_inset space \thinspace{}
21208 column% and the box alignment to
21213 The minipage boxes contain the image and the caption in the same way as
21214 they are in a float.
21215 The only difference is that the image unit
21218 \begin_inset space ~
21222 \begin_inset space ~
21227 is now calculated according to the width of the minipage boxes.
21230 \begin_layout Standard
21231 \begin_inset Float figure
21236 \begin_layout Plain Layout
21237 \begin_inset Box Frameless
21246 height_special "totalheight"
21249 \begin_layout Plain Layout
21251 \begin_inset Graphics
21252 filename clipart/mobius.eps
21255 scaleBeforeRotation
21262 \begin_layout Plain Layout
21263 \begin_inset Caption
21265 \begin_layout Plain Layout
21266 \begin_inset CommandInset label
21268 name "fig:Float-left"
21272 Float on the left side.
21283 \begin_inset space \hfill{}
21287 \begin_inset Box Frameless
21296 height_special "totalheight"
21299 \begin_layout Plain Layout
21301 \begin_inset Graphics
21302 filename clipart/platypus.eps
21305 scaleBeforeRotation
21312 \begin_layout Plain Layout
21313 \begin_inset Caption
21315 \begin_layout Plain Layout
21316 \begin_inset CommandInset label
21318 name "fig:Float-right"
21322 Float on the right side.
21335 \begin_layout Plain Layout
21344 \begin_layout Section
21349 \begin_layout Plain Layout
21350 Caption ! Formatting
21359 \begin_layout Plain Layout
21360 Floats ! Caption Formatting
21369 \begin_layout Plain Layout
21370 LaTeX-packages ! caption
21376 \begin_inset CommandInset label
21378 name "sec:Caption-Formatting"
21385 \begin_layout Standard
21390 environment is the default paragraph environment for
21395 On the LyX screen captions appear as label, e.
21396 \begin_inset space \thinspace{}
21400 \begin_inset space ~
21404 \begin_inset Quotes eld
21412 \begin_inset Quotes erd
21415 followed by the caption text.
21417 \begin_inset Quotes eld
21421 \begin_inset Quotes erd
21424 is the actual reference number.
21425 By default the label and the number are in the same font as the caption
21426 text and a colon follows the number to divide the label from the text.
21427 This caption format is not suitable for all document formats.
21431 \begin_layout Standard
21432 To change the default caption format, load the LaTeX-package
21440 \begin_layout Plain Layout
21441 LaTeX-packages ! caption
21446 in the document preamble with this line:
21449 \begin_layout Standard
21454 usepackage[format definition]{caption}
21457 \begin_layout Standard
21458 To have for example the label and the number in sans-serif bold font and
21459 the table captions always above the table like in this document, use the
21463 \begin_layout Standard
21468 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21471 \begin_layout Standard
21472 You can also define different caption formats for the different float types.
21473 In this case load the
21477 package without format specific options and define the different formats
21478 with the help of the command
21481 \begin_layout Standard
21486 captionsetup[float type]{format definition}
21489 \begin_layout Standard
21490 in the document preamble.
21491 For example the caption formats of Figure
21492 \begin_inset space ~
21496 \begin_inset CommandInset ref
21498 reference "fig:This-is-an-fig"
21503 \begin_inset space ~
21507 \begin_inset CommandInset ref
21509 reference "tab:This-is-an-tab"
21513 can be created using these commands in the document preamble:
21516 \begin_layout Standard
21521 usepackage[tableposition=top]{caption}
21524 \begin_inset Newline newline
21531 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21532 \begin_inset Newline newline
21539 \begin_layout Plain Layout
21547 captionsetup[figure]
21555 \begin_inset Newline newline
21560 captionsetup[table]{labelfont={bf,sf}}
21563 \begin_layout Standard
21564 \begin_inset Note Greyedout
21567 \begin_layout Plain Layout
21576 has no effect when a
21584 \begin_layout Plain Layout
21585 LaTeX-packages ! koma-script
21590 document class is used.
21591 In this case the document class option
21603 \begin_layout Standard
21604 For more information about the package
21608 we refer to its documentation
21609 \begin_inset CommandInset citation
21611 key "caption,caption-de"
21618 \begin_layout Standard
21619 To change the label name from e.g.
21621 \begin_inset Quotes eld
21625 \begin_inset Quotes erd
21629 \begin_inset Quotes eld
21633 \begin_inset Quotes erd
21636 use this preamble command:
21639 \begin_layout Standard
21646 fnum@figure}{Image~
21651 \begin_layout Standard
21658 inserts the figure number and
21661 \begin_inset Quotes eld
21667 \begin_inset Quotes erd
21670 creates a protected space.
21673 \begin_layout Standard
21674 \begin_inset VSpace bigskip
21685 \begin_layout Plain Layout
21686 LaTeX-packages ! koma-script
21693 article (koma-script)
21701 letter (koma-script)
21705 report (koma-script)
21708 \begin_inset space \thinspace{}
21711 ), you can alternatively to the
21719 's built-in command
21726 For example, to have the caption label in bold, add this command to your
21730 \begin_layout Standard
21735 setkomafont{captionlabel}{
21740 \begin_layout Standard
21741 For more information about
21752 \begin_inset CommandInset citation
21761 \begin_layout Standard
21765 \begin_layout Plain Layout
21769 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21776 \begin_inset Note Note
21779 \begin_layout Plain Layout
21780 The caption format is changed only for this example.
21788 \begin_layout Standard
21789 \begin_inset Float figure
21795 \begin_layout Plain Layout
21797 \begin_inset Graphics
21798 filename clipart/mobius.eps
21801 scaleBeforeRotation
21808 \begin_layout Plain Layout
21809 \begin_inset Caption
21811 \begin_layout Plain Layout
21812 \begin_inset CommandInset label
21814 name "fig:This-is-an-fig"
21818 This is an example figure caption that is longer than one line to show the
21819 different caption format.
21820 Here a self-defined caption format is used.
21833 \begin_layout Standard
21837 \begin_layout Plain Layout
21841 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21850 \begin_layout Standard
21851 \begin_inset Float table
21857 \begin_layout Plain Layout
21858 \begin_inset Caption
21860 \begin_layout Plain Layout
21861 \begin_inset CommandInset label
21863 name "tab:This-is-an-tab"
21867 This is an example table caption that is longer than one line to show the
21868 different caption format.
21869 Here the standard caption format for tables in this document is used.
21877 \begin_layout Plain Layout
21879 \begin_inset Tabular
21880 <lyxtabular version="3" rows="1" columns="5">
21882 <column alignment="center" valignment="top" width="0">
21883 <column alignment="center" valignment="top" width="0">
21884 <column alignment="center" valignment="top" width="0">
21885 <column alignment="center" valignment="top" width="0">
21886 <column alignment="center" valignment="top" width="0">
21888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21900 \begin_layout Plain Layout
21906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21909 \begin_layout Plain Layout
21915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21918 \begin_layout Plain Layout
21924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21927 \begin_layout Plain Layout
21946 \begin_layout Section
21951 \begin_layout Plain Layout
21952 Caption ! Placement
21961 \begin_layout Plain Layout
21962 Floats ! Caption Placement
21968 \begin_inset CommandInset label
21970 name "sec:Caption-Placement"
21977 \begin_layout Standard
21978 The common caption placement rule is:
21981 \begin_layout Description
21982 Figure: Caption is set below the figure
21985 \begin_layout Description
21986 Table: Caption is set above the table
21989 \begin_layout Standard
21990 Having the caption above the table is unfortunately not supported in LaTeX's
21992 That means if you are using the document classes
22008 there will be no space between the caption and the table.
22009 To insert the needed space, add the following option to the load command
22010 of the LaTeX-package
22014 in your document preamble
22018 \begin_layout Plain Layout
22020 \begin_inset space ~
22024 \begin_inset CommandInset ref
22026 reference "sec:Caption-Formatting"
22030 for more information of the package
22042 \begin_layout Standard
22048 \begin_layout Standard
22057 \begin_layout Plain Layout
22058 LaTeX-packages ! koma-script
22065 article (koma-script)
22073 letter (koma-script)
22077 report (koma-script)
22080 \begin_inset space \thinspace{}
22083 ), you can alternatively to the
22087 package set the document class option
22094 \begin_layout Standard
22095 \begin_inset VSpace bigskip
22098 It is also possible to set the caption beside a figure or table.
22099 To get this the LaTeX-package
22107 \begin_layout Plain Layout
22108 LaTeX-packages ! sidecap
22113 has to be loaded in the document preamble with the line
22116 \begin_layout Standard
22121 usepackage[option]{sidecap}
22124 \begin_layout Standard
22125 If you set no option, the caption is placed on the side of the outer page
22126 margin -- to the right on odd pages, to the left on even pages.
22127 You can change the placement to inner margin with the option
22132 To force the placement always to the right or left, use the option
22143 \begin_layout Standard
22147 \begin_layout Plain Layout
22157 \begin_inset Note Note
22160 \begin_layout Plain Layout
22161 The following section will only be displayed when the LaTeX-package
22173 \begin_layout Standard
22174 To place in LyX the caption of a float on the side, it is necessary to add
22175 these commands to the document preamble:
22178 \begin_layout Standard
22184 \begin_layout Standard
22192 \begin_inset Newline newline
22199 \begin_layout Plain Layout
22215 \begin_inset Newline newline
22222 \begin_layout Plain Layout
22238 \begin_inset Newline newline
22245 \begin_layout Plain Layout
22256 renewenvironment{table}{
22263 \begin_layout Standard
22271 \begin_inset Newline newline
22278 \begin_layout Plain Layout
22294 \begin_inset Newline newline
22301 \begin_layout Plain Layout
22319 \begin_layout Standard
22327 \begin_inset Newline newline
22334 \begin_layout Plain Layout
22350 \begin_inset Newline newline
22357 \begin_layout Plain Layout
22373 \begin_inset Newline newline
22380 \begin_layout Plain Layout
22391 renewenvironment{figure}{
22398 \begin_layout Standard
22406 \begin_inset Newline newline
22413 \begin_layout Plain Layout
22429 \begin_inset Newline newline
22436 \begin_layout Plain Layout
22454 \begin_layout Standard
22460 \begin_layout Standard
22461 The commands allow you to redefine the floats so that the caption is set
22463 For figure floats use the command
22466 \begin_layout Standard
22474 \begin_layout Standard
22475 in TeX-Code before the float.
22476 Behind the float insert the command
22479 \begin_layout Standard
22487 \begin_layout Standard
22488 in TeX-Code to get back to the original float definition.
22491 \begin_layout Standard
22492 For table floats use the corresponding commands
22495 \begin_layout Standard
22509 \begin_layout Standard
22511 \begin_inset space ~
22515 \begin_inset CommandInset ref
22517 reference "fig:cap-beside-fig"
22522 \begin_inset space ~
22526 \begin_inset CommandInset ref
22528 reference "tab:cap-beside-tab"
22532 are examples where the caption is set beside.
22535 \begin_layout Standard
22536 You can see in the examples that the caption text appears at the top of
22537 the floats for table floats and at the bottom for figure floats.
22538 To change this, you can use the command
22541 \begin_layout Standard
22546 sidecaptionvpos{float type}{placement}
22549 \begin_layout Standard
22550 in the document preamble or in TeX-Code before the float.
22551 The float type is either
22559 , the placement can be
22560 \begin_inset Quotes eld
22568 \begin_inset Quotes erd
22572 \begin_inset Quotes eld
22580 \begin_inset Quotes erd
22584 \begin_inset Quotes eld
22592 \begin_inset Quotes erd
22596 To have for example the caption of figure floats vertically centered, use
22600 \begin_layout Standard
22605 sidecaptionvpos{figure}{c}
22608 \begin_layout Standard
22609 This was used for Figure
22610 \begin_inset space ~
22614 \begin_inset CommandInset ref
22616 reference "fig:cap-beside-fig-2"
22623 \begin_layout Standard
22624 \begin_inset VSpace medskip
22627 For more information about the package
22631 we refer to its documentation
22632 \begin_inset CommandInset citation
22641 \begin_layout Standard
22642 \begin_inset Note Greyedout
22645 \begin_layout Plain Layout
22658 \begin_layout Plain Layout
22659 LaTeX-packages ! hypcap
22664 , described in section
22665 \begin_inset space ~
22669 \begin_inset CommandInset ref
22671 reference "sub:Reference-Position"
22675 , has no effect on floats with the caption set beside.
22683 \begin_layout Standard
22687 \begin_layout Plain Layout
22699 \begin_layout Standard
22700 \begin_inset Float figure
22705 \begin_layout Plain Layout
22706 \begin_inset Graphics
22707 filename clipart/escher-lsd.eps
22709 scaleBeforeRotation
22716 \begin_layout Plain Layout
22717 \begin_inset Caption
22719 \begin_layout Plain Layout
22720 \begin_inset CommandInset label
22722 name "fig:cap-beside-fig"
22726 This is a caption beside a figure.
22739 \begin_layout Standard
22743 \begin_layout Plain Layout
22755 \begin_layout Standard
22756 \begin_inset Float table
22761 \begin_layout Plain Layout
22762 \begin_inset Caption
22764 \begin_layout Plain Layout
22765 \begin_inset CommandInset label
22767 name "tab:cap-beside-tab"
22771 This is a caption beside a table.
22779 \begin_layout Plain Layout
22780 \begin_inset Tabular
22781 <lyxtabular version="3" rows="4" columns="5">
22783 <column alignment="center" valignment="top" width="0">
22784 <column alignment="center" valignment="top" width="0">
22785 <column alignment="center" valignment="top" width="0">
22786 <column alignment="center" valignment="top" width="0">
22787 <column alignment="center" valignment="top" width="0">
22789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22792 \begin_layout Plain Layout
22798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22801 \begin_layout Plain Layout
22807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22810 \begin_layout Plain Layout
22816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22819 \begin_layout Plain Layout
22825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22828 \begin_layout Plain Layout
22836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22839 \begin_layout Plain Layout
22845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22848 \begin_layout Plain Layout
22854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22857 \begin_layout Plain Layout
22863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22866 \begin_layout Plain Layout
22872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22875 \begin_layout Plain Layout
22883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22886 \begin_layout Plain Layout
22892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22895 \begin_layout Plain Layout
22901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22904 \begin_layout Plain Layout
22910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22913 \begin_layout Plain Layout
22919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22922 \begin_layout Plain Layout
22930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22933 \begin_layout Plain Layout
22939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22942 \begin_layout Plain Layout
22948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22951 \begin_layout Plain Layout
22957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22960 \begin_layout Plain Layout
22966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22969 \begin_layout Plain Layout
22988 \begin_layout Standard
22992 \begin_layout Plain Layout
23004 \begin_layout Standard
23008 \begin_layout Plain Layout
23012 sidecaptionvpos{figure}{c}
23018 \begin_inset Float figure
23023 \begin_layout Plain Layout
23024 \begin_inset Graphics
23025 filename clipart/escher-lsd.eps
23027 scaleBeforeRotation
23034 \begin_layout Plain Layout
23035 \begin_inset Caption
23037 \begin_layout Plain Layout
23038 \begin_inset CommandInset label
23040 name "fig:cap-beside-fig-2"
23044 This is a vertically centered caption beside a figure.
23057 \begin_layout Standard
23061 \begin_layout Plain Layout
23073 \begin_layout Standard
23077 \begin_layout Plain Layout
23087 \begin_inset Note Note
23090 \begin_layout Plain Layout
23091 The following will be displayed when the LaTeX-package
23103 \begin_layout Standard
23104 You need to install the LaTeX-package
23108 to see the following part of this section in the output.
23111 \begin_layout Standard
23115 \begin_layout Plain Layout
23127 \begin_layout Section
23129 \begin_inset CommandInset label
23131 name "sec:Listings-of-Floats"
23139 \begin_layout Plain Layout
23140 Floats ! Float Lists
23148 \begin_layout Standard
23149 Similar to the the table of contents where the sections of the document
23150 are listed, there are listings for all float types, like the figures of
23152 You can insert them via the
23154 Insert\SpecialChar \menuseparator
23156 \begin_inset space ~
23160 \begin_inset space ~
23168 \begin_layout Standard
23169 The list entries are the float captions or its short title, the float number,
23170 and the page number where they appear in the document.
23173 \begin_layout Standard
23174 You can find the list of figures and tables at the end of this document.
23177 \begin_layout Chapter
23181 \begin_layout Section
23183 \begin_inset CommandInset label
23185 name "sec:LyX-Notes"
23193 \begin_layout Plain Layout
23202 \begin_layout Standard
23203 Notes are inserted with the toolbar button
23204 \begin_inset Graphics
23205 filename ../images/note-insert.png
23207 scaleBeforeRotation
23213 Insert\SpecialChar \menuseparator
23217 There are five types of notes:
23220 \begin_layout Description
23222 \begin_inset space ~
23225 Note This note type is for internal notes that won't appear in the output.
23226 Its note-box looks like this:
23227 \begin_inset Newline newline
23231 \begin_inset Newline newline
23235 \begin_inset Graphics
23236 filename clipart/LyXNoteImageQt4.png
23239 scaleBeforeRotation
23244 \begin_inset Note Note
23247 \begin_layout Plain Layout
23248 This is text in a note box that doesn't appear in the output.
23256 \begin_layout Description
23257 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23258 ent, when you export the document to LaTeX via the menu
23260 File\SpecialChar \menuseparator
23261 Export\SpecialChar \menuseparator
23262 LaTeX (pdflatex) / (plain)
23265 Its note-box looks like this:
23266 \begin_inset Newline newline
23270 \begin_inset Newline newline
23274 \begin_inset Graphics
23275 filename clipart/CommentNoteImageQt4.png
23278 scaleBeforeRotation
23283 \begin_inset Note Comment
23286 \begin_layout Plain Layout
23287 This is text in a note box that only appears as comment in LaTeX-files.
23295 \begin_layout Description
23297 \begin_inset space ~
23300 Out This note will appear in the output as grey text.
23301 Its note-box looks like this:
23302 \begin_inset Newline newline
23306 \begin_inset Newline newline
23310 \begin_inset Graphics
23311 filename clipart/GreyedOutNoteImageQt4.png
23314 scaleBeforeRotation
23319 \begin_inset Newline newline
23326 \begin_layout Plain Layout
23330 renewenvironment{lyxgreyedout}
23333 \begin_layout Plain Layout
23337 textcolor[gray]{0.8}
23347 \begin_inset Note Greyedout
23350 \begin_layout Plain Layout
23355 \begin_layout Plain Layout
23356 This is an example footnote within a greyed out note.
23361 of a comment that appears in the output as grey text.
23370 \begin_layout Plain Layout
23374 renewenvironment{lyxgreyedout}
23377 \begin_layout Plain Layout
23391 \begin_inset Note Note
23394 \begin_layout Plain Layout
23395 The greyed out note is here redefined to show it with the original LyX definitio
23396 n because greyed out notes are redefined in the preamble of this document,
23397 as described below, to have blue text.
23403 \begin_inset Newline newline
23407 \begin_inset Newline newline
23410 As you can see in the example, the first line of greyed out notes is a bit
23411 indented and greyed out notes can have footnotes.
23414 \begin_layout Description
23415 Framed This note will appear in the output as framed text.
23416 Its note-box looks like this:
23417 \begin_inset Newline newline
23421 \begin_inset Newline newline
23425 \begin_inset Graphics
23426 filename clipart/FramedNoteImageQt4.png
23429 scaleBeforeRotation
23434 \begin_inset Box Framed
23443 height_special "totalheight"
23446 \begin_layout Plain Layout
23447 This is text in a note box that appears framed in the output.
23452 In contrary to framed boxes
23456 \begin_layout Plain Layout
23457 Framed boxes are described in section
23458 \begin_inset space ~
23462 \begin_inset CommandInset ref
23464 reference "sec:Framed-Boxes"
23473 the frame uses always the whole text width and the note is set into its
23477 \begin_layout Description
23478 Shaded This note will appear in the output with red background color.
23479 Its note box looks like this:
23480 \begin_inset Newline newline
23484 \begin_inset Newline newline
23488 \begin_inset Graphics
23489 filename clipart/ShadedNoteImageQt4.png
23492 scaleBeforeRotation
23497 \begin_inset Box Shaded
23506 height_special "totalheight"
23509 \begin_layout Plain Layout
23510 This text in a note box appears in the output with red background.
23515 In contrary to colored boxes
23519 \begin_layout Plain Layout
23520 Colored boxes are described in section
23521 \begin_inset space ~
23525 \begin_inset CommandInset ref
23527 reference "sec:Colored-Boxes"
23536 the note uses always the whole text width and the note is set into its
23540 \begin_layout Standard
23541 \begin_inset VSpace bigskip
23544 When you use the toolbar button
23545 \begin_inset Graphics
23546 filename ../images/note-insert.png
23548 scaleBeforeRotation
23555 \begin_inset space ~
23561 You can switch between the five note types by right-clicking on the note-box.
23566 If you want to turn existing text into a note, mark it and click on the
23580 To change a note to text, press the backspace key when the cursor is in
23581 the first position of a note, or press the deletey key when the cursor
23582 is in the very last position of the note, respectively.
23585 \begin_layout Standard
23586 \begin_inset VSpace bigskip
23589 You can change the text color of the greyed out notes in the preamble with
23590 the following command:
23593 \begin_layout Standard
23598 renewenvironment{lyxgreyedout}
23599 \begin_inset Newline newline
23606 \begin_layout Plain Layout
23624 \begin_layout Standard
23625 The available colors and the method to define own colors is explained in
23627 \begin_inset space ~
23631 \begin_inset CommandInset ref
23633 reference "sec:Colored-Tables"
23640 \begin_layout Standard
23641 Notes that appear in blue in this document are set using greyed out notes
23645 \begin_layout Standard
23646 \begin_inset VSpace bigskip
23652 \begin_layout Standard
23661 notes can be set in the
23668 \begin_layout Standard
23669 The default frame width for
23674 \begin_inset space \thinspace{}
23677 pt; it can be changed by changing the size
23684 The default space between the note content and the frame is 9
23685 \begin_inset space \thinspace{}
23688 pt; it can be changed by changing the size
23695 For example the frame appearance of the following
23699 note is set with the TeX-Code commands
23702 \begin_layout Standard
23712 \begin_layout Standard
23716 \begin_layout Plain Layout
23728 \begin_inset Box Framed
23737 height_special "totalheight"
23740 \begin_layout Plain Layout
23754 \begin_layout Plain Layout
23768 \begin_layout Standard
23769 \begin_inset VSpace bigskip
23775 \begin_layout Standard
23780 notes the default space between the note content and the note border is
23782 \begin_inset space \thinspace{}
23785 pt; it can be changed by changing the size
23792 \begin_inset Newline newline
23795 The default background color red can be changed with the command
23799 definecolor{shadebox}
23808 command is explained in section
23809 \begin_inset space ~
23813 \begin_inset CommandInset ref
23815 reference "sec:Colored-Tables"
23823 \begin_layout Plain Layout
23830 \SpecialChar \textcompwordmark{}
23835 requires the LaTeX-package
23839 in the preamble, see section
23840 \begin_inset space ~
23844 \begin_inset CommandInset ref
23846 reference "sec:Colored-Boxes"
23858 \begin_layout Standard
23859 For example the appearance of the following
23863 note is set with the TeX-Code commands
23866 \begin_layout Standard
23874 \begin_inset Newline newline
23881 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23884 \begin_layout Standard
23888 \begin_layout Plain Layout
23901 \begin_layout Plain Layout
23905 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23911 \begin_inset Box Shaded
23920 height_special "totalheight"
23923 \begin_layout Plain Layout
23926 This is yellow text in a
23936 note with darkgreen background.
23945 \begin_layout Plain Layout
23958 \begin_layout Plain Layout
23962 definecolor{shadecolor}{rgb}{1,0,0}
23970 \begin_layout Section
23972 \begin_inset CommandInset label
23974 name "sec:Footnotes"
23982 \begin_layout Plain Layout
23992 \begin_layout Plain Layout
24001 \begin_layout Standard
24002 Footnotes can be inserted using the toolbar button
24003 \begin_inset Graphics
24004 filename ../images/footnote-insert.png
24006 scaleBeforeRotation
24012 Insert\SpecialChar \menuseparator
24024 then the following footnote-box:
24025 \begin_inset Graphics
24026 filename clipart/footnoteQt4.png
24028 scaleBeforeRotation
24036 where you can enter the footnote text.
24037 If you want to turn existing text into a footnote, mark it and click on
24059 to text, press the Backspace key when the cursor is in the first position
24068 , or press the Delete key when the cursor is in the very last position of
24080 \begin_layout Standard
24081 Here is an example footnote:
24089 \begin_layout Plain Layout
24090 \begin_inset CommandInset label
24092 name "foot:This-is-an"
24096 This is an example footnote.
24109 \begin_layout Plain Layout
24113 newcounter{MyRepeatFoot}
24116 \begin_layout Plain Layout
24120 setcounter{MyRepeatFoot}{
24130 \begin_layout Standard
24131 The footnote will appear in the output as a superscript number at the text
24132 position where the footnote box is placed.
24133 The footnote text is placed at the bottom of the current page.
24134 The footnote number is calculated by LaTeX, the numbers are consecutive.
24135 It depends on your document-class, if the footnote number is reset for
24139 \begin_layout Standard
24140 Footnotes can be referenced like floats: Insert a label into the footnote
24141 and cross-reference this label in the text as described in section
24142 \begin_inset space ~
24146 \begin_inset CommandInset ref
24148 reference "sec:Referencing-Floats"
24153 \begin_inset Newline newline
24156 This is a cross-reference of Footnote
24157 \begin_inset space ~
24161 \begin_inset CommandInset ref
24163 reference "foot:This-is-an"
24170 \begin_layout Standard
24171 \begin_inset VSpace defskip
24174 To use footnotes within tables, you have to use minipages, see section
24175 \begin_inset space ~
24179 \begin_inset CommandInset ref
24181 reference "sec:Minipages"
24186 Footnotes within longtables are described in section
24187 \begin_inset space ~
24191 \begin_inset CommandInset ref
24193 reference "sub:Footnotes-in-Longtables"
24200 \begin_layout Standard
24201 \begin_inset VSpace defskip
24204 To create only a mark for a footnote, use the command
24208 footnotemark[number]
24211 This is used when you have the same annotation several times in a text
24212 but doesn't want to print the footnote text every time.
24213 \begin_inset Newline newline
24216 As you don't know the number of the repeating footnote while you are writing
24217 the text, you have to store its number.
24218 For the following footnote mark example, these commands were inserted in
24219 TeX-Code behind Footnote
24220 \begin_inset space ~
24224 \begin_inset CommandInset ref
24226 reference "foot:This-is-an"
24230 to store the footnote number:
24233 \begin_layout Standard
24238 newcounter{MyRepeatFoot}
24239 \begin_inset Newline newline
24244 setcounter{MyRepeatFoot}{
24249 \begin_layout Standard
24250 The footnote mark was then created with this command:
24253 \begin_layout Standard
24263 \begin_layout Standard
24264 Here is an example footnote mark:
24272 \begin_layout Plain Layout
24286 \begin_layout Subsection
24288 \begin_inset CommandInset label
24290 name "sub:Footnote-Numbering"
24298 \begin_layout Plain Layout
24299 Footnotes ! Numbering
24307 \begin_layout Standard
24308 To reset the footnote number back to 1 after each section
24310 , add this command to your document preamble:
24313 \begin_layout Standard
24318 @addtoreset{footnote}{section}
24321 \begin_layout Standard
24322 \begin_inset VSpace bigskip
24325 The following preamble command changes the footnote numbering style to small
24329 \begin_layout Standard
24341 \begin_layout Standard
24345 \begin_layout Plain Layout
24358 This is a footnote with roman numbering:
24362 \begin_layout Plain Layout
24363 This is an example footnote with roman numbering.
24371 \begin_layout Standard
24372 To change the numbering style to capital roman numerals replace in the command
24387 \begin_inset Quotes eld
24391 \begin_inset Quotes erd
24394 footnotes with capital or small Latin letters use
24408 \begin_inset Quotes eld
24412 \begin_inset Quotes erd
24415 footnotes with symbols use
24424 \begin_layout Standard
24425 \begin_inset Note Greyedout
24428 \begin_layout Plain Layout
24433 You can only number 26 footnotes with Latin letters, because this numbering
24434 is limited to single letters.
24440 \begin_inset Newline newline
24444 \begin_inset Note Greyedout
24447 \begin_layout Plain Layout
24452 You can only number 9 footnotes with symbols.
24460 \begin_layout Standard
24461 To return to the default numbering style when you changed to another one,
24474 in the command above.
24478 \begin_layout Plain Layout
24494 \begin_layout Standard
24495 \begin_inset VSpace bigskip
24501 \begin_layout Standard
24502 If you want to have footnotes numbered in the scheme
24503 \begin_inset Quotes eld
24507 \begin_inset Quotes erd
24510 , add the following command to your document preamble:
24513 \begin_layout Standard
24518 numberwithin{footnote}{chapter}
24521 \begin_layout Standard
24522 To be able to use the command
24531 \begin_inset space ~
24536 in the document settings the option
24539 \begin_inset space ~
24543 \begin_inset space ~
24547 \begin_inset space ~
24555 \begin_layout Standard
24559 \begin_layout Plain Layout
24563 numberwithin{footnote}{chapter}
24568 This is another example footnote:
24574 \begin_layout Plain Layout
24575 This is a footnote numbered in the scheme
24576 \begin_inset Quotes eld
24580 \begin_inset Quotes erd
24594 \begin_layout Plain Layout
24610 \begin_layout Standard
24611 \begin_inset Note Greyedout
24614 \begin_layout Plain Layout
24625 always prints out the footnote number as arabic number; previous redefinitions
24626 to get non-arabic numbers are overwritten.
24634 \begin_layout Standard
24635 So to get for example the scheme
24636 \begin_inset Quotes eld
24642 \begin_inset Quotes erd
24645 , use this command instead of
24654 \begin_layout Standard
24668 \begin_layout Subsection
24673 \begin_layout Plain Layout
24674 Footnotes ! Placement
24682 \begin_layout Standard
24683 If you have several footnotes in one page, they appear without vertical
24684 space between them at the bottom of the page.
24685 To make them better readable you can e.
24686 \begin_inset space \thinspace{}
24690 \begin_inset space ~
24694 \begin_inset space \thinspace{}
24697 mm space with the following preamble command:
24700 \begin_layout Standard
24710 \begin_inset Newline newline
24724 \begin_layout Standard
24725 \begin_inset VSpace bigskip
24728 In a two-column document the footnotes appear at the bottom of every column,
24730 \begin_inset space ~
24734 \begin_inset CommandInset ref
24736 reference "fig:Standard-footnote-placement"
24741 If the footnotes should only appear at the bottom of the right column,
24743 \begin_inset space ~
24747 \begin_inset CommandInset ref
24749 reference "fig:Footnote-placement-in"
24753 , use the LaTeX-package
24761 \begin_layout Plain Layout
24762 LaTeX-packages ! ftnright
24767 with this command in the document preamble:
24770 \begin_layout Standard
24775 usepackage{ftnright}
24778 \begin_layout Standard
24779 \begin_inset Float figure
24785 \begin_layout Plain Layout
24789 \begin_layout Plain Layout
24799 \begin_inset Graphics
24800 filename clipart/without_fntright.pdf
24802 scaleBeforeRotation
24810 \begin_layout Plain Layout
24820 \begin_layout Plain Layout
24821 \begin_inset Caption
24823 \begin_layout Plain Layout
24824 \begin_inset CommandInset label
24826 name "fig:Standard-footnote-placement"
24830 Standard footnote placement in two-column documents.
24843 \begin_layout Standard
24844 \begin_inset Float figure
24850 \begin_layout Plain Layout
24854 \begin_layout Plain Layout
24864 \begin_inset Graphics
24865 filename clipart/with_fntright.pdf
24867 scaleBeforeRotation
24875 \begin_layout Plain Layout
24885 \begin_layout Plain Layout
24886 \begin_inset Caption
24888 \begin_layout Plain Layout
24889 \begin_inset CommandInset label
24891 name "fig:Footnote-placement-in"
24895 Footnote placement in two-column documents when the LaTeX-package
24912 \begin_layout Standard
24913 \begin_inset VSpace bigskip
24916 In some scientific literature it is usual to collect the footnotes and print
24917 them in a separate paragraph at the the end of a section, like in Figure
24918 \begin_inset space ~
24922 \begin_inset CommandInset ref
24924 reference "fig:Endnotes----footnotes"
24929 They are then so called
24930 \begin_inset Quotes eld
24934 \begin_inset Quotes erd
24941 \begin_layout Plain Layout
24947 To use endnotes instead of footnotes in your document, load the LaTeX-package
24956 \begin_layout Plain Layout
24957 LaTeX-packages ! endnotes
24962 with the document preamble lines
24965 \begin_layout Standard
24970 usepackage{endnotes}
24971 \begin_inset Newline newline
24983 \begin_layout Standard
24984 To insert the collected footnotes, insert the command
24987 \begin_layout Standard
24995 \begin_layout Standard
24996 in TeX-Code at the the end of a section or chapter.
24999 \begin_layout Standard
25000 \begin_inset Float figure
25005 \begin_layout Plain Layout
25010 \begin_layout Plain Layout
25020 \begin_inset Graphics
25021 filename clipart/endnotes.pdf
25022 scaleBeforeRotation
25030 \begin_layout Plain Layout
25040 \begin_layout Plain Layout
25041 \begin_inset Caption
25043 \begin_layout Plain Layout
25044 \begin_inset CommandInset label
25046 name "fig:Endnotes----footnotes"
25050 Endnotes -- footnotes are printed in a separate paragraph at the end of
25051 sections or chapters.
25064 \begin_layout Standard
25065 \begin_inset VSpace medskip
25068 The paragraph heading for the endnotes isn't automatically translated into
25069 the document language, this must be done manually.
25070 The following preamble command translate the default English name
25071 \begin_inset Quotes eld
25075 \begin_inset Quotes erd
25078 to the German translation
25079 \begin_inset Quotes eld
25083 \begin_inset Quotes erd
25089 \begin_layout Standard
25096 notesname}{Anmerkungen}
25099 \begin_layout Standard
25100 \begin_inset VSpace medskip
25103 The numbering of endnotes can be changed like the footnote numbering as
25104 described in section
25105 \begin_inset space ~
25109 \begin_inset CommandInset ref
25111 reference "sub:Footnote-Numbering"
25115 ; just replace the command
25128 To reset the endnote number use the command
25134 as described in section
25135 \begin_inset space ~
25139 \begin_inset CommandInset ref
25141 reference "sub:Footnote-Numbering"
25145 and replace the command parameter
25156 \begin_layout Standard
25157 To create only a mark for an endnote, use the command
25161 endnotemark[number]
25163 similar to the command
25169 , described in section
25170 \begin_inset space ~
25174 \begin_inset CommandInset ref
25176 reference "sec:Footnotes"
25183 \begin_layout Standard
25184 \begin_inset VSpace bigskip
25187 Footnotes can also be placed in the page margin and the footnote text alignment
25188 can be changed, see the LaTeX-package
25196 \begin_layout Plain Layout
25197 LaTeX-packages ! footmisc
25203 \begin_inset CommandInset citation
25209 for more information about this.
25212 \begin_layout Standard
25213 For various further footnote formatting issues have a look at LaTeX-books,
25215 \begin_inset CommandInset citation
25217 key "latexcompanion,latexguide,latexbook"
25224 \begin_layout Section
25229 \begin_layout Plain Layout
25230 Notes ! Margin Notes
25238 \begin_layout Standard
25239 Margin notes look and behave in LyX like footnotes.
25240 They are inserted via the menu
25242 Insert\SpecialChar \menuseparator
25244 \begin_inset space ~
25249 or the toolbar button
25250 \begin_inset Graphics
25251 filename ../images/marginalnote-insert.png
25253 scaleBeforeRotation
25268 \begin_inset Quotes eld
25272 \begin_inset Quotes erd
25275 appears where you can enter the text of the margin note.
25278 \begin_layout Standard
25279 At the side is an example margin note.
25284 \begin_inset Marginal
25287 \begin_layout Plain Layout
25288 This is a margin note.
25296 \begin_layout Standard
25297 Margin notes appear at the right side in single-sided documents.
25298 In double-sided documents they appear in the outer margin -- left on even
25299 pages, right on odd pages.
25300 The text of margin notes is aligned opposite to the outer margin -- right-align
25301 ed when the note appears in the left margin.
25302 The first line of the margin note is placed at the position of the text
25303 line where it is inserted in the document.
25306 \begin_layout Standard
25307 \begin_inset VSpace bigskip
25310 To place the margin note in the inner margin, add the command
25313 \begin_layout Standard
25321 \begin_layout Standard
25322 in TeX-Code before a margin note.
25323 The new placement is valid for all following margin notes.
25328 \begin_layout Plain Layout
25338 \begin_inset Marginal
25341 \begin_layout Plain Layout
25342 This is a margin note in the inner margin.
25350 \begin_inset Newline newline
25356 \begin_inset Note Greyedout
25359 \begin_layout Plain Layout
25364 There is often not enough space in the inner margin so that the notes are
25365 not correctly displayed in the output.
25373 \begin_layout Standard
25374 To return to the default placement insert the command
25377 \begin_layout Standard
25385 \begin_layout Standard
25390 \begin_layout Plain Layout
25400 \begin_inset Note Greyedout
25403 \begin_layout Plain Layout
25408 The command is ignored when it is within a paragraph where also the command
25423 \begin_layout Standard
25424 \begin_inset VSpace bigskip
25431 \begin_inset Marginal
25434 \begin_layout Plain Layout
25435 AVeryLongMarginParWord that isn't hyphenated.
25443 Similar to the case described in section
25444 \begin_inset space ~
25448 \begin_inset CommandInset ref
25450 reference "sub:Multiple-Lines-in"
25454 , long words cannot be hyphenated when they are the first word in a margin
25456 To avoid this, insert 0
25457 \begin_inset space \thinspace{}
25460 pt horizontal space before the word
25465 \begin_inset Marginal
25468 \begin_layout Plain Layout
25469 \begin_inset space \hspace*{}
25473 AVeryLongMarginParWord that is hyphenated.
25481 \begin_layout Standard
25482 \begin_inset VSpace bigskip
25488 \begin_layout Standard
25489 \begin_inset Note Greyedout
25492 \begin_layout Plain Layout
25497 Margin notes can normally not be used inside tables, floats, and footnotes.
25505 \begin_layout Standard
25506 \begin_inset VSpace bigskip
25512 \begin_layout Standard
25516 \begin_layout Plain Layout
25526 \begin_inset Note Note
25529 \begin_layout Plain Layout
25530 The following section will only be displayed when the LaTeX-package
25542 \begin_layout Standard
25543 This restriction can be evaded by using the LaTeX-package
25551 \begin_layout Plain Layout
25552 LaTeX-packages ! marginnote
25558 By adding these two lines to your document preamble, the command used by
25559 LyX for margin notes is redefined to use the command provided by the
25566 \begin_layout Standard
25571 usepackage{marginnote}
25572 \begin_inset Newline newline
25584 \begin_layout Standard
25585 This is also used in this document because
25589 has another useful feature: You can set a vertical offset for the note.
25590 This is often needed when too many margin notes are too close together
25591 or for a better page layout.
25592 The offset is set in LyX as TeX-Code directly behind the margin note in
25596 \begin_layout Standard
25602 \begin_layout Standard
25603 where the offset is a length with one of the units listed in Table
25604 \begin_inset space ~
25608 \begin_inset CommandInset ref
25610 reference "tab:Units"
25615 A negative value shifts the note up, a positive value shifts it down.
25619 For example the margin note beside this text line is shifted up 1.5
25620 \begin_inset space \thinspace{}
25623 cm with the TeX-Code-command
25624 \begin_inset Quotes eld
25634 \begin_inset Quotes erd
25638 \begin_inset Marginal
25641 \begin_layout Plain Layout
25642 This margin note is shifted up 1.5
25643 \begin_inset space \thinspace{}
25646 cm from its original position.
25658 \begin_layout Plain Layout
25668 \begin_layout Standard
25669 \begin_inset VSpace medskip
25676 you can also change the alignment of the text in the margin note.
25677 For example the commands
25680 \begin_layout Standard
25687 raggedleftmarginnote}{
25690 \begin_inset Newline newline
25697 raggedrightmarginnote}{
25702 \begin_layout Standard
25703 set the alignment to centered.
25708 raggedleftmarginnote
25710 denotes margin notes that appear at the left side.
25717 \begin_layout Plain Layout
25723 raggedleftmarginnote}{
25728 \begin_layout Plain Layout
25734 raggedrightmarginnote}{
25742 \begin_inset Marginal
25745 \begin_layout Plain Layout
25746 The text of this margin note is centered.
25757 \begin_layout Standard
25764 raggedleftmarginnote}{
25767 \begin_inset Newline newline
25774 raggedrightmarginnote}{
25783 \begin_layout Plain Layout
25789 raggedleftmarginnote}{
25794 \begin_layout Plain Layout
25800 raggedrightmarginnote}{
25810 \begin_layout Standard
25811 \begin_inset VSpace medskip
25814 For the other features of
25818 we refer to its documentation
25819 \begin_inset CommandInset citation
25828 \begin_layout Standard
25829 \begin_inset VSpace bigskip
25832 You can adjust the layout of margin notes by changing its definition.
25833 To create for example a header for all margin notes with the underlined,
25834 sans-serif, and bold header text
25835 \begin_inset Quotes eld
25847 \begin_inset Quotes erd
25850 , add this to your document preamble:
25853 \begin_layout Standard
25863 \begin_inset Newline newline
25873 \begin_inset Newline newline
25880 \begin_layout Plain Layout
25897 underbar{Attention!}}}%
25898 \begin_inset Newline newline
25905 \begin_layout Plain Layout
25923 \begin_layout Standard
25930 \begin_layout Plain Layout
25941 \begin_layout Plain Layout
25952 \begin_layout Plain Layout
25960 underbar{Attention!}}}%
25963 \begin_layout Plain Layout
25977 \begin_inset Marginal
25980 \begin_layout Plain Layout
25981 This is a margin note with a defined heading.
25993 \begin_layout Plain Layout
26007 \begin_layout Plain Layout
26024 \begin_inset Note Note
26027 \begin_layout Plain Layout
26028 The margin note format is changed only for this example.
26036 \begin_layout Standard
26040 \begin_layout Plain Layout
26050 \begin_inset Note Note
26053 \begin_layout Plain Layout
26054 The following will be displayed when the LaTeX-package
26066 \begin_layout Standard
26067 You need to install the LaTeX-package
26071 to see the following part of this section in the output.
26074 \begin_layout Standard
26078 \begin_layout Plain Layout
26090 \begin_layout Chapter
26094 \begin_layout Section
26099 \begin_layout Plain Layout
26100 Boxes ! Introduction
26108 \begin_layout Standard
26109 Boxes are used to format a block of text.
26110 Boxes can be used to write documents with multiple languages, see section
26111 \begin_inset space ~
26115 \begin_inset CommandInset ref
26117 reference "sec:Minipages"
26121 , to frame texts, see section
26122 \begin_inset space ~
26126 \begin_inset CommandInset ref
26128 reference "sec:Framed-Boxes"
26132 , to prevent words to be hyphenated, see section
26133 \begin_inset space ~
26137 \begin_inset CommandInset ref
26139 reference "sec:Prevent-Hyphenation"
26143 , to align text, see section
26144 \begin_inset space ~
26148 \begin_inset CommandInset ref
26150 reference "sub:Vertical-Alignment"
26154 , or to set the background color of texts, see section
26155 \begin_inset space ~
26159 \begin_inset CommandInset ref
26161 reference "sec:Colored-Boxes"
26168 \begin_layout Standard
26169 Boxes can be inserted with the menu
26171 Insert\SpecialChar \menuseparator
26174 or the toolbar button
26175 \begin_inset Graphics
26176 filename ../images/box-insert.png
26178 scaleBeforeRotation
26183 A grey box with the label
26188 \begin_inset Graphics
26189 filename clipart/BoxInsetDefaultQt4.png
26191 scaleBeforeRotation
26195 , will be inserted.
26196 The box type can be specified by right-clicking on the box.
26197 The appearing box dialog offers the
26200 \begin_inset space ~
26218 is the default for new boxes and is explained in section
26219 \begin_inset space ~
26223 \begin_inset CommandInset ref
26225 reference "sec:Minipages"
26233 is described in section
26234 \begin_inset space ~
26238 \begin_inset CommandInset ref
26240 reference "sec:Parboxes"
26247 \begin_layout Standard
26248 Boxes aren't numbered and can therefore not be referenced like floats or
26252 \begin_layout Standard
26253 \begin_inset Note Greyedout
26256 \begin_layout Plain Layout
26261 Boxes must not be the item in an
26277 \begin_layout Standard
26278 \begin_inset Note Greyedout
26281 \begin_layout Plain Layout
26286 For an unknown reason you can only set the
26289 \begin_inset space ~
26298 when you use a framed box.
26302 \begin_inset space ~
26307 type and without frames are explained in section
26308 \begin_inset space ~
26312 \begin_inset CommandInset ref
26314 reference "sec:Prevent-Hyphenation"
26326 \begin_layout Section
26328 \begin_inset CommandInset label
26330 name "sec:Box-Dialog"
26338 \begin_layout Plain Layout
26347 \begin_layout Subsection
26352 \begin_layout Plain Layout
26361 \begin_layout Standard
26362 In the box dialog you can adjust the box geometry in the fields
26371 The available units for the geometry are explained in Table
26372 \begin_inset space ~
26376 \begin_inset CommandInset ref
26378 reference "tab:Units"
26387 offers the following additional sizes:
26390 \begin_layout Description
26391 Depth This is the plain text
26392 \begin_inset Quotes eld
26396 \begin_inset Quotes erd
26400 It ignores the total depth when there are multiple text lines in the box:
26401 \begin_inset Newline newline
26405 \begin_inset Newline newline
26409 \begin_inset Newline newline
26413 \begin_inset Box Boxed
26422 height_special "depth"
26425 \begin_layout Plain Layout
26427 Box height set to 1
26428 \begin_inset space \thinspace{}
26437 \begin_inset Newline newline
26441 \begin_inset Newline newline
26447 \begin_layout Description
26448 Height This is the heigth of the text that is inside the box.
26450 \begin_inset space \thinspace{}
26454 \begin_inset space ~
26457 2 for this size will set the box heigth to 2 times the text height:
26458 \begin_inset Box Boxed
26467 height_special "height"
26470 \begin_layout Plain Layout
26472 Box height set to 2
26473 \begin_inset space \thinspace{}
26484 \begin_layout Description
26486 \begin_inset space ~
26489 Height This is the Height
26490 \begin_inset space \thinspace{}
26494 \begin_inset space \thinspace{}
26498 \begin_inset Box Boxed
26507 height_special "totalheight"
26510 \begin_layout Plain Layout
26512 Box height set to 1
26513 \begin_inset space \thinspace{}
26517 \begin_inset space ~
26528 \begin_layout Description
26529 Width This sets the width of the box as heigth:
26530 \begin_inset Box Boxed
26539 height_special "width"
26542 \begin_layout Plain Layout
26544 Box height set to 1
26545 \begin_inset space \thinspace{}
26556 \begin_layout Subsection
26561 \begin_layout Plain Layout
26570 \begin_layout Standard
26571 When you have chosen an
26574 \begin_inset space ~
26579 , the vertical box alignment can be:
26582 \begin_layout Description
26583 Top This is an example text line.
26585 \begin_inset Box Boxed
26594 height_special "totalheight"
26597 \begin_layout Plain Layout
26599 This box is top-aligned.
26604 This is an example text line.
26607 \begin_layout Description
26608 Middle This is an example text line.
26610 \begin_inset Box Boxed
26619 height_special "totalheight"
26622 \begin_layout Plain Layout
26624 This box is middle-aligned.
26629 This is an example text line.
26632 \begin_layout Description
26633 Bottom This is an example text line.
26635 \begin_inset Box Boxed
26644 height_special "totalheight"
26647 \begin_layout Plain Layout
26649 This box is bottom-aligned.
26654 This is an example text line.
26657 \begin_layout Standard
26658 \begin_inset Note Greyedout
26661 \begin_layout Plain Layout
26666 The vertical box aligment can be lost in the output when you have two boxes
26667 in a line and one has e.
26668 \begin_inset space \thinspace{}
26672 \begin_inset space ~
26675 a shadow and the other one not.
26683 \begin_layout Standard
26684 The horizontal box alignment can be set via LyX's paragraph dialog when
26685 you set the box into its own paragraph.
26688 \begin_layout Standard
26689 \begin_inset VSpace bigskip
26692 When you have chosen an
26695 \begin_inset space ~
26700 , the box content can be vertical aligned to:
26703 \begin_layout Description
26704 top This is an example text line.
26706 \begin_inset Box Boxed
26715 height_special "totalheight"
26718 \begin_layout Plain Layout
26720 This box text is top-aligned.
26725 This is an example text line.
26728 \begin_layout Description
26729 middle This is an example text line.
26731 \begin_inset Box Boxed
26740 height_special "totalheight"
26743 \begin_layout Plain Layout
26745 This box text is middle-aligned.
26750 This is an example text line.
26753 \begin_layout Description
26754 bottom This is an example text line.
26756 \begin_inset Box Boxed
26765 height_special "totalheight"
26768 \begin_layout Plain Layout
26770 This box text is bottom-aligned.
26775 This is an example text line.
26778 \begin_layout Description
26779 stretch This is an example text line.
26781 \begin_inset Box Boxed
26790 height_special "totalheight"
26793 \begin_layout Plain Layout
26798 \begin_layout Plain Layout
26803 \begin_layout Plain Layout
26810 This is an example text line.
26813 \begin_layout Standard
26814 To stretch the box content, it must consist of more than one paragraph.
26815 In the example above every text line is in an own paragraph.
26818 \begin_layout Standard
26819 \begin_inset VSpace bigskip
26822 To align the box content horizontally you can use LyX's paragraph dialog
26823 when you have chosen an
26826 \begin_inset space ~
26834 \begin_layout Standard
26836 \begin_inset Box Boxed
26845 height_special "totalheight"
26848 \begin_layout Plain Layout
26853 \begin_layout Plain Layout
26858 \begin_layout Plain Layout
26868 \begin_layout Standard
26869 If you haven't set an
26872 \begin_inset space ~
26877 , you can align the box content horizontally in the box dialog.
26880 \begin_layout Standard
26882 \begin_inset Box Boxed
26891 height_special "totalheight"
26894 \begin_layout Plain Layout
26896 This box text is horizontally stretched.
26904 \begin_layout Section
26906 \begin_inset CommandInset label
26908 name "sec:Framed-Boxes"
26916 \begin_layout Plain Layout
26925 \begin_layout Standard
26926 The frame style of the box can be specified in the box-dialog in the drop-down
26932 The following frame types are possible:
26935 \begin_layout Description
26937 \begin_inset space ~
26940 box This draws a rectangle frame around the box.
26941 The frame line thickness has the size of
26949 \begin_inset Box Boxed
26958 height_special "totalheight"
26961 \begin_layout Plain Layout
26971 \begin_layout Description
26973 \begin_inset space ~
26977 \begin_inset space ~
26980 thin This draws an oval frame around the box.
26981 The frame line thickness has the size 0.4
26982 \begin_inset space \thinspace{}
26987 \begin_inset Box ovalbox
26996 height_special "totalheight"
26999 \begin_layout Plain Layout
27009 \begin_layout Description
27011 \begin_inset space ~
27015 \begin_inset space ~
27018 thick This draws an oval frame around the box.
27019 The frame line thickness has the size 0.8
27020 \begin_inset space \thinspace{}
27025 \begin_inset Box Ovalbox
27034 height_special "totalheight"
27037 \begin_layout Plain Layout
27047 \begin_layout Description
27049 \begin_inset space ~
27052 box This draws a rectangle frame with a shadow around the box.
27053 The frame line thickness has the size of
27059 , the shadow has a width of 4
27060 \begin_inset space \thinspace{}
27065 \begin_inset Box Shadowbox
27074 height_special "totalheight"
27077 \begin_layout Plain Layout
27087 \begin_layout Description
27089 \begin_inset space ~
27092 box This draws a double-line rectangle frame around the box.
27093 The line thickness of the inner frame is 0.75
27094 \begin_inset space \thinspace{}
27103 , the thickness of the outer frame is 1.5
27104 \begin_inset space \thinspace{}
27114 The distance between the lines is 1.5
27115 \begin_inset space \thinspace{}
27125 \begin_inset space \thinspace{}
27129 \begin_inset space \thinspace{}
27133 \begin_inset space \thinspace{}
27138 \begin_inset Box Doublebox
27147 height_special "totalheight"
27150 \begin_layout Plain Layout
27160 \begin_layout Standard
27161 \begin_inset VSpace bigskip
27164 LyX's box label will change to the used frame style when you set a frame.
27165 To be able to use the different frame styles, the LaTeX-package
27173 \begin_layout Plain Layout
27174 LaTeX-packages ! fancybox
27182 \begin_layout Standard
27183 \begin_inset VSpace bigskip
27186 The default value for the size
27193 \begin_inset space \thinspace{}
27197 It can be changed with the following command in TeX-Code to e.
27198 \begin_inset space \thinspace{}
27202 \begin_inset space ~
27206 \begin_inset space \thinspace{}
27212 \begin_layout Standard
27222 \begin_layout Standard
27226 \begin_layout Plain Layout
27238 \begin_inset Box Boxed
27247 height_special "totalheight"
27250 \begin_layout Plain Layout
27252 Rectangular box with
27259 \begin_inset space \thinspace{}
27263 \begin_inset space \thinspace{}
27267 \begin_inset space \thinspace{}
27279 \begin_layout Plain Layout
27293 \begin_layout Standard
27294 \begin_inset VSpace bigskip
27297 The space between the frame and the box content is for all frame styles
27299 \begin_inset space \thinspace{}
27303 You can change it by setting the length
27310 For example the command
27313 \begin_layout Standard
27323 \begin_layout Standard
27324 sets the value to 10
27325 \begin_inset space \thinspace{}
27328 pt, like for the following box:
27331 \begin_layout Standard
27335 \begin_layout Plain Layout
27347 \begin_inset Box Boxed
27356 height_special "totalheight"
27359 \begin_layout Plain Layout
27361 Rectangular box with
27368 \begin_inset space \thinspace{}
27372 \begin_inset space \thinspace{}
27376 \begin_inset space \thinspace{}
27388 \begin_layout Plain Layout
27402 \begin_layout Standard
27403 \begin_inset VSpace bigskip
27406 The diameter of the round corners of the oval boxes can be set with the
27417 \begin_layout Standard
27425 \begin_layout Standard
27426 sets the diameter to 1
27427 \begin_inset space \thinspace{}
27434 \begin_layout Standard
27442 \begin_layout Standard
27443 sets the diameter to
27446 \begin_inset space \thinspace{}
27450 \begin_inset space \thinspace{}
27453 minimum(width and heigth of box)
27465 \begin_layout Standard
27469 \begin_layout Plain Layout
27479 \begin_inset Box Ovalbox
27488 height_special "totalheight"
27491 \begin_layout Plain Layout
27500 \begin_inset space \thinspace{}
27504 \begin_inset space \thinspace{}
27508 \begin_inset space \thinspace{}
27520 \begin_layout Plain Layout
27532 \begin_layout Standard
27533 \begin_inset VSpace bigskip
27536 The size of the shadow can be adjusted by changing the length
27544 \begin_inset space \thinspace{}
27547 pt for the following box by this command:
27550 \begin_layout Standard
27560 \begin_layout Standard
27564 \begin_layout Plain Layout
27576 \begin_inset Box Shadowbox
27585 height_special "totalheight"
27588 \begin_layout Plain Layout
27597 \begin_inset space \thinspace{}
27601 \begin_inset space \thinspace{}
27605 \begin_inset space \thinspace{}
27617 \begin_layout Plain Layout
27631 \begin_layout Standard
27632 \begin_inset VSpace bigskip
27635 Changed lengths and widths are valid for all boxes following the commands
27639 \begin_layout Section
27641 \begin_inset CommandInset label
27643 name "sec:Minipages"
27651 \begin_layout Plain Layout
27660 \begin_layout Standard
27661 Minipages are treated by LaTeX as pages within pages and can therefore for
27662 example have their own footnotes.
27665 \begin_layout Standard
27666 Minipages are useful when you write documents with different languages.
27669 \begin_layout Standard
27670 Below are two example minipages side by side.
27671 Their width is set to 45
27672 \begin_inset space \thinspace{}
27675 col% and they are separated by a horizontal fill, that was inserted via
27678 Insert\SpecialChar \menuseparator
27680 \begin_inset space ~
27683 Formatting\SpecialChar \menuseparator
27685 \begin_inset space ~
27693 \begin_layout Standard
27694 \begin_inset Box Frameless
27703 height_special "totalheight"
27706 \begin_layout Plain Layout
27709 Dies ist ein deutscher Text.
27710 Dies ist ein deutscher Text.
27711 Dies ist ein deutscher Text.
27712 Dies ist ein deutscher Text.
27713 Dies ist ein deutscher Text.
27714 Dies ist ein deutscher Text.
27715 Dies ist ein deutscher Text.
27716 Dies ist ein deutscher Text.
27717 Dies ist ein deutscher Text.
27718 Dies ist ein deutscher Text.
27719 Dies ist ein deutscher Text.
27720 Dies ist ein deutscher Text.
27721 Dies ist ein deutscher Text
27725 \begin_layout Plain Layout
27728 Dies ist eine deutsche Fußnote.
27734 Dies ist ein deutscher Text.
27735 Dies ist ein deutscher Text.
27741 \begin_inset space \hfill{}
27745 \begin_inset Box Frameless
27754 height_special "totalheight"
27757 \begin_layout Plain Layout
27758 This is an English Text.
27759 This is an English Text.
27760 This is an English Text.
27761 This is an English Text.
27762 This is an English Text.
27763 This is an English Text.
27764 This is an English Text.
27765 This is an English Text.
27766 This is an English Text.
27767 This is an English Text.
27768 This is an English Text.
27769 This is an English Text.
27770 This is an English Text.
27771 This is an English Text.
27772 This is an English Text.
27773 This is an English Text.
27777 \begin_layout Plain Layout
27778 This is an English footnote.
27783 This is an English Text.
27792 \begin_layout Standard
27793 \begin_inset VSpace bigskip
27796 Another application for minipages are footnotes within tables.
27797 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27798 bottom of the current page.
27799 But when you put the table with the footnote to a minipage, the footnote
27800 will appear at its bottom, numbered with Latin letters.
27801 The footnote number is reset to 1 in every minipage but not outside the
27805 \begin_layout Standard
27806 The footnote of this table doesn't appear:
27807 \begin_inset Tabular
27808 <lyxtabular version="3" rows="3" columns="4">
27810 <column alignment="center" valignment="top" width="0pt">
27811 <column alignment="center" valignment="top" width="0pt">
27812 <column alignment="center" valignment="top" width="0pt">
27813 <column alignment="center" valignment="top" width="0pt">
27815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27818 \begin_layout Plain Layout
27824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27827 \begin_layout Plain Layout
27833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27836 \begin_layout Plain Layout
27841 \begin_layout Plain Layout
27842 This is a footnote within a table.
27852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27855 \begin_layout Plain Layout
27863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27866 \begin_layout Plain Layout
27872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27875 \begin_layout Plain Layout
27881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27884 \begin_layout Plain Layout
27890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27893 \begin_layout Plain Layout
27901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27904 \begin_layout Plain Layout
27910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27913 \begin_layout Plain Layout
27919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27922 \begin_layout Plain Layout
27928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27931 \begin_layout Plain Layout
27945 \begin_layout Standard
27947 \begin_inset Box Frameless
27956 height_special "totalheight"
27959 \begin_layout Plain Layout
27961 \begin_inset Tabular
27962 <lyxtabular version="3" rows="3" columns="4">
27964 <column alignment="center" valignment="top" width="0pt">
27965 <column alignment="center" valignment="top" width="0pt">
27966 <column alignment="center" valignment="top" width="0pt">
27967 <column alignment="center" valignment="top" width="0pt">
27969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27972 \begin_layout Plain Layout
27978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27981 \begin_layout Plain Layout
27987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27990 \begin_layout Plain Layout
27995 \begin_layout Plain Layout
27996 This is a footnote within a table.
28006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28009 \begin_layout Plain Layout
28017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28020 \begin_layout Plain Layout
28026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28029 \begin_layout Plain Layout
28035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28038 \begin_layout Plain Layout
28044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28047 \begin_layout Plain Layout
28055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28058 \begin_layout Plain Layout
28064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28067 \begin_layout Plain Layout
28073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28076 \begin_layout Plain Layout
28082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28085 \begin_layout Plain Layout
28104 \begin_layout Standard
28105 \begin_inset VSpace bigskip
28108 The document-wide paragraph settings are ignored within minipages.
28109 That means that there will be no space between paragraphs in minipages
28110 although you set it to e.
28111 \begin_inset space \thinspace{}
28115 \begin_inset space ~
28122 in the document settings.
28125 \begin_layout Standard
28126 Minipages can also be used to set a background color for text parts, see
28128 \begin_inset space ~
28132 \begin_inset CommandInset ref
28134 reference "sub:Color-for-Paragraphs"
28141 \begin_layout Standard
28142 \begin_inset Note Greyedout
28145 \begin_layout Plain Layout
28150 You cannot have floats or margin notes inside minipages but minipages can
28151 be used inside tables, floats, and other boxes.
28159 \begin_layout Section
28161 \begin_inset CommandInset label
28163 name "sec:Parboxes"
28171 \begin_layout Plain Layout
28180 \begin_layout Standard
28181 Parboxes are very similar to minipages with the difference that they cannot
28183 The main difference to minipages is that minipages are in contrary to parboxes
28184 no real boxes but LaTeX-environments.
28187 \begin_layout Standard
28189 \begin_inset Box Frameless
28198 height_special "totalheight"
28201 \begin_layout Plain Layout
28202 This a text within a parbox.
28203 This a text within a parbox.
28206 \begin_layout Plain Layout
28207 This footnote won't appear:
28211 \begin_layout Plain Layout
28212 This footnote is inside a parbox and will therefore not appear.
28225 \begin_layout Section
28226 Boxes for Words and Characters
28230 \begin_layout Plain Layout
28231 Boxes ! for Characters
28239 \begin_layout Subsection
28240 Prevent Hyphenation
28241 \begin_inset CommandInset label
28243 name "sec:Prevent-Hyphenation"
28251 \begin_layout Plain Layout
28252 Boxes ! to Prevent Hyphenation
28260 \begin_layout Standard
28261 You can use a special kind of boxes to prevent words or text to be hyphenated.
28262 \begin_inset Newline newline
28265 Here is an example text:
28268 \begin_layout Standard
28269 This line is an example to show how you can prevent the hyphenation of
28270 \begin_inset Quotes eld
28274 \begin_inset Quotes erd
28280 \begin_layout Standard
28281 To prevent the hyphenation of the word
28282 \begin_inset Quotes eld
28286 \begin_inset Quotes erd
28292 \begin_layout Standard
28300 \begin_layout Standard
28301 in TeX-Code before the word.
28302 Behind the word insert a closing brace
28303 \begin_inset Quotes eld
28311 \begin_inset Quotes erd
28317 \begin_layout Standard
28318 This is the result:
28321 \begin_layout Standard
28322 This line is an example to show how you can prevent the hyphenation of
28326 \begin_layout Plain Layout
28336 \begin_inset Quotes eld
28340 \begin_inset Quotes erd
28347 \begin_layout Plain Layout
28357 \begin_layout Standard
28358 You can alternatively set the command
28359 \begin_inset Quotes eld
28369 \begin_inset Quotes grd
28372 as TeX-Code directly before the word:
28375 \begin_layout Standard
28376 This line is an example to show how you can prevent the hyphenation of
28377 \begin_inset Quotes eld
28384 \begin_layout Plain Layout
28394 \begin_inset Quotes erd
28400 \begin_layout Standard
28401 Of course the word now protrudes over the side margin.
28402 To avoid this, add via the menu
28404 Insert\SpecialChar \menuseparator
28406 \begin_inset space ~
28409 Formatting\SpecialChar \menuseparator
28411 \begin_inset space ~
28420 ) a line break before the word:
28423 \begin_layout Standard
28424 This line is an example to show how you can prevent the hyphenation of
28425 \begin_inset Newline newline
28432 \begin_layout Plain Layout
28442 \begin_inset Quotes eld
28446 \begin_inset Quotes erd
28453 \begin_layout Plain Layout
28463 \begin_layout Subsection
28465 \begin_inset CommandInset label
28467 name "sub:Vertical-Alignment"
28475 \begin_layout Plain Layout
28476 Boxes ! for Vertical Alignment
28485 \begin_layout Plain Layout
28494 \begin_layout Standard
28495 With the help of the command
28501 you can align words, characters or other boxes vertically to the surrounding
28509 is used with the following scheme:
28512 \begin_layout Standard
28517 raisebox{lift}[height][depth]{box content}
28520 \begin_layout Standard
28521 The lift can be a positive value to raise the box or a negative value to
28525 \begin_layout Standard
28526 To align for example the word
28527 \begin_inset Quotes eld
28531 \begin_inset Quotes erd
28534 so that the bottom of the
28535 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28543 \begin_inset Quotes eld
28547 \begin_inset Quotes erd
28550 is at the baseline, insert the command
28553 \begin_layout Standard
28563 \begin_layout Standard
28564 in TeX-Code before the word.
28565 Behind the word insert a closing brace
28566 \begin_inset Quotes eld
28574 \begin_inset Quotes erd
28578 \begin_inset Newline newline
28581 This is the result:
28584 \begin_layout Standard
28585 This is a text line with the word
28589 \begin_layout Plain Layout
28601 \begin_inset Quotes eld
28605 \begin_inset Quotes erd
28612 \begin_layout Plain Layout
28622 \begin_layout Standard
28623 \begin_inset VSpace bigskip
28626 When you raise or lower characters in a line, the line distance will be
28630 \begin_layout Standard
28631 This is a text line with the word
28635 \begin_layout Plain Layout
28647 \begin_inset Quotes eld
28651 \begin_inset Quotes erd
28658 \begin_layout Plain Layout
28666 \begin_inset Newline newline
28669 This is a text line with the word
28673 \begin_layout Plain Layout
28683 \begin_inset Quotes eld
28687 \begin_inset Quotes erd
28694 \begin_layout Plain Layout
28704 \begin_layout Standard
28705 If you want to prevent this for a certain reason, set the box height to
28710 \begin_layout Standard
28720 \begin_layout Standard
28721 This is a text line with the word
28725 \begin_layout Plain Layout
28737 \begin_inset Quotes eld
28741 \begin_inset Quotes erd
28748 \begin_layout Plain Layout
28756 \begin_inset Newline newline
28759 This is a text line with the word
28763 \begin_layout Plain Layout
28767 raisebox{0.5cm}[0pt]{
28773 \begin_inset Quotes eld
28777 \begin_inset Quotes erd
28784 \begin_layout Plain Layout
28794 \begin_layout Section
28796 \begin_inset CommandInset label
28798 name "sec:Colored-Boxes"
28806 \begin_layout Plain Layout
28815 \begin_layout Subsection
28820 \begin_layout Plain Layout
28829 \begin_layout Standard
28830 To color the background of text the text must be put into a so called
28831 \begin_inset Quotes eld
28835 \begin_inset Quotes erd
28839 This requires that the LaTeX-package
28847 \begin_layout Plain Layout
28848 LaTeX-packages ! color
28853 is loaded in the document preamble with the command
28856 \begin_layout Standard
28861 @ifundefined{textcolor}
28862 \begin_inset Newline newline
28869 \begin_layout Plain Layout
28880 usepackage{color}}{}
28883 \begin_layout Standard
28888 will be loaded automatically by LyX when you color text
28892 \begin_layout Plain Layout
28893 To avoid that it is loaded twice the command
28897 @ifundef\SpecialChar \textcompwordmark{}
28908 \begin_layout Standard
28909 \begin_inset VSpace medskip
28912 Colorboxes are created with the command
28919 This will be used with the following scheme:
28922 \begin_layout Standard
28927 colorbox{color}{box content}
28930 \begin_layout Standard
28931 The box content can also be a box and colorboxes can also be within other
28935 \begin_layout Standard
28936 The following colors are predefined:
28937 \begin_inset Newline newline
28976 \begin_inset Newline newline
28979 You can also define your own color as described in section
28980 \begin_inset space ~
28984 \begin_inset CommandInset ref
28986 reference "sec:Colored-Tables"
28993 \begin_layout Standard
28995 \begin_inset space \thinspace{}
28999 \begin_inset space ~
29002 a red background for a word, insert the command
29005 \begin_layout Standard
29013 \begin_layout Standard
29014 before the word in TeX-Code.
29015 Behind the word insert a closing brace
29016 \begin_inset Quotes eld
29024 \begin_inset Quotes erd
29028 \begin_inset Newline newline
29031 This is the result:
29034 \begin_layout Standard
29035 This is a line where the word
29039 \begin_layout Plain Layout
29049 \begin_inset Quotes eld
29053 \begin_inset Quotes erd
29060 \begin_layout Plain Layout
29067 has a red background.
29070 \begin_layout Standard
29071 \begin_inset VSpace bigskip
29074 If you would have the box frame in a different color, you can use the command
29081 with the following scheme:
29084 \begin_layout Standard
29089 fcolorbox{frame color}{box color}{box content}
29092 \begin_layout Standard
29106 The frame thickness and the space between the frame and the box content
29107 can be adjusted with the lengths
29119 , respectively, as described in section
29120 \begin_inset space ~
29124 \begin_inset CommandInset ref
29126 reference "sec:Framed-Boxes"
29133 \begin_layout Standard
29134 For the following example the command
29137 \begin_layout Standard
29142 fcolorbox{cyan}{magenta}{
29145 \begin_layout Standard
29149 \begin_layout Standard
29150 Here is an example where the frame line thickness was set to 1
29151 \begin_inset space \thinspace{}
29155 \begin_inset Newline newline
29162 \begin_layout Plain Layout
29177 \begin_layout Plain Layout
29181 fcolorbox{cyan}{magenta}{
29186 This is text within a colored, framed box.
29190 \begin_layout Plain Layout
29200 \begin_layout Standard
29201 \begin_inset VSpace bigskip
29204 Of course you can also have colored text inside a colorbox:
29205 \begin_inset Newline newline
29212 \begin_layout Plain Layout
29216 fcolorbox{cyan}{magenta}{
29223 This is colored text within a colored, framed box.
29229 \begin_layout Plain Layout
29240 \begin_layout Plain Layout
29254 \begin_layout Standard
29257 \begin_inset VSpace medskip
29263 \begin_layout Standard
29264 \begin_inset Note Greyedout
29267 \begin_layout Plain Layout
29272 Text in colorboxes cannot have line breaks.
29273 To color multiple text lines or paragraphs, use a box inside a colorbox
29274 as described in the following.
29282 \begin_layout Subsection
29283 Color for Paragraphs
29284 \begin_inset CommandInset label
29286 name "sub:Color-for-Paragraphs"
29294 \begin_layout Plain Layout
29295 Color ! for Paragraphs
29303 \begin_layout Standard
29304 To set the background color for more than one text line, put the text into
29306 Before the minipage insert the
29315 \begin_layout Standard
29323 \begin_layout Standard
29325 Behind the minipage insert a closing brace
29326 \begin_inset Quotes eld
29334 \begin_inset Quotes erd
29340 \begin_layout Standard
29344 \begin_layout Plain Layout
29348 colorbox{lightgrey}{
29354 \begin_inset Box Frameless
29363 height_special "totalheight"
29366 \begin_layout Plain Layout
29367 This is text with background color.
29368 This is text with background color.
29371 \begin_layout Plain Layout
29372 \begin_inset VSpace defskip
29375 The text can have footnotes
29379 \begin_layout Plain Layout
29380 Another example footnote
29385 and can include tables and figures.
29388 \begin_layout Plain Layout
29390 \begin_inset Tabular
29391 <lyxtabular version="3" rows="3" columns="3">
29393 <column alignment="center" valignment="top" width="0">
29394 <column alignment="center" valignment="top" width="0">
29395 <column alignment="center" valignment="top" width="0">
29397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29400 \begin_layout Plain Layout
29406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29409 \begin_layout Plain Layout
29415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29418 \begin_layout Plain Layout
29426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29429 \begin_layout Plain Layout
29435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29438 \begin_layout Plain Layout
29440 \begin_inset Quotes erd
29448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29451 \begin_layout Plain Layout
29459 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29462 \begin_layout Plain Layout
29468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29471 \begin_layout Plain Layout
29477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29480 \begin_layout Plain Layout
29500 \begin_layout Plain Layout
29510 \begin_layout Section
29511 Rotated and Scaled Boxes
29514 \begin_layout Standard
29515 To use the the commands described in this section, the LaTeX-package
29523 \begin_layout Plain Layout
29524 LaTeX-packages ! graphicx
29529 needs to be loaded in the document preamble with the command
29532 \begin_layout Standard
29537 @ifundefined{rotatebox}
29538 \begin_inset Newline newline
29545 \begin_layout Plain Layout
29556 usepackage{graphicx}}{}
29559 \begin_layout Standard
29560 \begin_inset Note Greyedout
29563 \begin_layout Plain Layout
29568 Some DVI-viewers can't display rotated or scaled material.
29576 \begin_layout Standard
29577 \begin_inset Note Greyedout
29580 \begin_layout Plain Layout
29585 Floats mustn't be inside a rotated or scaled box.
29593 \begin_layout Subsection
29598 \begin_layout Plain Layout
29608 \begin_layout Plain Layout
29618 \begin_layout Plain Layout
29628 \begin_layout Plain Layout
29629 Table Customization ! Rotating
29637 \begin_layout Standard
29638 To rotate material, you can put it into a rotated box.
29639 Such a box is created using the command
29645 in TeX-Code with the following scheme:
29648 \begin_layout Standard
29653 rotatebox[rotation origin]{rotation angle}{box content}
29656 \begin_layout Standard
29657 The rotation origin is specified in the form
29662 The following positions are possible:
29682 (top), and also expedient combinations of the four base positions.
29687 means, that the rotation origin is at the top left corner of the box.
29688 When no rotation origin is specified, the position
29693 The rotation angle is a number that can be negative that specifies the
29695 The rotation direction is counterclockwise.
29698 \begin_layout Standard
29699 In the following example the command
29703 rotatebox[origin=c]{60}{
29705 was inserted as TeX-Code before the text
29706 \begin_inset Quotes eld
29710 \begin_inset Quotes erd
29713 ; after the text the box was closed by a closing brace
29720 \begin_layout Standard
29725 \begin_layout Plain Layout
29729 rotatebox[origin=c]{60}{
29738 \begin_layout Plain Layout
29748 \begin_layout Standard
29749 The box content can also be another box or an inline formula:
29752 \begin_layout Standard
29757 \begin_layout Plain Layout
29761 rotatebox[origin=r]{-60}{
29767 \begin_inset Box Doublebox
29776 height_special "totalheight"
29779 \begin_layout Plain Layout
29789 \begin_layout Plain Layout
29800 \begin_layout Plain Layout
29804 rotatebox[origin=lb]{60}{
29810 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29817 \begin_layout Plain Layout
29827 \begin_layout Standard
29828 or an image or table:
29831 \begin_layout Standard
29836 \begin_layout Plain Layout
29840 rotatebox[origin=lb]{90}{
29846 \begin_inset Graphics
29847 filename clipart/platypus.eps
29857 \begin_layout Plain Layout
29864 with a rotated image
29868 \begin_layout Plain Layout
29872 rotatebox[origin=l]{-90}{
29878 \begin_inset Tabular
29879 <lyxtabular version="3" rows="2" columns="2">
29881 <column alignment="center" valignment="top" width="0">
29882 <column alignment="center" valignment="top" width="0">
29884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29887 \begin_layout Plain Layout
29893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29896 \begin_layout Plain Layout
29904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29907 \begin_layout Plain Layout
29913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29916 \begin_layout Plain Layout
29931 \begin_layout Plain Layout
29941 \begin_layout Subsection
29946 \begin_layout Plain Layout
29956 \begin_layout Plain Layout
29966 \begin_layout Plain Layout
29976 \begin_layout Plain Layout
29977 Table Customization ! Scaling
29985 \begin_layout Standard
29986 To scale material the commands
29998 can be used as TeX-Code.
30001 \begin_layout Standard
30008 is used with the following scheme:
30011 \begin_layout Standard
30016 scalebox{horizontal}[vertical]{box content}
30019 \begin_layout Standard
30020 Horizontal and vertical are the corresponding scaling factors.
30021 If no vertical scaling factor is given, the horizontal factor will also
30022 be used as vertical one.
30025 \begin_layout Standard
30032 creates for example a double size
30036 \begin_layout Plain Layout
30049 \begin_layout Plain Layout
30056 , compared to the document text size.
30059 \begin_layout Standard
30064 scalebox{2}[1]{Hello}
30066 in contrary distorts the
30070 \begin_layout Plain Layout
30083 \begin_layout Plain Layout
30093 \begin_layout Standard
30094 If a the scaling factor is negative, the box content will be mirrored.
30095 Therefore the command
30099 scalebox{-1}[1]{Hello}
30101 can be used to create mirror writing:
30105 \begin_layout Plain Layout
30118 \begin_layout Plain Layout
30128 \begin_layout Standard
30133 scalebox{1}[-1]{Hello}
30139 \begin_layout Plain Layout
30152 \begin_layout Plain Layout
30162 \begin_layout Standard
30167 scalebox{-1}[1]{box content}
30169 there exists the command
30170 \begin_inset Newline newline
30177 reflectbox{box content}
30182 \begin_layout Standard
30183 \begin_inset VSpace bigskip
30192 is used to scale the box to a defined width and height.
30193 The command scheme is:
30196 \begin_layout Standard
30201 resizebox{width}{height}{box content}
30204 \begin_layout Standard
30205 Is one of the two command arguments given as exclamation mark
30209 , the size is set so that the aspect ratio of the box content is kept.
30212 \begin_layout Standard
30217 resizebox{2cm}{1cm}{Hello}
30223 \begin_layout Plain Layout
30227 resizebox{2cm}{1cm}{
30236 \begin_layout Plain Layout
30244 \begin_inset Newline newline
30251 resizebox{2cm}{!}{Hello}
30257 \begin_layout Plain Layout
30270 \begin_layout Plain Layout
30280 \begin_layout Standard
30281 \begin_inset VSpace bigskip
30285 \begin_inset Note Greyedout
30288 \begin_layout Plain Layout
30305 are set to zero, no LaTeX-errors occur when exporting the document but
30306 the exported files can not or only partly be displayed.
30314 \begin_layout Standard
30315 \begin_inset VSpace bigskip
30321 \begin_layout Standard
30322 The boxes can be combined in any order.
30324 \begin_inset space \thinspace{}
30328 \begin_inset space ~
30332 \begin_inset Newline newline
30339 rotatebox[origin=c]{-45}{
30343 reflectbox{Hello}}}
30344 \begin_inset Newline newline
30352 \begin_layout Standard
30357 \begin_layout Plain Layout
30361 rotatebox[origin=c]{-45}{
30374 \begin_layout Plain Layout
30384 \begin_layout Standard
30386 Images, tables, and inline formulas are allowed as box content:
30389 \begin_layout Standard
30394 \begin_layout Plain Layout
30398 rotatebox[origin=c]{-30}{
30408 \begin_inset Graphics
30409 filename clipart/platypus.eps
30419 \begin_layout Plain Layout
30430 \begin_layout Plain Layout
30434 rotatebox[origin=c]{-45}{
30444 \begin_inset Tabular
30445 <lyxtabular version="3" rows="2" columns="2">
30447 <column alignment="center" valignment="top" width="0">
30448 <column alignment="center" valignment="top" width="0">
30450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30453 \begin_layout Plain Layout
30459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30462 \begin_layout Plain Layout
30470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30473 \begin_layout Plain Layout
30479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30482 \begin_layout Plain Layout
30497 \begin_layout Plain Layout
30508 \begin_layout Plain Layout
30512 rotatebox[origin=c]{-45}{
30522 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30529 \begin_layout Plain Layout
30539 \begin_layout Standard
30540 When the global formula style
30544 is used in the document
30548 \begin_layout Plain Layout
30550 \begin_inset Quotes eld
30554 \begin_inset Quotes erd
30557 is added to the document class options.
30562 , also display formulas can be scaled.
30565 \begin_layout Chapter
30570 \begin_layout Plain Layout
30579 \begin_layout Standard
30582 Insert\SpecialChar \menuseparator
30585 you can insert external material to your document.
30589 \begin_layout Description
30591 \begin_inset space ~
30594 Document Another LyX document; its content is directly inserted to your
30598 \begin_layout Description
30600 \begin_inset space ~
30603 Text A text document; every of its text lines is inserted to your document
30607 \begin_layout Description
30609 \begin_inset space ~
30613 \begin_inset space ~
30617 \begin_inset space ~
30620 Lines A text document; its text lines are inserted as they are.
30621 Empty text lines creates a new paragraph in your document.
30624 \begin_layout Description
30626 \begin_inset space ~
30629 Material Files in various formats.
30632 \begin_layout Description
30634 \begin_inset space ~
30637 Document LyX or LaTeX-documents.
30640 \begin_layout Section
30645 \begin_layout Plain Layout
30646 External Stuff ! External Material
30654 \begin_layout Standard
30655 The external material feature allows you to insert files to your document
30656 without converting them previously to a format that can be read by the
30657 document output format because LyX takes care of needed conversions.
30658 This is similar to images that can be inserted in various image formats
30662 \begin_layout Standard
30663 External material can be inserted via the
30667 dialog that is accessible with the menu
30669 Insert\SpecialChar \menuseparator
30670 File\SpecialChar \menuseparator
30672 \begin_inset space ~
30678 Currently the following file types (
30685 \begin_layout Description
30686 ChessDiagram This template supports chess position diagrams made with the
30690 \begin_inset CommandInset href
30693 target "http://en.wikipedia.org/wiki/XBoard"
30702 \begin_layout Description
30703 Date This inserts the date in the form
30708 This is a date inserted as external material:
30709 \begin_inset External
30716 \begin_inset space ~
30720 \begin_inset Note Note
30723 \begin_layout Plain Layout
30724 Remove the protected space when bug 4398 is fixed!
30730 \begin_inset Newline newline
30733 The date is not shown within LyX, only in the output.
30734 There are two other methods of inserting a date: Via menu
30736 Insert\SpecialChar \menuseparator
30739 and with the LaTeX command
30746 The different methods are compared in Table
30747 \begin_inset space ~
30751 \begin_inset CommandInset ref
30753 reference "tab:Comparison-of-the"
30760 \begin_layout Description
30761 LilyPond This template is used for music notation typeset with the program
30762 \begin_inset Newline linebreak
30768 \begin_inset CommandInset href
30771 target "http://en.wikipedia.org/wiki/LilyPond"
30780 \begin_layout Description
30781 RasterImage This can be used for bitmap images.
30782 Nearly all popular image formats are supported.
30783 The image can be treated in the
30787 dialog like the images that are usually included via the
30791 dialog as described in section
30792 \begin_inset space ~
30796 \begin_inset CommandInset ref
30798 reference "sec:Graphics-Dialog"
30803 The difference is that only raster images are allowed, that means that
30804 PDF and EPS-images are not supported.
30807 \begin_layout Description
30808 XFig This template supports images created with the program
30811 \begin_inset CommandInset href
30814 target "http://en.wikipedia.org/wiki/Xfig"
30823 \begin_layout Standard
30824 \begin_inset Float table
30830 \begin_layout Plain Layout
30831 \begin_inset Caption
30833 \begin_layout Plain Layout
30834 \begin_inset CommandInset label
30836 name "tab:Comparison-of-the"
30840 Comparison of the date input methods.
30848 \begin_layout Plain Layout
30850 \begin_inset Tabular
30851 <lyxtabular version="3" rows="4" columns="4">
30853 <column alignment="center" valignment="top" width="0">
30854 <column alignment="center" valignment="top" width="0">
30855 <column alignment="center" valignment="top" width="0">
30856 <column alignment="center" valignment="top" width="0">
30858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30861 \begin_layout Plain Layout
30867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30870 \begin_layout Plain Layout
30873 External Material\SpecialChar \menuseparator
30879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30882 \begin_layout Plain Layout
30885 Insert\SpecialChar \menuseparator
30891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30894 \begin_layout Plain Layout
30906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30909 \begin_layout Plain Layout
30915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30918 \begin_layout Plain Layout
30924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30927 \begin_layout Plain Layout
30933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30936 \begin_layout Plain Layout
30937 as TeX-Code inset box
30944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30947 \begin_layout Plain Layout
30953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30956 \begin_layout Plain Layout
30962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30965 \begin_layout Plain Layout
30971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30974 \begin_layout Plain Layout
30982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30985 \begin_layout Plain Layout
30991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30994 \begin_layout Plain Layout
31000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31003 \begin_layout Plain Layout
31009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31012 \begin_layout Plain Layout
31031 \begin_layout Standard
31032 When you use the option
31044 dialog, only the path to the inserted file is shown in the output.
31045 \begin_inset Newline newline
31048 External material is displayed in LyX either as box like this:
31049 \begin_inset Graphics
31050 filename clipart/ExternalMaterialQt4.png
31052 scaleBeforeRotation
31056 or as image, depending on the setting in the
31059 \begin_inset space ~
31071 \begin_layout Standard
31078 manual explains how you can define your own templates.
31081 \begin_layout Section
31083 \begin_inset CommandInset label
31085 name "sec:Child-Documents"
31093 \begin_layout Plain Layout
31094 External Stuff ! Child Documents
31103 \begin_layout Plain Layout
31112 \begin_layout Standard
31113 Child documents are used when you have a long document consisting of several
31114 larger parts or sections.
31115 For maintenance it is often useful and sometimes even required to split
31116 the document in several files that can be revised separately.
31117 The different documents are then the so called child documents and a master
31118 document connects them to print the full document or parts of it.
31121 \begin_layout Standard
31122 Included documents are displayed in LyX as a box like this:
31123 \begin_inset Graphics
31124 filename clipart/ChildDocumentQt4.png
31126 scaleBeforeRotation
31130 To include child documents to a master document use the menu
31132 Insert\SpecialChar \menuseparator
31133 File\SpecialChar \menuseparator
31135 \begin_inset space ~
31141 A dialog pops up where you can choose between four include methods:
31144 \begin_layout Description
31145 Include You can include LyX and LaTeX-documents.
31154 dialog, the included documents will be opened in LyX in a new file tab
31155 so that you can modify it.
31156 \begin_inset Newline newline
31162 \begin_layout Standard
31163 Here is a child document inserted using
31168 \begin_inset CommandInset include
31169 LatexCommand include
31170 filename "DummyDocument1.lyx"
31177 \begin_layout Standard
31178 The section numbering includes the sections of the included files in the
31179 order they are inserted in the master document.
31180 The included example document has for example a subsection that is numbered
31181 as subsection of this section.
31182 Labels of included documents can be referenced: Subsection
31183 \begin_inset space ~
31187 \begin_inset CommandInset ref
31189 reference "sub:External-Subsection-1"
31196 \begin_layout Standard
31197 The preamble of the child document is ignored, only the preamble of the
31198 master document is used.
31199 Included documents are inserted starting on a new page and end with a page
31203 \begin_layout Standard
31204 With the LaTeX-command
31210 you can specify which included child documents are processed when the output
31212 This is useful when you are perhaps only working on a certain chapter of
31213 your large document as this saves compiling time.
31220 is inserted to the master document preamble.
31221 It takes a comma-separated list of the filenames as argument, e.g.
31224 \begin_layout Standard
31229 includeonly{chapter1,chapter5}
31232 \begin_layout Standard
31233 will only process the included files named
31234 \begin_inset Quotes eld
31238 \begin_inset Quotes erd
31242 \begin_inset Quotes eld
31246 \begin_inset Quotes erd
31250 \begin_inset Quotes eld
31254 \begin_inset Quotes erd
31260 \begin_layout Standard
31261 \begin_inset Note Greyedout
31264 \begin_layout Plain Layout
31269 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31270 w the document in case that the child document uses another document class
31271 than the master document as this will lead to unexpected outputs.
31279 \begin_layout Description
31280 Input This method is very similar to the Include method.
31281 The differences are:
31285 \begin_layout Itemize
31286 Input files don't start with a new page and don't end with a page break.
31289 \begin_layout Itemize
31290 Input files can be previewed in LyX when
31293 \begin_inset space ~
31298 is enabled in LyX's preferences under
31301 \begin_inset space ~
31305 \begin_inset space ~
31308 feel\SpecialChar \menuseparator
31314 \begin_layout Itemize
31325 \begin_layout Standard
31326 Here is a child document inserted using
31331 \begin_inset CommandInset include
31333 filename "DummyDocument2.lyx"
31340 \begin_layout Description
31341 Verbatim With this method every text file can be included.
31342 The file is shown in the output with its source code, no command used in
31343 the text is invoked.
31344 You can use the option
31346 Mark spaces in output
31348 that displays the character
31349 \begin_inset Quotes eld
31356 \begin_layout Plain Layout
31366 \begin_inset Quotes erd
31369 for every space character in the source code.
31370 The difference to the method via the menu
31372 Insert\SpecialChar \menuseparator
31373 File\SpecialChar \menuseparator
31375 \begin_inset space ~
31380 is that the document content is not shown in LyX.
31383 \begin_layout Standard
31384 Here is a child document inserted as Verbatim:
31385 \begin_inset CommandInset include
31386 LatexCommand verbatiminput
31387 filename "DummyTextDocument.txt"
31392 \begin_inset VSpace bigskip
31395 Here is a child document inserted as Verbatim using the
31397 Mark spaces in output
31400 \begin_inset CommandInset include
31401 LatexCommand verbatiminput*
31402 filename "DummyTextDocument.txt"
31409 \begin_layout Standard
31410 \begin_inset VSpace bigskip
31416 \begin_layout Standard
31417 \begin_inset Note Greyedout
31420 \begin_layout Plain Layout
31425 As you can see in the examples above, the text of the documents included
31430 is not broken at the end of the document lines.
31438 \begin_layout Description
31439 Listings This type is described in chapter
31440 \begin_inset space ~
31444 \begin_inset CommandInset ref
31446 reference "cha:Program-Code-Listings"
31453 \begin_layout Standard
31454 \begin_inset Note Greyedout
31457 \begin_layout Plain Layout
31462 Including the same document twice in a document using different methods
31463 could cause LaTeX-problems.
31471 \begin_layout Chapter
31472 Program Code Listings
31473 \begin_inset CommandInset label
31475 name "cha:Program-Code-Listings"
31483 \begin_layout Plain Layout
31493 \begin_layout Plain Layout
31503 \begin_layout Plain Layout
31512 \begin_layout Standard
31513 To include and typeset program code you can use the
31517 inset that can be inserted via the menu
31519 Insert\SpecialChar \menuseparator
31531 \begin_layout Plain Layout
31532 LaTeX-packages ! listings
31537 provides a powerful and flexible way to insert program source code to your
31541 \begin_layout Standard
31542 When right-clicking on a listings inset a dialog pops up where you can set
31543 the listings format.
31546 \begin_layout Standard
31547 By default, a listing starts a new paragraph in the output.
31548 The placement option
31551 \begin_inset space ~
31556 prints the listing inline like this:
31557 \begin_inset listings
31558 lstparams "language={C++}"
31562 \begin_layout Plain Layout
31569 \begin_inset Newline newline
31576 creates a listings float where you can specify the placement options
31577 \begin_inset Quotes eld
31585 \begin_inset Quotes erd
31589 \begin_inset Quotes eld
31597 \begin_inset Quotes erd
31601 \begin_inset Quotes eld
31609 \begin_inset Quotes erd
31613 \begin_inset Quotes eld
31621 \begin_inset Quotes erd
31624 corresponding to the float placement options described in section
31625 \begin_inset space ~
31629 \begin_inset CommandInset ref
31631 reference "sec:Float-Placement"
31636 The placement options can be mixed and are inserted without any separation,
31638 \begin_inset space \thinspace{}
31642 \begin_inset space ~
31646 \begin_inset Quotes eld
31654 \begin_inset Quotes erd
31659 \begin_inset Quotes eld
31663 \begin_inset Quotes erd
31666 has sometimes no effect, but you don't need to use the
31670 option in this case as also non-float listings can have captions and be
31674 \begin_layout Standard
31675 You can add captions to listings with the menu
31677 Insert\SpecialChar \menuseparator
31681 Listings can be referenced like floats: Listing
31682 \begin_inset space ~
31686 \begin_inset CommandInset ref
31688 reference "lst:Example-Listing"
31695 \begin_layout Standard
31696 \begin_inset listings
31697 lstparams "language=Python"
31701 \begin_layout Plain Layout
31702 \begin_inset Caption
31704 \begin_layout Plain Layout
31705 \begin_inset CommandInset label
31707 name "lst:Example-Listing"
31711 Example Listing float
31716 # Example listing float
31719 \begin_layout Plain Layout
31723 \begin_layout Plain Layout
31724 'this is a python function'
31727 \begin_layout Plain Layout
31736 \begin_layout Standard
31737 When you have set a programming language in the listings dialog, the keywords
31738 of this language will be recognized and specially typeset in the output.
31739 In the example listings the Python keyword
31740 \begin_inset Quotes eld
31744 \begin_inset Quotes erd
31747 is recognized and printed bold in the output.
31750 \begin_layout Standard
31751 \begin_inset Note Greyedout
31754 \begin_layout Plain Layout
31759 If you don't get bold keywords when using typewriter fonts, your typewriter
31760 font probably doesn't provide a bold shape.
31761 In this case select a different one in the menu
31763 Document\SpecialChar \menuseparator
31764 Settings\SpecialChar \menuseparator
31776 provide bold shapes.)
31784 \begin_layout Standard
31788 \begin_inset space ~
31793 of the listings dialog you can specify the line numbering style.
31794 You can insert a number to specify which lines are numbered to the field
31800 When you insert e.g.
31802 \begin_inset Quotes eld
31806 \begin_inset Quotes erd
31809 , only every 3rd line will be numbered.
31812 \begin_layout Standard
31813 You can furthermore specify a range of lines, only these will then appear
31818 \begin_inset space ~
31823 should be used when you use national characters like the German umlauts
31825 \begin_inset Newline newline
31828 Here is an example listing with left line numbering, step
31829 \begin_inset Quotes eld
31833 \begin_inset Quotes erd
31837 \begin_inset Quotes eld
31841 \begin_inset Quotes erd
31845 \begin_inset Quotes eld
31849 \begin_inset space ~
31853 \begin_inset Quotes erd
31857 \begin_inset Quotes eld
31861 \begin_inset space ~
31865 \begin_inset space ~
31869 \begin_inset Quotes erd
31873 \begin_inset space \thinspace{}
31877 \begin_inset space \thinspace{}
31883 \begin_layout Standard
31884 \begin_inset listings
31885 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31889 \begin_layout Plain Layout
31893 \begin_layout Plain Layout
31894 'this is a python function'
31897 \begin_layout Plain Layout
31901 \begin_layout Plain Layout
31905 \begin_layout Plain Layout
31906 'This is a German word: Tschüß'
31909 \begin_layout Plain Layout
31913 \begin_layout Plain Layout
31917 \begin_layout Plain Layout
31918 'this is a python function'
31921 \begin_layout Plain Layout
31930 \begin_layout Standard
31931 \begin_inset Note Greyedout
31934 \begin_layout Plain Layout
31939 Due to a bug in the
31943 package the line numbering is shifted by a line by every previous listing.
31944 That's the reason why the lines 2 and 5 are numbered in the above listing
31945 and not the lines 3 and 6.
31953 \begin_layout Standard
31954 \begin_inset VSpace bigskip
31960 \begin_layout Standard
31961 It is also possible to print lines from a file as listing.
31962 To do this, use the menu
31964 Insert\SpecialChar \menuseparator
31965 File\SpecialChar \menuseparator
31968 and choose the type
31976 \begin_layout Plain Layout
31977 The other child document types are described in section
31978 \begin_inset space ~
31982 \begin_inset CommandInset ref
31984 reference "sec:Child-Documents"
31993 In the child document dialog you can specify the listing parameters in
31995 To show a list of all available parameters, type in a question mark
31996 \begin_inset Quotes eld
32000 \begin_inset Quotes erd
32006 \begin_layout Standard
32007 To reference child document listings, write a label text into the corresponding
32008 field of the child document dialog.
32009 The label can then be referenced using the menu
32011 Insert\SpecialChar \menuseparator
32017 \begin_layout Standard
32019 \begin_inset space ~
32023 \begin_inset CommandInset ref
32025 reference "lst:file-listing"
32029 is an example for a listing of a file; there the lines 10
32030 \begin_inset space \thinspace{}
32034 \begin_inset space \thinspace{}
32037 15 of this LyX file are listed.
32040 \begin_layout Standard
32041 \begin_inset CommandInset include
32042 LatexCommand lstinputlisting
32043 filename "EmbeddedObjects.lyx"
32044 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32051 \begin_layout Standard
32052 \begin_inset VSpace bigskip
32058 \begin_layout Standard
32059 Global listings settings can be set in the
32061 Document\SpecialChar \menuseparator
32062 Settings\SpecialChar \menuseparator
32066 To get there a list of available options, type in a question mark
32067 \begin_inset Quotes eld
32071 \begin_inset Quotes erd
32077 \begin_inset space ~
32085 \begin_layout Standard
32086 For more information about the
32090 package, we refer to its documentation
32091 \begin_inset CommandInset citation
32100 \begin_layout Standard
32101 \begin_inset Newpage newpage
32107 \begin_layout Chapter
32109 Units available in LyX
32113 \begin_layout Plain Layout
32120 \begin_inset CommandInset label
32122 name "cha:Units-available-in"
32129 \begin_layout Standard
32130 To understand the units described in this documentation, Table
32131 \begin_inset space ~
32135 \begin_inset CommandInset ref
32137 reference "tab:Units"
32141 explains all units available in LyX.
32144 \begin_layout Standard
32145 \begin_inset Float table
32151 \begin_layout Plain Layout
32152 \begin_inset Caption
32154 \begin_layout Plain Layout
32155 \begin_inset CommandInset label
32169 \begin_layout Plain Layout
32170 \begin_inset VSpace medskip
32176 \begin_layout Plain Layout
32178 \begin_inset Tabular
32179 <lyxtabular version="3" rows="20" columns="2">
32181 <column alignment="center" valignment="top" width="0">
32182 <column alignment="center" valignment="top" width="0">
32184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32187 \begin_layout Plain Layout
32193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32196 \begin_layout Plain Layout
32204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32207 \begin_layout Plain Layout
32213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32216 \begin_layout Plain Layout
32224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32227 \begin_layout Plain Layout
32233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32236 \begin_layout Plain Layout
32244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32247 \begin_layout Plain Layout
32253 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32256 \begin_layout Plain Layout
32264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32267 \begin_layout Plain Layout
32273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32276 \begin_layout Plain Layout
32278 \begin_inset space \thinspace{}
32282 \begin_inset space \thinspace{}
32292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32295 \begin_layout Plain Layout
32301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32304 \begin_layout Plain Layout
32306 \begin_inset space \thinspace{}
32310 \begin_inset space \thinspace{}
32320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32323 \begin_layout Plain Layout
32329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32332 \begin_layout Plain Layout
32333 scaled point (65536
32334 \begin_inset space \thinspace{}
32338 \begin_inset space \thinspace{}
32348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32351 \begin_layout Plain Layout
32357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32360 \begin_layout Plain Layout
32362 \begin_inset space \thinspace{}
32366 \begin_inset space \thinspace{}
32376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32379 \begin_layout Plain Layout
32385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32388 \begin_layout Plain Layout
32390 \begin_inset space \thinspace{}
32394 \begin_inset Formula $\approx$
32398 \begin_inset space \thinspace{}
32408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32411 \begin_layout Plain Layout
32417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32420 \begin_layout Plain Layout
32422 \begin_inset space \thinspace{}
32426 \begin_inset space \thinspace{}
32436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32439 \begin_layout Plain Layout
32445 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32448 \begin_layout Plain Layout
32449 % of original image width
32456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32459 \begin_layout Plain Layout
32465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32468 \begin_layout Plain Layout
32476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32479 \begin_layout Plain Layout
32485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32488 \begin_layout Plain Layout
32496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32499 \begin_layout Plain Layout
32505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32508 \begin_layout Plain Layout
32516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32519 \begin_layout Plain Layout
32525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32528 \begin_layout Plain Layout
32536 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32539 \begin_layout Plain Layout
32545 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32548 \begin_layout Plain Layout
32556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32559 \begin_layout Plain Layout
32565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32568 \begin_layout Plain Layout
32576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32579 \begin_layout Plain Layout
32585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32588 \begin_layout Plain Layout
32600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32603 \begin_layout Plain Layout
32609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32612 \begin_layout Plain Layout
32624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32627 \begin_layout Plain Layout
32633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32636 \begin_layout Plain Layout
32638 \begin_inset space \thinspace{}
32642 \begin_inset space \thinspace{}
32663 \begin_layout Chapter
32664 Output File Formats with Graphics
32665 \begin_inset CommandInset label
32667 name "cha:Output-File-Formats"
32674 \begin_layout Section
32679 \begin_layout Plain Layout
32689 \begin_layout Plain Layout
32694 \begin_layout Plain Layout
32705 \begin_layout Plain Layout
32720 \begin_layout Standard
32721 This file type has the extension
32722 \begin_inset Quotes eld
32730 \begin_inset Quotes erd
32735 \begin_inset Quotes eld
32739 \begin_inset Quotes erd
32742 (DVI), because it is completely portable; you can move them from one machine
32743 to another without needing to do any sort of conversion.
32744 At the time when this file-format was developed, this was no matter of
32746 DVIs are used for quick previews and as pre-stage for other output formats,
32750 \begin_layout Standard
32751 \begin_inset Note Greyedout
32754 \begin_layout Plain Layout
32759 DVI-files doesn't contain images, they will only be a linked.
32764 So don't forget this, if you move your
32768 file to another computer.
32769 This property can also slow down your computer when you view the DVI.
32770 Because the DVI-viewer has to convert the image in the background to make
32771 it visible when you scroll in the DVI.
32772 So we recommend to use PDF for files with many images.
32775 \begin_layout Standard
32776 You can export your document to DVI by using the menu
32778 File\SpecialChar \menuseparator
32779 Export\SpecialChar \menuseparator
32783 You can view your document as DVI via the
32787 menu or by using the toolbar button
32788 \begin_inset Graphics
32789 filename ../images/buffer-view_dvi.png
32791 scaleBeforeRotation
32798 \begin_layout Section
32800 \begin_inset CommandInset label
32802 name "sec:PostScript"
32810 \begin_layout Plain Layout
32811 File Formats ! PostScript
32820 \begin_layout Plain Layout
32825 \begin_layout Plain Layout
32836 \begin_layout Plain Layout
32851 \begin_layout Standard
32852 This file type has the extension
32853 \begin_inset Quotes eld
32861 \begin_inset Quotes erd
32865 PostScript was developed by the company
32869 as printer language.
32870 The file contains therefore commands that the printer uses to print the
32872 PostScript can be seen as
32873 \begin_inset Quotes eld
32876 programming language
32877 \begin_inset Quotes erd
32880 ; you can calculate with it and draw diagrams and images
32884 \begin_layout Plain Layout
32885 If you are interested to learn more about this, have a look at the LaTeX-package
32891 \begin_inset CommandInset citation
32903 Due to this ability, the files are often bigger than PDFs.
32906 \begin_layout Standard
32907 PostScript can only contain images in the format
32908 \begin_inset Quotes eld
32911 Encapsulated PostScript
32912 \begin_inset Quotes erd
32915 (EPS, file extension
32916 \begin_inset Quotes eld
32924 \begin_inset Quotes erd
32928 As LyX allows you to use any known image format in your document, it has
32929 to convert images in the background to EPS.
32930 If you have e.g 50 images in your document, LyX has to do 50 conversions
32931 whenever you view or export your document.
32932 This will slow down your work flow with LyX drastically.
32933 So if you plan to use PostScript, you can insert your images directly as
32934 EPS to avoid this problem.
32937 \begin_layout Standard
32938 You can export your document to PostScript using the menu
32940 File\SpecialChar \menuseparator
32941 Export\SpecialChar \menuseparator
32945 You can view your document as PostScript via the
32949 menu or by using the toolbar button
32950 \begin_inset Graphics
32951 filename ../images/buffer-view_ps.png
32953 scaleBeforeRotation
32960 \begin_layout Section
32962 \begin_inset CommandInset label
32972 \begin_layout Plain Layout
32982 \begin_layout Plain Layout
32991 \begin_layout Standard
32992 This file type has the extension
32993 \begin_inset Quotes eld
33001 \begin_inset Quotes erd
33006 \begin_inset Quotes eld
33009 Portable Document Format
33010 \begin_inset Quotes erd
33013 (PDF) is developed by
33017 as derivative from PostScript.
33018 It is more compressed and it uses much less commands than PostScript.
33020 \begin_inset Quotes eld
33024 \begin_inset Quotes erd
33027 implies, it can be processed at any computer system and the printed output
33028 looks exactly the same.
33031 \begin_layout Standard
33032 PDF can contain images in its own PDF format, in the format
33033 \begin_inset Quotes eld
33036 Joint Photographic Experts Group
33037 \begin_inset Quotes erd
33040 (JPG, file extension
33041 \begin_inset Quotes eld
33049 \begin_inset Quotes erd
33053 \begin_inset Quotes eld
33061 \begin_inset Quotes erd
33064 ), and in the format
33065 \begin_inset Quotes eld
33068 Portable Network Graphics
33069 \begin_inset Quotes erd
33072 (PNG, file extension
33073 \begin_inset Quotes eld
33081 \begin_inset Quotes erd
33085 Nevertheless you can use any other image format, because LyX converts them
33086 in the background to one of these formats.
33087 But as described in the section about PostScript, the image conversion
33088 will slow down your work flow.
33089 So it is recommended to use images in one of the three mentioned formats.
33092 \begin_layout Standard
33093 You can export your document to PDF via the menu
33095 File\SpecialChar \menuseparator
33098 in three different ways:
33101 \begin_layout Description
33103 \begin_inset space ~
33106 (ps2pdf) This uses the program
33110 that creates a PDF from a PostScript-version of your file.
33111 The PostScript-version is produced by the program
33115 which uses a DVI-version as intermediate step.
33116 So this export variant consist of three conversions.
33119 \begin_layout Description
33121 \begin_inset space ~
33124 (dvipdfm) This uses the program
33128 that converts your file in the background to DVI and in a second step to
33132 \begin_layout Description
33134 \begin_inset space ~
33137 (pdflatex) This uses the program
33141 that converts your file directly to PDF.
33144 \begin_layout Standard
33145 It is recommended to use
33148 \begin_inset space ~
33157 supports all features of actual PDF-versions, is quick and works stable
33163 is not under development and therefore a bit outdated.
33166 \begin_layout Standard
33167 You can view your document as PDF via the
33171 menu or by using the toolbar button
33172 \begin_inset Graphics
33173 filename ../images/buffer-view_pdf2.png
33175 scaleBeforeRotation
33186 \begin_inset space ~
33194 \begin_layout Chapter
33195 Explanation of Equation
33196 \begin_inset space ~
33200 \begin_inset CommandInset ref
33207 \begin_inset CommandInset label
33209 name "cha:Explanation-of-Equation"
33216 \begin_layout Standard
33222 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33225 can be calculated to
33228 \begin_layout Standard
33229 \begin_inset Formula \begin{equation}
33230 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}
33237 \begin_layout Standard
33239 \begin_inset Formula $W_{g\, n}$
33242 is the given width of all cells.
33249 is the LaTeX-length between the cell text and the cell border, its default
33251 \begin_inset space \thinspace{}
33261 is the thickness of the cell border line, the default is 0.4
33262 \begin_inset space \thinspace{}
33268 \begin_layout Standard
33270 \begin_inset space ~
33274 \begin_inset CommandInset ref
33276 reference "eq:Wtot_n"
33280 , the total width of a multicolumn
33281 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33287 \begin_layout Standard
33288 \begin_inset Formula \begin{equation}
33289 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33296 \begin_layout Standard
33297 By setting equation
33298 \begin_inset space ~
33302 \begin_inset CommandInset ref
33304 reference "eq:Wtot_n"
33309 \begin_inset CommandInset ref
33311 reference "eq:Wtot_mult"
33315 equal we can calculate the needed given width
33316 \begin_inset Formula $W_{g\, n}$
33323 columns are spanned, so that each column has a total width of
33324 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33330 \begin_layout Standard
33331 \begin_inset Formula \begin{equation}
33332 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33339 \begin_layout Bibliography
33340 \begin_inset CommandInset bibitem
33341 LatexCommand bibitem
33342 key "latexcompanion"
33346 Frank Mittelbach and Michel Goossens:
33348 The LaTeX Companion Second Edition.
33351 Addison-Wesley, 2004
33354 \begin_layout Bibliography
33355 \begin_inset CommandInset bibitem
33356 LatexCommand bibitem
33361 Helmut Kopka and Patrick W.
33364 A Guide to LaTeX Fourth Edition.
33367 Addison-Wesley, 2003
33370 \begin_layout Bibliography
33371 \begin_inset CommandInset bibitem
33372 LatexCommand bibitem
33379 LaTeX: A Document Preparation System.
33382 Addison-Wesley, second edition, 1994
33385 \begin_layout Bibliography
33386 \begin_inset CommandInset bibitem
33387 LatexCommand bibitem
33392 Documentation of the LaTeX-package
33395 \begin_inset CommandInset href
33398 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33408 \begin_layout Plain Layout
33409 LaTeX-packages ! booktabs
33417 \begin_layout Bibliography
33418 \begin_inset CommandInset bibitem
33419 LatexCommand bibitem
33424 Documentation of the LaTeX-package
33427 \begin_inset CommandInset href
33430 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33440 \begin_layout Plain Layout
33441 LaTeX-packages ! caption
33449 \begin_layout Bibliography
33450 \begin_inset CommandInset bibitem
33451 LatexCommand bibitem
33456 Documentation of the LaTeX-package
33459 \begin_inset CommandInset href
33462 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33472 \begin_layout Plain Layout
33473 LaTeX-packages ! endfloat
33481 \begin_layout Bibliography
33482 \begin_inset CommandInset bibitem
33483 LatexCommand bibitem
33488 Documentation of the LaTeX-package
33491 \begin_inset CommandInset href
33494 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33504 \begin_layout Plain Layout
33505 LaTeX-packages ! wrapfig
33509 \begin_layout Plain Layout
33517 \begin_layout Plain Layout
33528 \begin_layout Plain Layout
33544 \begin_layout Plain Layout
33555 \begin_layout Plain Layout
33570 \begin_layout Bibliography
33571 \begin_inset CommandInset bibitem
33572 LatexCommand bibitem
33577 Documentation of the LaTeX-package
33580 \begin_inset CommandInset href
33583 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33593 \begin_layout Plain Layout
33594 LaTeX-packages ! footmisc
33602 \begin_layout Bibliography
33603 \begin_inset CommandInset bibitem
33604 LatexCommand bibitem
33609 Documentation of the LaTeX-package
33612 \begin_inset CommandInset href
33615 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33625 \begin_layout Plain Layout
33626 LaTeX-packages ! hyperref
33634 \begin_layout Bibliography
33635 \begin_inset CommandInset bibitem
33636 LatexCommand bibitem
33641 Documentation of the LaTeX-package
33644 \begin_inset CommandInset href
33647 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33657 \begin_layout Plain Layout
33658 LaTeX-packages ! hyperref
33666 \begin_layout Bibliography
33667 \begin_inset CommandInset bibitem
33668 LatexCommand bibitem
33673 Documentation of the LaTeX-package
33676 \begin_inset CommandInset href
33679 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33689 \begin_layout Plain Layout
33690 LaTeX-packages ! koma-script
33698 \begin_layout Bibliography
33699 \begin_inset CommandInset bibitem
33700 LatexCommand bibitem
33705 Documentation of the LaTeX-package
33708 \begin_inset CommandInset href
33711 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33721 \begin_layout Plain Layout
33722 LaTeX-packages ! listings
33730 \begin_layout Bibliography
33731 \begin_inset CommandInset bibitem
33732 LatexCommand bibitem
33737 Documentation of the LaTeX-package
33740 \begin_inset CommandInset href
33743 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33753 \begin_layout Plain Layout
33754 LaTeX-packages ! marginnote
33762 \begin_layout Bibliography
33763 \begin_inset CommandInset bibitem
33764 LatexCommand bibitem
33769 Web page of the LaTeX-package
33772 \begin_inset CommandInset href
33775 target "http://tug.org/PSTricks/"
33785 \begin_layout Plain Layout
33786 LaTeX-packages ! PSTricks
33794 \begin_layout Bibliography
33795 \begin_inset CommandInset bibitem
33796 LatexCommand bibitem
33801 Documentation of the LaTeX-package
33804 \begin_inset CommandInset href
33807 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33817 \begin_layout Plain Layout
33818 LaTeX-packages ! sidecap
33826 \begin_layout Bibliography
33827 \begin_inset CommandInset bibitem
33828 LatexCommand bibitem
33834 \begin_inset CommandInset href
33837 target "http://wiki.lyx.org/LyX/NewInLyX16"
33841 about new features in
33848 \begin_layout Standard
33849 \begin_inset CommandInset index_print
33850 LatexCommand printindex
33857 \begin_layout Standard
33858 \begin_inset FloatList figure
33865 \begin_layout Standard
33866 \begin_inset FloatList table
33873 \begin_layout Standard
33874 \begin_inset FloatList algorithm