1 #LyX 2.0.0beta1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
147 % redefine the \LyX macro for PDF bookmarks
148 \def\LyX{\texorpdfstring{%
149 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
152 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
153 \use_default_options false
154 \maintain_unincluded_children false
160 \font_typewriter default
161 \font_default_family default
169 \default_output_format default
171 \bibtex_command default
172 \index_command default
176 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
177 \pdf_author "LyX Team, Uwe Stöhr"
178 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
179 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
181 \pdf_bookmarksnumbered true
182 \pdf_bookmarksopen true
183 \pdf_bookmarksopenlevel 1
184 \pdf_breaklinks false
188 \pdf_pdfusetitle false
189 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
199 \paperorientation portrait
202 \notefontcolor #0000ff
209 \paragraph_separation skip
211 \quotes_language english
214 \paperpagestyle default
218 \tracking_changes false
219 \output_changes false
221 \html_be_strict false
227 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
236 \begin_layout Plain Layout
238 If you have comments or error corrections, please send them to the LyX Documenta
240 \begin_inset CommandInset href
242 name "lyx-docs@lists.lyx.org"
243 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
254 \begin_inset Note Note
257 \begin_layout Plain Layout
264 \begin_inset Newline newline
268 \begin_inset Newline newline
276 \begin_layout Standard
277 \begin_inset CommandInset toc
278 LatexCommand tableofcontents
285 \begin_layout Standard
286 \begin_inset Note Note
289 \begin_layout Plain Layout
290 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
308 If they are not installed you can export the document anyway but the sections
309 where the packages are required won't appear in the output.
312 \begin_layout Plain Layout
313 The latest PDF-version of this document can be found here:
314 \begin_inset Newline newline
319 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
327 \begin_layout Chapter
329 \begin_inset Index idx
332 \begin_layout Plain Layout
339 \begin_inset Index idx
342 \begin_layout Plain Layout
347 \begin_layout Plain Layout
358 \begin_layout Plain Layout
373 \begin_layout Section
375 \begin_inset Index idx
378 \begin_layout Plain Layout
379 Figures ! Graphics Dialog
385 \begin_inset CommandInset label
387 name "sec:Graphics-Dialog"
394 \begin_layout Standard
395 To insert an image into your document, place the cursor at the text position
396 you want and click on the toolbar icon
397 \begin_inset Graphics
398 filename ../images/dialog-show-new-inset_graphics.png
406 Insert\SpecialChar \menuseparator
410 Then a dialog will appear to choose the file to load.
411 The image will appear in the output exactly at the position where it is
415 \begin_layout Standard
416 The graphics dialog can be called at any time by clicking on an image.
417 This dialog has three tabs:
420 \begin_layout Description
425 Here you can choose an image file and adjust its appearance in the output.
426 The available units for the image size are explained in appendix
431 \begin_inset CommandInset ref
433 reference "cha:Units-available-in"
438 \begin_inset Newline newline
442 \begin_inset Index idx
445 \begin_layout Plain Layout
451 You can rotate images counter-clockwise by setting a rotation angle and
453 The image will also be rotated inside LyX.
454 \begin_inset Newline newline
458 \begin_inset Index idx
461 \begin_layout Plain Layout
467 Images can be scaled by using a percentage value or by setting the width
468 and height explicitly.
469 If you set only the width or only the height, the other size will be determined
471 If you set both, then the image will be transformed to the given size,
472 possibly distorting it.
473 To prevent the image from distortion, use the option
475 Maintain aspect ratio
478 The image will then be scaled so that its width and height don't exceed
479 the specified dimensions.
480 \begin_inset Newline newline
483 Images can be opened in a program of your choice by right-clicking on it
484 and choosing the entry
493 The program can be set for every image format in the file format settings
494 in LyX's preferences.
497 \begin_layout Description
502 Alternatively to the usage of scaling units it is possible to set image
503 coordinates to adjust the height and width of the image in the output.
504 The coordinates can also be calculated automatically by pressing the button
534 will only print the image region within the given coordinates.
535 Normally you don't need to take care about image coordinates and can ignore
539 \begin_layout Description
556 In this tab you can modify the appearance of the image within LyX and LaTeX
557 experts can specify additional LaTeX options.
558 \begin_inset Newline newline
569 makes the image appear in the output only as a frame with the size of the
571 \begin_inset Newline newline
590 option only affects zipped EPS-graphics, e.
591 \begin_inset space \thinspace{}
595 \begin_inset space \space{}
603 When the option is used the images will not be unzipped on export, since
604 LaTeX can handle them as they are.
605 \begin_inset Newline newline
608 Zipped EPS-graphics are useful to save disk space when you choose PostScript
609 as output format, see appendix
614 \begin_inset CommandInset ref
616 reference "sec:PostScript"
621 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
623 \begin_inset Newline newline
631 \begin_inset Newline newline
636 zgrep %%Bounding x.eps.gz > x.eps.bb
639 \begin_inset Newline newline
642 The second command creates the bounding box file
643 \begin_inset Quotes eld
647 \begin_inset Quotes erd
650 that is needed by LaTeX for zipped graphics.
651 \begin_inset Newline newline
666 allows you define or join an image settings group.
667 \begin_inset Index idx
670 \begin_layout Plain Layout
671 Figures ! Settings grouping
676 Images within such a group share their settings, so adjusting one image
677 of the group automatically also adjusts all other images of the group in
679 So you can for example change the size for a bunch of images without the
680 need to manually change each of them.
681 Joining an existing group can also be done using the context menu of the
682 image by checking the name of the desired group.
685 \begin_layout Standard
686 \begin_inset VSpace bigskip
692 \begin_layout Standard
693 This is an example image in EPS format
697 \begin_layout Plain Layout
698 Image formats are explained in section
703 \begin_inset CommandInset ref
705 reference "sec:Image-Formats"
714 within a separate, horizontally centered paragraph:
717 \begin_layout Standard
719 \begin_inset Graphics
720 filename clipart/mobius.eps
730 \begin_layout Standard
731 This is the same image like the one above but in draft mode:
734 \begin_layout Standard
736 \begin_inset Graphics
737 filename clipart/mobius.eps
748 \begin_layout Standard
749 \begin_inset Newpage newpage
755 \begin_layout Section
757 \begin_inset CommandInset label
759 name "sec:Figure-Floats"
764 \begin_inset Index idx
767 \begin_layout Plain Layout
774 \begin_inset Index idx
777 \begin_layout Plain Layout
786 \begin_layout Standard
787 For general explanations about floats, have a look at section
792 \begin_inset CommandInset ref
794 reference "sec:FloatIntroduction"
801 \begin_layout Standard
803 \begin_inset Graphics
804 filename ../images/float-insert_figure.png
812 Insert\SpecialChar \menuseparator
813 Float\SpecialChar \menuseparator
816 inserts a float with a caption that has the label
817 \begin_inset Quotes eld
825 \begin_inset Quotes erd
828 (# is the actual number).
829 You can insert the image above the caption, like in Figure
834 \begin_inset CommandInset ref
836 reference "fig:kill-plat"
840 or below the caption, like in Figure
845 \begin_inset CommandInset ref
847 reference "fig:escher"
852 More about caption placement is described in section
857 \begin_inset CommandInset ref
859 reference "sec:Caption-Placement"
866 \begin_layout Standard
867 \begin_inset Float figure
872 \begin_layout Plain Layout
874 \begin_inset Graphics
875 filename clipart/platypus.eps
885 \begin_layout Plain Layout
888 \begin_layout Plain Layout
889 \begin_inset CommandInset label
895 A severely distorted platypus in a float.
908 \begin_layout Standard
909 \begin_inset Float figure
914 \begin_layout Plain Layout
917 \begin_layout Plain Layout
918 \begin_inset CommandInset label
933 \begin_layout Plain Layout
935 \begin_inset Graphics
936 filename clipart/escher-lsd.eps
951 \begin_layout Standard
952 \begin_inset Index idx
955 \begin_layout Plain Layout
956 References ! to Figures
966 \begin_inset CommandInset ref
968 reference "fig:kill-plat"
973 \begin_inset CommandInset ref
975 reference "fig:escher"
979 are examples of referenced figures.
980 Figures can be referenced in the text by referencing their label.
981 To do this insert a label in the caption using the menu
983 Insert\SpecialChar \menuseparator
986 or the toolbar button
987 \begin_inset Graphics
988 filename ../images/label-insert.png
995 You can now refer to the label using the menu
997 Insert\SpecialChar \menuseparator
1004 or the toolbar button
1005 \begin_inset Graphics
1006 filename ../images/dialog-show-new-inset_ref.png
1013 It is important to use references to floats, rather than using vague references
1015 \begin_inset Quotes eld
1019 \begin_inset Quotes erd
1022 , because LaTeX will reposition the floats in the final document and it
1024 \begin_inset Quotes eld
1028 \begin_inset Quotes erd
1032 \begin_inset Newline newline
1035 Referencing is explained in detail in section
1036 \begin_inset space ~
1040 \begin_inset CommandInset ref
1042 reference "sec:Referencing-Floats"
1049 \begin_layout Standard
1050 Normally only one image is inserted to a figure float, but sometimes you
1051 might want to use two images with separate subcaptions.
1052 This can be done by inserting image floats into existing image floats.
1053 Note that only the main caption of the float is added to the List of Figures.
1055 \begin_inset space ~
1059 \begin_inset CommandInset ref
1061 reference "fig:Two-distorted-images"
1065 is an example of a figure float with two images set side by side.
1066 You can also set the images one below the other.
1068 \begin_inset space ~
1072 \begin_inset CommandInset ref
1074 reference "fig:Undefinable-structure"
1079 \begin_inset CommandInset ref
1081 reference "fig:A-Platypus"
1088 \begin_layout Standard
1089 \begin_inset Float figure
1094 \begin_layout Plain Layout
1095 \begin_inset space \hfill{}
1099 \begin_inset Float figure
1104 \begin_layout Plain Layout
1105 \begin_inset Caption
1107 \begin_layout Plain Layout
1108 \begin_inset CommandInset label
1110 name "fig:Undefinable-structure"
1114 Undefinable structure.
1122 \begin_layout Plain Layout
1123 \begin_inset Graphics
1124 filename clipart/escher-lsd.eps
1137 \begin_inset space \hfill{}
1141 \begin_inset Float figure
1146 \begin_layout Plain Layout
1147 \begin_inset Caption
1149 \begin_layout Plain Layout
1150 \begin_inset CommandInset label
1152 name "fig:A-Platypus"
1164 \begin_layout Plain Layout
1165 \begin_inset Graphics
1166 filename clipart/platypus.eps
1179 \begin_inset space \hfill{}
1185 \begin_layout Plain Layout
1186 \begin_inset Caption
1188 \begin_layout Plain Layout
1189 \begin_inset CommandInset label
1191 name "fig:Two-distorted-images"
1196 \begin_inset CommandInset label
1198 name "fig2:Two-distorted-images-2"
1202 Two distorted images.
1203 Both images are in the image settings group named
1204 \begin_inset Quotes eld
1208 \begin_inset Quotes erd
1224 \begin_layout Standard
1225 \begin_inset Newpage newpage
1231 \begin_layout Section
1233 \begin_inset CommandInset label
1235 name "sec:Image-Formats"
1240 \begin_inset Index idx
1243 \begin_layout Plain Layout
1250 \begin_inset Index idx
1253 \begin_layout Plain Layout
1254 Figures ! Image Formats
1262 \begin_layout Standard
1263 You can insert images in any known file format.
1264 But as explained in appendix
1265 \begin_inset space ~
1269 \begin_inset CommandInset ref
1271 reference "cha:Output-File-Formats"
1275 , each output document format allows only a few image formats.
1276 LyX uses therefore the program
1280 in the background to convert the images to the right format.
1281 To increase your work flow by avoiding these conversions in the background,
1282 you can use only the image formats that can directly be embedded in the
1284 The output file formats are explained in appendix
1285 \begin_inset space ~
1289 \begin_inset CommandInset ref
1291 reference "cha:Output-File-Formats"
1298 \begin_layout Standard
1299 Similar to fonts there are two types of image formats:
1302 \begin_layout Description
1304 \begin_inset space ~
1307 images consist of pixel values, often in a compressed form.
1308 They are therefore not fully scalable and look pixelated in large zooms.
1309 Well-known bitmap image formats are
1310 \begin_inset Quotes eld
1313 Graphics Interchange Format
1314 \begin_inset Quotes erd
1317 (GIF, file extension
1318 \begin_inset Quotes eld
1326 \begin_inset Quotes erd
1330 \begin_inset Index idx
1333 \begin_layout Plain Layout
1338 \begin_layout Plain Layout
1349 \begin_layout Plain Layout
1362 \begin_inset Quotes eld
1365 Portable Network Graphics
1366 \begin_inset Quotes erd
1369 (PNG, file extension
1370 \begin_inset Quotes eld
1378 \begin_inset Quotes erd
1382 \begin_inset Index idx
1385 \begin_layout Plain Layout
1390 \begin_layout Plain Layout
1401 \begin_layout Plain Layout
1414 \begin_inset Quotes eld
1417 Joint Photographic Experts Group
1418 \begin_inset Quotes erd
1421 (JPG, file extension
1422 \begin_inset Quotes eld
1430 \begin_inset Quotes erd
1434 \begin_inset Quotes eld
1442 \begin_inset Quotes erd
1446 \begin_inset Index idx
1449 \begin_layout Plain Layout
1454 \begin_layout Plain Layout
1465 \begin_layout Plain Layout
1480 \begin_layout Description
1482 \begin_inset space ~
1485 images consist of vectors and can therefore be scaled to any size without
1487 The scaling ability is necessary if you want to create presentations, because
1488 presentations are always scaled by the video projector.
1489 Scaling is also useful for online documents to let the user zoom into diagrams.
1490 \begin_inset Newline newline
1493 Well-known scalable image formats are
1494 \begin_inset Quotes eld
1497 Scalable Vector Graphics
1498 \begin_inset Quotes erd
1501 (SVG, file extension
1502 \begin_inset Quotes eld
1510 \begin_inset Quotes erd
1514 \begin_inset Index idx
1517 \begin_layout Plain Layout
1522 \begin_layout Plain Layout
1533 \begin_layout Plain Layout
1546 \begin_inset Quotes eld
1549 Encapsulated PostScript
1550 \begin_inset Quotes erd
1553 (EPS, file extension
1554 \begin_inset Quotes eld
1562 \begin_inset Quotes erd
1566 \begin_inset Index idx
1569 \begin_layout Plain Layout
1574 \begin_layout Plain Layout
1585 \begin_layout Plain Layout
1598 \begin_inset Quotes eld
1601 Portable Document Format
1602 \begin_inset Quotes erd
1605 (PDF, file extension
1606 \begin_inset Quotes eld
1614 \begin_inset Quotes erd
1618 \begin_inset Index idx
1621 \begin_layout Plain Layout
1628 \begin_inset Quotes eld
1632 \begin_inset Quotes erd
1635 (WMF, file extension
1636 \begin_inset Quotes eld
1644 \begin_inset Quotes erd
1648 \begin_inset Index idx
1651 \begin_layout Plain Layout
1656 \begin_layout Plain Layout
1667 \begin_layout Plain Layout
1681 \begin_inset Quotes eld
1685 \begin_inset Quotes erd
1688 , because you can convert any bitmap image to a PDF or EPS-image and the
1689 result will still be a bitmap image.
1690 In such cases only a header with the image properties is added to the original
1695 \begin_layout Plain Layout
1696 In the case of PDF, the original image is additionally compressed.
1702 The PDF-files generated by
1706 are for example bitmap images.
1709 \begin_layout Standard
1710 Normally it is not possible to convert a bitmap image into a scalable one,
1712 Only the image formats PDF and EPS can directly be embedded to PDF and
1713 PostScript output files, respectively.
1714 SVG and WMF-images are recalculated to bitmaps when the output file is
1715 generated because there is currently no adequate WMF/SVG
1716 \begin_inset Formula $\to$
1719 PDF/EPS converter available.
1722 \begin_layout Chapter
1724 \begin_inset Index idx
1727 \begin_layout Plain Layout
1736 \begin_layout Section
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1742 Table ! Introduction
1750 \begin_layout Standard
1751 You can insert a table using either the toolbar button
1752 \begin_inset Graphics
1753 filename ../images/tabular-insert.png
1761 Insert\SpecialChar \menuseparator
1765 The toolbar button offers you a graphical selection: move the mouse to
1766 set the column/row number of the table that should be created and then
1767 press a mouse button.
1768 When you use the menu to create a table, a dialog will appear, asking you
1769 for the number of rows and columns.
1770 \begin_inset Newline newline
1773 The default table has lines around any cell and the first row appears separated
1774 from the rest of the table.
1775 This separation occurs due to a double line: The cells of the first row
1776 have a line below them and the cells of the second row have a line above
1778 Here is an example table:
1781 \begin_layout Standard
1783 \begin_inset Tabular
1784 <lyxtabular version="3" rows="4" columns="4">
1785 <features tabularvalignment="middle">
1786 <column alignment="center" valignment="top" width="0">
1787 <column alignment="center" valignment="top" width="0">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1830 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1877 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1915 \begin_layout Plain Layout
1921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1924 \begin_layout Plain Layout
1932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1935 \begin_layout Plain Layout
1950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1953 \begin_layout Plain Layout
1959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1962 \begin_layout Plain Layout
1968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1971 \begin_layout Plain Layout
1985 \begin_layout Section
1987 \begin_inset Index idx
1990 \begin_layout Plain Layout
1999 \begin_layout Standard
2000 You can alter a table by clicking on it with the right mouse button, which
2001 brings up the table dialog.
2002 Here you can adjust the settings of that cell and row/column respectively
2003 where the cursor is currently placed.
2004 Most of the dialog options also work on selections.
2005 This means if you select more cells, columns or rows, the action is done
2006 for the whole selection.
2007 Note that there is a difference between selecting the
2011 of the cell, and the cell itself.
2012 You can alter tables with the following tabs of the table dialog:
2015 \begin_layout Description
2019 \begin_inset space ~
2024 Here you can set the horizontal alignment and the width of the current
2029 \begin_inset space ~
2033 \begin_inset space ~
2038 is described in section
2039 \begin_inset space ~
2043 \begin_inset CommandInset ref
2045 reference "sub:Special-Cell-Alignment"
2050 When you have set a width you can also adjust the vertical alignment of
2052 A given width will allow the cell to have line breaks and multiple paragraphs
2053 of text, see section
2054 \begin_inset space ~
2058 \begin_inset CommandInset ref
2060 reference "sub:Multiple-Lines-in"
2065 If you set no width, the column is as wide as the content of the widest
2067 \begin_inset Newline newline
2070 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2072 \begin_inset space ~
2076 \begin_inset CommandInset ref
2078 reference "sub:Multicolumns"
2082 or the cells of one column as multirow cell, see section
2083 \begin_inset space ~
2087 \begin_inset CommandInset ref
2089 reference "sub:Multirows"
2094 \begin_inset Newline newline
2097 The rotate check boxes rotate the current cell, a selection, or the whole
2098 table counter-clockwise by 90°.
2099 The rotation is not shown within LyX, only in the output.
2100 \begin_inset Newline newline
2104 \begin_inset Note Greyedout
2107 \begin_layout Plain Layout
2112 Not all DVI-viewers are able to display rotations.
2118 \begin_inset Newline newline
2121 It is also possible to enter a LaTeX-argument which is needed for special
2122 table formattings, see section
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sub:Multicolumn-Calculations"
2134 \begin_inset CommandInset ref
2136 reference "sec:Colored-Tables"
2143 \begin_layout Description
2148 In this tab you can add and delete border lines for the current row/column.
2149 \begin_inset Newline newline
2152 Using the style option
2156 will convert the table to a formal table as described in section
2157 \begin_inset space ~
2161 \begin_inset CommandInset ref
2163 reference "sec:Formal-Tables"
2168 \begin_inset Newline newline
2171 You can also add here space to table rows as described in section
2172 \begin_inset space ~
2176 \begin_inset CommandInset ref
2178 reference "sub:Row-Spacing"
2185 \begin_layout Description
2190 This tab is to make a table a so called
2191 \begin_inset Quotes eld
2199 \begin_inset Quotes erd
2202 that can run over several pages.
2204 \begin_inset space ~
2208 \begin_inset CommandInset ref
2210 reference "sec:Longtables"
2215 \begin_inset CommandInset ref
2217 reference "sec:Special-Longtable-Issues"
2221 describe the longtable features in detail.
2224 \begin_layout Standard
2225 When the table dialog is open, you can move the cursor with the arrow keys
2226 from cell to cell and the property of the current cell will immediately
2227 be displayed in the dialog.
2230 \begin_layout Section
2232 \begin_inset Index idx
2235 \begin_layout Plain Layout
2244 \begin_layout Standard
2245 The table toolbar is an alternative to the table dialog to be able to alter
2247 It should normally appear at the bottom of LyX's main window when the cursor
2249 You can alternatively switch it on to appear always, by right-clicking
2250 in LyX's main menu bar.
2253 \begin_layout Standard
2254 The toolbar has the following icons:
2257 \begin_layout Labeling
2258 \labelwidthstring 00.00.0000
2259 \begin_inset Graphics
2260 filename ../images/tabular-feature_append-row.png
2265 adds a row below the current cell or selection
2268 \begin_layout Labeling
2269 \labelwidthstring 00.00.0000
2270 \begin_inset Graphics
2271 filename ../images/tabular-feature_append-column.png
2276 adds a column right beside the current cell or selection
2279 \begin_layout Labeling
2280 \labelwidthstring 00.00.0000
2281 \begin_inset Graphics
2282 filename ../images/tabular-feature_delete-row.png
2287 deletes the current row or selection
2290 \begin_layout Labeling
2291 \labelwidthstring 00.00.0000
2292 \begin_inset Graphics
2293 filename ../images/tabular-feature_delete-column.png
2298 deletes the current column or selection
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Graphics
2304 filename ../images/tabular-feature_toggle-line-top.png
2309 adds a line at the top of the current cell / row or of a selection
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Graphics
2315 filename ../images/tabular-feature_toggle-line-bottom.png
2320 adds a line at the bottom of the current cell / row or of a selection
2323 \begin_layout Labeling
2324 \labelwidthstring 00.00.0000
2325 \begin_inset Graphics
2326 filename ../images/tabular-feature_toggle-line-left.png
2331 adds a line at the left side of the current cell / row or of a selection
2334 \begin_layout Labeling
2335 \labelwidthstring 00.00.0000
2336 \begin_inset Graphics
2337 filename ../images/tabular-feature_toggle-line-right.png
2342 adds a line at the right side of the current cell / row or of a selection
2345 \begin_layout Labeling
2346 \labelwidthstring 00.00.0000
2347 \begin_inset Graphics
2348 filename ../images/tabular-feature_set-all-lines.png
2353 adds lines around the current or selected cells - if the current cell no
2354 multicolumn cell this also affects the current row and column
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Graphics
2360 filename ../images/tabular-feature_unset-all-lines.png
2365 deletes all lines of the current or selected cells - if the current cell
2366 no multicolumn cell this also affects the current row and column
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Graphics
2372 filename ../images/tabular-feature_m-align-left.png
2377 left-aligns the content of the current cell / column
2380 \begin_layout Labeling
2381 \labelwidthstring 00.00.0000
2382 \begin_inset Graphics
2383 filename ../images/tabular-feature_m-align-center.png
2388 centers the content of the current cell / column horizontally
2391 \begin_layout Labeling
2392 \labelwidthstring 00.00.0000
2393 \begin_inset Graphics
2394 filename ../images/tabular-feature_m-align-right.png
2399 right-aligns the content of the current cell / column
2402 \begin_layout Labeling
2403 \labelwidthstring 00.00.0000
2404 \begin_inset Graphics
2405 filename ../images/tabular-feature_align-decimal.png
2410 aligns the content of the current column at a character
2413 \begin_layout Labeling
2414 \labelwidthstring 00.00.0000
2415 \begin_inset Graphics
2416 filename ../images/tabular-feature_m-valign-top.png
2421 aligns the content of the current cell vertically to the top
2424 \begin_layout Labeling
2425 \labelwidthstring 00.00.0000
2426 \begin_inset Graphics
2427 filename ../images/tabular-feature_m-valign-middle.png
2432 centers the content of the current cell vertically
2435 \begin_layout Labeling
2436 \labelwidthstring 00.00.0000
2437 \begin_inset Graphics
2438 filename ../images/tabular-feature_m-valign-bottom.png
2443 aligns the content of the current cell vertically to the bottom
2446 \begin_layout Labeling
2447 \labelwidthstring 00.00.0000
2448 \begin_inset Graphics
2449 filename ../images/tabular-feature_set-rotate-cell.png
2454 rotates the current cell or selection counter-clockwise by 90°
2457 \begin_layout Labeling
2458 \labelwidthstring 00.00.0000
2459 \begin_inset Graphics
2460 filename ../images/tabular-feature_set-rotate-tabular.png
2465 rotates the whole table counter-clockwise by 90°
2468 \begin_layout Labeling
2469 \labelwidthstring 00.00.0000
2470 \begin_inset Graphics
2471 filename ../images/tabular-feature_multicolumn.png
2476 sets the current cell or selection as a multicolumn
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2481 \begin_inset Graphics
2482 filename ../images/tabular-feature_multirow.png
2487 sets the current cell or selection as a multirow
2490 \begin_layout Standard
2491 \begin_inset Note Greyedout
2494 \begin_layout Plain Layout
2499 For the output the vertical alignment of the first cell in a row is used
2500 for all following cells in the row.
2508 \begin_layout Section
2510 \begin_inset Index idx
2513 \begin_layout Plain Layout
2522 \begin_layout Standard
2523 Additionally to the table dialog and toolbar, the menu
2525 Edit\SpecialChar \menuseparator
2528 allows you to add and delete border lines for the current row/column and
2529 to set the current selection as multicolumn.
2530 The menu is only available when the cursor is inside a table.
2533 \begin_layout Section
2535 \begin_inset CommandInset label
2537 name "sec:Table-Floats"
2542 \begin_inset Index idx
2545 \begin_layout Plain Layout
2552 \begin_inset Index idx
2555 \begin_layout Plain Layout
2564 \begin_layout Standard
2565 For general explanations about floats, have a look at section
2566 \begin_inset space ~
2570 \begin_inset CommandInset ref
2572 reference "sec:FloatIntroduction"
2579 \begin_layout Standard
2580 \begin_inset Float table
2586 \begin_layout Plain Layout
2587 \begin_inset Caption
2589 \begin_layout Plain Layout
2590 \begin_inset CommandInset label
2592 name "tab:a table float"
2604 \begin_layout Plain Layout
2606 \begin_inset Tabular
2607 <lyxtabular version="3" rows="3" columns="3">
2608 <features tabularvalignment="middle">
2609 <column alignment="center" valignment="top" width="0pt">
2610 <column alignment="center" valignment="top" width="0pt">
2611 <column alignment="center" valignment="top" width="0pt">
2613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2616 \begin_layout Plain Layout
2631 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2634 \begin_layout Plain Layout
2649 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2652 \begin_layout Plain Layout
2669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2672 \begin_layout Plain Layout
2687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2690 \begin_layout Plain Layout
2705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2708 \begin_layout Plain Layout
2725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2728 \begin_layout Plain Layout
2738 \begin_inset Formula $\int x^{2}dx$
2746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2749 \begin_layout Plain Layout
2759 \begin_inset Formula $\left[\begin{array}{cc}
2770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2773 \begin_layout Plain Layout
2783 \begin_inset Formula $1+1=2$
2804 \begin_layout Standard
2805 Table floats can be inserted using the menu
2807 Insert\SpecialChar \menuseparator
2808 Float\SpecialChar \menuseparator
2811 or the toolbar button
2812 \begin_inset Graphics
2813 filename ../images/float-insert_table.png
2822 \begin_layout Standard
2823 The float appears as a collapsible box with a caption that has the label
2825 \begin_inset Quotes eld
2829 \begin_inset space ~
2833 \begin_inset Quotes erd
2836 (# is the actual table number).
2837 You can insert tables in the float above or below the caption.
2840 \begin_layout Standard
2842 \begin_inset space ~
2846 \begin_inset CommandInset ref
2848 reference "tab:a table float"
2852 is an example table within a table float.
2855 \begin_layout Standard
2856 Having the caption above the table is the common rule that is unfortunately
2857 not supported in LaTeX's standard classes.
2858 This means that, if you are using the document classes
2874 , there will be no space between the caption and the table.
2875 To insert the needed space, add the following option to the load command
2876 of the LaTeX-package
2881 \begin_inset Index idx
2884 \begin_layout Plain Layout
2885 LaTeX-packages ! caption
2890 in your document preamble
2894 \begin_layout Plain Layout
2895 For more information have a look at section
2896 \begin_inset space ~
2900 \begin_inset CommandInset ref
2902 reference "sec:Caption-Placement"
2914 \begin_layout Standard
2920 \begin_layout Standard
2925 , which is described in section
2926 \begin_inset space ~
2930 \begin_inset CommandInset ref
2932 reference "sec:Caption-Formatting"
2936 , is used to adjust the caption format.
2939 \begin_layout Standard
2940 \begin_inset Index idx
2943 \begin_layout Plain Layout
2944 References ! to Tables
2949 Tables can be cross-referenced in the text by referencing their label.
2950 To do this insert a label in the caption using the menu
2952 Insert\SpecialChar \menuseparator
2955 or the toolbar button
2956 \begin_inset Graphics
2957 filename ../images/label-insert.png
2964 You can now refer to the label using the menu
2966 Insert\SpecialChar \menuseparator
2968 \begin_inset space ~
2973 or the toolbar button
2974 \begin_inset Graphics
2975 filename ../images/dialog-show-new-inset_ref.png
2982 \begin_inset Newline newline
2985 Referencing is explained in detail in section
2986 \begin_inset space ~
2990 \begin_inset CommandInset ref
2992 reference "sec:Referencing-Floats"
2999 \begin_layout Section
3001 \begin_inset CommandInset label
3003 name "sec:Longtables"
3008 \begin_inset Index idx
3011 \begin_layout Plain Layout
3018 \begin_inset Index idx
3021 \begin_layout Plain Layout
3030 \begin_layout Standard
3031 If the table is too long to fit on one page, you can use the option
3034 \begin_inset space ~
3038 \begin_inset space ~
3047 of the table dialog to split the table automatically over more pages.
3048 Doing this enables the following options:
3051 \begin_layout Description
3052 Header: The current row is defined to be a header row that appears on all
3053 pages of the longtable; except for the first page, if
3056 \begin_inset space ~
3062 This is therefore called the main header.
3065 \begin_layout Description
3067 \begin_inset space ~
3070 header: The current row is defined to be a header row that appears on the
3071 first page of the longtable.
3074 \begin_layout Description
3075 Footer: The current row is defined to be a footer row that appears on all
3076 pages of the longtable; except for the last page, if
3079 \begin_inset space ~
3087 \begin_layout Description
3089 \begin_inset space ~
3092 footer: The current row is defined to be a footer row that appears on the
3093 last page of the longtable.
3096 \begin_layout Description
3097 Caption: The current row contains the table caption.
3098 The row is reset as single column and a caption is inserted.
3099 More about longtable captions is explained in sec.
3100 \begin_inset space \thinspace{}
3104 \begin_inset CommandInset ref
3106 reference "sub:Longtable-Captions"
3113 \begin_layout Standard
3114 You can also specify a row where the table is split.
3115 See the following longtable to see how it works:
3118 \begin_layout Standard
3120 \begin_inset Tabular
3121 <lyxtabular version="3" rows="69" columns="3">
3122 <features islongtable="true" longtabularalignment="center">
3123 <column alignment="left" valignment="top" width="0cm">
3124 <column alignment="left" valignment="top" width="0pt">
3125 <column alignment="center" valignment="top" width="0pt">
3126 <row endfirsthead="true">
3127 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3130 \begin_layout Plain Layout
3133 Example Phone List (ignore the names)
3138 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3141 \begin_layout Plain Layout
3147 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3150 \begin_layout Plain Layout
3157 <row endfirsthead="true">
3158 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3161 \begin_layout Plain Layout
3169 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3172 \begin_layout Plain Layout
3178 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3181 \begin_layout Plain Layout
3190 <row endhead="true">
3191 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3194 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3205 \begin_layout Plain Layout
3211 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3214 \begin_layout Plain Layout
3221 <row endhead="true">
3222 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3225 \begin_layout Plain Layout
3233 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3236 \begin_layout Plain Layout
3242 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3245 \begin_layout Plain Layout
3254 <row endfoot="true">
3255 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3259 continued on next page
3264 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3267 \begin_layout Plain Layout
3273 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3276 \begin_layout Plain Layout
3284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3287 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" usebox="none">
3298 \begin_layout Plain Layout
3304 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3307 \begin_layout Plain Layout
3315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3318 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" usebox="none">
3329 \begin_layout Plain Layout
3335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3338 \begin_layout Plain Layout
3346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3349 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" usebox="none">
3360 \begin_layout Plain Layout
3366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3369 \begin_layout Plain Layout
3377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3380 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" usebox="none">
3391 \begin_layout Plain Layout
3397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3400 \begin_layout Plain Layout
3408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3411 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" usebox="none">
3422 \begin_layout Plain Layout
3428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3431 \begin_layout Plain Layout
3439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3442 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" usebox="none">
3453 \begin_layout Plain Layout
3459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3462 \begin_layout Plain Layout
3470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3473 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" usebox="none">
3484 \begin_layout Plain Layout
3490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3493 \begin_layout Plain Layout
3501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3504 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" usebox="none">
3515 \begin_layout Plain Layout
3521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3524 \begin_layout Plain Layout
3532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3535 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" usebox="none">
3546 \begin_layout Plain Layout
3552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3555 \begin_layout Plain Layout
3563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3566 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" usebox="none">
3577 \begin_layout Plain Layout
3583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3586 \begin_layout Plain Layout
3594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3597 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" usebox="none">
3608 \begin_layout Plain Layout
3614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3617 \begin_layout Plain Layout
3625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3628 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" usebox="none">
3639 \begin_layout Plain Layout
3645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3648 \begin_layout Plain Layout
3656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3659 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" usebox="none">
3670 \begin_layout Plain Layout
3676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3679 \begin_layout Plain Layout
3687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3690 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" usebox="none">
3701 \begin_layout Plain Layout
3707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3710 \begin_layout Plain Layout
3718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3721 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" usebox="none">
3732 \begin_layout Plain Layout
3738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3741 \begin_layout Plain Layout
3749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3752 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" usebox="none">
3763 \begin_layout Plain Layout
3769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3772 \begin_layout Plain Layout
3780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3783 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" usebox="none">
3794 \begin_layout Plain Layout
3800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3803 \begin_layout Plain Layout
3811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3814 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" usebox="none">
3825 \begin_layout Plain Layout
3831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3834 \begin_layout Plain Layout
3842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3845 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" usebox="none">
3856 \begin_layout Plain Layout
3862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3865 \begin_layout Plain Layout
3873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3876 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" usebox="none">
3887 \begin_layout Plain Layout
3893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3896 \begin_layout Plain Layout
3904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3907 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" usebox="none">
3918 \begin_layout Plain Layout
3924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3927 \begin_layout Plain Layout
3935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3938 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" usebox="none">
3949 \begin_layout Plain Layout
3955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3958 \begin_layout Plain Layout
3966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3969 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" usebox="none">
3980 \begin_layout Plain Layout
3986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3989 \begin_layout Plain Layout
3997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4000 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" usebox="none">
4011 \begin_layout Plain Layout
4017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4020 \begin_layout Plain Layout
4028 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4031 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" usebox="none">
4042 \begin_layout Plain Layout
4048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4051 \begin_layout Plain Layout
4059 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4062 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" usebox="none">
4073 \begin_layout Plain Layout
4079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4082 \begin_layout Plain Layout
4090 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4093 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" usebox="none">
4104 \begin_layout Plain Layout
4110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4113 \begin_layout Plain Layout
4121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4124 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" usebox="none">
4135 \begin_layout Plain Layout
4141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4144 \begin_layout Plain Layout
4152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4155 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" usebox="none">
4166 \begin_layout Plain Layout
4172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4175 \begin_layout Plain Layout
4183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4186 \begin_layout Plain Layout
4194 <cell alignment="center" valignment="top" usebox="none">
4197 \begin_layout Plain Layout
4203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4217 \begin_layout Plain Layout
4225 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4228 \begin_layout Plain Layout
4234 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4257 \begin_layout Plain Layout
4263 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4266 \begin_layout Plain Layout
4274 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4277 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" usebox="none">
4288 \begin_layout Plain Layout
4294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4297 \begin_layout Plain Layout
4305 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4308 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" usebox="none">
4319 \begin_layout Plain Layout
4325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4328 \begin_layout Plain Layout
4336 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4339 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" usebox="none">
4350 \begin_layout Plain Layout
4356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4359 \begin_layout Plain Layout
4367 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4370 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" usebox="none">
4381 \begin_layout Plain Layout
4387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4390 \begin_layout Plain Layout
4398 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4401 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" usebox="none">
4412 \begin_layout Plain Layout
4418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4421 \begin_layout Plain Layout
4429 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4432 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" usebox="none">
4443 \begin_layout Plain Layout
4449 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4452 \begin_layout Plain Layout
4460 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4463 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" usebox="none">
4474 \begin_layout Plain Layout
4480 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4483 \begin_layout Plain Layout
4491 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4494 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" usebox="none">
4505 \begin_layout Plain Layout
4511 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4514 \begin_layout Plain Layout
4522 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4525 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" usebox="none">
4536 \begin_layout Plain Layout
4542 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4545 \begin_layout Plain Layout
4553 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4556 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" usebox="none">
4567 \begin_layout Plain Layout
4573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4576 \begin_layout Plain Layout
4584 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4587 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" usebox="none">
4598 \begin_layout Plain Layout
4604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4607 \begin_layout Plain Layout
4615 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4618 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" usebox="none">
4629 \begin_layout Plain Layout
4635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4638 \begin_layout Plain Layout
4646 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4649 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" usebox="none">
4660 \begin_layout Plain Layout
4666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4669 \begin_layout Plain Layout
4677 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4680 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" usebox="none">
4691 \begin_layout Plain Layout
4697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4700 \begin_layout Plain Layout
4708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4711 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" usebox="none">
4722 \begin_layout Plain Layout
4728 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4731 \begin_layout Plain Layout
4739 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4742 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" usebox="none">
4753 \begin_layout Plain Layout
4759 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4762 \begin_layout Plain Layout
4770 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4773 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" usebox="none">
4784 \begin_layout Plain Layout
4790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4793 \begin_layout Plain Layout
4801 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4804 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" usebox="none">
4815 \begin_layout Plain Layout
4821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4824 \begin_layout Plain Layout
4832 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4835 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" usebox="none">
4846 \begin_layout Plain Layout
4852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4855 \begin_layout Plain Layout
4863 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4866 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" usebox="none">
4877 \begin_layout Plain Layout
4883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4886 \begin_layout Plain Layout
4894 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4897 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" usebox="none">
4908 \begin_layout Plain Layout
4914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4917 \begin_layout Plain Layout
4925 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4928 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" usebox="none">
4939 \begin_layout Plain Layout
4945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4948 \begin_layout Plain Layout
4956 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4959 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" usebox="none">
4970 \begin_layout Plain Layout
4976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4979 \begin_layout Plain Layout
4987 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4990 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" usebox="none">
5001 \begin_layout Plain Layout
5007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5010 \begin_layout Plain Layout
5018 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5021 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" usebox="none">
5032 \begin_layout Plain Layout
5038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5041 \begin_layout Plain Layout
5049 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5052 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" usebox="none">
5063 \begin_layout Plain Layout
5069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5072 \begin_layout Plain Layout
5080 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5083 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" usebox="none">
5094 \begin_layout Plain Layout
5100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5103 \begin_layout Plain Layout
5111 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5114 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" usebox="none">
5125 \begin_layout Plain Layout
5131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5134 \begin_layout Plain Layout
5142 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5145 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" usebox="none">
5156 \begin_layout Plain Layout
5162 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5165 \begin_layout Plain Layout
5173 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5176 \begin_layout Plain Layout
5184 <cell alignment="center" valignment="top" usebox="none">
5187 \begin_layout Plain Layout
5193 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5196 \begin_layout Plain Layout
5204 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5207 \begin_layout Plain Layout
5215 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5218 \begin_layout Plain Layout
5224 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5227 \begin_layout Plain Layout
5234 <row endlastfoot="true">
5235 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5238 \begin_layout Plain Layout
5244 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5247 \begin_layout Plain Layout
5253 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5256 \begin_layout Plain Layout
5271 \begin_layout Plain Layout
5275 addtocounter{table}{-1}
5281 \begin_inset Note Note
5284 \begin_layout Plain Layout
5285 See the first greyed-out note in section
5286 \begin_inset space ~
5290 \begin_inset CommandInset ref
5292 reference "sub:Longtable-Captions"
5296 for an explanation of this command.
5304 \begin_layout Subsection
5305 Footnotes in Longtables
5306 \begin_inset CommandInset label
5308 name "sub:Footnotes-in-Longtables"
5313 \begin_inset Index idx
5316 \begin_layout Plain Layout
5317 Longtables ! Footnotes
5325 \begin_layout Standard
5326 Footnotes can be inserted to every longtable cell.
5327 They appear at the bottom of the page where the table cell with the footnote
5330 \begin_inset space ~
5334 \begin_inset CommandInset ref
5336 reference "tab:DiffCaptions"
5340 has for example a footnote.
5343 \begin_layout Subsection
5345 \begin_inset Index idx
5348 \begin_layout Plain Layout
5349 Longtables ! Alignment
5357 \begin_layout Standard
5358 The horizontal alignment of longtables can be set in the table settings
5360 For left- and right-alignment the table will be directly at the page border.
5361 To add space between the table and the border one has to set the alignment
5362 to center and change the value of the LaTeX-lengths
5374 by inserting this line as TeX-Code before the longtable:
5377 \begin_layout Standard
5387 \begin_layout Standard
5388 The value can have any of the units listed in Table
5389 \begin_inset space ~
5393 \begin_inset CommandInset ref
5395 reference "tab:Units"
5406 controls the horizontal distance from the left page border to the longtable,
5413 the distance from the right side.
5414 The default value for both lengths is
5420 , which is in this case the same as an horizontal fill in LyX.
5423 \begin_layout Standard
5424 The following longtable was centered and
5440 \begin_layout Plain Layout
5456 \begin_layout Standard
5457 \begin_inset Tabular
5458 <lyxtabular version="3" rows="5" columns="5">
5459 <features islongtable="true" longtabularalignment="center">
5460 <column alignment="center" valignment="top" width="0">
5461 <column alignment="center" valignment="top" width="0pt">
5462 <column alignment="center" valignment="top" width="0">
5463 <column alignment="center" valignment="top" width="0">
5464 <column alignment="center" valignment="top" width="0">
5466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5469 \begin_layout Plain Layout
5475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5478 \begin_layout Plain Layout
5484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5487 \begin_layout Plain Layout
5493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5496 \begin_layout Plain Layout
5502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5505 \begin_layout Plain Layout
5513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5516 \begin_layout Plain Layout
5522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5525 \begin_layout Plain Layout
5531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5534 \begin_layout Plain Layout
5540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5543 \begin_layout Plain Layout
5549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5552 \begin_layout Plain Layout
5560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5563 \begin_layout Plain Layout
5569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5572 \begin_layout Plain Layout
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5581 \begin_layout Plain Layout
5587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5590 \begin_layout Plain Layout
5596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5599 \begin_layout Plain Layout
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5610 \begin_layout Plain Layout
5616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5619 \begin_layout Plain Layout
5625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5628 \begin_layout Plain Layout
5634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5637 \begin_layout Plain Layout
5643 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5646 \begin_layout Plain Layout
5654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5657 \begin_layout Plain Layout
5663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5666 \begin_layout Plain Layout
5672 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5675 \begin_layout Plain Layout
5681 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5684 \begin_layout Plain Layout
5690 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5693 \begin_layout Plain Layout
5708 \begin_layout Plain Layout
5725 \begin_layout Plain Layout
5729 addtocounter{table}{-1}
5735 \begin_inset Note Note
5738 \begin_layout Plain Layout
5739 See the first greyed-out note in section
5740 \begin_inset space ~
5744 \begin_inset CommandInset ref
5746 reference "sub:Longtable-Captions"
5750 for an explanation of this command.
5758 \begin_layout Subsection
5760 \begin_inset Index idx
5763 \begin_layout Plain Layout
5764 Longtables ! Captions
5770 \begin_inset CommandInset label
5772 name "sub:Longtable-Captions"
5779 \begin_layout Standard
5780 A longtable cannot be put into a table float because floats can only be
5782 But the caption environment of floats can also be used for longtables when
5783 you use the longtable option
5787 as described in sec.
5788 \begin_inset space \thinspace{}
5792 \begin_inset CommandInset ref
5794 reference "sec:Longtables"
5799 Only one table row can contain the caption.
5802 \begin_layout Standard
5803 Here is a short longtable to see how it works:
5806 \begin_layout Standard
5807 \begin_inset Tabular
5808 <lyxtabular version="3" rows="6" columns="5">
5809 <features islongtable="true" longtabularalignment="center">
5810 <column alignment="center" valignment="top" width="0">
5811 <column alignment="center" valignment="top" width="0">
5812 <column alignment="center" valignment="top" width="0">
5813 <column alignment="center" valignment="top" width="0">
5814 <column alignment="center" valignment="top" width="0">
5815 <row caption="true">
5816 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5819 \begin_layout Plain Layout
5820 \begin_inset Caption
5822 \begin_layout Plain Layout
5823 Longtable with caption
5824 \begin_inset Argument
5827 \begin_layout Plain Layout
5843 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5846 \begin_layout Plain Layout
5852 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5855 \begin_layout Plain Layout
5861 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5864 \begin_layout Plain Layout
5870 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5873 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5893 \begin_layout Plain Layout
5899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5902 \begin_layout Plain Layout
5908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5911 \begin_layout Plain Layout
5917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5920 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5931 \begin_layout Plain Layout
5937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5940 \begin_layout Plain Layout
5946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5949 \begin_layout Plain Layout
5955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5958 \begin_layout Plain Layout
5964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5967 \begin_layout Plain Layout
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5978 \begin_layout Plain Layout
5984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5987 \begin_layout Plain Layout
5993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5996 \begin_layout Plain Layout
6002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6005 \begin_layout Plain Layout
6011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6014 \begin_layout Plain Layout
6022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6025 \begin_layout Plain Layout
6031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6034 \begin_layout Plain Layout
6040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6043 \begin_layout Plain Layout
6049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6052 \begin_layout Plain Layout
6058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6061 \begin_layout Plain Layout
6069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6072 \begin_layout Plain Layout
6078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6081 \begin_layout Plain Layout
6087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6090 \begin_layout Plain Layout
6096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6099 \begin_layout Plain Layout
6105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6108 \begin_layout Plain Layout
6122 \begin_layout Standard
6123 \begin_inset VSpace medskip
6127 \begin_inset Note Greyedout
6130 \begin_layout Plain Layout
6134 \begin_inset space ~
6139 The table number is increased for for every longtable, even if you did
6140 not set a caption for it.
6141 For this reason you could have the case that e.
6142 \begin_inset space \thinspace{}
6146 \begin_inset space \space{}
6150 \begin_inset space ~
6154 \begin_inset space ~
6157 2.1 in the list of tables if there are two longtables without captions.
6158 To avoid this you can add the following command in TeX-Code after every
6159 longtable without a caption:
6162 \begin_layout Plain Layout
6167 addtocounter{table}{-1}
6170 \begin_layout Plain Layout
6171 This is not needed when none of your longtables have a caption and you add
6172 the following code to the document preamble:
6175 \begin_layout Plain Layout
6185 \begin_inset Newline newline
6196 addtocounter{table}{-1}}
6204 \begin_layout Standard
6205 \begin_inset Note Greyedout
6208 \begin_layout Plain Layout
6212 \begin_inset space ~
6222 \begin_inset Index idx
6225 \begin_layout Plain Layout
6226 LaTeX-packages ! hyperref
6239 dialog to link cross-references, the link to a longtable caption will always
6240 point to the beginning of the document.
6248 \begin_layout Subsubsection
6249 References to Longtables
6250 \begin_inset Index idx
6253 \begin_layout Plain Layout
6254 Longtables ! References
6262 \begin_layout Standard
6263 \begin_inset Tabular
6264 <lyxtabular version="3" rows="6" columns="5">
6265 <features islongtable="true" longtabularalignment="center">
6266 <column alignment="center" valignment="top" width="0">
6267 <column alignment="center" valignment="top" width="0">
6268 <column alignment="center" valignment="top" width="0">
6269 <column alignment="center" valignment="top" width="0">
6270 <column alignment="center" valignment="top" width="0">
6271 <row caption="true">
6272 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6275 \begin_layout Plain Layout
6276 \begin_inset Caption
6278 \begin_layout Plain Layout
6279 Referenced longtable
6280 \begin_inset CommandInset label
6282 name "tab:RefExample"
6296 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6299 \begin_layout Plain Layout
6305 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6326 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6346 \begin_layout Plain Layout
6352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6355 \begin_layout Plain Layout
6361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6364 \begin_layout Plain Layout
6370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6373 \begin_layout Plain Layout
6381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6384 \begin_layout Plain Layout
6390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6393 \begin_layout Plain Layout
6399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6402 \begin_layout Plain Layout
6408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6411 \begin_layout Plain Layout
6417 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6420 \begin_layout Plain Layout
6428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6431 \begin_layout Plain Layout
6437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6440 \begin_layout Plain Layout
6446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6449 \begin_layout Plain Layout
6455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6458 \begin_layout Plain Layout
6464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6467 \begin_layout Plain Layout
6475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6478 \begin_layout Plain Layout
6484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6487 \begin_layout Plain Layout
6493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6496 \begin_layout Plain Layout
6502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6505 \begin_layout Plain Layout
6511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6514 \begin_layout Plain Layout
6522 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6525 \begin_layout Plain Layout
6531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6534 \begin_layout Plain Layout
6540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6543 \begin_layout Plain Layout
6549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6552 \begin_layout Plain Layout
6558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6561 \begin_layout Plain Layout
6575 \begin_layout Standard
6576 To reference a longtable, insert a label into the caption.
6579 \begin_layout Standard
6580 This is a reference to Table
6581 \begin_inset space ~
6585 \begin_inset CommandInset ref
6587 reference "tab:RefExample"
6594 \begin_layout Standard
6595 The caption layout can be set together with all other captions of your document
6596 using the LaTeX-package
6601 \begin_inset Index idx
6604 \begin_layout Plain Layout
6605 LaTeX-packages ! caption
6611 \begin_inset space ~
6615 \begin_inset CommandInset ref
6617 reference "sec:Caption-Formatting"
6624 \begin_layout Subsubsection
6626 \begin_inset Index idx
6629 \begin_layout Plain Layout
6630 Longtables ! Caption Width
6638 \begin_layout Standard
6639 The maximal width of of caption lines is defined by the length
6646 Its default value is 4
6647 \begin_inset space \thinspace{}
6651 To change it add the following command to your document preamble or as
6652 TeX-Code into your document before the longtable that should be affected
6655 \begin_layout Standard
6665 \begin_layout Standard
6666 where the width could have one of the units listed in appendix
6667 \begin_inset space ~
6671 \begin_inset CommandInset ref
6673 reference "cha:Units-available-in"
6680 \begin_layout Standard
6681 The following tables show the difference:
6684 \begin_layout Standard
6685 \begin_inset Tabular
6686 <lyxtabular version="3" rows="6" columns="5">
6687 <features islongtable="true" longtabularalignment="center">
6688 <column alignment="center" valignment="top" width="0">
6689 <column alignment="center" valignment="top" width="0">
6690 <column alignment="center" valignment="top" width="0">
6691 <column alignment="center" valignment="top" width="0">
6692 <column alignment="center" valignment="top" width="0">
6693 <row caption="true">
6694 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6697 \begin_layout Plain Layout
6698 \begin_inset Caption
6700 \begin_layout Plain Layout
6701 long full title with default width long full title with default width long
6702 full title with default width
6703 \begin_inset Argument
6706 \begin_layout Plain Layout
6707 caption with default width
6722 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6725 \begin_layout Plain Layout
6731 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6752 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6772 \begin_layout Plain Layout
6778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6781 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6790 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6799 \begin_layout Plain Layout
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6810 \begin_layout Plain Layout
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6819 \begin_layout Plain Layout
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6828 \begin_layout Plain Layout
6834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6837 \begin_layout Plain Layout
6843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6846 \begin_layout Plain Layout
6854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6857 \begin_layout Plain Layout
6863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6866 \begin_layout Plain Layout
6872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6875 \begin_layout Plain Layout
6881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6884 \begin_layout Plain Layout
6890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6893 \begin_layout Plain Layout
6901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6904 \begin_layout Plain Layout
6910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6913 \begin_layout Plain Layout
6919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6922 \begin_layout Plain Layout
6928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6931 \begin_layout Plain Layout
6937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6940 \begin_layout Plain Layout
6948 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6951 \begin_layout Plain Layout
6957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6960 \begin_layout Plain Layout
6966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6969 \begin_layout Plain Layout
6975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6978 \begin_layout Plain Layout
6984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6987 \begin_layout Plain Layout
7001 \begin_layout Standard
7005 \begin_layout Plain Layout
7017 \begin_inset Tabular
7018 <lyxtabular version="3" rows="6" columns="5">
7019 <features islongtable="true" longtabularalignment="center">
7020 <column alignment="center" valignment="top" width="0">
7021 <column alignment="center" valignment="top" width="0">
7022 <column alignment="center" valignment="top" width="0">
7023 <column alignment="center" valignment="top" width="0">
7024 <column alignment="center" valignment="top" width="0">
7025 <row caption="true">
7026 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7029 \begin_layout Plain Layout
7030 \begin_inset Caption
7032 \begin_layout Plain Layout
7033 long full title with width set to 5
7034 \begin_inset space \thinspace{}
7037 cm long full title with width set to 5
7038 \begin_inset space \thinspace{}
7041 cm long full title with width set to 5
7042 \begin_inset space \thinspace{}
7046 \begin_inset Argument
7049 \begin_layout Plain Layout
7051 \begin_inset space \thinspace{}
7055 \begin_inset space \thinspace{}
7059 \begin_inset space \thinspace{}
7077 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7080 \begin_layout Plain Layout
7086 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7089 \begin_layout Plain Layout
7095 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7098 \begin_layout Plain Layout
7104 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7107 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7127 \begin_layout Plain Layout
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7136 \begin_layout Plain Layout
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7145 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7154 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7165 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Plain Layout
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Plain Layout
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Plain Layout
7198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7201 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7221 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7230 \begin_layout Plain Layout
7236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7239 \begin_layout Plain Layout
7245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7248 \begin_layout Plain Layout
7256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7259 \begin_layout Plain Layout
7265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7268 \begin_layout Plain Layout
7274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7277 \begin_layout Plain Layout
7283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7286 \begin_layout Plain Layout
7292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7295 \begin_layout Plain Layout
7303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7306 \begin_layout Plain Layout
7312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7315 \begin_layout Plain Layout
7321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7324 \begin_layout Plain Layout
7330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7333 \begin_layout Plain Layout
7339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7342 \begin_layout Plain Layout
7356 \begin_layout Standard
7360 \begin_layout Plain Layout
7374 \begin_layout Standard
7375 \begin_inset Note Greyedout
7378 \begin_layout Plain Layout
7383 When the LaTeX-package
7388 \begin_inset Index idx
7391 \begin_layout Plain Layout
7392 LaTeX-packages ! caption
7397 is used, as in this document, the full page width is used for the caption
7398 when you use the default value of 4
7399 \begin_inset space \thinspace{}
7409 To get in this case exactly a 4
7410 \begin_inset space \thinspace{}
7413 in wide caption, you can either use a value slightly different from 4.0
7414 \begin_inset space \thinspace{}
7418 \begin_inset space \thinspace{}
7422 \begin_inset space \space{}
7426 \begin_inset space \thinspace{}
7429 in, or the LaTeX-command
7433 captionsetup{width=value}
7435 that is provided by the
7447 \begin_layout Subsubsection
7448 Different Captions for Table Pages
7449 \begin_inset Index idx
7452 \begin_layout Plain Layout
7453 Longtables ! Different Captions for Pages
7461 \begin_layout Standard
7462 When the table captions for the following pages should differ from the one
7463 of the first table page, insert a caption with the TeX code command
7466 \begin_layout Standard
7471 caption*{caption text}
7478 \begin_layout Standard
7479 in a dummy caption row that is marked as a header.
7481 \begin_inset space ~
7485 \begin_inset CommandInset ref
7487 reference "tab:DiffCaptions"
7491 is an example of a longtable with different heading where the second caption
7492 doesn't include the table number.
7495 \begin_layout Standard
7497 \begin_inset Tabular
7498 <lyxtabular version="3" rows="59" columns="3">
7499 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7500 <column alignment="left" valignment="top" width="0cm">
7501 <column alignment="left" valignment="top" width="0pt">
7502 <column alignment="center" valignment="top" width="0pt">
7503 <row caption="true">
7504 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7507 \begin_layout Plain Layout
7508 \begin_inset Caption
7510 \begin_layout Plain Layout
7512 \begin_inset CommandInset label
7514 name "tab:DiffCaptions"
7519 \begin_inset Argument
7522 \begin_layout Plain Layout
7538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7541 \begin_layout Plain Layout
7547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Plain Layout
7557 <row endfirsthead="true">
7558 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7561 \begin_layout Plain Layout
7564 Example Phone List (ignore the names)
7569 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7572 \begin_layout Plain Layout
7578 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7581 \begin_layout Plain Layout
7588 <row endfirsthead="true">
7589 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7592 \begin_layout Plain Layout
7600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7603 \begin_layout Plain Layout
7609 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Plain Layout
7621 <row endhead="true">
7622 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7625 \begin_layout Plain Layout
7629 \begin_layout Plain Layout
7633 caption*{Continued Example Phone List}
7647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7650 \begin_layout Plain Layout
7656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7659 \begin_layout Plain Layout
7666 <row endhead="true">
7667 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7670 \begin_layout Plain Layout
7678 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7681 \begin_layout Plain Layout
7687 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7690 \begin_layout Plain Layout
7697 <row endhead="true">
7698 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7701 \begin_layout Plain Layout
7709 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7712 \begin_layout Plain Layout
7718 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7721 \begin_layout Plain Layout
7730 <row endfoot="true">
7731 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7734 \begin_layout Plain Layout
7735 continued on next page
7740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7743 \begin_layout Plain Layout
7749 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7752 \begin_layout Plain Layout
7760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7763 \begin_layout Plain Layout
7771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7774 \begin_layout Plain Layout
7780 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7783 \begin_layout Plain Layout
7791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7794 \begin_layout Plain Layout
7802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7805 \begin_layout Plain Layout
7811 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7814 \begin_layout Plain Layout
7822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7825 \begin_layout Plain Layout
7833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7836 \begin_layout Plain Layout
7842 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7845 \begin_layout Plain Layout
7853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7856 \begin_layout Plain Layout
7864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7867 \begin_layout Plain Layout
7873 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7876 \begin_layout Plain Layout
7884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7887 \begin_layout Plain Layout
7895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7898 \begin_layout Plain Layout
7904 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7907 \begin_layout Plain Layout
7915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7918 \begin_layout Plain Layout
7926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7929 \begin_layout Plain Layout
7935 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7938 \begin_layout Plain Layout
7946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7949 \begin_layout Plain Layout
7957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7960 \begin_layout Plain Layout
7966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7969 \begin_layout Plain Layout
7977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7980 \begin_layout Plain Layout
7988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7991 \begin_layout Plain Layout
7997 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8000 \begin_layout Plain Layout
8008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8011 \begin_layout Plain Layout
8019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8022 \begin_layout Plain Layout
8028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8031 \begin_layout Plain Layout
8039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8042 \begin_layout Plain Layout
8050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8053 \begin_layout Plain Layout
8059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8062 \begin_layout Plain Layout
8070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8073 \begin_layout Plain Layout
8081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8084 \begin_layout Plain Layout
8090 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8093 \begin_layout Plain Layout
8101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8104 \begin_layout Plain Layout
8112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8115 \begin_layout Plain Layout
8121 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8124 \begin_layout Plain Layout
8132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8135 \begin_layout Plain Layout
8143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8146 \begin_layout Plain Layout
8152 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8155 \begin_layout Plain Layout
8163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8166 \begin_layout Plain Layout
8174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8177 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8186 \begin_layout Plain Layout
8194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8197 \begin_layout Plain Layout
8206 \begin_layout Plain Layout
8217 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8220 \begin_layout Plain Layout
8226 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8229 \begin_layout Plain Layout
8237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8240 \begin_layout Plain Layout
8248 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8251 \begin_layout Plain Layout
8257 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8260 \begin_layout Plain Layout
8268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8271 \begin_layout Plain Layout
8279 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8282 \begin_layout Plain Layout
8288 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8291 \begin_layout Plain Layout
8299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8302 \begin_layout Plain Layout
8310 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8313 \begin_layout Plain Layout
8319 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8322 \begin_layout Plain Layout
8330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8333 \begin_layout Plain Layout
8341 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8344 \begin_layout Plain Layout
8350 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8353 \begin_layout Plain Layout
8361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8364 \begin_layout Plain Layout
8372 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8375 \begin_layout Plain Layout
8381 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8384 \begin_layout Plain Layout
8392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8395 \begin_layout Plain Layout
8403 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8406 \begin_layout Plain Layout
8412 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8415 \begin_layout Plain Layout
8423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8426 \begin_layout Plain Layout
8434 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8437 \begin_layout Plain Layout
8443 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8446 \begin_layout Plain Layout
8454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8457 \begin_layout Plain Layout
8465 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8468 \begin_layout Plain Layout
8474 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8477 \begin_layout Plain Layout
8485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8488 \begin_layout Plain Layout
8496 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8499 \begin_layout Plain Layout
8505 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8508 \begin_layout Plain Layout
8516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8519 \begin_layout Plain Layout
8527 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8530 \begin_layout Plain Layout
8536 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8539 \begin_layout Plain Layout
8547 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8550 \begin_layout Plain Layout
8558 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8561 \begin_layout Plain Layout
8567 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8570 \begin_layout Plain Layout
8578 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8581 \begin_layout Plain Layout
8589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8592 \begin_layout Plain Layout
8598 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8601 \begin_layout Plain Layout
8609 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8612 \begin_layout Plain Layout
8620 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8623 \begin_layout Plain Layout
8629 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8632 \begin_layout Plain Layout
8640 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8643 \begin_layout Plain Layout
8651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8654 \begin_layout Plain Layout
8660 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8663 \begin_layout Plain Layout
8671 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8674 \begin_layout Plain Layout
8682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8685 \begin_layout Plain Layout
8691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8694 \begin_layout Plain Layout
8702 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8705 \begin_layout Plain Layout
8713 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8716 \begin_layout Plain Layout
8722 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8725 \begin_layout Plain Layout
8733 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8736 \begin_layout Plain Layout
8742 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8745 \begin_layout Plain Layout
8751 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8754 \begin_layout Plain Layout
8762 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8765 \begin_layout Plain Layout
8773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8776 \begin_layout Plain Layout
8782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8785 \begin_layout Plain Layout
8793 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8796 \begin_layout Plain Layout
8804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8807 \begin_layout Plain Layout
8813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8816 \begin_layout Plain Layout
8824 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8827 \begin_layout Plain Layout
8835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8838 \begin_layout Plain Layout
8844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8847 \begin_layout Plain Layout
8855 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8858 \begin_layout Plain Layout
8866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8869 \begin_layout Plain Layout
8875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8878 \begin_layout Plain Layout
8886 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8889 \begin_layout Plain Layout
8897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8900 \begin_layout Plain Layout
8906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8909 \begin_layout Plain Layout
8917 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8920 \begin_layout Plain Layout
8928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8931 \begin_layout Plain Layout
8937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8940 \begin_layout Plain Layout
8948 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8951 \begin_layout Plain Layout
8959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8962 \begin_layout Plain Layout
8968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8971 \begin_layout Plain Layout
8979 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8982 \begin_layout Plain Layout
8990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8993 \begin_layout Plain Layout
8999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9002 \begin_layout Plain Layout
9010 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9013 \begin_layout Plain Layout
9021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9024 \begin_layout Plain Layout
9030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9033 \begin_layout Plain Layout
9041 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9044 \begin_layout Plain Layout
9052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9055 \begin_layout Plain Layout
9061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9064 \begin_layout Plain Layout
9072 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9075 \begin_layout Plain Layout
9083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9086 \begin_layout Plain Layout
9092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9095 \begin_layout Plain Layout
9103 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9106 \begin_layout Plain Layout
9114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9117 \begin_layout Plain Layout
9123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9126 \begin_layout Plain Layout
9134 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9137 \begin_layout Plain Layout
9145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9148 \begin_layout Plain Layout
9154 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9157 \begin_layout Plain Layout
9165 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9168 \begin_layout Plain Layout
9176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9179 \begin_layout Plain Layout
9185 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9188 \begin_layout Plain Layout
9196 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9199 \begin_layout Plain Layout
9207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9210 \begin_layout Plain Layout
9216 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9219 \begin_layout Plain Layout
9227 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9230 \begin_layout Plain Layout
9238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9241 \begin_layout Plain Layout
9247 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9250 \begin_layout Plain Layout
9258 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9261 \begin_layout Plain Layout
9269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9272 \begin_layout Plain Layout
9278 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9281 \begin_layout Plain Layout
9289 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9292 \begin_layout Plain Layout
9300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9303 \begin_layout Plain Layout
9309 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9312 \begin_layout Plain Layout
9320 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9323 \begin_layout Plain Layout
9331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9334 \begin_layout Plain Layout
9340 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9343 \begin_layout Plain Layout
9351 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9354 \begin_layout Plain Layout
9362 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9365 \begin_layout Plain Layout
9371 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9374 \begin_layout Plain Layout
9388 \begin_layout Section
9389 Special Longtable Issues
9390 \begin_inset CommandInset label
9392 name "sec:Special-Longtable-Issues"
9399 \begin_layout Subsection
9400 Longtable Calculation
9401 \begin_inset Index idx
9404 \begin_layout Plain Layout
9405 Longtables ! Calculation
9413 \begin_layout Standard
9414 LaTeX calculates the height of table pages and their page breaks using so
9416 Chunks are parts of tables that held at the same time in LaTeX's memory.
9417 The default value was historically set to only 20 table rows.
9418 If you are using longtables with many pages this may slow down the creation
9420 You can safely increase the chunk size to values of 100-1000 by adding
9421 this command line to your document preamble:
9424 \begin_layout Standard
9429 setcounter{LTchunksize}{100}
9432 \begin_layout Subsection
9433 Floats and Longtables
9434 \begin_inset Index idx
9437 \begin_layout Plain Layout
9446 \begin_layout Standard
9447 There might be problems when a float appears on the same page where a longtable
9449 To avoid such a situation, insert a
9450 \begin_inset Quotes eld
9454 \begin_inset Quotes erd
9459 Insert\SpecialChar \menuseparator
9460 Formatting\SpecialChar \menuseparator
9462 \begin_inset space ~
9467 ) before your longtable.
9470 \begin_layout Subsection
9472 \begin_inset Index idx
9475 \begin_layout Plain Layout
9476 Longtables ! Forced Page Breaks
9484 \begin_layout Standard
9485 By default tables are only broken between rows.
9486 If you have a cell with multiples lines and want to have a page break within
9487 the cell, insert the new line command
9488 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9503 as TeX-Code at the point of the cell where it can be broken.
9512 command you have to insert in TeX-Code as many
9513 \begin_inset Quotes eld
9521 \begin_inset Quotes erd
9524 characters as the number of the following table columns.
9529 is the character to separate table cells.
9530 Write in TeX-Code after each
9534 the content of the corresponding following cell and delete the content
9536 \begin_inset Newline newline
9547 command, insert as many
9551 characters as the number of table columns before the current column.
9553 \begin_inset space ~
9557 \begin_inset CommandInset ref
9559 reference "tab:ForcedPagebreak"
9563 the cell that should be broken is in the second column followed by another
9565 Therefore the following command was inserted in the cell as TeX-Code after
9567 \begin_inset Quotes eld
9575 \begin_inset Quotes erd
9581 \begin_layout Standard
9591 \begin_inset Newline newline
9597 \begin_layout Standard
9599 \begin_inset Quotes eld
9603 \begin_inset Quotes erd
9606 in the third column of the row was deleted.
9613 is only needed when a page break should definitely occur at this position,
9614 otherwise it would be a conditional break.
9615 If your footer row of the longtable has for a certain reason no upper line
9616 but you would have a horizontal line where the cell is broken, use this
9620 \begin_layout Standard
9628 \begin_inset Newline newline
9636 \begin_layout Standard
9637 When the cell to be broken is in the last column, the command
9640 \begin_layout Standard
9650 \begin_layout Standard
9651 must be inserted as TeX-Code at the beginning of the cell.
9652 This ensures that the part of the cell that will be displayed on the new
9653 page appears with the full width.
9656 \begin_layout Standard
9658 \begin_inset Tabular
9659 <lyxtabular version="3" rows="38" columns="3">
9660 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9661 <column alignment="left" valignment="top" width="0cm">
9662 <column alignment="left" valignment="top" width="3cm">
9663 <column alignment="center" valignment="top" width="0pt">
9664 <row caption="true">
9665 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9668 \begin_layout Plain Layout
9669 \begin_inset Caption
9671 \begin_layout Plain Layout
9672 Table with forced page break in table cell
9673 \begin_inset CommandInset label
9675 name "tab:ForcedPagebreak"
9680 \begin_inset Argument
9683 \begin_layout Plain Layout
9684 Table with forced page break in table cell
9699 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9702 \begin_layout Plain Layout
9708 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9711 \begin_layout Plain Layout
9718 <row endfirsthead="true">
9719 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9722 \begin_layout Plain Layout
9725 Example Phone List (ignore the names)
9730 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9733 \begin_layout Plain Layout
9739 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9742 \begin_layout Plain Layout
9749 <row endfirsthead="true">
9750 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9753 \begin_layout Plain Layout
9761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9764 \begin_layout Plain Layout
9770 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9773 \begin_layout Plain Layout
9782 <row endhead="true">
9783 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9786 \begin_layout Plain Layout
9790 \begin_layout Plain Layout
9794 caption*{Continued Example Phone List}
9808 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9811 \begin_layout Plain Layout
9817 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9820 \begin_layout Plain Layout
9827 <row endhead="true">
9828 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9831 \begin_layout Plain Layout
9839 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9842 \begin_layout Plain Layout
9848 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9851 \begin_layout Plain Layout
9858 <row endhead="true">
9859 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9862 \begin_layout Plain Layout
9870 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9873 \begin_layout Plain Layout
9879 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9882 \begin_layout Plain Layout
9891 <row endfoot="true">
9892 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9895 \begin_layout Plain Layout
9896 continued on next page
9901 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9904 \begin_layout Plain Layout
9910 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9913 \begin_layout Plain Layout
9921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9924 \begin_layout Plain Layout
9932 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9941 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9944 \begin_layout Plain Layout
9952 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9955 \begin_layout Plain Layout
9963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9966 \begin_layout Plain Layout
9972 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9975 \begin_layout Plain Layout
9983 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9986 \begin_layout Plain Layout
9994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9997 \begin_layout Plain Layout
10003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10006 \begin_layout Plain Layout
10014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10017 \begin_layout Plain Layout
10025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10028 \begin_layout Plain Layout
10034 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10048 \begin_layout Plain Layout
10056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10065 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10068 \begin_layout Plain Layout
10076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10079 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10096 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10099 \begin_layout Plain Layout
10107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10110 \begin_layout Plain Layout
10118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10127 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10130 \begin_layout Plain Layout
10138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10141 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10161 \begin_layout Plain Layout
10169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10172 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10189 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10192 \begin_layout Plain Layout
10200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10203 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10220 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10223 \begin_layout Plain Layout
10231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10234 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10251 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10254 \begin_layout Plain Layout
10262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10265 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10282 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10285 \begin_layout Plain Layout
10293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10296 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10316 \begin_layout Plain Layout
10324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10327 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10347 \begin_layout Plain Layout
10355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10358 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10375 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10378 \begin_layout Plain Layout
10386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10389 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10406 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10409 \begin_layout Plain Layout
10417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10420 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10437 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10440 \begin_layout Plain Layout
10448 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10451 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10468 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10471 \begin_layout Plain Layout
10479 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10482 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10493 \begin_layout Plain Layout
10499 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10502 \begin_layout Plain Layout
10510 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10513 \begin_layout Plain Layout
10521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10524 \begin_layout Plain Layout
10530 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10533 \begin_layout Plain Layout
10541 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10544 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10564 \begin_layout Plain Layout
10572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10575 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10586 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10606 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10617 \begin_layout Plain Layout
10619 Fürst von Montecompatri, 11.
10620 Fürst von Sulmona und Vivaro, 10.
10621 Fürst von Rossano, 5.
10622 Herzog von Canemorte, 11.
10623 Herzog von Palombara, 5.
10624 Herzog von Castelchiodato,
10628 \begin_layout Plain Layout
10639 \begin_layout Plain Layout
10647 Herzog von Poggionativo, 11.
10648 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10649 Graf von Valinfreda, 11.
10650 Baron von Cropalati, 11.
10651 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10670 \begin_layout Plain Layout
10678 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10681 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10701 \begin_layout Plain Layout
10709 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10712 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10732 \begin_layout Plain Layout
10740 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10743 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10763 \begin_layout Plain Layout
10771 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10774 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10783 \begin_layout Plain Layout
10791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10794 \begin_layout Plain Layout
10802 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10805 \begin_layout Plain Layout
10811 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10814 \begin_layout Plain Layout
10822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10825 \begin_layout Plain Layout
10833 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10836 \begin_layout Plain Layout
10842 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10845 \begin_layout Plain Layout
10853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10856 \begin_layout Plain Layout
10864 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10867 \begin_layout Plain Layout
10873 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10876 \begin_layout Plain Layout
10884 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10887 \begin_layout Plain Layout
10895 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10898 \begin_layout Plain Layout
10904 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10907 \begin_layout Plain Layout
10921 \begin_layout Section
10922 Multiple Lines Columns and Rows
10925 \begin_layout Subsection
10926 Multiple Lines in Table Cells
10927 \begin_inset CommandInset label
10929 name "sub:Multiple-Lines-in"
10934 \begin_inset Index idx
10937 \begin_layout Plain Layout
10938 Multiple Lines in Table Cells
10944 \begin_inset Index idx
10947 \begin_layout Plain Layout
10956 \begin_layout Standard
10958 \begin_inset Float table
10964 \begin_layout Plain Layout
10965 \begin_inset Caption
10967 \begin_layout Plain Layout
10968 \begin_inset CommandInset label
10970 name "tab:Table-with-multiple"
10974 Table with multiple lines in cells
10982 \begin_layout Plain Layout
10984 \begin_inset Tabular
10985 <lyxtabular version="3" rows="3" columns="3">
10986 <features tabularvalignment="middle">
10987 <column alignment="center" valignment="middle" width="2.5cm">
10988 <column alignment="center" valignment="middle" width="0">
10989 <column alignment="center" valignment="middle" width="0">
10991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10994 \begin_layout Plain Layout
10996 \begin_inset Newline linebreak
11004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11007 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11016 \begin_layout Plain Layout
11024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11027 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11036 \begin_layout Plain Layout
11042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11045 \begin_layout Plain Layout
11053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11056 \begin_layout Plain Layout
11062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11065 \begin_layout Plain Layout
11071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11074 \begin_layout Plain Layout
11093 \begin_layout Standard
11094 Setting a fixed width for a column enables you to enter text as a paragraph
11095 with multiple lines and hyphenation.
11098 \begin_layout Standard
11100 \begin_inset space ~
11104 \begin_inset CommandInset ref
11106 reference "tab:Table-with-multiple"
11110 , create a 3×3 table, mark the first cell and right-click on it.
11111 In the appearing table dialog we set a cell width of 2.5
11112 \begin_inset space \thinspace{}
11115 cm and choose centered for the vertical and horizontal alignment.
11116 The vertical alignment is used for all cells of the row.
11117 As our text is smaller than 2.5
11118 \begin_inset space \thinspace{}
11121 cm, only one line will appear.
11122 To get two lines, a justified line break (shortcut
11125 arg "newline-insert linebreak"
11129 If the text is wider than the set cell width, it will automatically be
11130 broken to several lines.
11133 \begin_layout Standard
11134 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11135 by LaTeX if it is the first entry.
11136 Therefore you need to insert something to prevent the word not being the
11138 So add a horizontal space of 0
11139 \begin_inset space \thinspace{}
11142 pt before the word.
11143 As the space is zero, it doesn't change the output.
11145 \begin_inset space ~
11149 \begin_inset CommandInset ref
11151 reference "tab:Table-with-and"
11158 \begin_layout Standard
11159 \begin_inset Float table
11165 \begin_layout Plain Layout
11166 \begin_inset Caption
11168 \begin_layout Plain Layout
11169 \begin_inset CommandInset label
11171 name "tab:Table-with-and"
11175 Table with and without hyphenation
11183 \begin_layout Plain Layout
11184 \begin_inset space \hfill{}
11188 \begin_inset Tabular
11189 <lyxtabular version="3" rows="3" columns="3">
11190 <features tabularvalignment="middle">
11191 <column alignment="center" valignment="middle" width="2.5cm">
11192 <column alignment="center" valignment="middle" width="0">
11193 <column alignment="center" valignment="middle" width="0">
11195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11198 \begin_layout Plain Layout
11199 verylongtablecellword
11204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11207 \begin_layout Plain Layout
11213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11216 \begin_layout Plain Layout
11224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11227 \begin_layout Plain Layout
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11236 \begin_layout Plain Layout
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11245 \begin_layout Plain Layout
11253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11256 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11265 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11274 \begin_layout Plain Layout
11286 \begin_inset space \hfill{}
11290 \begin_inset Tabular
11291 <lyxtabular version="3" rows="3" columns="3">
11292 <features tabularvalignment="middle">
11293 <column alignment="center" valignment="middle" width="2.5cm">
11294 <column alignment="center" valignment="middle" width="0">
11295 <column alignment="center" valignment="middle" width="0">
11297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11300 \begin_layout Plain Layout
11301 \begin_inset space \hspace{}
11305 verylongtablecellword
11310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11313 \begin_layout Plain Layout
11319 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11322 \begin_layout Plain Layout
11330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11333 \begin_layout Plain Layout
11339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11342 \begin_layout Plain Layout
11348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11351 \begin_layout Plain Layout
11359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11362 \begin_layout Plain Layout
11368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11371 \begin_layout Plain Layout
11377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11380 \begin_layout Plain Layout
11392 \begin_inset space \hfill{}
11403 \begin_layout Subsection
11405 \begin_inset CommandInset label
11407 name "sub:Multicolumns"
11412 \begin_inset Index idx
11415 \begin_layout Plain Layout
11422 \begin_inset Index idx
11425 \begin_layout Plain Layout
11426 Table ! Multicolumns
11434 \begin_layout Subsubsection
11438 \begin_layout Standard
11439 To merge cells over multiple columns, select as many cells within a row
11440 as you want to merge and use either the table-toolbar button
11441 \begin_inset Graphics
11442 filename ../images/tabular-feature_multicolumn.png
11444 scaleBeforeRotation
11450 Edit\SpecialChar \menuseparator
11451 Table\SpecialChar \menuseparator
11454 , or right click on the marked cells and choose
11458 in the context menu.
11461 \begin_layout Standard
11462 Multicolumns have there own cell settings.
11463 That means changing cell borders, cell alignment, and the width only affects
11465 Here is an example table with a multicolumn cell in the first row and one
11466 in the last row without the upper border:
11469 \begin_layout Standard
11471 \begin_inset Tabular
11472 <lyxtabular version="3" rows="3" columns="4">
11473 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11474 <column alignment="center" valignment="top" width="0pt">
11475 <column alignment="center" valignment="middle" width="0">
11476 <column alignment="center" valignment="top" width="0in">
11477 <column alignment="center" valignment="top" width="0pt">
11479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11482 \begin_layout Plain Layout
11488 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11491 \begin_layout Plain Layout
11497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11500 \begin_layout Plain Layout
11506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11509 \begin_layout Plain Layout
11517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11520 \begin_layout Plain Layout
11535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11538 \begin_layout Plain Layout
11544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11547 \begin_layout Plain Layout
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11556 \begin_layout Plain Layout
11564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11567 \begin_layout Plain Layout
11573 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11576 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11585 \begin_layout Plain Layout
11591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11594 \begin_layout Plain Layout
11608 \begin_layout Subsubsection
11609 Multicolumn Calculations
11610 \begin_inset CommandInset label
11612 name "sub:Multicolumn-Calculations"
11617 \begin_inset Index idx
11620 \begin_layout Plain Layout
11621 Multicolumns ! Calculations
11629 \begin_layout Standard
11630 LyX supports multicolumns directly, but we have to take account of the cell
11631 width of the columns spanned by the multicolumn cell.
11634 \begin_layout Standard
11635 \begin_inset Float table
11641 \begin_layout Plain Layout
11642 \begin_inset Caption
11644 \begin_layout Plain Layout
11645 \begin_inset CommandInset label
11647 name "tab:Table-with-centered"
11651 Table with centered multicolumn text above two columns that have exactly
11652 half the width of the multicolumn cell
11653 \begin_inset Argument
11656 \begin_layout Plain Layout
11657 Perfect multicolumn table
11670 \begin_layout Plain Layout
11672 \begin_inset Tabular
11673 <lyxtabular version="3" rows="3" columns="3">
11674 <features tabularvalignment="middle">
11675 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11676 <column alignment="center" valignment="middle" width="0">
11677 <column alignment="center" valignment="top" width="0">
11679 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11682 \begin_layout Plain Layout
11683 multiple lines multicolumn
11688 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11691 \begin_layout Plain Layout
11697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11700 \begin_layout Plain Layout
11708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11711 \begin_layout Plain Layout
11717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11720 \begin_layout Plain Layout
11726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11729 \begin_layout Plain Layout
11737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11740 \begin_layout Plain Layout
11746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11749 \begin_layout Plain Layout
11755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11758 \begin_layout Plain Layout
11777 \begin_layout Standard
11778 To create for example Table
11779 \begin_inset space ~
11783 \begin_inset CommandInset ref
11785 reference "tab:Table-with-centered"
11789 , mark the first two cells in the first row of a 3×3 table and right-click
11791 Now choose for this cell
11800 \begin_inset space \thinspace{}
11803 cm in the table dialog.
11804 The merged columns should have exactly half the width of the multicolumn
11805 cell, so that you would set a width of 1.25
11806 \begin_inset space \thinspace{}
11809 cm for the first column.
11810 The second column has then automatically a width of 1.25
11811 \begin_inset space \thinspace{}
11814 cm (multicolumn width - width of first column).
11815 This was done for Table
11816 \begin_inset space ~
11820 \begin_inset CommandInset ref
11822 reference "tab:Table-without-half"
11829 \begin_layout Standard
11830 \begin_inset Float table
11835 \begin_layout Plain Layout
11836 \begin_inset Caption
11838 \begin_layout Plain Layout
11839 \begin_inset CommandInset label
11841 name "tab:Table-without-half"
11845 Table where the spanned table columns are not exactly half the width of
11846 the multicolumn cell
11847 \begin_inset Argument
11850 \begin_layout Plain Layout
11851 Imperfect multicolumn table
11864 \begin_layout Plain Layout
11866 \begin_inset Tabular
11867 <lyxtabular version="3" rows="3" columns="3">
11868 <features tabularvalignment="middle">
11869 <column alignment="center" valignment="top" width="1.25cm">
11870 <column alignment="center" valignment="top" width="0">
11871 <column alignment="center" valignment="top" width="0">
11873 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11876 \begin_layout Plain Layout
11877 multiple lines multicolumn
11882 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11885 \begin_layout Plain Layout
11891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11894 \begin_layout Plain Layout
11902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11905 \begin_layout Plain Layout
11911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11914 \begin_layout Plain Layout
11920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11923 \begin_layout Plain Layout
11931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11934 \begin_layout Plain Layout
11940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11943 \begin_layout Plain Layout
11949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11952 \begin_layout Plain Layout
11971 \begin_layout Standard
11972 You can see that the first column is not half the width of the multicolumn
11973 cell, it is a bit bigger.
11974 The reason is that the specified width of a cell
11975 \begin_inset Formula $W_{g}$
11978 is not its total width
11979 \begin_inset Formula $W_{\mathrm{tot}}$
11982 because a cell is always a bit larger than specified.
11984 \begin_inset space ~
11988 \begin_inset CommandInset ref
11990 reference "cha:Explanation-of-Equation"
11994 explains this in detail.
11997 \begin_layout Standard
11999 \begin_inset Formula $W_{g\, n}$
12002 which the user needs to set when
12006 columns are spanned can be calculated, so that each column has a total
12008 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12012 \begin_inset Formula \begin{equation}
12013 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
12020 \begin_layout Standard
12021 In our case we have
12022 \begin_inset Formula $n=2$
12026 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12029 cm and the default values for the lengths, so that equation
12030 \begin_inset CommandInset ref
12037 \begin_inset Formula \begin{equation}
12038 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12045 \begin_layout Standard
12046 To enable calculations in LaTeX, the LaTeX-package
12050 must be loaded with the document preamble line
12051 \begin_inset Index idx
12054 \begin_layout Plain Layout
12055 LaTeX-packages ! calc
12063 \begin_layout Standard
12071 \begin_layout Standard
12072 LyX does not allow you to calculate lengths in the
12076 field of the table dialog.
12077 Therefore you have to format the column by inserting a LaTeX-argument in
12079 Here is an overview about the arguments:
12082 \begin_layout Itemize
12087 creates cell with a fixed width, its text is vertically top-aligned
12090 \begin_layout Itemize
12095 creates cell with a fixed width, its text is vertically centered
12098 \begin_layout Itemize
12103 creates cell with a fixed width, its text is vertically bottom-aligned
12106 \begin_layout Standard
12107 By entering a LaTeX-argument, all cell settings set in the table dialog
12111 \begin_layout Standard
12112 \begin_inset Note Greyedout
12115 \begin_layout Plain Layout
12120 Due to a bug, LyX shows the overwritten settings anyway.
12128 \begin_layout Standard
12129 As the text should be horizontally centered, the command
12136 You can now enter the following LaTeX-argument for the first spanned column:
12139 \begin_layout Standard
12144 centering}m{1.25cm-6.2pt}
12147 \begin_layout Standard
12152 means, that the commands inside the braces are applied before the cell
12156 \begin_layout Standard
12157 Although we have chosen centered alignment for the text of the multicolumn
12158 cell, it is still left aligned.
12159 This is because LyX only applies the alignment to single columns.
12160 So for the multicolumn cell we have to use the LaTeX-argument
12163 \begin_layout Standard
12171 \begin_layout Subsection
12173 \begin_inset CommandInset label
12175 name "sub:Multirows"
12180 \begin_inset Index idx
12183 \begin_layout Plain Layout
12190 \begin_inset Index idx
12193 \begin_layout Plain Layout
12202 \begin_layout Standard
12203 To merge cells over multiple rows, select as many cells within a column
12204 as you want to merge and use either the table-toolbar button
12205 \begin_inset Graphics
12206 filename ../images/tabular-feature_multirow.png
12208 scaleBeforeRotation
12214 Edit\SpecialChar \menuseparator
12215 Table\SpecialChar \menuseparator
12218 , or right click on the marked cells and choose
12222 in the context menu.
12225 \begin_layout Standard
12226 Here is an example table with a multirow in the first column:
12229 \begin_layout Standard
12231 \begin_inset Tabular
12232 <lyxtabular version="3" rows="3" columns="3">
12233 <features tabularvalignment="middle">
12234 <column alignment="center" valignment="top" width="0pt">
12235 <column alignment="center" valignment="top" width="0">
12236 <column alignment="center" valignment="top" width="0">
12238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12241 \begin_layout Plain Layout
12247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12250 \begin_layout Plain Layout
12256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12259 \begin_layout Plain Layout
12267 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12270 \begin_layout Plain Layout
12276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12279 \begin_layout Plain Layout
12285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12288 \begin_layout Plain Layout
12296 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12299 \begin_layout Plain Layout
12305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12308 \begin_layout Plain Layout
12314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12317 \begin_layout Plain Layout
12331 \begin_layout Standard
12332 The width of multirow cells is set by setting the width and alignment for
12338 shifts the content of the multirow up/down if the offset is positive/negative.
12341 \begin_layout Standard
12342 If the column of a multirow cell has no explicit width, the multirow cell
12343 inherits the alignment of the column.
12344 Otherwise it is by default left-aligned.
12345 To override the default, renew the command
12354 \begin_layout Standard
12366 \begin_layout Standard
12367 in the document preamble.
12368 Then all entries of multirow cells in the document are centered.
12369 If centering is only needed for several tables, you can renew the command
12370 in a TeX-Code box just before the table instead of the preamble.
12371 If the text should be right-aligned, replace
12384 To return to left-alignment
12393 \begin_layout Standard
12394 This is an example table with a right-aligned multirow cell that has a vertical
12396 \begin_inset space \thinspace{}
12400 \begin_inset space \thinspace{}
12406 \begin_layout Standard
12412 \begin_layout Plain Layout
12426 \begin_inset Tabular
12427 <lyxtabular version="3" rows="4" columns="3">
12428 <features tabularvalignment="middle">
12429 <column alignment="center" valignment="top" width="3cm">
12430 <column alignment="center" valignment="top" width="0">
12431 <column alignment="center" valignment="top" width="0">
12433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12436 \begin_layout Plain Layout
12442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12445 \begin_layout Plain Layout
12451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12454 \begin_layout Plain Layout
12462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12465 \begin_layout Plain Layout
12471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12474 \begin_layout Plain Layout
12480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12483 \begin_layout Plain Layout
12491 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12494 \begin_layout Plain Layout
12500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12503 \begin_layout Plain Layout
12509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12512 \begin_layout Plain Layout
12520 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12523 \begin_layout Plain Layout
12529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12532 \begin_layout Plain Layout
12538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12541 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12572 \begin_layout Section
12574 \begin_inset CommandInset label
12576 name "sec:Formal-Tables"
12581 \begin_inset Index idx
12584 \begin_layout Plain Layout
12593 \begin_layout Standard
12594 Tables are often typeset in books similar to Table
12595 \begin_inset space ~
12599 \begin_inset CommandInset ref
12601 reference "tab:Example-booktabs-table"
12606 This kind of tables is called
12607 \begin_inset Quotes eld
12615 \begin_inset Quotes erd
12619 To make a table a formal table use the option
12627 tab of the table dialog.
12630 \begin_layout Standard
12631 \begin_inset Float table
12637 \begin_layout Plain Layout
12638 \begin_inset Caption
12640 \begin_layout Plain Layout
12641 \begin_inset CommandInset label
12643 name "tab:Example-booktabs-table"
12647 Example booktabs-table
12655 \begin_layout Plain Layout
12657 \begin_inset Tabular
12658 <lyxtabular version="3" rows="8" columns="4">
12659 <features booktabs="true" tabularvalignment="middle">
12660 <column alignment="center" valignment="top" width="0">
12661 <column alignment="center" valignment="top" width="0">
12662 <column alignment="center" valignment="top" width="0">
12663 <column alignment="center" valignment="top" width="0">
12665 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12668 \begin_layout Plain Layout
12674 <cell alignment="center" valignment="top" topline="true" usebox="none">
12677 \begin_layout Plain Layout
12679 \begin_inset space \thinspace{}
12687 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12690 \begin_layout Plain Layout
12692 \begin_inset space \thinspace{}
12700 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12703 \begin_layout Plain Layout
12711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12714 \begin_layout Plain Layout
12718 \begin_layout Plain Layout
12731 \begin_layout Plain Layout
12740 Detector thickness in µm
12745 <cell alignment="center" valignment="top" usebox="none">
12748 \begin_layout Plain Layout
12754 <cell alignment="center" valignment="top" usebox="none">
12757 \begin_layout Plain Layout
12763 <cell alignment="center" valignment="top" usebox="none">
12766 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12777 \begin_layout Plain Layout
12783 <cell alignment="center" valignment="top" topline="true" usebox="none">
12786 \begin_layout Plain Layout
12792 <cell alignment="center" valignment="top" topline="true" usebox="none">
12795 \begin_layout Plain Layout
12801 <cell alignment="center" valignment="top" topline="true" usebox="none">
12804 \begin_layout Plain Layout
12811 <row topspace="default">
12812 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12815 \begin_layout Plain Layout
12816 Spatial resolution in µm
12821 <cell alignment="center" valignment="top" usebox="none">
12824 \begin_layout Plain Layout
12830 <cell alignment="center" valignment="top" usebox="none">
12833 \begin_layout Plain Layout
12839 <cell alignment="center" valignment="top" usebox="none">
12842 \begin_layout Plain Layout
12849 <row topspace="default">
12850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12853 \begin_layout Plain Layout
12855 \begin_inset Formula $f_{\mathrm{max}}$
12863 <cell alignment="center" valignment="top" usebox="none">
12866 \begin_layout Plain Layout
12872 <cell alignment="center" valignment="top" usebox="none">
12875 \begin_layout Plain Layout
12881 <cell alignment="center" valignment="top" usebox="none">
12884 \begin_layout Plain Layout
12891 <row topspace="default">
12892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12895 \begin_layout Plain Layout
12899 \begin_layout Plain Layout
12903 cmidrule(l{10pt}){1-1}
12908 LSF-spatial resolution
12913 <cell alignment="center" valignment="top" usebox="none">
12916 \begin_layout Plain Layout
12922 <cell alignment="center" valignment="top" usebox="none">
12925 \begin_layout Plain Layout
12931 <cell alignment="center" valignment="top" usebox="none">
12934 \begin_layout Plain Layout
12942 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12945 \begin_layout Plain Layout
12951 <cell alignment="center" valignment="top" usebox="none">
12954 \begin_layout Plain Layout
12960 <cell alignment="center" valignment="top" usebox="none">
12963 \begin_layout Plain Layout
12969 <cell alignment="center" valignment="top" usebox="none">
12972 \begin_layout Plain Layout
12980 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12983 \begin_layout Plain Layout
12989 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12992 \begin_layout Plain Layout
12998 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13001 \begin_layout Plain Layout
13007 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13010 \begin_layout Plain Layout
13029 \begin_layout Standard
13030 Spaces to table rows can be added using the
13034 tab of the table dialog as described in section
13035 \begin_inset space ~
13039 \begin_inset CommandInset ref
13041 reference "sub:Row-Spacing"
13048 \begin_layout Standard
13049 Unlike normal tables, formal tables have no vertical table lines.
13050 The horizontal table lines can be set as for normal tables but they appear
13051 with different widths in the output:
13052 \begin_inset Newline newline
13055 The first and the last table line have a default width of 0.08
13056 \begin_inset space \thinspace{}
13059 em while the other lines have a default width of 0.05
13060 \begin_inset space \thinspace{}
13066 \begin_layout Standard
13067 The default widths can be changed with the following preamble lines
13070 \begin_layout Standard
13080 \begin_inset Newline newline
13092 \begin_layout Standard
13093 This example is for the first line, the so called
13098 If you want to change the width for the last line, replace
13107 To change the width for the other lines replace
13116 You can use all units listed in appendix
13117 \begin_inset space ~
13121 \begin_inset CommandInset ref
13123 reference "cha:Units-available-in"
13130 \begin_layout Standard
13131 Lines that do not span all table columns can be created by setting a table
13132 line for multicolumn cells.
13133 LyX will then internally use the command
13139 to create this line.
13143 \begin_layout Standard
13148 cmidrule[width](trim){startcol-endcol}
13151 \begin_layout Standard
13158 are currently not supported by LyX so you have to use TeX-Code to be able
13166 s can manually be created by inserting the command as TeX-Code as the first
13167 cell entry of the first cell of a row.
13168 The line is then drawn in the output above the current row.
13171 \begin_layout Standard
13172 The default for the width is 0.03
13173 \begin_inset space \thinspace{}
13177 Startcol is the number of the column where the line starts and endcol the
13178 column number where the line ends.
13179 The endcol always needs to be specified, also when the line should span
13181 The optional parameter trim could be either
13189 where the trimwidth is also optional.
13190 Using for example the parameter
13194 means that the line is trimmed from its left end by 2
13195 \begin_inset space \thinspace{}
13199 If you don't specify the trimwidth the lines are trimmed by the default
13201 \begin_inset space \thinspace{}
13207 \begin_layout Standard
13208 \begin_inset VSpace bigskip
13212 \begin_inset space ~
13216 \begin_inset CommandInset ref
13218 reference "tab:Example-booktabs-table"
13222 was created using the commands
13225 \begin_layout Standard
13235 \begin_layout Standard
13236 at the beginning of the second row and
13239 \begin_layout Standard
13244 cmidrule(l{10pt}){1-1}
13247 \begin_layout Standard
13251 \begin_layout Standard
13252 \begin_inset VSpace bigskip
13258 \begin_layout Standard
13259 You might want to have overlapping
13266 \begin_inset space ~
13270 \begin_inset CommandInset ref
13272 reference "tab:Special-booktabs-table"
13277 This can be achieved with the TeX-Code command
13280 \begin_layout Standard
13288 \begin_layout Standard
13289 The command that was used for the second row of Table
13290 \begin_inset space ~
13294 \begin_inset CommandInset ref
13296 reference "tab:Special-booktabs-table"
13303 \begin_layout Standard
13317 \begin_layout Standard
13318 The command for the sixth row is
13321 \begin_layout Standard
13333 \begin_layout Standard
13334 \begin_inset VSpace bigskip
13340 \begin_layout Standard
13341 If you are anyway not satisfied with the border line spacing, you can use
13342 the following command to produce lines that span over all table columns
13347 \begin_layout Standard
13352 specialrule{width}{space above}{space below}
13355 \begin_layout Standard
13356 For more information about these features, refer to the manual of the LaTeX-pack
13362 \begin_inset CommandInset citation
13369 \begin_inset Index idx
13372 \begin_layout Plain Layout
13373 LaTeX-packages ! booktabs
13381 \begin_layout Standard
13382 \begin_inset Float table
13388 \begin_layout Plain Layout
13389 \begin_inset Caption
13391 \begin_layout Plain Layout
13392 \begin_inset CommandInset label
13394 name "tab:Special-booktabs-table"
13398 Special booktabs-table
13406 \begin_layout Plain Layout
13408 \begin_inset Tabular
13409 <lyxtabular version="3" rows="8" columns="4">
13410 <features booktabs="true" tabularvalignment="middle">
13411 <column alignment="center" valignment="top" width="0">
13412 <column alignment="center" valignment="top" width="0">
13413 <column alignment="center" valignment="top" width="0">
13414 <column alignment="center" valignment="top" width="0">
13416 <cell alignment="center" valignment="top" topline="true" usebox="none">
13419 \begin_layout Plain Layout
13425 <cell alignment="center" valignment="top" topline="true" usebox="none">
13428 \begin_layout Plain Layout
13430 \begin_inset space \thinspace{}
13438 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13441 \begin_layout Plain Layout
13443 \begin_inset space \thinspace{}
13451 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13454 \begin_layout Plain Layout
13462 <cell alignment="center" valignment="top" usebox="none">
13465 \begin_layout Plain Layout
13469 \begin_layout Plain Layout
13482 \begin_layout Plain Layout
13495 \begin_layout Plain Layout
13508 \begin_layout Plain Layout
13517 Detector thickness in µm
13522 <cell alignment="center" valignment="top" usebox="none">
13525 \begin_layout Plain Layout
13531 <cell alignment="center" valignment="top" usebox="none">
13534 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" usebox="none">
13543 \begin_layout Plain Layout
13551 <cell alignment="center" valignment="top" topline="true" usebox="none">
13554 \begin_layout Plain Layout
13560 <cell alignment="center" valignment="top" topline="true" usebox="none">
13563 \begin_layout Plain Layout
13569 <cell alignment="center" valignment="top" topline="true" usebox="none">
13572 \begin_layout Plain Layout
13578 <cell alignment="center" valignment="top" topline="true" usebox="none">
13581 \begin_layout Plain Layout
13588 <row topspace="default">
13589 <cell alignment="center" valignment="top" usebox="none">
13592 \begin_layout Plain Layout
13593 Spatial resolution in µm
13598 <cell alignment="center" valignment="top" usebox="none">
13601 \begin_layout Plain Layout
13607 <cell alignment="center" valignment="top" usebox="none">
13610 \begin_layout Plain Layout
13616 <cell alignment="center" valignment="top" usebox="none">
13619 \begin_layout Plain Layout
13626 <row topspace="default">
13627 <cell alignment="center" valignment="top" usebox="none">
13630 \begin_layout Plain Layout
13632 \begin_inset Formula $f_{\mathrm{max}}$
13640 <cell alignment="center" valignment="top" usebox="none">
13643 \begin_layout Plain Layout
13649 <cell alignment="center" valignment="top" usebox="none">
13652 \begin_layout Plain Layout
13658 <cell alignment="center" valignment="top" usebox="none">
13661 \begin_layout Plain Layout
13669 <cell alignment="center" valignment="top" topline="true" usebox="none">
13672 \begin_layout Plain Layout
13676 \begin_layout Plain Layout
13689 \begin_layout Plain Layout
13698 LSF-spatial resolution
13703 <cell alignment="center" valignment="top" topline="true" usebox="none">
13706 \begin_layout Plain Layout
13712 <cell alignment="center" valignment="top" topline="true" usebox="none">
13715 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" usebox="none">
13724 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" usebox="none">
13744 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" usebox="none">
13762 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13773 \begin_layout Plain Layout
13779 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13782 \begin_layout Plain Layout
13788 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13791 \begin_layout Plain Layout
13797 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13800 \begin_layout Plain Layout
13819 \begin_layout Section
13820 Vertical Table Alignment
13821 \begin_inset Index idx
13824 \begin_layout Plain Layout
13833 \begin_layout Standard
13834 To align tables vertically in a text line the table must be inside a box.
13835 The box can then be vertically aligned as described in section
13836 \begin_inset space ~
13840 \begin_inset CommandInset ref
13842 reference "sec:Box-Dialog"
13849 \begin_layout Standard
13850 In the following example the tables are inside a minipage
13854 \begin_layout Plain Layout
13855 Minipages are described in section
13856 \begin_inset space ~
13860 \begin_inset CommandInset ref
13862 reference "sec:Minipages"
13871 box that has a width of 15
13872 \begin_inset space \thinspace{}
13878 \begin_layout Itemize
13880 \begin_inset Box Frameless
13890 height_special "totalheight"
13893 \begin_layout Plain Layout
13894 \begin_inset Tabular
13895 <lyxtabular version="3" rows="3" columns="3">
13896 <features tabularvalignment="middle">
13897 <column alignment="center" valignment="top" width="0">
13898 <column alignment="center" valignment="top" width="0">
13899 <column alignment="center" valignment="top" width="0">
13901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13904 \begin_layout Plain Layout
13910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13913 \begin_layout Plain Layout
13919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13922 \begin_layout Plain Layout
13930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13933 \begin_layout Plain Layout
13939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13942 \begin_layout Plain Layout
13948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13951 \begin_layout Plain Layout
13959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13962 \begin_layout Plain Layout
13968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13971 \begin_layout Plain Layout
13977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13980 \begin_layout Plain Layout
14000 \begin_layout Plain Layout
14012 \begin_inset Box Frameless
14022 height_special "totalheight"
14025 \begin_layout Plain Layout
14026 \begin_inset Tabular
14027 <lyxtabular version="3" rows="3" columns="3">
14028 <features tabularvalignment="middle">
14029 <column alignment="center" valignment="top" width="0">
14030 <column alignment="center" valignment="top" width="0">
14031 <column alignment="center" valignment="top" width="0">
14033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14036 \begin_layout Plain Layout
14042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14045 \begin_layout Plain Layout
14051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14054 \begin_layout Plain Layout
14062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14065 \begin_layout Plain Layout
14071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14074 \begin_layout Plain Layout
14080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14083 \begin_layout Plain Layout
14091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14094 \begin_layout Plain Layout
14100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14103 \begin_layout Plain Layout
14109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14112 \begin_layout Plain Layout
14132 \begin_layout Plain Layout
14142 \begin_layout Itemize
14144 \begin_inset Box Frameless
14154 height_special "totalheight"
14157 \begin_layout Plain Layout
14158 \begin_inset Tabular
14159 <lyxtabular version="3" rows="3" columns="3">
14160 <features tabularvalignment="middle">
14161 <column alignment="center" valignment="top" width="0">
14162 <column alignment="center" valignment="top" width="0">
14163 <column alignment="center" valignment="top" width="0">
14165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14168 \begin_layout Plain Layout
14174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14177 \begin_layout Plain Layout
14183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14186 \begin_layout Plain Layout
14194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14197 \begin_layout Plain Layout
14203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14206 \begin_layout Plain Layout
14212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14215 \begin_layout Plain Layout
14223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14226 \begin_layout Plain Layout
14232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14235 \begin_layout Plain Layout
14241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14244 \begin_layout Plain Layout
14263 \begin_layout Itemize
14265 \begin_inset Box Frameless
14275 height_special "totalheight"
14278 \begin_layout Plain Layout
14279 \begin_inset Tabular
14280 <lyxtabular version="3" rows="3" columns="3">
14281 <features tabularvalignment="middle">
14282 <column alignment="center" valignment="top" width="0">
14283 <column alignment="center" valignment="top" width="0">
14284 <column alignment="center" valignment="top" width="0">
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14289 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14298 \begin_layout Plain Layout
14304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14307 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14318 \begin_layout Plain Layout
14324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14327 \begin_layout Plain Layout
14333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14336 \begin_layout Plain Layout
14344 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14347 \begin_layout Plain Layout
14353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14356 \begin_layout Plain Layout
14362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14365 \begin_layout Plain Layout
14385 \begin_layout Plain Layout
14397 \begin_inset Box Frameless
14407 height_special "totalheight"
14410 \begin_layout Plain Layout
14411 \begin_inset Tabular
14412 <lyxtabular version="3" rows="3" columns="3">
14413 <features tabularvalignment="middle">
14414 <column alignment="center" valignment="top" width="0">
14415 <column alignment="center" valignment="top" width="0">
14416 <column alignment="center" valignment="top" width="0">
14418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14421 \begin_layout Plain Layout
14427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14430 \begin_layout Plain Layout
14436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14439 \begin_layout Plain Layout
14447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14450 \begin_layout Plain Layout
14456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14459 \begin_layout Plain Layout
14465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14468 \begin_layout Plain Layout
14476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14479 \begin_layout Plain Layout
14485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14488 \begin_layout Plain Layout
14494 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14497 \begin_layout Plain Layout
14517 \begin_layout Plain Layout
14527 \begin_layout Standard
14528 As you will see, the content of the first and last table row is not correctly
14530 To get this alignment, the minipage box must be set into a raisebox
14534 \begin_layout Plain Layout
14535 Raiseboxes are described in section
14536 \begin_inset space ~
14540 \begin_inset CommandInset ref
14542 reference "sub:Vertical-Alignment"
14552 In the example above the second table in the first item is aligned using
14553 the TeX-Code-command
14556 \begin_layout Standard
14566 \begin_layout Standard
14568 After the box the closing brace
14572 is inserted as TeX-Code.
14573 For the second table in the last item the command
14576 \begin_layout Standard
14586 \begin_layout Standard
14590 \begin_layout Standard
14591 \begin_inset Note Greyedout
14594 \begin_layout Plain Layout
14599 The alignment of the table row content to the surrounding text line is
14601 The required value for the
14607 command for this alignment depends on the document font, the font size,
14608 and the table line thickness.
14616 \begin_layout Section
14618 \begin_inset CommandInset label
14620 name "sec:Colored-Tables"
14625 \begin_inset Index idx
14628 \begin_layout Plain Layout
14637 \begin_layout Subsection
14639 \begin_inset Index idx
14642 \begin_layout Plain Layout
14643 Table Color ! for Cells
14649 \begin_inset Index idx
14652 \begin_layout Plain Layout
14653 Color ! for Table Cells
14661 \begin_layout Standard
14662 \begin_inset Float table
14668 \begin_layout Plain Layout
14669 \begin_inset Caption
14671 \begin_layout Plain Layout
14672 \begin_inset CommandInset label
14674 name "tab:Table-colored-without"
14678 Table colored without using the package
14683 \begin_inset Argument
14686 \begin_layout Plain Layout
14687 Table without colortbl
14700 \begin_layout Plain Layout
14702 \begin_inset Tabular
14703 <lyxtabular version="3" rows="3" columns="3">
14704 <features tabularvalignment="middle">
14705 <column alignment="center" valignment="top" width="0">
14706 <column alignment="center" valignment="top" width="0">
14707 <column alignment="center" valignment="top" width="0">
14709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14712 \begin_layout Plain Layout
14720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14723 \begin_layout Plain Layout
14731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14734 \begin_layout Plain Layout
14744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14747 \begin_layout Plain Layout
14755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14758 \begin_layout Plain Layout
14766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14769 \begin_layout Plain Layout
14779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14782 \begin_layout Plain Layout
14790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14793 \begin_layout Plain Layout
14801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14804 \begin_layout Plain Layout
14825 \begin_layout Standard
14826 If you only need colored text, mark the cells and choose a color in the
14829 Edit\SpecialChar \menuseparator
14831 \begin_inset space ~
14837 This was used to create Table
14838 \begin_inset space ~
14842 \begin_inset CommandInset ref
14844 reference "tab:Table-colored-without"
14849 In any other case you have to use the LaTeX-package
14854 \begin_inset Index idx
14857 \begin_layout Plain Layout
14858 LaTeX-packages ! colortbl
14866 \begin_layout Standard
14870 \begin_layout Plain Layout
14880 \begin_inset Note Note
14883 \begin_layout Plain Layout
14884 The following section part will only be displayed when the LaTeX-package
14897 \begin_layout Standard
14898 To create colored tables,
14902 must be loaded in the preamble with the line
14905 \begin_layout Standard
14910 usepackage{colortbl}
14913 \begin_layout Standard
14914 The color of a column is adjusted with the command
14917 \begin_layout Standard
14922 columncolor{name of color}
14925 \begin_layout Standard
14931 More about the command
14935 is contained in section
14936 \begin_inset space ~
14940 \begin_inset CommandInset ref
14942 reference "sub:Multicolumn-Calculations"
14949 \begin_layout Standard
14950 The following color names are predefined:
14953 \begin_layout Standard
14987 \begin_layout Standard
14988 \begin_inset VSpace medskip
14994 \begin_layout Standard
14995 You can also define your own color with the command
14998 \begin_layout Standard
15003 definecolor{color name}{color model}{color values}
15006 \begin_layout Standard
15007 The color model can be
15010 \begin_layout Labeling
15011 \labelwidthstring 00.00.0000
15012 cmyk: cyan, magenta, yellow, black
15015 \begin_layout Labeling
15016 \labelwidthstring 00.00.0000
15017 rgb: red, green blue
15020 \begin_layout Labeling
15021 \labelwidthstring 00.00.0000
15025 \begin_layout Standard
15026 and the color values are comma separated numbers between 0 and 1 describing
15027 the factor for the corresponding color of the color model.
15030 \begin_layout Standard
15032 \begin_inset space \thinspace{}
15036 \begin_inset space \space{}
15043 " in the preamble with
15046 \begin_layout Standard
15051 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15054 \begin_layout Standard
15062 \begin_layout Standard
15067 definecolor{lightgray}{gray}{0.8}
15070 \begin_layout Standard
15071 \begin_inset VSpace medskip
15077 \begin_layout Standard
15078 Lines are colored with the command
15081 \begin_layout Standard
15086 rowcolor{name of color}
15089 \begin_layout Standard
15090 and cells are colored with the command
15093 \begin_layout Standard
15098 cellcolor{name of color}
15101 \begin_layout Standard
15102 Both commands are inserted at the beginning of a cell as TeX-Code.
15105 \begin_layout Standard
15106 To color characters in the table, mark the cells and use the LyX menu
15108 Edit\SpecialChar \menuseparator
15110 \begin_inset space ~
15116 If a cell contains TeX-Code mark only the characters, otherwise the colored
15117 TeX-Code will cause LaTeX-errors.
15120 \begin_layout Standard
15121 \begin_inset Note Greyedout
15124 \begin_layout Plain Layout
15129 Not all DVI-viewers are able to display self-defined colors.
15137 \begin_layout Standard
15138 \begin_inset VSpace bigskip
15144 \begin_layout Standard
15146 \begin_inset space ~
15150 \begin_inset CommandInset ref
15152 reference "tab:Table-colored-using"
15156 do the following: The color of the first column should be
15164 \begin_layout Standard
15169 columncolor{darkgreen}
15174 \begin_layout Standard
15175 as LaTeX-argument for this column.
15176 The first row should be blue, therefore the TeX-Code command
15179 \begin_layout Standard
15187 \begin_layout Standard
15188 is inserted to the first cell of this row.
15189 Note that this overwrites the column color for the first cell.
15190 The last cell of the last row is colored magenta by inserting the TeX-Code
15194 \begin_layout Standard
15202 \begin_layout Standard
15203 The characters could now be colored using the menu
15205 Edit\SpecialChar \menuseparator
15207 \begin_inset space ~
15215 \begin_layout Standard
15216 \begin_inset Float table
15222 \begin_layout Plain Layout
15223 \begin_inset Caption
15225 \begin_layout Plain Layout
15226 \begin_inset CommandInset label
15228 name "tab:Table-colored-using"
15232 Table colored using the package
15237 \begin_inset Argument
15240 \begin_layout Plain Layout
15241 Table with colortbl
15254 \begin_layout Plain Layout
15256 \begin_inset Tabular
15257 <lyxtabular version="3" rows="3" columns="3">
15258 <features tabularvalignment="middle">
15259 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15260 <column alignment="center" valignment="top" width="0">
15261 <column alignment="center" valignment="top" width="0">
15263 <cell alignment="center" valignment="top" usebox="none">
15266 \begin_layout Plain Layout
15270 \begin_layout Plain Layout
15286 <cell alignment="center" valignment="top" usebox="none">
15289 \begin_layout Plain Layout
15297 <cell alignment="center" valignment="top" usebox="none">
15300 \begin_layout Plain Layout
15310 <cell alignment="center" valignment="top" usebox="none">
15313 \begin_layout Plain Layout
15321 <cell alignment="center" valignment="top" usebox="none">
15324 \begin_layout Plain Layout
15332 <cell alignment="center" valignment="top" usebox="none">
15335 \begin_layout Plain Layout
15345 <cell alignment="center" valignment="top" usebox="none">
15348 \begin_layout Plain Layout
15356 <cell alignment="center" valignment="top" usebox="none">
15359 \begin_layout Plain Layout
15367 <cell alignment="center" valignment="top" usebox="none">
15370 \begin_layout Plain Layout
15374 \begin_layout Plain Layout
15403 \begin_layout Standard
15407 \begin_layout Plain Layout
15417 \begin_inset Note Note
15420 \begin_layout Plain Layout
15421 The following will be displayed when the LaTeX-package
15433 \begin_layout Standard
15434 You need to install the package
15438 to see the content of this section in the output.
15441 \begin_layout Standard
15445 \begin_layout Plain Layout
15457 \begin_layout Subsection
15459 \begin_inset Index idx
15462 \begin_layout Plain Layout
15463 Table Color ! for Lines
15469 \begin_inset Index idx
15472 \begin_layout Plain Layout
15473 Color ! for Table Lines
15481 \begin_layout Standard
15482 As described in section
15483 \begin_inset space ~
15487 \begin_inset CommandInset ref
15489 reference "sub:Line-Thickness"
15493 , the line thickness for all lines in a table can be adjusted with the length
15502 \begin_inset space \thinspace{}
15505 pt for all tables of this section.
15509 \begin_layout Plain Layout
15515 arrayrulewidth}{1.5pt}
15523 \begin_layout Standard
15524 To color vertical lines for example with green, create the following column
15525 format in the document preamble, according to the description in section
15526 \begin_inset space ~
15530 \begin_inset CommandInset ref
15532 reference "sub:Customized-Format"
15539 \begin_layout Standard
15544 newcolumntype{W}{!{
15551 \begin_layout Standard
15553 \begin_inset space ~
15557 \begin_inset CommandInset ref
15559 reference "tab:Table-with-vertical-colored"
15567 was used for the last column and
15571 for the other columns.
15574 \begin_layout Standard
15575 If you want to have several colors, define more column formats.
15578 \begin_layout Standard
15579 \begin_inset Float table
15585 \begin_layout Plain Layout
15586 \begin_inset Caption
15588 \begin_layout Plain Layout
15589 \begin_inset CommandInset label
15591 name "tab:Table-with-vertical-colored"
15595 Table with colored vertical lines
15603 \begin_layout Plain Layout
15605 \begin_inset Tabular
15606 <lyxtabular version="3" rows="3" columns="3">
15607 <features tabularvalignment="middle">
15608 <column alignment="center" valignment="top" width="0" special="Wc">
15609 <column alignment="center" valignment="top" width="0" special="Wc">
15610 <column alignment="center" valignment="top" width="0" special="WcW">
15612 <cell alignment="center" valignment="top" topline="true" usebox="none">
15615 \begin_layout Plain Layout
15621 <cell alignment="center" valignment="top" topline="true" usebox="none">
15624 \begin_layout Plain Layout
15630 <cell alignment="center" valignment="top" topline="true" usebox="none">
15633 \begin_layout Plain Layout
15641 <cell alignment="center" valignment="top" topline="true" usebox="none">
15644 \begin_layout Plain Layout
15650 <cell alignment="center" valignment="top" topline="true" usebox="none">
15653 \begin_layout Plain Layout
15659 <cell alignment="center" valignment="top" topline="true" usebox="none">
15662 \begin_layout Plain Layout
15670 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15673 \begin_layout Plain Layout
15679 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15682 \begin_layout Plain Layout
15688 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15691 \begin_layout Plain Layout
15710 \begin_layout Standard
15711 \begin_inset VSpace bigskip
15714 To color horizontal lines for example with red, as in Table
15715 \begin_inset space ~
15719 \begin_inset CommandInset ref
15721 reference "tab:Table-with-horizontal-colored"
15725 , insert these commands in TeX-Code before the table or table float:
15728 \begin_layout Standard
15738 \begin_inset Newline newline
15746 \begin_inset Newline newline
15750 \begin_inset Phantom HPhantom
15753 \begin_layout Plain Layout
15756 \begin_inset space ~
15766 arrayrulecolor{red}
15770 arrayrulecolor{black}}
15773 \begin_layout Standard
15777 \begin_layout Plain Layout
15788 \begin_layout Plain Layout
15797 \begin_layout Plain Layout
15801 arrayrulecolor{red}
15805 arrayrulecolor{black}}
15811 \begin_inset Float table
15817 \begin_layout Plain Layout
15818 \begin_inset Caption
15820 \begin_layout Plain Layout
15821 \begin_inset CommandInset label
15823 name "tab:Table-with-horizontal-colored"
15827 Table with colored horizontal lines
15835 \begin_layout Plain Layout
15837 \begin_inset Tabular
15838 <lyxtabular version="3" rows="3" columns="3">
15839 <features tabularvalignment="middle">
15840 <column alignment="center" valignment="top" width="0">
15841 <column alignment="center" valignment="top" width="0">
15842 <column alignment="center" valignment="top" width="0">
15844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15847 \begin_layout Plain Layout
15853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15856 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15865 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15876 \begin_layout Plain Layout
15882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15885 \begin_layout Plain Layout
15891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15894 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15905 \begin_layout Plain Layout
15911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15914 \begin_layout Plain Layout
15920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15923 \begin_layout Plain Layout
15942 \begin_layout Standard
15943 To return to the default line color black, insert this command in TeX-Code
15944 after the table or table float:
15947 \begin_layout Standard
15959 \begin_layout Standard
15961 \begin_inset space ~
15965 \begin_inset CommandInset ref
15967 reference "tab:Table-with-colored"
15971 is an example with colored vertical and horizontal lines.
15974 \begin_layout Standard
15975 \begin_inset Float table
15981 \begin_layout Plain Layout
15982 \begin_inset Caption
15984 \begin_layout Plain Layout
15985 \begin_inset CommandInset label
15987 name "tab:Table-with-colored"
15991 Table with colored lines
15999 \begin_layout Plain Layout
16001 \begin_inset Tabular
16002 <lyxtabular version="3" rows="3" columns="3">
16003 <features tabularvalignment="middle">
16004 <column alignment="center" valignment="top" width="0" special="Wc">
16005 <column alignment="center" valignment="top" width="0" special="Wc">
16006 <column alignment="center" valignment="top" width="0" special="WcW">
16008 <cell alignment="center" valignment="top" topline="true" usebox="none">
16011 \begin_layout Plain Layout
16017 <cell alignment="center" valignment="top" topline="true" usebox="none">
16020 \begin_layout Plain Layout
16026 <cell alignment="center" valignment="top" topline="true" usebox="none">
16029 \begin_layout Plain Layout
16037 <cell alignment="center" valignment="top" topline="true" usebox="none">
16040 \begin_layout Plain Layout
16046 <cell alignment="center" valignment="top" topline="true" usebox="none">
16049 \begin_layout Plain Layout
16055 <cell alignment="center" valignment="top" topline="true" usebox="none">
16058 \begin_layout Plain Layout
16065 <row topspace="default">
16066 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16069 \begin_layout Plain Layout
16075 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16078 \begin_layout Plain Layout
16084 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16087 \begin_layout Plain Layout
16106 \begin_layout Standard
16110 \begin_layout Plain Layout
16126 \begin_layout Standard
16130 \begin_layout Plain Layout
16136 arrayrulewidth}{0.4pt}
16144 \begin_layout Section
16145 Table Customization
16146 \begin_inset Index idx
16149 \begin_layout Plain Layout
16150 Table Customization
16156 \begin_inset Index idx
16159 \begin_layout Plain Layout
16160 Table ! Customization
16168 \begin_layout Subsection
16170 \begin_inset CommandInset label
16172 name "sub:Row-Spacing"
16177 \begin_inset Index idx
16180 \begin_layout Plain Layout
16181 Table Customization ! Row Spacing
16189 \begin_layout Standard
16190 You can add vertical space to table rows in the
16194 tab of the table dialog.
16195 You find there three possibilities:
16198 \begin_layout Description
16200 \begin_inset space ~
16204 \begin_inset space ~
16207 row will add space above the characters of the table row.
16208 If the table is a formal table
16212 \begin_layout Plain Layout
16213 Formal tables are explained in section
16214 \begin_inset space ~
16218 \begin_inset CommandInset ref
16220 reference "sec:Formal-Tables"
16229 LyX will insert as default 0.5
16230 \begin_inset space \thinspace{}
16234 For normal tables the inserted space will unfortunately destroy the vertical
16235 table lines as in the following table:
16236 \begin_inset VSpace medskip
16240 \begin_inset Newline newline
16244 \begin_inset space \hspace*{}
16249 \begin_inset space \hfill{}
16253 \begin_inset Tabular
16254 <lyxtabular version="3" rows="3" columns="1">
16255 <features tabularvalignment="middle">
16256 <column alignment="center" valignment="top" width="0">
16258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_layout Plain Layout
16268 <row topspace="3mm">
16269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16272 \begin_layout Plain Layout
16274 \begin_inset space \thinspace{}
16277 mm space top of row
16284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16287 \begin_layout Plain Layout
16299 \begin_inset space \hfill{}
16303 \begin_inset space \hspace*{}
16308 \begin_inset VSpace medskip
16312 \begin_inset Newline newline
16315 So inserting space in the top of row for normal tables is only useful when
16316 you don't have vertical lines.
16319 \begin_layout Description
16321 \begin_inset space ~
16325 \begin_inset space ~
16328 row will add space below the characters of the table row.
16329 If the table is a formal table LyX will insert as default 0.5
16330 \begin_inset space \thinspace{}
16333 em space, for normal tables the default size is 2
16334 \begin_inset space \thinspace{}
16340 \begin_layout Description
16342 \begin_inset space ~
16345 rows adds space between the current and the following row.
16346 If the table is a formal table LyX will insert as default 0.5
16347 \begin_inset space \thinspace{}
16351 For normal tables the inserted space will unfortunately destroy the vertical
16352 table lines as in the following table:
16353 \begin_inset VSpace medskip
16357 \begin_inset Newline newline
16361 \begin_inset space \hspace*{}
16366 \begin_inset space \hfill{}
16370 \begin_inset Tabular
16371 <lyxtabular version="3" rows="3" columns="1">
16372 <features tabularvalignment="middle">
16373 <column alignment="center" valignment="top" width="0">
16375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16378 \begin_layout Plain Layout
16385 <row interlinespace="3mm">
16386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16389 \begin_layout Plain Layout
16390 \begin_inset Formula $\downarrow$
16394 \begin_inset space \thinspace{}
16397 mm space between row
16398 \begin_inset Formula $\downarrow$
16408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16411 \begin_layout Plain Layout
16412 \begin_inset Formula $\uparrow$
16416 \begin_inset space \thinspace{}
16419 mm space between row
16420 \begin_inset Formula $\uparrow$
16434 \begin_inset space \hfill{}
16438 \begin_inset space \hspace*{}
16443 \begin_inset VSpace medskip
16447 \begin_inset Newline newline
16450 So inserting space between rows for normal tables is only useful when you
16451 don't have vertical lines.
16454 \begin_layout Standard
16455 \begin_inset VSpace bigskip
16458 When you want to add extra height to all cells of all tables, you can do
16459 this with the following preamble lines:
16462 \begin_layout Standard
16467 @ifundefined{extrarowheight}
16468 \begin_inset Newline newline
16472 \begin_inset Phantom HPhantom
16475 \begin_layout Plain Layout
16478 \begin_inset space ~
16488 usepackage{array}}{}
16489 \begin_inset Newline newline
16496 extrarowheight}{height}
16499 \begin_layout Standard
16500 But this has the disadvantage that the cell texts are no longer exactly
16501 vertically centered.
16506 will be loaded automatically by LyX when you use self defined table formats.
16507 To avoid that it being loaded twice the command
16513 is used in the above command.)
16516 \begin_layout Standard
16517 If you are using font sizes larger than the normal size, the table borders
16518 are often too close to the letters.
16519 This can be corrected by inserting the command
16525 in TeX code at the beginning of a table row.
16527 \begin_inset space ~
16531 \begin_inset CommandInset ref
16533 reference "tab:Vertical-alignment-of"
16537 illustrates the effect.
16540 \begin_layout Standard
16542 \begin_inset Float table
16548 \begin_layout Plain Layout
16549 \begin_inset Caption
16551 \begin_layout Plain Layout
16552 \begin_inset CommandInset label
16554 name "tab:Vertical-alignment-of"
16558 Vertical alignment of text with large font sizes.
16566 \begin_layout Plain Layout
16567 \begin_inset space \hfill{}
16571 \begin_inset Float table
16576 \begin_layout Plain Layout
16577 \begin_inset Caption
16579 \begin_layout Plain Layout
16588 \begin_layout Plain Layout
16591 \begin_inset Tabular
16592 <lyxtabular version="3" rows="6" columns="1">
16593 <features tabularvalignment="middle">
16594 <column alignment="left" valignment="top" width="0">
16596 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16599 \begin_layout Plain Layout
16607 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16610 \begin_layout Plain Layout
16620 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16623 \begin_layout Plain Layout
16633 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16636 \begin_layout Plain Layout
16646 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16649 \begin_layout Plain Layout
16659 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16662 \begin_layout Plain Layout
16681 \begin_inset space \hfill{}
16685 \begin_inset Float table
16690 \begin_layout Plain Layout
16691 \begin_inset Caption
16693 \begin_layout Plain Layout
16694 Table using the command
16708 \begin_layout Plain Layout
16711 \begin_inset Tabular
16712 <lyxtabular version="3" rows="6" columns="1">
16713 <features tabularvalignment="middle">
16714 <column alignment="left" valignment="top" width="0">
16716 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16719 \begin_layout Plain Layout
16727 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16730 \begin_layout Plain Layout
16736 \begin_layout Plain Layout
16752 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16755 \begin_layout Plain Layout
16761 \begin_layout Plain Layout
16777 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16780 \begin_layout Plain Layout
16786 \begin_layout Plain Layout
16802 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16805 \begin_layout Plain Layout
16811 \begin_layout Plain Layout
16827 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16830 \begin_layout Plain Layout
16836 \begin_layout Plain Layout
16863 \begin_inset space \hfill{}
16874 \begin_layout Subsection
16875 Special Cell Alignment
16876 \begin_inset CommandInset label
16878 name "sub:Special-Cell-Alignment"
16883 \begin_inset Index idx
16886 \begin_layout Plain Layout
16887 Table Customization ! Special Cell Alignment
16895 \begin_layout Standard
16896 Sometimes it looks better when the cell entries of a column are aligned
16897 with a special character, e.
16898 \begin_inset space \thinspace{}
16902 \begin_inset space \space{}
16905 with the decimal separator as in Table
16906 \begin_inset space ~
16910 \begin_inset CommandInset ref
16912 reference "tab:Table-cells-align"
16917 This alignment is achieved by highlighting the last 3
16918 \begin_inset space ~
16921 cells of the column and then either pressing the toolbar button
16922 \begin_inset Graphics
16923 filename ../images/tabular-feature_align-decimal.png
16925 scaleBeforeRotation
16929 or setting the alignment in the table settings to
16932 \begin_inset space ~
16936 \begin_inset space ~
16942 The alignment character can be a character of your choice and is specified
16943 in the table settings.
16946 \begin_layout Standard
16947 \begin_inset Float table
16953 \begin_layout Plain Layout
16954 \begin_inset Caption
16956 \begin_layout Plain Layout
16957 \begin_inset CommandInset label
16959 name "tab:Table-cells-align"
16963 Table cells of a column aligned with the decimal separator.
16971 \begin_layout Plain Layout
16973 \begin_inset Tabular
16974 <lyxtabular version="3" rows="4" columns="1">
16975 <features booktabs="true" tabularvalignment="middle">
16976 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
16978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
16981 \begin_layout Plain Layout
16989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16992 \begin_layout Plain Layout
17000 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17003 \begin_layout Plain Layout
17011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17014 \begin_layout Plain Layout
17033 \begin_layout Standard
17034 \begin_inset Float table
17040 \begin_layout Plain Layout
17041 \begin_inset Caption
17043 \begin_layout Plain Layout
17044 \begin_inset CommandInset label
17046 name "tab:Table-align-operator"
17050 Table cells of a column aligned with the operators.
17058 \begin_layout Plain Layout
17060 \begin_inset Tabular
17061 <lyxtabular version="3" rows="4" columns="2">
17062 <features booktabs="true" tabularvalignment="middle">
17063 <column alignment="right" valignment="top" width="0pt">
17064 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17066 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17069 \begin_layout Plain Layout
17075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17078 \begin_layout Plain Layout
17086 <cell alignment="center" valignment="top" usebox="none">
17089 \begin_layout Plain Layout
17090 \begin_inset Formula $12\,+$
17098 <cell alignment="center" valignment="top" usebox="none">
17101 \begin_layout Plain Layout
17102 \begin_inset Formula $\,6$
17112 <cell alignment="center" valignment="top" usebox="none">
17115 \begin_layout Plain Layout
17116 \begin_inset Formula $0\,-$
17124 <cell alignment="center" valignment="top" usebox="none">
17127 \begin_layout Plain Layout
17128 \begin_inset Formula $\,68$
17138 <cell alignment="center" valignment="top" usebox="none">
17141 \begin_layout Plain Layout
17142 \begin_inset Formula $-123\,/$
17150 <cell alignment="center" valignment="top" usebox="none">
17153 \begin_layout Plain Layout
17154 \begin_inset Formula $\,0$
17175 \begin_layout Standard
17176 For alignments at characters in formulas this method does not work because
17177 the field to specify the alignment character does not allow formulas.
17178 In this case one need to use the method from Table
17179 \begin_inset space ~
17183 \begin_inset CommandInset ref
17185 reference "tab:Table-align-operator"
17190 This table was created with a 4×2 table.
17191 The heading is a centered multicolumn.
17192 The first column is right-aligned and contains the first part including
17194 The second column is left aligned and contains the rest.
17195 A small space was added at the beginning of each cell of the second column
17196 to get the space that is usually around operators.
17197 To omit the space that is normally between two table columns, the following
17198 LaTeX-argument was used for the second column:
17201 \begin_layout Standard
17207 \begin_layout Standard
17209 \begin_inset space ~
17213 \begin_inset CommandInset ref
17215 reference "tab:Several-table-cell"
17219 shows some example alignments.
17220 For the alignment with the relation sign, a small space was added like
17221 for the second column of Table
17222 \begin_inset space ~
17226 \begin_inset CommandInset ref
17228 reference "tab:Table-align-operator"
17235 \begin_layout Standard
17236 \begin_inset Float table
17242 \begin_layout Plain Layout
17243 \begin_inset Caption
17245 \begin_layout Plain Layout
17246 \begin_inset CommandInset label
17248 name "tab:Several-table-cell"
17252 Several table cell alignments.
17260 \begin_layout Plain Layout
17262 \begin_inset Tabular
17263 <lyxtabular version="3" rows="4" columns="6">
17264 <features tabularvalignment="middle">
17265 <column alignment="right" valignment="top" width="0">
17266 <column alignment="left" valignment="top" width="0" special="@{}l">
17267 <column alignment="right" valignment="top" width="0">
17268 <column alignment="left" valignment="top" width="0" special="@{}l">
17269 <column alignment="right" valignment="top" width="0">
17270 <column alignment="left" valignment="top" width="0" special="@{}l">
17272 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17275 \begin_layout Plain Layout
17281 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17284 \begin_layout Plain Layout
17290 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17293 \begin_layout Plain Layout
17299 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17302 \begin_layout Plain Layout
17308 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17311 \begin_layout Plain Layout
17317 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17320 \begin_layout Plain Layout
17328 <cell alignment="center" valignment="top" usebox="none">
17331 \begin_layout Plain Layout
17337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17342 \begin_inset space \thinspace{}
17350 <cell alignment="center" valignment="top" usebox="none">
17353 \begin_layout Plain Layout
17354 \begin_inset Formula $10\cdot$
17362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17365 \begin_layout Plain Layout
17366 \begin_inset Formula $10^{\mbox{-}17}$
17374 <cell alignment="center" valignment="top" usebox="none">
17377 \begin_layout Plain Layout
17378 \begin_inset Formula $\Gamma(t)\propto$
17386 <cell alignment="center" valignment="top" usebox="none">
17389 \begin_layout Plain Layout
17390 \begin_inset Formula $\:\Upsilon(t)$
17400 <cell alignment="center" valignment="top" usebox="none">
17403 \begin_layout Plain Layout
17409 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17412 \begin_layout Plain Layout
17414 \begin_inset space \thinspace{}
17422 <cell alignment="center" valignment="top" usebox="none">
17425 \begin_layout Plain Layout
17426 \begin_inset Formula $5.78\cdot$
17434 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17437 \begin_layout Plain Layout
17438 \begin_inset Formula $10^{7}$
17446 <cell alignment="center" valignment="top" usebox="none">
17449 \begin_layout Plain Layout
17450 \begin_inset Formula $A\ne$
17458 <cell alignment="center" valignment="top" usebox="none">
17461 \begin_layout Plain Layout
17462 \begin_inset Formula $\: B_{\mathrm{red}}$
17472 <cell alignment="center" valignment="top" usebox="none">
17475 \begin_layout Plain Layout
17481 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17484 \begin_layout Plain Layout
17486 \begin_inset space \thinspace{}
17494 <cell alignment="center" valignment="top" usebox="none">
17497 \begin_layout Plain Layout
17499 \begin_inset Formula $33.5\cdot$
17507 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17510 \begin_layout Plain Layout
17511 \begin_inset Formula $10^{4}$
17519 <cell alignment="center" valignment="top" usebox="none">
17522 \begin_layout Plain Layout
17523 \begin_inset Formula $\sin(\alpha)\ge$
17531 <cell alignment="center" valignment="top" usebox="none">
17534 \begin_layout Plain Layout
17535 \begin_inset Formula $\:\sin(\beta)$
17556 \begin_layout Subsection
17557 Customized Cell/Column Format
17558 \begin_inset CommandInset label
17560 name "sub:Customized-Format"
17565 \begin_inset Index idx
17568 \begin_layout Plain Layout
17569 Table Customization ! Cell/Column Format
17577 \begin_layout Standard
17578 Calculating the required width for spanned columns as in section
17579 \begin_inset space ~
17583 \begin_inset CommandInset ref
17585 reference "sub:Multicolumn-Calculations"
17589 is very annoying if you have several tables with multicolumn cells.
17590 To make life easier, you can define a cell/column format in the preamble,
17591 so that it can be used in all tables of the document.
17592 The format is defined with the command
17595 \begin_layout Standard
17600 newcolumntype{name of format}[number of arguments]{commands}
17603 \begin_layout Standard
17604 The format name may only consist of one letter.
17629 are predefined and cannot be used.
17630 But all letters are allowed as capitals.
17633 \begin_layout Standard
17634 \begin_inset VSpace medskip
17640 \begin_layout Standard
17641 For vertically and horizontally centered multicolumn cells with a fixed
17642 width you can define the cell format
17645 \begin_layout Standard
17650 newcolumntype{M}[1]{>{
17657 \begin_layout Standard
17664 avoids the problem of hyphenating the first word, as described in section
17665 \begin_inset space ~
17669 \begin_inset CommandInset ref
17671 reference "sub:Multiple-Lines-in"
17676 Now you can simply enter
17679 \begin_layout Standard
17685 \begin_layout Standard
17686 as LaTeX-argument in the table dialog to create a multicolumn.
17689 \begin_layout Standard
17690 \begin_inset VSpace bigskip
17696 \begin_layout Standard
17697 For cells spanned by a multicolumn cell, you can define the format
17700 \begin_layout Standard
17705 newcolumntype{S}[2]{>{
17710 \begin_inset Newline newline
17714 \begin_inset Phantom HPhantom
17717 \begin_layout Plain Layout
17731 arrayrulewidth)*(1-#2))/#2}}
17734 \begin_layout Standard
17735 This format uses equation
17736 \begin_inset CommandInset ref
17742 to calculate the required width so that each spanned cell has the same
17746 \begin_layout Standard
17750 \begin_layout Standard
17753 S{width of multicolumn cell}{number of spanned columns}
17756 \begin_layout Standard
17757 as LaTeX-argument of the column.
17760 \begin_layout Standard
17761 \begin_inset VSpace bigskip
17767 \begin_layout Standard
17768 For colored columns, you can define
17771 \begin_layout Standard
17776 newcolumntype{K}[1]{>{
17783 \begin_layout Standard
17785 \begin_inset Quotes eld
17789 \begin_inset Quotes erd
17792 at the end creates a column with a flexible width whose text is horizontally
17797 \begin_layout Standard
17803 \begin_layout Standard
17807 \begin_layout Standard
17808 \begin_inset VSpace bigskip
17814 \begin_layout Standard
17816 \begin_inset space ~
17820 \begin_inset CommandInset ref
17822 reference "tab:Table-using-user-defined"
17826 use the LaTeX-arguments
17829 \begin_layout Standard
17835 \begin_layout Standard
17836 for the first column and the multicolumn,
17839 \begin_layout Standard
17845 \begin_layout Standard
17846 for the last column, and
17849 \begin_layout Standard
17855 \begin_layout Standard
17856 for the cells in the second column.
17859 \begin_layout Standard
17860 \begin_inset Float table
17866 \begin_layout Plain Layout
17867 \begin_inset Caption
17869 \begin_layout Plain Layout
17870 \begin_inset CommandInset label
17872 name "tab:Table-using-user-defined"
17876 Table using user-defined table formats
17884 \begin_layout Plain Layout
17886 \begin_inset Tabular
17887 <lyxtabular version="3" rows="3" columns="4">
17888 <features tabularvalignment="middle">
17889 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17890 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17891 <column alignment="center" valignment="middle" width="0">
17892 <column alignment="center" valignment="middle" width="0" special="K{red}">
17894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17897 \begin_layout Plain Layout
17898 verylongtablecellword
17903 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17906 \begin_layout Plain Layout
17907 multiple lines multicolumn
17912 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17915 \begin_layout Plain Layout
17921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17924 \begin_layout Plain Layout
17932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17935 \begin_layout Plain Layout
17941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17944 \begin_layout Plain Layout
17950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17953 \begin_layout Plain Layout
17959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17962 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17973 \begin_layout Plain Layout
17979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17982 \begin_layout Plain Layout
17988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17991 \begin_layout Plain Layout
17997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18000 \begin_layout Plain Layout
18019 \begin_layout Subsection
18021 \begin_inset CommandInset label
18023 name "sub:Line-Thickness"
18028 \begin_inset Index idx
18031 \begin_layout Plain Layout
18032 Table Customization ! Line Thickness
18040 \begin_layout Standard
18041 The line thickness for all lines in a table can be adjusted with the length
18049 To set for example a line thickness of 1.5
18050 \begin_inset space \thinspace{}
18054 \begin_inset space ~
18058 \begin_inset CommandInset ref
18060 reference "tab:Table-with-1.5"
18064 , insert the command
18067 \begin_layout Standard
18074 arrayrulewidth}{1.5pt}
18077 \begin_layout Standard
18078 in TeX-Code before the table or table float.
18079 The changed thickness is valid for all subsequent tables.
18080 To use the default value again, set
18087 \begin_inset space \thinspace{}
18090 pt in TeX-Code after the table or table float.
18093 \begin_layout Standard
18097 \begin_layout Plain Layout
18103 arrayrulewidth}{1.5pt}
18109 \begin_inset Float table
18114 \begin_layout Plain Layout
18115 \begin_inset Caption
18117 \begin_layout Plain Layout
18118 \begin_inset CommandInset label
18120 name "tab:Table-with-1.5"
18125 \begin_inset space \thinspace{}
18136 \begin_layout Plain Layout
18138 \begin_inset Tabular
18139 <lyxtabular version="3" rows="3" columns="3">
18140 <features tabularvalignment="middle">
18141 <column alignment="center" valignment="top" width="0">
18142 <column alignment="center" valignment="top" width="0">
18143 <column alignment="center" valignment="top" width="0">
18145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18148 \begin_layout Plain Layout
18154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18157 \begin_layout Plain Layout
18163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18166 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18177 \begin_layout Plain Layout
18183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18186 \begin_layout Plain Layout
18192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18195 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18206 \begin_layout Plain Layout
18212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18215 \begin_layout Plain Layout
18221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18224 \begin_layout Plain Layout
18244 \begin_layout Plain Layout
18250 arrayrulewidth}{0.4pt}
18258 \begin_layout Standard
18259 \begin_inset VSpace bigskip
18262 To set the line thickness to 1.5
18263 \begin_inset space \thinspace{}
18266 pt only for horizontal lines, as in Table
18267 \begin_inset space ~
18271 \begin_inset CommandInset ref
18273 reference "tab:Table-with-horizontal"
18277 , insert these commands in TeX-Code before the table or table float:
18280 \begin_layout Standard
18290 \begin_inset Newline newline
18298 \begin_inset Newline newline
18307 arrayrulewidth 1.5pt}
18308 \begin_inset Newline newline
18319 arrayrulewidth 0.4pt}}
18322 \begin_layout Standard
18323 To return to the default line thickness, insert this command in TeX-Code
18324 after the table or table float:
18327 \begin_layout Standard
18339 \begin_layout Standard
18343 \begin_layout Plain Layout
18354 \begin_layout Plain Layout
18363 \begin_layout Plain Layout
18371 arrayrulewidth 1.5pt}
18374 \begin_layout Plain Layout
18384 arrayrulewidth 0.4pt}}
18390 \begin_inset Float table
18395 \begin_layout Plain Layout
18396 \begin_inset Caption
18398 \begin_layout Plain Layout
18399 \begin_inset CommandInset label
18401 name "tab:Table-with-horizontal"
18406 \begin_inset space \thinspace{}
18409 pt thick horizontal lines
18417 \begin_layout Plain Layout
18419 \begin_inset Tabular
18420 <lyxtabular version="3" rows="3" columns="3">
18421 <features tabularvalignment="middle">
18422 <column alignment="center" valignment="top" width="0">
18423 <column alignment="center" valignment="top" width="0">
18424 <column alignment="center" valignment="top" width="0">
18426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18429 \begin_layout Plain Layout
18435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18438 \begin_layout Plain Layout
18444 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18447 \begin_layout Plain Layout
18455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18458 \begin_layout Plain Layout
18464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18467 \begin_layout Plain Layout
18473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18476 \begin_layout Plain Layout
18484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18487 \begin_layout Plain Layout
18493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18496 \begin_layout Plain Layout
18502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18505 \begin_layout Plain Layout
18525 \begin_layout Plain Layout
18541 \begin_layout Standard
18542 \begin_inset VSpace bigskip
18545 To set the line thickness to 1.5
18546 \begin_inset space \thinspace{}
18549 pt only for vertical lines, create the following column format in the document
18550 preamble, according to the description in section
18551 \begin_inset space ~
18555 \begin_inset CommandInset ref
18557 reference "sub:Customized-Format"
18564 \begin_layout Standard
18569 newcolumntype{V}{!{
18571 vrule width 1.5pt}}
18574 \begin_layout Standard
18576 \begin_inset space ~
18580 \begin_inset CommandInset ref
18582 reference "tab:Table-with-vertical"
18589 \begin_layout Standard
18595 \begin_layout Standard
18596 was used for the last column and
18599 \begin_layout Standard
18605 \begin_layout Standard
18606 for the other columns.
18609 \begin_layout Standard
18610 \begin_inset Float table
18615 \begin_layout Plain Layout
18616 \begin_inset Caption
18618 \begin_layout Plain Layout
18619 \begin_inset CommandInset label
18621 name "tab:Table-with-vertical"
18626 \begin_inset space \thinspace{}
18629 pt thick vertical lines
18637 \begin_layout Plain Layout
18639 \begin_inset Tabular
18640 <lyxtabular version="3" rows="3" columns="3">
18641 <features tabularvalignment="middle">
18642 <column alignment="center" valignment="top" width="0" special="Vc">
18643 <column alignment="center" valignment="top" width="0" special="Vc">
18644 <column alignment="center" valignment="top" width="0" special="VcV">
18646 <cell alignment="center" valignment="top" topline="true" usebox="none">
18649 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" usebox="none">
18658 \begin_layout Plain Layout
18664 <cell alignment="center" valignment="top" topline="true" usebox="none">
18667 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" usebox="none">
18678 \begin_layout Plain Layout
18684 <cell alignment="center" valignment="top" topline="true" usebox="none">
18687 \begin_layout Plain Layout
18693 <cell alignment="center" valignment="top" topline="true" usebox="none">
18696 \begin_layout Plain Layout
18704 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18707 \begin_layout Plain Layout
18713 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18716 \begin_layout Plain Layout
18722 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18725 \begin_layout Plain Layout
18744 \begin_layout Subsection
18746 \begin_inset Index idx
18749 \begin_layout Plain Layout
18750 Table Customization ! Dashed Lines
18758 \begin_layout Standard
18762 \begin_layout Plain Layout
18772 \begin_inset Note Note
18775 \begin_layout Plain Layout
18776 The following section will only be displayed when the LaTeX-package
18788 \begin_layout Standard
18789 \begin_inset Float table
18795 \begin_layout Plain Layout
18796 \begin_inset Caption
18798 \begin_layout Plain Layout
18799 \begin_inset CommandInset label
18801 name "tab:Table-with-dashed"
18805 Table with dashed lines
18813 \begin_layout Plain Layout
18815 \begin_inset Tabular
18816 <lyxtabular version="3" rows="5" columns="5">
18817 <features tabularvalignment="middle">
18818 <column alignment="center" valignment="top" width="0">
18819 <column alignment="center" valignment="top" width="0">
18820 <column alignment="center" valignment="top" width="0" special=":c">
18821 <column alignment="center" valignment="top" width="0">
18822 <column alignment="center" valignment="top" width="0">
18824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18827 \begin_layout Plain Layout
18833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18836 \begin_layout Plain Layout
18842 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18845 \begin_layout Plain Layout
18851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18854 \begin_layout Plain Layout
18860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18863 \begin_layout Plain Layout
18871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18874 \begin_layout Plain Layout
18880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18883 \begin_layout Plain Layout
18889 <cell alignment="center" valignment="top" topline="true" usebox="none">
18892 \begin_layout Plain Layout
18898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18901 \begin_layout Plain Layout
18907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18910 \begin_layout Plain Layout
18918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18921 \begin_layout Plain Layout
18925 \begin_layout Plain Layout
18939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18942 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" usebox="none">
18951 \begin_layout Plain Layout
18957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18960 \begin_layout Plain Layout
18966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18969 \begin_layout Plain Layout
18977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18980 \begin_layout Plain Layout
18984 \begin_layout Plain Layout
18998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19001 \begin_layout Plain Layout
19007 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19010 \begin_layout Plain Layout
19016 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19019 \begin_layout Plain Layout
19025 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19028 \begin_layout Plain Layout
19036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19039 \begin_layout Plain Layout
19045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19048 \begin_layout Plain Layout
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19057 \begin_layout Plain Layout
19063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19066 \begin_layout Plain Layout
19072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19075 \begin_layout Plain Layout
19094 \begin_layout Standard
19095 LyX does not natively support dashed lines, so you have to use TeX-Code.
19096 As a prerequisite the LaTeX-package
19101 \begin_inset Index idx
19104 \begin_layout Plain Layout
19105 LaTeX-packages ! arydshln
19110 must be loaded in the document preamble with the command
19113 \begin_layout Standard
19118 usepackage{arydshln}
19121 \begin_layout Standard
19122 To make a vertical line dashed, enter the colon
19123 \begin_inset Quotes eld
19127 \begin_inset Quotes erd
19130 together with the character for the horizontal alignment as LaTeX-argument
19131 in the table cell dialog.
19134 \begin_layout Standard
19135 For a horizontal dashed line add the command
19138 \begin_layout Standard
19146 \begin_layout Standard
19147 in TeX-Code as first element of the first cell in the table row.
19150 \begin_layout Standard
19151 For dashed multicolumn lines use the command
19154 \begin_layout Standard
19159 cdashline{line number
19164 \begin_layout Standard
19165 in TeX-Code as the first element of the first cell in the table row.
19166 If you have for example a multicolumn spanning columns 2 to 4 and you want
19167 to have a dashed line above, add the command
19170 \begin_layout Standard
19178 \begin_layout Standard
19179 as the first element of the first cell in the row of the multicolumn.
19182 \begin_layout Standard
19183 \begin_inset VSpace bigskip
19189 \begin_layout Standard
19191 \begin_inset space ~
19195 \begin_inset CommandInset ref
19197 reference "tab:Table-with-dashed"
19202 \begin_inset Quotes eld
19210 \begin_inset Quotes erd
19213 as LaTeX-argument of the third column.
19214 The TeX-Code command
19220 was inserted in the first cell of the third row and the TeX-Code command
19221 \begin_inset Newline newline
19230 was inserted in the first cell of the fourth row.
19233 \begin_layout Standard
19234 \begin_inset Note Greyedout
19237 \begin_layout Plain Layout
19246 is apparently not compatible with the LaTeX-package
19251 \begin_inset Index idx
19254 \begin_layout Plain Layout
19255 LaTeX-packages ! colortbl
19260 that is used for colored tables in section
19261 \begin_inset space ~
19265 \begin_inset CommandInset ref
19267 reference "sec:Colored-Tables"
19272 That means colored tables cannot have dashed lines.
19280 \begin_layout Standard
19284 \begin_layout Plain Layout
19294 \begin_inset Note Note
19297 \begin_layout Plain Layout
19298 The following will be displayed when the LaTeX-package
19310 \begin_layout Standard
19311 You need to install the package
19315 to see the content of this section in the output.
19318 \begin_layout Standard
19322 \begin_layout Plain Layout
19334 \begin_layout Chapter
19336 \begin_inset Index idx
19339 \begin_layout Plain Layout
19348 \begin_layout Section
19350 \begin_inset CommandInset label
19352 name "sec:FloatIntroduction"
19357 \begin_inset Index idx
19360 \begin_layout Plain Layout
19361 Floats ! Introduction
19369 \begin_layout Standard
19370 A float is a block of text associated with some sort of label, which doesn't
19371 have a fixed location.
19373 \begin_inset Quotes eld
19377 \begin_inset Quotes erd
19380 forward or backward a page or two, to wherever it fits best.
19388 \begin_inset space ~
19393 are also floats, because they can float to the next page when there are
19394 too many notes on the page.
19397 \begin_layout Standard
19398 Floats allow a high quality layout.
19399 Images and tables can be spread evenly to the pages to avoid white space
19400 and pages without text.
19401 As the floating often destroys the context between the text and the image/table
19402 , every float can be referenced in the text.
19403 Floats are therefore numbered.
19404 Referencing is described in section
19405 \begin_inset space ~
19409 \begin_inset CommandInset ref
19411 reference "sec:Referencing-Floats"
19418 \begin_layout Standard
19419 To insert a float, use the menu
19421 Insert\SpecialChar \menuseparator
19429 inset, a box with a label.
19430 The label will automatically be translated to the document language in
19432 After the label you can insert the caption text.
19433 The image or table is inserted above or below the caption in a separate
19434 paragraph within the float.
19435 More about the caption placement is contained in section
19436 \begin_inset space ~
19440 \begin_inset CommandInset ref
19442 reference "sec:Caption-Placement"
19447 To keep your LyX-document readable, you can open and close the float box
19448 by left-clicking on the box label.
19449 A closed float box looks like this:
19450 \begin_inset Graphics
19451 filename clipart/floatQt4.png
19453 scaleBeforeRotation
19457 – a gray button with a red label.
19460 \begin_layout Standard
19461 It is recommended that you insert floats as a separate standard paragraph
19462 to avoid possible LaTeX-errors that can occur when the surrounding text
19463 is specially formatted.
19466 \begin_layout Standard
19467 Existing figures or tables can be put into a float by highlighting them
19468 and then pressing the corresponding toolbar button for a new float.
19471 \begin_layout Section
19475 \begin_layout Standard
19476 Besides figure and table floats that are described in sections
19477 \begin_inset space ~
19481 \begin_inset CommandInset ref
19483 reference "sec:Figure-Floats"
19488 \begin_inset CommandInset ref
19490 reference "sec:Table-Floats"
19494 respectively, LyX offers the float types
19505 \begin_layout Subsection
19507 \begin_inset Index idx
19510 \begin_layout Plain Layout
19511 Floats ! Algorithms
19519 \begin_layout Standard
19520 \begin_inset Float algorithm
19526 \begin_layout Plain Layout
19527 \begin_inset Caption
19529 \begin_layout Plain Layout
19530 \begin_inset CommandInset label
19532 name "alg:Example-Algorithm-float"
19536 Example Algorithm float
19544 \begin_layout LyX-Code
19546 \begin_inset Newline newline
19549 Sum:= Sum + A(I); /*comment*/
19550 \begin_inset Newline newline
19554 \begin_inset VSpace -4mm
19565 \begin_layout Standard
19566 This float type is inserted with the menu
19568 Insert\SpecialChar \menuseparator
19569 Floats\SpecialChar \menuseparator
19573 It is used for program codes and descriptions of algorithms and can be
19574 seen as an alternative to program code listings that are explained in chapter
19575 \begin_inset space ~
19579 \begin_inset CommandInset ref
19581 reference "cha:Program-Code-Listings"
19586 A possible environment for algorithms is the
19590 , described in LyX's
19596 \begin_inset space ~
19600 \begin_inset CommandInset ref
19602 reference "alg:Example-Algorithm-float"
19606 is an example of an algorithm float where -4
19607 \begin_inset space \thinspace{}
19610 mm vertical space was added at the end of the float to have the bottom rule
19611 exactly below the last text line.
19614 \begin_layout Standard
19615 The float label is not automatically translated into the document language.
19616 If your document is not in English, you have to do this manually by adding
19617 the following line to the document preamble
19622 \begin_layout Standard
19627 floatname{algorithm}{your
19628 \begin_inset space ~
19634 \begin_layout Standard
19638 \begin_inset space ~
19644 \begin_inset Quotes eld
19652 \begin_inset Quotes erd
19658 \begin_layout Standard
19659 To insert the list of algorithms you can use the menu
19661 Insert\SpecialChar \menuseparator
19663 \begin_inset space \thinspace{}
19667 \begin_inset space \thinspace{}
19670 TOC\SpecialChar \menuseparator
19673 when your document has the same language as LyX's menu names.
19674 In other cases use this command in TeX-Code instead:
19677 \begin_layout Standard
19682 listof{algorithm}{your
19683 \begin_inset space ~
19689 \begin_layout Standard
19693 \begin_inset space ~
19699 \begin_inset Quotes eld
19707 \begin_inset Quotes erd
19713 \begin_layout Standard
19714 Algorithm floats are not by default numbered in the scheme
19715 \begin_inset Quotes eld
19719 \begin_inset Quotes erd
19722 as is the case for table and figure floats in many document-classes.
19723 To number algorithm floats in the same scheme, add this command to your
19727 \begin_layout Standard
19732 numberwithin{algorithm}{chapter}
19735 \begin_layout Standard
19736 To be able to use the command
19745 \begin_inset space ~
19750 in the document settings the option
19753 \begin_inset space ~
19757 \begin_inset space ~
19761 \begin_inset space ~
19769 \begin_layout Subsection
19771 \begin_inset Index idx
19774 \begin_layout Plain Layout
19775 Floats ! Wrap Floats
19783 \begin_layout Standard
19784 \begin_inset Wrap figure
19791 \begin_layout Plain Layout
19792 \begin_inset Graphics
19793 filename clipart/mobius.eps
19795 scaleBeforeRotation
19796 rotateOrigin center
19803 \begin_layout Plain Layout
19804 \begin_inset Caption
19806 \begin_layout Plain Layout
19807 \begin_inset CommandInset label
19809 name "fig:This-is-a"
19813 This is a figure wrap float.
19823 This float type is used if you want to wrap text around a figure or table
19824 so that it only occupies some fraction of the column width.
19825 It can be inserted using the menu
19827 Insert\SpecialChar \menuseparator
19828 Floats\SpecialChar \menuseparator
19830 \begin_inset space ~
19834 \begin_inset space ~
19842 \begin_inset space ~
19846 \begin_inset space ~
19851 if the LaTeX-package
19856 \begin_inset Index idx
19859 \begin_layout Plain Layout
19860 LaTeX-packages ! wrapfig
19864 \begin_layout Plain Layout
19882 \begin_layout Plain Layout
19883 Installing a LaTeX-package is explained it in the
19886 \begin_inset space ~
19896 The settings of the float can be modified by right-clicking on the float
19898 The mandatory settings are the float
19911 that specifies how much the float is set into the paragraph
19912 \begin_inset space \thinspace{}
19916 \begin_inset space \thinspace{}
19919 page margin, and the
19922 \begin_inset space ~
19927 that specifies how many text lines the float will approximately need.
19928 The line span is often hard to approximate; so it is better only to use
19929 it when you encounter float placement problems.
19930 You can furthermore decide if LaTeX is allowed to let the float float within
19931 the paragraph or to surrounding paragraphs.
19933 \begin_inset space ~
19937 \begin_inset CommandInset ref
19939 reference "fig:This-is-a"
19943 is an example text wrap float with a width of 40
19944 \begin_inset space \thinspace{}
19948 \begin_inset space \thinspace{}
19951 cm overhang, set to the left.
19955 \begin_layout Plain Layout
19956 Available units are explained in appendix
19957 \begin_inset space ~
19961 \begin_inset CommandInset ref
19963 reference "cha:Units-available-in"
19975 \begin_layout Standard
19976 \begin_inset Note Greyedout
19979 \begin_layout Plain Layout
19985 \begin_inset space ~
19988 wrap float floats are fragile! E.
19989 \begin_inset space \thinspace{}
19993 \begin_inset space \space{}
19996 having a figure too close to the bottom of the page can mess things up in
19997 such a way that the float does not appear in the output or that it is placed
19998 over some other text.
20006 \begin_layout Standard
20010 \begin_layout Itemize
20011 Wrap floats should not be placed in paragraphs that run over a page break.
20012 That means that wrap floats are better inserted in their exact place when
20013 the document is almost finished and you are able to estimate where page
20014 breaks will appear.
20017 \begin_layout Itemize
20018 Wrap floats should either be placed in their own paragraph before the paragraph
20019 where they should wrap into or within a paragraph.
20022 \begin_layout Itemize
20023 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20024 there is a text paragraph between them as separator.
20027 \begin_layout Itemize
20028 Wrap floats are not allowed in section headings or tables.
20031 \begin_layout Section
20033 \begin_inset Index idx
20036 \begin_layout Plain Layout
20045 \begin_layout Standard
20046 Floats are usually numbered either independently from the sections the floats
20047 are in, or in the scheme
20048 \begin_inset Quotes eld
20052 \begin_inset Quotes erd
20056 \begin_inset Quotes eld
20060 \begin_inset Quotes erd
20064 This depends on the document class used.
20067 \begin_layout Standard
20068 To change section-independent numbering, you can use this command in the
20072 \begin_layout Standard
20084 \begin_layout Standard
20091 is the command that prints the table number, for figure floats, the command
20105 in the command above prints the table number as small roman number.
20108 \begin_layout Standard
20109 To change the numbering scheme for example to
20110 \begin_inset Quotes eld
20114 \begin_inset Quotes erd
20117 , use this command in the preamble:
20120 \begin_layout Standard
20125 numberwithin{table}{subsection}
20128 \begin_layout Standard
20129 To be able to use the command
20138 \begin_inset space ~
20143 in the document settings the option
20146 \begin_inset space ~
20150 \begin_inset space ~
20154 \begin_inset space ~
20162 \begin_layout Standard
20163 Please also have a look at section
20164 \begin_inset space ~
20168 \begin_inset CommandInset ref
20170 reference "sub:Footnote-Numbering"
20174 for the details and important notes about the numbering commands.
20177 \begin_layout Section
20179 \begin_inset CommandInset label
20181 name "sec:Referencing-Floats"
20186 \begin_inset Index idx
20189 \begin_layout Plain Layout
20190 Floats ! References
20196 \begin_inset Index idx
20199 \begin_layout Plain Layout
20200 References ! to Floats
20208 \begin_layout Standard
20209 To reference a float, insert a label into its caption using the menu
20211 Insert\SpecialChar \menuseparator
20214 or the toolbar button
20215 \begin_inset Graphics
20216 filename ../images/label-insert.png
20218 scaleBeforeRotation
20223 A grey label box like this one:
20224 \begin_inset Graphics
20225 filename clipart/labelQt4.png
20227 scaleBeforeRotation
20231 will be inserted and the label window pops up asking for the label text.
20232 LyX offers as text the first words of the caption with a prefix.
20233 The prefix depends on the float type, e.
20234 \begin_inset space \thinspace{}
20238 \begin_inset space \space{}
20241 for figure floats the prefix will be "
20248 \begin_layout Standard
20249 The label is used as anchor and name for the reference.
20250 You can refer to the label using the menu
20252 Insert\SpecialChar \menuseparator
20255 or the toolbar button
20256 \begin_inset Graphics
20257 filename ../images/dialog-show-new-inset_ref.png
20259 scaleBeforeRotation
20264 A grey cross-reference box like this one:
20265 \begin_inset Graphics
20266 filename clipart/referenceQt4.png
20268 scaleBeforeRotation
20272 will be inserted and the cross-reference window appear showing all labels
20274 If you have multiple LyX-documents opened, choose the one you are working
20275 on from the drop-list at the top of the dialog.
20276 You can now sort the labels alphabetically and then choose one.
20277 At the position of the cross-reference box the float number will appear
20281 \begin_layout Standard
20282 It is recommended that you use a protected space between the cross-reference
20283 name and its number to avoid line breaks between them.
20284 If a cross-reference refers to a non-existing label, you will see two question
20285 marks in the output instead of the reference.
20288 \begin_layout Standard
20289 You can change labels at any time by clicking on the label box.
20290 References to the changed label will automatically change its link to the
20291 new label text, so that you don't need to take care about this.
20294 \begin_layout Standard
20298 \begin_inset space ~
20302 \begin_inset space ~
20307 in the cross-reference window sets the cursor before the referred label.
20308 The button text changes then to Go
20309 \begin_inset space ~
20312 Back and you can use it to set the cursor back to the cross-reference.
20313 Right-clicking on a cross-reference box also sets the cursor before the
20314 referenced label but without the possibility of going back.
20317 \begin_layout Subsection
20318 Cross-Reference Formats
20319 \begin_inset CommandInset label
20321 name "sub:Cross-Reference-Formats"
20326 \begin_inset Index idx
20329 \begin_layout Plain Layout
20330 References ! Formats
20338 \begin_layout Standard
20339 There are six varieties of cross-references:
20342 \begin_layout Description
20343 <reference>: prints the float number, this is the default:
20344 \begin_inset CommandInset ref
20346 reference "fig:Two-distorted-images"
20353 \begin_layout Description
20354 (<reference>): prints the float number within two parentheses, this is the
20355 style normally used to reference formulas, especially when the reference
20357 \begin_inset Quotes eld
20361 \begin_inset Quotes erd
20365 \begin_inset CommandInset ref
20374 \begin_layout Description
20375 <page>: prints the page number: Page
20376 \begin_inset space ~
20380 \begin_inset CommandInset ref
20381 LatexCommand pageref
20382 reference "fig:Two-distorted-images"
20389 \begin_layout Description
20391 \begin_inset space ~
20395 \begin_inset space ~
20398 <page>: prints the text "on page" and the page number:
20399 \begin_inset CommandInset ref
20400 LatexCommand vpageref
20401 reference "fig:Two-distorted-images"
20408 \begin_layout Description
20410 \begin_inset space ~
20414 \begin_inset space ~
20418 \begin_inset space ~
20421 <page>: prints the float number, the text "on page", and the page number:
20423 \begin_inset CommandInset ref
20425 reference "fig:Two-distorted-images"
20432 \begin_layout Description
20434 \begin_inset space ~
20437 reference: prints a self-defined cross-reference format.
20438 \begin_inset Newline newline
20442 \begin_inset Note Greyedout
20445 \begin_layout Plain Layout
20450 This feature is only available when you have the LaTeX-package
20459 \begin_inset Index idx
20462 \begin_layout Plain Layout
20463 LaTeX-packages ! prettyref
20469 \begin_inset Index idx
20472 \begin_layout Plain Layout
20473 LaTeX-packages ! refstyle
20484 \begin_inset Newline newline
20487 You can select which LaTeX-package should be used for this feature by setting
20490 Use refstyle (not prettyref) for cross-references
20494 Document\SpecialChar \menuseparator
20495 Settings\SpecialChar \menuseparator
20499 The format is specified by adding the command
20511 (refstyle) to the preamble of the document.
20512 For example redefining all references to figures (which have the label
20514 \begin_inset Quotes eld
20522 \begin_inset Quotes erd
20525 ) can be done with this command
20526 \begin_inset Newline newline
20533 newref{fig}{refcmd={Image on page
20538 \begin_inset Newline newline
20541 For more information about the format, have a look at the package documentations
20543 \begin_inset CommandInset citation
20545 key "prettyref,refstyle"
20552 \begin_layout Description
20554 \begin_inset space ~
20557 reference: prints the caption of the reference:
20558 \begin_inset CommandInset ref
20559 LatexCommand nameref
20560 reference "fig:Two-distorted-images"
20567 \begin_layout Standard
20572 will not print the page number if the label is on the previous, the same,
20575 \begin_inset space \thinspace{}
20579 \begin_inset space \space{}
20583 \begin_inset Quotes eld
20591 \begin_inset Quotes erd
20597 <reference> on page <page>
20599 will not print anything about the page if the label is on the same page.
20602 \begin_layout Standard
20603 The number and current page of the part of the document referred to in the
20604 output is automatically calculated by LaTeX.
20605 The varieties are adjusted in the field
20609 of the cross-reference window that appears when you click on the cross-referenc
20613 \begin_layout Standard
20614 \begin_inset Note Greyedout
20617 \begin_layout Plain Layout
20622 It is recommended to use the LaTeX-package
20627 \begin_inset Index idx
20630 \begin_layout Plain Layout
20631 LaTeX-packages ! refstyle
20641 \begin_inset Index idx
20644 \begin_layout Plain Layout
20645 LaTeX-packages ! prettyref
20650 does not know all of LyX's possible label shortcuts
20654 \begin_layout Plain Layout
20655 \begin_inset Quotes eld
20659 \begin_inset Quotes erd
20662 is for example LyX's shortcut for labels in figure captions.
20667 and is not internationalized.
20675 \begin_layout Standard
20676 \begin_inset Note Greyedout
20679 \begin_layout Plain Layout
20684 Due to a bug in the LaTeX-package
20688 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20689 languages that make the period character active (like French).
20690 For a workaround, see
20691 \begin_inset Newline newline
20695 \begin_inset CommandInset href
20697 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20709 \begin_layout Subsection
20710 Automatic Reference Naming
20711 \begin_inset Index idx
20714 \begin_layout Plain Layout
20715 References ! Automatic Reference Naming
20723 \begin_layout Standard
20729 \begin_inset Index idx
20732 \begin_layout Plain Layout
20733 LaTeX-packages ! hyperref
20738 , that is enabled in the
20746 dialog, provides a very useful feature that cross-references automatically
20747 include the name of the referenced floats (or text parts like
20752 So you will save having to write e.
20753 \begin_inset space \thinspace{}
20757 \begin_inset space \space{}
20761 \begin_inset Quotes eld
20765 \begin_inset Quotes erd
20768 before every reference to a figure.
20769 To use this feature, enable
20773 and insert this line to the LaTeX preamble:
20776 \begin_layout Standard
20792 \begin_layout Standard
20793 When you prefer other reference names than the default ones, for example
20794 you want instead of
20795 \begin_inset Quotes eld
20799 \begin_inset Quotes erd
20803 \begin_inset Quotes eld
20807 \begin_inset space \thinspace{}
20811 \begin_inset Quotes eld
20814 , you can redefine the name by inserting this in the preamble:
20817 \begin_layout Standard
20828 sectionautorefname}
20829 \begin_inset Newline newline
20833 \begin_inset Phantom HPhantom
20836 \begin_layout Plain Layout
20839 \begin_inset space ~
20852 \begin_layout Standard
20853 When you are using another document language than English, replace
20854 \begin_inset Newline newline
20869 , where *** is the name of the language used.
20872 \begin_layout Standard
20873 To get automatic names, but not for certain reference types, for example
20874 not for equations, use this preamble code:
20877 \begin_layout Standard
20885 \begin_inset Newline newline
20895 \begin_inset Newline newline
20906 equationautorefname}
20907 \begin_inset Newline newline
20911 \begin_inset Phantom HPhantom
20914 \begin_layout Plain Layout
20917 \begin_inset space ~
20932 \begin_layout Standard
20933 More about this topic can be found in
20938 \begin_inset CommandInset citation
20947 \begin_layout Standard
20948 \begin_inset Note Greyedout
20951 \begin_layout Plain Layout
20956 Automatic reference naming cannot be used when you use cross-references
20960 \begin_inset space ~
20965 style, as described in section
20966 \begin_inset space ~
20970 \begin_inset CommandInset ref
20972 reference "sub:Cross-Reference-Formats"
20984 \begin_layout Standard
20989 manual is an example where automatic reference naming is used.
20992 \begin_layout Subsection
20994 \begin_inset CommandInset label
20996 name "sub:Reference-Position"
21001 \begin_inset Index idx
21004 \begin_layout Plain Layout
21005 References ! Reference Position
21013 \begin_layout Standard
21019 \begin_inset Index idx
21022 \begin_layout Plain Layout
21023 LaTeX-packages ! hyperref
21036 dialog to link cross-references in the output, you will see that clicking
21037 on an image float reference jumps to the image label.
21038 The caption will be the first text part on the screen, so that you cannot
21039 see the image without scrolling.
21040 This is because the reference link anchor is placed at the position of
21042 With the use of the package
21047 \begin_inset Index idx
21050 \begin_layout Plain Layout
21051 LaTeX-packages ! hypcap
21056 , which is part of the LaTeX-package
21061 \begin_inset Index idx
21064 \begin_layout Plain Layout
21065 LaTeX-packages ! oberdiek
21070 , the link anchor is placed at the beginning of a float.
21071 To use this feature for figure floats, load
21075 in the document preamble with the line
21078 \begin_layout Standard
21083 usepackage[figure]{hypcap}
21086 \begin_layout Standard
21091 for all float types but this is not recommended for stability reasons.
21092 For more information, have a look at
21097 \begin_inset CommandInset citation
21106 \begin_layout Standard
21107 \begin_inset Note Greyedout
21110 \begin_layout Plain Layout
21119 has no effect on references to subfigures.
21127 \begin_layout Section
21129 \begin_inset CommandInset label
21131 name "sec:Float-Placement"
21136 \begin_inset Index idx
21139 \begin_layout Plain Layout
21148 \begin_layout Standard
21149 Right-clicking on a float-box opens a dialog where you can alter the placement
21150 options that LaTeX uses for positioning the float.
21151 \begin_inset Newline newline
21157 \begin_inset space ~
21162 is only useful for two-column documents: If you select it, the float will
21163 span both columns on the page instead of being confined to just one.
21164 \begin_inset Newline newline
21170 \begin_inset space ~
21175 is used to rotate floats, see section
21176 \begin_inset CommandInset ref
21178 reference "sec:Rotated-Floats"
21185 \begin_layout Standard
21186 You can use one ore more of the following options in the float dialog to
21187 set the placement for a particular float when you uncheck the option
21190 \begin_inset space ~
21194 \begin_inset space ~
21202 \begin_layout Description
21204 \begin_inset space ~
21208 \begin_inset space ~
21211 possible try to place the float on the position where it has been inserted
21214 \begin_layout Description
21216 \begin_inset space ~
21220 \begin_inset space ~
21223 page try to place the float at the top of the current page
21226 \begin_layout Description
21228 \begin_inset space ~
21232 \begin_inset space ~
21235 page try to place the float at the bottom of the current page
21238 \begin_layout Description
21240 \begin_inset space ~
21244 \begin_inset space ~
21247 floats try to place the float on its own page
21250 \begin_layout Standard
21251 The order of the above option is
21256 That means, if you use the default placement, LaTeX will first try out
21260 \begin_inset space ~
21264 \begin_inset space ~
21272 \begin_inset space ~
21276 \begin_inset space ~
21281 , and then the others.
21282 If you do not use the default, LaTeX will try only the checked options
21283 but in the same order.
21285 \begin_inset space ~
21288 placements are possible the procedure is internally repeated but it is tried
21289 to put the float on the following page.
21292 \begin_layout Standard
21293 By default, each option has its own rules:
21296 \begin_layout Labeling
21297 \labelwidthstring 00.00.0000
21301 \begin_inset space ~
21305 \begin_inset space ~
21310 only floats occupying less than 70
21311 \begin_inset space \thinspace{}
21314 % of the page can be placed at the top of a page (
21323 \begin_layout Labeling
21324 \labelwidthstring 00.00.0000
21328 \begin_inset space ~
21332 \begin_inset space ~
21337 : only floats occupying less than 30
21338 \begin_inset space \thinspace{}
21341 % of the page can be placed at the bottom of a page.
21351 \begin_layout Labeling
21352 \labelwidthstring 00.00.0000
21356 \begin_inset space ~
21360 \begin_inset space ~
21365 : only if more than 50
21366 \begin_inset space \thinspace{}
21369 % of the page are occupied by floats, several floats can be set together
21380 \begin_layout Standard
21381 If you don't like these rules, you can ignore them by using the additional
21385 \begin_inset space ~
21389 \begin_inset space ~
21395 \begin_inset Newline newline
21398 You can also redefine the rules with LaTeX-commands that are given in parenthese
21399 s after the rules description above.
21400 To increase for example the often too small default of the bottom-rule
21402 \begin_inset space \thinspace{}
21405 % of the page, add this line to your document preamble:
21408 \begin_layout Standard
21415 bottomfraction}{0.5}
21418 \begin_layout Standard
21419 Sometimes you might need, under all circumstances, a float to be placed
21420 exactly at the position where it is inserted.
21421 For this case you can use the option
21424 \begin_inset space ~
21430 Use this option very rarely and only if the document is almost ready to
21431 be printed, because the float is then no longer able to
21432 \begin_inset Quotes eld
21436 \begin_inset Quotes erd
21439 when you change your document and this will often destroy the page layout.
21442 \begin_layout Standard
21443 There are no placement options for text wrap floats, because they are always
21444 surrounded by the text of a certain paragraph.
21445 \begin_inset VSpace bigskip
21451 \begin_layout Standard
21452 Sometimes you have the problem that a float is placed at the top of a page
21453 while its corresponding section starts at the middle of the page, so that
21454 the reader could think the float is part of the previous section.
21455 To avoid this the LaTeX-command
21462 It suppresses a given float placement for the page where it is inserted
21463 and can therefore be used to avoid floats being set before a section starts.
21464 To get this, add these commands to your document preamble:
21467 \begin_layout Standard
21477 \begin_inset Newline newline
21491 \begin_layout Standard
21492 You can define the same for all section headings, like chapters and subsections.
21493 This definition is not recommended to be used for small text parts like
21494 subsubsections because LaTeX may then have problems finding a suitable
21498 \begin_layout Standard
21499 \begin_inset VSpace bigskip
21502 In some cases it is required to have all figures/tables at the end of the
21504 For this purpose the LaTeX-package
21509 \begin_inset Index idx
21512 \begin_layout Plain Layout
21513 LaTeX-packages ! endfloat
21519 It puts all figure and table floats at the end of the document into their
21521 At the original float position a text hint like
21522 \begin_inset Quotes eld
21528 \begin_inset space ~
21534 \begin_inset Quotes erd
21538 The endfloat-package is loaded in the preamble with the line
21541 \begin_layout Standard
21546 usepackage[options]{endfloat}
21549 \begin_layout Standard
21550 There are various package options to format the created figure/table sections.
21551 For more information we refer to the
21556 \begin_inset CommandInset citation
21563 \begin_inset Newline newline
21567 \begin_inset Note Greyedout
21570 \begin_layout Plain Layout
21575 doesn't provide an automatic translation for the text hint, you have to
21576 do this manually, see section
21577 \begin_inset space ~
21581 \begin_inset CommandInset citation
21593 \begin_inset Newline newline
21597 \begin_inset Note Greyedout
21600 \begin_layout Plain Layout
21605 There is currently a bug in
21609 when the caption contains a German
21610 \begin_inset Quotes eld
21614 \begin_inset Quotes erd
21618 Use in this case the command
21619 \begin_inset Quotes eld
21629 \begin_inset Quotes erd
21632 in TeX-Code instead of
21633 \begin_inset Quotes eld
21637 \begin_inset Quotes erd
21648 \begin_layout Standard
21649 \begin_inset VSpace bigskip
21652 For more details about float placements, have a look at LaTeX books,
21653 \begin_inset CommandInset citation
21655 key "latexcompanion,latexguide,latexbook"
21662 \begin_layout Section
21664 \begin_inset CommandInset label
21666 name "sec:Rotated-Floats"
21671 \begin_inset Index idx
21674 \begin_layout Plain Layout
21683 \begin_layout Standard
21684 Especially for wide tables you might have floats rotated.
21685 To rotate a whole float including the caption, right-click on the float-box
21689 \begin_inset space ~
21697 \begin_layout Standard
21698 Rotated floats are always placed on a page of their own (or column of their
21699 own; in case you have a multi-column document).
21700 You can let them span several columns using the float settings option
21703 \begin_inset space ~
21709 Floats are rotated so that you can read them from the outside margin.
21710 To force a certain rotation direction for all pages, you can add either
21719 to the document class options.
21722 \begin_layout Standard
21723 Referencing rotated floats is the same as for normal floats, the caption
21724 format is also the same: Table
21725 \begin_inset space ~
21729 \begin_inset CommandInset ref
21731 reference "tab:Rotated-table"
21735 is an example of a rotated table float.
21738 \begin_layout Standard
21739 \begin_inset Note Greyedout
21742 \begin_layout Plain Layout
21747 Not all DVI-viewers are able to display rotated floats.
21755 \begin_layout Standard
21756 \begin_inset Float table
21761 \begin_layout Plain Layout
21762 \begin_inset Caption
21764 \begin_layout Plain Layout
21765 \begin_inset CommandInset label
21767 name "tab:Rotated-table"
21779 \begin_layout Plain Layout
21781 \begin_inset Tabular
21782 <lyxtabular version="3" rows="1" columns="5">
21783 <features tabularvalignment="middle">
21784 <column alignment="center" valignment="top" width="0">
21785 <column alignment="center" valignment="top" width="0">
21786 <column alignment="center" valignment="top" width="0">
21787 <column alignment="center" valignment="top" width="0">
21788 <column alignment="center" valignment="top" width="0">
21790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21793 \begin_layout Plain Layout
21799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21802 \begin_layout Plain Layout
21808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21811 \begin_layout Plain Layout
21817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21820 \begin_layout Plain Layout
21826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21829 \begin_layout Plain Layout
21848 \begin_layout Section
21850 \begin_inset Index idx
21853 \begin_layout Plain Layout
21862 \begin_layout Standard
21863 Subfloats are for example used when a figure consists of several images.
21864 They are created by inserting a float into an existing float.
21865 The placement of the subfloats can be controlled in the same way as for
21866 paragraphs as shown in table
21867 \begin_inset space ~
21871 \begin_inset CommandInset ref
21873 reference "tab:Two-subtables-side"
21878 \begin_inset CommandInset ref
21880 reference "tab:Two-subtables-upon"
21887 \begin_layout Standard
21888 Referencing subfloats works as for normal floats: Table
21889 \begin_inset space ~
21893 \begin_inset CommandInset ref
21895 reference "tab:This-is-subtable-a"
21900 \begin_inset CommandInset ref
21902 reference "tab:This-is-subtable-b"
21906 are subtables of table
21907 \begin_inset space ~
21911 \begin_inset CommandInset ref
21913 reference "tab:Two-subtables-side"
21920 \begin_layout Standard
21921 \begin_inset Float table
21926 \begin_layout Plain Layout
21927 \begin_inset Caption
21929 \begin_layout Plain Layout
21930 \begin_inset CommandInset label
21932 name "tab:Two-subtables-side"
21936 Two subtables placed side by side.
21944 \begin_layout Plain Layout
21946 \begin_inset space \hfill{}
21950 \begin_inset Float table
21955 \begin_layout Plain Layout
21956 \begin_inset Caption
21958 \begin_layout Plain Layout
21959 \begin_inset CommandInset label
21961 name "tab:This-is-subtable-a"
21965 This is subtable a.
21973 \begin_layout Plain Layout
21975 \begin_inset Tabular
21976 <lyxtabular version="3" rows="1" columns="5">
21977 <features tabularvalignment="middle">
21978 <column alignment="center" valignment="top" width="0">
21979 <column alignment="center" valignment="top" width="0">
21980 <column alignment="center" valignment="top" width="0">
21981 <column alignment="center" valignment="top" width="0">
21982 <column alignment="center" valignment="top" width="0">
21984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21987 \begin_layout Plain Layout
21993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21996 \begin_layout Plain Layout
22002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22005 \begin_layout Plain Layout
22011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22014 \begin_layout Plain Layout
22020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22023 \begin_layout Plain Layout
22040 \begin_inset space \hfill{}
22044 \begin_inset Float table
22049 \begin_layout Plain Layout
22050 \begin_inset Caption
22052 \begin_layout Plain Layout
22053 \begin_inset CommandInset label
22055 name "tab:This-is-subtable-b"
22059 This is subtable b.
22067 \begin_layout Plain Layout
22069 \begin_inset Tabular
22070 <lyxtabular version="3" rows="1" columns="5">
22071 <features tabularvalignment="middle">
22072 <column alignment="center" valignment="top" width="0">
22073 <column alignment="center" valignment="top" width="0">
22074 <column alignment="center" valignment="top" width="0">
22075 <column alignment="center" valignment="top" width="0">
22076 <column alignment="center" valignment="top" width="0">
22078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22081 \begin_layout Plain Layout
22087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22090 \begin_layout Plain Layout
22096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22099 \begin_layout Plain Layout
22105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22108 \begin_layout Plain Layout
22114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22117 \begin_layout Plain Layout
22134 \begin_inset space \hfill{}
22145 \begin_layout Standard
22146 \begin_inset Float table
22151 \begin_layout Plain Layout
22152 \begin_inset Caption
22154 \begin_layout Plain Layout
22155 \begin_inset CommandInset label
22157 name "tab:Two-subtables-upon"
22161 Two subtables placed one above the other.
22162 (a) table with 4 cells, (b) table with 5 cells.
22170 \begin_layout Plain Layout
22172 \begin_inset Float table
22177 \begin_layout Plain Layout
22178 \begin_inset Caption
22180 \begin_layout Plain Layout
22189 \begin_layout Plain Layout
22191 \begin_inset Tabular
22192 <lyxtabular version="3" rows="1" columns="4">
22193 <features tabularvalignment="middle">
22194 <column alignment="center" valignment="top" width="0">
22195 <column alignment="center" valignment="top" width="0">
22196 <column alignment="center" valignment="top" width="0">
22197 <column alignment="center" valignment="top" width="0">
22199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22202 \begin_layout Plain Layout
22208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22211 \begin_layout Plain Layout
22217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22220 \begin_layout Plain Layout
22226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22229 \begin_layout Plain Layout
22248 \begin_layout Plain Layout
22250 \begin_inset Float table
22255 \begin_layout Plain Layout
22256 \begin_inset Caption
22258 \begin_layout Plain Layout
22267 \begin_layout Plain Layout
22269 \begin_inset Tabular
22270 <lyxtabular version="3" rows="1" columns="5">
22271 <features tabularvalignment="middle">
22272 <column alignment="center" valignment="top" width="0">
22273 <column alignment="center" valignment="top" width="0">
22274 <column alignment="center" valignment="top" width="0">
22275 <column alignment="center" valignment="top" width="0">
22276 <column alignment="center" valignment="top" width="0">
22278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22281 \begin_layout Plain Layout
22287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22290 \begin_layout Plain Layout
22296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22299 \begin_layout Plain Layout
22305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22308 \begin_layout Plain Layout
22314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22317 \begin_layout Plain Layout
22341 \begin_layout Section
22342 Floats Side by Side
22343 \begin_inset Index idx
22346 \begin_layout Plain Layout
22347 Floats ! Side by side
22355 \begin_layout Standard
22356 To place floats side by side, as in Figures
22357 \begin_inset space ~
22361 \begin_inset CommandInset ref
22363 reference "fig:Float-left"
22368 \begin_inset CommandInset ref
22370 reference "fig:Float-right"
22379 In it two minipage boxes are inserted.
22383 \begin_layout Plain Layout
22384 Minipages are explained in section
22385 \begin_inset space ~
22389 \begin_inset CommandInset ref
22391 reference "sec:Minipages"
22400 The width is set to 45
22401 \begin_inset space \thinspace{}
22405 \begin_inset space \thinspace{}
22408 column% and the box alignment to
22413 The minipage boxes contain the image and the caption in the same way as
22414 they are in a float.
22415 The only difference is that the image unit
22418 \begin_inset space ~
22422 \begin_inset space ~
22427 is now calculated according to the width of the minipage boxes.
22430 \begin_layout Standard
22431 \begin_inset Float figure
22436 \begin_layout Plain Layout
22437 \begin_inset Box Frameless
22447 height_special "totalheight"
22450 \begin_layout Plain Layout
22452 \begin_inset Graphics
22453 filename clipart/mobius.eps
22456 scaleBeforeRotation
22463 \begin_layout Plain Layout
22464 \begin_inset Caption
22466 \begin_layout Plain Layout
22467 \begin_inset CommandInset label
22469 name "fig:Float-left"
22473 Float on the left side.
22484 \begin_inset space \hfill{}
22488 \begin_inset Box Frameless
22498 height_special "totalheight"
22501 \begin_layout Plain Layout
22503 \begin_inset Graphics
22504 filename clipart/platypus.eps
22507 scaleBeforeRotation
22514 \begin_layout Plain Layout
22515 \begin_inset Caption
22517 \begin_layout Plain Layout
22518 \begin_inset CommandInset label
22520 name "fig:Float-right"
22524 Float on the right side.
22537 \begin_layout Plain Layout
22546 \begin_layout Section
22548 \begin_inset Index idx
22551 \begin_layout Plain Layout
22552 Caption ! Formatting
22558 \begin_inset Index idx
22561 \begin_layout Plain Layout
22562 Floats ! Caption Formatting
22568 \begin_inset CommandInset label
22570 name "sec:Caption-Formatting"
22577 \begin_layout Standard
22582 environment is the default paragraph environment for
22587 On the LyX screen captions appear as label, e.
22588 \begin_inset space \thinspace{}
22592 \begin_inset space \space{}
22596 \begin_inset Quotes eld
22604 \begin_inset Quotes erd
22607 followed by the caption text.
22609 \begin_inset Quotes eld
22613 \begin_inset Quotes erd
22616 is the actual reference number.
22617 By default the label and the number are in the same font as the caption
22618 text and a colon follows the number to divide the label from the text.
22619 This caption format is not suitable for all document formats.
22623 \begin_layout Standard
22624 To change the default caption format, load the LaTeX-package
22629 \begin_inset Index idx
22632 \begin_layout Plain Layout
22633 LaTeX-packages ! caption
22638 in the document preamble with this line:
22641 \begin_layout Standard
22646 usepackage[format definition]{caption}
22649 \begin_layout Standard
22650 To have for example the label and the number in sans-serif bold font and
22651 the table captions always above the table as in this document, use the
22655 \begin_layout Standard
22660 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22663 \begin_layout Standard
22664 You can also define different caption formats for the different float types.
22665 In this case load the
22669 package without format specific options and define the different formats
22670 with the help of the command
22673 \begin_layout Standard
22678 captionsetup[float type]{format definition}
22681 \begin_layout Standard
22682 in the document preamble.
22683 For example the caption formats of Figure
22684 \begin_inset space ~
22688 \begin_inset CommandInset ref
22690 reference "fig:This-is-an-fig"
22695 \begin_inset space ~
22699 \begin_inset CommandInset ref
22701 reference "tab:This-is-an-tab"
22705 can be created using these commands in the document preamble:
22708 \begin_layout Standard
22713 usepackage[tableposition=top]{caption}
22716 \begin_inset Newline newline
22723 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22724 \begin_inset Newline newline
22728 \begin_inset Phantom HPhantom
22731 \begin_layout Plain Layout
22736 captionsetup[figure]{
22742 \begin_inset Newline newline
22747 captionsetup[table]{labelfont={bf,sf}}
22750 \begin_layout Standard
22751 \begin_inset Note Greyedout
22754 \begin_layout Plain Layout
22763 has no effect when a
22768 \begin_inset Index idx
22771 \begin_layout Plain Layout
22772 LaTeX-packages ! KOMA-Script
22777 document class is used.
22778 In this case the document class option
22780 captions=tableheading
22790 \begin_layout Standard
22791 For more information about the package
22795 we refer to its documentation
22796 \begin_inset CommandInset citation
22805 \begin_layout Standard
22806 To change the label name from e.
22807 \begin_inset space \thinspace{}
22811 \begin_inset space \space{}
22815 \begin_inset Quotes eld
22819 \begin_inset Quotes erd
22823 \begin_inset Quotes eld
22827 \begin_inset Quotes erd
22830 use this preamble command:
22833 \begin_layout Standard
22840 fnum@figure}{Image~
22845 \begin_layout Standard
22852 inserts the figure number and
22855 \begin_inset Quotes eld
22861 \begin_inset Quotes erd
22864 creates a protected space.
22867 \begin_layout Standard
22868 \begin_inset VSpace bigskip
22876 \begin_inset Index idx
22879 \begin_layout Plain Layout
22880 LaTeX-packages ! KOMA-Script
22887 article (KOMA-Script)
22895 letter (KOMA-Script)
22899 report (KOMA-Script)
22902 \begin_inset space \thinspace{}
22905 ), you can alternatively to the
22913 's built-in command
22920 For example, to have the caption label in bold, add this command to your
22924 \begin_layout Standard
22929 setkomafont{captionlabel}{
22934 \begin_layout Standard
22935 For more information about
22946 \begin_inset CommandInset citation
22955 \begin_layout Standard
22959 \begin_layout Plain Layout
22963 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22970 \begin_inset Note Note
22973 \begin_layout Plain Layout
22974 The caption format is changed only for this example.
22982 \begin_layout Standard
22983 \begin_inset Float figure
22989 \begin_layout Plain Layout
22991 \begin_inset Graphics
22992 filename clipart/mobius.eps
22995 scaleBeforeRotation
23002 \begin_layout Plain Layout
23003 \begin_inset Caption
23005 \begin_layout Plain Layout
23006 \begin_inset CommandInset label
23008 name "fig:This-is-an-fig"
23012 This is an example figure caption that is longer than one line to show the
23013 different caption format.
23014 Here a self-defined caption format is used.
23027 \begin_layout Standard
23031 \begin_layout Plain Layout
23035 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23044 \begin_layout Standard
23045 \begin_inset Float table
23051 \begin_layout Plain Layout
23052 \begin_inset Caption
23054 \begin_layout Plain Layout
23055 \begin_inset CommandInset label
23057 name "tab:This-is-an-tab"
23061 This is an example table caption that is longer than one line to show the
23062 different caption format.
23063 Here the standard caption format for tables in this document is used.
23071 \begin_layout Plain Layout
23073 \begin_inset Tabular
23074 <lyxtabular version="3" rows="1" columns="5">
23075 <features tabularvalignment="middle">
23076 <column alignment="center" valignment="top" width="0">
23077 <column alignment="center" valignment="top" width="0">
23078 <column alignment="center" valignment="top" width="0">
23079 <column alignment="center" valignment="top" width="0">
23080 <column alignment="center" valignment="top" width="0">
23082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23085 \begin_layout Plain Layout
23091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23094 \begin_layout Plain Layout
23100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23103 \begin_layout Plain Layout
23109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23112 \begin_layout Plain Layout
23118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23121 \begin_layout Plain Layout
23140 \begin_layout Section
23142 \begin_inset Index idx
23145 \begin_layout Plain Layout
23146 Caption ! Placement
23152 \begin_inset Index idx
23155 \begin_layout Plain Layout
23156 Floats ! Caption Placement
23162 \begin_inset CommandInset label
23164 name "sec:Caption-Placement"
23171 \begin_layout Standard
23172 The common caption placement rule is:
23175 \begin_layout Description
23176 Figure: Caption is set below the figure
23179 \begin_layout Description
23180 Table: Caption is set above the table
23183 \begin_layout Standard
23184 Having the caption above the table is unfortunately not supported in LaTeX's
23186 That means if you are using the document classes
23202 there will be no space between the caption and the table.
23203 To insert the necessary space, add the following option to the load command
23204 of the LaTeX-package
23208 in your document preamble
23212 \begin_layout Plain Layout
23214 \begin_inset space ~
23218 \begin_inset CommandInset ref
23220 reference "sec:Caption-Formatting"
23224 for more information of the package
23236 \begin_layout Standard
23242 \begin_layout Standard
23248 \begin_inset Index idx
23251 \begin_layout Plain Layout
23252 LaTeX-packages ! KOMA-Script
23259 article (KOMA-Script)
23267 letter (KOMA-Script)
23271 report (KOMA-Script)
23274 \begin_inset space \thinspace{}
23277 ), you can alternatively to the
23281 package set the document class option
23283 captions=tableheading
23288 \begin_layout Standard
23289 \begin_inset VSpace bigskip
23292 It is also possible to set the caption beside a figure or table.
23293 To get this the LaTeX-package
23298 \begin_inset Index idx
23301 \begin_layout Plain Layout
23302 LaTeX-packages ! sidecap
23307 has to be loaded in the document preamble with the line
23310 \begin_layout Standard
23315 usepackage[option]{sidecap}
23318 \begin_layout Standard
23319 If you set no option, the caption is placed on the side of the outer page
23320 margin – to the right on odd pages, to the left on even pages.
23321 You can change the placement to inner margin with the option
23326 To force the placement always to the right or left, use the option
23337 \begin_layout Standard
23341 \begin_layout Plain Layout
23351 \begin_inset Note Note
23354 \begin_layout Plain Layout
23355 The following section will only be displayed when the LaTeX-package
23367 \begin_layout Standard
23368 To place in LyX the caption of a float on the side, it is necessary to add
23369 these commands to the document preamble:
23372 \begin_layout Standard
23374 \begin_inset CommandInset line
23385 \begin_layout Standard
23393 \begin_inset Newline newline
23397 \begin_inset Phantom HPhantom
23400 \begin_layout Plain Layout
23403 \begin_inset space ~
23418 \begin_inset Newline newline
23422 \begin_inset Phantom HPhantom
23425 \begin_layout Plain Layout
23428 \begin_inset space ~
23443 \begin_inset Newline newline
23447 \begin_inset Phantom HPhantom
23450 \begin_layout Plain Layout
23453 \begin_inset space ~
23463 renewenvironment{table}{
23470 \begin_layout Standard
23478 \begin_inset Newline newline
23482 \begin_inset Phantom HPhantom
23485 \begin_layout Plain Layout
23488 \begin_inset space ~
23503 \begin_inset Newline newline
23507 \begin_inset Phantom HPhantom
23510 \begin_layout Plain Layout
23513 \begin_inset space ~
23530 \begin_layout Standard
23538 \begin_inset Newline newline
23542 \begin_inset Phantom HPhantom
23545 \begin_layout Plain Layout
23548 \begin_inset space ~
23563 \begin_inset Newline newline
23567 \begin_inset Phantom HPhantom
23570 \begin_layout Plain Layout
23573 \begin_inset space ~
23588 \begin_inset Newline newline
23592 \begin_inset Phantom HPhantom
23595 \begin_layout Plain Layout
23598 \begin_inset space ~
23608 renewenvironment{figure}{
23615 \begin_layout Standard
23623 \begin_inset Newline newline
23627 \begin_inset Phantom HPhantom
23630 \begin_layout Plain Layout
23633 \begin_inset space ~
23648 \begin_inset Newline newline
23652 \begin_inset Phantom HPhantom
23655 \begin_layout Plain Layout
23658 \begin_inset space ~
23675 \begin_layout Standard
23677 \begin_inset CommandInset line
23688 \begin_layout Standard
23689 The commands allow you to redefine the floats so that the caption is set
23691 For figure floats use the command
23694 \begin_layout Standard
23702 \begin_layout Standard
23703 in TeX-Code before the float.
23704 After the float insert the command
23707 \begin_layout Standard
23715 \begin_layout Standard
23716 in TeX-Code to get back to the original float definition.
23719 \begin_layout Standard
23720 For table floats use the corresponding commands
23723 \begin_layout Standard
23737 \begin_layout Standard
23739 \begin_inset space ~
23743 \begin_inset CommandInset ref
23745 reference "fig:cap-beside-fig"
23750 \begin_inset space ~
23754 \begin_inset CommandInset ref
23756 reference "tab:cap-beside-tab"
23760 are examples where the caption is set beside.
23763 \begin_layout Standard
23764 You can see in the examples that the caption text appears at the top of
23765 the floats for table floats and at the bottom for figure floats.
23766 To change this, you can use the command
23769 \begin_layout Standard
23774 sidecaptionvpos{float type}{placement}
23777 \begin_layout Standard
23778 in the document preamble or in TeX-Code before the float.
23779 The float type is either
23787 , the placement can be
23788 \begin_inset Quotes eld
23796 \begin_inset Quotes erd
23800 \begin_inset Quotes eld
23808 \begin_inset Quotes erd
23812 \begin_inset Quotes eld
23820 \begin_inset Quotes erd
23824 To have for example the caption of figure floats vertically centered, use
23828 \begin_layout Standard
23833 sidecaptionvpos{figure}{c}
23836 \begin_layout Standard
23837 This was used for Figure
23838 \begin_inset space ~
23842 \begin_inset CommandInset ref
23844 reference "fig:cap-beside-fig-2"
23851 \begin_layout Standard
23852 \begin_inset VSpace medskip
23855 For more information about the package
23859 we refer to its documentation
23860 \begin_inset CommandInset citation
23869 \begin_layout Standard
23870 \begin_inset Note Greyedout
23873 \begin_layout Plain Layout
23883 \begin_inset Index idx
23886 \begin_layout Plain Layout
23887 LaTeX-packages ! hypcap
23892 , described in section
23893 \begin_inset space ~
23897 \begin_inset CommandInset ref
23899 reference "sub:Reference-Position"
23903 , has no effect on floats with the caption set beside.
23911 \begin_layout Standard
23915 \begin_layout Plain Layout
23927 \begin_layout Standard
23928 \begin_inset Float figure
23933 \begin_layout Plain Layout
23934 \begin_inset Graphics
23935 filename clipart/escher-lsd.eps
23937 scaleBeforeRotation
23944 \begin_layout Plain Layout
23945 \begin_inset Caption
23947 \begin_layout Plain Layout
23948 \begin_inset CommandInset label
23950 name "fig:cap-beside-fig"
23954 This is a caption beside a figure.
23967 \begin_layout Standard
23971 \begin_layout Plain Layout
23983 \begin_layout Standard
23984 \begin_inset Float table
23989 \begin_layout Plain Layout
23990 \begin_inset Caption
23992 \begin_layout Plain Layout
23993 \begin_inset CommandInset label
23995 name "tab:cap-beside-tab"
23999 This is a caption beside a table.
24007 \begin_layout Plain Layout
24008 \begin_inset Tabular
24009 <lyxtabular version="3" rows="4" columns="5">
24010 <features tabularvalignment="middle">
24011 <column alignment="center" valignment="top" width="0">
24012 <column alignment="center" valignment="top" width="0">
24013 <column alignment="center" valignment="top" width="0">
24014 <column alignment="center" valignment="top" width="0">
24015 <column alignment="center" valignment="top" width="0">
24017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24020 \begin_layout Plain Layout
24026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24029 \begin_layout Plain Layout
24035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24038 \begin_layout Plain Layout
24044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24047 \begin_layout Plain Layout
24053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24056 \begin_layout Plain Layout
24064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24067 \begin_layout Plain Layout
24073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24076 \begin_layout Plain Layout
24082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24085 \begin_layout Plain Layout
24091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24094 \begin_layout Plain Layout
24100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24103 \begin_layout Plain Layout
24111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24114 \begin_layout Plain Layout
24120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24123 \begin_layout Plain Layout
24129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24132 \begin_layout Plain Layout
24138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24141 \begin_layout Plain Layout
24147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24150 \begin_layout Plain Layout
24158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24161 \begin_layout Plain Layout
24167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24170 \begin_layout Plain Layout
24176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24179 \begin_layout Plain Layout
24185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24188 \begin_layout Plain Layout
24194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24197 \begin_layout Plain Layout
24216 \begin_layout Standard
24220 \begin_layout Plain Layout
24232 \begin_layout Standard
24236 \begin_layout Plain Layout
24240 sidecaptionvpos{figure}{c}
24246 \begin_inset Float figure
24251 \begin_layout Plain Layout
24252 \begin_inset Graphics
24253 filename clipart/escher-lsd.eps
24255 scaleBeforeRotation
24262 \begin_layout Plain Layout
24263 \begin_inset Caption
24265 \begin_layout Plain Layout
24266 \begin_inset CommandInset label
24268 name "fig:cap-beside-fig-2"
24272 This is a vertically centered caption beside a figure.
24285 \begin_layout Standard
24289 \begin_layout Plain Layout
24301 \begin_layout Standard
24305 \begin_layout Plain Layout
24315 \begin_inset Note Note
24318 \begin_layout Plain Layout
24319 The following will be displayed when the LaTeX-package
24331 \begin_layout Standard
24332 You need to install the LaTeX-package
24336 to see the following part of this section in the output.
24339 \begin_layout Standard
24343 \begin_layout Plain Layout
24355 \begin_layout Section
24357 \begin_inset Index idx
24360 \begin_layout Plain Layout
24361 Floats ! Float Lists
24369 \begin_layout Standard
24370 Similar to the table of contents where the sections of the document are
24371 listed, there are listings for all float types, like the figures of the
24373 You can insert them via the
24375 Insert\SpecialChar \menuseparator
24377 \begin_inset space ~
24381 \begin_inset space ~
24389 \begin_layout Standard
24390 The list entries are the float captions or its short title, the float number,
24391 and the page number where they appear in the document.
24394 \begin_layout Standard
24395 You can find the list of figures and tables at the end of this document.
24398 \begin_layout Chapter
24402 \begin_layout Section
24404 \begin_inset Index idx
24407 \begin_layout Plain Layout
24416 \begin_layout Standard
24417 Notes are inserted with the toolbar button
24418 \begin_inset Graphics
24419 filename ../images/note-insert.png
24421 scaleBeforeRotation
24427 Insert\SpecialChar \menuseparator
24431 There are three types of notes:
24434 \begin_layout Description
24436 \begin_inset space ~
24439 Note This note type is for internal notes that won't appear in the output.
24440 Its note-box looks like this:
24441 \begin_inset Newline newline
24445 \begin_inset Newline newline
24449 \begin_inset Graphics
24450 filename clipart/LyXNoteImageQt4.png
24453 scaleBeforeRotation
24458 \begin_inset Note Note
24461 \begin_layout Plain Layout
24462 This is text in a note box that doesn't appear in the output.
24470 \begin_layout Description
24471 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24472 ent, when you export the document to LaTeX via the menu
24474 File\SpecialChar \menuseparator
24475 Export\SpecialChar \menuseparator
24476 LaTeX (pdflatex) / (plain)
24479 Its note-box looks like this:
24480 \begin_inset Newline newline
24484 \begin_inset Newline newline
24488 \begin_inset Graphics
24489 filename clipart/CommentNoteImageQt4.png
24492 scaleBeforeRotation
24497 \begin_inset Note Comment
24500 \begin_layout Plain Layout
24501 This is text in a note box that only appears as comment in LaTeX-files.
24509 \begin_layout Description
24511 \begin_inset space ~
24514 Out This note will appear in the output as grey text.
24515 Its note-box looks like this:
24516 \begin_inset Newline newline
24520 \begin_inset Newline newline
24524 \begin_inset Graphics
24525 filename clipart/GreyedOutNoteImageQt4.png
24528 scaleBeforeRotation
24533 \begin_inset Newline newline
24540 \begin_layout Plain Layout
24544 renewenvironment{lyxgreyedout}
24547 \begin_layout Plain Layout
24551 textcolor[gray]{0.8}
24561 \begin_inset Note Greyedout
24564 \begin_layout Plain Layout
24569 \begin_layout Plain Layout
24570 This is an example footnote within a greyed out note.
24575 of a comment that appears in the output as grey text.
24584 \begin_layout Plain Layout
24588 renewenvironment{lyxgreyedout}
24591 \begin_layout Plain Layout
24605 \begin_inset Note Note
24608 \begin_layout Plain Layout
24609 The greyed out note is here redefined to show it with the original LyX definitio
24610 n because greyed out notes are redefined in the preamble of this document,
24611 as described below, to have blue text.
24617 \begin_inset Newline newline
24621 \begin_inset Newline newline
24624 As you can see in the example, the first line of greyed out notes is a bit
24625 indented and greyed out notes can have footnotes.
24628 \begin_layout Standard
24629 \begin_inset VSpace bigskip
24632 When you use the toolbar button
24633 \begin_inset Graphics
24634 filename ../images/note-insert.png
24636 scaleBeforeRotation
24643 \begin_inset space ~
24649 You can switch between the five note types by right-clicking on the note-box.
24654 If you want to turn existing text into a note, mark it and click on the
24668 To change a note to text, press the backspace key when the cursor is in
24669 the first position of a note, or press the delete key when the cursor is
24670 in the very last position of the note, respectively.
24673 \begin_layout Standard
24674 \begin_inset VSpace bigskip
24677 You can change the text color of the greyed out notes in the preamble with
24678 the following command:
24681 \begin_layout Standard
24686 renewenvironment{lyxgreyedout}
24687 \begin_inset Newline newline
24691 \begin_inset Phantom HPhantom
24694 \begin_layout Plain Layout
24697 \begin_inset space ~
24714 \begin_layout Standard
24715 The available colors and the method to define colors is explained in section
24716 \begin_inset space ~
24720 \begin_inset CommandInset ref
24722 reference "sec:Colored-Tables"
24729 \begin_layout Standard
24730 Notes that appear in blue in this document are set using greyed out notes
24734 \begin_layout Section
24736 \begin_inset CommandInset label
24738 name "sec:Footnotes"
24743 \begin_inset Index idx
24746 \begin_layout Plain Layout
24753 \begin_inset Index idx
24756 \begin_layout Plain Layout
24765 \begin_layout Standard
24766 Footnotes can be inserted using the toolbar button
24767 \begin_inset Graphics
24768 filename ../images/footnote-insert.png
24770 scaleBeforeRotation
24776 Insert\SpecialChar \menuseparator
24788 then the following footnote-box:
24789 \begin_inset Graphics
24790 filename clipart/footnoteQt4.png
24792 scaleBeforeRotation
24800 where you can enter the footnote text.
24801 If you want to turn existing text into a footnote, mark it and click on
24823 to text, press the Backspace key when the cursor is in the first position
24832 , or press the Delete key when the cursor is in the very last position of
24844 \begin_layout Standard
24845 Here is an example footnote:
24853 \begin_layout Plain Layout
24854 \begin_inset CommandInset label
24856 name "foot:This-is-an"
24860 This is an example footnote.
24873 \begin_layout Plain Layout
24877 newcounter{MyRepeatFoot}
24880 \begin_layout Plain Layout
24884 setcounter{MyRepeatFoot}{
24894 \begin_layout Standard
24895 The footnote will appear in the output as a superscript number at the text
24896 position where the footnote box is placed.
24897 The footnote text is placed at the bottom of the current page.
24898 The footnote number is calculated by LaTeX; the numbers are consecutive.
24899 It depends on your document-class, whether the footnote number is reset
24903 \begin_layout Standard
24904 Footnotes can be referenced like floats: Insert a label into the footnote
24905 and cross-reference this label in the text as described in section
24906 \begin_inset space ~
24910 \begin_inset CommandInset ref
24912 reference "sec:Referencing-Floats"
24917 \begin_inset Newline newline
24920 This is a cross-reference of Footnote
24921 \begin_inset space ~
24925 \begin_inset CommandInset ref
24927 reference "foot:This-is-an"
24934 \begin_layout Standard
24935 \begin_inset VSpace defskip
24938 Footnotes in tables are not printed by LaTeX due to technical reasons.
24939 However there exists another method to print them: Instead of the footnote
24946 is inserted as TeX-code.
24947 The text of the footnote is entered as an argument of the TeX-code command
24955 \begin_inset Newline newline
24958 This was done for the following table with the command
24961 \begin_layout Standard
24968 Printed table footnote.
24973 \begin_layout Standard
24974 \begin_inset Tabular
24975 <lyxtabular version="3" rows="2" columns="1">
24976 <features tabularvalignment="middle">
24977 <column alignment="center" valignment="top" width="0">
24979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24982 \begin_layout Plain Layout
24983 This an example text.
24987 \begin_layout Plain Layout
24988 This footnote will not be printed!
25000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25003 \begin_layout Plain Layout
25004 This an example text.
25008 \begin_layout Plain Layout
25031 \begin_layout Plain Layout
25040 Printed table footnote.
25044 \begin_layout Plain Layout
25054 \begin_layout Standard
25055 Footnotes in longtables are described in section
25056 \begin_inset space ~
25060 \begin_inset CommandInset ref
25062 reference "sub:Footnotes-in-Longtables"
25069 \begin_layout Standard
25070 Footnotes in minipage boxes are printed, but inside the box and with a different
25071 numbering because a minipage box is like a page inside a page.
25072 (For more about minipages, see section
25073 \begin_inset space ~
25077 \begin_inset CommandInset ref
25079 reference "sec:Minipages"
25083 .) To get a footnote in the minipage that is output at the bottom of the
25084 page like normal footnotes, also use the method of
25099 \begin_layout Standard
25100 \begin_inset Box Frameless
25110 height_special "totalheight"
25113 \begin_layout Plain Layout
25114 This an example text in a minipage.
25118 \begin_layout Plain Layout
25119 Footnote in the minipage.
25127 \begin_layout Plain Layout
25128 This an example text in a minipage.
25132 \begin_layout Plain Layout
25149 \begin_layout Standard
25153 \begin_layout Plain Layout
25162 Footnote outside the minipage.
25166 \begin_layout Plain Layout
25176 \begin_layout Standard
25177 \begin_inset VSpace defskip
25183 \begin_layout Standard
25184 To refer to the same footnote several times without printing the footnote
25185 text every time, use the command
25189 footnotemark[number]
25192 \begin_inset Newline newline
25195 As you do not know the number of the repeating footnote while you are writing
25196 the text, you have to store its number.
25197 For the following footnote mark example, these commands were inserted in
25198 TeX-code after Footnote
25199 \begin_inset space ~
25203 \begin_inset CommandInset ref
25205 reference "foot:This-is-an"
25209 to store the footnote number:
25212 \begin_layout Standard
25217 newcounter{MyRepeatFoot}
25218 \begin_inset Newline newline
25223 setcounter{MyRepeatFoot}{
25228 \begin_layout Standard
25229 The footnote mark was then created with this command:
25232 \begin_layout Standard
25242 \begin_layout Standard
25243 Here is a repeated footnote:
25251 \begin_layout Plain Layout
25265 \begin_layout Standard
25266 If you want to repeat the previous footnote, you can omit the storage of
25267 the footnote number and just use this command instead:
25270 \begin_layout Standard
25280 \begin_layout Standard
25281 Here is another repeated footnote:
25289 \begin_layout Plain Layout
25303 \begin_layout Subsection
25305 \begin_inset CommandInset label
25307 name "sub:Footnote-Numbering"
25312 \begin_inset Index idx
25315 \begin_layout Plain Layout
25316 Footnotes ! Numbering
25324 \begin_layout Standard
25325 To reset the footnote number back to 1 after each section
25327 , add this command to your document preamble:
25330 \begin_layout Standard
25335 @addtoreset{footnote}{section}
25338 \begin_layout Standard
25339 \begin_inset VSpace bigskip
25342 The following preamble command changes the footnote numbering style to small
25346 \begin_layout Standard
25358 \begin_layout Standard
25362 \begin_layout Plain Layout
25375 This is a footnote with roman numbering:
25379 \begin_layout Plain Layout
25380 This is an example footnote with roman numbering.
25388 \begin_layout Standard
25389 To change the numbering style to capital roman numerals replace in the command
25404 \begin_inset Quotes eld
25408 \begin_inset Quotes erd
25411 footnotes with capital or small Latin letters use
25425 \begin_inset Quotes eld
25429 \begin_inset Quotes erd
25432 footnotes with symbols use
25441 \begin_layout Standard
25442 \begin_inset Note Greyedout
25445 \begin_layout Plain Layout
25450 You can only number 26 footnotes with Latin letters, because this numbering
25451 is limited to single letters.
25457 \begin_inset Newline newline
25461 \begin_inset Note Greyedout
25464 \begin_layout Plain Layout
25469 You can only number 9 footnotes with symbols.
25477 \begin_layout Standard
25478 To return to the default numbering style after you have changed to another
25491 in the command above.
25495 \begin_layout Plain Layout
25511 \begin_layout Standard
25512 \begin_inset VSpace bigskip
25518 \begin_layout Standard
25519 If you want to have footnotes numbered in the scheme
25520 \begin_inset Quotes eld
25524 \begin_inset Quotes erd
25527 , add the following command to your document preamble:
25530 \begin_layout Standard
25535 numberwithin{footnote}{chapter}
25538 \begin_layout Standard
25539 To be able to use the command
25548 \begin_inset space ~
25553 in the document settings the option
25556 \begin_inset space ~
25560 \begin_inset space ~
25564 \begin_inset space ~
25572 \begin_layout Standard
25576 \begin_layout Plain Layout
25580 numberwithin{footnote}{chapter}
25585 This is another example footnote:
25591 \begin_layout Plain Layout
25592 This is a footnote numbered in the scheme
25593 \begin_inset Quotes eld
25597 \begin_inset Quotes erd
25611 \begin_layout Plain Layout
25627 \begin_layout Standard
25628 \begin_inset Note Greyedout
25631 \begin_layout Plain Layout
25642 always prints out the footnote number as arabic number; previous redefinitions
25643 to get non-arabic numbers are overwritten.
25651 \begin_layout Standard
25652 So to get for example the scheme
25653 \begin_inset Quotes eld
25659 \begin_inset Quotes erd
25662 , use this command instead of
25671 \begin_layout Standard
25685 \begin_layout Subsection
25687 \begin_inset Index idx
25690 \begin_layout Plain Layout
25691 Footnotes ! Placement
25699 \begin_layout Standard
25700 If you have several footnotes in one page, they appear without vertical
25701 space between them at the bottom of the page.
25702 To make them more readable you can e.
25703 \begin_inset space \thinspace{}
25707 \begin_inset space \space{}
25711 \begin_inset space \thinspace{}
25714 mm space with the following preamble command:
25717 \begin_layout Standard
25727 \begin_inset Newline newline
25741 \begin_layout Standard
25742 \begin_inset VSpace bigskip
25745 In a two-column document the footnotes appear at the bottom of every column,
25747 \begin_inset space ~
25751 \begin_inset CommandInset ref
25753 reference "fig:Standard-footnote-placement"
25758 If the footnotes should only appear at the bottom of the right column,
25760 \begin_inset space ~
25764 \begin_inset CommandInset ref
25766 reference "fig:Footnote-placement-in"
25770 , use the LaTeX-package
25775 \begin_inset Index idx
25778 \begin_layout Plain Layout
25779 LaTeX-packages ! ftnright
25784 with this command in the document preamble:
25787 \begin_layout Standard
25792 usepackage{ftnright}
25795 \begin_layout Standard
25796 \begin_inset Float figure
25802 \begin_layout Plain Layout
25806 \begin_layout Plain Layout
25816 \begin_inset Graphics
25817 filename clipart/without_fntright.pdf
25819 scaleBeforeRotation
25827 \begin_layout Plain Layout
25837 \begin_layout Plain Layout
25838 \begin_inset Caption
25840 \begin_layout Plain Layout
25841 \begin_inset CommandInset label
25843 name "fig:Standard-footnote-placement"
25847 Standard footnote placement in two-column documents.
25860 \begin_layout Standard
25861 \begin_inset Float figure
25867 \begin_layout Plain Layout
25871 \begin_layout Plain Layout
25881 \begin_inset Graphics
25882 filename clipart/with_fntright.pdf
25884 scaleBeforeRotation
25892 \begin_layout Plain Layout
25902 \begin_layout Plain Layout
25903 \begin_inset Caption
25905 \begin_layout Plain Layout
25906 \begin_inset CommandInset label
25908 name "fig:Footnote-placement-in"
25912 Footnote placement in two-column documents when the LaTeX-package
25929 \begin_layout Standard
25930 \begin_inset VSpace bigskip
25933 In some scientific literature it is usual to collect the footnotes and print
25934 them in a separate paragraph at the end of a section, as in Figure
25935 \begin_inset space ~
25939 \begin_inset CommandInset ref
25941 reference "fig:Endnotes"
25946 They are then called
25947 \begin_inset Quotes eld
25951 \begin_inset Quotes erd
25955 \begin_inset Index idx
25958 \begin_layout Plain Layout
25964 To use endnotes instead of footnotes in your document, load in the menu
25967 Document\SpecialChar \menuseparator
25968 Settings\SpecialChar \menuseparator
25974 \begin_inset space ~
25978 \begin_inset space ~
25984 To insert the collected footnotes, insert the command
25987 \begin_layout Standard
25995 \begin_layout Standard
25996 in TeX-Code at the end of a section or chapter.
25999 \begin_layout Standard
26000 \begin_inset Float figure
26005 \begin_layout Plain Layout
26010 \begin_layout Plain Layout
26020 \begin_inset Graphics
26021 filename clipart/endnotes.pdf
26022 scaleBeforeRotation
26030 \begin_layout Plain Layout
26040 \begin_layout Plain Layout
26041 \begin_inset Caption
26043 \begin_layout Plain Layout
26044 \begin_inset CommandInset label
26046 name "fig:Endnotes"
26050 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26064 \begin_layout Standard
26065 \begin_inset VSpace medskip
26068 The paragraph heading for the endnotes isn't automatically translated into
26069 the document language, this must be done manually.
26070 The following preamble command translates the default English
26071 \begin_inset Quotes eld
26075 \begin_inset Quotes erd
26079 \begin_inset Quotes eld
26083 \begin_inset Quotes erd
26089 \begin_layout Standard
26096 notesname}{Anmerkungen}
26099 \begin_layout Standard
26100 \begin_inset VSpace medskip
26103 The numbering of endnotes can be changed like the footnote numbering as
26104 described in section
26105 \begin_inset space ~
26109 \begin_inset CommandInset ref
26111 reference "sub:Footnote-Numbering"
26115 ; just replace the command
26128 To reset the endnote number use the command
26134 as described in section
26135 \begin_inset space ~
26139 \begin_inset CommandInset ref
26141 reference "sub:Footnote-Numbering"
26145 and replace the command parameter
26156 \begin_layout Standard
26157 For endnotes there is the command
26161 endnotemark[number]
26163 similar to the command
26169 , that is described in section
26170 \begin_inset space ~
26174 \begin_inset CommandInset ref
26176 reference "sec:Footnotes"
26183 \begin_layout Standard
26184 \begin_inset VSpace bigskip
26187 Footnotes can also be placed in the page margin and the footnote text alignment
26188 can be changed, see the LaTeX-package
26193 \begin_inset Index idx
26196 \begin_layout Plain Layout
26197 LaTeX-packages ! footmisc
26203 \begin_inset CommandInset citation
26209 for more information about this.
26212 \begin_layout Standard
26213 For various further footnote formatting issues have a look at LaTeX-books,
26215 \begin_inset CommandInset citation
26217 key "latexcompanion,latexguide,latexbook"
26224 \begin_layout Section
26226 \begin_inset Index idx
26229 \begin_layout Plain Layout
26230 Notes ! Margin Notes
26238 \begin_layout Standard
26239 Margin notes look and behave in LyX like footnotes.
26240 They are inserted via the menu
26242 Insert\SpecialChar \menuseparator
26244 \begin_inset space ~
26249 or the toolbar button
26250 \begin_inset Graphics
26251 filename ../images/marginalnote-insert.png
26253 scaleBeforeRotation
26268 \begin_inset Quotes eld
26272 \begin_inset Quotes erd
26275 appears where you can enter the text of the margin note.
26278 \begin_layout Standard
26279 At the side is an example margin note.
26284 \begin_inset Marginal
26287 \begin_layout Plain Layout
26288 This is a margin note.
26296 \begin_layout Standard
26297 Margin notes appear at the right side in single-sided documents.
26298 In double-sided documents they appear in the outer margin – left on even
26299 pages, right on odd pages.
26300 The text of margin notes is aligned opposite to the outer margin – right-aligne
26301 d when the note appears in the left margin.
26302 The first line of the margin note is placed at the position of the text
26303 line where it is inserted in the document.
26306 \begin_layout Standard
26307 \begin_inset VSpace bigskip
26310 To place the margin note in the inner margin, add the command
26313 \begin_layout Standard
26321 \begin_layout Standard
26322 in TeX-Code before a margin note.
26323 The new placement is valid for all subsequent margin notes.
26328 \begin_layout Plain Layout
26338 \begin_inset Marginal
26341 \begin_layout Plain Layout
26342 This is a margin note in the inner margin.
26350 \begin_inset Newline newline
26356 \begin_inset Note Greyedout
26359 \begin_layout Plain Layout
26364 There is often not enough space in the inner margin so that the notes are
26365 not correctly displayed in the output.
26373 \begin_layout Standard
26374 To return to the default placement insert the command
26377 \begin_layout Standard
26385 \begin_layout Standard
26390 \begin_layout Plain Layout
26400 \begin_inset Note Greyedout
26403 \begin_layout Plain Layout
26408 The command is ignored when it is within a paragraph where also the command
26423 \begin_layout Standard
26424 \begin_inset VSpace bigskip
26431 \begin_inset Marginal
26434 \begin_layout Plain Layout
26435 AVeryLongMarginParWord that isn't hyphenated.
26443 Similar to the case described in section
26444 \begin_inset space ~
26448 \begin_inset CommandInset ref
26450 reference "sub:Multiple-Lines-in"
26454 , long words cannot be hyphenated when they are the first word in a margin
26456 To avoid this, insert 0
26457 \begin_inset space \thinspace{}
26460 pt horizontal space before the word
26465 \begin_inset Marginal
26468 \begin_layout Plain Layout
26469 \begin_inset space \hspace*{}
26473 AVeryLongMarginParWord that is hyphenated.
26481 \begin_layout Standard
26482 \begin_inset VSpace bigskip
26488 \begin_layout Standard
26489 \begin_inset Note Greyedout
26492 \begin_layout Plain Layout
26497 Margin notes can normally not be used inside tables, floats, and footnotes.
26505 \begin_layout Standard
26506 \begin_inset VSpace bigskip
26512 \begin_layout Standard
26516 \begin_layout Plain Layout
26526 \begin_inset Note Note
26529 \begin_layout Plain Layout
26530 The following section will only be displayed when the LaTeX-package
26542 \begin_layout Standard
26543 This restriction can be evaded by using the LaTeX-package
26548 \begin_inset Index idx
26551 \begin_layout Plain Layout
26552 LaTeX-packages ! marginnote
26558 By adding these two lines to your document preamble, the command used by
26559 LyX for margin notes is redefined to use the command provided by the
26566 \begin_layout Standard
26571 usepackage{marginnote}
26572 \begin_inset Newline newline
26584 \begin_layout Standard
26585 This is also used in this document because
26589 has another useful feature: You can set a vertical offset for the note.
26590 This is often needed when too many margin notes are too close together
26591 or for a better page layout.
26592 The offset is set in LyX as TeX-Code directly after the margin note in
26596 \begin_layout Standard
26602 \begin_layout Standard
26603 where the offset is a length with one of the units listed in Table
26604 \begin_inset space ~
26608 \begin_inset CommandInset ref
26610 reference "tab:Units"
26615 A negative value shifts the note up, a positive value shifts it down.
26619 For example the margin note beside this text line is shifted up 1.5
26620 \begin_inset space \thinspace{}
26623 cm with the TeX-Code-command
26624 \begin_inset Quotes eld
26634 \begin_inset Quotes erd
26638 \begin_inset Marginal
26641 \begin_layout Plain Layout
26642 This margin note is shifted up 1.5
26643 \begin_inset space \thinspace{}
26646 cm from its original position.
26658 \begin_layout Plain Layout
26668 \begin_layout Standard
26669 \begin_inset VSpace medskip
26676 you can also change the alignment of the text in the margin note.
26677 For example the commands
26680 \begin_layout Standard
26687 raggedleftmarginnote}{
26690 \begin_inset Newline newline
26697 raggedrightmarginnote}{
26702 \begin_layout Standard
26703 set the alignment to centered.
26708 raggedleftmarginnote
26710 denotes margin notes that appear at the left side.
26717 \begin_layout Plain Layout
26723 raggedleftmarginnote}{
26728 \begin_layout Plain Layout
26734 raggedrightmarginnote}{
26742 \begin_inset Marginal
26745 \begin_layout Plain Layout
26746 The text of this margin note is centered.
26757 \begin_layout Standard
26764 raggedleftmarginnote}{
26767 \begin_inset Newline newline
26774 raggedrightmarginnote}{
26783 \begin_layout Plain Layout
26789 raggedleftmarginnote}{
26794 \begin_layout Plain Layout
26800 raggedrightmarginnote}{
26810 \begin_layout Standard
26811 \begin_inset VSpace medskip
26814 For the other features of
26818 refer to its documentation
26819 \begin_inset CommandInset citation
26828 \begin_layout Standard
26829 \begin_inset VSpace bigskip
26832 You can adjust the layout of margin notes by changing its definition.
26833 To create for example a header for all margin notes with the underlined,
26834 sans-serif, and bold header text
26835 \begin_inset Quotes eld
26847 \begin_inset Quotes erd
26850 , add this to your document preamble:
26853 \begin_layout Standard
26863 \begin_inset Newline newline
26873 \begin_inset Newline newline
26877 \begin_inset Phantom HPhantom
26880 \begin_layout Plain Layout
26883 \begin_inset space ~
26899 underbar{Attention!}}}%
26900 \begin_inset Newline newline
26904 \begin_inset Phantom HPhantom
26907 \begin_layout Plain Layout
26910 \begin_inset space ~
26927 \begin_layout Standard
26934 \begin_layout Plain Layout
26945 \begin_layout Plain Layout
26956 \begin_layout Plain Layout
26964 underbar{Attention!}}}%
26967 \begin_layout Plain Layout
26981 \begin_inset Marginal
26984 \begin_layout Plain Layout
26985 This is a margin note with a defined heading.
26997 \begin_layout Plain Layout
27011 \begin_layout Plain Layout
27028 \begin_inset Note Note
27031 \begin_layout Plain Layout
27032 The margin note format is changed only for this example.
27040 \begin_layout Standard
27044 \begin_layout Plain Layout
27054 \begin_inset Note Note
27057 \begin_layout Plain Layout
27058 The following will be displayed when the LaTeX-package
27070 \begin_layout Standard
27071 You need to install the LaTeX-package
27075 to see the following part of this section in the output.
27078 \begin_layout Standard
27082 \begin_layout Plain Layout
27094 \begin_layout Chapter
27098 \begin_layout Section
27100 \begin_inset Index idx
27103 \begin_layout Plain Layout
27104 Boxes ! Introduction
27112 \begin_layout Standard
27113 Boxes are used to format a block of text.
27114 Boxes can be used to write documents with multiple languages, see section
27115 \begin_inset space ~
27119 \begin_inset CommandInset ref
27121 reference "sec:Minipages"
27125 , to frame texts, see section
27126 \begin_inset space ~
27130 \begin_inset CommandInset ref
27132 reference "sec:Decoration"
27136 , to prevent words from being hyphenated, see section
27137 \begin_inset space ~
27141 \begin_inset CommandInset ref
27143 reference "sec:Prevent-Hyphenation"
27147 , to align text, see section
27148 \begin_inset space ~
27152 \begin_inset CommandInset ref
27154 reference "sub:Vertical-Alignment"
27158 , or to set the background color of texts, see section
27159 \begin_inset space ~
27163 \begin_inset CommandInset ref
27165 reference "sec:Colored-Boxes"
27172 \begin_layout Standard
27173 Boxes can be inserted with the menu
27175 Insert\SpecialChar \menuseparator
27178 or the toolbar button
27179 \begin_inset Graphics
27180 filename ../images/box-insert.png
27182 scaleBeforeRotation
27187 A grey box with the label
27192 \begin_inset Graphics
27193 filename clipart/BoxInsetDefaultQt4.png
27195 scaleBeforeRotation
27200 The box type can be specified by right-clicking on the box and selecting
27206 The box dialog offers the
27209 \begin_inset space ~
27231 is the default for new boxes and is explained in section
27232 \begin_inset space ~
27236 \begin_inset CommandInset ref
27238 reference "sec:Minipages"
27246 is described in section
27247 \begin_inset space ~
27251 \begin_inset CommandInset ref
27253 reference "sec:Parboxes"
27262 \begin_inset CommandInset ref
27264 reference "sec:Prevent-Hyphenation"
27271 \begin_layout Standard
27272 Boxes are not numbered and can therefore not be referenced like floats or
27276 \begin_layout Standard
27277 \begin_inset Note Greyedout
27280 \begin_layout Plain Layout
27285 Boxes must not be the item in an
27301 \begin_layout Standard
27302 \begin_inset Note Greyedout
27305 \begin_layout Plain Layout
27310 For an unknown reason you can only set the
27313 \begin_inset space ~
27322 when you use a framed box.
27326 \begin_inset space ~
27331 type and without frames are explained in section
27332 \begin_inset space ~
27336 \begin_inset CommandInset ref
27338 reference "sec:Prevent-Hyphenation"
27350 \begin_layout Section
27352 \begin_inset CommandInset label
27354 name "sec:Box-Dialog"
27359 \begin_inset Index idx
27362 \begin_layout Plain Layout
27371 \begin_layout Subsection
27373 \begin_inset Index idx
27376 \begin_layout Plain Layout
27385 \begin_layout Standard
27386 In the box dialog you can adjust the box geometry in the fields
27395 The available units for the geometry are explained in Table
27396 \begin_inset space ~
27400 \begin_inset CommandInset ref
27402 reference "tab:Units"
27411 offers the following additional sizes:
27414 \begin_layout Description
27415 Depth This is the plain text
27416 \begin_inset Quotes eld
27420 \begin_inset Quotes erd
27424 It ignores the total depth when there are multiple text lines in the box:
27425 \begin_inset Newline newline
27429 \begin_inset Newline newline
27433 \begin_inset Newline newline
27437 \begin_inset Box Boxed
27447 height_special "depth"
27450 \begin_layout Plain Layout
27452 Box height set to 1
27453 \begin_inset space \thinspace{}
27462 \begin_inset Newline newline
27466 \begin_inset Newline newline
27472 \begin_layout Description
27473 Height This is the height of the text that is inside the box.
27475 \begin_inset space \thinspace{}
27479 \begin_inset space \space{}
27482 2 for this size will set the box height to 2
27483 \begin_inset space ~
27486 times the text height:
27487 \begin_inset Box Boxed
27497 height_special "height"
27500 \begin_layout Plain Layout
27502 Box height set to 2
27503 \begin_inset space \thinspace{}
27514 \begin_layout Description
27516 \begin_inset space ~
27519 Height This is the Height
27520 \begin_inset space \thinspace{}
27524 \begin_inset space \thinspace{}
27528 \begin_inset Box Boxed
27538 height_special "totalheight"
27541 \begin_layout Plain Layout
27543 Box height set to 1
27544 \begin_inset space \thinspace{}
27548 \begin_inset space ~
27559 \begin_layout Description
27560 Width This sets the width of the box as height:
27561 \begin_inset Box Boxed
27571 height_special "width"
27574 \begin_layout Plain Layout
27576 Box height set to 1
27577 \begin_inset space \thinspace{}
27588 \begin_layout Subsection
27590 \begin_inset Index idx
27593 \begin_layout Plain Layout
27602 \begin_layout Standard
27603 When you have chosen an
27606 \begin_inset space ~
27611 , the vertical box alignment can be:
27614 \begin_layout Description
27615 Top This is an example text line.
27617 \begin_inset Box Boxed
27627 height_special "totalheight"
27630 \begin_layout Plain Layout
27632 This box is top-aligned.
27637 This is an example text line.
27640 \begin_layout Description
27641 Middle This is an example text line.
27643 \begin_inset Box Boxed
27653 height_special "totalheight"
27656 \begin_layout Plain Layout
27658 This box is middle-aligned.
27663 This is an example text line.
27666 \begin_layout Description
27667 Bottom This is an example text line.
27669 \begin_inset Box Boxed
27679 height_special "totalheight"
27682 \begin_layout Plain Layout
27684 This box is bottom-aligned.
27689 This is an example text line.
27692 \begin_layout Standard
27693 \begin_inset Note Greyedout
27696 \begin_layout Plain Layout
27701 The vertical box alignment can be lost in the output when you have two
27702 boxes in a line and one has e.
27703 \begin_inset space \thinspace{}
27707 \begin_inset space \space{}
27710 a shadow and the other one not.
27718 \begin_layout Standard
27719 The horizontal box alignment can be set via LyX's paragraph dialog when
27720 you set the box into its own paragraph.
27723 \begin_layout Standard
27724 \begin_inset VSpace bigskip
27727 When you have chosen an
27730 \begin_inset space ~
27735 , the box content can be aligned vertically to:
27738 \begin_layout Description
27739 top This is an example text line.
27741 \begin_inset Box Boxed
27751 height_special "totalheight"
27754 \begin_layout Plain Layout
27756 This box text is top-aligned.
27761 This is an example text line.
27764 \begin_layout Description
27765 middle This is an example text line.
27767 \begin_inset Box Boxed
27777 height_special "totalheight"
27780 \begin_layout Plain Layout
27782 This box text is middle-aligned.
27787 This is an example text line.
27790 \begin_layout Description
27791 bottom This is an example text line.
27793 \begin_inset Box Boxed
27803 height_special "totalheight"
27806 \begin_layout Plain Layout
27808 This box text is bottom-aligned.
27813 This is an example text line.
27816 \begin_layout Description
27817 stretch This is an example text line.
27819 \begin_inset Box Boxed
27829 height_special "totalheight"
27832 \begin_layout Plain Layout
27837 \begin_layout Plain Layout
27842 \begin_layout Plain Layout
27849 This is an example text line.
27852 \begin_layout Standard
27853 To stretch the box content, it must consist of more than one paragraph.
27854 In the example above every text line is in an own paragraph.
27857 \begin_layout Standard
27858 \begin_inset VSpace bigskip
27861 To align the box content horizontally you can use LyX's paragraph dialog
27862 when you have chosen an
27865 \begin_inset space ~
27873 \begin_layout Standard
27875 \begin_inset Box Boxed
27885 height_special "totalheight"
27888 \begin_layout Plain Layout
27893 \begin_layout Plain Layout
27898 \begin_layout Plain Layout
27908 \begin_layout Standard
27909 If you have not set an
27912 \begin_inset space ~
27917 , you can align the box content horizontally in the box dialog.
27920 \begin_layout Standard
27922 \begin_inset Box Boxed
27932 height_special "totalheight"
27935 \begin_layout Plain Layout
27937 This box text is horizontally stretched.
27945 \begin_layout Subsection
27947 \begin_inset CommandInset label
27949 name "sec:Decoration"
27954 \begin_inset Index idx
27957 \begin_layout Plain Layout
27966 \begin_layout Standard
27967 The type of the box can be specified in the box dialog in the drop-down
27973 The following types are possible:
27976 \begin_layout Description
27978 \begin_inset space ~
27981 frame Nothing is drawn.
27984 \begin_layout Description
27986 \begin_inset space ~
27990 \begin_inset space ~
27993 frame This draws a rectangular frame around the box.
27994 The frame line thickness has the size of
28002 \begin_inset Box Boxed
28012 height_special "totalheight"
28015 \begin_layout Plain Layout
28025 \begin_layout Description
28027 \begin_inset space ~
28031 \begin_inset space ~
28034 thin This draws an oval frame around the box.
28035 The frame line thickness has the size 0.4
28036 \begin_inset space \thinspace{}
28041 \begin_inset Box ovalbox
28051 height_special "totalheight"
28054 \begin_layout Plain Layout
28064 \begin_layout Description
28066 \begin_inset space ~
28070 \begin_inset space ~
28073 thick This draws an oval frame around the box.
28074 The frame line thickness has the size 0.8
28075 \begin_inset space \thinspace{}
28080 \begin_inset Box Ovalbox
28090 height_special "totalheight"
28093 \begin_layout Plain Layout
28103 \begin_layout Description
28105 \begin_inset space ~
28108 shadow This draws a rectangular frame with a shadow around the box.
28109 The frame line thickness has the size of
28115 , the shadow has a width of 4
28116 \begin_inset space \thinspace{}
28121 \begin_inset Box Shadowbox
28131 height_special "totalheight"
28134 \begin_layout Plain Layout
28144 \begin_layout Description
28146 \begin_inset space ~
28149 background This draws a box with a red background.
28150 Unlike colored boxes
28154 \begin_layout Plain Layout
28156 \begin_inset space \thinspace{}
28160 \begin_inset CommandInset ref
28162 reference "sec:Colored-Boxes"
28171 , it always uses the whole column width and the box is set as its own paragraph.
28173 \begin_inset Box Shaded
28183 height_special "totalheight"
28186 \begin_layout Plain Layout
28187 Shaded background box
28195 \begin_layout Description
28197 \begin_inset space ~
28201 \begin_inset space ~
28204 frame This draws a double-line rectangular frame around the box.
28205 The line thickness of the inner frame is 0.75
28206 \begin_inset space \thinspace{}
28215 , the thickness of the outer frame is 1.5
28216 \begin_inset space \thinspace{}
28226 The distance between the lines is 1.5
28227 \begin_inset space \thinspace{}
28237 \begin_inset space \thinspace{}
28241 \begin_inset space \thinspace{}
28245 \begin_inset space \thinspace{}
28250 \begin_inset Box Doublebox
28260 height_special "totalheight"
28263 \begin_layout Plain Layout
28265 Double rectangular box
28273 \begin_layout Standard
28274 \begin_inset VSpace bigskip
28277 LyX's box label will reflect the different frame types.
28278 To be able to use all types, the LaTeX-package
28283 \begin_inset Index idx
28286 \begin_layout Plain Layout
28287 LaTeX-packages ! fancybox
28295 \begin_layout Standard
28296 \begin_inset VSpace bigskip
28299 When you use the decoration
28301 simple rectangular frame
28303 and no inner box, you can allow page breaks within a box.
28304 Note that then, unlike other framed boxes, the frame always uses the whole
28305 column width, the box is set as its own paragraph, and
28317 have no effect on this box type.
28318 The frame line thickness has the size of
28326 \begin_inset Box Framed
28336 height_special "totalheight"
28339 \begin_layout Plain Layout
28340 Allow page break box
28348 \begin_layout Section
28350 \begin_inset Index idx
28353 \begin_layout Plain Layout
28354 Boxes ! Customization
28362 \begin_layout Standard
28363 The default value for the size
28370 \begin_inset space \thinspace{}
28374 It can be changed with the following command in TeX-Code to e.
28375 \begin_inset space \thinspace{}
28379 \begin_inset space \space{}
28383 \begin_inset space \thinspace{}
28389 \begin_layout Standard
28399 \begin_layout Standard
28403 \begin_layout Plain Layout
28415 \begin_inset Box Boxed
28425 height_special "totalheight"
28428 \begin_layout Plain Layout
28430 Rectangular box with
28437 \begin_inset space \thinspace{}
28441 \begin_inset space \thinspace{}
28445 \begin_inset space \thinspace{}
28457 \begin_layout Plain Layout
28471 \begin_layout Standard
28472 \begin_inset VSpace bigskip
28475 The space between the frame and the box content is for all frame styles
28477 \begin_inset space \thinspace{}
28481 You can change it by setting the length
28488 For example the command
28491 \begin_layout Standard
28501 \begin_layout Standard
28502 sets the value to 10
28503 \begin_inset space \thinspace{}
28506 pt, as with the following box:
28509 \begin_layout Standard
28513 \begin_layout Plain Layout
28525 \begin_inset Box Boxed
28535 height_special "totalheight"
28538 \begin_layout Plain Layout
28540 Rectangular box with
28547 \begin_inset space \thinspace{}
28551 \begin_inset space \thinspace{}
28555 \begin_inset space \thinspace{}
28567 \begin_layout Plain Layout
28581 \begin_layout Standard
28582 \begin_inset VSpace bigskip
28585 The diameter of the round corners of the oval boxes can be set with the
28596 \begin_layout Standard
28604 \begin_layout Standard
28605 sets the diameter to 1
28606 \begin_inset space \thinspace{}
28613 \begin_layout Standard
28621 \begin_layout Standard
28622 sets the diameter to
28625 \begin_inset space \thinspace{}
28629 \begin_inset space \thinspace{}
28632 minimum(width and heigth of box)
28644 \begin_layout Standard
28648 \begin_layout Plain Layout
28658 \begin_inset Box Ovalbox
28668 height_special "totalheight"
28671 \begin_layout Plain Layout
28680 \begin_inset space \thinspace{}
28684 \begin_inset space \thinspace{}
28688 \begin_inset space \thinspace{}
28700 \begin_layout Plain Layout
28712 \begin_layout Standard
28713 \begin_inset VSpace bigskip
28716 The size of the shadow can be adjusted by changing the length
28724 \begin_inset space \thinspace{}
28727 pt for the following box by this command:
28730 \begin_layout Standard
28740 \begin_layout Standard
28744 \begin_layout Plain Layout
28756 \begin_inset Box Shadowbox
28766 height_special "totalheight"
28769 \begin_layout Plain Layout
28778 \begin_inset space \thinspace{}
28782 \begin_inset space \thinspace{}
28786 \begin_inset space \thinspace{}
28798 \begin_layout Plain Layout
28812 \begin_layout Standard
28813 \begin_inset VSpace bigskip
28819 \begin_layout Standard
28820 The default value for the size
28827 \begin_inset space \thinspace{}
28831 The default space between the note content and the frame is 9
28832 \begin_inset space \thinspace{}
28835 pt and can be changed with the value of
28842 For example the frame appearance of the following
28846 is set with the TeX-Code commands
28849 \begin_layout Standard
28857 \begin_inset Newline newline
28867 \begin_layout Standard
28871 \begin_layout Plain Layout
28880 \begin_layout Plain Layout
28892 \begin_inset Box Framed
28902 height_special "totalheight"
28905 \begin_layout Plain Layout
28919 \begin_layout Plain Layout
28928 \begin_layout Plain Layout
28942 \begin_layout Standard
28943 \begin_inset VSpace bigskip
28949 \begin_layout Standard
28954 boxes the default space between the box content and the box border is 3
28955 \begin_inset space \thinspace{}
28958 pt and can be changed with the value of
28965 The default background color red can either be changed locally with the
28970 definecolor{shadecolor}
28972 or globally with the menu
28974 Tools\SpecialChar \menuseparator
28975 Preferences\SpecialChar \menuseparator
28976 Colors\SpecialChar \menuseparator
28978 \begin_inset space ~
28990 command is explained in section
28991 \begin_inset space ~
28995 \begin_inset CommandInset ref
28997 reference "sec:Colored-Tables"
29005 \begin_layout Plain Layout
29012 requires the LaTeX-package
29016 in the preamble, see section
29017 \begin_inset space ~
29021 \begin_inset CommandInset ref
29023 reference "sec:Colored-Boxes"
29032 For example the appearance of the following shaded background box is set
29033 with the TeX-Code commands
29036 \begin_layout Standard
29046 \begin_inset Newline newline
29053 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29056 \begin_layout Standard
29060 \begin_layout Plain Layout
29069 \begin_layout Plain Layout
29073 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29079 \begin_inset Box Shaded
29089 height_special "totalheight"
29092 \begin_layout Plain Layout
29095 This is yellow text in a
29105 box with dark green background.
29114 \begin_layout Plain Layout
29123 \begin_layout Plain Layout
29127 definecolor{shadecolor}{rgb}{1,0,0}
29135 \begin_layout Standard
29136 \begin_inset VSpace bigskip
29139 Changed lengths and widths are valid for all boxes following the commands
29143 \begin_layout Section
29145 \begin_inset CommandInset label
29147 name "sec:Minipages"
29152 \begin_inset Index idx
29155 \begin_layout Plain Layout
29164 \begin_layout Standard
29165 Minipages are treated by LaTeX as pages within pages and can therefore for
29166 example have their own footnotes.
29169 \begin_layout Standard
29170 Minipages are useful when you write documents with different languages.
29173 \begin_layout Standard
29174 Below are two example minipages side by side.
29175 Their width is set to 45
29176 \begin_inset space \thinspace{}
29179 col% and they are separated by a horizontal fill, that was inserted via
29182 Insert\SpecialChar \menuseparator
29184 \begin_inset space ~
29187 Formatting\SpecialChar \menuseparator
29189 \begin_inset space ~
29195 \begin_inset Newpage newpage
29201 \begin_layout Standard
29202 \begin_inset Box Frameless
29212 height_special "totalheight"
29215 \begin_layout Plain Layout
29218 Dies ist ein deutscher Text.
29219 Dies ist ein deutscher Text.
29220 Dies ist ein deutscher Text.
29221 Dies ist ein deutscher Text.
29222 Dies ist ein deutscher Text.
29223 Dies ist ein deutscher Text.
29224 Dies ist ein deutscher Text.
29225 Dies ist ein deutscher Text.
29226 Dies ist ein deutscher Text.
29227 Dies ist ein deutscher Text.
29228 Dies ist ein deutscher Text.
29229 Dies ist ein deutscher Text.
29230 Dies ist ein deutscher Text
29234 \begin_layout Plain Layout
29237 Dies ist eine deutsche Fußnote.
29243 Dies ist ein deutscher Text.
29244 Dies ist ein deutscher Text.
29250 \begin_inset space \hfill{}
29254 \begin_inset Box Frameless
29264 height_special "totalheight"
29267 \begin_layout Plain Layout
29268 This is an English Text.
29269 This is an English Text.
29270 This is an English Text.
29271 This is an English Text.
29272 This is an English Text.
29273 This is an English Text.
29274 This is an English Text.
29275 This is an English Text.
29276 This is an English Text.
29277 This is an English Text.
29278 This is an English Text.
29279 This is an English Text.
29280 This is an English Text.
29281 This is an English Text.
29282 This is an English Text.
29283 This is an English Text.
29287 \begin_layout Plain Layout
29288 This is an English footnote.
29293 This is an English Text.
29302 \begin_layout Standard
29303 \begin_inset VSpace bigskip
29306 The document-wide paragraph settings are ignored within minipages.
29307 That means that there will be no space between paragraphs in minipages
29308 although you set it to e.
29309 \begin_inset space \thinspace{}
29313 \begin_inset space \space{}
29320 in the document settings.
29323 \begin_layout Standard
29324 Minipages can also be used to set a background color for text parts, see
29326 \begin_inset space ~
29330 \begin_inset CommandInset ref
29332 reference "sub:Color-for-Paragraphs"
29339 \begin_layout Standard
29340 \begin_inset Note Greyedout
29343 \begin_layout Plain Layout
29348 You cannot have floats or margin notes inside minipages but minipages can
29349 be used inside tables, floats, and other boxes.
29357 \begin_layout Section
29359 \begin_inset CommandInset label
29361 name "sec:Parboxes"
29366 \begin_inset Index idx
29369 \begin_layout Plain Layout
29378 \begin_layout Standard
29379 Parboxes are very similar to minipages with the difference that they cannot
29383 \begin_layout Standard
29385 \begin_inset Box Frameless
29395 height_special "totalheight"
29398 \begin_layout Plain Layout
29399 This a text within a parbox.
29400 This a text within a parbox.
29403 \begin_layout Plain Layout
29404 This footnote won't appear:
29408 \begin_layout Plain Layout
29409 This footnote is inside a parbox and will therefore not appear.
29422 \begin_layout Section
29423 Boxes for Words and Characters
29424 \begin_inset Index idx
29427 \begin_layout Plain Layout
29428 Boxes ! for Characters
29436 \begin_layout Subsection
29437 Prevent Hyphenation
29438 \begin_inset CommandInset label
29440 name "sec:Prevent-Hyphenation"
29445 \begin_inset Index idx
29448 \begin_layout Plain Layout
29449 Boxes ! to Prevent Hyphenation
29457 \begin_layout Standard
29458 You can use the box type
29462 to prevent words or text from being hyphenated.
29463 \begin_inset Newline newline
29466 Here is an example text:
29469 \begin_layout Standard
29470 This line is an example to show how you can prevent the hyphenation of
29471 \begin_inset Quotes eld
29475 \begin_inset Quotes erd
29481 \begin_layout Standard
29482 To prevent the hyphenation of the word
29483 \begin_inset Quotes eld
29487 \begin_inset Quotes erd
29490 , put the word into a box, set the
29493 \begin_inset space ~
29503 \begin_inset space \thinspace{}
29509 \begin_layout Standard
29510 This is the result:
29513 \begin_layout Standard
29514 This line is an example to show how you can prevent the hyphenation of
29515 \begin_inset Box Frameless
29525 height_special "totalheight"
29528 \begin_layout Plain Layout
29529 \begin_inset Quotes eld
29533 \begin_inset Quotes erd
29544 \begin_layout Standard
29545 You can alternatively set the command
29546 \begin_inset Quotes eld
29556 \begin_inset Quotes grd
29559 as TeX-Code directly before the word:
29562 \begin_layout Standard
29563 This line is an example to show how you can prevent the hyphenation of
29564 \begin_inset Quotes eld
29571 \begin_layout Plain Layout
29581 \begin_inset Quotes erd
29587 \begin_layout Standard
29588 Of course the word now protrudes over the side margin.
29589 To avoid this, add via the menu
29591 Insert\SpecialChar \menuseparator
29593 \begin_inset space ~
29596 Formatting\SpecialChar \menuseparator
29598 \begin_inset space ~
29606 arg "newline-insert newline"
29609 ) a line break before the word:
29612 \begin_layout Standard
29613 This line is an example to show how you can prevent the hyphenation of
29614 \begin_inset Newline newline
29618 \begin_inset Box Frameless
29628 height_special "totalheight"
29631 \begin_layout Plain Layout
29632 \begin_inset Quotes eld
29636 \begin_inset Quotes erd
29647 \begin_layout Subsection
29649 \begin_inset CommandInset label
29651 name "sub:Vertical-Alignment"
29656 \begin_inset Index idx
29659 \begin_layout Plain Layout
29660 Boxes ! for Vertical Alignment
29666 \begin_inset Index idx
29669 \begin_layout Plain Layout
29678 \begin_layout Standard
29679 With the help of the command
29685 you can align words, characters or other boxes vertically relative to the
29693 is used with the following scheme:
29696 \begin_layout Standard
29701 raisebox{lift}[height][depth]{box content}
29704 \begin_layout Standard
29705 The lift can be a positive value to raise the box or a negative value to
29709 \begin_layout Standard
29710 To align for example the word
29711 \begin_inset Quotes eld
29715 \begin_inset Quotes erd
29718 so that the bottom of the
29719 \begin_inset Quotes eld
29723 \begin_inset Quotes erd
29727 \begin_inset Quotes eld
29731 \begin_inset Quotes erd
29734 is at the baseline, insert the command
29737 \begin_layout Standard
29747 \begin_layout Standard
29748 in TeX-Code before the word.
29749 After the word insert a closing brace
29750 \begin_inset Quotes eld
29758 \begin_inset Quotes erd
29762 \begin_inset Newline newline
29765 This is the result:
29768 \begin_layout Standard
29769 This is a text line with the word
29773 \begin_layout Plain Layout
29785 \begin_inset Quotes eld
29789 \begin_inset Quotes erd
29796 \begin_layout Plain Layout
29806 \begin_layout Standard
29807 \begin_inset VSpace bigskip
29810 When you raise or lower characters in a line, the line distance will be
29814 \begin_layout Standard
29815 This is a text line with the word
29819 \begin_layout Plain Layout
29831 \begin_inset Quotes eld
29835 \begin_inset Quotes erd
29842 \begin_layout Plain Layout
29850 \begin_inset Newline newline
29853 This is a text line with the word
29857 \begin_layout Plain Layout
29867 \begin_inset Quotes eld
29871 \begin_inset Quotes erd
29878 \begin_layout Plain Layout
29888 \begin_layout Standard
29889 If you want to prevent this for a certain reason, set the box height to
29894 \begin_layout Standard
29904 \begin_layout Standard
29905 This is a text line with the word
29909 \begin_layout Plain Layout
29921 \begin_inset Quotes eld
29925 \begin_inset Quotes erd
29932 \begin_layout Plain Layout
29940 \begin_inset Newline newline
29943 This is a text line with the word
29947 \begin_layout Plain Layout
29951 raisebox{0.5cm}[0pt]{
29957 \begin_inset Quotes eld
29961 \begin_inset Quotes erd
29968 \begin_layout Plain Layout
29978 \begin_layout Section
29980 \begin_inset CommandInset label
29982 name "sec:Colored-Boxes"
29987 \begin_inset Index idx
29990 \begin_layout Plain Layout
29999 \begin_layout Subsection
30001 \begin_inset Index idx
30004 \begin_layout Plain Layout
30013 \begin_layout Standard
30014 To color the background of text the text must be put into a so called
30015 \begin_inset Quotes eld
30019 \begin_inset Quotes erd
30023 This requires that the LaTeX-package
30028 \begin_inset Index idx
30031 \begin_layout Plain Layout
30032 LaTeX-packages ! color
30037 is loaded in the document preamble with the command
30040 \begin_layout Standard
30045 @ifundefined{textcolor}
30046 \begin_inset Newline newline
30050 \begin_inset Phantom HPhantom
30053 \begin_layout Plain Layout
30056 \begin_inset space ~
30066 usepackage{color}}{}
30069 \begin_layout Standard
30074 will be loaded automatically by LyX when you color text.
30078 \begin_layout Plain Layout
30079 To avoid it being loaded twice the command
30093 \begin_layout Standard
30094 \begin_inset VSpace medskip
30097 Colorboxes are created with the command
30104 This will be used with the following scheme:
30107 \begin_layout Standard
30112 colorbox{color}{box content}
30115 \begin_layout Standard
30116 The box content can also be a box and colorboxes can also be within other
30120 \begin_layout Standard
30121 The following colors are predefined:
30122 \begin_inset Newline newline
30161 \begin_inset Newline newline
30164 You can also define your own color as described in section
30165 \begin_inset space ~
30169 \begin_inset CommandInset ref
30171 reference "sec:Colored-Tables"
30178 \begin_layout Standard
30180 \begin_inset space \thinspace{}
30184 \begin_inset space \space{}
30187 a red background for a word, insert the command
30190 \begin_layout Standard
30198 \begin_layout Standard
30199 before the word in TeX-Code.
30200 After the word insert a closing brace
30201 \begin_inset Quotes eld
30209 \begin_inset Quotes erd
30213 \begin_inset Newline newline
30216 This is the result:
30219 \begin_layout Standard
30220 This is a line where the word
30224 \begin_layout Plain Layout
30234 \begin_inset Quotes eld
30238 \begin_inset Quotes erd
30245 \begin_layout Plain Layout
30252 has a red background.
30255 \begin_layout Standard
30256 \begin_inset VSpace bigskip
30259 If you would like the box frame in a different color, you can use the command
30266 with the following scheme:
30269 \begin_layout Standard
30274 fcolorbox{frame color}{box color}{box content}
30277 \begin_layout Standard
30291 The frame thickness and the space between the frame and the box content
30292 can be adjusted with the lengths
30304 , respectively, as described in section
30305 \begin_inset space ~
30309 \begin_inset CommandInset ref
30311 reference "sec:Decoration"
30318 \begin_layout Standard
30319 For the following example the command
30322 \begin_layout Standard
30327 fcolorbox{cyan}{magenta}{
30330 \begin_layout Standard
30334 \begin_layout Standard
30335 Here is an example where the frame line thickness was set to 1
30336 \begin_inset space \thinspace{}
30340 \begin_inset Newline newline
30347 \begin_layout Plain Layout
30362 \begin_layout Plain Layout
30366 fcolorbox{cyan}{magenta}{
30371 This is text within a colored, framed box.
30375 \begin_layout Plain Layout
30385 \begin_layout Standard
30386 \begin_inset VSpace bigskip
30389 Of course you can also have colored text inside a colorbox:
30390 \begin_inset Newline newline
30397 \begin_layout Plain Layout
30401 fcolorbox{cyan}{magenta}{
30408 This is colored text within a colored, framed box.
30414 \begin_layout Plain Layout
30425 \begin_layout Plain Layout
30439 \begin_layout Standard
30442 \begin_inset VSpace medskip
30448 \begin_layout Standard
30449 \begin_inset Note Greyedout
30452 \begin_layout Plain Layout
30457 Text in colorboxes cannot have line breaks.
30458 To color multiple text lines or paragraphs, use a box inside a colorbox
30459 as described in the following.
30467 \begin_layout Subsection
30468 Color for Paragraphs
30469 \begin_inset CommandInset label
30471 name "sub:Color-for-Paragraphs"
30476 \begin_inset Index idx
30479 \begin_layout Plain Layout
30480 Color ! for Paragraphs
30488 \begin_layout Standard
30489 To set the background color for more than one text line, put the text into
30491 Before the minipage insert the
30500 \begin_layout Standard
30508 \begin_layout Standard
30510 After the minipage insert a closing brace
30511 \begin_inset Quotes eld
30519 \begin_inset Quotes erd
30525 \begin_layout Standard
30529 \begin_layout Plain Layout
30533 colorbox{lightgrey}{
30539 \begin_inset Box Frameless
30549 height_special "totalheight"
30552 \begin_layout Plain Layout
30553 This is text with background color.
30554 This is text with background color.
30557 \begin_layout Plain Layout
30558 \begin_inset VSpace defskip
30561 The text can have footnotes
30565 \begin_layout Plain Layout
30566 Another example footnote
30571 and can include tables and figures.
30574 \begin_layout Plain Layout
30576 \begin_inset Tabular
30577 <lyxtabular version="3" rows="3" columns="3">
30578 <features tabularvalignment="middle">
30579 <column alignment="center" valignment="top" width="0">
30580 <column alignment="center" valignment="top" width="0">
30581 <column alignment="center" valignment="top" width="0">
30583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30586 \begin_layout Plain Layout
30592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30595 \begin_layout Plain Layout
30601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30604 \begin_layout Plain Layout
30612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30615 \begin_layout Plain Layout
30621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30624 \begin_layout Plain Layout
30626 \begin_inset Quotes erd
30634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30637 \begin_layout Plain Layout
30645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30648 \begin_layout Plain Layout
30654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30657 \begin_layout Plain Layout
30663 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30666 \begin_layout Plain Layout
30686 \begin_layout Plain Layout
30696 \begin_layout Section
30697 Rotated and Scaled Boxes
30700 \begin_layout Standard
30701 To use the commands described in this section, the LaTeX-package
30706 \begin_inset Index idx
30709 \begin_layout Plain Layout
30710 LaTeX-packages ! graphicx
30715 needs to be loaded in the document preamble with the command
30718 \begin_layout Standard
30723 @ifundefined{rotatebox}
30724 \begin_inset Newline newline
30728 \begin_inset Phantom HPhantom
30731 \begin_layout Plain Layout
30734 \begin_inset space ~
30744 usepackage{graphicx}}{}
30747 \begin_layout Standard
30748 \begin_inset Note Greyedout
30751 \begin_layout Plain Layout
30756 Some DVI-viewers can't display rotated or scaled material.
30764 \begin_layout Standard
30765 \begin_inset Note Greyedout
30768 \begin_layout Plain Layout
30773 Floats mustn't be inside a rotated or scaled box.
30781 \begin_layout Subsection
30783 \begin_inset Index idx
30786 \begin_layout Plain Layout
30793 \begin_inset Index idx
30796 \begin_layout Plain Layout
30803 \begin_inset Index idx
30806 \begin_layout Plain Layout
30813 \begin_inset Index idx
30816 \begin_layout Plain Layout
30817 Table Customization ! Rotating
30825 \begin_layout Standard
30826 To rotate material, you can put it into a rotated box.
30827 Such a box is created using the command
30833 in TeX-Code with the following scheme:
30836 \begin_layout Standard
30841 rotatebox[rotation origin]{rotation angle}{box content}
30844 \begin_layout Standard
30845 The rotation origin is specified in the form
30850 The following positions are possible:
30870 (top), along with meaningful combinations of the four base positions.
30875 means that the rotation origin is at the top left corner of the box.
30876 When no rotation origin is specified, the position
30881 The rotation angle is a number that can be negative that specifies the
30883 The rotation direction is counterclockwise.
30886 \begin_layout Standard
30887 In the following example the command
30891 rotatebox[origin=c]{60}{
30893 was inserted as TeX-Code before the text
30894 \begin_inset Quotes eld
30898 \begin_inset Quotes erd
30901 ; after the text the box was closed by a closing brace
30908 \begin_layout Standard
30913 \begin_layout Plain Layout
30917 rotatebox[origin=c]{60}{
30926 \begin_layout Plain Layout
30936 \begin_layout Standard
30937 The box content can also be another box or an inline formula:
30940 \begin_layout Standard
30945 \begin_layout Plain Layout
30949 rotatebox[origin=r]{-60}{
30955 \begin_inset Box Doublebox
30965 height_special "totalheight"
30968 \begin_layout Plain Layout
30978 \begin_layout Plain Layout
30989 \begin_layout Plain Layout
30993 rotatebox[origin=lb]{60}{
30999 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31006 \begin_layout Plain Layout
31016 \begin_layout Standard
31017 or an image or table:
31020 \begin_layout Standard
31025 \begin_layout Plain Layout
31029 rotatebox[origin=lb]{90}{
31035 \begin_inset Graphics
31036 filename clipart/platypus.eps
31046 \begin_layout Plain Layout
31053 with a rotated image
31057 \begin_layout Plain Layout
31061 rotatebox[origin=l]{-90}{
31067 \begin_inset Tabular
31068 <lyxtabular version="3" rows="2" columns="2">
31069 <features tabularvalignment="middle">
31070 <column alignment="center" valignment="top" width="0">
31071 <column alignment="center" valignment="top" width="0">
31073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31076 \begin_layout Plain Layout
31082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31085 \begin_layout Plain Layout
31093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31096 \begin_layout Plain Layout
31102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31105 \begin_layout Plain Layout
31120 \begin_layout Plain Layout
31130 \begin_layout Subsection
31132 \begin_inset Index idx
31135 \begin_layout Plain Layout
31142 \begin_inset Index idx
31145 \begin_layout Plain Layout
31152 \begin_inset Index idx
31155 \begin_layout Plain Layout
31162 \begin_inset Index idx
31165 \begin_layout Plain Layout
31166 Table Customization ! Scaling
31174 \begin_layout Standard
31175 To scale material the commands
31187 can be used as TeX-Code.
31190 \begin_layout Standard
31197 is used with the following scheme:
31200 \begin_layout Standard
31205 scalebox{horizontal}[vertical]{box content}
31208 \begin_layout Standard
31209 Horizontal and vertical are the corresponding scaling factors.
31210 If no vertical scaling factor is given, the horizontal factor will also
31211 be used as the vertical one.
31214 \begin_layout Standard
31221 creates for example a double size
31225 \begin_layout Plain Layout
31238 \begin_layout Plain Layout
31245 , compared with the document text size.
31248 \begin_layout Standard
31253 scalebox{2}[1]{Hello}
31255 on the other hand distorts the
31259 \begin_layout Plain Layout
31272 \begin_layout Plain Layout
31282 \begin_layout Standard
31283 If the scaling factor is negative, the box content will be mirrored.
31284 Therefore the command
31288 scalebox{-1}[1]{Hello}
31290 can be used to create mirror writing:
31294 \begin_layout Plain Layout
31307 \begin_layout Plain Layout
31317 \begin_layout Standard
31322 scalebox{1}[-1]{Hello}
31328 \begin_layout Plain Layout
31341 \begin_layout Plain Layout
31351 \begin_layout Standard
31356 scalebox{-1}[1]{box content}
31358 there exists the command
31359 \begin_inset Newline newline
31366 reflectbox{box content}
31371 \begin_layout Standard
31372 \begin_inset VSpace bigskip
31381 is used to scale the box to a defined width and height.
31382 The command scheme is:
31385 \begin_layout Standard
31390 resizebox{width}{height}{box content}
31393 \begin_layout Standard
31394 If one of the two command arguments given is an exclamation mark
31398 , the size is set so that the aspect ratio of the box content is kept.
31401 \begin_layout Standard
31406 resizebox{2cm}{1cm}{Hello}
31412 \begin_layout Plain Layout
31416 resizebox{2cm}{1cm}{
31425 \begin_layout Plain Layout
31433 \begin_inset Newline newline
31440 resizebox{2cm}{!}{Hello}
31446 \begin_layout Plain Layout
31459 \begin_layout Plain Layout
31469 \begin_layout Standard
31470 \begin_inset VSpace bigskip
31474 \begin_inset Note Greyedout
31477 \begin_layout Plain Layout
31494 are set to zero, no LaTeX-errors occur when exporting the document but
31495 the exported files can not or only partly be displayed.
31503 \begin_layout Standard
31504 \begin_inset VSpace bigskip
31510 \begin_layout Standard
31511 The boxes can be combined in any order.
31513 \begin_inset space \thinspace{}
31517 \begin_inset space \space{}
31521 \begin_inset Newline newline
31528 rotatebox[origin=c]{-45}{
31532 reflectbox{Hello}}}
31533 \begin_inset Newline newline
31541 \begin_layout Standard
31546 \begin_layout Plain Layout
31550 rotatebox[origin=c]{-45}{
31563 \begin_layout Plain Layout
31573 \begin_layout Standard
31575 Images, tables, and inline formulas are allowed as box content:
31578 \begin_layout Standard
31583 \begin_layout Plain Layout
31587 rotatebox[origin=c]{-30}{
31597 \begin_inset Graphics
31598 filename clipart/platypus.eps
31608 \begin_layout Plain Layout
31619 \begin_layout Plain Layout
31623 rotatebox[origin=c]{-45}{
31633 \begin_inset Tabular
31634 <lyxtabular version="3" rows="2" columns="2">
31635 <features tabularvalignment="middle">
31636 <column alignment="center" valignment="top" width="0">
31637 <column alignment="center" valignment="top" width="0">
31639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31642 \begin_layout Plain Layout
31648 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31651 \begin_layout Plain Layout
31659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31662 \begin_layout Plain Layout
31668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31671 \begin_layout Plain Layout
31686 \begin_layout Plain Layout
31697 \begin_layout Plain Layout
31701 rotatebox[origin=c]{-45}{
31711 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31718 \begin_layout Plain Layout
31728 \begin_layout Standard
31729 When the global formula style
31733 is used in the document
31737 \begin_layout Plain Layout
31739 \begin_inset Quotes eld
31743 \begin_inset Quotes erd
31746 is added to the document class options.
31751 , display style formulas can also be scaled.
31754 \begin_layout Chapter
31755 External Document Parts
31756 \begin_inset Index idx
31759 \begin_layout Plain Layout
31760 External Document Parts
31768 \begin_layout Standard
31771 Insert\SpecialChar \menuseparator
31774 you can insert external material to your document.
31778 \begin_layout Description
31780 \begin_inset space ~
31783 Document Another LyX document; its content is directly inserted to your
31787 \begin_layout Description
31789 \begin_inset space ~
31792 Text A text document; each line is inserted in your document as a separate
31796 \begin_layout Description
31798 \begin_inset space ~
31802 \begin_inset space ~
31806 \begin_inset space ~
31809 Lines A text document; text lines are inserted in your document continuously
31810 but an empty text line creates a new paragraph.
31813 \begin_layout Description
31815 \begin_inset space ~
31818 Material Files in various formats.
31821 \begin_layout Description
31823 \begin_inset space ~
31826 Document LyX or LaTeX-documents.
31829 \begin_layout Section
31831 \begin_inset Index idx
31834 \begin_layout Plain Layout
31835 External Document Parts ! External Material
31843 \begin_layout Standard
31844 The external material feature allows you to insert files in to your document
31845 without converting them to a format that can be read by the document output
31847 LyX takes care of the necessary conversions.
31848 This is similar to images that can be inserted in various image formats
31850 When you have enabled Instant Preview in LyX's preferences under
31853 \begin_inset space ~
31857 \begin_inset space ~
31860 feel\SpecialChar \menuseparator
31863 , the external material types Dia and Xfig are directly shown in LyX.
31866 \begin_layout Standard
31867 External material can be inserted via the
31871 dialog that is accessible with the menu
31873 Insert\SpecialChar \menuseparator
31874 File\SpecialChar \menuseparator
31876 \begin_inset space ~
31882 Currently the following file types (
31889 \begin_layout Description
31890 ChessDiagram This template supports chess position diagrams made with the
31894 \begin_inset CommandInset href
31897 target "http://en.wikipedia.org/wiki/XBoard"
31906 \begin_layout Description
31907 Date This inserts the date in the form
31912 This is a date inserted as external material:
31913 \begin_inset External
31920 \begin_inset space ~
31924 \begin_inset Note Note
31927 \begin_layout Plain Layout
31928 Remove the protected space when bug 4398 is fixed!
31934 \begin_inset Newline newline
31937 The date is not shown within LyX, only in the output.
31938 There are two other methods of inserting a date: Via menu
31940 Insert\SpecialChar \menuseparator
31943 and with the LaTeX command
31950 The different methods are compared in Table
31951 \begin_inset space ~
31955 \begin_inset CommandInset ref
31957 reference "tab:Comparison-of-the"
31964 \begin_layout Description
31965 Dia This template supports diagrams created with the program
31968 \begin_inset CommandInset href
31971 target "http://en.wikipedia.org/wiki/Dia_(software)"
31980 \begin_layout Description
31981 LilyPond This template is used for music notation typeset with the program
31982 \begin_inset Newline linebreak
31988 \begin_inset CommandInset href
31991 target "http://en.wikipedia.org/wiki/LilyPond"
32000 \begin_layout Description
32001 PDFPages With this template you can insert PDF documents to your document.
32002 To insert certain or all pages of a PDF, use the
32012 LaTeX and LyX options
32014 tab according to the template description in the dialog.
32019 option is given, only the first page of the PDF will be inserted.
32022 \begin_layout Description
32023 RasterImage This can be used for bitmap images.
32024 Nearly all popular image formats are supported.
32025 The image can be treated in the
32029 dialog like the images that are usually included via the
32033 dialog as described in section
32034 \begin_inset space ~
32038 \begin_inset CommandInset ref
32040 reference "sec:Graphics-Dialog"
32045 The difference is that only raster images are allowed; that means that
32046 PDF and EPS-images are not supported.
32049 \begin_layout Description
32050 XFig This template supports images created with the program
32053 \begin_inset CommandInset href
32056 target "http://en.wikipedia.org/wiki/Xfig"
32065 \begin_layout Standard
32066 \begin_inset Float table
32072 \begin_layout Plain Layout
32073 \begin_inset Caption
32075 \begin_layout Plain Layout
32076 \begin_inset CommandInset label
32078 name "tab:Comparison-of-the"
32082 Comparison of the date input methods.
32090 \begin_layout Plain Layout
32092 \begin_inset Tabular
32093 <lyxtabular version="3" rows="4" columns="4">
32094 <features tabularvalignment="middle">
32095 <column alignment="center" valignment="top" width="0">
32096 <column alignment="center" valignment="top" width="0">
32097 <column alignment="center" valignment="top" width="0">
32098 <column alignment="center" valignment="top" width="0">
32100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32103 \begin_layout Plain Layout
32109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32112 \begin_layout Plain Layout
32115 External Material\SpecialChar \menuseparator
32121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32124 \begin_layout Plain Layout
32127 Insert\SpecialChar \menuseparator
32133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32136 \begin_layout Plain Layout
32148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32151 \begin_layout Plain Layout
32157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32160 \begin_layout Plain Layout
32166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32169 \begin_layout Plain Layout
32175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32178 \begin_layout Plain Layout
32179 as TeX-Code inset box
32186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32189 \begin_layout Plain Layout
32195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32198 \begin_layout Plain Layout
32204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32207 \begin_layout Plain Layout
32213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32216 \begin_layout Plain Layout
32224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32227 \begin_layout Plain Layout
32233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32236 \begin_layout Plain Layout
32242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32245 \begin_layout Plain Layout
32251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32254 \begin_layout Plain Layout
32273 \begin_layout Standard
32274 When you use the option
32286 dialog, only the path to the inserted file is shown in the output.
32287 \begin_inset Newline newline
32290 External material is displayed in LyX either as a box like this:
32291 \begin_inset Graphics
32292 filename clipart/ExternalMaterialQt4.png
32294 scaleBeforeRotation
32298 or as image, depending on the option
32304 LaTeX and LyX options
32309 \begin_layout Standard
32316 manual explains how you can define your own templates.
32319 \begin_layout Section
32321 \begin_inset CommandInset label
32323 name "sec:Child-Documents"
32328 \begin_inset Index idx
32331 \begin_layout Plain Layout
32332 External Document Parts ! Child Documents
32338 \begin_inset Index idx
32341 \begin_layout Plain Layout
32350 \begin_layout Standard
32351 Child documents are used when you have a long document consisting of several
32352 larger parts or sections.
32353 For maintenance it is often useful and sometimes even required to split
32354 the document in several files that can be revised separately.
32355 The different documents are then the so called child documents and a master
32356 document connects them to print the full document or parts of it.
32357 A child documents inherits elements of its master, for example the LaTeX
32358 preamble, the bibliography, and labels for cross-references.
32361 \begin_layout Standard
32362 To be able to work on child documents without the need to open their master,
32363 specify in the child document the master in the menu
32365 Document\SpecialChar \menuseparator
32366 Settings\SpecialChar \menuseparator
32368 \begin_inset space ~
32374 This master document will then be used in the background by LyX when you
32375 edit the child document.
32378 \begin_layout Standard
32379 Included documents are displayed in LyX as a box like this:
32380 \begin_inset Graphics
32381 filename clipart/ChildDocumentQt4.png
32383 scaleBeforeRotation
32387 To include child documents in a master document use the menu
32389 Insert\SpecialChar \menuseparator
32390 File\SpecialChar \menuseparator
32392 \begin_inset space ~
32398 A dialog pops up where you can choose between four include methods:
32401 \begin_layout Description
32402 Include You can include LyX and LaTeX-documents.
32411 dialog, the included documents will be opened in LyX in a new file tab
32412 so that you can modify them.
32413 \begin_inset Newline newline
32419 \begin_layout Standard
32420 Here is a child document inserted using
32425 \begin_inset CommandInset include
32426 LatexCommand include
32427 filename "DummyDocument1.lyx"
32434 \begin_layout Standard
32435 The section numbering includes the sections of the included files in the
32436 order they are inserted in the master document.
32437 The included example document has for example a subsection that is numbered
32438 as a subsection of this section.
32439 Labels of included documents can be referenced: Subsection
32440 \begin_inset space ~
32444 \begin_inset CommandInset ref
32446 reference "sub:External-Subsection-1"
32453 \begin_layout Standard
32454 The preamble of the child document is ignored; only the preamble of the
32455 master document is used.
32456 Branches in child documents will be ignored by the master document when
32457 the master document does not have a branch with the same name.
32458 Included documents are inserted starting on a new page and ending with
32462 \begin_layout Standard
32463 If you are only working on a certain chapter of a large document and want
32464 to save compiling time, you can put each included file into a branch.
32468 \begin_layout Plain Layout
32469 Branches are described in section
32482 By enabling/disabling branches you can decide what included files will
32483 appear in the output.
32486 \begin_layout Standard
32487 \begin_inset Note Greyedout
32490 \begin_layout Plain Layout
32495 Due to a bug in LyX the LaTeX command
32501 can currently not be used as an alternative to decide what files should
32510 \begin_layout Standard
32511 \begin_inset Note Greyedout
32514 \begin_layout Plain Layout
32519 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32520 w the document in case the child document uses another document class than
32521 the master document as this will lead to unexpected outputs.
32529 \begin_layout Description
32530 Input This method is very similar to the Include method.
32531 The differences are:
32535 \begin_layout Itemize
32536 Input files don't start with a new page and don't end with a page break.
32539 \begin_layout Itemize
32540 Input files can be previewed in LyX when
32543 \begin_inset space ~
32548 is enabled in LyX's preferences under
32551 \begin_inset space ~
32555 \begin_inset space ~
32558 feel\SpecialChar \menuseparator
32564 \begin_layout Itemize
32575 \begin_layout Standard
32576 Here is a child document inserted using
32581 \begin_inset CommandInset include
32583 filename "DummyDocument2.lyx"
32590 \begin_layout Description
32591 Verbatim With this method every text file can be included.
32592 The file is shown in the output with its source code; no command used in
32593 the text is invoked.
32594 You can use the option
32596 Mark spaces in output
32598 that displays the character
32599 \begin_inset Quotes eld
32606 \begin_layout Plain Layout
32616 \begin_inset Quotes erd
32619 for every space character in the source code.
32620 The difference from the method via the menu
32622 Insert\SpecialChar \menuseparator
32623 File\SpecialChar \menuseparator
32625 \begin_inset space ~
32630 is that the document content is not shown in LyX.
32633 \begin_layout Standard
32634 Here is a child document inserted as Verbatim:
32635 \begin_inset CommandInset include
32636 LatexCommand verbatiminput
32637 filename "DummyTextDocument.txt"
32642 \begin_inset VSpace bigskip
32645 Here is a child document inserted as Verbatim using the
32647 Mark spaces in output
32650 \begin_inset CommandInset include
32651 LatexCommand verbatiminput*
32652 filename "DummyTextDocument.txt"
32659 \begin_layout Standard
32660 \begin_inset VSpace bigskip
32666 \begin_layout Standard
32667 \begin_inset Note Greyedout
32670 \begin_layout Plain Layout
32675 As you can see in the examples above, the text of the documents included
32680 is not broken at the end of the document lines.
32688 \begin_layout Description
32689 Listings This type is described in chapter
32690 \begin_inset space ~
32694 \begin_inset CommandInset ref
32696 reference "cha:Program-Code-Listings"
32703 \begin_layout Standard
32704 \begin_inset Note Greyedout
32707 \begin_layout Plain Layout
32712 Including the same document twice in a document using different methods
32713 could cause LaTeX-problems.
32721 \begin_layout Chapter
32722 Program Code Listings
32723 \begin_inset CommandInset label
32725 name "cha:Program-Code-Listings"
32730 \begin_inset Index idx
32733 \begin_layout Plain Layout
32740 \begin_inset Index idx
32743 \begin_layout Plain Layout
32750 \begin_inset Index idx
32753 \begin_layout Plain Layout
32762 \begin_layout Standard
32763 To include and typeset program code you can use the
32767 inset that can be inserted via the menu
32769 Insert\SpecialChar \menuseparator
32778 \begin_inset Index idx
32781 \begin_layout Plain Layout
32782 LaTeX-packages ! listings
32787 provides a powerful and flexible way to insert program source code into
32791 \begin_layout Standard
32792 Right-clicking on a listings inset opens the context menu containing where
32793 you can set the listings format.
32796 \begin_layout Standard
32797 By default, a listing starts a new paragraph in the output.
32798 The placement option
32801 \begin_inset space ~
32806 prints the listing inline like this:
32807 \begin_inset listings
32808 lstparams "language={C++}"
32812 \begin_layout Plain Layout
32820 \begin_inset Newline newline
32827 creates a listings float where you can specify the placement options
32828 \begin_inset Quotes eld
32836 \begin_inset Quotes erd
32840 \begin_inset Quotes eld
32848 \begin_inset Quotes erd
32852 \begin_inset Quotes eld
32860 \begin_inset Quotes erd
32864 \begin_inset Quotes eld
32872 \begin_inset Quotes erd
32875 corresponding to the float placement options described in section
32876 \begin_inset space ~
32880 \begin_inset CommandInset ref
32882 reference "sec:Float-Placement"
32887 The placement options can be mixed and are inserted without any separation,
32889 \begin_inset space \thinspace{}
32893 \begin_inset space \space{}
32897 \begin_inset Quotes eld
32905 \begin_inset Quotes erd
32910 \begin_inset Quotes eld
32914 \begin_inset Quotes erd
32917 has sometimes no effect, but you don't need to use the
32921 option in this case as also non-float listings can have captions and be
32925 \begin_layout Standard
32926 You can add captions to listings with the menu
32928 Insert\SpecialChar \menuseparator
32932 Listings can be referenced like floats: Listing
32933 \begin_inset space ~
32937 \begin_inset CommandInset ref
32939 reference "lst:Example-Listing"
32946 \begin_layout Standard
32947 \begin_inset listings
32948 lstparams "language=Python"
32952 \begin_layout Plain Layout
32954 \begin_inset Caption
32956 \begin_layout Plain Layout
32957 \begin_inset CommandInset label
32959 name "lst:Example-Listing"
32963 Example Listing float
32968 # Example listing float
32971 \begin_layout Plain Layout
32976 \begin_layout Plain Layout
32978 'this is a python function'
32981 \begin_layout Plain Layout
32991 \begin_layout Standard
32992 When you have set a programming language in the listings dialog, the keywords
32993 of this language will be recognized and specially typeset in the output.
32994 In the example listings the Python keyword
32995 \begin_inset Quotes eld
32999 \begin_inset Quotes erd
33002 is recognized and printed bold in the output.
33005 \begin_layout Standard
33006 \begin_inset Note Greyedout
33009 \begin_layout Plain Layout
33014 If you don't get bold keywords when using typewriter fonts, your
33018 font probably doesn't provide a bold shape.
33019 In this case select a different one in the menu
33021 Document\SpecialChar \menuseparator
33022 Settings\SpecialChar \menuseparator
33034 provide bold shapes.)
33042 \begin_layout Standard
33046 \begin_inset space ~
33051 of the listings dialog you can specify the line numbering style.
33052 You can insert a number to specify which lines are numbered in the field
33059 \begin_inset space \thinspace{}
33063 \begin_inset space \space{}
33067 \begin_inset Quotes eld
33071 \begin_inset Quotes erd
33074 , only every 3rd line will be numbered.
33077 \begin_layout Standard
33078 You can furthermore specify a range of lines; only these will then appear
33082 Extended character table
33084 should be used when you use national characters like the German umlauts
33086 \begin_inset Newline newline
33089 Here is an example listing with left line numbering, step
33090 \begin_inset Quotes eld
33094 \begin_inset Quotes erd
33098 \begin_inset Quotes eld
33102 \begin_inset Quotes erd
33106 \begin_inset Quotes eld
33109 Extended character table
33110 \begin_inset Quotes erd
33114 \begin_inset Quotes eld
33118 \begin_inset space ~
33122 \begin_inset space ~
33126 \begin_inset Quotes erd
33130 \begin_inset space \thinspace{}
33134 \begin_inset space \thinspace{}
33140 \begin_layout Standard
33141 \begin_inset listings
33142 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33146 \begin_layout Plain Layout
33151 \begin_layout Plain Layout
33153 'this is a python function'
33156 \begin_layout Plain Layout
33161 \begin_layout Plain Layout
33166 \begin_layout Plain Layout
33168 'This is a German word: Tschüß'
33171 \begin_layout Plain Layout
33176 \begin_layout Plain Layout
33181 \begin_layout Plain Layout
33183 'this is a python function'
33186 \begin_layout Plain Layout
33196 \begin_layout Standard
33197 When you have tabulators in your listing, you can specify the number of
33198 characters that are spanned by a tabulator in the field
33201 \begin_inset space ~
33209 \begin_layout Standard
33210 \begin_inset Note Greyedout
33213 \begin_layout Plain Layout
33218 Due to a bug in the
33222 package the line numbering is shifted by a line by every previous listing.
33223 That's the reason why the lines 2 and 5 are numbered in the above listing
33224 and not the lines 3 and 6.
33232 \begin_layout Standard
33233 \begin_inset VSpace bigskip
33239 \begin_layout Standard
33240 It is also possible to print lines from a file as listing.
33241 To do this, use the menu
33243 Insert\SpecialChar \menuseparator
33244 File\SpecialChar \menuseparator
33247 and choose the type
33255 \begin_layout Plain Layout
33256 The other child document types are described in section
33257 \begin_inset space ~
33261 \begin_inset CommandInset ref
33263 reference "sec:Child-Documents"
33272 In the child document dialog you can specify the listing parameters in
33274 To show a list of all available parameters, type in a question mark
33275 \begin_inset Quotes eld
33279 \begin_inset Quotes erd
33285 \begin_layout Standard
33286 To reference child document listings, write a label text into the corresponding
33287 field of the child document dialog.
33288 The label can then be referenced using the menu
33290 Insert\SpecialChar \menuseparator
33296 \begin_layout Standard
33298 \begin_inset space ~
33302 \begin_inset CommandInset ref
33304 reference "lst:file-listing"
33308 is an example for a listing of a file; there the lines 10
33309 \begin_inset space \thinspace{}
33313 \begin_inset space \thinspace{}
33316 15 of this LyX file are listed.
33319 \begin_layout Standard
33320 \begin_inset CommandInset include
33321 LatexCommand lstinputlisting
33322 filename "EmbeddedObjects.lyx"
33323 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33330 \begin_layout Standard
33331 \begin_inset VSpace bigskip
33337 \begin_layout Standard
33338 Inserting a formula into a listing can be done the following way:
33341 \begin_layout Enumerate
33342 Open the listings dialog and add
33343 \begin_inset Newline newline
33351 \begin_inset Newline newline
33354 to the field of the
33361 \begin_layout Enumerate
33362 Create a formula outside the listing
33365 \begin_layout Enumerate
33366 Copy the content of the formula (not the formula inset) to the clipboard
33376 \begin_layout Enumerate
33377 In the listing write
33378 \begin_inset Quotes eld
33386 \begin_inset Quotes erd
33389 and copy from the clipboard between the dollar-signs (shortcut
33398 \begin_layout Standard
33399 \begin_inset listings
33400 lstparams "language=Python,mathescape=true"
33404 \begin_layout Plain Layout
33406 \begin_inset Caption
33408 \begin_layout Plain Layout
33409 Example Listing float containing a formula
33414 # Example listing float
33417 \begin_layout Plain Layout
33422 \begin_layout Plain Layout
33435 \begin_layout Plain Layout
33445 \begin_layout Standard
33446 \begin_inset VSpace bigskip
33452 \begin_layout Standard
33453 Global listings settings can be set in the
33455 Document\SpecialChar \menuseparator
33456 Settings\SpecialChar \menuseparator
33460 To get there a list of available options, type in a question mark
33461 \begin_inset Quotes eld
33465 \begin_inset Quotes erd
33471 \begin_inset space ~
33479 \begin_layout Standard
33480 For more information about the
33484 package, we refer to its documentation
33485 \begin_inset CommandInset citation
33494 \begin_layout Standard
33495 \begin_inset Newpage newpage
33501 \begin_layout Chapter
33503 Units available in LyX
33504 \begin_inset Index idx
33507 \begin_layout Plain Layout
33514 \begin_inset CommandInset label
33516 name "cha:Units-available-in"
33523 \begin_layout Standard
33524 To understand the units described in this documentation, Table
33525 \begin_inset space ~
33529 \begin_inset CommandInset ref
33531 reference "tab:Units"
33535 explains all units available in LyX.
33538 \begin_layout Standard
33539 \begin_inset Float table
33545 \begin_layout Plain Layout
33546 \begin_inset Caption
33548 \begin_layout Plain Layout
33549 \begin_inset CommandInset label
33563 \begin_layout Plain Layout
33564 \begin_inset VSpace medskip
33570 \begin_layout Plain Layout
33572 \begin_inset Tabular
33573 <lyxtabular version="3" rows="20" columns="2">
33574 <features tabularvalignment="middle">
33575 <column alignment="center" valignment="top" width="0">
33576 <column alignment="center" valignment="top" width="0">
33578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33581 \begin_layout Plain Layout
33587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33590 \begin_layout Plain Layout
33598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33601 \begin_layout Plain Layout
33607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33610 \begin_layout Plain Layout
33618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33621 \begin_layout Plain Layout
33627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33630 \begin_layout Plain Layout
33638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33641 \begin_layout Plain Layout
33647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33650 \begin_layout Plain Layout
33658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33661 \begin_layout Plain Layout
33667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33670 \begin_layout Plain Layout
33672 \begin_inset space \thinspace{}
33676 \begin_inset space \thinspace{}
33686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33689 \begin_layout Plain Layout
33695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33698 \begin_layout Plain Layout
33700 \begin_inset space \thinspace{}
33704 \begin_inset space \thinspace{}
33714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33717 \begin_layout Plain Layout
33723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33726 \begin_layout Plain Layout
33727 scaled point (65536
33728 \begin_inset space \thinspace{}
33732 \begin_inset space \thinspace{}
33742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33745 \begin_layout Plain Layout
33751 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33754 \begin_layout Plain Layout
33756 \begin_inset space \thinspace{}
33760 \begin_inset space \thinspace{}
33770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33773 \begin_layout Plain Layout
33779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33782 \begin_layout Plain Layout
33784 \begin_inset space \thinspace{}
33788 \begin_inset Formula $\approx$
33792 \begin_inset space \thinspace{}
33802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33805 \begin_layout Plain Layout
33811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33814 \begin_layout Plain Layout
33816 \begin_inset space \thinspace{}
33820 \begin_inset space \thinspace{}
33830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33833 \begin_layout Plain Layout
33839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33842 \begin_layout Plain Layout
33843 % of original image width
33850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33853 \begin_layout Plain Layout
33859 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33862 \begin_layout Plain Layout
33870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33873 \begin_layout Plain Layout
33879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33882 \begin_layout Plain Layout
33890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33893 \begin_layout Plain Layout
33899 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33902 \begin_layout Plain Layout
33910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33913 \begin_layout Plain Layout
33919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33922 \begin_layout Plain Layout
33930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33933 \begin_layout Plain Layout
33939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33942 \begin_layout Plain Layout
33950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33953 \begin_layout Plain Layout
33959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33962 \begin_layout Plain Layout
33970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33973 \begin_layout Plain Layout
33979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33982 \begin_layout Plain Layout
33994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33997 \begin_layout Plain Layout
34003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34006 \begin_layout Plain Layout
34018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34021 \begin_layout Plain Layout
34027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34030 \begin_layout Plain Layout
34032 \begin_inset space \thinspace{}
34036 \begin_inset space \thinspace{}
34057 \begin_layout Chapter
34058 Output File Formats with Graphics
34059 \begin_inset CommandInset label
34061 name "cha:Output-File-Formats"
34068 \begin_layout Section
34070 \begin_inset Index idx
34073 \begin_layout Plain Layout
34080 \begin_inset Index idx
34083 \begin_layout Plain Layout
34088 \begin_layout Plain Layout
34099 \begin_layout Plain Layout
34114 \begin_layout Standard
34115 This file type has the extension
34116 \begin_inset Quotes eld
34124 \begin_inset Quotes erd
34129 \begin_inset Quotes eld
34133 \begin_inset Quotes erd
34136 (DVI), because it is completely portable; you can move them from one machine
34137 to another without needing to do any sort of conversion.
34138 At the time when this file-format was developed, this was no matter of
34140 DVIs are used for quick previews and as pre-stage for other output formats,
34144 \begin_layout Standard
34145 \begin_inset Note Greyedout
34148 \begin_layout Plain Layout
34153 DVI-files do not contain images; they will only be a linked.
34158 So don't forget this, if you move your
34162 file to another computer.
34163 This property can also slow down your computer when you view the DVI, because
34164 the DVI-viewer has to convert the image in the background to make it visible
34165 when you scroll in the DVI.
34166 So it is recommended that you use PDF for files with many images.
34169 \begin_layout Standard
34170 You can export your document to DVI by using the menu
34172 File\SpecialChar \menuseparator
34173 Export\SpecialChar \menuseparator
34177 You can view your document as DVI via the
34181 menu or by using the toolbar button
34182 \begin_inset Graphics
34183 filename ../images/buffer-view_dvi.png
34185 scaleBeforeRotation
34192 \begin_layout Section
34194 \begin_inset CommandInset label
34196 name "sec:PostScript"
34201 \begin_inset Index idx
34204 \begin_layout Plain Layout
34205 File Formats ! PostScript
34211 \begin_inset Index idx
34214 \begin_layout Plain Layout
34219 \begin_layout Plain Layout
34230 \begin_layout Plain Layout
34245 \begin_layout Standard
34246 This file type has the extension
34247 \begin_inset Quotes eld
34255 \begin_inset Quotes erd
34259 PostScript was developed by the company
34263 as a printer language.
34264 The file therefore contains commands that the printer uses to print the
34266 PostScript can be seen as a
34267 \begin_inset Quotes eld
34270 programming language
34271 \begin_inset Quotes erd
34274 ; you can calculate with it and draw diagrams and images
34278 \begin_layout Plain Layout
34279 If you are interested to learn more about this, have a look at the LaTeX-package
34285 \begin_inset CommandInset citation
34297 Due to this ability, the files are often bigger than PDFs.
34300 \begin_layout Standard
34301 PostScript can only contain images in the format
34302 \begin_inset Quotes eld
34305 Encapsulated PostScript
34306 \begin_inset Quotes erd
34309 (EPS, file extension
34310 \begin_inset Quotes eld
34318 \begin_inset Quotes erd
34322 As LyX allows you to use any known image format in your document, it has
34323 to convert images in the background to EPS.
34325 \begin_inset space ~
34329 \begin_inset space ~
34332 images in your document, LyX has to do 50
34333 \begin_inset space ~
34336 conversions whenever you view or export your document.
34337 This will slow down your work flow with LyX drastically.
34338 So if you plan to use PostScript, you can insert your images directly as
34339 EPS to avoid this problem.
34342 \begin_layout Standard
34343 You can export your document to PostScript using the menu
34345 File\SpecialChar \menuseparator
34346 Export\SpecialChar \menuseparator
34350 You can view your document as PostScript via the
34354 menu or by using the toolbar button
34355 \begin_inset Graphics
34356 filename ../images/buffer-view_ps.png
34358 scaleBeforeRotation
34365 \begin_layout Section
34367 \begin_inset Index idx
34370 \begin_layout Plain Layout
34377 \begin_inset Index idx
34380 \begin_layout Plain Layout
34389 \begin_layout Standard
34390 This file type has the extension
34391 \begin_inset Quotes eld
34399 \begin_inset Quotes erd
34404 \begin_inset Quotes eld
34407 Portable Document Format
34408 \begin_inset Quotes erd
34411 (PDF) was developed by
34415 as a derivative of PostScript.
34416 It is more compressed and it uses fewer commands than PostScript.
34418 \begin_inset Quotes eld
34422 \begin_inset Quotes erd
34425 implies, it can be processed at any computer system and the printed output
34426 looks exactly the same.
34429 \begin_layout Standard
34430 PDF can contain images in its own PDF format, in the format
34431 \begin_inset Quotes eld
34434 Joint Photographic Experts Group
34435 \begin_inset Quotes erd
34438 (JPG, file extension
34439 \begin_inset Quotes eld
34447 \begin_inset Quotes erd
34451 \begin_inset Quotes eld
34459 \begin_inset Quotes erd
34462 ), and in the format
34463 \begin_inset Quotes eld
34466 Portable Network Graphics
34467 \begin_inset Quotes erd
34470 (PNG, file extension
34471 \begin_inset Quotes eld
34479 \begin_inset Quotes erd
34483 Nevertheless you can use any other image format, because LyX converts them
34484 in the background to one of these formats.
34485 But as described in the section about PostScript, the image conversion
34486 will slow down your work flow.
34487 So it is recommended that you use images in one of the three mentioned
34491 \begin_layout Standard
34492 You can export your document to PDF via the menu
34494 File\SpecialChar \menuseparator
34497 in three different ways:
34500 \begin_layout Description
34502 \begin_inset space ~
34505 (ps2pdf) This uses the program
34509 that creates a PDF from a PostScript-version of your file.
34510 The PostScript-version is produced by the program
34514 which uses a DVI-version as intermediate step.
34515 So this export variant consists of three conversions.
34518 \begin_layout Description
34520 \begin_inset space ~
34523 (dvipdfm) This uses the program
34527 that converts your file in the background to DVI and in a second step to
34531 \begin_layout Description
34533 \begin_inset space ~
34536 (pdflatex) This uses the program
34540 that converts your file directly to PDF.
34543 \begin_layout Standard
34544 It is recommended that you use
34547 \begin_inset space ~
34556 supports all features of actual PDF-versions, is quick and works stable.
34561 is not under development and therefore a bit outdated.
34564 \begin_layout Standard
34565 You can view your document as PDF via the
34569 menu or by using the toolbar button
34570 \begin_inset Graphics
34571 filename ../images/buffer-view_pdf2.png
34573 scaleBeforeRotation
34584 \begin_inset space ~
34592 \begin_layout Chapter
34593 Explanation of Equation
34594 \begin_inset space ~
34598 \begin_inset CommandInset ref
34605 \begin_inset CommandInset label
34607 name "cha:Explanation-of-Equation"
34614 \begin_layout Standard
34615 We can calculate the total width of
34620 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34626 \begin_layout Standard
34627 \begin_inset Formula \begin{equation}
34628 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}
34633 \begin_inset Formula $W_{g\, n}$
34636 is the given width of all cells,
34642 is the LaTeX-length between the cell text and the cell border (its default
34644 \begin_inset space \thinspace{}
34654 is the thickness of the cell border line, the default is 0.4
34655 \begin_inset space \thinspace{}
34661 \begin_layout Standard
34663 \begin_inset space ~
34667 \begin_inset CommandInset ref
34669 reference "eq:Wtot_n"
34673 , the total width of a multicolumn
34674 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34680 \begin_layout Standard
34681 \begin_inset Formula \begin{equation}
34682 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34689 \begin_layout Standard
34690 By setting equation
34691 \begin_inset space ~
34695 \begin_inset CommandInset ref
34697 reference "eq:Wtot_n"
34702 \begin_inset CommandInset ref
34704 reference "eq:Wtot_mult"
34708 equal we can calculate the needed given width
34709 \begin_inset Formula $W_{g\, n}$
34716 columns are spanned, so that each column has a total width of
34717 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34723 \begin_layout Standard
34724 \begin_inset Formula \begin{equation}
34725 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34732 \begin_layout Bibliography
34733 \labelwidthstring Bibliography
34734 \begin_inset CommandInset bibitem
34735 LatexCommand bibitem
34736 key "latexcompanion"
34740 Frank Mittelbach and Michel Goossens:
34742 The LaTeX Companion Second Edition.
34745 Addison-Wesley, 2004
34748 \begin_layout Bibliography
34749 \labelwidthstring Bibliography
34750 \begin_inset CommandInset bibitem
34751 LatexCommand bibitem
34756 Helmut Kopka and Patrick W.
34759 A Guide to LaTeX Fourth Edition.
34762 Addison-Wesley, 2003
34765 \begin_layout Bibliography
34766 \labelwidthstring Bibliography
34767 \begin_inset CommandInset bibitem
34768 LatexCommand bibitem
34775 LaTeX: A Document Preparation System.
34778 Addison-Wesley, second edition, 1994
34781 \begin_layout Bibliography
34782 \labelwidthstring Bibliography
34783 \begin_inset CommandInset bibitem
34784 LatexCommand bibitem
34789 Documentation of the LaTeX-package
34792 \begin_inset CommandInset href
34795 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34802 \begin_inset Index idx
34805 \begin_layout Plain Layout
34806 LaTeX-packages ! booktabs
34814 \begin_layout Bibliography
34815 \labelwidthstring Bibliography
34816 \begin_inset CommandInset bibitem
34817 LatexCommand bibitem
34822 Documentation of the LaTeX-package
34825 \begin_inset CommandInset href
34828 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34835 \begin_inset Index idx
34838 \begin_layout Plain Layout
34839 LaTeX-packages ! caption
34847 \begin_layout Bibliography
34848 \labelwidthstring Bibliography
34849 \begin_inset CommandInset bibitem
34850 LatexCommand bibitem
34855 Documentation of the LaTeX-package
34858 \begin_inset CommandInset href
34861 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34868 \begin_inset Index idx
34871 \begin_layout Plain Layout
34872 LaTeX-packages ! endfloat
34880 \begin_layout Bibliography
34881 \labelwidthstring Bibliography
34882 \begin_inset CommandInset bibitem
34883 LatexCommand bibitem
34888 Documentation of the LaTeX-package
34891 \begin_inset CommandInset href
34894 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34901 \begin_inset Index idx
34904 \begin_layout Plain Layout
34905 LaTeX-packages ! wrapfig
34909 \begin_layout Plain Layout
34926 \begin_layout Bibliography
34927 \labelwidthstring Bibliography
34928 \begin_inset CommandInset bibitem
34929 LatexCommand bibitem
34934 Documentation of the LaTeX-package
34937 \begin_inset CommandInset href
34940 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34947 \begin_inset Index idx
34950 \begin_layout Plain Layout
34951 LaTeX-packages ! footmisc
34959 \begin_layout Bibliography
34960 \labelwidthstring Bibliography
34961 \begin_inset CommandInset bibitem
34962 LatexCommand bibitem
34967 Documentation of the LaTeX-package
34970 \begin_inset CommandInset href
34973 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34980 \begin_inset Index idx
34983 \begin_layout Plain Layout
34984 LaTeX-packages ! hyperref
34992 \begin_layout Bibliography
34993 \labelwidthstring Bibliography
34994 \begin_inset CommandInset bibitem
34995 LatexCommand bibitem
35000 Documentation of the LaTeX-package
35003 \begin_inset CommandInset href
35006 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35013 \begin_inset Index idx
35016 \begin_layout Plain Layout
35017 LaTeX-packages ! hyperref
35025 \begin_layout Bibliography
35026 \labelwidthstring Bibliography
35027 \begin_inset CommandInset bibitem
35028 LatexCommand bibitem
35033 Documentation of the LaTeX-package
35036 \begin_inset CommandInset href
35039 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35046 \begin_inset Index idx
35049 \begin_layout Plain Layout
35050 LaTeX-packages ! KOMA-Script
35058 \begin_layout Bibliography
35059 \labelwidthstring Bibliography
35060 \begin_inset CommandInset bibitem
35061 LatexCommand bibitem
35066 Documentation of the LaTeX-package
35069 \begin_inset CommandInset href
35072 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35079 \begin_inset Index idx
35082 \begin_layout Plain Layout
35083 LaTeX-packages ! listings
35091 \begin_layout Bibliography
35092 \labelwidthstring Bibliography
35093 \begin_inset CommandInset bibitem
35094 LatexCommand bibitem
35099 Documentation of the LaTeX-package
35102 \begin_inset CommandInset href
35105 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35112 \begin_inset Index idx
35115 \begin_layout Plain Layout
35116 LaTeX-packages ! marginnote
35124 \begin_layout Bibliography
35125 \labelwidthstring Bibliography
35126 \begin_inset CommandInset bibitem
35127 LatexCommand bibitem
35132 Web page of the LaTeX-package
35135 \begin_inset CommandInset href
35138 target "http://tug.org/PSTricks/"
35145 \begin_inset Index idx
35148 \begin_layout Plain Layout
35149 LaTeX-packages ! PSTricks
35157 \begin_layout Bibliography
35158 \labelwidthstring Bibliography
35159 \begin_inset CommandInset bibitem
35160 LatexCommand bibitem
35165 Documentation of the LaTeX-package
35168 \begin_inset CommandInset href
35171 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35178 \begin_inset Index idx
35181 \begin_layout Plain Layout
35182 LaTeX-packages ! sidecap
35190 \begin_layout Bibliography
35191 \labelwidthstring Bibliography
35192 \begin_inset CommandInset bibitem
35193 LatexCommand bibitem
35198 Documentation of the LaTeX-package
35201 \begin_inset CommandInset href
35204 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35211 \begin_inset Index idx
35214 \begin_layout Plain Layout
35215 LaTeX-packages ! prettyref
35223 \begin_layout Bibliography
35224 \labelwidthstring Bibliography
35225 \begin_inset CommandInset bibitem
35226 LatexCommand bibitem
35231 Documentation of the LaTeX-package
35234 \begin_inset CommandInset href
35237 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35244 \begin_inset Index idx
35247 \begin_layout Plain Layout
35248 LaTeX-packages ! refstyle
35256 \begin_layout Bibliography
35257 \labelwidthstring Bibliography
35258 \begin_inset CommandInset bibitem
35259 LatexCommand bibitem
35265 \begin_inset CommandInset href
35268 target "http://wiki.lyx.org/LyX/NewInLyX20"
35272 about new features in
35279 \begin_layout Standard
35280 \begin_inset CommandInset index_print
35281 LatexCommand printindex