1 #LyX 2.0 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
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for book-style tables
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
154 \newboolean{lettrine}
155 \IfFileExists{lettrine.sty}
156 {\usepackage{lettrine}
157 \setboolean{lettrine}{true}}
158 {\setboolean{lettrine}{false}}
160 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
161 \use_default_options false
165 \maintain_unincluded_children false
167 \language_package default
172 \font_typewriter default
173 \font_default_family default
174 \use_non_tex_fonts false
181 \default_output_format default
183 \bibtex_command default
184 \index_command default
188 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
189 \pdf_author "LyX Team, Uwe Stöhr"
190 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
191 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
193 \pdf_bookmarksnumbered true
194 \pdf_bookmarksopen true
195 \pdf_bookmarksopenlevel 1
196 \pdf_breaklinks false
200 \pdf_pdfusetitle false
201 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
211 \paperorientation portrait
214 \notefontcolor #0000ff
221 \paragraph_separation skip
223 \quotes_language english
226 \paperpagestyle default
230 \tracking_changes false
231 \output_changes false
234 \html_be_strict false
240 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
249 \begin_layout Plain Layout
251 If you have comments or error corrections, please send them to the LyX Documenta
253 \begin_inset CommandInset href
255 name "lyx-docs@lists.lyx.org"
256 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
267 \begin_inset Note Note
270 \begin_layout Plain Layout
277 \begin_inset Newline newline
281 \begin_inset Newline newline
289 \begin_layout Standard
290 \begin_inset CommandInset toc
291 LatexCommand tableofcontents
298 \begin_layout Standard
299 \begin_inset Note Note
302 \begin_layout Plain Layout
303 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
314 lettrine, marginnote, picinpar
321 If they are not installed you can export the document anyway but the sections
322 where the packages are required won't appear in the output.
325 \begin_layout Plain Layout
326 The latest PDF-version of this document can be found here:
327 \begin_inset Newline newline
332 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
340 \begin_layout Chapter
342 \begin_inset Index idx
345 \begin_layout Plain Layout
352 \begin_inset Index idx
355 \begin_layout Plain Layout
360 \begin_layout Plain Layout
371 \begin_layout Plain Layout
386 \begin_layout Section
388 \begin_inset Index idx
391 \begin_layout Plain Layout
392 Figures ! Graphics Dialog
398 \begin_inset CommandInset label
400 name "sec:Graphics-Dialog"
407 \begin_layout Standard
408 To insert an image into your document, place the cursor at the text position
409 you want and click on the toolbar icon
410 \begin_inset Graphics
411 filename ../images/dialog-show-new-inset_graphics.png
419 Insert\SpecialChar \menuseparator
423 Then a dialog will appear to choose the file to load.
424 The image will appear in the output exactly at the position where it is
428 \begin_layout Standard
429 The graphics dialog can be called at any time by clicking on an image.
430 This dialog has three tabs:
433 \begin_layout Description
438 Here you can choose an image file and adjust its appearance in the output.
439 The available units for the image size are explained in appendix
444 \begin_inset CommandInset ref
446 reference "cha:Units-available-in"
451 \begin_inset Newline newline
455 \begin_inset Index idx
458 \begin_layout Plain Layout
464 You can rotate images counter-clockwise by setting a rotation angle and
466 The image will also be rotated inside LyX.
467 \begin_inset Newline newline
471 \begin_inset Index idx
474 \begin_layout Plain Layout
480 Images can be scaled by using a percentage value or by setting the width
481 and height explicitly.
482 If you set only the width or only the height, the other size will be determined
484 If you set both, then the image will be transformed to the given size,
485 possibly distorting it.
486 To prevent the image from distortion, use the option
488 Maintain aspect ratio
491 The image will then be scaled so that its width and height don't exceed
492 the specified dimensions.
493 \begin_inset Newline newline
496 Images can be opened in a program of your choice by right-clicking on it
497 and choosing the entry
506 The program can be set for every image format in the file format settings
507 in LyX's preferences.
510 \begin_layout Description
515 Alternatively to the usage of scaling units it is possible to set image
516 coordinates to adjust the height and width of the image in the output.
517 The coordinates can also be calculated automatically by pressing the button
547 will only print the image region within the given coordinates.
548 Normally you don't need to take care about image coordinates and can ignore
552 \begin_layout Description
569 In this tab you can modify the appearance of the image within LyX and LaTeX
570 experts can specify additional LaTeX options.
571 \begin_inset Newline newline
582 makes the image appear in the output only as a frame with the size of the
584 \begin_inset Newline newline
603 option only affects zipped EPS-graphics, e.
604 \begin_inset space \thinspace{}
608 \begin_inset space \space{}
616 When the option is used the images will not be unzipped on export, since
617 LaTeX can handle them as they are.
618 \begin_inset Newline newline
621 Zipped EPS-graphics are useful to save disk space when you choose PostScript
622 as output format, see appendix
627 \begin_inset CommandInset ref
629 reference "sec:PostScript"
634 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
636 \begin_inset Newline newline
644 \begin_inset Newline newline
649 zgrep %%Bounding x.eps.gz > x.eps.bb
652 \begin_inset Newline newline
655 The second command creates the bounding box file
656 \begin_inset Quotes eld
660 \begin_inset Quotes erd
663 that is needed by LaTeX for zipped graphics.
664 \begin_inset Newline newline
675 you can define or join an image settings group.
676 \begin_inset Index idx
679 \begin_layout Plain Layout
680 Figures ! Settings grouping
685 Images within such a group share their settings, so adjusting one image
686 of the group automatically also adjusts all other images of the group in
688 So you can for example change the size for a bunch of images without the
689 need to manually change each of them.
690 Joining an existing group can also be done using the context menu of the
691 image by checking the name of the desired group.
694 \begin_layout Standard
695 \begin_inset VSpace bigskip
701 \begin_layout Standard
702 This is an example image in EPS format
706 \begin_layout Plain Layout
707 Image formats are explained in section
712 \begin_inset CommandInset ref
714 reference "sec:Image-Formats"
723 within a separate, horizontally centered paragraph:
726 \begin_layout Standard
728 \begin_inset Graphics
729 filename clipart/mobius.eps
739 \begin_layout Standard
740 This is the same image like the one above but in draft mode:
743 \begin_layout Standard
745 \begin_inset Graphics
746 filename clipart/mobius.eps
757 \begin_layout Standard
758 \begin_inset Newpage newpage
764 \begin_layout Section
766 \begin_inset CommandInset label
768 name "sec:Figure-Floats"
773 \begin_inset Index idx
776 \begin_layout Plain Layout
783 \begin_inset Index idx
786 \begin_layout Plain Layout
795 \begin_layout Standard
796 For general explanations about floats, have a look at section
801 \begin_inset CommandInset ref
803 reference "sec:FloatIntroduction"
810 \begin_layout Standard
812 \begin_inset Graphics
813 filename ../images/float-insert_figure.png
821 Insert\SpecialChar \menuseparator
822 Float\SpecialChar \menuseparator
825 inserts a float with a caption that has the label
826 \begin_inset Quotes eld
834 \begin_inset Quotes erd
837 (# is the actual number).
838 You can insert the image above the caption, like in Figure
843 \begin_inset CommandInset ref
845 reference "fig:kill-plat"
849 or below the caption, like in Figure
854 \begin_inset CommandInset ref
856 reference "fig:escher"
861 More about caption placement is described in section
866 \begin_inset CommandInset ref
868 reference "sec:Caption-Placement"
875 \begin_layout Standard
876 \begin_inset Float figure
881 \begin_layout Plain Layout
883 \begin_inset Graphics
884 filename clipart/platypus.eps
894 \begin_layout Plain Layout
897 \begin_layout Plain Layout
898 \begin_inset CommandInset label
904 A severely distorted platypus in a float.
917 \begin_layout Standard
918 \begin_inset Float figure
923 \begin_layout Plain Layout
926 \begin_layout Plain Layout
927 \begin_inset CommandInset label
942 \begin_layout Plain Layout
944 \begin_inset Graphics
945 filename clipart/escher-lsd.eps
960 \begin_layout Standard
961 \begin_inset Index idx
964 \begin_layout Plain Layout
965 References ! to Figures
975 \begin_inset CommandInset ref
977 reference "fig:kill-plat"
982 \begin_inset CommandInset ref
984 reference "fig:escher"
988 are examples of referenced figures.
989 Figures can be referenced in the text by referencing their label.
990 To do this insert a label in the caption using the menu
992 Insert\SpecialChar \menuseparator
995 or the toolbar button
996 \begin_inset Graphics
997 filename ../images/label-insert.png
1004 You can now refer to the label using the menu
1006 Insert\SpecialChar \menuseparator
1008 \begin_inset space ~
1013 or the toolbar button
1014 \begin_inset Graphics
1015 filename ../images/dialog-show-new-inset_ref.png
1022 It is important to use references to floats, rather than using vague references
1024 \begin_inset Quotes eld
1028 \begin_inset Quotes erd
1031 , because LaTeX will reposition the floats in the final document and it
1033 \begin_inset Quotes eld
1037 \begin_inset Quotes erd
1041 \begin_inset Newline newline
1044 Referencing is explained in detail in section
1045 \begin_inset space ~
1049 \begin_inset CommandInset ref
1051 reference "sec:Referencing-Floats"
1058 \begin_layout Standard
1059 Normally only one image is inserted to a figure float, but sometimes you
1060 might want to use two images with separate subcaptions.
1061 This can be done by inserting image floats into existing image floats.
1062 Note that only the main caption of the float is added to the List of Figures.
1064 \begin_inset space ~
1068 \begin_inset CommandInset ref
1070 reference "fig:Two-distorted-images"
1074 is an example of a figure float with two images set side by side.
1075 You can also set the images one below the other.
1077 \begin_inset space ~
1081 \begin_inset CommandInset ref
1083 reference "fig:Undefinable-structure"
1088 \begin_inset CommandInset ref
1090 reference "fig:A-Platypus"
1097 \begin_layout Standard
1098 \begin_inset Float figure
1103 \begin_layout Plain Layout
1104 \begin_inset space \hfill{}
1108 \begin_inset Float figure
1113 \begin_layout Plain Layout
1114 \begin_inset Caption
1116 \begin_layout Plain Layout
1117 \begin_inset CommandInset label
1119 name "fig:Undefinable-structure"
1123 Undefinable structure.
1131 \begin_layout Plain Layout
1132 \begin_inset Graphics
1133 filename clipart/escher-lsd.eps
1146 \begin_inset space \hfill{}
1150 \begin_inset Float figure
1155 \begin_layout Plain Layout
1156 \begin_inset Caption
1158 \begin_layout Plain Layout
1159 \begin_inset CommandInset label
1161 name "fig:A-Platypus"
1173 \begin_layout Plain Layout
1174 \begin_inset Graphics
1175 filename clipart/platypus.eps
1188 \begin_inset space \hfill{}
1194 \begin_layout Plain Layout
1195 \begin_inset Caption
1197 \begin_layout Plain Layout
1198 \begin_inset CommandInset label
1200 name "fig:Two-distorted-images"
1205 \begin_inset CommandInset label
1207 name "fig2:Two-distorted-images-2"
1211 Two distorted images.
1212 Both images are in the image settings group named
1213 \begin_inset Quotes eld
1217 \begin_inset Quotes erd
1233 \begin_layout Standard
1234 \begin_inset Newpage newpage
1240 \begin_layout Section
1242 \begin_inset CommandInset label
1244 name "sec:Image-Formats"
1249 \begin_inset Index idx
1252 \begin_layout Plain Layout
1259 \begin_inset Index idx
1262 \begin_layout Plain Layout
1263 Figures ! Image Formats
1271 \begin_layout Standard
1272 You can insert images in any known file format.
1273 But as explained in appendix
1274 \begin_inset space ~
1278 \begin_inset CommandInset ref
1280 reference "cha:Output-File-Formats"
1284 , each output document format allows only a few image formats.
1285 LyX uses therefore the program
1289 in the background to convert the images to the right format.
1290 To increase your work flow by avoiding these conversions in the background,
1291 you can use only the image formats that can directly be embedded in the
1293 The output file formats are explained in appendix
1294 \begin_inset space ~
1298 \begin_inset CommandInset ref
1300 reference "cha:Output-File-Formats"
1307 \begin_layout Standard
1308 Similar to fonts there are two types of image formats:
1311 \begin_layout Description
1313 \begin_inset space ~
1316 images consist of pixel values, often in a compressed form.
1317 They are therefore not fully scalable and look pixelated in large zooms.
1318 Well-known bitmap image formats are
1319 \begin_inset Quotes eld
1322 Graphics Interchange Format
1323 \begin_inset Quotes erd
1326 (GIF, file extension
1327 \begin_inset Quotes eld
1335 \begin_inset Quotes erd
1339 \begin_inset Index idx
1342 \begin_layout Plain Layout
1347 \begin_layout Plain Layout
1358 \begin_layout Plain Layout
1371 \begin_inset Quotes eld
1374 Portable Network Graphics
1375 \begin_inset Quotes erd
1378 (PNG, file extension
1379 \begin_inset Quotes eld
1387 \begin_inset Quotes erd
1391 \begin_inset Index idx
1394 \begin_layout Plain Layout
1399 \begin_layout Plain Layout
1410 \begin_layout Plain Layout
1423 \begin_inset Quotes eld
1426 Joint Photographic Experts Group
1427 \begin_inset Quotes erd
1430 (JPG, file extension
1431 \begin_inset Quotes eld
1439 \begin_inset Quotes erd
1443 \begin_inset Quotes eld
1451 \begin_inset Quotes erd
1455 \begin_inset Index idx
1458 \begin_layout Plain Layout
1463 \begin_layout Plain Layout
1474 \begin_layout Plain Layout
1489 \begin_layout Description
1491 \begin_inset space ~
1494 images consist of vectors and can therefore be scaled to any size without
1496 The scaling ability is necessary if you want to create presentations, because
1497 presentations are always scaled by the video projector.
1498 Scaling is also useful for online documents to let the user zoom into diagrams.
1499 \begin_inset Newline newline
1502 Well-known scalable image formats are
1503 \begin_inset Quotes eld
1506 Scalable Vector Graphics
1507 \begin_inset Quotes erd
1510 (SVG, file extension
1511 \begin_inset Quotes eld
1519 \begin_inset Quotes erd
1523 \begin_inset Index idx
1526 \begin_layout Plain Layout
1531 \begin_layout Plain Layout
1542 \begin_layout Plain Layout
1555 \begin_inset Quotes eld
1558 Encapsulated PostScript
1559 \begin_inset Quotes erd
1562 (EPS, file extension
1563 \begin_inset Quotes eld
1571 \begin_inset Quotes erd
1575 \begin_inset Index idx
1578 \begin_layout Plain Layout
1583 \begin_layout Plain Layout
1594 \begin_layout Plain Layout
1607 \begin_inset Quotes eld
1610 Portable Document Format
1611 \begin_inset Quotes erd
1614 (PDF, file extension
1615 \begin_inset Quotes eld
1623 \begin_inset Quotes erd
1627 \begin_inset Index idx
1630 \begin_layout Plain Layout
1637 \begin_inset Quotes eld
1641 \begin_inset Quotes erd
1644 (WMF, file extension
1645 \begin_inset Quotes eld
1653 \begin_inset Quotes erd
1657 \begin_inset Index idx
1660 \begin_layout Plain Layout
1665 \begin_layout Plain Layout
1676 \begin_layout Plain Layout
1690 \begin_inset Quotes eld
1694 \begin_inset Quotes erd
1697 , because you can convert any bitmap image to a PDF or EPS-image and the
1698 result will still be a bitmap image.
1699 In such cases only a header with the image properties is added to the original
1704 \begin_layout Plain Layout
1705 In the case of PDF, the original image is additionally compressed.
1711 The PDF-files generated by
1715 are for example bitmap images.
1718 \begin_layout Standard
1719 Normally it is not possible to convert a bitmap image into a scalable one,
1721 Only the image formats PDF and EPS can directly be embedded to PDF and
1722 PostScript output files, respectively.
1723 SVG and WMF-images are recalculated to bitmaps when the output file is
1724 generated because there is currently no adequate WMF/SVG
1725 \begin_inset Formula $\to$
1728 PDF/EPS converter available.
1731 \begin_layout Chapter
1733 \begin_inset Index idx
1736 \begin_layout Plain Layout
1745 \begin_layout Section
1747 \begin_inset Index idx
1750 \begin_layout Plain Layout
1751 Table ! Introduction
1759 \begin_layout Standard
1760 You can insert a table using either the toolbar button
1761 \begin_inset Graphics
1762 filename ../images/tabular-insert.png
1770 Insert\SpecialChar \menuseparator
1774 The toolbar button offers you a graphical selection: move the mouse to
1775 set the column/row number of the table that should be created and then
1776 press a mouse button.
1777 When you use the menu to create a table, a dialog will appear, asking you
1778 for the number of rows and columns.
1779 \begin_inset Newline newline
1782 The default table has lines around any cell and the first row appears separated
1783 from the rest of the table.
1784 This separation occurs due to a double line: The cells of the first row
1785 have a line below them and the cells of the second row have a line above
1787 Here is an example table:
1790 \begin_layout Standard
1792 \begin_inset Tabular
1793 <lyxtabular version="3" rows="4" columns="4">
1794 <features tabularvalignment="middle">
1795 <column alignment="center" valignment="top" width="0">
1796 <column alignment="center" valignment="top" width="0">
1797 <column alignment="center" valignment="top" width="0">
1798 <column alignment="center" valignment="top" width="0">
1800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1803 \begin_layout Plain Layout
1809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1812 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1830 \begin_layout Plain Layout
1836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1839 \begin_layout Plain Layout
1847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1850 \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" usebox="none">
1877 \begin_layout Plain Layout
1883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1886 \begin_layout Plain Layout
1894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1897 \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" usebox="none">
1924 \begin_layout Plain Layout
1930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1933 \begin_layout Plain Layout
1941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1944 \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" usebox="none">
1971 \begin_layout Plain Layout
1977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1980 \begin_layout Plain Layout
1994 \begin_layout Section
1996 \begin_inset Index idx
1999 \begin_layout Plain Layout
2008 \begin_layout Standard
2009 You can alter a table by clicking on it with the right mouse button, which
2010 brings up the table dialog.
2011 Here you can adjust the settings of that cell and row/column respectively
2012 where the cursor is currently placed.
2013 Most of the dialog options also work on selections.
2014 This means if you select more cells, columns or rows, the action is done
2015 for the whole selection.
2016 Note that there is a difference between selecting the
2020 of the cell, and the cell itself.
2021 \begin_inset Newline newline
2024 With the dialog option
2027 \begin_inset space ~
2032 every change you make in the dialog is directly applied.
2033 If you move the cursor to another table cell the dialog will then also
2034 be updated with the parameters of the new cell.
2035 If you change length values in the dialog you must press return to get
2037 \begin_inset Newline newline
2040 You can alter tables with the following tabs of the table dialog:
2043 \begin_layout Description
2047 \begin_inset space ~
2052 Here you can set the table width
2053 \begin_inset Index idx
2056 \begin_layout Plain Layout
2062 , and the horizontal alignment and the width of the current column.
2066 \begin_inset space ~
2070 \begin_inset space ~
2075 is described in section
2076 \begin_inset space ~
2080 \begin_inset CommandInset ref
2082 reference "sub:Special-Cell-Alignment"
2087 When you have set a width you can also adjust the vertical alignment of
2089 A given width will allow the cell to have line breaks and multiple paragraphs
2090 of text, see section
2091 \begin_inset space ~
2095 \begin_inset CommandInset ref
2097 reference "sub:Multiple-Lines-in"
2102 If you set no width, the column is as wide as the content of its widest
2104 \begin_inset Newline newline
2107 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sub:Multicolumns"
2119 or the cells of one column as multirow cell, see section
2120 \begin_inset space ~
2124 \begin_inset CommandInset ref
2126 reference "sub:Multirows"
2131 \begin_inset Newline newline
2134 The rotate check boxes rotate the current cell, a selection, or the whole
2135 table counter-clockwise by 90°.
2136 The rotation is not shown within LyX, only in the output.
2137 \begin_inset Newline newline
2141 \begin_inset Note Greyedout
2144 \begin_layout Plain Layout
2149 Not all DVI-viewers are able to display rotations.
2155 \begin_inset Newline newline
2158 The table-wide vertical alignment is used for tables within text lines:
2159 \begin_inset Newline newline
2162 A line with tables with different alignments:
2163 \begin_inset Tabular
2164 <lyxtabular version="3" rows="2" columns="2">
2165 <features tabularvalignment="top">
2166 <column alignment="center" valignment="top" width="0pt">
2167 <column alignment="center" valignment="top" width="0">
2169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2172 \begin_layout Plain Layout
2178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2181 \begin_layout Plain Layout
2198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2201 \begin_layout Plain Layout
2216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2219 \begin_layout Plain Layout
2231 \begin_inset Tabular
2232 <lyxtabular version="3" rows="2" columns="2">
2233 <features tabularvalignment="middle">
2234 <column alignment="center" valignment="top" width="0">
2235 <column alignment="center" valignment="top" width="0">
2237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2240 \begin_layout Plain Layout
2246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2249 \begin_layout Plain Layout
2266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2269 \begin_layout Plain Layout
2284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2287 \begin_layout Plain Layout
2299 \begin_inset Tabular
2300 <lyxtabular version="3" rows="2" columns="2">
2301 <features tabularvalignment="bottom">
2302 <column alignment="center" valignment="top" width="0pt">
2303 <column alignment="center" valignment="top" width="0">
2305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2308 \begin_layout Plain Layout
2314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2317 \begin_layout Plain Layout
2334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2337 \begin_layout Plain Layout
2352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2355 \begin_layout Plain Layout
2367 \begin_inset Newline newline
2370 It is also possible to enter a LaTeX-argument which is needed for special
2371 table formattings, see section
2372 \begin_inset space ~
2376 \begin_inset CommandInset ref
2378 reference "sub:Multicolumn-Calculations"
2383 \begin_inset CommandInset ref
2385 reference "sec:Colored-Tables"
2392 \begin_layout Description
2397 In this tab you can add and delete border lines for the current row/column.
2398 \begin_inset Newline newline
2401 Using the style option
2405 will convert the table to a formal table as described in section
2406 \begin_inset space ~
2410 \begin_inset CommandInset ref
2412 reference "sec:Formal-Tables"
2417 \begin_inset Newline newline
2420 You can also add here space to table rows as described in section
2421 \begin_inset space ~
2425 \begin_inset CommandInset ref
2427 reference "sub:Row-Spacing"
2434 \begin_layout Description
2439 This tab is to make a table a so called
2440 \begin_inset Quotes eld
2448 \begin_inset Quotes erd
2451 that can run over several pages.
2453 \begin_inset space ~
2457 \begin_inset CommandInset ref
2459 reference "sec:Longtables"
2464 \begin_inset CommandInset ref
2466 reference "sec:Special-Longtable-Issues"
2470 describe the longtable features in detail.
2473 \begin_layout Section
2475 \begin_inset Index idx
2478 \begin_layout Plain Layout
2487 \begin_layout Standard
2488 The table toolbar is an alternative to the table dialog to be able to alter
2490 It should normally appear at the bottom of LyX's main window when the cursor
2492 You can alternatively switch it on to appear always, by right-clicking
2493 in LyX's main menu bar.
2496 \begin_layout Standard
2497 The toolbar has the following icons:
2500 \begin_layout Labeling
2501 \labelwidthstring 00.00.0000
2502 \begin_inset Graphics
2503 filename ../images/tabular-feature_append-row.png
2508 adds a row below the current cell or selection
2511 \begin_layout Labeling
2512 \labelwidthstring 00.00.0000
2513 \begin_inset Graphics
2514 filename ../images/tabular-feature_append-column.png
2519 adds a column right beside the current cell or selection
2522 \begin_layout Labeling
2523 \labelwidthstring 00.00.0000
2524 \begin_inset Graphics
2525 filename ../images/tabular-feature_delete-row.png
2530 deletes the current row or selection
2533 \begin_layout Labeling
2534 \labelwidthstring 00.00.0000
2535 \begin_inset Graphics
2536 filename ../images/tabular-feature_delete-column.png
2541 deletes the current column or selection
2544 \begin_layout Labeling
2545 \labelwidthstring 00.00.0000
2546 \begin_inset Graphics
2547 filename ../images/tabular-feature_toggle-line-top.png
2552 adds a line at the top of the current cell / row or of a selection
2555 \begin_layout Labeling
2556 \labelwidthstring 00.00.0000
2557 \begin_inset Graphics
2558 filename ../images/tabular-feature_toggle-line-bottom.png
2563 adds a line at the bottom of the current cell / row or of a selection
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2568 \begin_inset Graphics
2569 filename ../images/tabular-feature_toggle-line-left.png
2574 adds a line at the left side of the current cell / row or of a selection
2577 \begin_layout Labeling
2578 \labelwidthstring 00.00.0000
2579 \begin_inset Graphics
2580 filename ../images/tabular-feature_toggle-line-right.png
2585 adds a line at the right side of the current cell / row or of a selection
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2590 \begin_inset Graphics
2591 filename ../images/tabular-feature_set-all-lines.png
2596 adds lines around the current or selected cells - if the current cell no
2597 multicolumn cell this also affects the current row and column
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Graphics
2603 filename ../images/tabular-feature_unset-all-lines.png
2608 deletes all lines of the current or selected cells - if the current cell
2609 no multicolumn cell this also affects the current row and column
2612 \begin_layout Labeling
2613 \labelwidthstring 00.00.0000
2614 \begin_inset Graphics
2615 filename ../images/tabular-feature_m-align-left.png
2620 left-aligns the content of the current cell / column
2623 \begin_layout Labeling
2624 \labelwidthstring 00.00.0000
2625 \begin_inset Graphics
2626 filename ../images/tabular-feature_m-align-center.png
2631 centers the content of the current cell / column horizontally
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2636 \begin_inset Graphics
2637 filename ../images/tabular-feature_m-align-right.png
2642 right-aligns the content of the current cell / column
2645 \begin_layout Labeling
2646 \labelwidthstring 00.00.0000
2647 \begin_inset Graphics
2648 filename ../images/tabular-feature_align-decimal.png
2653 aligns the content of the current column at a character
2656 \begin_layout Labeling
2657 \labelwidthstring 00.00.0000
2658 \begin_inset Graphics
2659 filename ../images/tabular-feature_m-valign-top.png
2664 aligns the content of the current cell vertically to the top
2667 \begin_layout Labeling
2668 \labelwidthstring 00.00.0000
2669 \begin_inset Graphics
2670 filename ../images/tabular-feature_m-valign-middle.png
2675 centers the content of the current cell vertically
2678 \begin_layout Labeling
2679 \labelwidthstring 00.00.0000
2680 \begin_inset Graphics
2681 filename ../images/tabular-feature_m-valign-bottom.png
2686 aligns the content of the current cell vertically to the bottom
2689 \begin_layout Labeling
2690 \labelwidthstring 00.00.0000
2691 \begin_inset Graphics
2692 filename ../images/tabular-feature_set-rotate-cell.png
2697 rotates the current cell or selection counter-clockwise by 90°
2700 \begin_layout Labeling
2701 \labelwidthstring 00.00.0000
2702 \begin_inset Graphics
2703 filename ../images/tabular-feature_set-rotate-tabular.png
2708 rotates the whole table counter-clockwise by 90°
2711 \begin_layout Labeling
2712 \labelwidthstring 00.00.0000
2713 \begin_inset Graphics
2714 filename ../images/tabular-feature_multicolumn.png
2719 sets the current cell or selection as a multicolumn
2722 \begin_layout Labeling
2723 \labelwidthstring 00.00.0000
2724 \begin_inset Graphics
2725 filename ../images/tabular-feature_multirow.png
2730 sets the current cell or selection as a multirow
2733 \begin_layout Standard
2734 \begin_inset Note Greyedout
2737 \begin_layout Plain Layout
2742 For the output the vertical alignment of the first cell in a row is used
2743 for all following cells in the row.
2751 \begin_layout Section
2753 \begin_inset Index idx
2756 \begin_layout Plain Layout
2765 \begin_layout Standard
2766 Additionally to the table dialog and toolbar, the menu
2768 Edit\SpecialChar \menuseparator
2771 allows you to add and delete border lines for the current row/column and
2772 to set the current selection as multicolumn.
2773 The menu is only available when the cursor is inside a table.
2776 \begin_layout Section
2778 \begin_inset CommandInset label
2780 name "sec:Table-Floats"
2785 \begin_inset Index idx
2788 \begin_layout Plain Layout
2795 \begin_inset Index idx
2798 \begin_layout Plain Layout
2807 \begin_layout Standard
2808 For general explanations about floats, have a look at section
2809 \begin_inset space ~
2813 \begin_inset CommandInset ref
2815 reference "sec:FloatIntroduction"
2822 \begin_layout Standard
2823 \begin_inset Float table
2829 \begin_layout Plain Layout
2830 \begin_inset Caption
2832 \begin_layout Plain Layout
2833 \begin_inset CommandInset label
2835 name "tab:a table float"
2847 \begin_layout Plain Layout
2849 \begin_inset Tabular
2850 <lyxtabular version="3" rows="3" columns="3">
2851 <features tabularvalignment="middle">
2852 <column alignment="center" valignment="top" width="0pt">
2853 <column alignment="center" valignment="top" width="0pt">
2854 <column alignment="center" valignment="top" width="0pt">
2856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2859 \begin_layout Plain Layout
2874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2877 \begin_layout Plain Layout
2892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2895 \begin_layout Plain Layout
2912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2915 \begin_layout Plain Layout
2930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2933 \begin_layout Plain Layout
2948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2951 \begin_layout Plain Layout
2968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2971 \begin_layout Plain Layout
2981 \begin_inset Formula $\int x^{2}dx$
2989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2992 \begin_layout Plain Layout
3002 \begin_inset Formula $\left[\begin{array}{cc}
3013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3016 \begin_layout Plain Layout
3026 \begin_inset Formula $1+1=2$
3047 \begin_layout Standard
3048 Table floats can be inserted using the menu
3050 Insert\SpecialChar \menuseparator
3051 Float\SpecialChar \menuseparator
3054 or the toolbar button
3055 \begin_inset Graphics
3056 filename ../images/float-insert_table.png
3065 \begin_layout Standard
3066 The float appears as a collapsible box with a caption that has the label
3068 \begin_inset Quotes eld
3072 \begin_inset space ~
3076 \begin_inset Quotes erd
3079 (# is the actual table number).
3080 You can insert tables in the float above or below the caption.
3083 \begin_layout Standard
3085 \begin_inset space ~
3089 \begin_inset CommandInset ref
3091 reference "tab:a table float"
3095 is an example table within a table float.
3098 \begin_layout Standard
3099 Having the caption above the table is the common rule that is unfortunately
3100 not supported in LaTeX's standard classes.
3101 This means that, if you are using the document classes
3117 , there will be no space between the caption and the table.
3118 To insert the needed space, add the following option to the load command
3119 of the LaTeX-package
3124 \begin_inset Index idx
3127 \begin_layout Plain Layout
3128 LaTeX-packages ! caption
3133 in your document preamble
3137 \begin_layout Plain Layout
3138 For more information have a look at section
3139 \begin_inset space ~
3143 \begin_inset CommandInset ref
3145 reference "sec:Caption-Placement"
3157 \begin_layout Standard
3163 \begin_layout Standard
3168 , which is described in section
3169 \begin_inset space ~
3173 \begin_inset CommandInset ref
3175 reference "sec:Caption-Formatting"
3179 , is used to adjust the caption format.
3182 \begin_layout Standard
3183 \begin_inset Index idx
3186 \begin_layout Plain Layout
3187 References ! to Tables
3192 Tables can be cross-referenced in the text by referencing their label.
3193 To do this insert a label in the caption using the menu
3195 Insert\SpecialChar \menuseparator
3198 or the toolbar button
3199 \begin_inset Graphics
3200 filename ../images/label-insert.png
3207 You can now refer to the label using the menu
3209 Insert\SpecialChar \menuseparator
3211 \begin_inset space ~
3216 or the toolbar button
3217 \begin_inset Graphics
3218 filename ../images/dialog-show-new-inset_ref.png
3225 \begin_inset Newline newline
3228 Referencing is explained in detail in section
3229 \begin_inset space ~
3233 \begin_inset CommandInset ref
3235 reference "sec:Referencing-Floats"
3242 \begin_layout Section
3244 \begin_inset CommandInset label
3246 name "sec:Longtables"
3251 \begin_inset Index idx
3254 \begin_layout Plain Layout
3261 \begin_inset Index idx
3264 \begin_layout Plain Layout
3273 \begin_layout Standard
3274 If the table is too long to fit on one page, you can use the option
3277 \begin_inset space ~
3281 \begin_inset space ~
3290 of the table dialog to split the table automatically over more pages.
3291 Doing this enables the following options:
3294 \begin_layout Description
3295 Header: The current row is defined to be a header row that appears on all
3296 pages of the longtable; except for the first page, if
3299 \begin_inset space ~
3305 This is therefore called the main header.
3308 \begin_layout Description
3310 \begin_inset space ~
3313 header: The current row is defined to be a header row that appears on the
3314 first page of the longtable.
3317 \begin_layout Description
3318 Footer: The current row is defined to be a footer row that appears on all
3319 pages of the longtable; except for the last page, if
3322 \begin_inset space ~
3330 \begin_layout Description
3332 \begin_inset space ~
3335 footer: The current row is defined to be a footer row that appears on the
3336 last page of the longtable.
3339 \begin_layout Description
3340 Caption: The current row contains the table caption.
3341 The row is reset as single column and a caption is inserted.
3342 More about longtable captions is explained in sec.
3343 \begin_inset space \thinspace{}
3347 \begin_inset CommandInset ref
3349 reference "sub:Longtable-Captions"
3356 \begin_layout Standard
3357 You can also specify a row where the table is split.
3358 See the following longtable to see how it works:
3361 \begin_layout Standard
3363 \begin_inset Tabular
3364 <lyxtabular version="3" rows="69" columns="3">
3365 <features islongtable="true" longtabularalignment="center">
3366 <column alignment="left" valignment="top" width="0cm">
3367 <column alignment="left" valignment="top" width="0pt">
3368 <column alignment="center" valignment="top" width="0pt">
3369 <row endfirsthead="true">
3370 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3373 \begin_layout Plain Layout
3376 Example Phone List (ignore the names)
3381 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3384 \begin_layout Plain Layout
3390 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3393 \begin_layout Plain Layout
3400 <row endfirsthead="true">
3401 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3404 \begin_layout Plain Layout
3412 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3415 \begin_layout Plain Layout
3421 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3424 \begin_layout Plain Layout
3433 <row endhead="true">
3434 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3437 \begin_layout Plain Layout
3445 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3448 \begin_layout Plain Layout
3454 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3457 \begin_layout Plain Layout
3464 <row endhead="true">
3465 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3468 \begin_layout Plain Layout
3476 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3479 \begin_layout Plain Layout
3485 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3488 \begin_layout Plain Layout
3497 <row endfoot="true">
3498 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3501 \begin_layout Plain Layout
3502 continued on next page
3507 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3510 \begin_layout Plain Layout
3516 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3519 \begin_layout Plain Layout
3527 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3530 \begin_layout Plain Layout
3538 <cell alignment="center" valignment="top" usebox="none">
3541 \begin_layout Plain Layout
3547 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3550 \begin_layout Plain Layout
3558 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3561 \begin_layout Plain Layout
3569 <cell alignment="center" valignment="top" usebox="none">
3572 \begin_layout Plain Layout
3578 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3581 \begin_layout Plain Layout
3589 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3592 \begin_layout Plain Layout
3600 <cell alignment="center" valignment="top" usebox="none">
3603 \begin_layout Plain Layout
3609 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3612 \begin_layout Plain Layout
3620 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3623 \begin_layout Plain Layout
3631 <cell alignment="center" valignment="top" usebox="none">
3634 \begin_layout Plain Layout
3640 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3643 \begin_layout Plain Layout
3651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3654 \begin_layout Plain Layout
3662 <cell alignment="center" valignment="top" usebox="none">
3665 \begin_layout Plain Layout
3671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3674 \begin_layout Plain Layout
3682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3685 \begin_layout Plain Layout
3693 <cell alignment="center" valignment="top" usebox="none">
3696 \begin_layout Plain Layout
3702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3705 \begin_layout Plain Layout
3713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3716 \begin_layout Plain Layout
3724 <cell alignment="center" valignment="top" usebox="none">
3727 \begin_layout Plain Layout
3733 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3736 \begin_layout Plain Layout
3744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3747 \begin_layout Plain Layout
3755 <cell alignment="center" valignment="top" usebox="none">
3758 \begin_layout Plain Layout
3764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3767 \begin_layout Plain Layout
3775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3778 \begin_layout Plain Layout
3786 <cell alignment="center" valignment="top" usebox="none">
3789 \begin_layout Plain Layout
3795 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3798 \begin_layout Plain Layout
3806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3809 \begin_layout Plain Layout
3817 <cell alignment="center" valignment="top" usebox="none">
3820 \begin_layout Plain Layout
3826 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3829 \begin_layout Plain Layout
3837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3840 \begin_layout Plain Layout
3848 <cell alignment="center" valignment="top" usebox="none">
3851 \begin_layout Plain Layout
3857 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3860 \begin_layout Plain Layout
3868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3871 \begin_layout Plain Layout
3879 <cell alignment="center" valignment="top" usebox="none">
3882 \begin_layout Plain Layout
3888 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3891 \begin_layout Plain Layout
3899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3902 \begin_layout Plain Layout
3910 <cell alignment="center" valignment="top" usebox="none">
3913 \begin_layout Plain Layout
3919 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3922 \begin_layout Plain Layout
3930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3933 \begin_layout Plain Layout
3941 <cell alignment="center" valignment="top" usebox="none">
3944 \begin_layout Plain Layout
3950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3953 \begin_layout Plain Layout
3961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3964 \begin_layout Plain Layout
3972 <cell alignment="center" valignment="top" usebox="none">
3975 \begin_layout Plain Layout
3981 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3984 \begin_layout Plain Layout
3992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3995 \begin_layout Plain Layout
4003 <cell alignment="center" valignment="top" usebox="none">
4006 \begin_layout Plain Layout
4012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4015 \begin_layout Plain Layout
4023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4026 \begin_layout Plain Layout
4034 <cell alignment="center" valignment="top" usebox="none">
4037 \begin_layout Plain Layout
4043 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4046 \begin_layout Plain Layout
4054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4057 \begin_layout Plain Layout
4065 <cell alignment="center" valignment="top" usebox="none">
4068 \begin_layout Plain Layout
4074 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4077 \begin_layout Plain Layout
4085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4088 \begin_layout Plain Layout
4096 <cell alignment="center" valignment="top" usebox="none">
4099 \begin_layout Plain Layout
4105 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4108 \begin_layout Plain Layout
4116 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4119 \begin_layout Plain Layout
4127 <cell alignment="center" valignment="top" usebox="none">
4130 \begin_layout Plain Layout
4136 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4139 \begin_layout Plain Layout
4147 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4150 \begin_layout Plain Layout
4158 <cell alignment="center" valignment="top" usebox="none">
4161 \begin_layout Plain Layout
4167 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4170 \begin_layout Plain Layout
4178 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4181 \begin_layout Plain Layout
4189 <cell alignment="center" valignment="top" usebox="none">
4192 \begin_layout Plain Layout
4198 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4201 \begin_layout Plain Layout
4209 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4212 \begin_layout Plain Layout
4220 <cell alignment="center" valignment="top" usebox="none">
4223 \begin_layout Plain Layout
4229 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4232 \begin_layout Plain Layout
4240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4243 \begin_layout Plain Layout
4251 <cell alignment="center" valignment="top" usebox="none">
4254 \begin_layout Plain Layout
4260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4263 \begin_layout Plain Layout
4271 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4274 \begin_layout Plain Layout
4282 <cell alignment="center" valignment="top" usebox="none">
4285 \begin_layout Plain Layout
4291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4294 \begin_layout Plain Layout
4302 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4305 \begin_layout Plain Layout
4313 <cell alignment="center" valignment="top" usebox="none">
4316 \begin_layout Plain Layout
4322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4325 \begin_layout Plain Layout
4333 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4336 \begin_layout Plain Layout
4344 <cell alignment="center" valignment="top" usebox="none">
4347 \begin_layout Plain Layout
4353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4356 \begin_layout Plain Layout
4364 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4367 \begin_layout Plain Layout
4375 <cell alignment="center" valignment="top" usebox="none">
4378 \begin_layout Plain Layout
4384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4387 \begin_layout Plain Layout
4395 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4398 \begin_layout Plain Layout
4406 <cell alignment="center" valignment="top" usebox="none">
4409 \begin_layout Plain Layout
4415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4418 \begin_layout Plain Layout
4426 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4429 \begin_layout Plain Layout
4437 <cell alignment="center" valignment="top" usebox="none">
4440 \begin_layout Plain Layout
4446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4449 \begin_layout Plain Layout
4457 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4460 \begin_layout Plain Layout
4468 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4471 \begin_layout Plain Layout
4477 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4480 \begin_layout Plain Layout
4488 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4491 \begin_layout Plain Layout
4497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4500 \begin_layout Plain Layout
4506 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4509 \begin_layout Plain Layout
4517 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4520 \begin_layout Plain Layout
4528 <cell alignment="center" valignment="top" usebox="none">
4531 \begin_layout Plain Layout
4537 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4540 \begin_layout Plain Layout
4548 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4551 \begin_layout Plain Layout
4559 <cell alignment="center" valignment="top" usebox="none">
4562 \begin_layout Plain Layout
4568 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4571 \begin_layout Plain Layout
4579 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4582 \begin_layout Plain Layout
4590 <cell alignment="center" valignment="top" usebox="none">
4593 \begin_layout Plain Layout
4599 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4602 \begin_layout Plain Layout
4610 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4613 \begin_layout Plain Layout
4621 <cell alignment="center" valignment="top" usebox="none">
4624 \begin_layout Plain Layout
4630 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4633 \begin_layout Plain Layout
4641 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4644 \begin_layout Plain Layout
4652 <cell alignment="center" valignment="top" usebox="none">
4655 \begin_layout Plain Layout
4661 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4664 \begin_layout Plain Layout
4672 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4675 \begin_layout Plain Layout
4683 <cell alignment="center" valignment="top" usebox="none">
4686 \begin_layout Plain Layout
4692 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4695 \begin_layout Plain Layout
4703 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4706 \begin_layout Plain Layout
4714 <cell alignment="center" valignment="top" usebox="none">
4717 \begin_layout Plain Layout
4723 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4726 \begin_layout Plain Layout
4734 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4737 \begin_layout Plain Layout
4745 <cell alignment="center" valignment="top" usebox="none">
4748 \begin_layout Plain Layout
4754 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4757 \begin_layout Plain Layout
4765 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4768 \begin_layout Plain Layout
4776 <cell alignment="center" valignment="top" usebox="none">
4779 \begin_layout Plain Layout
4785 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4788 \begin_layout Plain Layout
4796 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4799 \begin_layout Plain Layout
4807 <cell alignment="center" valignment="top" usebox="none">
4810 \begin_layout Plain Layout
4816 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4819 \begin_layout Plain Layout
4827 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4830 \begin_layout Plain Layout
4838 <cell alignment="center" valignment="top" usebox="none">
4841 \begin_layout Plain Layout
4847 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4850 \begin_layout Plain Layout
4858 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4861 \begin_layout Plain Layout
4869 <cell alignment="center" valignment="top" usebox="none">
4872 \begin_layout Plain Layout
4878 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4881 \begin_layout Plain Layout
4889 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4892 \begin_layout Plain Layout
4900 <cell alignment="center" valignment="top" usebox="none">
4903 \begin_layout Plain Layout
4909 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4912 \begin_layout Plain Layout
4920 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4923 \begin_layout Plain Layout
4931 <cell alignment="center" valignment="top" usebox="none">
4934 \begin_layout Plain Layout
4940 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4943 \begin_layout Plain Layout
4951 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4954 \begin_layout Plain Layout
4962 <cell alignment="center" valignment="top" usebox="none">
4965 \begin_layout Plain Layout
4971 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4974 \begin_layout Plain Layout
4982 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4985 \begin_layout Plain Layout
4993 <cell alignment="center" valignment="top" usebox="none">
4996 \begin_layout Plain Layout
5002 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5005 \begin_layout Plain Layout
5013 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5016 \begin_layout Plain Layout
5024 <cell alignment="center" valignment="top" usebox="none">
5027 \begin_layout Plain Layout
5033 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5036 \begin_layout Plain Layout
5044 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5047 \begin_layout Plain Layout
5055 <cell alignment="center" valignment="top" usebox="none">
5058 \begin_layout Plain Layout
5064 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5067 \begin_layout Plain Layout
5075 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5078 \begin_layout Plain Layout
5086 <cell alignment="center" valignment="top" usebox="none">
5089 \begin_layout Plain Layout
5095 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5098 \begin_layout Plain Layout
5106 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5109 \begin_layout Plain Layout
5117 <cell alignment="center" valignment="top" usebox="none">
5120 \begin_layout Plain Layout
5126 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5129 \begin_layout Plain Layout
5137 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5140 \begin_layout Plain Layout
5148 <cell alignment="center" valignment="top" usebox="none">
5151 \begin_layout Plain Layout
5157 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5160 \begin_layout Plain Layout
5168 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5171 \begin_layout Plain Layout
5179 <cell alignment="center" valignment="top" usebox="none">
5182 \begin_layout Plain Layout
5188 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5191 \begin_layout Plain Layout
5199 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5202 \begin_layout Plain Layout
5210 <cell alignment="center" valignment="top" usebox="none">
5213 \begin_layout Plain Layout
5219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5222 \begin_layout Plain Layout
5230 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5233 \begin_layout Plain Layout
5241 <cell alignment="center" valignment="top" usebox="none">
5244 \begin_layout Plain Layout
5250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5253 \begin_layout Plain Layout
5261 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5264 \begin_layout Plain Layout
5272 <cell alignment="center" valignment="top" usebox="none">
5275 \begin_layout Plain Layout
5281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5284 \begin_layout Plain Layout
5292 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5295 \begin_layout Plain Layout
5303 <cell alignment="center" valignment="top" usebox="none">
5306 \begin_layout Plain Layout
5312 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5315 \begin_layout Plain Layout
5323 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5326 \begin_layout Plain Layout
5334 <cell alignment="center" valignment="top" usebox="none">
5337 \begin_layout Plain Layout
5343 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5346 \begin_layout Plain Layout
5354 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5357 \begin_layout Plain Layout
5365 <cell alignment="center" valignment="top" usebox="none">
5368 \begin_layout Plain Layout
5374 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5377 \begin_layout Plain Layout
5385 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5388 \begin_layout Plain Layout
5396 <cell alignment="center" valignment="top" usebox="none">
5399 \begin_layout Plain Layout
5405 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5408 \begin_layout Plain Layout
5416 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5419 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" usebox="none">
5430 \begin_layout Plain Layout
5436 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5439 \begin_layout Plain Layout
5447 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5458 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5461 \begin_layout Plain Layout
5467 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5470 \begin_layout Plain Layout
5477 <row endlastfoot="true">
5478 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5481 \begin_layout Plain Layout
5487 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5490 \begin_layout Plain Layout
5496 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5499 \begin_layout Plain Layout
5514 \begin_layout Plain Layout
5518 addtocounter{table}{-1}
5524 \begin_inset Note Note
5527 \begin_layout Plain Layout
5528 See the first greyed-out note in section
5529 \begin_inset space ~
5533 \begin_inset CommandInset ref
5535 reference "sub:Longtable-Captions"
5539 for an explanation of this command.
5547 \begin_layout Subsection
5548 Footnotes in Longtables
5549 \begin_inset CommandInset label
5551 name "sub:Footnotes-in-Longtables"
5556 \begin_inset Index idx
5559 \begin_layout Plain Layout
5560 Longtables ! Footnotes
5568 \begin_layout Standard
5569 Footnotes can be inserted to every longtable cell.
5570 They appear at the bottom of the page where the table cell with the footnote
5573 \begin_inset space ~
5577 \begin_inset CommandInset ref
5579 reference "tab:DiffCaptions"
5583 has for example a footnote.
5586 \begin_layout Subsection
5588 \begin_inset Index idx
5591 \begin_layout Plain Layout
5592 Longtables ! Alignment
5600 \begin_layout Standard
5601 The horizontal alignment of longtables can be set in the table settings
5603 For left- and right-alignment the table will be directly at the page border.
5604 To add space between the table and the border one has to set the alignment
5605 to center and change the value of the LaTeX-lengths
5617 by inserting this line as TeX-Code before the longtable:
5620 \begin_layout Standard
5630 \begin_layout Standard
5631 The value can have any of the units listed in Table
5632 \begin_inset space ~
5636 \begin_inset CommandInset ref
5638 reference "tab:Units"
5649 controls the horizontal distance from the left page border to the longtable,
5656 the distance from the right side.
5657 The default value for both lengths is
5663 , which is in this case the same as an horizontal fill in LyX.
5666 \begin_layout Standard
5667 The following longtable was centered and
5683 \begin_layout Plain Layout
5699 \begin_layout Standard
5700 \begin_inset Tabular
5701 <lyxtabular version="3" rows="5" columns="5">
5702 <features islongtable="true" longtabularalignment="center">
5703 <column alignment="center" valignment="top" width="0">
5704 <column alignment="center" valignment="top" width="0pt">
5705 <column alignment="center" valignment="top" width="0">
5706 <column alignment="center" valignment="top" width="0">
5707 <column alignment="center" valignment="top" width="0">
5709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5712 \begin_layout Plain Layout
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5721 \begin_layout Plain Layout
5727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5730 \begin_layout Plain Layout
5736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5739 \begin_layout Plain Layout
5745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5748 \begin_layout Plain Layout
5756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5759 \begin_layout Plain Layout
5765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5768 \begin_layout Plain Layout
5774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5777 \begin_layout Plain Layout
5783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5786 \begin_layout Plain Layout
5792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5795 \begin_layout Plain Layout
5803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5806 \begin_layout Plain Layout
5812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5815 \begin_layout Plain Layout
5821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5824 \begin_layout Plain Layout
5830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5833 \begin_layout Plain Layout
5839 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5842 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5853 \begin_layout Plain Layout
5859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5862 \begin_layout Plain Layout
5868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5871 \begin_layout Plain Layout
5877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5880 \begin_layout Plain Layout
5886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5889 \begin_layout Plain Layout
5897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5900 \begin_layout Plain Layout
5906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5909 \begin_layout Plain Layout
5915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5918 \begin_layout Plain Layout
5924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5927 \begin_layout Plain Layout
5933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5936 \begin_layout Plain Layout
5951 \begin_layout Plain Layout
5968 \begin_layout Plain Layout
5972 addtocounter{table}{-1}
5978 \begin_inset Note Note
5981 \begin_layout Plain Layout
5982 See the first greyed-out note in section
5983 \begin_inset space ~
5987 \begin_inset CommandInset ref
5989 reference "sub:Longtable-Captions"
5993 for an explanation of this command.
6001 \begin_layout Subsection
6003 \begin_inset Index idx
6006 \begin_layout Plain Layout
6007 Longtables ! Captions
6013 \begin_inset CommandInset label
6015 name "sub:Longtable-Captions"
6022 \begin_layout Standard
6023 A longtable cannot be put into a table float because floats can only be
6025 But the caption environment of floats can also be used for longtables when
6026 you use the longtable option
6030 as described in sec.
6031 \begin_inset space \thinspace{}
6035 \begin_inset CommandInset ref
6037 reference "sec:Longtables"
6042 Only one table row can contain the caption.
6045 \begin_layout Standard
6046 Here is a short longtable to see how it works:
6049 \begin_layout Standard
6050 \begin_inset Tabular
6051 <lyxtabular version="3" rows="6" columns="5">
6052 <features islongtable="true" longtabularalignment="center">
6053 <column alignment="center" valignment="top" width="0">
6054 <column alignment="center" valignment="top" width="0">
6055 <column alignment="center" valignment="top" width="0">
6056 <column alignment="center" valignment="top" width="0">
6057 <column alignment="center" valignment="top" width="0">
6058 <row caption="true">
6059 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6062 \begin_layout Plain Layout
6063 \begin_inset Caption
6065 \begin_layout Plain Layout
6066 Longtable with caption
6067 \begin_inset Argument
6070 \begin_layout Plain Layout
6086 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6089 \begin_layout Plain Layout
6095 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6098 \begin_layout Plain Layout
6104 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6107 \begin_layout Plain Layout
6113 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6116 \begin_layout Plain Layout
6124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6127 \begin_layout Plain Layout
6133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6136 \begin_layout Plain Layout
6142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6145 \begin_layout Plain Layout
6151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6154 \begin_layout Plain Layout
6160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6163 \begin_layout Plain Layout
6171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6174 \begin_layout Plain Layout
6180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6183 \begin_layout Plain Layout
6189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6192 \begin_layout Plain Layout
6198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6201 \begin_layout Plain Layout
6207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6210 \begin_layout Plain Layout
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Plain Layout
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6230 \begin_layout Plain Layout
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6239 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6257 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Plain Layout
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6277 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6304 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6315 \begin_layout Plain Layout
6321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6324 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6333 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6342 \begin_layout Plain Layout
6348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6351 \begin_layout Plain Layout
6365 \begin_layout Standard
6366 \begin_inset VSpace medskip
6370 \begin_inset Note Greyedout
6373 \begin_layout Plain Layout
6377 \begin_inset space ~
6382 The table number is increased for for every longtable, even if you did
6383 not set a caption for it.
6384 For this reason you could have the case that e.
6385 \begin_inset space \thinspace{}
6389 \begin_inset space \space{}
6393 \begin_inset space ~
6397 \begin_inset space ~
6400 2.1 in the list of tables if there are two longtables without captions.
6401 To avoid this you can add the following command in TeX-Code after every
6402 longtable without a caption:
6405 \begin_layout Plain Layout
6410 addtocounter{table}{-1}
6413 \begin_layout Plain Layout
6414 This is not needed when none of your longtables have a caption and you add
6415 the following code to the document preamble:
6418 \begin_layout Plain Layout
6428 \begin_inset Newline newline
6439 addtocounter{table}{-1}}
6447 \begin_layout Standard
6448 \begin_inset Note Greyedout
6451 \begin_layout Plain Layout
6455 \begin_inset space ~
6465 \begin_inset Index idx
6468 \begin_layout Plain Layout
6469 LaTeX-packages ! hyperref
6482 dialog to link cross-references, the link to a longtable caption will always
6483 point to the beginning of the document.
6491 \begin_layout Subsubsection
6492 References to Longtables
6493 \begin_inset Index idx
6496 \begin_layout Plain Layout
6497 Longtables ! References
6505 \begin_layout Standard
6506 \begin_inset Tabular
6507 <lyxtabular version="3" rows="6" columns="5">
6508 <features islongtable="true" longtabularalignment="center">
6509 <column alignment="center" valignment="top" width="0">
6510 <column alignment="center" valignment="top" width="0">
6511 <column alignment="center" valignment="top" width="0">
6512 <column alignment="center" valignment="top" width="0">
6513 <column alignment="center" valignment="top" width="0">
6514 <row caption="true">
6515 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6518 \begin_layout Plain Layout
6519 \begin_inset Caption
6521 \begin_layout Plain Layout
6522 Referenced longtable
6523 \begin_inset CommandInset label
6525 name "tab:RefExample"
6539 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6542 \begin_layout Plain Layout
6548 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6551 \begin_layout Plain Layout
6557 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6560 \begin_layout Plain Layout
6566 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6569 \begin_layout Plain Layout
6577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6580 \begin_layout Plain Layout
6586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6589 \begin_layout Plain Layout
6595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6598 \begin_layout Plain Layout
6604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6607 \begin_layout Plain Layout
6613 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6616 \begin_layout Plain Layout
6624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6627 \begin_layout Plain Layout
6633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6636 \begin_layout Plain Layout
6642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6645 \begin_layout Plain Layout
6651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6654 \begin_layout Plain Layout
6660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6663 \begin_layout Plain Layout
6671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6674 \begin_layout Plain Layout
6680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6683 \begin_layout Plain Layout
6689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6692 \begin_layout Plain Layout
6698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6701 \begin_layout Plain Layout
6707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6710 \begin_layout Plain Layout
6718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6721 \begin_layout Plain Layout
6727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6730 \begin_layout Plain Layout
6736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6739 \begin_layout Plain Layout
6745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6748 \begin_layout Plain Layout
6754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6757 \begin_layout Plain Layout
6765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6768 \begin_layout Plain Layout
6774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6777 \begin_layout Plain Layout
6783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6786 \begin_layout Plain Layout
6792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6795 \begin_layout Plain Layout
6801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6804 \begin_layout Plain Layout
6818 \begin_layout Standard
6819 To reference a longtable, insert a label into the caption.
6822 \begin_layout Standard
6823 This is a reference to Table
6824 \begin_inset space ~
6828 \begin_inset CommandInset ref
6830 reference "tab:RefExample"
6837 \begin_layout Standard
6838 The caption layout can be set together with all other captions of your document
6839 using the LaTeX-package
6844 \begin_inset Index idx
6847 \begin_layout Plain Layout
6848 LaTeX-packages ! caption
6854 \begin_inset space ~
6858 \begin_inset CommandInset ref
6860 reference "sec:Caption-Formatting"
6867 \begin_layout Subsubsection
6869 \begin_inset Index idx
6872 \begin_layout Plain Layout
6873 Longtables ! Caption Width
6881 \begin_layout Standard
6882 The maximal width of of caption lines is defined by the length
6889 Its default value is 4
6890 \begin_inset space \thinspace{}
6894 To change it add the following command to your document preamble or as
6895 TeX-Code into your document before the longtable that should be affected
6898 \begin_layout Standard
6908 \begin_layout Standard
6909 where the width could have one of the units listed in appendix
6910 \begin_inset space ~
6914 \begin_inset CommandInset ref
6916 reference "cha:Units-available-in"
6923 \begin_layout Standard
6924 The following tables show the difference:
6927 \begin_layout Standard
6928 \begin_inset Tabular
6929 <lyxtabular version="3" rows="6" columns="5">
6930 <features islongtable="true" longtabularalignment="center">
6931 <column alignment="center" valignment="top" width="0">
6932 <column alignment="center" valignment="top" width="0">
6933 <column alignment="center" valignment="top" width="0">
6934 <column alignment="center" valignment="top" width="0">
6935 <column alignment="center" valignment="top" width="0">
6936 <row caption="true">
6937 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6940 \begin_layout Plain Layout
6941 \begin_inset Caption
6943 \begin_layout Plain Layout
6944 long full title with default width long full title with default width long
6945 full title with default width
6946 \begin_inset Argument
6949 \begin_layout Plain Layout
6950 caption with default width
6965 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6968 \begin_layout Plain Layout
6974 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6977 \begin_layout Plain Layout
6983 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6986 \begin_layout Plain Layout
6992 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6995 \begin_layout Plain Layout
7003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7006 \begin_layout Plain Layout
7012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7015 \begin_layout Plain Layout
7021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7024 \begin_layout Plain Layout
7030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7033 \begin_layout Plain Layout
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7042 \begin_layout Plain Layout
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7053 \begin_layout Plain Layout
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7062 \begin_layout Plain Layout
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7071 \begin_layout Plain Layout
7077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7080 \begin_layout Plain Layout
7086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7089 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7100 \begin_layout Plain Layout
7106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7109 \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" rightline="true" usebox="none">
7136 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \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" rightline="true" usebox="none">
7183 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7194 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7203 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7221 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7230 \begin_layout Plain Layout
7244 \begin_layout Standard
7248 \begin_layout Plain Layout
7260 \begin_inset Tabular
7261 <lyxtabular version="3" rows="6" columns="5">
7262 <features islongtable="true" longtabularalignment="center">
7263 <column alignment="center" valignment="top" width="0">
7264 <column alignment="center" valignment="top" width="0">
7265 <column alignment="center" valignment="top" width="0">
7266 <column alignment="center" valignment="top" width="0">
7267 <column alignment="center" valignment="top" width="0">
7268 <row caption="true">
7269 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7272 \begin_layout Plain Layout
7273 \begin_inset Caption
7275 \begin_layout Plain Layout
7276 long full title with width set to 5
7277 \begin_inset space \thinspace{}
7280 cm long full title with width set to 5
7281 \begin_inset space \thinspace{}
7284 cm long full title with width set to 5
7285 \begin_inset space \thinspace{}
7289 \begin_inset Argument
7292 \begin_layout Plain Layout
7294 \begin_inset space \thinspace{}
7298 \begin_inset space \thinspace{}
7302 \begin_inset space \thinspace{}
7320 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7323 \begin_layout Plain Layout
7329 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7332 \begin_layout Plain Layout
7338 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7341 \begin_layout Plain Layout
7347 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7350 \begin_layout Plain Layout
7358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7361 \begin_layout Plain Layout
7367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7370 \begin_layout Plain Layout
7376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7379 \begin_layout Plain Layout
7385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7388 \begin_layout Plain Layout
7394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7397 \begin_layout Plain Layout
7405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7408 \begin_layout Plain Layout
7414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7417 \begin_layout Plain Layout
7423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7426 \begin_layout Plain Layout
7432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7435 \begin_layout Plain Layout
7441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7444 \begin_layout Plain Layout
7452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7455 \begin_layout Plain Layout
7461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7464 \begin_layout Plain Layout
7470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7473 \begin_layout Plain Layout
7479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7482 \begin_layout Plain Layout
7488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7491 \begin_layout Plain Layout
7499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7502 \begin_layout Plain Layout
7508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7511 \begin_layout Plain Layout
7517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7520 \begin_layout Plain Layout
7526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7529 \begin_layout Plain Layout
7535 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7538 \begin_layout Plain Layout
7546 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7549 \begin_layout Plain Layout
7555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7558 \begin_layout Plain Layout
7564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7567 \begin_layout Plain Layout
7573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7576 \begin_layout Plain Layout
7582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7585 \begin_layout Plain Layout
7599 \begin_layout Standard
7603 \begin_layout Plain Layout
7617 \begin_layout Standard
7618 \begin_inset Note Greyedout
7621 \begin_layout Plain Layout
7626 When the LaTeX-package
7631 \begin_inset Index idx
7634 \begin_layout Plain Layout
7635 LaTeX-packages ! caption
7640 is used, as in this document, the full page width is used for the caption
7641 when you use the default value of 4
7642 \begin_inset space \thinspace{}
7652 To get in this case exactly a 4
7653 \begin_inset space \thinspace{}
7656 in wide caption, you can either use a value slightly different from 4.0
7657 \begin_inset space \thinspace{}
7661 \begin_inset space \thinspace{}
7665 \begin_inset space \space{}
7669 \begin_inset space \thinspace{}
7672 in, or the LaTeX-command
7676 captionsetup{width=value}
7678 that is provided by the
7690 \begin_layout Subsubsection
7691 Different Captions for Table Pages
7692 \begin_inset Index idx
7695 \begin_layout Plain Layout
7696 Longtables ! Different Captions for Pages
7704 \begin_layout Standard
7705 When the table captions for the following pages should differ from the one
7706 of the first table page, insert a caption with the TeX code command
7709 \begin_layout Standard
7714 caption*{caption text}
7721 \begin_layout Standard
7722 in a dummy caption row that is marked as a header.
7724 \begin_inset space ~
7728 \begin_inset CommandInset ref
7730 reference "tab:DiffCaptions"
7734 is an example of a longtable with different heading where the second caption
7735 doesn't include the table number.
7738 \begin_layout Standard
7740 \begin_inset Tabular
7741 <lyxtabular version="3" rows="59" columns="3">
7742 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7743 <column alignment="left" valignment="top" width="0cm">
7744 <column alignment="left" valignment="top" width="0pt">
7745 <column alignment="center" valignment="top" width="0pt">
7746 <row caption="true">
7747 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7750 \begin_layout Plain Layout
7751 \begin_inset Caption
7753 \begin_layout Plain Layout
7755 \begin_inset CommandInset label
7757 name "tab:DiffCaptions"
7762 \begin_inset Argument
7765 \begin_layout Plain Layout
7781 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7784 \begin_layout Plain Layout
7790 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7793 \begin_layout Plain Layout
7800 <row endfirsthead="true">
7801 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7804 \begin_layout Plain Layout
7807 Example Phone List (ignore the names)
7812 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7815 \begin_layout Plain Layout
7821 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7824 \begin_layout Plain Layout
7831 <row endfirsthead="true">
7832 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7835 \begin_layout Plain Layout
7843 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7846 \begin_layout Plain Layout
7852 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7855 \begin_layout Plain Layout
7864 <row endhead="true">
7865 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7868 \begin_layout Plain Layout
7872 \begin_layout Plain Layout
7876 caption*{Continued Example Phone List}
7890 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7893 \begin_layout Plain Layout
7899 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7902 \begin_layout Plain Layout
7909 <row endhead="true">
7910 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7913 \begin_layout Plain Layout
7921 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7924 \begin_layout Plain Layout
7930 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7933 \begin_layout Plain Layout
7940 <row endhead="true">
7941 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7944 \begin_layout Plain Layout
7952 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7955 \begin_layout Plain Layout
7961 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7964 \begin_layout Plain Layout
7973 <row endfoot="true">
7974 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7977 \begin_layout Plain Layout
7978 continued on next page
7983 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7986 \begin_layout Plain Layout
7992 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7995 \begin_layout Plain Layout
8003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8006 \begin_layout Plain Layout
8014 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8017 \begin_layout Plain Layout
8023 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8026 \begin_layout Plain Layout
8034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8037 \begin_layout Plain Layout
8045 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8048 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8057 \begin_layout Plain Layout
8065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8068 \begin_layout Plain Layout
8076 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8079 \begin_layout Plain Layout
8085 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8088 \begin_layout Plain Layout
8096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8099 \begin_layout Plain Layout
8107 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8110 \begin_layout Plain Layout
8116 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8119 \begin_layout Plain Layout
8127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8130 \begin_layout Plain Layout
8138 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8141 \begin_layout Plain Layout
8147 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8150 \begin_layout Plain Layout
8158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8161 \begin_layout Plain Layout
8169 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8172 \begin_layout Plain Layout
8178 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8181 \begin_layout Plain Layout
8189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8192 \begin_layout Plain Layout
8200 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8203 \begin_layout Plain Layout
8209 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8212 \begin_layout Plain Layout
8220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8223 \begin_layout Plain Layout
8231 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8234 \begin_layout Plain Layout
8240 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8243 \begin_layout Plain Layout
8251 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8254 \begin_layout Plain Layout
8262 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8265 \begin_layout Plain Layout
8271 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8274 \begin_layout Plain Layout
8282 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8285 \begin_layout Plain Layout
8293 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8296 \begin_layout Plain Layout
8302 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8305 \begin_layout Plain Layout
8313 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8316 \begin_layout Plain Layout
8324 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8327 \begin_layout Plain Layout
8333 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8336 \begin_layout Plain Layout
8344 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8347 \begin_layout Plain Layout
8355 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8358 \begin_layout Plain Layout
8364 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8367 \begin_layout Plain Layout
8375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8378 \begin_layout Plain Layout
8386 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8389 \begin_layout Plain Layout
8395 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8398 \begin_layout Plain Layout
8406 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8409 \begin_layout Plain Layout
8417 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8420 \begin_layout Plain Layout
8426 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8429 \begin_layout Plain Layout
8437 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8440 \begin_layout Plain Layout
8449 \begin_layout Plain Layout
8460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8463 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8472 \begin_layout Plain Layout
8480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8483 \begin_layout Plain Layout
8491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8494 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8514 \begin_layout Plain Layout
8522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8525 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8534 \begin_layout Plain Layout
8542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8545 \begin_layout Plain Layout
8553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8556 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8565 \begin_layout Plain Layout
8573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8576 \begin_layout Plain Layout
8584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8587 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8596 \begin_layout Plain Layout
8604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8607 \begin_layout Plain Layout
8615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8618 \begin_layout Plain Layout
8624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8638 \begin_layout Plain Layout
8646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8649 \begin_layout Plain Layout
8655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8658 \begin_layout Plain Layout
8666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8669 \begin_layout Plain Layout
8677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8680 \begin_layout Plain Layout
8686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8711 \begin_layout Plain Layout
8717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8742 \begin_layout Plain Layout
8748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8773 \begin_layout Plain Layout
8779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8804 \begin_layout Plain Layout
8810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8835 \begin_layout Plain Layout
8841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8866 \begin_layout Plain Layout
8872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8897 \begin_layout Plain Layout
8903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8928 \begin_layout Plain Layout
8934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8956 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8959 \begin_layout Plain Layout
8965 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8979 \begin_layout Plain Layout
8985 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8988 \begin_layout Plain Layout
8994 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8997 \begin_layout Plain Layout
9005 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9008 \begin_layout Plain Layout
9016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9019 \begin_layout Plain Layout
9025 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9039 \begin_layout Plain Layout
9047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9050 \begin_layout Plain Layout
9056 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9070 \begin_layout Plain Layout
9078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9081 \begin_layout Plain Layout
9087 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9090 \begin_layout Plain Layout
9098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9101 \begin_layout Plain Layout
9109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9112 \begin_layout Plain Layout
9118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9121 \begin_layout Plain Layout
9129 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9132 \begin_layout Plain Layout
9140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9143 \begin_layout Plain Layout
9149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9152 \begin_layout Plain Layout
9160 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9163 \begin_layout Plain Layout
9171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9174 \begin_layout Plain Layout
9180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9183 \begin_layout Plain Layout
9191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9194 \begin_layout Plain Layout
9202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9205 \begin_layout Plain Layout
9211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9214 \begin_layout Plain Layout
9222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9225 \begin_layout Plain Layout
9233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9236 \begin_layout Plain Layout
9242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9245 \begin_layout Plain Layout
9253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9256 \begin_layout Plain Layout
9264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9267 \begin_layout Plain Layout
9273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9276 \begin_layout Plain Layout
9284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9287 \begin_layout Plain Layout
9295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9298 \begin_layout Plain Layout
9304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9307 \begin_layout Plain Layout
9315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9318 \begin_layout Plain Layout
9326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9329 \begin_layout Plain Layout
9335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9338 \begin_layout Plain Layout
9346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9349 \begin_layout Plain Layout
9357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9360 \begin_layout Plain Layout
9366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9369 \begin_layout Plain Layout
9377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9380 \begin_layout Plain Layout
9388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9391 \begin_layout Plain Layout
9397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9400 \begin_layout Plain Layout
9408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9411 \begin_layout Plain Layout
9419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9422 \begin_layout Plain Layout
9428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9431 \begin_layout Plain Layout
9439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9442 \begin_layout Plain Layout
9450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9453 \begin_layout Plain Layout
9459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9462 \begin_layout Plain Layout
9470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9473 \begin_layout Plain Layout
9481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9484 \begin_layout Plain Layout
9490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9493 \begin_layout Plain Layout
9501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9504 \begin_layout Plain Layout
9512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9515 \begin_layout Plain Layout
9521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9524 \begin_layout Plain Layout
9532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9535 \begin_layout Plain Layout
9543 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9546 \begin_layout Plain Layout
9552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9555 \begin_layout Plain Layout
9563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9566 \begin_layout Plain Layout
9574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9577 \begin_layout Plain Layout
9583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9586 \begin_layout Plain Layout
9594 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9597 \begin_layout Plain Layout
9605 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9608 \begin_layout Plain Layout
9614 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9617 \begin_layout Plain Layout
9631 \begin_layout Section
9632 Special Longtable Issues
9633 \begin_inset CommandInset label
9635 name "sec:Special-Longtable-Issues"
9642 \begin_layout Subsection
9643 Longtable Calculation
9644 \begin_inset Index idx
9647 \begin_layout Plain Layout
9648 Longtables ! Calculation
9656 \begin_layout Standard
9657 LaTeX calculates the height of table pages and their page breaks using so
9659 Chunks are parts of tables that held at the same time in LaTeX's memory.
9660 The default value was historically set to only 20 table rows.
9661 If you are using longtables with many pages this may slow down the creation
9663 You can safely increase the chunk size to values of 100-1000 by adding
9664 this command line to your document preamble:
9667 \begin_layout Standard
9672 setcounter{LTchunksize}{100}
9675 \begin_layout Subsection
9676 Floats and Longtables
9677 \begin_inset Index idx
9680 \begin_layout Plain Layout
9689 \begin_layout Standard
9690 There might be problems when a float appears on the same page where a longtable
9692 To avoid such a situation, insert a
9693 \begin_inset Quotes eld
9697 \begin_inset Quotes erd
9702 Insert\SpecialChar \menuseparator
9703 Formatting\SpecialChar \menuseparator
9705 \begin_inset space ~
9710 ) before your longtable.
9713 \begin_layout Subsection
9715 \begin_inset Index idx
9718 \begin_layout Plain Layout
9719 Longtables ! Forced Page Breaks
9727 \begin_layout Standard
9728 By default tables are only broken between rows.
9729 If you have a cell with multiples lines and want to have a page break within
9730 the cell, insert the new line command
9731 \begin_inset Quotes eld
9743 \begin_inset Quotes erd
9746 as TeX-Code at the point of the cell where it can be broken.
9755 command you have to insert in TeX-Code as many
9756 \begin_inset Quotes eld
9764 \begin_inset Quotes erd
9767 characters as the number of the following table columns.
9772 is the character to separate table cells.
9773 Write in TeX-Code after each
9777 the content of the corresponding following cell and delete the content
9779 \begin_inset Newline newline
9790 command, insert as many
9794 characters as the number of table columns before the current column.
9796 \begin_inset space ~
9800 \begin_inset CommandInset ref
9802 reference "tab:ForcedPagebreak"
9806 the cell that should be broken is in the second column followed by another
9808 Therefore the following command was inserted in the cell as TeX-Code after
9810 \begin_inset Quotes eld
9818 \begin_inset Quotes erd
9824 \begin_layout Standard
9834 \begin_inset Newline newline
9840 \begin_layout Standard
9842 \begin_inset Quotes eld
9846 \begin_inset Quotes erd
9849 in the third column of the row was deleted.
9856 is only needed when a page break should definitely occur at this position,
9857 otherwise it would be a conditional break.
9858 If your footer row of the longtable has for a certain reason no upper line
9859 but you would have a horizontal line where the cell is broken, use this
9863 \begin_layout Standard
9871 \begin_inset Newline newline
9879 \begin_layout Standard
9880 When the cell to be broken is in the last column, the command
9883 \begin_layout Standard
9893 \begin_layout Standard
9894 must be inserted as TeX-Code at the beginning of the cell.
9895 This ensures that the part of the cell that will be displayed on the new
9896 page appears with the full width.
9899 \begin_layout Standard
9901 \begin_inset Tabular
9902 <lyxtabular version="3" rows="38" columns="3">
9903 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9904 <column alignment="left" valignment="top" width="0cm">
9905 <column alignment="left" valignment="top" width="3cm">
9906 <column alignment="center" valignment="top" width="0pt">
9907 <row caption="true">
9908 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9911 \begin_layout Plain Layout
9912 \begin_inset Caption
9914 \begin_layout Plain Layout
9915 Table with forced page break in table cell
9916 \begin_inset CommandInset label
9918 name "tab:ForcedPagebreak"
9923 \begin_inset Argument
9926 \begin_layout Plain Layout
9927 Table with forced page break in table cell
9942 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9945 \begin_layout Plain Layout
9951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9954 \begin_layout Plain Layout
9961 <row endfirsthead="true">
9962 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9965 \begin_layout Plain Layout
9968 Example Phone List (ignore the names)
9973 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9976 \begin_layout Plain Layout
9982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9985 \begin_layout Plain Layout
9992 <row endfirsthead="true">
9993 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9996 \begin_layout Plain Layout
10004 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10007 \begin_layout Plain Layout
10013 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10016 \begin_layout Plain Layout
10025 <row endhead="true">
10026 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10029 \begin_layout Plain Layout
10033 \begin_layout Plain Layout
10037 caption*{Continued Example Phone List}
10051 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10054 \begin_layout Plain Layout
10060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10063 \begin_layout Plain Layout
10070 <row endhead="true">
10071 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10074 \begin_layout Plain Layout
10082 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10085 \begin_layout Plain Layout
10091 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10094 \begin_layout Plain Layout
10101 <row endhead="true">
10102 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10116 \begin_layout Plain Layout
10122 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10125 \begin_layout Plain Layout
10134 <row endfoot="true">
10135 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10138 \begin_layout Plain Layout
10139 continued on next page
10144 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10147 \begin_layout Plain Layout
10153 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10156 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10167 \begin_layout Plain Layout
10175 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10178 \begin_layout Plain Layout
10184 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10187 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10209 \begin_layout Plain Layout
10215 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10218 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10240 \begin_layout Plain Layout
10246 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10249 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10271 \begin_layout Plain Layout
10277 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10280 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10302 \begin_layout Plain Layout
10308 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10311 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10333 \begin_layout Plain Layout
10339 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10342 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10364 \begin_layout Plain Layout
10370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10373 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10395 \begin_layout Plain Layout
10401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10404 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10426 \begin_layout Plain Layout
10432 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10435 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10457 \begin_layout Plain Layout
10463 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10466 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10488 \begin_layout Plain Layout
10494 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10497 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10519 \begin_layout Plain Layout
10525 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10528 \begin_layout Plain Layout
10536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10539 \begin_layout Plain Layout
10547 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10550 \begin_layout Plain Layout
10556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10559 \begin_layout Plain Layout
10567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10570 \begin_layout Plain Layout
10578 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10581 \begin_layout Plain Layout
10587 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10590 \begin_layout Plain Layout
10598 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10601 \begin_layout Plain Layout
10609 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10612 \begin_layout Plain Layout
10618 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10621 \begin_layout Plain Layout
10629 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10632 \begin_layout Plain Layout
10640 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10643 \begin_layout Plain Layout
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10663 \begin_layout Plain Layout
10671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10674 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10694 \begin_layout Plain Layout
10702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10705 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10725 \begin_layout Plain Layout
10733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10736 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10756 \begin_layout Plain Layout
10764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10767 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10787 \begin_layout Plain Layout
10795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10798 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10818 \begin_layout Plain Layout
10826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10829 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10849 \begin_layout Plain Layout
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10862 Fürst von Montecompatri, 11.
10863 Fürst von Sulmona und Vivaro, 10.
10864 Fürst von Rossano, 5.
10865 Herzog von Canemorte, 11.
10866 Herzog von Palombara, 5.
10867 Herzog von Castelchiodato,
10871 \begin_layout Plain Layout
10882 \begin_layout Plain Layout
10890 Herzog von Poggionativo, 11.
10891 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10892 Graf von Valinfreda, 11.
10893 Baron von Cropalati, 11.
10894 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10899 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10902 \begin_layout Plain Layout
10910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10913 \begin_layout Plain Layout
10921 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10924 \begin_layout Plain Layout
10930 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10933 \begin_layout Plain Layout
10941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10944 \begin_layout Plain Layout
10952 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10955 \begin_layout Plain Layout
10961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10964 \begin_layout Plain Layout
10972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10975 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
10992 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10995 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11006 \begin_layout Plain Layout
11014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11017 \begin_layout Plain Layout
11023 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11026 \begin_layout Plain Layout
11034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11037 \begin_layout Plain Layout
11045 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11048 \begin_layout Plain Layout
11054 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11057 \begin_layout Plain Layout
11065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11068 \begin_layout Plain Layout
11076 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11079 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11088 \begin_layout Plain Layout
11096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11099 \begin_layout Plain Layout
11107 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11110 \begin_layout Plain Layout
11116 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11119 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11130 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11147 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11150 \begin_layout Plain Layout
11164 \begin_layout Section
11165 Multiple Lines Columns and Rows
11168 \begin_layout Subsection
11169 Multiple Lines in Table Cells
11170 \begin_inset CommandInset label
11172 name "sub:Multiple-Lines-in"
11177 \begin_inset Index idx
11180 \begin_layout Plain Layout
11181 Multiple Lines in Table Cells
11187 \begin_inset Index idx
11190 \begin_layout Plain Layout
11199 \begin_layout Standard
11201 \begin_inset Float table
11207 \begin_layout Plain Layout
11208 \begin_inset Caption
11210 \begin_layout Plain Layout
11211 \begin_inset CommandInset label
11213 name "tab:Table-with-multiple"
11217 Table with multiple lines in cells
11225 \begin_layout Plain Layout
11227 \begin_inset Tabular
11228 <lyxtabular version="3" rows="3" columns="3">
11229 <features tabularvalignment="middle">
11230 <column alignment="center" valignment="middle" width="2.5cm">
11231 <column alignment="center" valignment="middle" width="0">
11232 <column alignment="center" valignment="middle" width="0">
11234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11237 \begin_layout Plain Layout
11239 \begin_inset Newline linebreak
11247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11250 \begin_layout Plain Layout
11256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11259 \begin_layout Plain Layout
11267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11270 \begin_layout Plain Layout
11276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11279 \begin_layout Plain Layout
11285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11288 \begin_layout Plain Layout
11296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11299 \begin_layout Plain Layout
11305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11308 \begin_layout Plain Layout
11314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11317 \begin_layout Plain Layout
11336 \begin_layout Standard
11337 Setting a fixed width for a column enables you to enter text as a paragraph
11338 with multiple lines and hyphenation.
11341 \begin_layout Standard
11343 \begin_inset space ~
11347 \begin_inset CommandInset ref
11349 reference "tab:Table-with-multiple"
11353 , create a 3×3 table, mark the first cell and right-click on it.
11354 In the appearing table dialog we set a cell width of 2.5
11355 \begin_inset space \thinspace{}
11358 cm and choose centered for the vertical and horizontal alignment.
11359 The vertical alignment is used for all cells of the row.
11360 As our text is smaller than 2.5
11361 \begin_inset space \thinspace{}
11364 cm, only one line will appear.
11365 To get two lines, a justified line break (shortcut
11368 arg "newline-insert linebreak"
11372 If the text is wider than the set cell width, it will automatically be
11373 broken to several lines.
11376 \begin_layout Standard
11377 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11378 by LaTeX if it is the first entry.
11379 Therefore you need to insert something to prevent the word not being the
11381 So add a horizontal space of 0
11382 \begin_inset space \thinspace{}
11385 pt before the word.
11386 As the space is zero, it doesn't change the output.
11388 \begin_inset space ~
11392 \begin_inset CommandInset ref
11394 reference "tab:Table-with-and"
11401 \begin_layout Standard
11402 \begin_inset Float table
11408 \begin_layout Plain Layout
11409 \begin_inset Caption
11411 \begin_layout Plain Layout
11412 \begin_inset CommandInset label
11414 name "tab:Table-with-and"
11418 Table with and without hyphenation
11426 \begin_layout Plain Layout
11427 \begin_inset space \hfill{}
11431 \begin_inset Tabular
11432 <lyxtabular version="3" rows="3" columns="3">
11433 <features tabularvalignment="middle">
11434 <column alignment="center" valignment="middle" width="2.5cm">
11435 <column alignment="center" valignment="middle" width="0">
11436 <column alignment="center" valignment="middle" width="0">
11438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11441 \begin_layout Plain Layout
11442 verylongtablecellword
11447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11450 \begin_layout Plain Layout
11456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11459 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11470 \begin_layout Plain Layout
11476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11479 \begin_layout Plain Layout
11485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11488 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11508 \begin_layout Plain Layout
11514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11517 \begin_layout Plain Layout
11529 \begin_inset space \hfill{}
11533 \begin_inset Tabular
11534 <lyxtabular version="3" rows="3" columns="3">
11535 <features tabularvalignment="middle">
11536 <column alignment="center" valignment="middle" width="2.5cm">
11537 <column alignment="center" valignment="middle" width="0">
11538 <column alignment="center" valignment="middle" width="0">
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Plain Layout
11544 \begin_inset space \hspace{}
11548 verylongtablecellword
11553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11556 \begin_layout Plain Layout
11562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11565 \begin_layout Plain Layout
11573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11576 \begin_layout Plain Layout
11582 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11585 \begin_layout Plain Layout
11591 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11594 \begin_layout Plain Layout
11602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11605 \begin_layout Plain Layout
11611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11614 \begin_layout Plain Layout
11620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11623 \begin_layout Plain Layout
11635 \begin_inset space \hfill{}
11646 \begin_layout Subsection
11648 \begin_inset CommandInset label
11650 name "sub:Multicolumns"
11655 \begin_inset Index idx
11658 \begin_layout Plain Layout
11665 \begin_inset Index idx
11668 \begin_layout Plain Layout
11669 Table ! Multicolumns
11677 \begin_layout Subsubsection
11681 \begin_layout Standard
11682 To merge cells over multiple columns, select as many cells within a row
11683 as you want to merge and use either the table-toolbar button
11684 \begin_inset Graphics
11685 filename ../images/tabular-feature_multicolumn.png
11687 scaleBeforeRotation
11693 Edit\SpecialChar \menuseparator
11694 Table\SpecialChar \menuseparator
11697 , or right click on the marked cells and choose
11701 in the context menu.
11704 \begin_layout Standard
11705 Multicolumns have there own cell settings.
11706 That means changing cell borders, cell alignment, and the width only affects
11708 Here is an example table with a multicolumn cell in the first row and one
11709 in the last row without the upper border:
11712 \begin_layout Standard
11714 \begin_inset Tabular
11715 <lyxtabular version="3" rows="3" columns="4">
11716 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11717 <column alignment="center" valignment="top" width="0pt">
11718 <column alignment="center" valignment="middle" width="0">
11719 <column alignment="center" valignment="top" width="0in">
11720 <column alignment="center" valignment="top" width="0pt">
11722 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11725 \begin_layout Plain Layout
11731 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11734 \begin_layout Plain Layout
11740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11743 \begin_layout Plain Layout
11749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11752 \begin_layout Plain Layout
11760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11781 \begin_layout Plain Layout
11787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11790 \begin_layout Plain Layout
11796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11799 \begin_layout Plain Layout
11807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11828 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11837 \begin_layout Plain Layout
11851 \begin_layout Subsubsection
11852 Multicolumn Calculations
11853 \begin_inset CommandInset label
11855 name "sub:Multicolumn-Calculations"
11860 \begin_inset Index idx
11863 \begin_layout Plain Layout
11864 Multicolumns ! Calculations
11872 \begin_layout Standard
11873 LyX supports multicolumns directly, but we have to take account of the cell
11874 width of the columns spanned by the multicolumn cell.
11877 \begin_layout Standard
11878 \begin_inset Float table
11884 \begin_layout Plain Layout
11885 \begin_inset Caption
11887 \begin_layout Plain Layout
11888 \begin_inset CommandInset label
11890 name "tab:Table-with-centered"
11894 Table with centered multicolumn text above two columns that have exactly
11895 half the width of the multicolumn cell
11896 \begin_inset Argument
11899 \begin_layout Plain Layout
11900 Perfect multicolumn table
11913 \begin_layout Plain Layout
11915 \begin_inset Tabular
11916 <lyxtabular version="3" rows="3" columns="3">
11917 <features tabularvalignment="middle">
11918 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11919 <column alignment="center" valignment="middle" width="0">
11920 <column alignment="center" valignment="top" width="0">
11922 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11925 \begin_layout Plain Layout
11926 multiple lines multicolumn
11931 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11934 \begin_layout Plain Layout
11940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11943 \begin_layout Plain Layout
11951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11954 \begin_layout Plain Layout
11960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11963 \begin_layout Plain Layout
11969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11972 \begin_layout Plain Layout
11980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11983 \begin_layout Plain Layout
11989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11992 \begin_layout Plain Layout
11998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12001 \begin_layout Plain Layout
12020 \begin_layout Standard
12021 To create for example Table
12022 \begin_inset space ~
12026 \begin_inset CommandInset ref
12028 reference "tab:Table-with-centered"
12032 , mark the first two cells in the first row of a 3×3 table and right-click
12034 Now choose for this cell
12043 \begin_inset space \thinspace{}
12046 cm in the table dialog.
12047 The merged columns should have exactly half the width of the multicolumn
12048 cell, so that you would set a width of 1.25
12049 \begin_inset space \thinspace{}
12052 cm for the first column.
12053 The second column has then automatically a width of 1.25
12054 \begin_inset space \thinspace{}
12057 cm (multicolumn width - width of first column).
12058 This was done for Table
12059 \begin_inset space ~
12063 \begin_inset CommandInset ref
12065 reference "tab:Table-without-half"
12072 \begin_layout Standard
12073 \begin_inset Float table
12078 \begin_layout Plain Layout
12079 \begin_inset Caption
12081 \begin_layout Plain Layout
12082 \begin_inset CommandInset label
12084 name "tab:Table-without-half"
12088 Table where the spanned table columns are not exactly half the width of
12089 the multicolumn cell
12090 \begin_inset Argument
12093 \begin_layout Plain Layout
12094 Imperfect multicolumn table
12107 \begin_layout Plain Layout
12109 \begin_inset Tabular
12110 <lyxtabular version="3" rows="3" columns="3">
12111 <features tabularvalignment="middle">
12112 <column alignment="center" valignment="top" width="1.25cm">
12113 <column alignment="center" valignment="top" width="0">
12114 <column alignment="center" valignment="top" width="0">
12116 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12119 \begin_layout Plain Layout
12120 multiple lines multicolumn
12125 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12128 \begin_layout Plain Layout
12134 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12137 \begin_layout Plain Layout
12145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12148 \begin_layout Plain Layout
12154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12157 \begin_layout Plain Layout
12163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12166 \begin_layout Plain Layout
12174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12177 \begin_layout Plain Layout
12183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12186 \begin_layout Plain Layout
12192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12195 \begin_layout Plain Layout
12214 \begin_layout Standard
12215 You can see that the first column is not half the width of the multicolumn
12216 cell, it is a bit bigger.
12217 The reason is that the specified width of a cell
12218 \begin_inset Formula $W_{g}$
12221 is not its total width
12222 \begin_inset Formula $W_{\mathrm{tot}}$
12225 because a cell is always a bit larger than specified.
12227 \begin_inset space ~
12231 \begin_inset CommandInset ref
12233 reference "cha:Explanation-of-Equation"
12237 explains this in detail.
12240 \begin_layout Standard
12242 \begin_inset Formula $W_{g\, n}$
12245 which the user needs to set when
12249 columns are spanned can be calculated, so that each column has a total
12251 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12255 \begin_inset Formula
12257 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12265 \begin_layout Standard
12266 In our case we have
12267 \begin_inset Formula $n=2$
12271 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12274 cm and the default values for the lengths, so that equation
12275 \begin_inset CommandInset ref
12282 \begin_inset Formula
12284 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12292 \begin_layout Standard
12293 To enable calculations in LaTeX, the LaTeX-package
12297 must be loaded with the document preamble line
12298 \begin_inset Index idx
12301 \begin_layout Plain Layout
12302 LaTeX-packages ! calc
12310 \begin_layout Standard
12318 \begin_layout Standard
12319 LyX does not allow you to calculate lengths in the
12323 field of the table dialog.
12324 Therefore you have to format the column by inserting a LaTeX-argument in
12326 Here is an overview about the arguments:
12329 \begin_layout Itemize
12334 creates cell with a fixed width, its text is vertically top-aligned
12337 \begin_layout Itemize
12342 creates cell with a fixed width, its text is vertically centered
12345 \begin_layout Itemize
12350 creates cell with a fixed width, its text is vertically bottom-aligned
12353 \begin_layout Standard
12354 By entering a LaTeX-argument, all cell settings set in the table dialog
12358 \begin_layout Standard
12359 \begin_inset Note Greyedout
12362 \begin_layout Plain Layout
12367 Due to a bug, LyX shows the overwritten settings anyway.
12375 \begin_layout Standard
12376 As the text should be horizontally centered, the command
12383 You can now enter the following LaTeX-argument for the first spanned column:
12386 \begin_layout Standard
12391 centering}m{1.25cm-6.2pt}
12394 \begin_layout Standard
12399 means, that the commands inside the braces are applied before the cell
12403 \begin_layout Standard
12404 Although we have chosen centered alignment for the text of the multicolumn
12405 cell, it is still left aligned.
12406 This is because LyX only applies the alignment to single columns.
12407 So for the multicolumn cell we have to use the LaTeX-argument
12410 \begin_layout Standard
12418 \begin_layout Subsection
12420 \begin_inset CommandInset label
12422 name "sub:Multirows"
12427 \begin_inset Index idx
12430 \begin_layout Plain Layout
12437 \begin_inset Index idx
12440 \begin_layout Plain Layout
12449 \begin_layout Standard
12450 To merge cells over multiple rows, select as many cells within a column
12451 as you want to merge and use either the table-toolbar button
12452 \begin_inset Graphics
12453 filename ../images/tabular-feature_multirow.png
12455 scaleBeforeRotation
12461 Edit\SpecialChar \menuseparator
12462 Table\SpecialChar \menuseparator
12465 , or right click on the marked cells and choose
12469 in the context menu.
12472 \begin_layout Standard
12473 Here is an example table with a multirow in the first column:
12476 \begin_layout Standard
12478 \begin_inset Tabular
12479 <lyxtabular version="3" rows="3" columns="3">
12480 <features tabularvalignment="middle">
12481 <column alignment="center" valignment="top" width="0pt">
12482 <column alignment="center" valignment="top" width="0">
12483 <column alignment="center" valignment="top" width="0">
12485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12488 \begin_layout Plain Layout
12494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12497 \begin_layout Plain Layout
12503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12514 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12517 \begin_layout Plain Layout
12523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12526 \begin_layout Plain Layout
12532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12535 \begin_layout Plain Layout
12543 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12546 \begin_layout Plain Layout
12552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12555 \begin_layout Plain Layout
12561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12564 \begin_layout Plain Layout
12578 \begin_layout Standard
12579 The width of multirow cells is set by setting the width and alignment for
12585 shifts the content of the multirow up/down if the offset is positive/negative.
12588 \begin_layout Standard
12589 If the column of a multirow cell has no explicit width, the multirow cell
12590 inherits the alignment of the column.
12591 Otherwise it is by default left-aligned.
12592 To override the default, renew the command
12601 \begin_layout Standard
12613 \begin_layout Standard
12614 in the document preamble.
12615 Then all entries of multirow cells in the document are centered.
12616 If centering is only needed for several tables, you can renew the command
12617 in a TeX-Code box just before the table instead of the preamble.
12618 If the text should be right-aligned, replace
12631 To return to left-alignment
12640 \begin_layout Standard
12641 This is an example table with a right-aligned multirow cell that has a vertical
12643 \begin_inset space \thinspace{}
12647 \begin_inset space \thinspace{}
12653 \begin_layout Standard
12659 \begin_layout Plain Layout
12673 \begin_inset Tabular
12674 <lyxtabular version="3" rows="4" columns="3">
12675 <features tabularvalignment="middle">
12676 <column alignment="center" valignment="top" width="3cm">
12677 <column alignment="center" valignment="top" width="0">
12678 <column alignment="center" valignment="top" width="0">
12680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12683 \begin_layout Plain Layout
12689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12692 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12701 \begin_layout Plain Layout
12709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12712 \begin_layout Plain Layout
12718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12721 \begin_layout Plain Layout
12727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12730 \begin_layout Plain Layout
12738 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12741 \begin_layout Plain Layout
12747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12759 \begin_layout Plain Layout
12767 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12779 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12788 \begin_layout Plain Layout
12803 \begin_layout Plain Layout
12819 \begin_layout Standard
12820 To start a new line in a multirow you can use a forced line break (shortcut
12824 arg "newline-insert newline"
12827 ) but this will not respect the cell lines as demonstrated in this table:
12830 \begin_layout Standard
12833 \begin_inset Tabular
12834 <lyxtabular version="3" rows="3" columns="2">
12835 <features tabularvalignment="middle">
12836 <column alignment="left" valignment="middle" width="2cm">
12837 <column alignment="center" valignment="top" width="0">
12839 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12842 \begin_layout Plain Layout
12844 \begin_inset Newline newline
12848 \begin_inset Newline newline
12856 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12859 \begin_layout Plain Layout
12867 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12870 \begin_layout Plain Layout
12876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12879 \begin_layout Plain Layout
12887 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12890 \begin_layout Plain Layout
12896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12899 \begin_layout Plain Layout
12913 \begin_layout Standard
12914 Therefore be careful with forced line breaks.
12917 \begin_layout Section
12919 \begin_inset CommandInset label
12921 name "sec:Formal-Tables"
12926 \begin_inset Index idx
12929 \begin_layout Plain Layout
12938 \begin_layout Standard
12939 Tables are often typeset in books similar to Table
12940 \begin_inset space ~
12944 \begin_inset CommandInset ref
12946 reference "tab:Example-booktabs-table"
12951 This kind of tables is called
12952 \begin_inset Quotes eld
12960 \begin_inset Quotes erd
12964 To make a table a formal table use the option
12972 tab of the table dialog.
12975 \begin_layout Standard
12976 \begin_inset Float table
12982 \begin_layout Plain Layout
12983 \begin_inset Caption
12985 \begin_layout Plain Layout
12986 \begin_inset CommandInset label
12988 name "tab:Example-booktabs-table"
12992 Example booktabs-table
13000 \begin_layout Plain Layout
13002 \begin_inset Tabular
13003 <lyxtabular version="3" rows="8" columns="4">
13004 <features booktabs="true" tabularvalignment="middle">
13005 <column alignment="center" valignment="top" width="0">
13006 <column alignment="center" valignment="top" width="0">
13007 <column alignment="center" valignment="top" width="0">
13008 <column alignment="center" valignment="top" width="0">
13010 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13013 \begin_layout Plain Layout
13019 <cell alignment="center" valignment="top" topline="true" usebox="none">
13022 \begin_layout Plain Layout
13024 \begin_inset space \thinspace{}
13032 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13035 \begin_layout Plain Layout
13037 \begin_inset space \thinspace{}
13045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13048 \begin_layout Plain Layout
13056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13059 \begin_layout Plain Layout
13063 \begin_layout Plain Layout
13076 \begin_layout Plain Layout
13085 Detector thickness in µm
13090 <cell alignment="center" valignment="top" usebox="none">
13093 \begin_layout Plain Layout
13099 <cell alignment="center" valignment="top" usebox="none">
13102 \begin_layout Plain Layout
13108 <cell alignment="center" valignment="top" usebox="none">
13111 \begin_layout Plain Layout
13119 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13122 \begin_layout Plain Layout
13128 <cell alignment="center" valignment="top" topline="true" usebox="none">
13131 \begin_layout Plain Layout
13137 <cell alignment="center" valignment="top" topline="true" usebox="none">
13140 \begin_layout Plain Layout
13146 <cell alignment="center" valignment="top" topline="true" usebox="none">
13149 \begin_layout Plain Layout
13156 <row topspace="default">
13157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13160 \begin_layout Plain Layout
13161 Spatial resolution in µm
13166 <cell alignment="center" valignment="top" usebox="none">
13169 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" usebox="none">
13187 \begin_layout Plain Layout
13194 <row topspace="default">
13195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13198 \begin_layout Plain Layout
13200 \begin_inset Formula $f_{\mathrm{max}}$
13208 <cell alignment="center" valignment="top" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" usebox="none">
13220 \begin_layout Plain Layout
13226 <cell alignment="center" valignment="top" usebox="none">
13229 \begin_layout Plain Layout
13236 <row topspace="default">
13237 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13240 \begin_layout Plain Layout
13244 \begin_layout Plain Layout
13248 cmidrule(l{10pt}){1-1}
13253 LSF-spatial resolution
13258 <cell alignment="center" valignment="top" usebox="none">
13261 \begin_layout Plain Layout
13267 <cell alignment="center" valignment="top" usebox="none">
13270 \begin_layout Plain Layout
13276 <cell alignment="center" valignment="top" usebox="none">
13279 \begin_layout Plain Layout
13287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13290 \begin_layout Plain Layout
13296 <cell alignment="center" valignment="top" usebox="none">
13299 \begin_layout Plain Layout
13305 <cell alignment="center" valignment="top" usebox="none">
13308 \begin_layout Plain Layout
13314 <cell alignment="center" valignment="top" usebox="none">
13317 \begin_layout Plain Layout
13325 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13328 \begin_layout Plain Layout
13334 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13337 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13355 \begin_layout Plain Layout
13374 \begin_layout Standard
13375 Spaces to table rows can be added using the
13379 tab of the table dialog as described in section
13380 \begin_inset space ~
13384 \begin_inset CommandInset ref
13386 reference "sub:Row-Spacing"
13393 \begin_layout Standard
13394 Unlike normal tables, formal tables have no vertical table lines.
13395 The horizontal table lines can be set as for normal tables but they appear
13396 with different widths in the output:
13397 \begin_inset Newline newline
13400 The first and the last table line have a default width of 0.08
13401 \begin_inset space \thinspace{}
13404 em while the other lines have a default width of 0.05
13405 \begin_inset space \thinspace{}
13411 \begin_layout Standard
13412 The default widths can be changed with the following preamble lines
13415 \begin_layout Standard
13425 \begin_inset Newline newline
13437 \begin_layout Standard
13438 This example is for the first line, the so called
13443 If you want to change the width for the last line, replace
13452 To change the width for the other lines replace
13461 You can use all units listed in appendix
13462 \begin_inset space ~
13466 \begin_inset CommandInset ref
13468 reference "cha:Units-available-in"
13475 \begin_layout Standard
13476 Lines that do not span all table columns can be created by setting a table
13477 line for multicolumn cells.
13478 LyX will then internally use the command
13484 to create this line.
13488 \begin_layout Standard
13493 cmidrule[width](trim){startcol-endcol}
13496 \begin_layout Standard
13503 are currently not supported by LyX so you have to use TeX-Code to be able
13511 s can manually be created by inserting the command as TeX-Code as the first
13512 cell entry of the first cell of a row.
13513 The line is then drawn in the output above the current row.
13516 \begin_layout Standard
13517 The default for the width is 0.03
13518 \begin_inset space \thinspace{}
13522 Startcol is the number of the column where the line starts and endcol the
13523 column number where the line ends.
13524 The endcol always needs to be specified, also when the line should span
13526 The optional parameter trim could be either
13534 where the trimwidth is also optional.
13535 Using for example the parameter
13539 means that the line is trimmed from its left end by 2
13540 \begin_inset space \thinspace{}
13544 If you don't specify the trimwidth the lines are trimmed by the default
13546 \begin_inset space \thinspace{}
13552 \begin_layout Standard
13553 \begin_inset VSpace bigskip
13557 \begin_inset space ~
13561 \begin_inset CommandInset ref
13563 reference "tab:Example-booktabs-table"
13567 was created using the commands
13570 \begin_layout Standard
13580 \begin_layout Standard
13581 at the beginning of the second row and
13584 \begin_layout Standard
13589 cmidrule(l{10pt}){1-1}
13592 \begin_layout Standard
13596 \begin_layout Standard
13597 \begin_inset VSpace bigskip
13603 \begin_layout Standard
13604 You might want to have overlapping
13611 \begin_inset space ~
13615 \begin_inset CommandInset ref
13617 reference "tab:Special-booktabs-table"
13622 This can be achieved with the TeX-Code command
13625 \begin_layout Standard
13633 \begin_layout Standard
13634 The command that was used for the second row of Table
13635 \begin_inset space ~
13639 \begin_inset CommandInset ref
13641 reference "tab:Special-booktabs-table"
13648 \begin_layout Standard
13662 \begin_layout Standard
13663 The command for the sixth row is
13666 \begin_layout Standard
13678 \begin_layout Standard
13679 \begin_inset VSpace bigskip
13685 \begin_layout Standard
13686 If you are anyway not satisfied with the border line spacing, you can use
13687 the following command to produce lines that span over all table columns
13692 \begin_layout Standard
13697 specialrule{width}{space above}{space below}
13700 \begin_layout Standard
13701 For more information about these features, refer to the manual of the LaTeX-pack
13707 \begin_inset CommandInset citation
13714 \begin_inset Index idx
13717 \begin_layout Plain Layout
13718 LaTeX-packages ! booktabs
13726 \begin_layout Standard
13727 \begin_inset Float table
13733 \begin_layout Plain Layout
13734 \begin_inset Caption
13736 \begin_layout Plain Layout
13737 \begin_inset CommandInset label
13739 name "tab:Special-booktabs-table"
13743 Special booktabs-table
13751 \begin_layout Plain Layout
13753 \begin_inset Tabular
13754 <lyxtabular version="3" rows="8" columns="4">
13755 <features booktabs="true" tabularvalignment="middle">
13756 <column alignment="center" valignment="top" width="0">
13757 <column alignment="center" valignment="top" width="0">
13758 <column alignment="center" valignment="top" width="0">
13759 <column alignment="center" valignment="top" width="0">
13761 <cell alignment="center" valignment="top" topline="true" usebox="none">
13764 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" topline="true" usebox="none">
13773 \begin_layout Plain Layout
13775 \begin_inset space \thinspace{}
13783 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13786 \begin_layout Plain Layout
13788 \begin_inset space \thinspace{}
13796 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13799 \begin_layout Plain Layout
13807 <cell alignment="center" valignment="top" usebox="none">
13810 \begin_layout Plain Layout
13814 \begin_layout Plain Layout
13827 \begin_layout Plain Layout
13840 \begin_layout Plain Layout
13853 \begin_layout Plain Layout
13862 Detector thickness in µm
13867 <cell alignment="center" valignment="top" usebox="none">
13870 \begin_layout Plain Layout
13876 <cell alignment="center" valignment="top" usebox="none">
13879 \begin_layout Plain Layout
13885 <cell alignment="center" valignment="top" usebox="none">
13888 \begin_layout Plain Layout
13896 <cell alignment="center" valignment="top" topline="true" usebox="none">
13899 \begin_layout Plain Layout
13905 <cell alignment="center" valignment="top" topline="true" usebox="none">
13908 \begin_layout Plain Layout
13914 <cell alignment="center" valignment="top" topline="true" usebox="none">
13917 \begin_layout Plain Layout
13923 <cell alignment="center" valignment="top" topline="true" usebox="none">
13926 \begin_layout Plain Layout
13933 <row topspace="default">
13934 <cell alignment="center" valignment="top" usebox="none">
13937 \begin_layout Plain Layout
13938 Spatial resolution in µm
13943 <cell alignment="center" valignment="top" usebox="none">
13946 \begin_layout Plain Layout
13952 <cell alignment="center" valignment="top" usebox="none">
13955 \begin_layout Plain Layout
13961 <cell alignment="center" valignment="top" usebox="none">
13964 \begin_layout Plain Layout
13971 <row topspace="default">
13972 <cell alignment="center" valignment="top" usebox="none">
13975 \begin_layout Plain Layout
13977 \begin_inset Formula $f_{\mathrm{max}}$
13985 <cell alignment="center" valignment="top" usebox="none">
13988 \begin_layout Plain Layout
13994 <cell alignment="center" valignment="top" usebox="none">
13997 \begin_layout Plain Layout
14003 <cell alignment="center" valignment="top" usebox="none">
14006 \begin_layout Plain Layout
14014 <cell alignment="center" valignment="top" topline="true" usebox="none">
14017 \begin_layout Plain Layout
14021 \begin_layout Plain Layout
14034 \begin_layout Plain Layout
14043 LSF-spatial resolution
14048 <cell alignment="center" valignment="top" topline="true" usebox="none">
14051 \begin_layout Plain Layout
14057 <cell alignment="center" valignment="top" topline="true" usebox="none">
14060 \begin_layout Plain Layout
14066 <cell alignment="center" valignment="top" topline="true" usebox="none">
14069 \begin_layout Plain Layout
14077 <cell alignment="center" valignment="top" usebox="none">
14080 \begin_layout Plain Layout
14086 <cell alignment="center" valignment="top" usebox="none">
14089 \begin_layout Plain Layout
14095 <cell alignment="center" valignment="top" usebox="none">
14098 \begin_layout Plain Layout
14104 <cell alignment="center" valignment="top" usebox="none">
14107 \begin_layout Plain Layout
14115 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14118 \begin_layout Plain Layout
14124 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14127 \begin_layout Plain Layout
14133 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14136 \begin_layout Plain Layout
14142 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14145 \begin_layout Plain Layout
14164 \begin_layout Section
14165 Vertical Table Alignment
14166 \begin_inset Index idx
14169 \begin_layout Plain Layout
14178 \begin_layout Standard
14179 To align tables vertically in a text line the table must be inside a box.
14180 The box can then be vertically aligned as described in section
14181 \begin_inset space ~
14185 \begin_inset CommandInset ref
14187 reference "sec:Box-Dialog"
14194 \begin_layout Standard
14195 In the following example the tables are inside a minipage
14199 \begin_layout Plain Layout
14200 Minipages are described in section
14201 \begin_inset space ~
14205 \begin_inset CommandInset ref
14207 reference "sec:Minipages"
14216 box that has a width of 15
14217 \begin_inset space \thinspace{}
14223 \begin_layout Itemize
14225 \begin_inset Box Frameless
14235 height_special "totalheight"
14238 \begin_layout Plain Layout
14239 \begin_inset Tabular
14240 <lyxtabular version="3" rows="3" columns="3">
14241 <features tabularvalignment="middle">
14242 <column alignment="center" valignment="top" width="0">
14243 <column alignment="center" valignment="top" width="0">
14244 <column alignment="center" valignment="top" width="0">
14246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14249 \begin_layout Plain Layout
14255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14258 \begin_layout Plain Layout
14264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14267 \begin_layout Plain Layout
14275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14278 \begin_layout Plain Layout
14284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14287 \begin_layout Plain Layout
14293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14296 \begin_layout Plain Layout
14304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14307 \begin_layout Plain Layout
14313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14316 \begin_layout Plain Layout
14322 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14325 \begin_layout Plain Layout
14345 \begin_layout Plain Layout
14357 \begin_inset Box Frameless
14367 height_special "totalheight"
14370 \begin_layout Plain Layout
14371 \begin_inset Tabular
14372 <lyxtabular version="3" rows="3" columns="3">
14373 <features tabularvalignment="middle">
14374 <column alignment="center" valignment="top" width="0">
14375 <column alignment="center" valignment="top" width="0">
14376 <column alignment="center" valignment="top" width="0">
14378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14381 \begin_layout Plain Layout
14387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14390 \begin_layout Plain Layout
14396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14399 \begin_layout Plain Layout
14407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14410 \begin_layout Plain Layout
14416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14419 \begin_layout Plain Layout
14425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14428 \begin_layout Plain Layout
14436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14439 \begin_layout Plain Layout
14445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14448 \begin_layout Plain Layout
14454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14457 \begin_layout Plain Layout
14477 \begin_layout Plain Layout
14487 \begin_layout Itemize
14489 \begin_inset Box Frameless
14499 height_special "totalheight"
14502 \begin_layout Plain Layout
14503 \begin_inset Tabular
14504 <lyxtabular version="3" rows="3" columns="3">
14505 <features tabularvalignment="middle">
14506 <column alignment="center" valignment="top" width="0">
14507 <column alignment="center" valignment="top" width="0">
14508 <column alignment="center" valignment="top" width="0">
14510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14513 \begin_layout Plain Layout
14519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14522 \begin_layout Plain Layout
14528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14531 \begin_layout Plain Layout
14539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14542 \begin_layout Plain Layout
14548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14551 \begin_layout Plain Layout
14557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14560 \begin_layout Plain Layout
14568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14571 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14589 \begin_layout Plain Layout
14608 \begin_layout Itemize
14610 \begin_inset Box Frameless
14620 height_special "totalheight"
14623 \begin_layout Plain Layout
14624 \begin_inset Tabular
14625 <lyxtabular version="3" rows="3" columns="3">
14626 <features tabularvalignment="middle">
14627 <column alignment="center" valignment="top" width="0">
14628 <column alignment="center" valignment="top" width="0">
14629 <column alignment="center" valignment="top" width="0">
14631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14634 \begin_layout Plain Layout
14640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14643 \begin_layout Plain Layout
14649 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14652 \begin_layout Plain Layout
14660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14663 \begin_layout Plain Layout
14669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14672 \begin_layout Plain Layout
14678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14681 \begin_layout Plain Layout
14689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14692 \begin_layout Plain Layout
14698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14701 \begin_layout Plain Layout
14707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14710 \begin_layout Plain Layout
14730 \begin_layout Plain Layout
14742 \begin_inset Box Frameless
14752 height_special "totalheight"
14755 \begin_layout Plain Layout
14756 \begin_inset Tabular
14757 <lyxtabular version="3" rows="3" columns="3">
14758 <features tabularvalignment="middle">
14759 <column alignment="center" valignment="top" width="0">
14760 <column alignment="center" valignment="top" width="0">
14761 <column alignment="center" valignment="top" width="0">
14763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14766 \begin_layout Plain Layout
14772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14775 \begin_layout Plain Layout
14781 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14784 \begin_layout Plain Layout
14792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14795 \begin_layout Plain Layout
14801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14804 \begin_layout Plain Layout
14810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14813 \begin_layout Plain Layout
14821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14824 \begin_layout Plain Layout
14830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14833 \begin_layout Plain Layout
14839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14842 \begin_layout Plain Layout
14862 \begin_layout Plain Layout
14872 \begin_layout Standard
14873 As you will see, the content of the first and last table row is not correctly
14875 To get this alignment, the minipage box must be set into a raisebox
14879 \begin_layout Plain Layout
14880 Raiseboxes are described in section
14881 \begin_inset space ~
14885 \begin_inset CommandInset ref
14887 reference "sub:Vertical-Alignment"
14897 In the example above the second table in the first item is aligned using
14898 the TeX-Code-command
14901 \begin_layout Standard
14911 \begin_layout Standard
14913 After the box the closing brace
14917 is inserted as TeX-Code.
14918 For the second table in the last item the command
14921 \begin_layout Standard
14931 \begin_layout Standard
14935 \begin_layout Standard
14936 \begin_inset Note Greyedout
14939 \begin_layout Plain Layout
14944 The alignment of the table row content to the surrounding text line is
14946 The required value for the
14952 command for this alignment depends on the document font, the font size,
14953 and the table line thickness.
14961 \begin_layout Section
14963 \begin_inset CommandInset label
14965 name "sec:Colored-Tables"
14970 \begin_inset Index idx
14973 \begin_layout Plain Layout
14982 \begin_layout Subsection
14984 \begin_inset Index idx
14987 \begin_layout Plain Layout
14988 Table Color ! for Cells
14994 \begin_inset Index idx
14997 \begin_layout Plain Layout
14998 Color ! for Table Cells
15006 \begin_layout Standard
15007 \begin_inset Float table
15013 \begin_layout Plain Layout
15014 \begin_inset Caption
15016 \begin_layout Plain Layout
15017 \begin_inset CommandInset label
15019 name "tab:Table-colored-without"
15023 Table colored without using the package
15028 \begin_inset Argument
15031 \begin_layout Plain Layout
15032 Table without colortbl
15045 \begin_layout Plain Layout
15047 \begin_inset Tabular
15048 <lyxtabular version="3" rows="3" columns="3">
15049 <features tabularvalignment="middle">
15050 <column alignment="center" valignment="top" width="0">
15051 <column alignment="center" valignment="top" width="0">
15052 <column alignment="center" valignment="top" width="0">
15054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15057 \begin_layout Plain Layout
15065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15068 \begin_layout Plain Layout
15076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15079 \begin_layout Plain Layout
15089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15092 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15103 \begin_layout Plain Layout
15111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15114 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15127 \begin_layout Plain Layout
15135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15138 \begin_layout Plain Layout
15146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15149 \begin_layout Plain Layout
15170 \begin_layout Standard
15171 If you only need colored text, mark the cells and choose a color in the
15174 Edit\SpecialChar \menuseparator
15176 \begin_inset space ~
15182 This was used to create Table
15183 \begin_inset space ~
15187 \begin_inset CommandInset ref
15189 reference "tab:Table-colored-without"
15194 In any other case you have to use the LaTeX-package
15199 \begin_inset Index idx
15202 \begin_layout Plain Layout
15203 LaTeX-packages ! colortbl
15211 \begin_layout Standard
15215 \begin_layout Plain Layout
15225 \begin_inset Note Note
15228 \begin_layout Plain Layout
15229 The following section part will only be displayed when the LaTeX-package
15242 \begin_layout Standard
15243 To create colored tables,
15247 must be loaded in the preamble with the line
15250 \begin_layout Standard
15255 usepackage{colortbl}
15258 \begin_layout Standard
15259 The color of a column is adjusted with the command
15262 \begin_layout Standard
15267 columncolor{name of color}
15270 \begin_layout Standard
15276 More about the command
15280 is contained in section
15281 \begin_inset space ~
15285 \begin_inset CommandInset ref
15287 reference "sub:Multicolumn-Calculations"
15294 \begin_layout Standard
15295 The following color names are predefined:
15298 \begin_layout Standard
15332 \begin_layout Standard
15333 \begin_inset VSpace medskip
15339 \begin_layout Standard
15340 You can also define your own color with the command
15343 \begin_layout Standard
15348 definecolor{color name}{color model}{color values}
15351 \begin_layout Standard
15352 The color model can be
15355 \begin_layout Labeling
15356 \labelwidthstring 00.00.0000
15357 cmyk: cyan, magenta, yellow, black
15360 \begin_layout Labeling
15361 \labelwidthstring 00.00.0000
15362 rgb: red, green blue
15365 \begin_layout Labeling
15366 \labelwidthstring 00.00.0000
15370 \begin_layout Standard
15371 and the color values are comma separated numbers between 0 and 1 describing
15372 the factor for the corresponding color of the color model.
15375 \begin_layout Standard
15377 \begin_inset space \thinspace{}
15381 \begin_inset space \space{}
15388 " in the preamble with
15391 \begin_layout Standard
15396 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15399 \begin_layout Standard
15407 \begin_layout Standard
15412 definecolor{lightgray}{gray}{0.8}
15415 \begin_layout Standard
15416 \begin_inset VSpace medskip
15422 \begin_layout Standard
15423 Lines are colored with the command
15426 \begin_layout Standard
15431 rowcolor{name of color}
15434 \begin_layout Standard
15435 and cells are colored with the command
15438 \begin_layout Standard
15443 cellcolor{name of color}
15446 \begin_layout Standard
15447 Both commands are inserted at the beginning of a cell as TeX-Code.
15450 \begin_layout Standard
15451 To color characters in the table, mark the cells and use the LyX menu
15453 Edit\SpecialChar \menuseparator
15455 \begin_inset space ~
15461 If a cell contains TeX-Code mark only the characters, otherwise the colored
15462 TeX-Code will cause LaTeX-errors.
15465 \begin_layout Standard
15466 \begin_inset Note Greyedout
15469 \begin_layout Plain Layout
15474 Not all DVI-viewers are able to display self-defined colors.
15482 \begin_layout Standard
15483 \begin_inset VSpace bigskip
15489 \begin_layout Standard
15491 \begin_inset space ~
15495 \begin_inset CommandInset ref
15497 reference "tab:Table-colored-using"
15501 do the following: The color of the first column should be
15509 \begin_layout Standard
15514 columncolor{darkgreen}
15519 \begin_layout Standard
15520 as LaTeX-argument for this column.
15521 The first row should be blue, therefore the TeX-Code command
15524 \begin_layout Standard
15532 \begin_layout Standard
15533 is inserted to the first cell of this row.
15534 Note that this overwrites the column color for the first cell.
15535 The last cell of the last row is colored magenta by inserting the TeX-Code
15539 \begin_layout Standard
15547 \begin_layout Standard
15548 The characters could now be colored using the menu
15550 Edit\SpecialChar \menuseparator
15552 \begin_inset space ~
15560 \begin_layout Standard
15561 \begin_inset Float table
15567 \begin_layout Plain Layout
15568 \begin_inset Caption
15570 \begin_layout Plain Layout
15571 \begin_inset CommandInset label
15573 name "tab:Table-colored-using"
15577 Table colored using the package
15582 \begin_inset Argument
15585 \begin_layout Plain Layout
15586 Table with colortbl
15599 \begin_layout Plain Layout
15601 \begin_inset Tabular
15602 <lyxtabular version="3" rows="3" columns="3">
15603 <features tabularvalignment="middle">
15604 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15605 <column alignment="center" valignment="top" width="0">
15606 <column alignment="center" valignment="top" width="0">
15608 <cell alignment="center" valignment="top" usebox="none">
15611 \begin_layout Plain Layout
15615 \begin_layout Plain Layout
15631 <cell alignment="center" valignment="top" usebox="none">
15634 \begin_layout Plain Layout
15642 <cell alignment="center" valignment="top" usebox="none">
15645 \begin_layout Plain Layout
15655 <cell alignment="center" valignment="top" usebox="none">
15658 \begin_layout Plain Layout
15666 <cell alignment="center" valignment="top" usebox="none">
15669 \begin_layout Plain Layout
15677 <cell alignment="center" valignment="top" usebox="none">
15680 \begin_layout Plain Layout
15690 <cell alignment="center" valignment="top" usebox="none">
15693 \begin_layout Plain Layout
15701 <cell alignment="center" valignment="top" usebox="none">
15704 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" usebox="none">
15715 \begin_layout Plain Layout
15719 \begin_layout Plain Layout
15748 \begin_layout Standard
15752 \begin_layout Plain Layout
15762 \begin_inset Note Note
15765 \begin_layout Plain Layout
15766 The following will be displayed when the LaTeX-package
15778 \begin_layout Standard
15779 You need to install the package
15783 to see the content of this section in the output.
15786 \begin_layout Standard
15790 \begin_layout Plain Layout
15802 \begin_layout Subsection
15804 \begin_inset Index idx
15807 \begin_layout Plain Layout
15808 Table Color ! for Lines
15814 \begin_inset Index idx
15817 \begin_layout Plain Layout
15818 Color ! for Table Lines
15826 \begin_layout Standard
15827 As described in section
15828 \begin_inset space ~
15832 \begin_inset CommandInset ref
15834 reference "sub:Line-Thickness"
15838 , the line thickness for all lines in a table can be adjusted with the length
15847 \begin_inset space \thinspace{}
15850 pt for all tables of this section.
15854 \begin_layout Plain Layout
15860 arrayrulewidth}{1.5pt}
15868 \begin_layout Standard
15869 To color vertical lines for example with green, create the following column
15870 format in the document preamble, according to the description in section
15871 \begin_inset space ~
15875 \begin_inset CommandInset ref
15877 reference "sub:Customized-Format"
15884 \begin_layout Standard
15889 newcolumntype{W}{!{
15896 \begin_layout Standard
15898 \begin_inset space ~
15902 \begin_inset CommandInset ref
15904 reference "tab:Table-with-vertical-colored"
15912 was used for the last column and
15916 for the other columns.
15919 \begin_layout Standard
15920 If you want to have several colors, define more column formats.
15923 \begin_layout Standard
15924 \begin_inset Float table
15930 \begin_layout Plain Layout
15931 \begin_inset Caption
15933 \begin_layout Plain Layout
15934 \begin_inset CommandInset label
15936 name "tab:Table-with-vertical-colored"
15940 Table with colored vertical lines
15948 \begin_layout Plain Layout
15950 \begin_inset Tabular
15951 <lyxtabular version="3" rows="3" columns="3">
15952 <features tabularvalignment="middle">
15953 <column alignment="center" valignment="top" width="0" special="Wc">
15954 <column alignment="center" valignment="top" width="0" special="Wc">
15955 <column alignment="center" valignment="top" width="0" special="WcW">
15957 <cell alignment="center" valignment="top" topline="true" usebox="none">
15960 \begin_layout Plain Layout
15966 <cell alignment="center" valignment="top" topline="true" usebox="none">
15969 \begin_layout Plain Layout
15975 <cell alignment="center" valignment="top" topline="true" usebox="none">
15978 \begin_layout Plain Layout
15986 <cell alignment="center" valignment="top" topline="true" usebox="none">
15989 \begin_layout Plain Layout
15995 <cell alignment="center" valignment="top" topline="true" usebox="none">
15998 \begin_layout Plain Layout
16004 <cell alignment="center" valignment="top" topline="true" usebox="none">
16007 \begin_layout Plain Layout
16015 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16018 \begin_layout Plain Layout
16024 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16027 \begin_layout Plain Layout
16033 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16036 \begin_layout Plain Layout
16055 \begin_layout Standard
16056 \begin_inset VSpace bigskip
16059 To color horizontal lines for example with red, as in Table
16060 \begin_inset space ~
16064 \begin_inset CommandInset ref
16066 reference "tab:Table-with-horizontal-colored"
16070 , insert these commands in TeX-Code before the table or table float:
16073 \begin_layout Standard
16083 \begin_inset Newline newline
16091 \begin_inset Newline newline
16095 \begin_inset Phantom HPhantom
16098 \begin_layout Plain Layout
16101 \begin_inset space ~
16111 arrayrulecolor{red}
16115 arrayrulecolor{black}}
16118 \begin_layout Standard
16122 \begin_layout Plain Layout
16133 \begin_layout Plain Layout
16142 \begin_layout Plain Layout
16146 arrayrulecolor{red}
16150 arrayrulecolor{black}}
16156 \begin_inset Float table
16162 \begin_layout Plain Layout
16163 \begin_inset Caption
16165 \begin_layout Plain Layout
16166 \begin_inset CommandInset label
16168 name "tab:Table-with-horizontal-colored"
16172 Table with colored horizontal lines
16180 \begin_layout Plain Layout
16182 \begin_inset Tabular
16183 <lyxtabular version="3" rows="3" columns="3">
16184 <features tabularvalignment="middle">
16185 <column alignment="center" valignment="top" width="0">
16186 <column alignment="center" valignment="top" width="0">
16187 <column alignment="center" valignment="top" width="0">
16189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16192 \begin_layout Plain Layout
16198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16201 \begin_layout Plain Layout
16207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16210 \begin_layout Plain Layout
16218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16221 \begin_layout Plain Layout
16227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16230 \begin_layout Plain Layout
16236 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16239 \begin_layout Plain Layout
16247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16250 \begin_layout Plain Layout
16256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16259 \begin_layout Plain Layout
16265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16268 \begin_layout Plain Layout
16287 \begin_layout Standard
16288 To return to the default line color black, insert this command in TeX-Code
16289 after the table or table float:
16292 \begin_layout Standard
16304 \begin_layout Standard
16306 \begin_inset space ~
16310 \begin_inset CommandInset ref
16312 reference "tab:Table-with-colored"
16316 is an example with colored vertical and horizontal lines.
16319 \begin_layout Standard
16320 \begin_inset Float table
16326 \begin_layout Plain Layout
16327 \begin_inset Caption
16329 \begin_layout Plain Layout
16330 \begin_inset CommandInset label
16332 name "tab:Table-with-colored"
16336 Table with colored lines
16344 \begin_layout Plain Layout
16346 \begin_inset Tabular
16347 <lyxtabular version="3" rows="3" columns="3">
16348 <features tabularvalignment="middle">
16349 <column alignment="center" valignment="top" width="0" special="Wc">
16350 <column alignment="center" valignment="top" width="0" special="Wc">
16351 <column alignment="center" valignment="top" width="0" special="WcW">
16353 <cell alignment="center" valignment="top" topline="true" usebox="none">
16356 \begin_layout Plain Layout
16362 <cell alignment="center" valignment="top" topline="true" usebox="none">
16365 \begin_layout Plain Layout
16371 <cell alignment="center" valignment="top" topline="true" usebox="none">
16374 \begin_layout Plain Layout
16382 <cell alignment="center" valignment="top" topline="true" usebox="none">
16385 \begin_layout Plain Layout
16391 <cell alignment="center" valignment="top" topline="true" usebox="none">
16394 \begin_layout Plain Layout
16400 <cell alignment="center" valignment="top" topline="true" usebox="none">
16403 \begin_layout Plain Layout
16410 <row topspace="default">
16411 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16414 \begin_layout Plain Layout
16420 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16423 \begin_layout Plain Layout
16429 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16432 \begin_layout Plain Layout
16451 \begin_layout Standard
16455 \begin_layout Plain Layout
16471 \begin_layout Standard
16475 \begin_layout Plain Layout
16481 arrayrulewidth}{0.4pt}
16489 \begin_layout Section
16490 Table Customization
16491 \begin_inset Index idx
16494 \begin_layout Plain Layout
16495 Table Customization
16501 \begin_inset Index idx
16504 \begin_layout Plain Layout
16505 Table ! Customization
16513 \begin_layout Subsection
16515 \begin_inset CommandInset label
16517 name "sub:Row-Spacing"
16522 \begin_inset Index idx
16525 \begin_layout Plain Layout
16526 Table Customization ! Row Spacing
16534 \begin_layout Standard
16535 You can add vertical space to table rows in the
16539 tab of the table dialog.
16540 You find there three possibilities:
16543 \begin_layout Description
16545 \begin_inset space ~
16549 \begin_inset space ~
16552 row will add space above the characters of the table row.
16553 If the table is a formal table
16557 \begin_layout Plain Layout
16558 Formal tables are explained in section
16559 \begin_inset space ~
16563 \begin_inset CommandInset ref
16565 reference "sec:Formal-Tables"
16574 LyX will insert as default 0.5
16575 \begin_inset space \thinspace{}
16579 For normal tables the inserted space will unfortunately destroy the vertical
16580 table lines as in the following table:
16581 \begin_inset VSpace medskip
16585 \begin_inset Newline newline
16589 \begin_inset space \hspace*{}
16594 \begin_inset space \hfill{}
16598 \begin_inset Tabular
16599 <lyxtabular version="3" rows="3" columns="1">
16600 <features tabularvalignment="middle">
16601 <column alignment="center" valignment="top" width="0">
16603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16606 \begin_layout Plain Layout
16613 <row topspace="3mm">
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16617 \begin_layout Plain Layout
16619 \begin_inset space \thinspace{}
16622 mm space top of row
16629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16632 \begin_layout Plain Layout
16644 \begin_inset space \hfill{}
16648 \begin_inset space \hspace*{}
16653 \begin_inset VSpace medskip
16657 \begin_inset Newline newline
16660 So inserting space in the top of row for normal tables is only useful when
16661 you don't have vertical lines.
16664 \begin_layout Description
16666 \begin_inset space ~
16670 \begin_inset space ~
16673 row will add space below the characters of the table row.
16674 If the table is a formal table LyX will insert as default 0.5
16675 \begin_inset space \thinspace{}
16678 em space, for normal tables the default size is 2
16679 \begin_inset space \thinspace{}
16685 \begin_layout Description
16687 \begin_inset space ~
16690 rows adds space between the current and the following row.
16691 If the table is a formal table LyX will insert as default 0.5
16692 \begin_inset space \thinspace{}
16696 For normal tables the inserted space will unfortunately destroy the vertical
16697 table lines as in the following table:
16698 \begin_inset VSpace medskip
16702 \begin_inset Newline newline
16706 \begin_inset space \hspace*{}
16711 \begin_inset space \hfill{}
16715 \begin_inset Tabular
16716 <lyxtabular version="3" rows="3" columns="1">
16717 <features tabularvalignment="middle">
16718 <column alignment="center" valignment="top" width="0">
16720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16723 \begin_layout Plain Layout
16730 <row interlinespace="3mm">
16731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16734 \begin_layout Plain Layout
16735 \begin_inset Formula $\downarrow$
16739 \begin_inset space \thinspace{}
16742 mm space between row
16743 \begin_inset Formula $\downarrow$
16753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16756 \begin_layout Plain Layout
16757 \begin_inset Formula $\uparrow$
16761 \begin_inset space \thinspace{}
16764 mm space between row
16765 \begin_inset Formula $\uparrow$
16779 \begin_inset space \hfill{}
16783 \begin_inset space \hspace*{}
16788 \begin_inset VSpace medskip
16792 \begin_inset Newline newline
16795 So inserting space between rows for normal tables is only useful when you
16796 don't have vertical lines.
16799 \begin_layout Standard
16800 \begin_inset VSpace bigskip
16803 When you want to add extra height to all cells of all tables, you can do
16804 this with the following preamble lines:
16807 \begin_layout Standard
16812 @ifundefined{extrarowheight}
16813 \begin_inset Newline newline
16817 \begin_inset Phantom HPhantom
16820 \begin_layout Plain Layout
16823 \begin_inset space ~
16833 usepackage{array}}{}
16834 \begin_inset Newline newline
16841 extrarowheight}{height}
16844 \begin_layout Standard
16845 But this has the disadvantage that the cell texts are no longer exactly
16846 vertically centered.
16851 will be loaded automatically by LyX when you use self defined table formats.
16852 To avoid that it being loaded twice the command
16858 is used in the above command.)
16861 \begin_layout Standard
16862 If you are using font sizes larger than the normal size, the table borders
16863 are often too close to the letters.
16864 This can be corrected by inserting the command
16870 in TeX code at the beginning of a table row.
16872 \begin_inset space ~
16876 \begin_inset CommandInset ref
16878 reference "tab:Vertical-alignment-of"
16882 illustrates the effect.
16885 \begin_layout Standard
16887 \begin_inset Float table
16893 \begin_layout Plain Layout
16894 \begin_inset Caption
16896 \begin_layout Plain Layout
16897 \begin_inset CommandInset label
16899 name "tab:Vertical-alignment-of"
16903 Vertical alignment of text with large font sizes.
16911 \begin_layout Plain Layout
16912 \begin_inset space \hfill{}
16916 \begin_inset Float table
16921 \begin_layout Plain Layout
16922 \begin_inset Caption
16924 \begin_layout Plain Layout
16933 \begin_layout Plain Layout
16936 \begin_inset Tabular
16937 <lyxtabular version="3" rows="6" columns="1">
16938 <features tabularvalignment="middle">
16939 <column alignment="left" valignment="top" width="0">
16941 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16952 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16955 \begin_layout Plain Layout
16965 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16968 \begin_layout Plain Layout
16978 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16981 \begin_layout Plain Layout
16991 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16994 \begin_layout Plain Layout
17004 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17007 \begin_layout Plain Layout
17026 \begin_inset space \hfill{}
17030 \begin_inset Float table
17035 \begin_layout Plain Layout
17036 \begin_inset Caption
17038 \begin_layout Plain Layout
17039 Table using the command
17053 \begin_layout Plain Layout
17056 \begin_inset Tabular
17057 <lyxtabular version="3" rows="6" columns="1">
17058 <features tabularvalignment="middle">
17059 <column alignment="left" valignment="top" width="0">
17061 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17064 \begin_layout Plain Layout
17072 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17075 \begin_layout Plain Layout
17081 \begin_layout Plain Layout
17097 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17100 \begin_layout Plain Layout
17106 \begin_layout Plain Layout
17122 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17125 \begin_layout Plain Layout
17131 \begin_layout Plain Layout
17147 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17150 \begin_layout Plain Layout
17156 \begin_layout Plain Layout
17172 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17175 \begin_layout Plain Layout
17181 \begin_layout Plain Layout
17208 \begin_inset space \hfill{}
17219 \begin_layout Subsection
17220 Special Cell Alignment
17221 \begin_inset CommandInset label
17223 name "sub:Special-Cell-Alignment"
17228 \begin_inset Index idx
17231 \begin_layout Plain Layout
17232 Table Customization ! Special Cell Alignment
17240 \begin_layout Standard
17241 Sometimes it looks better when the cell entries of a column are aligned
17242 with a special character, e.
17243 \begin_inset space \thinspace{}
17247 \begin_inset space \space{}
17250 with the decimal separator as in Table
17251 \begin_inset space ~
17255 \begin_inset CommandInset ref
17257 reference "tab:Table-cells-align"
17262 This alignment is achieved by setting the cursor into the column and then
17263 either pressing the toolbar button
17264 \begin_inset Graphics
17265 filename ../images/tabular-feature_align-decimal.png
17267 scaleBeforeRotation
17271 or setting the alignment in the table settings to
17274 \begin_inset space ~
17278 \begin_inset space ~
17284 The alignment character can be a character of your choice and is specified
17285 in the table settings.
17288 \begin_layout Standard
17289 \begin_inset Float table
17295 \begin_layout Plain Layout
17296 \begin_inset Caption
17298 \begin_layout Plain Layout
17299 \begin_inset CommandInset label
17301 name "tab:Table-cells-align"
17305 Table cells of a column aligned with the decimal separator.
17313 \begin_layout Plain Layout
17315 \begin_inset Tabular
17316 <lyxtabular version="3" rows="4" columns="1">
17317 <features booktabs="true" tabularvalignment="middle">
17318 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17320 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17323 \begin_layout Plain Layout
17331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17334 \begin_layout Plain Layout
17342 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17345 \begin_layout Plain Layout
17353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17356 \begin_layout Plain Layout
17375 \begin_layout Standard
17376 \begin_inset Float table
17382 \begin_layout Plain Layout
17383 \begin_inset Caption
17385 \begin_layout Plain Layout
17386 \begin_inset CommandInset label
17388 name "tab:Table-align-operator"
17392 Table cells of a column aligned with the operators.
17400 \begin_layout Plain Layout
17402 \begin_inset Tabular
17403 <lyxtabular version="3" rows="4" columns="2">
17404 <features booktabs="true" tabularvalignment="middle">
17405 <column alignment="right" valignment="top" width="0pt">
17406 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17408 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17411 \begin_layout Plain Layout
17417 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17420 \begin_layout Plain Layout
17428 <cell alignment="center" valignment="top" usebox="none">
17431 \begin_layout Plain Layout
17432 \begin_inset Formula $12\,+$
17440 <cell alignment="center" valignment="top" usebox="none">
17443 \begin_layout Plain Layout
17444 \begin_inset Formula $\,6$
17454 <cell alignment="center" valignment="top" usebox="none">
17457 \begin_layout Plain Layout
17458 \begin_inset Formula $0\,-$
17466 <cell alignment="center" valignment="top" usebox="none">
17469 \begin_layout Plain Layout
17470 \begin_inset Formula $\,68$
17480 <cell alignment="center" valignment="top" usebox="none">
17483 \begin_layout Plain Layout
17484 \begin_inset Formula $-123\,/$
17492 <cell alignment="center" valignment="top" usebox="none">
17495 \begin_layout Plain Layout
17496 \begin_inset Formula $\,0$
17517 \begin_layout Standard
17518 For alignments at characters in formulas this method does not work because
17519 the field to specify the alignment character does not allow formulas.
17520 In this case one need to use the method from Table
17521 \begin_inset space ~
17525 \begin_inset CommandInset ref
17527 reference "tab:Table-align-operator"
17532 This table was created with a 4×2 table.
17533 The heading is a centered multicolumn.
17534 The first column is right-aligned and contains the first part including
17536 The second column is left aligned and contains the rest.
17537 A small space was added at the beginning of each cell of the second column
17538 to get the space that is usually around operators.
17539 To omit the space that is normally between two table columns, the following
17540 LaTeX-argument was used for the second column:
17543 \begin_layout Standard
17549 \begin_layout Standard
17551 \begin_inset space ~
17555 \begin_inset CommandInset ref
17557 reference "tab:Several-table-cell"
17561 shows some example alignments.
17562 For the alignment with the relation sign, a small space was added like
17563 for the second column of Table
17564 \begin_inset space ~
17568 \begin_inset CommandInset ref
17570 reference "tab:Table-align-operator"
17577 \begin_layout Standard
17578 \begin_inset Float table
17584 \begin_layout Plain Layout
17585 \begin_inset Caption
17587 \begin_layout Plain Layout
17588 \begin_inset CommandInset label
17590 name "tab:Several-table-cell"
17594 Several table cell alignments.
17602 \begin_layout Plain Layout
17604 \begin_inset Tabular
17605 <lyxtabular version="3" rows="4" columns="6">
17606 <features tabularvalignment="middle">
17607 <column alignment="right" valignment="top" width="0">
17608 <column alignment="left" valignment="top" width="0" special="@{}l">
17609 <column alignment="right" valignment="top" width="0">
17610 <column alignment="left" valignment="top" width="0" special="@{}l">
17611 <column alignment="right" valignment="top" width="0">
17612 <column alignment="left" valignment="top" width="0" special="@{}l">
17614 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17617 \begin_layout Plain Layout
17623 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17626 \begin_layout Plain Layout
17632 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17635 \begin_layout Plain Layout
17641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17644 \begin_layout Plain Layout
17650 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17653 \begin_layout Plain Layout
17659 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17662 \begin_layout Plain Layout
17670 <cell alignment="center" valignment="top" usebox="none">
17673 \begin_layout Plain Layout
17679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17682 \begin_layout Plain Layout
17684 \begin_inset space \thinspace{}
17692 <cell alignment="center" valignment="top" usebox="none">
17695 \begin_layout Plain Layout
17696 \begin_inset Formula $10\cdot$
17704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17707 \begin_layout Plain Layout
17708 \begin_inset Formula $10^{\mbox{-}17}$
17716 <cell alignment="center" valignment="top" usebox="none">
17719 \begin_layout Plain Layout
17720 \begin_inset Formula $\Gamma(t)\propto$
17728 <cell alignment="center" valignment="top" usebox="none">
17731 \begin_layout Plain Layout
17732 \begin_inset Formula $\:\Upsilon(t)$
17742 <cell alignment="center" valignment="top" usebox="none">
17745 \begin_layout Plain Layout
17751 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17754 \begin_layout Plain Layout
17756 \begin_inset space \thinspace{}
17764 <cell alignment="center" valignment="top" usebox="none">
17767 \begin_layout Plain Layout
17768 \begin_inset Formula $5.78\cdot$
17776 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17779 \begin_layout Plain Layout
17780 \begin_inset Formula $10^{7}$
17788 <cell alignment="center" valignment="top" usebox="none">
17791 \begin_layout Plain Layout
17792 \begin_inset Formula $A\ne$
17800 <cell alignment="center" valignment="top" usebox="none">
17803 \begin_layout Plain Layout
17804 \begin_inset Formula $\: B_{\mathrm{red}}$
17814 <cell alignment="center" valignment="top" usebox="none">
17817 \begin_layout Plain Layout
17823 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17826 \begin_layout Plain Layout
17828 \begin_inset space \thinspace{}
17836 <cell alignment="center" valignment="top" usebox="none">
17839 \begin_layout Plain Layout
17841 \begin_inset Formula $33.5\cdot$
17849 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17852 \begin_layout Plain Layout
17853 \begin_inset Formula $10^{4}$
17861 <cell alignment="center" valignment="top" usebox="none">
17864 \begin_layout Plain Layout
17865 \begin_inset Formula $\sin(\alpha)\ge$
17873 <cell alignment="center" valignment="top" usebox="none">
17876 \begin_layout Plain Layout
17877 \begin_inset Formula $\:\sin(\beta)$
17898 \begin_layout Subsection
17899 Customized Cell/Column Format
17900 \begin_inset CommandInset label
17902 name "sub:Customized-Format"
17907 \begin_inset Index idx
17910 \begin_layout Plain Layout
17911 Table Customization ! Cell/Column Format
17919 \begin_layout Standard
17920 Calculating the required width for spanned columns as in section
17921 \begin_inset space ~
17925 \begin_inset CommandInset ref
17927 reference "sub:Multicolumn-Calculations"
17931 is very annoying if you have several tables with multicolumn cells.
17932 To make life easier, you can define a cell/column format in the preamble,
17933 so that it can be used in all tables of the document.
17934 The format is defined with the command
17937 \begin_layout Standard
17942 newcolumntype{name of format}[number of arguments]{commands}
17945 \begin_layout Standard
17946 The format name may only consist of one letter.
17971 are predefined and cannot be used.
17972 But all letters are allowed as capitals.
17975 \begin_layout Standard
17976 \begin_inset VSpace medskip
17982 \begin_layout Standard
17983 For vertically and horizontally centered multicolumn cells with a fixed
17984 width you can define the cell format
17987 \begin_layout Standard
17992 newcolumntype{M}[1]{>{
17999 \begin_layout Standard
18006 avoids the problem of hyphenating the first word, as described in section
18007 \begin_inset space ~
18011 \begin_inset CommandInset ref
18013 reference "sub:Multiple-Lines-in"
18018 Now you can simply enter
18021 \begin_layout Standard
18027 \begin_layout Standard
18028 as LaTeX-argument in the table dialog to create a multicolumn.
18031 \begin_layout Standard
18032 \begin_inset VSpace bigskip
18038 \begin_layout Standard
18039 For cells spanned by a multicolumn cell, you can define the format
18042 \begin_layout Standard
18047 newcolumntype{S}[2]{>{
18052 \begin_inset Newline newline
18056 \begin_inset Phantom HPhantom
18059 \begin_layout Plain Layout
18073 arrayrulewidth)*(1-#2))/#2}}
18076 \begin_layout Standard
18077 This format uses equation
18078 \begin_inset CommandInset ref
18084 to calculate the required width so that each spanned cell has the same
18088 \begin_layout Standard
18092 \begin_layout Standard
18095 S{width of multicolumn cell}{number of spanned columns}
18098 \begin_layout Standard
18099 as LaTeX-argument of the column.
18102 \begin_layout Standard
18103 \begin_inset VSpace bigskip
18109 \begin_layout Standard
18110 For colored columns, you can define
18113 \begin_layout Standard
18118 newcolumntype{K}[1]{>{
18125 \begin_layout Standard
18127 \begin_inset Quotes eld
18131 \begin_inset Quotes erd
18134 at the end creates a column with a flexible width whose text is horizontally
18139 \begin_layout Standard
18145 \begin_layout Standard
18149 \begin_layout Standard
18150 \begin_inset VSpace bigskip
18156 \begin_layout Standard
18158 \begin_inset space ~
18162 \begin_inset CommandInset ref
18164 reference "tab:Table-using-user-defined"
18168 use the LaTeX-arguments
18171 \begin_layout Standard
18177 \begin_layout Standard
18178 for the first column and the multicolumn,
18181 \begin_layout Standard
18187 \begin_layout Standard
18188 for the last column, and
18191 \begin_layout Standard
18197 \begin_layout Standard
18198 for the cells in the second column.
18201 \begin_layout Standard
18202 \begin_inset Float table
18208 \begin_layout Plain Layout
18209 \begin_inset Caption
18211 \begin_layout Plain Layout
18212 \begin_inset CommandInset label
18214 name "tab:Table-using-user-defined"
18218 Table using user-defined table formats
18226 \begin_layout Plain Layout
18228 \begin_inset Tabular
18229 <lyxtabular version="3" rows="3" columns="4">
18230 <features tabularvalignment="middle">
18231 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18232 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18233 <column alignment="center" valignment="middle" width="0">
18234 <column alignment="center" valignment="middle" width="0" special="K{red}">
18236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18239 \begin_layout Plain Layout
18240 verylongtablecellword
18245 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18248 \begin_layout Plain Layout
18249 multiple lines multicolumn
18254 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18257 \begin_layout Plain Layout
18263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18266 \begin_layout Plain Layout
18274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18277 \begin_layout Plain Layout
18283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18286 \begin_layout Plain Layout
18292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18295 \begin_layout Plain Layout
18301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18304 \begin_layout Plain Layout
18312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18315 \begin_layout Plain Layout
18321 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18324 \begin_layout Plain Layout
18330 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18333 \begin_layout Plain Layout
18339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18342 \begin_layout Plain Layout
18361 \begin_layout Subsection
18363 \begin_inset CommandInset label
18365 name "sub:Line-Thickness"
18370 \begin_inset Index idx
18373 \begin_layout Plain Layout
18374 Table Customization ! Line Thickness
18382 \begin_layout Standard
18383 The line thickness for all lines in a table can be adjusted with the length
18391 To set for example a line thickness of 1.5
18392 \begin_inset space \thinspace{}
18396 \begin_inset space ~
18400 \begin_inset CommandInset ref
18402 reference "tab:Table-with-1.5"
18406 , insert the command
18409 \begin_layout Standard
18416 arrayrulewidth}{1.5pt}
18419 \begin_layout Standard
18420 in TeX-Code before the table or table float.
18421 The changed thickness is valid for all subsequent tables.
18422 To use the default value again, set
18429 \begin_inset space \thinspace{}
18432 pt in TeX-Code after the table or table float.
18435 \begin_layout Standard
18439 \begin_layout Plain Layout
18445 arrayrulewidth}{1.5pt}
18451 \begin_inset Float table
18456 \begin_layout Plain Layout
18457 \begin_inset Caption
18459 \begin_layout Plain Layout
18460 \begin_inset CommandInset label
18462 name "tab:Table-with-1.5"
18467 \begin_inset space \thinspace{}
18478 \begin_layout Plain Layout
18480 \begin_inset Tabular
18481 <lyxtabular version="3" rows="3" columns="3">
18482 <features tabularvalignment="middle">
18483 <column alignment="center" valignment="top" width="0">
18484 <column alignment="center" valignment="top" width="0">
18485 <column alignment="center" valignment="top" width="0">
18487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18490 \begin_layout Plain Layout
18496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18499 \begin_layout Plain Layout
18505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18508 \begin_layout Plain Layout
18516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18519 \begin_layout Plain Layout
18525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18528 \begin_layout Plain Layout
18534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18537 \begin_layout Plain Layout
18545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18548 \begin_layout Plain Layout
18554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18557 \begin_layout Plain Layout
18563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18566 \begin_layout Plain Layout
18586 \begin_layout Plain Layout
18592 arrayrulewidth}{0.4pt}
18600 \begin_layout Standard
18601 \begin_inset VSpace bigskip
18604 To set the line thickness to 1.5
18605 \begin_inset space \thinspace{}
18608 pt only for horizontal lines, as in Table
18609 \begin_inset space ~
18613 \begin_inset CommandInset ref
18615 reference "tab:Table-with-horizontal"
18619 , insert these commands in TeX-Code before the table or table float:
18622 \begin_layout Standard
18632 \begin_inset Newline newline
18640 \begin_inset Newline newline
18649 arrayrulewidth 1.5pt}
18650 \begin_inset Newline newline
18661 arrayrulewidth 0.4pt}}
18664 \begin_layout Standard
18665 To return to the default line thickness, insert this command in TeX-Code
18666 after the table or table float:
18669 \begin_layout Standard
18681 \begin_layout Standard
18685 \begin_layout Plain Layout
18696 \begin_layout Plain Layout
18705 \begin_layout Plain Layout
18713 arrayrulewidth 1.5pt}
18716 \begin_layout Plain Layout
18726 arrayrulewidth 0.4pt}}
18732 \begin_inset Float table
18737 \begin_layout Plain Layout
18738 \begin_inset Caption
18740 \begin_layout Plain Layout
18741 \begin_inset CommandInset label
18743 name "tab:Table-with-horizontal"
18748 \begin_inset space \thinspace{}
18751 pt thick horizontal lines
18759 \begin_layout Plain Layout
18761 \begin_inset Tabular
18762 <lyxtabular version="3" rows="3" columns="3">
18763 <features tabularvalignment="middle">
18764 <column alignment="center" valignment="top" width="0">
18765 <column alignment="center" valignment="top" width="0">
18766 <column alignment="center" valignment="top" width="0">
18768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18771 \begin_layout Plain Layout
18777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18780 \begin_layout Plain Layout
18786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18789 \begin_layout Plain Layout
18797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18800 \begin_layout Plain Layout
18806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18809 \begin_layout Plain Layout
18815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18818 \begin_layout Plain Layout
18826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18829 \begin_layout Plain Layout
18835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18838 \begin_layout Plain Layout
18844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18847 \begin_layout Plain Layout
18867 \begin_layout Plain Layout
18883 \begin_layout Standard
18884 \begin_inset VSpace bigskip
18887 To set the line thickness to 1.5
18888 \begin_inset space \thinspace{}
18891 pt only for vertical lines, create the following column format in the document
18892 preamble, according to the description in section
18893 \begin_inset space ~
18897 \begin_inset CommandInset ref
18899 reference "sub:Customized-Format"
18906 \begin_layout Standard
18911 newcolumntype{V}{!{
18913 vrule width 1.5pt}}
18916 \begin_layout Standard
18918 \begin_inset space ~
18922 \begin_inset CommandInset ref
18924 reference "tab:Table-with-vertical"
18931 \begin_layout Standard
18937 \begin_layout Standard
18938 was used for the last column and
18941 \begin_layout Standard
18947 \begin_layout Standard
18948 for the other columns.
18951 \begin_layout Standard
18952 \begin_inset Float table
18957 \begin_layout Plain Layout
18958 \begin_inset Caption
18960 \begin_layout Plain Layout
18961 \begin_inset CommandInset label
18963 name "tab:Table-with-vertical"
18968 \begin_inset space \thinspace{}
18971 pt thick vertical lines
18979 \begin_layout Plain Layout
18981 \begin_inset Tabular
18982 <lyxtabular version="3" rows="3" columns="3">
18983 <features tabularvalignment="middle">
18984 <column alignment="center" valignment="top" width="0" special="Vc">
18985 <column alignment="center" valignment="top" width="0" special="Vc">
18986 <column alignment="center" valignment="top" width="0" special="VcV">
18988 <cell alignment="center" valignment="top" topline="true" usebox="none">
18991 \begin_layout Plain Layout
18997 <cell alignment="center" valignment="top" topline="true" usebox="none">
19000 \begin_layout Plain Layout
19006 <cell alignment="center" valignment="top" topline="true" usebox="none">
19009 \begin_layout Plain Layout
19017 <cell alignment="center" valignment="top" topline="true" usebox="none">
19020 \begin_layout Plain Layout
19026 <cell alignment="center" valignment="top" topline="true" usebox="none">
19029 \begin_layout Plain Layout
19035 <cell alignment="center" valignment="top" topline="true" usebox="none">
19038 \begin_layout Plain Layout
19046 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19049 \begin_layout Plain Layout
19055 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19058 \begin_layout Plain Layout
19064 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19067 \begin_layout Plain Layout
19086 \begin_layout Subsection
19088 \begin_inset Index idx
19091 \begin_layout Plain Layout
19092 Table Customization ! Dashed Lines
19100 \begin_layout Standard
19104 \begin_layout Plain Layout
19114 \begin_inset Note Note
19117 \begin_layout Plain Layout
19118 The following section will only be displayed when the LaTeX-package
19130 \begin_layout Standard
19131 \begin_inset Float table
19137 \begin_layout Plain Layout
19138 \begin_inset Caption
19140 \begin_layout Plain Layout
19141 \begin_inset CommandInset label
19143 name "tab:Table-with-dashed"
19147 Table with dashed lines
19155 \begin_layout Plain Layout
19157 \begin_inset Tabular
19158 <lyxtabular version="3" rows="5" columns="5">
19159 <features tabularvalignment="middle">
19160 <column alignment="center" valignment="top" width="0">
19161 <column alignment="center" valignment="top" width="0">
19162 <column alignment="center" valignment="top" width="0" special=":c">
19163 <column alignment="center" valignment="top" width="0">
19164 <column alignment="center" valignment="top" width="0">
19166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19169 \begin_layout Plain Layout
19175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19178 \begin_layout Plain Layout
19184 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19187 \begin_layout Plain Layout
19193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19196 \begin_layout Plain Layout
19202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19205 \begin_layout Plain Layout
19213 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19216 \begin_layout Plain Layout
19222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19225 \begin_layout Plain Layout
19231 <cell alignment="center" valignment="top" topline="true" usebox="none">
19234 \begin_layout Plain Layout
19240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19243 \begin_layout Plain Layout
19249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19252 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19263 \begin_layout Plain Layout
19267 \begin_layout Plain Layout
19281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19284 \begin_layout Plain Layout
19290 <cell alignment="center" valignment="top" usebox="none">
19293 \begin_layout Plain Layout
19299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19302 \begin_layout Plain Layout
19308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19311 \begin_layout Plain Layout
19319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19322 \begin_layout Plain Layout
19326 \begin_layout Plain Layout
19340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19343 \begin_layout Plain Layout
19349 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19352 \begin_layout Plain Layout
19358 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19361 \begin_layout Plain Layout
19367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19370 \begin_layout Plain Layout
19378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19381 \begin_layout Plain Layout
19387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19390 \begin_layout Plain Layout
19396 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19399 \begin_layout Plain Layout
19405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19408 \begin_layout Plain Layout
19414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19417 \begin_layout Plain Layout
19436 \begin_layout Standard
19437 LyX does not natively support dashed lines, so you have to use TeX-Code.
19438 As a prerequisite the LaTeX-package
19443 \begin_inset Index idx
19446 \begin_layout Plain Layout
19447 LaTeX-packages ! arydshln
19452 must be loaded in the document preamble with the command
19455 \begin_layout Standard
19460 usepackage{arydshln}
19463 \begin_layout Standard
19464 To make a vertical line dashed, enter the colon
19465 \begin_inset Quotes eld
19469 \begin_inset Quotes erd
19472 together with the character for the horizontal alignment as LaTeX-argument
19473 in the table cell dialog.
19476 \begin_layout Standard
19477 For a horizontal dashed line add the command
19480 \begin_layout Standard
19488 \begin_layout Standard
19489 in TeX-Code as first element of the first cell in the table row.
19492 \begin_layout Standard
19493 For dashed multicolumn lines use the command
19496 \begin_layout Standard
19501 cdashline{line number
19506 \begin_layout Standard
19507 in TeX-Code as the first element of the first cell in the table row.
19508 If you have for example a multicolumn spanning columns 2 to 4 and you want
19509 to have a dashed line above, add the command
19512 \begin_layout Standard
19520 \begin_layout Standard
19521 as the first element of the first cell in the row of the multicolumn.
19524 \begin_layout Standard
19525 \begin_inset VSpace bigskip
19531 \begin_layout Standard
19533 \begin_inset space ~
19537 \begin_inset CommandInset ref
19539 reference "tab:Table-with-dashed"
19544 \begin_inset Quotes eld
19552 \begin_inset Quotes erd
19555 as LaTeX-argument of the third column.
19556 The TeX-Code command
19562 was inserted in the first cell of the third row and the TeX-Code command
19563 \begin_inset Newline newline
19572 was inserted in the first cell of the fourth row.
19575 \begin_layout Standard
19576 \begin_inset Note Greyedout
19579 \begin_layout Plain Layout
19588 is apparently not compatible with the LaTeX-package
19593 \begin_inset Index idx
19596 \begin_layout Plain Layout
19597 LaTeX-packages ! colortbl
19602 that is used for colored tables in section
19603 \begin_inset space ~
19607 \begin_inset CommandInset ref
19609 reference "sec:Colored-Tables"
19614 That means colored tables cannot have dashed lines.
19622 \begin_layout Standard
19626 \begin_layout Plain Layout
19636 \begin_inset Note Note
19639 \begin_layout Plain Layout
19640 The following will be displayed when the LaTeX-package
19652 \begin_layout Standard
19653 You need to install the package
19657 to see the content of this section in the output.
19660 \begin_layout Standard
19664 \begin_layout Plain Layout
19676 \begin_layout Chapter
19678 \begin_inset CommandInset label
19685 \begin_inset Index idx
19688 \begin_layout Plain Layout
19697 \begin_layout Section
19699 \begin_inset CommandInset label
19701 name "sec:FloatIntroduction"
19706 \begin_inset Index idx
19709 \begin_layout Plain Layout
19710 Floats ! Introduction
19718 \begin_layout Standard
19719 A float is a block of text associated with some sort of label, which doesn't
19720 have a fixed location.
19722 \begin_inset Quotes eld
19726 \begin_inset Quotes erd
19729 forward or backward a page or two, to wherever it fits best.
19737 \begin_inset space ~
19742 are also floats, because they can float to the next page when there are
19743 too many notes on the page.
19746 \begin_layout Standard
19747 Floats allow a high quality layout.
19748 Images and tables can be spread evenly to the pages to avoid white space
19749 and pages without text.
19750 As the floating often destroys the context between the text and the image/table
19751 , every float can be referenced in the text.
19752 Floats are therefore numbered.
19753 Referencing is described in section
19754 \begin_inset space ~
19758 \begin_inset CommandInset ref
19760 reference "sec:Referencing-Floats"
19767 \begin_layout Standard
19768 To insert a float, use the menu
19770 Insert\SpecialChar \menuseparator
19778 inset, a box with a label.
19779 The label will automatically be translated to the document language in
19781 After the label you can insert the caption text.
19782 The image or table is inserted above or below the caption in a separate
19783 paragraph within the float.
19784 More about the caption placement is contained in section
19785 \begin_inset space ~
19789 \begin_inset CommandInset ref
19791 reference "sec:Caption-Placement"
19796 To keep your LyX-document readable, you can open and close the float box
19797 by left-clicking on the box label.
19798 A closed float box looks like this:
19799 \begin_inset Graphics
19800 filename clipart/floatQt4.png
19802 scaleBeforeRotation
19806 – a gray button with a red label.
19809 \begin_layout Standard
19810 It is recommended that you insert floats as a separate standard paragraph
19811 to avoid possible LaTeX-errors that can occur when the surrounding text
19812 is specially formatted.
19815 \begin_layout Standard
19816 Existing figures or tables can be put into a float by highlighting them
19817 and then pressing the corresponding toolbar button for a new float.
19820 \begin_layout Section
19824 \begin_layout Standard
19825 Besides figure and table floats that are described in sections
19826 \begin_inset space ~
19830 \begin_inset CommandInset ref
19832 reference "sec:Figure-Floats"
19837 \begin_inset CommandInset ref
19839 reference "sec:Table-Floats"
19843 respectively, LyX offers the float types
19852 The latter are explained in sec.
19853 \begin_inset space \thinspace{}
19857 \begin_inset CommandInset ref
19859 reference "sec:Wrap-Floats"
19866 \begin_layout Subsection
19868 \begin_inset Index idx
19871 \begin_layout Plain Layout
19872 Floats ! Algorithms
19880 \begin_layout Standard
19881 \begin_inset Float algorithm
19887 \begin_layout Plain Layout
19888 \begin_inset Caption
19890 \begin_layout Plain Layout
19891 \begin_inset CommandInset label
19893 name "alg:Example-Algorithm-float"
19897 Example Algorithm float
19905 \begin_layout LyX-Code
19907 \begin_inset Newline newline
19910 Sum:= Sum + A(I); /*comment*/
19911 \begin_inset Newline newline
19915 \begin_inset VSpace -4mm
19926 \begin_layout Standard
19927 This float type is inserted with the menu
19929 Insert\SpecialChar \menuseparator
19930 Floats\SpecialChar \menuseparator
19934 It is used for program codes and descriptions of algorithms and can be
19935 seen as an alternative to program code listings that are explained in chapter
19936 \begin_inset space ~
19940 \begin_inset CommandInset ref
19942 reference "cha:Program-Code-Listings"
19947 A possible environment for algorithms is the
19951 , described in LyX's
19957 \begin_inset space ~
19961 \begin_inset CommandInset ref
19963 reference "alg:Example-Algorithm-float"
19967 is an example of an algorithm float where -4
19968 \begin_inset space \thinspace{}
19971 mm vertical space was added at the end of the float to have the bottom rule
19972 exactly below the last text line.
19975 \begin_layout Standard
19976 The float label is not automatically translated into the document language.
19977 If your document is not in English, you have to do this manually by adding
19978 the following line to the document preamble
19983 \begin_layout Standard
19988 floatname{algorithm}{your
19989 \begin_inset space ~
19995 \begin_layout Standard
19999 \begin_inset space ~
20005 \begin_inset Quotes eld
20013 \begin_inset Quotes erd
20019 \begin_layout Standard
20020 To insert the list of algorithms you can use the menu
20022 Insert\SpecialChar \menuseparator
20024 \begin_inset space \thinspace{}
20028 \begin_inset space \thinspace{}
20031 TOC\SpecialChar \menuseparator
20034 when your document has the same language as LyX's menu names.
20035 In other cases use this command in TeX-Code instead:
20038 \begin_layout Standard
20043 listof{algorithm}{your
20044 \begin_inset space ~
20050 \begin_layout Standard
20054 \begin_inset space ~
20060 \begin_inset Quotes eld
20068 \begin_inset Quotes erd
20074 \begin_layout Standard
20075 Algorithm floats are not by default numbered in the scheme
20076 \begin_inset Quotes eld
20080 \begin_inset Quotes erd
20083 as is the case for table and figure floats in many document-classes.
20084 To number algorithm floats in the same scheme, add this command to your
20088 \begin_layout Standard
20093 numberwithin{algorithm}{chapter}
20096 \begin_layout Standard
20097 To be able to use the command
20106 \begin_inset space ~
20111 in the document settings the option
20114 \begin_inset space ~
20118 \begin_inset space ~
20122 \begin_inset space ~
20130 \begin_layout Section
20132 \begin_inset Index idx
20135 \begin_layout Plain Layout
20144 \begin_layout Standard
20145 Floats are usually numbered either independently from the sections the floats
20146 are in, or in the scheme
20147 \begin_inset Quotes eld
20151 \begin_inset Quotes erd
20155 \begin_inset Quotes eld
20159 \begin_inset Quotes erd
20163 This depends on the document class used.
20166 \begin_layout Standard
20167 To change section-independent numbering, you can use this command in the
20171 \begin_layout Standard
20183 \begin_layout Standard
20190 is the command that prints the table number, for figure floats, the command
20204 in the command above prints the table number as small roman number.
20207 \begin_layout Standard
20208 To change the numbering scheme for example to
20209 \begin_inset Quotes eld
20213 \begin_inset Quotes erd
20216 , use this command in the preamble:
20219 \begin_layout Standard
20224 numberwithin{table}{subsection}
20227 \begin_layout Standard
20228 To be able to use the command
20237 \begin_inset space ~
20242 in the document settings the option
20245 \begin_inset space ~
20249 \begin_inset space ~
20253 \begin_inset space ~
20261 \begin_layout Standard
20262 Please also have a look at section
20263 \begin_inset space ~
20267 \begin_inset CommandInset ref
20269 reference "sub:Footnote-Numbering"
20273 for the details and important notes about the numbering commands.
20276 \begin_layout Section
20278 \begin_inset CommandInset label
20280 name "sec:Referencing-Floats"
20285 \begin_inset Index idx
20288 \begin_layout Plain Layout
20289 Floats ! References
20295 \begin_inset Index idx
20298 \begin_layout Plain Layout
20299 References ! to Floats
20307 \begin_layout Standard
20308 To reference a float, insert a label into its caption using the menu
20310 Insert\SpecialChar \menuseparator
20313 or the toolbar button
20314 \begin_inset Graphics
20315 filename ../images/label-insert.png
20317 scaleBeforeRotation
20322 A grey label box like this one:
20323 \begin_inset Graphics
20324 filename clipart/labelQt4.png
20326 scaleBeforeRotation
20330 will be inserted and the label window pops up asking for the label text.
20331 LyX offers as text the first words of the caption with a prefix.
20332 The prefix depends on the float type, e.
20333 \begin_inset space \thinspace{}
20337 \begin_inset space \space{}
20340 for figure floats the prefix will be "
20347 \begin_layout Standard
20348 The label is used as anchor and name for the reference.
20349 You can refer to the label using the menu
20351 Insert\SpecialChar \menuseparator
20354 or the toolbar button
20355 \begin_inset Graphics
20356 filename ../images/dialog-show-new-inset_ref.png
20358 scaleBeforeRotation
20363 A grey cross-reference box like this one:
20364 \begin_inset Graphics
20365 filename clipart/referenceQt4.png
20367 scaleBeforeRotation
20371 will be inserted and the cross-reference window appear showing all labels
20373 If you have multiple LyX-documents opened, choose the one you are working
20374 on from the drop-list at the top of the dialog.
20375 You can now sort the labels alphabetically and then choose one.
20376 At the position of the cross-reference box the float number will appear
20380 \begin_layout Standard
20381 It is recommended that you use a protected space between the cross-reference
20382 name and its number to avoid line breaks between them.
20383 If a cross-reference refers to a non-existing label, you will see two question
20384 marks in the output instead of the reference.
20387 \begin_layout Standard
20388 You can change labels at any time by clicking on the label box.
20389 References to the changed label will automatically change its link to the
20390 new label text, so that you don't need to take care about this.
20393 \begin_layout Standard
20397 \begin_inset space ~
20401 \begin_inset space ~
20406 in the cross-reference window sets the cursor before the referred label.
20407 The button text changes then to Go
20408 \begin_inset space ~
20411 Back and you can use it to set the cursor back to the cross-reference.
20412 Right-clicking on a cross-reference box also sets the cursor before the
20413 referenced label but without the possibility of going back.
20416 \begin_layout Subsection
20417 Cross-Reference Formats
20418 \begin_inset CommandInset label
20420 name "sub:Cross-Reference-Formats"
20425 \begin_inset Index idx
20428 \begin_layout Plain Layout
20429 References ! Formats
20437 \begin_layout Standard
20438 There are six varieties of cross-references:
20441 \begin_layout Description
20442 <reference>: prints the float number, this is the default:
20443 \begin_inset CommandInset ref
20445 reference "fig:Two-distorted-images"
20452 \begin_layout Description
20453 (<reference>): prints the float number within two parentheses, this is the
20454 style normally used to reference formulas, especially when the reference
20456 \begin_inset Quotes eld
20460 \begin_inset Quotes erd
20464 \begin_inset CommandInset ref
20473 \begin_layout Description
20474 <page>: prints the page number: Page
20475 \begin_inset space ~
20479 \begin_inset CommandInset ref
20480 LatexCommand pageref
20481 reference "fig:Two-distorted-images"
20488 \begin_layout Description
20490 \begin_inset space ~
20494 \begin_inset space ~
20497 <page>: prints the text "on page" and the page number:
20498 \begin_inset CommandInset ref
20499 LatexCommand vpageref
20500 reference "fig:Two-distorted-images"
20507 \begin_layout Description
20509 \begin_inset space ~
20513 \begin_inset space ~
20517 \begin_inset space ~
20520 <page>: prints the float number, the text "on page", and the page number:
20522 \begin_inset CommandInset ref
20524 reference "fig:Two-distorted-images"
20531 \begin_layout Description
20533 \begin_inset space ~
20536 reference: prints a self-defined cross-reference format.
20537 \begin_inset Newline newline
20541 \begin_inset Note Greyedout
20544 \begin_layout Plain Layout
20549 This feature is only available when you have the LaTeX-package
20558 \begin_inset Index idx
20561 \begin_layout Plain Layout
20562 LaTeX-packages ! prettyref
20568 \begin_inset Index idx
20571 \begin_layout Plain Layout
20572 LaTeX-packages ! refstyle
20583 \begin_inset Newline newline
20586 You can select which LaTeX-package should be used for this feature by setting
20589 Use refstyle (not prettyref) for cross-references
20593 Document\SpecialChar \menuseparator
20594 Settings\SpecialChar \menuseparator
20598 The format is specified by adding the command
20610 (refstyle) to the preamble of the document.
20611 For example redefining all references to figures (which have the label
20613 \begin_inset Quotes eld
20621 \begin_inset Quotes erd
20624 ) can be done with this command
20625 \begin_inset Newline newline
20632 newref{fig}{refcmd={Image on page
20637 \begin_inset Newline newline
20640 For more information about the format, have a look at the package documentations
20642 \begin_inset CommandInset citation
20644 key "prettyref,refstyle"
20651 \begin_layout Description
20653 \begin_inset space ~
20656 reference: prints the caption of the reference:
20657 \begin_inset CommandInset ref
20658 LatexCommand nameref
20659 reference "fig:Two-distorted-images"
20666 \begin_layout Standard
20671 will not print the page number if the label is on the previous, the same,
20674 \begin_inset space \thinspace{}
20678 \begin_inset space \space{}
20682 \begin_inset Quotes eld
20690 \begin_inset Quotes erd
20696 <reference> on page <page>
20698 will not print anything about the page if the label is on the same page.
20701 \begin_layout Standard
20702 The number and current page of the part of the document referred to in the
20703 output is automatically calculated by LaTeX.
20704 The varieties are adjusted in the field
20708 of the cross-reference window that appears when you click on the cross-referenc
20712 \begin_layout Standard
20713 \begin_inset Note Greyedout
20716 \begin_layout Plain Layout
20721 It is recommended to use the LaTeX-package
20726 \begin_inset Index idx
20729 \begin_layout Plain Layout
20730 LaTeX-packages ! refstyle
20740 \begin_inset Index idx
20743 \begin_layout Plain Layout
20744 LaTeX-packages ! prettyref
20749 does not know all of LyX's possible label shortcuts
20753 \begin_layout Plain Layout
20754 \begin_inset Quotes eld
20758 \begin_inset Quotes erd
20761 is for example LyX's shortcut for labels in figure captions.
20766 and is not internationalized.
20774 \begin_layout Standard
20775 \begin_inset Note Greyedout
20778 \begin_layout Plain Layout
20783 Due to a bug in the LaTeX-package
20787 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20788 languages that make the period character active (like French).
20789 For a workaround, see
20790 \begin_inset Newline newline
20794 \begin_inset CommandInset href
20796 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20808 \begin_layout Subsection
20809 Automatic Reference Naming
20810 \begin_inset Index idx
20813 \begin_layout Plain Layout
20814 References ! Automatic Reference Naming
20822 \begin_layout Standard
20828 \begin_inset Index idx
20831 \begin_layout Plain Layout
20832 LaTeX-packages ! hyperref
20837 , that is enabled in the
20845 dialog, provides a very useful feature that cross-references automatically
20846 include the name of the referenced floats (or text parts like
20851 So you will save having to write e.
20852 \begin_inset space \thinspace{}
20856 \begin_inset space \space{}
20860 \begin_inset Quotes eld
20864 \begin_inset Quotes erd
20867 before every reference to a figure.
20868 To use this feature, enable
20872 and insert this line to the LaTeX preamble:
20875 \begin_layout Standard
20891 \begin_layout Standard
20892 When you prefer other reference names than the default ones, for example
20893 you want instead of
20894 \begin_inset Quotes eld
20898 \begin_inset Quotes erd
20902 \begin_inset Quotes eld
20906 \begin_inset space \thinspace{}
20910 \begin_inset Quotes eld
20913 , you can redefine the name by inserting this in the preamble:
20916 \begin_layout Standard
20927 sectionautorefname}
20928 \begin_inset Newline newline
20932 \begin_inset Phantom HPhantom
20935 \begin_layout Plain Layout
20938 \begin_inset space ~
20951 \begin_layout Standard
20952 When you are using another document language than English, replace
20953 \begin_inset Newline newline
20968 , where *** is the name of the language used.
20971 \begin_layout Standard
20972 To get automatic names, but not for certain reference types, for example
20973 not for equations, use this preamble code:
20976 \begin_layout Standard
20984 \begin_inset Newline newline
20994 \begin_inset Newline newline
21005 equationautorefname}
21006 \begin_inset Newline newline
21010 \begin_inset Phantom HPhantom
21013 \begin_layout Plain Layout
21016 \begin_inset space ~
21031 \begin_layout Standard
21032 More about this topic can be found in
21037 \begin_inset CommandInset citation
21046 \begin_layout Standard
21047 \begin_inset Note Greyedout
21050 \begin_layout Plain Layout
21055 Automatic reference naming cannot be used when you use cross-references
21059 \begin_inset space ~
21064 style, as described in section
21065 \begin_inset space ~
21069 \begin_inset CommandInset ref
21071 reference "sub:Cross-Reference-Formats"
21083 \begin_layout Standard
21088 manual is an example where automatic reference naming is used.
21091 \begin_layout Subsection
21093 \begin_inset CommandInset label
21095 name "sub:Reference-Position"
21100 \begin_inset Index idx
21103 \begin_layout Plain Layout
21104 References ! Reference Position
21112 \begin_layout Standard
21118 \begin_inset Index idx
21121 \begin_layout Plain Layout
21122 LaTeX-packages ! hyperref
21135 dialog to link cross-references in the output, you will see that clicking
21136 on an image float reference jumps to the image label.
21137 The caption will be the first text part on the screen, so that you cannot
21138 see the image without scrolling.
21139 This is because the reference link anchor is placed at the position of
21141 With the use of the package
21146 \begin_inset Index idx
21149 \begin_layout Plain Layout
21150 LaTeX-packages ! hypcap
21155 , which is part of the LaTeX-package
21160 \begin_inset Index idx
21163 \begin_layout Plain Layout
21164 LaTeX-packages ! oberdiek
21169 , the link anchor is placed at the beginning of a float.
21170 To use this feature for figure floats, load
21174 in the document preamble with the line
21177 \begin_layout Standard
21182 usepackage[figure]{hypcap}
21185 \begin_layout Standard
21190 for all float types but this is not recommended for stability reasons.
21191 For more information, have a look at
21196 \begin_inset CommandInset citation
21205 \begin_layout Standard
21206 \begin_inset Note Greyedout
21209 \begin_layout Plain Layout
21218 has no effect on references to subfigures.
21226 \begin_layout Section
21228 \begin_inset CommandInset label
21230 name "sec:Float-Placement"
21235 \begin_inset Index idx
21238 \begin_layout Plain Layout
21247 \begin_layout Standard
21248 Right-clicking on a float-box opens a dialog where you can alter the placement
21249 options that LaTeX uses for positioning the float.
21250 \begin_inset Newline newline
21256 \begin_inset space ~
21261 is only useful for two-column documents: If you select it, the float will
21262 span both columns on the page instead of being confined to just one.
21263 \begin_inset Newline newline
21269 \begin_inset space ~
21274 is used to rotate floats, see section
21275 \begin_inset CommandInset ref
21277 reference "sec:Rotated-Floats"
21284 \begin_layout Standard
21285 You can use one ore more of the following options in the float dialog to
21286 set the placement for a particular float when you uncheck the option
21289 \begin_inset space ~
21293 \begin_inset space ~
21301 \begin_layout Description
21303 \begin_inset space ~
21307 \begin_inset space ~
21310 possible try to place the float on the position where it has been inserted
21313 \begin_layout Description
21315 \begin_inset space ~
21319 \begin_inset space ~
21322 page try to place the float at the top of the current page
21325 \begin_layout Description
21327 \begin_inset space ~
21331 \begin_inset space ~
21334 page try to place the float at the bottom of the current page
21337 \begin_layout Description
21339 \begin_inset space ~
21343 \begin_inset space ~
21346 floats try to place the float on its own page
21349 \begin_layout Standard
21350 The order of the above option is
21355 That means, if you use the default placement, LaTeX will first try out
21359 \begin_inset space ~
21363 \begin_inset space ~
21371 \begin_inset space ~
21375 \begin_inset space ~
21380 , and then the others.
21381 If you do not use the default, LaTeX will try only the checked options
21382 but in the same order.
21384 \begin_inset space ~
21387 placements are possible the procedure is internally repeated but it is tried
21388 to put the float on the following page.
21391 \begin_layout Standard
21392 By default, each option has its own rules:
21395 \begin_layout Labeling
21396 \labelwidthstring 00.00.0000
21400 \begin_inset space ~
21404 \begin_inset space ~
21409 only floats occupying less than 70
21410 \begin_inset space \thinspace{}
21413 % of the page can be placed at the top of a page (
21422 \begin_layout Labeling
21423 \labelwidthstring 00.00.0000
21427 \begin_inset space ~
21431 \begin_inset space ~
21436 : only floats occupying less than 30
21437 \begin_inset space \thinspace{}
21440 % of the page can be placed at the bottom of a page.
21450 \begin_layout Labeling
21451 \labelwidthstring 00.00.0000
21455 \begin_inset space ~
21459 \begin_inset space ~
21464 : only if more than 50
21465 \begin_inset space \thinspace{}
21468 % of the page are occupied by floats, several floats can be set together
21479 \begin_layout Standard
21480 If you don't like these rules, you can ignore them by using the additional
21484 \begin_inset space ~
21488 \begin_inset space ~
21494 \begin_inset Newline newline
21497 You can also redefine the rules with LaTeX-commands that are given in parenthese
21498 s after the rules description above.
21499 To increase for example the often too small default of the bottom-rule
21501 \begin_inset space \thinspace{}
21504 % of the page, add this line to your document preamble:
21507 \begin_layout Standard
21514 bottomfraction}{0.5}
21517 \begin_layout Standard
21518 Sometimes you might need, under all circumstances, a float to be placed
21519 exactly at the position where it is inserted.
21520 For this case you can use the option
21523 \begin_inset space ~
21529 Use this option very rarely and only if the document is almost ready to
21530 be printed, because the float is then no longer able to
21531 \begin_inset Quotes eld
21535 \begin_inset Quotes erd
21538 when you change your document and this will often destroy the page layout.
21541 \begin_layout Standard
21542 There are no placement options for text wrap floats, because they are always
21543 surrounded by the text of a certain paragraph.
21544 \begin_inset VSpace bigskip
21550 \begin_layout Standard
21551 Sometimes you have the problem that a float is placed at the top of a page
21552 while its corresponding section starts at the middle of the page, so that
21553 the reader could think the float is part of the previous section.
21554 To avoid this the LaTeX-command
21561 It suppresses a given float placement for the page where it is inserted
21562 and can therefore be used to avoid floats being set before a section starts.
21563 To get this, add these commands to your document preamble:
21566 \begin_layout Standard
21576 \begin_inset Newline newline
21590 \begin_layout Standard
21591 You can define the same for all section headings, like chapters and subsections.
21592 This definition is not recommended to be used for small text parts like
21593 subsubsections because LaTeX may then have problems finding a suitable
21597 \begin_layout Standard
21598 \begin_inset VSpace bigskip
21601 In some cases it is required to have all figures/tables at the end of the
21603 For this purpose the LaTeX-package
21608 \begin_inset Index idx
21611 \begin_layout Plain Layout
21612 LaTeX-packages ! endfloat
21618 It puts all figure and table floats at the end of the document into their
21620 At the original float position a text hint like
21621 \begin_inset Quotes eld
21627 \begin_inset space ~
21633 \begin_inset Quotes erd
21637 The endfloat-package is loaded in the preamble with the line
21640 \begin_layout Standard
21645 usepackage[options]{endfloat}
21648 \begin_layout Standard
21649 There are various package options to format the created figure/table sections.
21650 For more information we refer to the
21655 \begin_inset CommandInset citation
21662 \begin_inset Newline newline
21666 \begin_inset Note Greyedout
21669 \begin_layout Plain Layout
21674 doesn't provide an automatic translation for the text hint, you have to
21675 do this manually, see section
21676 \begin_inset space ~
21680 \begin_inset CommandInset citation
21692 \begin_inset Newline newline
21696 \begin_inset Note Greyedout
21699 \begin_layout Plain Layout
21704 There is currently a bug in
21708 when the caption contains a German
21709 \begin_inset Quotes eld
21713 \begin_inset Quotes erd
21717 Use in this case the command
21718 \begin_inset Quotes eld
21728 \begin_inset Quotes erd
21731 in TeX-Code instead of
21732 \begin_inset Quotes eld
21736 \begin_inset Quotes erd
21747 \begin_layout Standard
21748 \begin_inset VSpace bigskip
21751 For more details about float placements, have a look at LaTeX books,
21752 \begin_inset CommandInset citation
21754 key "latexcompanion,latexguide,latexbook"
21761 \begin_layout Section
21763 \begin_inset CommandInset label
21765 name "sec:Rotated-Floats"
21770 \begin_inset Index idx
21773 \begin_layout Plain Layout
21782 \begin_layout Standard
21783 Especially for wide tables you might have floats rotated.
21784 To rotate a whole float including the caption, right-click on the float-box
21788 \begin_inset space ~
21796 \begin_layout Standard
21797 Rotated floats are always placed on a page of their own (or column of their
21798 own; in case you have a multi-column document).
21799 You can let them span several columns using the float settings option
21802 \begin_inset space ~
21808 Floats are rotated so that you can read them from the outside margin.
21809 To force a certain rotation direction for all pages, you can add either
21818 to the document class options.
21821 \begin_layout Standard
21822 Referencing rotated floats is the same as for normal floats, the caption
21823 format is also the same: Table
21824 \begin_inset space ~
21828 \begin_inset CommandInset ref
21830 reference "tab:Rotated-table"
21834 is an example of a rotated table float.
21837 \begin_layout Standard
21838 \begin_inset Note Greyedout
21841 \begin_layout Plain Layout
21846 Not all DVI-viewers are able to display rotated floats.
21854 \begin_layout Standard
21855 \begin_inset Float table
21860 \begin_layout Plain Layout
21861 \begin_inset Caption
21863 \begin_layout Plain Layout
21864 \begin_inset CommandInset label
21866 name "tab:Rotated-table"
21878 \begin_layout Plain Layout
21880 \begin_inset Tabular
21881 <lyxtabular version="3" rows="1" columns="5">
21882 <features tabularvalignment="middle">
21883 <column alignment="center" valignment="top" width="0">
21884 <column alignment="center" valignment="top" width="0">
21885 <column alignment="center" valignment="top" width="0">
21886 <column alignment="center" valignment="top" width="0">
21887 <column alignment="center" valignment="top" width="0">
21889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21892 \begin_layout Plain Layout
21898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21901 \begin_layout Plain Layout
21907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21910 \begin_layout Plain Layout
21916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21919 \begin_layout Plain Layout
21925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21928 \begin_layout Plain Layout
21947 \begin_layout Section
21949 \begin_inset Index idx
21952 \begin_layout Plain Layout
21961 \begin_layout Standard
21962 Subfloats are for example used when a figure consists of several images.
21963 They are created by inserting a float into an existing float.
21964 The placement of the subfloats can be controlled in the same way as for
21965 paragraphs as shown in table
21966 \begin_inset space ~
21970 \begin_inset CommandInset ref
21972 reference "tab:Two-subtables-side"
21977 \begin_inset CommandInset ref
21979 reference "tab:Two-subtables-upon"
21986 \begin_layout Standard
21987 Referencing subfloats works as for normal floats: Table
21988 \begin_inset space ~
21992 \begin_inset CommandInset ref
21994 reference "tab:This-is-subtable-a"
21999 \begin_inset CommandInset ref
22001 reference "tab:This-is-subtable-b"
22005 are subtables of table
22006 \begin_inset space ~
22010 \begin_inset CommandInset ref
22012 reference "tab:Two-subtables-side"
22019 \begin_layout Standard
22020 \begin_inset Float table
22025 \begin_layout Plain Layout
22026 \begin_inset Caption
22028 \begin_layout Plain Layout
22029 \begin_inset CommandInset label
22031 name "tab:Two-subtables-side"
22035 Two subtables placed side by side.
22043 \begin_layout Plain Layout
22045 \begin_inset space \hfill{}
22049 \begin_inset Float table
22054 \begin_layout Plain Layout
22055 \begin_inset Caption
22057 \begin_layout Plain Layout
22058 \begin_inset CommandInset label
22060 name "tab:This-is-subtable-a"
22064 This is subtable a.
22072 \begin_layout Plain Layout
22074 \begin_inset Tabular
22075 <lyxtabular version="3" rows="1" columns="5">
22076 <features tabularvalignment="middle">
22077 <column alignment="center" valignment="top" width="0">
22078 <column alignment="center" valignment="top" width="0">
22079 <column alignment="center" valignment="top" width="0">
22080 <column alignment="center" valignment="top" width="0">
22081 <column alignment="center" valignment="top" width="0">
22083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22086 \begin_layout Plain Layout
22092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22095 \begin_layout Plain Layout
22101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22104 \begin_layout Plain Layout
22110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22113 \begin_layout Plain Layout
22119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22122 \begin_layout Plain Layout
22139 \begin_inset space \hfill{}
22143 \begin_inset Float table
22148 \begin_layout Plain Layout
22149 \begin_inset Caption
22151 \begin_layout Plain Layout
22152 \begin_inset CommandInset label
22154 name "tab:This-is-subtable-b"
22158 This is subtable b.
22166 \begin_layout Plain Layout
22168 \begin_inset Tabular
22169 <lyxtabular version="3" rows="1" columns="5">
22170 <features tabularvalignment="middle">
22171 <column alignment="center" valignment="top" width="0">
22172 <column alignment="center" valignment="top" width="0">
22173 <column alignment="center" valignment="top" width="0">
22174 <column alignment="center" valignment="top" width="0">
22175 <column alignment="center" valignment="top" width="0">
22177 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22180 \begin_layout Plain Layout
22186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22189 \begin_layout Plain Layout
22195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22198 \begin_layout Plain Layout
22204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22207 \begin_layout Plain Layout
22213 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22216 \begin_layout Plain Layout
22233 \begin_inset space \hfill{}
22244 \begin_layout Standard
22245 \begin_inset Float table
22250 \begin_layout Plain Layout
22251 \begin_inset Caption
22253 \begin_layout Plain Layout
22254 \begin_inset CommandInset label
22256 name "tab:Two-subtables-upon"
22260 Two subtables placed one above the other.
22261 (a) table with 4 cells, (b) table with 5 cells.
22269 \begin_layout Plain Layout
22271 \begin_inset Float table
22276 \begin_layout Plain Layout
22277 \begin_inset Caption
22279 \begin_layout Plain Layout
22288 \begin_layout Plain Layout
22290 \begin_inset Tabular
22291 <lyxtabular version="3" rows="1" columns="4">
22292 <features tabularvalignment="middle">
22293 <column alignment="center" valignment="top" width="0">
22294 <column alignment="center" valignment="top" width="0">
22295 <column alignment="center" valignment="top" width="0">
22296 <column alignment="center" valignment="top" width="0">
22298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22301 \begin_layout Plain Layout
22307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22310 \begin_layout Plain Layout
22316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22319 \begin_layout Plain Layout
22325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22328 \begin_layout Plain Layout
22347 \begin_layout Plain Layout
22349 \begin_inset Float table
22354 \begin_layout Plain Layout
22355 \begin_inset Caption
22357 \begin_layout Plain Layout
22366 \begin_layout Plain Layout
22368 \begin_inset Tabular
22369 <lyxtabular version="3" rows="1" columns="5">
22370 <features tabularvalignment="middle">
22371 <column alignment="center" valignment="top" width="0">
22372 <column alignment="center" valignment="top" width="0">
22373 <column alignment="center" valignment="top" width="0">
22374 <column alignment="center" valignment="top" width="0">
22375 <column alignment="center" valignment="top" width="0">
22377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22380 \begin_layout Plain Layout
22386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22389 \begin_layout Plain Layout
22395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22398 \begin_layout Plain Layout
22404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22407 \begin_layout Plain Layout
22413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22416 \begin_layout Plain Layout
22440 \begin_layout Section
22441 Floats Side by Side
22442 \begin_inset Index idx
22445 \begin_layout Plain Layout
22446 Floats ! Side by side
22454 \begin_layout Standard
22455 To place floats side by side, as in Figures
22456 \begin_inset space ~
22460 \begin_inset CommandInset ref
22462 reference "fig:Float-left"
22467 \begin_inset CommandInset ref
22469 reference "fig:Float-right"
22478 In it two minipage boxes are inserted.
22482 \begin_layout Plain Layout
22483 Minipages are explained in section
22484 \begin_inset space ~
22488 \begin_inset CommandInset ref
22490 reference "sec:Minipages"
22499 The width is set to 45
22500 \begin_inset space \thinspace{}
22504 \begin_inset space \thinspace{}
22507 column% and the box alignment to
22512 The minipage boxes contain the image and the caption in the same way as
22513 they are in a float.
22514 The only difference is that the image unit
22517 \begin_inset space ~
22521 \begin_inset space ~
22526 is now calculated according to the width of the minipage boxes.
22529 \begin_layout Standard
22530 \begin_inset Float figure
22535 \begin_layout Plain Layout
22536 \begin_inset Box Frameless
22546 height_special "totalheight"
22549 \begin_layout Plain Layout
22551 \begin_inset Graphics
22552 filename clipart/mobius.eps
22555 scaleBeforeRotation
22562 \begin_layout Plain Layout
22563 \begin_inset Caption
22565 \begin_layout Plain Layout
22566 \begin_inset CommandInset label
22568 name "fig:Float-left"
22572 Float on the left side.
22583 \begin_inset space \hfill{}
22587 \begin_inset Box Frameless
22597 height_special "totalheight"
22600 \begin_layout Plain Layout
22602 \begin_inset Graphics
22603 filename clipart/platypus.eps
22606 scaleBeforeRotation
22613 \begin_layout Plain Layout
22614 \begin_inset Caption
22616 \begin_layout Plain Layout
22617 \begin_inset CommandInset label
22619 name "fig:Float-right"
22623 Float on the right side.
22636 \begin_layout Plain Layout
22645 \begin_layout Section
22647 \begin_inset Index idx
22650 \begin_layout Plain Layout
22651 Caption ! Formatting
22657 \begin_inset Index idx
22660 \begin_layout Plain Layout
22661 Floats ! Caption Formatting
22667 \begin_inset CommandInset label
22669 name "sec:Caption-Formatting"
22676 \begin_layout Standard
22681 environment is the default paragraph environment for
22686 On the LyX screen captions appear as label, e.
22687 \begin_inset space \thinspace{}
22691 \begin_inset space \space{}
22695 \begin_inset Quotes eld
22703 \begin_inset Quotes erd
22706 followed by the caption text.
22708 \begin_inset Quotes eld
22712 \begin_inset Quotes erd
22715 is the actual reference number.
22716 By default the label and the number are in the same font as the caption
22717 text and a colon follows the number to divide the label from the text.
22718 This caption format is not suitable for all document formats.
22722 \begin_layout Standard
22723 To change the default caption format, load the LaTeX-package
22728 \begin_inset Index idx
22731 \begin_layout Plain Layout
22732 LaTeX-packages ! caption
22737 in the document preamble with this line:
22740 \begin_layout Standard
22745 usepackage[format definition]{caption}
22748 \begin_layout Standard
22749 To have for example the label and the number in sans-serif bold font and
22750 the table captions always above the table as in this document, use the
22754 \begin_layout Standard
22759 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22762 \begin_layout Standard
22763 You can also define different caption formats for the different float types.
22764 In this case load the
22768 package without format specific options and define the different formats
22769 with the help of the command
22772 \begin_layout Standard
22777 captionsetup[float type]{format definition}
22780 \begin_layout Standard
22781 in the document preamble.
22782 For example the caption formats of Figure
22783 \begin_inset space ~
22787 \begin_inset CommandInset ref
22789 reference "fig:This-is-an-fig"
22794 \begin_inset space ~
22798 \begin_inset CommandInset ref
22800 reference "tab:This-is-an-tab"
22804 can be created using these commands in the document preamble:
22807 \begin_layout Standard
22812 usepackage[tableposition=top]{caption}
22815 \begin_inset Newline newline
22822 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22823 \begin_inset Newline newline
22827 \begin_inset Phantom HPhantom
22830 \begin_layout Plain Layout
22835 captionsetup[figure]{
22841 \begin_inset Newline newline
22846 captionsetup[table]{labelfont={bf,sf}}
22849 \begin_layout Standard
22850 \begin_inset Note Greyedout
22853 \begin_layout Plain Layout
22862 has no effect when a
22867 \begin_inset Index idx
22870 \begin_layout Plain Layout
22871 LaTeX-packages ! KOMA-Script
22876 document class is used.
22877 In this case the document class option
22879 captions=tableheading
22889 \begin_layout Standard
22890 For more information about the package
22894 we refer to its documentation
22895 \begin_inset CommandInset citation
22904 \begin_layout Standard
22905 To change the label name from e.
22906 \begin_inset space \thinspace{}
22910 \begin_inset space \space{}
22914 \begin_inset Quotes eld
22918 \begin_inset Quotes erd
22922 \begin_inset Quotes eld
22926 \begin_inset Quotes erd
22929 use this preamble command:
22932 \begin_layout Standard
22939 fnum@figure}{Image~
22944 \begin_layout Standard
22951 inserts the figure number and
22954 \begin_inset Quotes eld
22960 \begin_inset Quotes erd
22963 creates a protected space.
22966 \begin_layout Standard
22967 \begin_inset VSpace bigskip
22975 \begin_inset Index idx
22978 \begin_layout Plain Layout
22979 LaTeX-packages ! KOMA-Script
22986 article (KOMA-Script)
22994 letter (KOMA-Script)
22998 report (KOMA-Script)
23001 \begin_inset space \thinspace{}
23004 ), you can alternatively to the
23012 's built-in command
23019 For example, to have the caption label in bold, add this command to your
23023 \begin_layout Standard
23028 setkomafont{captionlabel}{
23033 \begin_layout Standard
23034 For more information about
23045 \begin_inset CommandInset citation
23054 \begin_layout Standard
23058 \begin_layout Plain Layout
23062 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23069 \begin_inset Note Note
23072 \begin_layout Plain Layout
23073 The caption format is changed only for this example.
23081 \begin_layout Standard
23082 \begin_inset Float figure
23088 \begin_layout Plain Layout
23090 \begin_inset Graphics
23091 filename clipart/mobius.eps
23094 scaleBeforeRotation
23101 \begin_layout Plain Layout
23102 \begin_inset Caption
23104 \begin_layout Plain Layout
23105 \begin_inset CommandInset label
23107 name "fig:This-is-an-fig"
23111 This is an example figure caption that is longer than one line to show the
23112 different caption format.
23113 Here a self-defined caption format is used.
23126 \begin_layout Standard
23130 \begin_layout Plain Layout
23134 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23143 \begin_layout Standard
23144 \begin_inset Float table
23150 \begin_layout Plain Layout
23151 \begin_inset Caption
23153 \begin_layout Plain Layout
23154 \begin_inset CommandInset label
23156 name "tab:This-is-an-tab"
23160 This is an example table caption that is longer than one line to show the
23161 different caption format.
23162 Here the standard caption format for tables in this document is used.
23170 \begin_layout Plain Layout
23172 \begin_inset Tabular
23173 <lyxtabular version="3" rows="1" columns="5">
23174 <features tabularvalignment="middle">
23175 <column alignment="center" valignment="top" width="0">
23176 <column alignment="center" valignment="top" width="0">
23177 <column alignment="center" valignment="top" width="0">
23178 <column alignment="center" valignment="top" width="0">
23179 <column alignment="center" valignment="top" width="0">
23181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23184 \begin_layout Plain Layout
23190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23193 \begin_layout Plain Layout
23199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23202 \begin_layout Plain Layout
23208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23211 \begin_layout Plain Layout
23217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23220 \begin_layout Plain Layout
23239 \begin_layout Section
23241 \begin_inset Index idx
23244 \begin_layout Plain Layout
23245 Caption ! Placement
23251 \begin_inset Index idx
23254 \begin_layout Plain Layout
23255 Floats ! Caption Placement
23261 \begin_inset CommandInset label
23263 name "sec:Caption-Placement"
23270 \begin_layout Standard
23271 The common caption placement rule is:
23274 \begin_layout Description
23275 Figure: Caption is set below the figure
23278 \begin_layout Description
23279 Table: Caption is set above the table
23282 \begin_layout Standard
23283 Having the caption above the table is unfortunately not supported in LaTeX's
23285 That means if you are using the document classes
23301 there will be no space between the caption and the table.
23302 To insert the necessary space, add the following option to the load command
23303 of the LaTeX-package
23307 in your document preamble
23311 \begin_layout Plain Layout
23313 \begin_inset space ~
23317 \begin_inset CommandInset ref
23319 reference "sec:Caption-Formatting"
23323 for more information of the package
23335 \begin_layout Standard
23341 \begin_layout Standard
23347 \begin_inset Index idx
23350 \begin_layout Plain Layout
23351 LaTeX-packages ! KOMA-Script
23358 article (KOMA-Script)
23366 letter (KOMA-Script)
23370 report (KOMA-Script)
23373 \begin_inset space \thinspace{}
23376 ), you can alternatively to the
23380 package set the document class option
23382 captions=tableheading
23387 \begin_layout Standard
23388 \begin_inset VSpace bigskip
23391 It is also possible to set the caption beside a figure or table.
23392 To get this the LaTeX-package
23397 \begin_inset Index idx
23400 \begin_layout Plain Layout
23401 LaTeX-packages ! sidecap
23406 has to be loaded in the document preamble with the line
23409 \begin_layout Standard
23414 usepackage[option]{sidecap}
23417 \begin_layout Standard
23418 If you set no option, the caption is placed on the side of the outer page
23419 margin – to the right on odd pages, to the left on even pages.
23420 You can change the placement to inner margin with the option
23425 To force the placement always to the right or left, use the option
23436 \begin_layout Standard
23440 \begin_layout Plain Layout
23450 \begin_inset Note Note
23453 \begin_layout Plain Layout
23454 The following section will only be displayed when the LaTeX-package
23466 \begin_layout Standard
23467 To place in LyX the caption of a float on the side, it is necessary to add
23468 these commands to the document preamble:
23471 \begin_layout Standard
23472 \begin_inset Newpage pagebreak
23478 \begin_layout Standard
23480 \begin_inset CommandInset line
23491 \begin_layout Standard
23498 TabBesBeg}[1][1.0]{%
23499 \begin_inset Newline newline
23503 \begin_inset Phantom HPhantom
23506 \begin_layout Plain Layout
23507 \begin_inset space ~
23522 \begin_inset Newline newline
23526 \begin_inset Phantom HPhantom
23529 \begin_layout Plain Layout
23532 \begin_inset space ~
23547 \begin_inset Newline newline
23551 \begin_inset Phantom HPhantom
23554 \begin_layout Plain Layout
23557 \begin_inset space ~
23567 renewenvironment{table}[1]{
23569 begin{SCtable}[#1]##1}{
23574 \begin_layout Standard
23582 \begin_inset Newline newline
23586 \begin_inset Phantom HPhantom
23589 \begin_layout Plain Layout
23590 \begin_inset space ~
23605 \begin_inset Newline newline
23609 \begin_inset Phantom HPhantom
23612 \begin_layout Plain Layout
23613 \begin_inset space ~
23630 \begin_layout Standard
23637 FigBesBeg}[1][1.0]{%
23638 \begin_inset Newline newline
23642 \begin_inset Phantom HPhantom
23645 \begin_layout Plain Layout
23646 \begin_inset space ~
23661 \begin_inset Newline newline
23665 \begin_inset Phantom HPhantom
23668 \begin_layout Plain Layout
23669 \begin_inset space ~
23684 \begin_inset Newline newline
23688 \begin_inset Phantom HPhantom
23691 \begin_layout Plain Layout
23692 \begin_inset space ~
23702 renewenvironment{figure}[1]{
23704 begin{SCfigure}[#1]##1}{
23709 \begin_layout Standard
23717 \begin_inset Newline newline
23721 \begin_inset Phantom HPhantom
23724 \begin_layout Plain Layout
23725 \begin_inset space ~
23740 \begin_inset Newline newline
23744 \begin_inset Phantom HPhantom
23747 \begin_layout Plain Layout
23748 \begin_inset space ~
23765 \begin_layout Standard
23767 \begin_inset CommandInset line
23778 \begin_layout Standard
23779 The commands allow you to redefine the floats so that the caption is set
23781 For figure floats use the command
23784 \begin_layout Standard
23792 \begin_layout Standard
23793 in TeX-Code before the float.
23794 And insert the command
23797 \begin_layout Standard
23805 \begin_layout Standard
23806 in TeX-Code at the point where you want to get back to the original float
23810 \begin_layout Standard
23811 For table floats use the corresponding commands
23814 \begin_layout Standard
23828 \begin_layout Standard
23830 \begin_inset space ~
23834 \begin_inset CommandInset ref
23836 reference "fig:cap-beside-fig"
23841 \begin_inset space ~
23845 \begin_inset CommandInset ref
23847 reference "tab:cap-beside-tab"
23851 are examples where the caption is set beside.
23854 \begin_layout Standard
23855 You can see in the examples that the caption text appears at the top of
23856 the floats for table floats and at the bottom for figure floats.
23857 To change this, you can use the command
23860 \begin_layout Standard
23865 sidecaptionvpos{float type}{placement}
23868 \begin_layout Standard
23869 in the document preamble or in TeX-Code before the float.
23870 The float type is either
23878 , the placement can be
23879 \begin_inset Quotes eld
23887 \begin_inset Quotes erd
23891 \begin_inset Quotes eld
23899 \begin_inset Quotes erd
23903 \begin_inset Quotes eld
23911 \begin_inset Quotes erd
23915 To have for example the caption of figure floats vertically centered, use
23919 \begin_layout Standard
23924 sidecaptionvpos{figure}{c}
23927 \begin_layout Standard
23928 This was used for Figure
23929 \begin_inset space ~
23933 \begin_inset CommandInset ref
23935 reference "fig:cap-beside-fig-2"
23942 \begin_layout Standard
23943 \begin_inset VSpace medskip
23949 \begin_layout Standard
23950 The default caption width is the width of the image/table.
23951 For thin image/tables, like in Table
23952 \begin_inset space ~
23956 \begin_inset CommandInset ref
23958 reference "tab:cap-beside-tab"
23962 , this leads to captions that are too thin.
23963 You can increase the width by specifying a factor that will be multiplied
23964 with the image/table width to get the caption width.
23965 The caption width will automatically be recalculated in case it would protrude
23966 over the page or column margin due to the specified width.
23971 can either be given as optional argument for
23980 \begin_layout Standard
23988 \begin_layout Standard
23989 or in the definition of
23999 with another value.
24000 If you do the latter, your factor will be the default if
24006 is used without an argument.
24008 \begin_inset space ~
24012 \begin_inset CommandInset ref
24014 reference "tab:cap-beside-tab-wider"
24018 the factor 5 was used.
24021 \begin_layout Standard
24022 \begin_inset Note Greyedout
24025 \begin_layout Plain Layout
24030 For floats with captions set beside, you cannot use the float placement
24034 \begin_inset space ~
24039 because it is not supported by
24051 \begin_layout Standard
24052 \begin_inset VSpace medskip
24055 For more information about the package
24059 we refer to its documentation
24060 \begin_inset CommandInset citation
24069 \begin_layout Standard
24070 \begin_inset Note Greyedout
24073 \begin_layout Plain Layout
24083 \begin_inset Index idx
24086 \begin_layout Plain Layout
24087 LaTeX-packages ! hypcap
24092 , described in section
24093 \begin_inset space ~
24097 \begin_inset CommandInset ref
24099 reference "sub:Reference-Position"
24103 , has no effect on floats with the caption set beside.
24111 \begin_layout Standard
24115 \begin_layout Plain Layout
24127 \begin_layout Standard
24128 \begin_inset Float figure
24133 \begin_layout Plain Layout
24134 \begin_inset Graphics
24135 filename clipart/escher-lsd.eps
24137 scaleBeforeRotation
24144 \begin_layout Plain Layout
24145 \begin_inset Caption
24147 \begin_layout Plain Layout
24148 \begin_inset CommandInset label
24150 name "fig:cap-beside-fig"
24154 This is a caption beside a figure.
24167 \begin_layout Standard
24171 \begin_layout Plain Layout
24183 \begin_layout Standard
24187 \begin_layout Plain Layout
24199 \begin_layout Standard
24200 \begin_inset Float table
24205 \begin_layout Plain Layout
24206 \begin_inset Caption
24208 \begin_layout Plain Layout
24209 \begin_inset CommandInset label
24211 name "tab:cap-beside-tab"
24215 This is a caption beside a table.
24223 \begin_layout Plain Layout
24224 \begin_inset Tabular
24225 <lyxtabular version="3" rows="4" columns="5">
24226 <features tabularvalignment="middle">
24227 <column alignment="center" valignment="top" width="0">
24228 <column alignment="center" valignment="top" width="0">
24229 <column alignment="center" valignment="top" width="0">
24230 <column alignment="center" valignment="top" width="0">
24231 <column alignment="center" valignment="top" width="0">
24233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24236 \begin_layout Plain Layout
24242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24245 \begin_layout Plain Layout
24251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24254 \begin_layout Plain Layout
24260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24263 \begin_layout Plain Layout
24269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24272 \begin_layout Plain Layout
24280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24283 \begin_layout Plain Layout
24289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24292 \begin_layout Plain Layout
24298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24301 \begin_layout Plain Layout
24307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24310 \begin_layout Plain Layout
24316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24319 \begin_layout Plain Layout
24327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24330 \begin_layout Plain Layout
24336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24339 \begin_layout Plain Layout
24345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24348 \begin_layout Plain Layout
24354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24357 \begin_layout Plain Layout
24363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24366 \begin_layout Plain Layout
24374 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24377 \begin_layout Plain Layout
24383 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24386 \begin_layout Plain Layout
24392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24395 \begin_layout Plain Layout
24401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24404 \begin_layout Plain Layout
24410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24413 \begin_layout Plain Layout
24432 \begin_layout Standard
24436 \begin_layout Plain Layout
24448 \begin_layout Standard
24452 \begin_layout Plain Layout
24456 sidecaptionvpos{figure}{c}
24462 \begin_inset Float figure
24467 \begin_layout Plain Layout
24468 \begin_inset Graphics
24469 filename clipart/escher-lsd.eps
24471 scaleBeforeRotation
24478 \begin_layout Plain Layout
24479 \begin_inset Caption
24481 \begin_layout Plain Layout
24482 \begin_inset CommandInset label
24484 name "fig:cap-beside-fig-2"
24488 This is a vertically centered caption beside a figure.
24501 \begin_layout Standard
24505 \begin_layout Plain Layout
24517 \begin_layout Standard
24521 \begin_layout Plain Layout
24533 \begin_layout Standard
24534 \begin_inset Float table
24539 \begin_layout Plain Layout
24540 \begin_inset Caption
24542 \begin_layout Plain Layout
24543 \begin_inset CommandInset label
24545 name "tab:cap-beside-tab-wider"
24549 This is a caption is wider than the one in Table
24550 \begin_inset space ~
24554 \begin_inset CommandInset ref
24556 reference "tab:cap-beside-tab"
24568 \begin_layout Plain Layout
24569 \begin_inset Tabular
24570 <lyxtabular version="3" rows="4" columns="5">
24571 <features tabularvalignment="middle">
24572 <column alignment="center" valignment="top" width="0">
24573 <column alignment="center" valignment="top" width="0">
24574 <column alignment="center" valignment="top" width="0">
24575 <column alignment="center" valignment="top" width="0">
24576 <column alignment="center" valignment="top" width="0">
24578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24581 \begin_layout Plain Layout
24587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24590 \begin_layout Plain Layout
24596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24599 \begin_layout Plain Layout
24605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24608 \begin_layout Plain Layout
24614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24617 \begin_layout Plain Layout
24625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24628 \begin_layout Plain Layout
24634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24637 \begin_layout Plain Layout
24643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24646 \begin_layout Plain Layout
24652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24655 \begin_layout Plain Layout
24661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24664 \begin_layout Plain Layout
24672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24675 \begin_layout Plain Layout
24681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24684 \begin_layout Plain Layout
24690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24693 \begin_layout Plain Layout
24699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24702 \begin_layout Plain Layout
24708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24711 \begin_layout Plain Layout
24719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24722 \begin_layout Plain Layout
24728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24731 \begin_layout Plain Layout
24737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24740 \begin_layout Plain Layout
24746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24749 \begin_layout Plain Layout
24755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24758 \begin_layout Plain Layout
24777 \begin_layout Standard
24781 \begin_layout Plain Layout
24793 \begin_layout Standard
24797 \begin_layout Plain Layout
24807 \begin_inset Note Note
24810 \begin_layout Plain Layout
24811 The following will be displayed when the LaTeX-package
24823 \begin_layout Standard
24824 You need to install the LaTeX-package
24828 to see the following part of this section in the output.
24831 \begin_layout Standard
24835 \begin_layout Plain Layout
24847 \begin_layout Section
24849 \begin_inset Index idx
24852 \begin_layout Plain Layout
24853 Floats ! Float Lists
24861 \begin_layout Standard
24862 Similar to the table of contents where the sections of the document are
24863 listed, there are listings for all float types, like the figures of the
24865 You can insert them via the
24867 Insert\SpecialChar \menuseparator
24869 \begin_inset space ~
24873 \begin_inset space ~
24881 \begin_layout Standard
24882 The list entries are the float captions or its short title, the float number,
24883 and the page number where they appear in the document.
24886 \begin_layout Standard
24887 You can find the list of figures and tables at the end of this document.
24890 \begin_layout Chapter
24894 \begin_layout Section
24896 \begin_inset Index idx
24899 \begin_layout Plain Layout
24908 \begin_layout Standard
24909 Notes are inserted with the toolbar button
24910 \begin_inset Graphics
24911 filename ../images/note-insert.png
24913 scaleBeforeRotation
24919 Insert\SpecialChar \menuseparator
24923 There are three types of notes:
24926 \begin_layout Description
24928 \begin_inset space ~
24931 Note This note type is for internal notes that won't appear in the output.
24932 Its note-box looks like this:
24933 \begin_inset Newline newline
24937 \begin_inset Newline newline
24941 \begin_inset Graphics
24942 filename clipart/LyXNoteImageQt4.png
24945 scaleBeforeRotation
24950 \begin_inset Note Note
24953 \begin_layout Plain Layout
24954 This is text in a note box that doesn't appear in the output.
24962 \begin_layout Description
24963 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24964 ent, when you export the document to LaTeX via the menu
24966 File\SpecialChar \menuseparator
24967 Export\SpecialChar \menuseparator
24968 LaTeX (pdflatex) / (plain)
24971 Its note-box looks like this:
24972 \begin_inset Newline newline
24976 \begin_inset Newline newline
24980 \begin_inset Graphics
24981 filename clipart/CommentNoteImageQt4.png
24984 scaleBeforeRotation
24989 \begin_inset Note Comment
24992 \begin_layout Plain Layout
24993 This is text in a note box that only appears as comment in LaTeX-files.
25001 \begin_layout Description
25003 \begin_inset space ~
25006 Out This note will appear in the output as grey text.
25007 Its note-box looks like this:
25008 \begin_inset Newline newline
25012 \begin_inset Newline newline
25016 \begin_inset Graphics
25017 filename clipart/GreyedOutNoteImageQt4.png
25020 scaleBeforeRotation
25025 \begin_inset Newline newline
25032 \begin_layout Plain Layout
25036 renewenvironment{lyxgreyedout}
25039 \begin_layout Plain Layout
25043 textcolor[gray]{0.8}
25053 \begin_inset Note Greyedout
25056 \begin_layout Plain Layout
25061 \begin_layout Plain Layout
25062 This is an example footnote within a greyed out note.
25067 of a comment that appears in the output as grey text.
25076 \begin_layout Plain Layout
25080 renewenvironment{lyxgreyedout}
25083 \begin_layout Plain Layout
25097 \begin_inset Note Note
25100 \begin_layout Plain Layout
25101 The greyed out note is here redefined to show it with the original LyX definitio
25102 n because greyed out notes are redefined in the preamble of this document,
25103 as described below, to have blue text.
25109 \begin_inset Newline newline
25113 \begin_inset Newline newline
25116 As you can see in the example, the first line of greyed out notes is a bit
25117 indented and greyed out notes can have footnotes.
25120 \begin_layout Standard
25121 \begin_inset VSpace bigskip
25124 When you use the toolbar button
25125 \begin_inset Graphics
25126 filename ../images/note-insert.png
25128 scaleBeforeRotation
25135 \begin_inset space ~
25141 You can switch between the five note types by right-clicking on the note-box.
25146 If you want to turn existing text into a note, mark it and click on the
25160 To change a note to text, press the backspace key when the cursor is in
25161 the first position of a note, or press the delete key when the cursor is
25162 in the very last position of the note, respectively.
25165 \begin_layout Standard
25166 \begin_inset VSpace bigskip
25169 You can change the text color of the greyed out notes in the menu
25171 Document\SpecialChar \menuseparator
25172 Settings\SpecialChar \menuseparator
25178 \begin_layout Section
25180 \begin_inset CommandInset label
25182 name "sec:Footnotes"
25187 \begin_inset Index idx
25190 \begin_layout Plain Layout
25197 \begin_inset Index idx
25200 \begin_layout Plain Layout
25209 \begin_layout Standard
25210 Footnotes can be inserted using the toolbar button
25211 \begin_inset Graphics
25212 filename ../images/footnote-insert.png
25214 scaleBeforeRotation
25220 Insert\SpecialChar \menuseparator
25232 then the following footnote-box:
25233 \begin_inset Graphics
25234 filename clipart/footnoteQt4.png
25236 scaleBeforeRotation
25244 where you can enter the footnote text.
25245 If you want to turn existing text into a footnote, mark it and click on
25267 to text, press the Backspace key when the cursor is in the first position
25276 , or press the Delete key when the cursor is in the very last position of
25288 \begin_layout Standard
25289 Here is an example footnote:
25297 \begin_layout Plain Layout
25298 \begin_inset CommandInset label
25300 name "foot:This-is-an"
25304 This is an example footnote.
25317 \begin_layout Plain Layout
25321 newcounter{MyRepeatFoot}
25324 \begin_layout Plain Layout
25328 setcounter{MyRepeatFoot}{
25338 \begin_layout Standard
25339 The footnote will appear in the output as a superscript number at the text
25340 position where the footnote box is placed.
25341 The footnote text is placed at the bottom of the current page.
25342 The footnote number is calculated by LaTeX; the numbers are consecutive.
25343 It depends on your document-class, whether the footnote number is reset
25347 \begin_layout Standard
25348 Footnotes can be referenced like floats: Insert a label into the footnote
25349 and cross-reference this label in the text as described in section
25350 \begin_inset space ~
25354 \begin_inset CommandInset ref
25356 reference "sec:Referencing-Floats"
25361 \begin_inset Newline newline
25364 This is a cross-reference of Footnote
25365 \begin_inset space ~
25369 \begin_inset CommandInset ref
25371 reference "foot:This-is-an"
25378 \begin_layout Standard
25379 \begin_inset VSpace defskip
25382 Footnotes in tables are not printed by LaTeX due to technical reasons.
25383 However there exists another method to print them: Instead of the footnote
25390 is inserted as TeX-code.
25391 The text of the footnote is entered as an argument of the TeX-code command
25399 \begin_inset Newline newline
25402 This was done for the following table with the command
25405 \begin_layout Standard
25412 Printed table footnote.
25417 \begin_layout Standard
25418 \begin_inset Tabular
25419 <lyxtabular version="3" rows="2" columns="1">
25420 <features tabularvalignment="middle">
25421 <column alignment="center" valignment="top" width="0">
25423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25426 \begin_layout Plain Layout
25427 This an example text.
25431 \begin_layout Plain Layout
25432 This footnote will not be printed!
25444 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25447 \begin_layout Plain Layout
25448 This an example text.
25452 \begin_layout Plain Layout
25475 \begin_layout Plain Layout
25484 Printed table footnote.
25488 \begin_layout Plain Layout
25498 \begin_layout Standard
25499 Footnotes in longtables are described in section
25500 \begin_inset space ~
25504 \begin_inset CommandInset ref
25506 reference "sub:Footnotes-in-Longtables"
25513 \begin_layout Standard
25514 Footnotes in minipage boxes are printed, but inside the box and with a different
25515 numbering because a minipage box is like a page inside a page.
25516 (For more about minipages, see section
25517 \begin_inset space ~
25521 \begin_inset CommandInset ref
25523 reference "sec:Minipages"
25527 .) To get a footnote in the minipage that is output at the bottom of the
25528 page like normal footnotes, also use the method of
25543 \begin_layout Standard
25544 \begin_inset Box Frameless
25554 height_special "totalheight"
25557 \begin_layout Plain Layout
25558 This an example text in a minipage.
25562 \begin_layout Plain Layout
25563 Footnote in the minipage.
25571 \begin_layout Plain Layout
25572 This an example text in a minipage.
25576 \begin_layout Plain Layout
25593 \begin_layout Standard
25597 \begin_layout Plain Layout
25606 Footnote outside the minipage.
25610 \begin_layout Plain Layout
25620 \begin_layout Standard
25621 \begin_inset VSpace defskip
25627 \begin_layout Standard
25628 To refer to the same footnote several times without printing the footnote
25629 text every time, use the command
25633 footnotemark[number]
25636 \begin_inset Newline newline
25639 As you do not know the number of the repeating footnote while you are writing
25640 the text, you have to store its number.
25641 For the following footnote mark example, these commands were inserted in
25642 TeX-code after Footnote
25643 \begin_inset space ~
25647 \begin_inset CommandInset ref
25649 reference "foot:This-is-an"
25653 to store the footnote number:
25656 \begin_layout Standard
25661 newcounter{MyRepeatFoot}
25662 \begin_inset Newline newline
25667 setcounter{MyRepeatFoot}{
25672 \begin_layout Standard
25673 The footnote mark was then created with this command:
25676 \begin_layout Standard
25686 \begin_layout Standard
25687 Here is a repeated footnote:
25695 \begin_layout Plain Layout
25709 \begin_layout Standard
25710 If you want to repeat the previous footnote, you can omit the storage of
25711 the footnote number and just use this command instead:
25714 \begin_layout Standard
25724 \begin_layout Standard
25725 Here is another repeated footnote:
25733 \begin_layout Plain Layout
25747 \begin_layout Subsection
25749 \begin_inset CommandInset label
25751 name "sub:Footnote-Numbering"
25756 \begin_inset Index idx
25759 \begin_layout Plain Layout
25760 Footnotes ! Numbering
25768 \begin_layout Standard
25769 To reset the footnote number back to 1 after each section
25771 , add this command to your document preamble:
25774 \begin_layout Standard
25779 @addtoreset{footnote}{section}
25782 \begin_layout Standard
25783 \begin_inset VSpace bigskip
25786 The following preamble command changes the footnote numbering style to small
25790 \begin_layout Standard
25802 \begin_layout Standard
25806 \begin_layout Plain Layout
25819 This is a footnote with roman numbering:
25823 \begin_layout Plain Layout
25824 This is an example footnote with roman numbering.
25832 \begin_layout Standard
25833 To change the numbering style to capital roman numerals replace in the command
25848 \begin_inset Quotes eld
25852 \begin_inset Quotes erd
25855 footnotes with capital or small Latin letters use
25869 \begin_inset Quotes eld
25873 \begin_inset Quotes erd
25876 footnotes with symbols use
25885 \begin_layout Standard
25886 \begin_inset Note Greyedout
25889 \begin_layout Plain Layout
25894 You can only number 26 footnotes with Latin letters, because this numbering
25895 is limited to single letters.
25901 \begin_inset Newline newline
25905 \begin_inset Note Greyedout
25908 \begin_layout Plain Layout
25913 You can only number 9 footnotes with symbols.
25921 \begin_layout Standard
25922 To return to the default numbering style after you have changed to another
25935 in the command above.
25939 \begin_layout Plain Layout
25955 \begin_layout Standard
25956 \begin_inset VSpace bigskip
25962 \begin_layout Standard
25963 If you want to have footnotes numbered in the scheme
25964 \begin_inset Quotes eld
25968 \begin_inset Quotes erd
25971 , add the following command to your document preamble:
25974 \begin_layout Standard
25979 numberwithin{footnote}{chapter}
25982 \begin_layout Standard
25983 To be able to use the command
25992 \begin_inset space ~
25997 in the document settings the option
26000 \begin_inset space ~
26004 \begin_inset space ~
26008 \begin_inset space ~
26016 \begin_layout Standard
26020 \begin_layout Plain Layout
26024 numberwithin{footnote}{chapter}
26029 This is another example footnote:
26035 \begin_layout Plain Layout
26036 This is a footnote numbered in the scheme
26037 \begin_inset Quotes eld
26041 \begin_inset Quotes erd
26055 \begin_layout Plain Layout
26071 \begin_layout Standard
26072 \begin_inset Note Greyedout
26075 \begin_layout Plain Layout
26086 always prints out the footnote number as arabic number; previous redefinitions
26087 to get non-arabic numbers are overwritten.
26095 \begin_layout Standard
26096 So to get for example the scheme
26097 \begin_inset Quotes eld
26103 \begin_inset Quotes erd
26106 , use this command instead of
26115 \begin_layout Standard
26129 \begin_layout Subsection
26131 \begin_inset Index idx
26134 \begin_layout Plain Layout
26135 Footnotes ! Placement
26143 \begin_layout Standard
26144 If you have several footnotes in one page, they appear without vertical
26145 space between them at the bottom of the page.
26146 To make them more readable you can e.
26147 \begin_inset space \thinspace{}
26151 \begin_inset space \space{}
26155 \begin_inset space \thinspace{}
26158 mm space with the following preamble command:
26161 \begin_layout Standard
26171 \begin_inset Newline newline
26185 \begin_layout Standard
26186 \begin_inset VSpace bigskip
26189 In a two-column document the footnotes appear at the bottom of every column,
26191 \begin_inset space ~
26195 \begin_inset CommandInset ref
26197 reference "fig:Standard-footnote-placement"
26202 If the footnotes should only appear at the bottom of the right column,
26204 \begin_inset space ~
26208 \begin_inset CommandInset ref
26210 reference "fig:Footnote-placement-in"
26214 , use the LaTeX-package
26219 \begin_inset Index idx
26222 \begin_layout Plain Layout
26223 LaTeX-packages ! ftnright
26228 with this command in the document preamble:
26231 \begin_layout Standard
26236 usepackage{ftnright}
26239 \begin_layout Standard
26240 \begin_inset Float figure
26246 \begin_layout Plain Layout
26250 \begin_layout Plain Layout
26260 \begin_inset Graphics
26261 filename clipart/without_fntright.pdf
26263 scaleBeforeRotation
26271 \begin_layout Plain Layout
26281 \begin_layout Plain Layout
26282 \begin_inset Caption
26284 \begin_layout Plain Layout
26285 \begin_inset CommandInset label
26287 name "fig:Standard-footnote-placement"
26291 Standard footnote placement in two-column documents.
26304 \begin_layout Standard
26305 \begin_inset Float figure
26311 \begin_layout Plain Layout
26315 \begin_layout Plain Layout
26325 \begin_inset Graphics
26326 filename clipart/with_fntright.pdf
26328 scaleBeforeRotation
26336 \begin_layout Plain Layout
26346 \begin_layout Plain Layout
26347 \begin_inset Caption
26349 \begin_layout Plain Layout
26350 \begin_inset CommandInset label
26352 name "fig:Footnote-placement-in"
26356 Footnote placement in two-column documents when the LaTeX-package
26373 \begin_layout Standard
26374 \begin_inset VSpace bigskip
26377 In some scientific literature it is usual to collect the footnotes and print
26378 them in a separate paragraph at the end of a section, as in Figure
26379 \begin_inset space ~
26383 \begin_inset CommandInset ref
26385 reference "fig:Endnotes"
26390 They are then called
26391 \begin_inset Quotes eld
26395 \begin_inset Quotes erd
26399 \begin_inset Index idx
26402 \begin_layout Plain Layout
26408 To use endnotes instead of footnotes in your document, load in the menu
26411 Document\SpecialChar \menuseparator
26412 Settings\SpecialChar \menuseparator
26418 \begin_inset space ~
26422 \begin_inset space ~
26428 To insert the collected footnotes, insert the command
26431 \begin_layout Standard
26439 \begin_layout Standard
26440 in TeX-Code at the end of a section or chapter.
26443 \begin_layout Standard
26444 \begin_inset Float figure
26449 \begin_layout Plain Layout
26454 \begin_layout Plain Layout
26464 \begin_inset Graphics
26465 filename clipart/endnotes.pdf
26466 scaleBeforeRotation
26474 \begin_layout Plain Layout
26484 \begin_layout Plain Layout
26485 \begin_inset Caption
26487 \begin_layout Plain Layout
26488 \begin_inset CommandInset label
26490 name "fig:Endnotes"
26494 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26508 \begin_layout Standard
26509 \begin_inset VSpace medskip
26512 The paragraph heading for the endnotes isn't automatically translated into
26513 the document language, this must be done manually.
26514 The following preamble command translates the default English
26515 \begin_inset Quotes eld
26519 \begin_inset Quotes erd
26523 \begin_inset Quotes eld
26527 \begin_inset Quotes erd
26533 \begin_layout Standard
26540 notesname}{Anmerkungen}
26543 \begin_layout Standard
26544 \begin_inset VSpace medskip
26547 The numbering of endnotes can be changed like the footnote numbering as
26548 described in section
26549 \begin_inset space ~
26553 \begin_inset CommandInset ref
26555 reference "sub:Footnote-Numbering"
26559 ; just replace the command
26572 To reset the endnote number use the command
26578 as described in section
26579 \begin_inset space ~
26583 \begin_inset CommandInset ref
26585 reference "sub:Footnote-Numbering"
26589 and replace the command parameter
26600 \begin_layout Standard
26601 For endnotes there is the command
26605 endnotemark[number]
26607 similar to the command
26613 , that is described in section
26614 \begin_inset space ~
26618 \begin_inset CommandInset ref
26620 reference "sec:Footnotes"
26627 \begin_layout Standard
26628 \begin_inset VSpace bigskip
26631 Footnotes can also be placed in the page margin and the footnote text alignment
26632 can be changed, see the LaTeX-package
26637 \begin_inset Index idx
26640 \begin_layout Plain Layout
26641 LaTeX-packages ! footmisc
26647 \begin_inset CommandInset citation
26653 for more information about this.
26656 \begin_layout Standard
26657 For various further footnote formatting issues have a look at LaTeX-books,
26659 \begin_inset CommandInset citation
26661 key "latexcompanion,latexguide,latexbook"
26671 \begin_inset Index idx
26674 \begin_layout Plain Layout
26675 LaTeX-packages ! KOMA-Script
26680 document class, you can adjust all footnote settings using class-specific
26682 \begin_inset CommandInset citation
26691 \begin_layout Section
26693 \begin_inset Index idx
26696 \begin_layout Plain Layout
26697 Notes ! Margin Notes
26705 \begin_layout Standard
26706 Margin notes look and behave in LyX like footnotes.
26707 They are inserted via the menu
26709 Insert\SpecialChar \menuseparator
26711 \begin_inset space ~
26716 or the toolbar button
26717 \begin_inset Graphics
26718 filename ../images/marginalnote-insert.png
26720 scaleBeforeRotation
26735 \begin_inset Quotes eld
26739 \begin_inset Quotes erd
26742 appears where you can enter the text of the margin note.
26745 \begin_layout Standard
26746 At the side is an example margin note.
26751 \begin_inset Marginal
26754 \begin_layout Plain Layout
26755 This is a margin note.
26763 \begin_layout Standard
26764 Margin notes appear at the right side in single-sided documents.
26765 In double-sided documents they appear in the outer margin – left on even
26766 pages, right on odd pages.
26767 The text of margin notes is aligned opposite to the outer margin – right-aligne
26768 d when the note appears in the left margin.
26769 The first line of the margin note is placed at the position of the text
26770 line where it is inserted in the document.
26773 \begin_layout Standard
26774 \begin_inset VSpace bigskip
26777 To place the margin note in the inner margin, add the command
26780 \begin_layout Standard
26788 \begin_layout Standard
26789 in TeX-Code before a margin note.
26790 The new placement is valid for all subsequent margin notes.
26795 \begin_layout Plain Layout
26805 \begin_inset Marginal
26808 \begin_layout Plain Layout
26809 This is a margin note in the inner margin.
26817 \begin_inset Newline newline
26823 \begin_inset Note Greyedout
26826 \begin_layout Plain Layout
26831 There is often not enough space in the inner margin so that the notes are
26832 not correctly displayed in the output.
26840 \begin_layout Standard
26841 To return to the default placement insert the command
26844 \begin_layout Standard
26852 \begin_layout Standard
26857 \begin_layout Plain Layout
26867 \begin_inset Note Greyedout
26870 \begin_layout Plain Layout
26875 The command is ignored when it is within a paragraph where also the command
26890 \begin_layout Standard
26891 \begin_inset VSpace bigskip
26898 \begin_inset Marginal
26901 \begin_layout Plain Layout
26902 AVeryLongMarginParWord that isn't hyphenated.
26910 Similar to the case described in section
26911 \begin_inset space ~
26915 \begin_inset CommandInset ref
26917 reference "sub:Multiple-Lines-in"
26921 , long words cannot be hyphenated when they are the first word in a margin
26923 To avoid this, insert 0
26924 \begin_inset space \thinspace{}
26927 pt horizontal space before the word
26932 \begin_inset Marginal
26935 \begin_layout Plain Layout
26936 \begin_inset space \hspace*{}
26940 AVeryLongMarginParWord that is hyphenated.
26948 \begin_layout Standard
26949 \begin_inset VSpace bigskip
26955 \begin_layout Standard
26956 \begin_inset Note Greyedout
26959 \begin_layout Plain Layout
26964 Margin notes can normally not be used inside tables, floats, and footnotes.
26972 \begin_layout Standard
26973 \begin_inset VSpace bigskip
26979 \begin_layout Standard
26983 \begin_layout Plain Layout
26993 \begin_inset Note Note
26996 \begin_layout Plain Layout
26997 The following section will only be displayed when the LaTeX-package
27009 \begin_layout Standard
27010 This restriction can be evaded by using the LaTeX-package
27015 \begin_inset Index idx
27018 \begin_layout Plain Layout
27019 LaTeX-packages ! marginnote
27025 By adding these two lines to your document preamble, the command used by
27026 LyX for margin notes is redefined to use the command provided by the
27033 \begin_layout Standard
27038 usepackage{marginnote}
27039 \begin_inset Newline newline
27051 \begin_layout Standard
27052 This is also used in this document because
27056 has another useful feature: You can set a vertical offset for the note.
27057 This is often needed when too many margin notes are too close together
27058 or for a better page layout.
27059 The offset is set in LyX as TeX-Code directly after the margin note in
27063 \begin_layout Standard
27069 \begin_layout Standard
27070 where the offset is a length with one of the units listed in Table
27071 \begin_inset space ~
27075 \begin_inset CommandInset ref
27077 reference "tab:Units"
27082 A negative value shifts the note up, a positive value shifts it down.
27086 For example the margin note beside this text line is shifted up 1.5
27087 \begin_inset space \thinspace{}
27090 cm with the TeX-Code-command
27091 \begin_inset Quotes eld
27101 \begin_inset Quotes erd
27105 \begin_inset Marginal
27108 \begin_layout Plain Layout
27109 This margin note is shifted up 1.5
27110 \begin_inset space \thinspace{}
27113 cm from its original position.
27125 \begin_layout Plain Layout
27135 \begin_layout Standard
27136 \begin_inset VSpace medskip
27143 you can also change the alignment of the text in the margin note.
27144 For example the commands
27147 \begin_layout Standard
27154 raggedleftmarginnote}{
27157 \begin_inset Newline newline
27164 raggedrightmarginnote}{
27169 \begin_layout Standard
27170 set the alignment to centered.
27175 raggedleftmarginnote
27177 denotes margin notes that appear at the left side.
27184 \begin_layout Plain Layout
27190 raggedleftmarginnote}{
27195 \begin_layout Plain Layout
27201 raggedrightmarginnote}{
27209 \begin_inset Marginal
27212 \begin_layout Plain Layout
27213 The text of this margin note is centered.
27224 \begin_layout Standard
27231 raggedleftmarginnote}{
27234 \begin_inset Newline newline
27241 raggedrightmarginnote}{
27250 \begin_layout Plain Layout
27256 raggedleftmarginnote}{
27261 \begin_layout Plain Layout
27267 raggedrightmarginnote}{
27277 \begin_layout Standard
27278 \begin_inset VSpace medskip
27281 For the other features of
27285 refer to its documentation
27286 \begin_inset CommandInset citation
27295 \begin_layout Standard
27296 \begin_inset VSpace bigskip
27299 You can adjust the layout of margin notes by changing its definition.
27300 To create for example a header for all margin notes with the underlined,
27301 sans-serif, and bold header text
27302 \begin_inset Quotes eld
27314 \begin_inset Quotes erd
27317 , add this to your document preamble:
27320 \begin_layout Standard
27330 \begin_inset Newline newline
27340 \begin_inset Newline newline
27344 \begin_inset Phantom HPhantom
27347 \begin_layout Plain Layout
27350 \begin_inset space ~
27366 underbar{Attention!}}}%
27367 \begin_inset Newline newline
27371 \begin_inset Phantom HPhantom
27374 \begin_layout Plain Layout
27377 \begin_inset space ~
27394 \begin_layout Standard
27401 \begin_layout Plain Layout
27412 \begin_layout Plain Layout
27423 \begin_layout Plain Layout
27431 underbar{Attention!}}}%
27434 \begin_layout Plain Layout
27448 \begin_inset Marginal
27451 \begin_layout Plain Layout
27452 This is a margin note with a defined heading.
27464 \begin_layout Plain Layout
27478 \begin_layout Plain Layout
27495 \begin_inset Note Note
27498 \begin_layout Plain Layout
27499 The margin note format is changed only for this example.
27507 \begin_layout Standard
27511 \begin_layout Plain Layout
27521 \begin_inset Note Note
27524 \begin_layout Plain Layout
27525 The following will be displayed when the LaTeX-package
27537 \begin_layout Standard
27538 You need to install the LaTeX-package
27542 to see the following part of this section in the output.
27545 \begin_layout Standard
27549 \begin_layout Plain Layout
27561 \begin_layout Chapter
27565 \begin_layout Section
27567 \begin_inset Index idx
27570 \begin_layout Plain Layout
27571 Boxes ! Introduction
27579 \begin_layout Standard
27580 Boxes are used to format a block of text.
27581 Boxes can be used to write documents with multiple languages, see section
27582 \begin_inset space ~
27586 \begin_inset CommandInset ref
27588 reference "sec:Minipages"
27592 , to frame texts, see section
27593 \begin_inset space ~
27597 \begin_inset CommandInset ref
27599 reference "sec:Decoration"
27603 , to prevent words from being hyphenated, see section
27604 \begin_inset space ~
27608 \begin_inset CommandInset ref
27610 reference "sec:Prevent-Hyphenation"
27614 , to align text, see section
27615 \begin_inset space ~
27619 \begin_inset CommandInset ref
27621 reference "sub:Vertical-Alignment"
27625 , or to set the background color of texts, see section
27626 \begin_inset space ~
27630 \begin_inset CommandInset ref
27632 reference "sec:Colored-Boxes"
27639 \begin_layout Standard
27640 Boxes can be inserted with the menu
27642 Insert\SpecialChar \menuseparator
27645 or the toolbar button
27646 \begin_inset Graphics
27647 filename ../images/box-insert.png
27649 scaleBeforeRotation
27654 A grey box with the label
27659 \begin_inset Graphics
27660 filename clipart/BoxInsetDefaultQt4.png
27662 scaleBeforeRotation
27667 The box type can be specified by right-clicking on the box and selecting
27673 The box dialog offers the
27676 \begin_inset space ~
27698 is the default for new boxes and is explained in section
27699 \begin_inset space ~
27703 \begin_inset CommandInset ref
27705 reference "sec:Minipages"
27713 is described in section
27714 \begin_inset space ~
27718 \begin_inset CommandInset ref
27720 reference "sec:Parboxes"
27729 \begin_inset CommandInset ref
27731 reference "sec:Prevent-Hyphenation"
27738 \begin_layout Standard
27739 Boxes are not numbered and can therefore not be referenced like floats or
27743 \begin_layout Standard
27744 \begin_inset Note Greyedout
27747 \begin_layout Plain Layout
27752 Boxes must not be the item in an
27768 \begin_layout Standard
27769 \begin_inset Note Greyedout
27772 \begin_layout Plain Layout
27777 For an unknown reason you can only set the
27780 \begin_inset space ~
27789 when you use a framed box.
27793 \begin_inset space ~
27798 type and without frames are explained in section
27799 \begin_inset space ~
27803 \begin_inset CommandInset ref
27805 reference "sec:Prevent-Hyphenation"
27817 \begin_layout Section
27819 \begin_inset CommandInset label
27821 name "sec:Box-Dialog"
27826 \begin_inset Index idx
27829 \begin_layout Plain Layout
27838 \begin_layout Subsection
27840 \begin_inset Index idx
27843 \begin_layout Plain Layout
27852 \begin_layout Standard
27853 In the box dialog you can adjust the box geometry in the fields
27862 The available units for the geometry are explained in Table
27863 \begin_inset space ~
27867 \begin_inset CommandInset ref
27869 reference "tab:Units"
27878 offers the following additional sizes:
27881 \begin_layout Description
27882 Depth This is the plain text
27883 \begin_inset Quotes eld
27887 \begin_inset Quotes erd
27891 It ignores the total depth when there are multiple text lines in the box:
27892 \begin_inset Newline newline
27896 \begin_inset Newline newline
27900 \begin_inset Newline newline
27904 \begin_inset Box Boxed
27914 height_special "depth"
27917 \begin_layout Plain Layout
27919 Box height set to 1
27920 \begin_inset space \thinspace{}
27929 \begin_inset Newline newline
27933 \begin_inset Newline newline
27939 \begin_layout Description
27940 Height This is the height of the text that is inside the box.
27942 \begin_inset space \thinspace{}
27946 \begin_inset space \space{}
27949 2 for this size will set the box height to 2
27950 \begin_inset space ~
27953 times the text height:
27954 \begin_inset Box Boxed
27964 height_special "height"
27967 \begin_layout Plain Layout
27969 Box height set to 2
27970 \begin_inset space \thinspace{}
27981 \begin_layout Description
27983 \begin_inset space ~
27986 Height This is the Height
27987 \begin_inset space \thinspace{}
27991 \begin_inset space \thinspace{}
27995 \begin_inset Box Boxed
28005 height_special "totalheight"
28008 \begin_layout Plain Layout
28010 Box height set to 1
28011 \begin_inset space \thinspace{}
28015 \begin_inset space ~
28026 \begin_layout Description
28027 Width This sets the width of the box as height:
28028 \begin_inset Box Boxed
28038 height_special "width"
28041 \begin_layout Plain Layout
28043 Box height set to 1
28044 \begin_inset space \thinspace{}
28055 \begin_layout Subsection
28057 \begin_inset Index idx
28060 \begin_layout Plain Layout
28069 \begin_layout Standard
28070 When you have chosen an
28073 \begin_inset space ~
28078 , the vertical box alignment can be:
28081 \begin_layout Description
28082 Top This is an example text line.
28084 \begin_inset Box Boxed
28094 height_special "totalheight"
28097 \begin_layout Plain Layout
28099 This box is top-aligned.
28104 This is an example text line.
28107 \begin_layout Description
28108 Middle This is an example text line.
28110 \begin_inset Box Boxed
28120 height_special "totalheight"
28123 \begin_layout Plain Layout
28125 This box is middle-aligned.
28130 This is an example text line.
28133 \begin_layout Description
28134 Bottom This is an example text line.
28136 \begin_inset Box Boxed
28146 height_special "totalheight"
28149 \begin_layout Plain Layout
28151 This box is bottom-aligned.
28156 This is an example text line.
28159 \begin_layout Standard
28160 \begin_inset Note Greyedout
28163 \begin_layout Plain Layout
28168 The vertical box alignment can be lost in the output when you have two
28169 boxes in a line and one has e.
28170 \begin_inset space \thinspace{}
28174 \begin_inset space \space{}
28177 a shadow and the other one not.
28185 \begin_layout Standard
28186 The horizontal box alignment can be set via LyX's paragraph dialog when
28187 you set the box into its own paragraph.
28190 \begin_layout Standard
28191 \begin_inset VSpace bigskip
28194 When you have chosen an
28197 \begin_inset space ~
28202 , the box content can be aligned vertically to:
28205 \begin_layout Description
28206 top This is an example text line.
28208 \begin_inset Box Boxed
28218 height_special "totalheight"
28221 \begin_layout Plain Layout
28223 This box text is top-aligned.
28228 This is an example text line.
28231 \begin_layout Description
28232 middle This is an example text line.
28234 \begin_inset Box Boxed
28244 height_special "totalheight"
28247 \begin_layout Plain Layout
28249 This box text is middle-aligned.
28254 This is an example text line.
28257 \begin_layout Description
28258 bottom This is an example text line.
28260 \begin_inset Box Boxed
28270 height_special "totalheight"
28273 \begin_layout Plain Layout
28275 This box text is bottom-aligned.
28280 This is an example text line.
28283 \begin_layout Description
28284 stretch This is an example text line.
28286 \begin_inset Box Boxed
28296 height_special "totalheight"
28299 \begin_layout Plain Layout
28304 \begin_layout Plain Layout
28309 \begin_layout Plain Layout
28316 This is an example text line.
28319 \begin_layout Standard
28320 To stretch the box content, it must consist of more than one paragraph.
28321 In the example above every text line is in an own paragraph.
28324 \begin_layout Standard
28325 \begin_inset VSpace bigskip
28328 To align the box content horizontally you can use LyX's paragraph dialog
28329 when you have chosen an
28332 \begin_inset space ~
28340 \begin_layout Standard
28342 \begin_inset Box Boxed
28352 height_special "totalheight"
28355 \begin_layout Plain Layout
28360 \begin_layout Plain Layout
28365 \begin_layout Plain Layout
28375 \begin_layout Standard
28376 If you have not set an
28379 \begin_inset space ~
28384 , you can align the box content horizontally in the box dialog.
28387 \begin_layout Standard
28389 \begin_inset Box Boxed
28399 height_special "totalheight"
28402 \begin_layout Plain Layout
28403 This box text is horizontally stretched.
28411 \begin_layout Subsection
28413 \begin_inset CommandInset label
28415 name "sec:Decoration"
28420 \begin_inset Index idx
28423 \begin_layout Plain Layout
28432 \begin_layout Standard
28433 The type of the box can be specified in the box dialog in the drop-down
28439 The following types are possible:
28442 \begin_layout Description
28444 \begin_inset space ~
28447 frame Nothing is drawn.
28450 \begin_layout Description
28452 \begin_inset space ~
28456 \begin_inset space ~
28459 frame This draws a rectangular frame around the box.
28460 The frame line thickness has the size of
28468 \begin_inset Box Boxed
28478 height_special "totalheight"
28481 \begin_layout Plain Layout
28491 \begin_layout Description
28493 \begin_inset space ~
28497 \begin_inset space ~
28500 thin This draws an oval frame around the box.
28501 The frame line thickness has the size 0.4
28502 \begin_inset space \thinspace{}
28507 \begin_inset Box ovalbox
28517 height_special "totalheight"
28520 \begin_layout Plain Layout
28530 \begin_layout Description
28532 \begin_inset space ~
28536 \begin_inset space ~
28539 thick This draws an oval frame around the box.
28540 The frame line thickness has the size 0.8
28541 \begin_inset space \thinspace{}
28546 \begin_inset Box Ovalbox
28556 height_special "totalheight"
28559 \begin_layout Plain Layout
28569 \begin_layout Description
28571 \begin_inset space ~
28574 shadow This draws a rectangular frame with a shadow around the box.
28575 The frame line thickness has the size of
28581 , the shadow has a width of 4
28582 \begin_inset space \thinspace{}
28587 \begin_inset Box Shadowbox
28597 height_special "totalheight"
28600 \begin_layout Plain Layout
28610 \begin_layout Description
28612 \begin_inset space ~
28615 background This draws a box with a red background.
28616 Unlike colored boxes
28620 \begin_layout Plain Layout
28622 \begin_inset space \thinspace{}
28626 \begin_inset CommandInset ref
28628 reference "sec:Colored-Boxes"
28637 , it always uses the whole column width and the box is set as its own paragraph.
28639 \begin_inset Box Shaded
28649 height_special "totalheight"
28652 \begin_layout Plain Layout
28653 Shaded background box
28661 \begin_layout Description
28663 \begin_inset space ~
28667 \begin_inset space ~
28670 frame This draws a double-line rectangular frame around the box.
28671 The line thickness of the inner frame is 0.75
28672 \begin_inset space \thinspace{}
28681 , the thickness of the outer frame is 1.5
28682 \begin_inset space \thinspace{}
28692 The distance between the lines is 1.5
28693 \begin_inset space \thinspace{}
28703 \begin_inset space \thinspace{}
28707 \begin_inset space \thinspace{}
28711 \begin_inset space \thinspace{}
28716 \begin_inset Box Doublebox
28726 height_special "totalheight"
28729 \begin_layout Plain Layout
28731 Double rectangular box
28739 \begin_layout Standard
28740 \begin_inset VSpace bigskip
28743 LyX's box label will reflect the different frame types.
28744 To be able to use all types, the LaTeX-package
28749 \begin_inset Index idx
28752 \begin_layout Plain Layout
28753 LaTeX-packages ! fancybox
28761 \begin_layout Standard
28762 \begin_inset VSpace bigskip
28765 When you use the decoration
28767 simple rectangular frame
28769 and no inner box, you can allow page breaks within a box.
28770 Note that then, unlike other framed boxes, the frame always uses the whole
28771 column width, the box is set as its own paragraph, and
28783 have no effect on this box type.
28784 The frame line thickness has the size of
28792 \begin_inset Box Framed
28802 height_special "totalheight"
28805 \begin_layout Plain Layout
28806 Allow page break box
28814 \begin_layout Section
28816 \begin_inset Index idx
28819 \begin_layout Plain Layout
28820 Boxes ! Customization
28828 \begin_layout Standard
28829 The default value for the size
28836 \begin_inset space \thinspace{}
28840 It can be changed with the following command in TeX-code to e.
28841 \begin_inset space \thinspace{}
28845 \begin_inset space \space{}
28849 \begin_inset space \thinspace{}
28855 \begin_layout Standard
28865 \begin_layout Standard
28869 \begin_layout Plain Layout
28881 \begin_inset Box Boxed
28891 height_special "totalheight"
28894 \begin_layout Plain Layout
28896 Rectangular box with
28903 \begin_inset space \thinspace{}
28907 \begin_inset space \thinspace{}
28911 \begin_inset space \thinspace{}
28923 \begin_layout Plain Layout
28937 \begin_layout Standard
28938 \begin_inset VSpace bigskip
28941 The space between the frame and the box content is for all frame styles
28943 \begin_inset space \thinspace{}
28947 You can change it by setting the length
28954 For example the command
28957 \begin_layout Standard
28967 \begin_layout Standard
28968 sets the value to 10
28969 \begin_inset space \thinspace{}
28972 pt, as with the following box:
28975 \begin_layout Standard
28979 \begin_layout Plain Layout
28991 \begin_inset Box Boxed
29001 height_special "totalheight"
29004 \begin_layout Plain Layout
29006 Rectangular box with
29013 \begin_inset space \thinspace{}
29017 \begin_inset space \thinspace{}
29021 \begin_inset space \thinspace{}
29033 \begin_layout Plain Layout
29047 \begin_layout Standard
29048 \begin_inset VSpace bigskip
29051 The diameter of the round corners of the oval boxes can be set with the
29062 \begin_layout Standard
29070 \begin_layout Standard
29071 sets the diameter to 1
29072 \begin_inset space \thinspace{}
29079 \begin_layout Standard
29087 \begin_layout Standard
29088 sets the diameter to
29091 \begin_inset space \thinspace{}
29095 \begin_inset space \thinspace{}
29098 minimum(width and height of box)
29110 \begin_layout Standard
29114 \begin_layout Plain Layout
29124 \begin_inset Box Ovalbox
29134 height_special "totalheight"
29137 \begin_layout Plain Layout
29146 \begin_inset space \thinspace{}
29150 \begin_inset space \thinspace{}
29154 \begin_inset space \thinspace{}
29166 \begin_layout Plain Layout
29178 \begin_layout Standard
29179 \begin_inset VSpace bigskip
29182 The size of the shadow can be adjusted by changing the length
29190 \begin_inset space \thinspace{}
29193 pt for the following box by this command:
29196 \begin_layout Standard
29206 \begin_layout Standard
29210 \begin_layout Plain Layout
29222 \begin_inset Box Shadowbox
29232 height_special "totalheight"
29235 \begin_layout Plain Layout
29244 \begin_inset space \thinspace{}
29248 \begin_inset space \thinspace{}
29252 \begin_inset space \thinspace{}
29264 \begin_layout Plain Layout
29278 \begin_layout Standard
29279 \begin_inset VSpace bigskip
29285 \begin_layout Standard
29286 The default value for the size
29293 \begin_inset space \thinspace{}
29297 The default space between the note content and the frame is 9
29298 \begin_inset space \thinspace{}
29301 pt and can be changed with the value of
29308 For example the frame appearance of the following
29312 is set with the TeX-Code commands
29315 \begin_layout Standard
29323 \begin_inset Newline newline
29333 \begin_layout Standard
29337 \begin_layout Plain Layout
29346 \begin_layout Plain Layout
29358 \begin_inset Box Framed
29368 height_special "totalheight"
29371 \begin_layout Plain Layout
29385 \begin_layout Plain Layout
29394 \begin_layout Plain Layout
29408 \begin_layout Standard
29409 \begin_inset VSpace bigskip
29415 \begin_layout Standard
29420 boxes the default space between the box content and the box border is 3
29421 \begin_inset space \thinspace{}
29424 pt and can be changed with the value of
29431 The default background color red can either be changed locally with the
29436 definecolor{shadecolor}
29438 or globally with the menu
29440 Tools\SpecialChar \menuseparator
29441 Preferences\SpecialChar \menuseparator
29442 Colors\SpecialChar \menuseparator
29444 \begin_inset space ~
29456 command is explained in section
29457 \begin_inset space ~
29461 \begin_inset CommandInset ref
29463 reference "sec:Colored-Tables"
29471 \begin_layout Plain Layout
29478 requires the LaTeX-package
29482 in the preamble, see section
29483 \begin_inset space ~
29487 \begin_inset CommandInset ref
29489 reference "sec:Colored-Boxes"
29498 For example the appearance of the following shaded background box is set
29499 with the TeX-Code commands
29502 \begin_layout Standard
29512 \begin_inset Newline newline
29519 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29522 \begin_layout Standard
29526 \begin_layout Plain Layout
29535 \begin_layout Plain Layout
29539 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29545 \begin_inset Box Shaded
29555 height_special "totalheight"
29558 \begin_layout Plain Layout
29561 This is yellow text in a
29571 box with dark green background.
29580 \begin_layout Plain Layout
29589 \begin_layout Plain Layout
29593 definecolor{shadecolor}{rgb}{1,0,0}
29601 \begin_layout Standard
29602 \begin_inset VSpace bigskip
29605 Changed lengths and widths are valid for all boxes following the commands
29609 \begin_layout Section
29611 \begin_inset CommandInset label
29613 name "sec:Minipages"
29618 \begin_inset Index idx
29621 \begin_layout Plain Layout
29630 \begin_layout Standard
29631 Minipages are treated by LaTeX as pages within pages and can therefore for
29632 example have their own footnotes.
29635 \begin_layout Standard
29636 Minipages are useful when you write documents with different languages.
29639 \begin_layout Standard
29640 Below are two example minipages side by side.
29641 Their width is set to 45
29642 \begin_inset space \thinspace{}
29645 col% and they are separated by a horizontal fill, that was inserted via
29648 Insert\SpecialChar \menuseparator
29650 \begin_inset space ~
29653 Formatting\SpecialChar \menuseparator
29655 \begin_inset space ~
29661 \begin_inset Newpage newpage
29667 \begin_layout Standard
29668 \begin_inset Box Frameless
29678 height_special "totalheight"
29681 \begin_layout Plain Layout
29684 Dies ist ein deutscher Text.
29685 Dies ist ein deutscher Text.
29686 Dies ist ein deutscher Text.
29687 Dies ist ein deutscher Text.
29688 Dies ist ein deutscher Text.
29689 Dies ist ein deutscher Text.
29690 Dies ist ein deutscher Text.
29691 Dies ist ein deutscher Text.
29692 Dies ist ein deutscher Text.
29693 Dies ist ein deutscher Text.
29694 Dies ist ein deutscher Text.
29695 Dies ist ein deutscher Text.
29696 Dies ist ein deutscher Text
29700 \begin_layout Plain Layout
29703 Dies ist eine deutsche Fußnote.
29709 Dies ist ein deutscher Text.
29710 Dies ist ein deutscher Text.
29716 \begin_inset space \hfill{}
29720 \begin_inset Box Frameless
29730 height_special "totalheight"
29733 \begin_layout Plain Layout
29734 This is an English Text.
29735 This is an English Text.
29736 This is an English Text.
29737 This is an English Text.
29738 This is an English Text.
29739 This is an English Text.
29740 This is an English Text.
29741 This is an English Text.
29742 This is an English Text.
29743 This is an English Text.
29744 This is an English Text.
29745 This is an English Text.
29746 This is an English Text.
29747 This is an English Text.
29748 This is an English Text.
29749 This is an English Text.
29753 \begin_layout Plain Layout
29754 This is an English footnote.
29759 This is an English Text.
29768 \begin_layout Standard
29769 \begin_inset VSpace bigskip
29772 The document-wide paragraph settings are ignored within minipages.
29773 That means that there will be no space between paragraphs in minipages
29774 although you set it to e.
29775 \begin_inset space \thinspace{}
29779 \begin_inset space \space{}
29786 in the document settings.
29789 \begin_layout Standard
29790 Minipages can also be used to set a background color for text parts, see
29792 \begin_inset space ~
29796 \begin_inset CommandInset ref
29798 reference "sub:Color-for-Paragraphs"
29805 \begin_layout Standard
29806 \begin_inset Note Greyedout
29809 \begin_layout Plain Layout
29814 You cannot have floats or margin notes inside minipages but minipages can
29815 be used inside tables, floats, and other boxes.
29823 \begin_layout Section
29825 \begin_inset CommandInset label
29827 name "sec:Parboxes"
29832 \begin_inset Index idx
29835 \begin_layout Plain Layout
29844 \begin_layout Standard
29845 Parboxes are very similar to minipages with the difference that they cannot
29849 \begin_layout Standard
29851 \begin_inset Box Frameless
29861 height_special "totalheight"
29864 \begin_layout Plain Layout
29865 This a text within a parbox.
29866 This a text within a parbox.
29869 \begin_layout Plain Layout
29870 This footnote won't appear:
29874 \begin_layout Plain Layout
29875 This footnote is inside a parbox and will therefore not appear.
29888 \begin_layout Section
29889 Boxes for Words and Characters
29890 \begin_inset Index idx
29893 \begin_layout Plain Layout
29894 Boxes ! for Characters
29902 \begin_layout Subsection
29903 Prevent Hyphenation
29904 \begin_inset CommandInset label
29906 name "sec:Prevent-Hyphenation"
29911 \begin_inset Index idx
29914 \begin_layout Plain Layout
29915 Boxes ! to Prevent Hyphenation
29923 \begin_layout Standard
29924 You can use the box type
29928 to prevent words or text from being hyphenated.
29929 \begin_inset Newline newline
29932 Here is an example text:
29935 \begin_layout Standard
29936 This line is an example to show how you can prevent the hyphenation of
29937 \begin_inset Quotes eld
29941 \begin_inset Quotes erd
29947 \begin_layout Standard
29948 To prevent the hyphenation of the word
29949 \begin_inset Quotes eld
29953 \begin_inset Quotes erd
29956 , put the word into a box, set the
29959 \begin_inset space ~
29969 \begin_inset space \thinspace{}
29975 \begin_layout Standard
29976 This is the result:
29979 \begin_layout Standard
29980 This line is an example to show how you can prevent the hyphenation of
29981 \begin_inset Box Frameless
29991 height_special "totalheight"
29994 \begin_layout Plain Layout
29995 \begin_inset Quotes eld
29999 \begin_inset Quotes erd
30010 \begin_layout Standard
30011 You can alternatively set the command
30012 \begin_inset Quotes eld
30022 \begin_inset Quotes grd
30025 as TeX-Code directly before the word:
30028 \begin_layout Standard
30029 This line is an example to show how you can prevent the hyphenation of
30030 \begin_inset Quotes eld
30037 \begin_layout Plain Layout
30047 \begin_inset Quotes erd
30053 \begin_layout Standard
30054 Of course the word now protrudes over the side margin.
30055 To avoid this, add via the menu
30057 Insert\SpecialChar \menuseparator
30058 Formatting\SpecialChar \menuseparator
30060 \begin_inset space ~
30064 \begin_inset space ~
30072 arg "newline-insert newline"
30075 ) a line break before the word:
30078 \begin_layout Standard
30079 This line is an example to show how you can prevent the hyphenation of
30080 \begin_inset Newline newline
30084 \begin_inset Box Frameless
30094 height_special "totalheight"
30097 \begin_layout Plain Layout
30098 \begin_inset Quotes eld
30102 \begin_inset Quotes erd
30113 \begin_layout Subsection
30115 \begin_inset CommandInset label
30117 name "sub:Vertical-Alignment"
30122 \begin_inset Index idx
30125 \begin_layout Plain Layout
30126 Boxes ! for Vertical Alignment
30132 \begin_inset Index idx
30135 \begin_layout Plain Layout
30144 \begin_layout Standard
30145 With the help of the command
30151 you can align words, characters or other boxes vertically relative to the
30159 is used with the following scheme:
30162 \begin_layout Standard
30167 raisebox{lift}[height][depth]{box content}
30170 \begin_layout Standard
30171 The lift can be a positive value to raise the box or a negative value to
30175 \begin_layout Standard
30176 To align for example the word
30177 \begin_inset Quotes eld
30181 \begin_inset Quotes erd
30184 so that the bottom of the
30185 \begin_inset Quotes eld
30189 \begin_inset Quotes erd
30193 \begin_inset Quotes eld
30197 \begin_inset Quotes erd
30200 is at the baseline, insert the command
30203 \begin_layout Standard
30213 \begin_layout Standard
30214 in TeX-Code before the word.
30215 After the word insert a closing brace
30216 \begin_inset Quotes eld
30224 \begin_inset Quotes erd
30228 \begin_inset Newline newline
30231 This is the result:
30234 \begin_layout Standard
30235 This is a text line with the word
30239 \begin_layout Plain Layout
30251 \begin_inset Quotes eld
30255 \begin_inset Quotes erd
30262 \begin_layout Plain Layout
30272 \begin_layout Standard
30273 \begin_inset VSpace bigskip
30276 When you raise or lower characters in a line, the line distance will be
30280 \begin_layout Standard
30281 This is a text line with the word
30285 \begin_layout Plain Layout
30297 \begin_inset Quotes eld
30301 \begin_inset Quotes erd
30308 \begin_layout Plain Layout
30316 \begin_inset Newline newline
30319 This is a text line with the word
30323 \begin_layout Plain Layout
30333 \begin_inset Quotes eld
30337 \begin_inset Quotes erd
30344 \begin_layout Plain Layout
30354 \begin_layout Standard
30355 If you want to prevent this for a certain reason, set the box height to
30360 \begin_layout Standard
30370 \begin_layout Standard
30371 This is a text line with the word
30375 \begin_layout Plain Layout
30387 \begin_inset Quotes eld
30391 \begin_inset Quotes erd
30398 \begin_layout Plain Layout
30406 \begin_inset Newline newline
30409 This is a text line with the word
30413 \begin_layout Plain Layout
30417 raisebox{0.5cm}[0pt]{
30423 \begin_inset Quotes eld
30427 \begin_inset Quotes erd
30434 \begin_layout Plain Layout
30444 \begin_layout Section
30446 \begin_inset CommandInset label
30448 name "sec:Colored-Boxes"
30453 \begin_inset Index idx
30456 \begin_layout Plain Layout
30465 \begin_layout Subsection
30467 \begin_inset Index idx
30470 \begin_layout Plain Layout
30479 \begin_layout Standard
30480 To color the background of text the text must be put into a so called
30481 \begin_inset Quotes eld
30485 \begin_inset Quotes erd
30489 This requires that the LaTeX-package
30494 \begin_inset Index idx
30497 \begin_layout Plain Layout
30498 LaTeX-packages ! color
30503 is loaded in the document preamble with the command
30506 \begin_layout Standard
30511 @ifundefined{textcolor}
30512 \begin_inset Newline newline
30516 \begin_inset Phantom HPhantom
30519 \begin_layout Plain Layout
30522 \begin_inset space ~
30532 usepackage{color}}{}
30535 \begin_layout Standard
30540 will be loaded automatically by LyX when you color text.
30544 \begin_layout Plain Layout
30545 To avoid it being loaded twice the command
30559 \begin_layout Standard
30560 \begin_inset VSpace medskip
30563 Colorboxes are created with the command
30570 This will be used with the following scheme:
30573 \begin_layout Standard
30578 colorbox{color}{box content}
30581 \begin_layout Standard
30582 The box content can also be a box and colorboxes can also be within other
30586 \begin_layout Standard
30587 The following colors are predefined:
30588 \begin_inset Newline newline
30627 \begin_inset Newline newline
30630 You can also define your own color as described in section
30631 \begin_inset space ~
30635 \begin_inset CommandInset ref
30637 reference "sec:Colored-Tables"
30644 \begin_layout Standard
30646 \begin_inset space \thinspace{}
30650 \begin_inset space \space{}
30653 a red background for a word, insert the command
30656 \begin_layout Standard
30664 \begin_layout Standard
30665 before the word in TeX-Code.
30666 After the word insert a closing brace
30667 \begin_inset Quotes eld
30675 \begin_inset Quotes erd
30679 \begin_inset Newline newline
30682 This is the result:
30685 \begin_layout Standard
30686 This is a line where the word
30690 \begin_layout Plain Layout
30700 \begin_inset Quotes eld
30704 \begin_inset Quotes erd
30711 \begin_layout Plain Layout
30718 has a red background.
30721 \begin_layout Standard
30722 \begin_inset VSpace bigskip
30725 If you would like the box frame in a different color, you can use the command
30732 with the following scheme:
30735 \begin_layout Standard
30740 fcolorbox{frame color}{box color}{box content}
30743 \begin_layout Standard
30757 The frame thickness and the space between the frame and the box content
30758 can be adjusted with the lengths
30770 , respectively, as described in section
30771 \begin_inset space ~
30775 \begin_inset CommandInset ref
30777 reference "sec:Decoration"
30784 \begin_layout Standard
30785 For the following example the command
30788 \begin_layout Standard
30793 fcolorbox{cyan}{magenta}{
30796 \begin_layout Standard
30800 \begin_layout Standard
30801 Here is an example where the frame line thickness was set to 1
30802 \begin_inset space \thinspace{}
30806 \begin_inset Newline newline
30813 \begin_layout Plain Layout
30828 \begin_layout Plain Layout
30832 fcolorbox{cyan}{magenta}{
30837 This is text within a colored, framed box.
30841 \begin_layout Plain Layout
30851 \begin_layout Standard
30852 \begin_inset VSpace bigskip
30855 Of course you can also have colored text inside a colorbox:
30856 \begin_inset Newline newline
30863 \begin_layout Plain Layout
30867 fcolorbox{cyan}{magenta}{
30874 This is colored text within a colored, framed box.
30880 \begin_layout Plain Layout
30891 \begin_layout Plain Layout
30905 \begin_layout Standard
30906 \begin_inset VSpace medskip
30912 \begin_layout Standard
30913 \begin_inset Note Greyedout
30916 \begin_layout Plain Layout
30921 Text in colorboxes cannot have line breaks.
30922 To color multiple text lines or paragraphs, use a box inside a colorbox
30923 as described in the following.
30931 \begin_layout Subsection
30932 Color for Paragraphs
30933 \begin_inset CommandInset label
30935 name "sub:Color-for-Paragraphs"
30940 \begin_inset Index idx
30943 \begin_layout Plain Layout
30944 Color ! for Paragraphs
30952 \begin_layout Standard
30953 To set the background color for more than one text line, put the text into
30955 Before the minipage insert the
30964 \begin_layout Standard
30972 \begin_layout Standard
30974 After the minipage insert a closing brace
30975 \begin_inset Quotes eld
30983 \begin_inset Quotes erd
30989 \begin_layout Standard
30993 \begin_layout Plain Layout
30997 colorbox{lightgrey}{
31003 \begin_inset Box Frameless
31013 height_special "totalheight"
31016 \begin_layout Plain Layout
31017 This is text with background color.
31018 This is text with background color.
31021 \begin_layout Plain Layout
31022 \begin_inset VSpace defskip
31025 The text can have footnotes
31029 \begin_layout Plain Layout
31030 Another example footnote
31035 and can include tables and figures.
31038 \begin_layout Plain Layout
31040 \begin_inset Tabular
31041 <lyxtabular version="3" rows="3" columns="3">
31042 <features tabularvalignment="middle">
31043 <column alignment="center" valignment="top" width="0">
31044 <column alignment="center" valignment="top" width="0">
31045 <column alignment="center" valignment="top" width="0">
31047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31050 \begin_layout Plain Layout
31056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31059 \begin_layout Plain Layout
31065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31068 \begin_layout Plain Layout
31076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31079 \begin_layout Plain Layout
31085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31088 \begin_layout Plain Layout
31090 \begin_inset Quotes erd
31098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31101 \begin_layout Plain Layout
31109 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31112 \begin_layout Plain Layout
31118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31121 \begin_layout Plain Layout
31127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31130 \begin_layout Plain Layout
31150 \begin_layout Plain Layout
31160 \begin_layout Section
31161 Rotated and Scaled Boxes
31164 \begin_layout Standard
31165 To use the commands described in this section, the LaTeX-package
31170 \begin_inset Index idx
31173 \begin_layout Plain Layout
31174 LaTeX-packages ! graphicx
31179 needs to be loaded in the document preamble with the command
31182 \begin_layout Standard
31187 @ifundefined{rotatebox}
31188 \begin_inset Newline newline
31192 \begin_inset Phantom HPhantom
31195 \begin_layout Plain Layout
31198 \begin_inset space ~
31208 usepackage{graphicx}}{}
31211 \begin_layout Standard
31212 \begin_inset Note Greyedout
31215 \begin_layout Plain Layout
31220 Some DVI-viewers can't display rotated or scaled material.
31228 \begin_layout Standard
31229 \begin_inset Note Greyedout
31232 \begin_layout Plain Layout
31237 Floats mustn't be inside a rotated or scaled box.
31245 \begin_layout Subsection
31247 \begin_inset Index idx
31250 \begin_layout Plain Layout
31257 \begin_inset Index idx
31260 \begin_layout Plain Layout
31267 \begin_inset Index idx
31270 \begin_layout Plain Layout
31277 \begin_inset Index idx
31280 \begin_layout Plain Layout
31281 Table Customization ! Rotating
31289 \begin_layout Standard
31290 To rotate material, you can put it into a rotated box.
31291 Such a box is created using the command
31297 in TeX-Code with the following scheme:
31300 \begin_layout Standard
31305 rotatebox[rotation origin]{rotation angle}{box content}
31308 \begin_layout Standard
31309 The rotation origin is specified in the form
31314 The following positions are possible:
31334 (top), along with meaningful combinations of the four base positions.
31339 means that the rotation origin is at the top left corner of the box.
31340 When no rotation origin is specified, the position
31345 The rotation angle is a number that can be negative that specifies the
31347 The rotation direction is counterclockwise.
31350 \begin_layout Standard
31351 In the following example the command
31355 rotatebox[origin=c]{60}{
31357 was inserted as TeX-Code before the text
31358 \begin_inset Quotes eld
31362 \begin_inset Quotes erd
31365 ; after the text the box was closed by a closing brace
31372 \begin_layout Standard
31377 \begin_layout Plain Layout
31381 rotatebox[origin=c]{60}{
31390 \begin_layout Plain Layout
31400 \begin_layout Standard
31401 The box content can also be another box or an inline formula:
31404 \begin_layout Standard
31409 \begin_layout Plain Layout
31413 rotatebox[origin=r]{-60}{
31419 \begin_inset Box Doublebox
31429 height_special "totalheight"
31432 \begin_layout Plain Layout
31442 \begin_layout Plain Layout
31453 \begin_layout Plain Layout
31457 rotatebox[origin=lb]{60}{
31463 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31470 \begin_layout Plain Layout
31480 \begin_layout Standard
31481 or an image or table:
31484 \begin_layout Standard
31489 \begin_layout Plain Layout
31493 rotatebox[origin=lb]{90}{
31499 \begin_inset Graphics
31500 filename clipart/platypus.eps
31510 \begin_layout Plain Layout
31517 with a rotated image
31521 \begin_layout Plain Layout
31525 rotatebox[origin=l]{-90}{
31531 \begin_inset Tabular
31532 <lyxtabular version="3" rows="2" columns="2">
31533 <features tabularvalignment="middle">
31534 <column alignment="center" valignment="top" width="0">
31535 <column alignment="center" valignment="top" width="0">
31537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31540 \begin_layout Plain Layout
31546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31549 \begin_layout Plain Layout
31557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31560 \begin_layout Plain Layout
31566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31569 \begin_layout Plain Layout
31584 \begin_layout Plain Layout
31594 \begin_layout Subsection
31596 \begin_inset Index idx
31599 \begin_layout Plain Layout
31606 \begin_inset Index idx
31609 \begin_layout Plain Layout
31616 \begin_inset Index idx
31619 \begin_layout Plain Layout
31626 \begin_inset Index idx
31629 \begin_layout Plain Layout
31630 Table Customization ! Scaling
31638 \begin_layout Standard
31639 To scale material the commands
31651 can be used as TeX-Code.
31654 \begin_layout Standard
31661 is used with the following scheme:
31664 \begin_layout Standard
31669 scalebox{horizontal}[vertical]{box content}
31672 \begin_layout Standard
31673 Horizontal and vertical are the corresponding scaling factors.
31674 If no vertical scaling factor is given, the horizontal factor will also
31675 be used as the vertical one.
31678 \begin_layout Standard
31685 creates for example a double size
31689 \begin_layout Plain Layout
31702 \begin_layout Plain Layout
31709 , compared with the document text size.
31712 \begin_layout Standard
31717 scalebox{2}[1]{Hello}
31719 on the other hand distorts the
31723 \begin_layout Plain Layout
31736 \begin_layout Plain Layout
31746 \begin_layout Standard
31747 If the scaling factor is negative, the box content will be mirrored.
31748 Therefore the command
31752 scalebox{-1}[1]{Hello}
31754 can be used to create mirror writing:
31758 \begin_layout Plain Layout
31771 \begin_layout Plain Layout
31781 \begin_layout Standard
31786 scalebox{1}[-1]{Hello}
31792 \begin_layout Plain Layout
31805 \begin_layout Plain Layout
31815 \begin_layout Standard
31820 scalebox{-1}[1]{box content}
31822 there exists the command
31823 \begin_inset Newline newline
31830 reflectbox{box content}
31835 \begin_layout Standard
31836 \begin_inset VSpace bigskip
31845 is used to scale the box to a defined width and height.
31846 The command scheme is:
31849 \begin_layout Standard
31854 resizebox{width}{height}{box content}
31857 \begin_layout Standard
31858 If one of the two command arguments given is an exclamation mark
31862 , the size is set so that the aspect ratio of the box content is kept.
31865 \begin_layout Standard
31870 resizebox{2cm}{1cm}{Hello}
31876 \begin_layout Plain Layout
31880 resizebox{2cm}{1cm}{
31889 \begin_layout Plain Layout
31897 \begin_inset Newline newline
31904 resizebox{2cm}{!}{Hello}
31910 \begin_layout Plain Layout
31923 \begin_layout Plain Layout
31933 \begin_layout Standard
31934 \begin_inset VSpace bigskip
31938 \begin_inset Note Greyedout
31941 \begin_layout Plain Layout
31958 are set to zero, no LaTeX-errors occur when exporting the document but
31959 the exported files can not or only partly be displayed.
31967 \begin_layout Standard
31968 \begin_inset VSpace bigskip
31974 \begin_layout Standard
31975 The boxes can be combined in any order.
31977 \begin_inset space \thinspace{}
31981 \begin_inset space \space{}
31985 \begin_inset Newline newline
31992 rotatebox[origin=c]{-45}{
31996 reflectbox{Hello}}}
31997 \begin_inset Newline newline
32005 \begin_layout Standard
32010 \begin_layout Plain Layout
32014 rotatebox[origin=c]{-45}{
32027 \begin_layout Plain Layout
32037 \begin_layout Standard
32039 Images, tables, and inline formulas are allowed as box content:
32042 \begin_layout Standard
32047 \begin_layout Plain Layout
32051 rotatebox[origin=c]{-30}{
32061 \begin_inset Graphics
32062 filename clipart/platypus.eps
32072 \begin_layout Plain Layout
32083 \begin_layout Plain Layout
32087 rotatebox[origin=c]{-45}{
32097 \begin_inset Tabular
32098 <lyxtabular version="3" rows="2" columns="2">
32099 <features tabularvalignment="middle">
32100 <column alignment="center" valignment="top" width="0">
32101 <column alignment="center" valignment="top" width="0">
32103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32106 \begin_layout Plain Layout
32112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32115 \begin_layout Plain Layout
32123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32126 \begin_layout Plain Layout
32132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32135 \begin_layout Plain Layout
32150 \begin_layout Plain Layout
32161 \begin_layout Plain Layout
32165 rotatebox[origin=c]{-45}{
32175 \begin_inset Formula $\int A\,\mathrm{d}x=B$
32182 \begin_layout Plain Layout
32192 \begin_layout Standard
32193 When the global formula style
32197 is used in the document
32201 \begin_layout Plain Layout
32203 \begin_inset Quotes eld
32207 \begin_inset Quotes erd
32210 is added to the document class options.
32215 , display style formulas can also be scaled.
32218 \begin_layout Chapter
32219 Objects Surrounded by Text
32220 \begin_inset Index idx
32223 \begin_layout Plain Layout
32232 \begin_layout Section
32234 \begin_inset CommandInset label
32236 name "sec:Wrap-Floats"
32241 \begin_inset Index idx
32244 \begin_layout Plain Layout
32245 Floats ! Wrap Floats
32251 \begin_inset Index idx
32254 \begin_layout Plain Layout
32255 Surrounded by text ! Wrap Floats
32263 \begin_layout Standard
32264 \begin_inset Wrap figure
32271 \begin_layout Plain Layout
32272 \begin_inset Graphics
32273 filename clipart/mobius.eps
32275 scaleBeforeRotation
32276 rotateOrigin center
32283 \begin_layout Plain Layout
32284 \begin_inset Caption
32286 \begin_layout Plain Layout
32287 \begin_inset CommandInset label
32289 name "fig:This-is-a"
32293 This is a figure wrap float.
32303 This float type is used if you want to wrap text around a figure or table
32304 so that it only occupies some fraction of the column width.
32305 It can be inserted using the menu
32307 Insert\SpecialChar \menuseparator
32308 Floats\SpecialChar \menuseparator
32310 \begin_inset space ~
32314 \begin_inset space ~
32322 \begin_inset space ~
32326 \begin_inset space ~
32331 if the LaTeX-package
32336 \begin_inset Index idx
32339 \begin_layout Plain Layout
32340 LaTeX-packages ! wrapfig
32344 \begin_layout Plain Layout
32362 \begin_layout Plain Layout
32363 Installing a LaTeX-package is explained it in the
32366 \begin_inset space ~
32376 The settings of the float can be modified by right-clicking on the float
32378 The mandatory settings are the float
32391 that specifies how much the float is set into the paragraph
32392 \begin_inset space \thinspace{}
32396 \begin_inset space \thinspace{}
32399 page margin, and the
32402 \begin_inset space ~
32407 that specifies how many text lines the float will approximately need.
32408 The line span is often hard to approximate; so it is better only to use
32409 it when you encounter float placement problems.
32410 You can furthermore decide if LaTeX is allowed to let the float float within
32411 the paragraph or to surrounding paragraphs.
32413 \begin_inset space ~
32417 \begin_inset CommandInset ref
32419 reference "fig:This-is-a"
32423 is an example text wrap float with a width of 40
32424 \begin_inset space \thinspace{}
32428 \begin_inset space \thinspace{}
32431 cm overhang, set to the left.
32434 \begin_layout Standard
32435 \begin_inset Note Greyedout
32438 \begin_layout Plain Layout
32444 \begin_inset space ~
32447 wrap float floats are fragile! E.
32448 \begin_inset space \thinspace{}
32452 \begin_inset space \space{}
32455 having a figure too close to the bottom of the page can mess things up in
32456 such a way that the float does not appear in the output or that it is placed
32457 over some other text.
32465 \begin_layout Standard
32466 In general, the following applies for wrap floats:
32469 \begin_layout Itemize
32470 They should not be placed in paragraphs that run over a page break.
32471 That means that wrap floats are better inserted in their exact place when
32472 the document is almost finished and you are able to estimate where page
32473 breaks will appear.
32476 \begin_layout Itemize
32477 They should either be placed in their own paragraph before the paragraph
32478 where they should wrap into or within a paragraph.
32481 \begin_layout Itemize
32482 In consecutive paragraphs they may cause troubles, so ensure that there
32483 is a text paragraph between them as separator.
32486 \begin_layout Itemize
32487 They are not allowed in section headings or tables.
32490 \begin_layout Itemize
32491 Their numbering and referencing works as described in chap.
32492 \begin_inset space \thinspace{}
32496 \begin_inset CommandInset ref
32498 reference "chap:Floats"
32505 \begin_layout Section
32506 Surrounded Fixed Objects
32507 \begin_inset Index idx
32510 \begin_layout Plain Layout
32511 Surrounded by text ! Fixed objects
32519 \begin_layout Standard
32520 The wrap floats described in sec.
32521 \begin_inset space \thinspace{}
32525 \begin_inset CommandInset ref
32527 reference "sec:Wrap-Floats"
32531 have these positions in the paragraph:
32534 \begin_layout Standard
32537 \begin_inset Tabular
32538 <lyxtabular version="3" rows="2" columns="2">
32539 <features tabularvalignment="middle">
32540 <column alignment="center" valignment="top" width="0">
32541 <column alignment="center" valignment="top" width="0">
32543 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32546 \begin_layout Plain Layout
32547 \begin_inset Graphics
32548 filename ../images/dialog-show-new-inset_graphics.png
32550 scaleBeforeRotation
32551 BoundingBox 0bp 6bp 22bp 22bp
32560 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32563 \begin_layout Plain Layout
32571 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32574 \begin_layout Plain Layout
32580 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32583 \begin_layout Plain Layout
32595 \begin_inset Tabular
32596 <lyxtabular version="3" rows="2" columns="2">
32597 <features tabularvalignment="middle">
32598 <column alignment="center" valignment="top" width="0">
32599 <column alignment="center" valignment="top" width="0">
32601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32604 \begin_layout Plain Layout
32610 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32613 \begin_layout Plain Layout
32614 \begin_inset Graphics
32615 filename ../images/dialog-show-new-inset_graphics.png
32617 scaleBeforeRotation
32618 BoundingBox 0bp 6bp 22bp 22bp
32629 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32632 \begin_layout Plain Layout
32638 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32641 \begin_layout Plain Layout
32655 \begin_layout Standard
32656 To get an object exactly at the position where it is inserted, for example
32657 to get one of these positions:
32658 \begin_inset VSpace defskip
32664 \begin_layout Standard
32667 \begin_inset Tabular
32668 <lyxtabular version="3" rows="2" columns="2">
32669 <features tabularvalignment="middle">
32670 <column alignment="center" valignment="top" width="0">
32671 <column alignment="center" valignment="top" width="0">
32673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32676 \begin_layout Plain Layout
32682 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32685 \begin_layout Plain Layout
32693 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32696 \begin_layout Plain Layout
32697 \begin_inset Graphics
32698 filename ../images/dialog-show-new-inset_graphics.png
32700 scaleBeforeRotation
32701 BoundingBox 0bp 6bp 22bp 22bp
32710 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32713 \begin_layout Plain Layout
32725 \begin_inset Tabular
32726 <lyxtabular version="3" rows="2" columns="2">
32727 <features tabularvalignment="middle">
32728 <column alignment="center" valignment="top" width="0">
32729 <column alignment="center" valignment="top" width="0">
32731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32734 \begin_layout Plain Layout
32740 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32743 \begin_layout Plain Layout
32751 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32754 \begin_layout Plain Layout
32760 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32763 \begin_layout Plain Layout
32764 \begin_inset Graphics
32765 filename ../images/dialog-show-new-inset_graphics.png
32767 scaleBeforeRotation
32768 BoundingBox 0bp 6bp 22bp 22bp
32783 \begin_inset Tabular
32784 <lyxtabular version="3" rows="2" columns="3">
32785 <features tabularvalignment="middle">
32786 <column alignment="center" valignment="top" width="0">
32787 <column alignment="center" valignment="top" width="0">
32788 <column alignment="center" valignment="top" width="0">
32790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32793 \begin_layout Plain Layout
32799 <cell alignment="center" valignment="top" topline="true" usebox="none">
32802 \begin_layout Plain Layout
32803 \begin_inset Graphics
32804 filename ../images/dialog-show-new-inset_graphics.png
32806 scaleBeforeRotation
32807 BoundingBox 0bp 6bp 22bp 22bp
32816 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32819 \begin_layout Plain Layout
32827 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32830 \begin_layout Plain Layout
32836 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32839 \begin_layout Plain Layout
32845 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32848 \begin_layout Plain Layout
32860 \begin_inset Tabular
32861 <lyxtabular version="3" rows="2" columns="3">
32862 <features tabularvalignment="middle">
32863 <column alignment="center" valignment="top" width="0">
32864 <column alignment="center" valignment="top" width="0">
32865 <column alignment="center" valignment="top" width="0">
32867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32870 \begin_layout Plain Layout
32876 <cell alignment="center" valignment="top" topline="true" usebox="none">
32879 \begin_layout Plain Layout
32885 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32888 \begin_layout Plain Layout
32896 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32899 \begin_layout Plain Layout
32905 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32908 \begin_layout Plain Layout
32909 \begin_inset Graphics
32910 filename ../images/dialog-show-new-inset_graphics.png
32912 scaleBeforeRotation
32913 BoundingBox 0bp 6bp 22bp 22bp
32922 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32925 \begin_layout Plain Layout
32939 \begin_layout Standard
32942 \begin_inset Tabular
32943 <lyxtabular version="3" rows="3" columns="2">
32944 <features tabularvalignment="middle">
32945 <column alignment="center" valignment="top" width="0">
32946 <column alignment="center" valignment="top" width="0">
32948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32951 \begin_layout Plain Layout
32957 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32960 \begin_layout Plain Layout
32968 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32971 \begin_layout Plain Layout
32972 \begin_inset Graphics
32973 filename ../images/dialog-show-new-inset_graphics.png
32975 scaleBeforeRotation
32976 BoundingBox 0bp 6bp 22bp 22bp
32985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32988 \begin_layout Plain Layout
32996 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32999 \begin_layout Plain Layout
33005 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33008 \begin_layout Plain Layout
33020 \begin_inset Tabular
33021 <lyxtabular version="3" rows="3" columns="3">
33022 <features tabularvalignment="middle">
33023 <column alignment="center" valignment="top" width="0">
33024 <column alignment="center" valignment="top" width="0">
33025 <column alignment="center" valignment="top" width="0">
33027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33030 \begin_layout Plain Layout
33036 <cell alignment="center" valignment="top" topline="true" usebox="none">
33039 \begin_layout Plain Layout
33045 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33048 \begin_layout Plain Layout
33056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33059 \begin_layout Plain Layout
33065 <cell alignment="center" valignment="top" usebox="none">
33068 \begin_layout Plain Layout
33069 \begin_inset Graphics
33070 filename ../images/dialog-show-new-inset_graphics.png
33072 scaleBeforeRotation
33073 BoundingBox 0bp 6bp 22bp 22bp
33082 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33085 \begin_layout Plain Layout
33093 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33096 \begin_layout Plain Layout
33102 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33105 \begin_layout Plain Layout
33111 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33114 \begin_layout Plain Layout
33126 \begin_inset Tabular
33127 <lyxtabular version="3" rows="3" columns="2">
33128 <features tabularvalignment="middle">
33129 <column alignment="center" valignment="top" width="0">
33130 <column alignment="center" valignment="top" width="0">
33132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33135 \begin_layout Plain Layout
33141 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33144 \begin_layout Plain Layout
33152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33155 \begin_layout Plain Layout
33161 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33164 \begin_layout Plain Layout
33165 \begin_inset Graphics
33166 filename ../images/dialog-show-new-inset_graphics.png
33168 scaleBeforeRotation
33169 BoundingBox 0bp 6bp 22bp 22bp
33180 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33183 \begin_layout Plain Layout
33189 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33192 \begin_layout Plain Layout
33206 \begin_layout Standard
33208 you can use the LaTeX-package
33213 \begin_inset Index idx
33216 \begin_layout Plain Layout
33217 LaTeX-packages ! picinpar
33223 Here is an example:
33226 \begin_layout Standard
33230 \begin_layout Plain Layout
33240 \begin_inset Note Note
33243 \begin_layout Plain Layout
33244 The following section will only be displayed when the LaTeX-package
33256 \begin_layout Standard
33260 \begin_layout Plain Layout
33264 begin{window}[2,c,{
33270 \begin_inset Graphics
33271 filename clipart/mobius.eps
33274 scaleBeforeRotation
33275 rotateOrigin center
33283 \begin_layout Plain Layout
33288 \begin_layout Plain Layout
33297 It was in the spring of the year 1894 that all London was interested, and
33298 the fashionable world dismayed, by the murder of the Honourable Ronald
33299 Adair under most unusual and inexplicable circumstances.
33300 The public has already learned those particulars of the crime which
33306 \begin_layout Plain Layout
33317 came out in the police investigation, but a good deal was suppressed upon
33318 that occasion, since the case for the prosecution was so overwhelmingly
33319 strong that it was not necessary to bring forward all the facts.
33320 Only now, at the end of nearly ten years, am I allowed to supply those
33321 missing links which make up the whole of that remarkable chain.
33327 \begin_layout Plain Layout
33339 \begin_layout Standard
33343 \begin_layout Plain Layout
33352 Footnote of the paragraph with the fixed object.
33356 \begin_layout Plain Layout
33366 \begin_layout Standard
33367 Surrounded fixed objects are used to let text float around them, at which
33368 the object's position in the paragraph can be determined by the number
33370 In contrary to floats is it not possible to have a numbered caption.
33373 \begin_layout Standard
33374 A fixed object is inserted by adding the command
33377 \begin_layout Standard
33382 begin{window}[2,c,{
33385 \begin_layout Standard
33386 as TeX Code at the beginning of the paragraph.
33387 The first parameter in the bracket, here '2', defines the number of lines
33388 above the object, the second, here 'c', the position of the object.
33389 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
33390 Behind the command you insert the object.
33391 In this example an image with a width of 40
33392 \begin_inset space \thinspace{}
33395 % of the text column width was inserted.
33396 The object can also be a table, a box or an equation.
33397 Behind the object the command
33400 \begin_layout Standard
33403 },description text]
33404 \begin_inset Newline newline
33410 \begin_layout Standard
33413 \begin_inset Quotes eld
33421 \begin_inset Quotes erd
33424 is in the second line.
33425 The description text is optional.
33426 The text surrounding the object must be in the same paragraph as the object,
33427 so it must begin directly after the
33432 At the end of the paragraph insert the command:
33435 \begin_layout Standard
33443 \begin_layout Standard
33444 Within a paragraph with a fixed object, you cannot insert footnotes in the
33446 You have to use instead the command
33452 inside the paragraph and outside the command
33458 as described in sec.
33459 \begin_inset space \thinspace{}
33463 \begin_inset CommandInset ref
33465 reference "sec:Footnotes"
33472 \begin_layout Standard
33476 \begin_layout Plain Layout
33486 \begin_inset Note Note
33489 \begin_layout Plain Layout
33490 The following will be displayed when the LaTeX-package
33502 \begin_layout Standard
33503 You need to install the LaTeX-package
33507 to see the following part of this section in the output.
33510 \begin_layout Standard
33514 \begin_layout Plain Layout
33526 \begin_layout Section
33528 \begin_inset Index idx
33531 \begin_layout Plain Layout
33538 \begin_inset Index idx
33541 \begin_layout Plain Layout
33542 Surrounded by text ! Initials
33550 \begin_layout Standard
33551 To use initials, you must have the LaTeX-package
33556 \begin_inset Index idx
33559 \begin_layout Plain Layout
33560 LaTeX-packages ! lettrine
33565 installed and use the module
33569 in your document (menu
33571 Document\SpecialChar \menuseparator
33572 Settings\SpecialChar \menuseparator
33576 To insert an initial, use the style
33581 This style has a mandatory and an optional argument.
33582 The mandatory argument is inserted via the menu
33584 Insert\SpecialChar \menuseparator
33586 \begin_inset space ~
33591 and contains the letter that is the initial.
33592 To use also the optional argument, insert another argument in front of
33593 the mandatory argument.
33594 This one contains parameters to modify the initial.
33595 For more information about the possible parameters see the documentation
33601 \begin_inset CommandInset citation
33608 The style itself contains the text that is surrounding the initial.
33609 The usual style is hereby that the word whose first letter is the initial,
33615 To tell LaTeX where this word is finished, add a closing brace '
33619 ' as TeX Code behind it.
33620 At the end of the style there must be an opening brace '
33627 \begin_layout Standard
33628 Here are some examples:
33631 \begin_layout Standard
33635 \begin_layout Plain Layout
33645 \begin_inset Note Note
33648 \begin_layout Plain Layout
33649 The following section will only be displayed when the LaTeX-package
33661 \begin_layout Enumerate
33662 No optional argument, the initial is the letter 'I' in the math font
33663 \begin_inset Formula $\mathfrak{Fraktur}$
33670 \begin_layout Initial
33671 \begin_inset Argument
33674 \begin_layout Plain Layout
33675 \begin_inset Formula $\mathfrak{I}$
33687 \begin_layout Plain Layout
33694 was in the spring of the year 1894 that all London was interested, and
33695 the fashionable world dismayed, by the murder of the Honourable Ronald
33696 Adair under most unusual and inexplicable circumstances.
33697 The public has already learned those particulars of the crime which came
33698 out in the police investigation, but a good deal was suppressed upon that
33699 occasion, since the case for the prosecution was so overwhelmingly strong
33700 that it was not necessary to bring forward all the facts.
33704 \begin_layout Plain Layout
33712 \begin_inset Newpage newpage
33719 \begin_layout Enumerate
33720 Only one line is surrounding the initial, which is formed by two letters
33721 in standard font and no text is printed in small caps:
33725 \begin_layout Initial
33726 \begin_inset Argument
33729 \begin_layout Plain Layout
33736 \begin_inset Argument
33739 \begin_layout Plain Layout
33749 \begin_layout Plain Layout
33756 was in the spring of the year 1894 that all London was interested, and
33757 the fashionable world dismayed, by the murder of the Honourable Ronald
33758 Adair under most unusual and inexplicable circumstances.
33759 The public has already learned those particulars of the crime which came
33760 out in the police investigation, but a good deal was suppressed upon that
33761 occasion, since the case for the prosecution was so overwhelmingly strong
33762 that it was not necessary to bring forward all the facts.
33766 \begin_layout Plain Layout
33777 \begin_layout Enumerate
33778 Magenta, hanging initial over 3
33779 \begin_inset space ~
33782 lines in the math font
33783 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33787 \begin_inset Quotes eld
33790 t was in the spring
33791 \begin_inset Quotes erd
33798 ; to color the initial, you must insert this command before the initial:
33799 \begin_inset Newline newline
33813 \begin_inset Newline newline
33821 \begin_inset Quotes eld
33825 \begin_inset Quotes erd
33829 \begin_inset Quotes eld
33833 \begin_inset Quotes erd
33837 \begin_inset Quotes eld
33841 \begin_inset Quotes erd
33845 \begin_inset Quotes eld
33849 \begin_inset Quotes erd
33853 \begin_inset Quotes eld
33857 \begin_inset Quotes erd
33861 \begin_inset Quotes eld
33865 \begin_inset Quotes erd
33869 \begin_inset Quotes eld
33873 \begin_inset Quotes erd
33877 \begin_inset Quotes eld
33881 \begin_inset Quotes erd
33884 , and add this command to the document preamble:
33885 \begin_inset Newline newline
33892 @ifundefined{textcolor}
33893 \begin_inset Newline newline
33897 \begin_inset space ~
33902 usepackage{color}}{}
33906 \begin_layout Standard
33910 \begin_layout Plain Layout
33924 \begin_inset Note Note
33927 \begin_layout Plain Layout
33928 makes the initial magenta
33936 \begin_layout Initial
33937 \begin_inset Argument
33940 \begin_layout Plain Layout
33941 lines=3, lhang=0.33, loversize=0.25
33947 \begin_inset Argument
33950 \begin_layout Plain Layout
33951 \begin_inset Formula $\mathcal{I}$
33959 t was in the spring
33963 \begin_layout Plain Layout
33970 of the year 1894 that all London was interested, and the fashionable world
33971 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33972 and inexplicable circumstances.
33973 The public has already learned those particulars of the crime which came
33974 out in the police investigation, but a good deal was suppressed upon that
33975 occasion, since the case for the prosecution was so overwhelmingly strong
33976 that it was not necessary to bring forward all the facts.
33980 \begin_layout Plain Layout
33991 \begin_layout Standard
33995 \begin_layout Plain Layout
34005 \begin_inset Note Note
34008 \begin_layout Plain Layout
34009 The following will be displayed when the LaTeX-package
34021 \begin_layout Standard
34022 You need to install the LaTeX-package
34026 to see the following part of this section in the output.
34029 \begin_layout Standard
34033 \begin_layout Plain Layout
34045 \begin_layout Chapter
34046 External Document Parts
34047 \begin_inset Index idx
34050 \begin_layout Plain Layout
34051 External Document Parts
34059 \begin_layout Standard
34062 Insert\SpecialChar \menuseparator
34065 you can insert external material to your document.
34069 \begin_layout Description
34071 \begin_inset space ~
34074 Document Another LyX document; its content is directly inserted to your
34078 \begin_layout Description
34080 \begin_inset space ~
34083 Text A text document; each line is inserted in your document as a separate
34087 \begin_layout Description
34089 \begin_inset space ~
34093 \begin_inset space ~
34097 \begin_inset space ~
34100 Lines A text document; text lines are inserted in your document continuously
34101 but an empty text line creates a new paragraph.
34104 \begin_layout Description
34106 \begin_inset space ~
34109 Material Files in various formats.
34112 \begin_layout Description
34114 \begin_inset space ~
34117 Document LyX or LaTeX-documents.
34120 \begin_layout Section
34122 \begin_inset Index idx
34125 \begin_layout Plain Layout
34126 External Document Parts ! External Material
34134 \begin_layout Standard
34135 The external material feature allows you to insert files in to your document
34136 without converting them to a format that can be read by the document output
34138 LyX takes care of the necessary conversions.
34139 This is similar to images that can be inserted in various image formats
34141 When you have enabled Instant Preview in LyX's preferences under
34144 \begin_inset space ~
34148 \begin_inset space ~
34151 feel\SpecialChar \menuseparator
34154 , the external material types Dia and Xfig are directly shown in LyX.
34157 \begin_layout Standard
34158 External material can be inserted via the
34162 dialog that is accessible with the menu
34164 Insert\SpecialChar \menuseparator
34165 File\SpecialChar \menuseparator
34167 \begin_inset space ~
34173 Currently the following file types (
34180 \begin_layout Description
34181 ChessDiagram This template supports chess position diagrams made with the
34185 \begin_inset CommandInset href
34188 target "http://en.wikipedia.org/wiki/XBoard"
34197 \begin_layout Description
34198 Date This inserts the date in the form
34203 This is a date inserted as external material:
34204 \begin_inset External
34211 \begin_inset space ~
34215 \begin_inset Note Note
34218 \begin_layout Plain Layout
34219 Remove the protected space when bug 4398 is fixed!
34225 \begin_inset Newline newline
34228 The date is not shown within LyX, only in the output.
34229 There are two other methods of inserting a date: Via menu
34231 Insert\SpecialChar \menuseparator
34234 and with the LaTeX command
34241 The different methods are compared in Table
34242 \begin_inset space ~
34246 \begin_inset CommandInset ref
34248 reference "tab:Comparison-of-the"
34255 \begin_layout Description
34256 Dia This template supports diagrams created with the program
34259 \begin_inset CommandInset href
34262 target "http://en.wikipedia.org/wiki/Dia_(software)"
34271 \begin_layout Description
34272 GnumericSpreadsheet With this template you can insert spreadsheets
34273 \begin_inset space \thinspace{}
34277 \begin_inset space \thinspace{}
34280 tables in the format of
34283 \begin_inset CommandInset href
34286 target "http://en.wikipedia.org/wiki/Gnumeric"
34293 \begin_inset CommandInset href
34295 name "OpenDocument"
34296 target "http://en.wikipedia.org/wiki/OpenDocument"
34301 \begin_inset CommandInset href
34303 name "Microsoft Office XML"
34304 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
34309 \begin_inset CommandInset href
34311 name "Office Open XML"
34312 target "http://en.wikipedia.org/wiki/Office_Open_XML"
34317 For this feature LyX must have found the program
34321 during its configuration.
34322 This program is part of Gnumeric, so that you must have Gnumeric installed,
34323 also if you don't have tables in the Gnumeric format.
34324 For examples and possible limitations have a look at LyX's example file
34332 \begin_layout Description
34333 LilyPond This template is used for music notation typeset with the program
34334 \begin_inset Newline linebreak
34340 \begin_inset CommandInset href
34343 target "http://en.wikipedia.org/wiki/LilyPond"
34350 For LyX's extended support for LilyPond have a look at LyX's example file
34358 \begin_layout Description
34359 PDFPages With this template you can insert PDF documents to your document.
34360 To insert certain or all pages of a PDF, use the
34370 LaTeX and LyX options
34372 tab according to the template description in the dialog.
34377 option is given, only the first page of the PDF will be inserted.
34380 \begin_layout Description
34381 RasterImage This can be used for bitmap images.
34382 Nearly all popular image formats are supported.
34383 The image can be treated in the
34387 dialog like the images that are usually included via the
34391 dialog as described in section
34392 \begin_inset space ~
34396 \begin_inset CommandInset ref
34398 reference "sec:Graphics-Dialog"
34403 The difference is that only raster images are allowed; that means that
34404 PDF and EPS-images are not supported.
34407 \begin_layout Description
34408 XFig This template supports images created with the program
34411 \begin_inset CommandInset href
34414 target "http://en.wikipedia.org/wiki/Xfig"
34423 \begin_layout Standard
34424 \begin_inset Float table
34430 \begin_layout Plain Layout
34431 \begin_inset Caption
34433 \begin_layout Plain Layout
34434 \begin_inset CommandInset label
34436 name "tab:Comparison-of-the"
34440 Comparison of the date input methods.
34448 \begin_layout Plain Layout
34450 \begin_inset Tabular
34451 <lyxtabular version="3" rows="4" columns="4">
34452 <features tabularvalignment="middle">
34453 <column alignment="center" valignment="top" width="0">
34454 <column alignment="center" valignment="top" width="0">
34455 <column alignment="center" valignment="top" width="0">
34456 <column alignment="center" valignment="top" width="0">
34458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34461 \begin_layout Plain Layout
34467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34470 \begin_layout Plain Layout
34473 External Material\SpecialChar \menuseparator
34479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34482 \begin_layout Plain Layout
34485 Insert\SpecialChar \menuseparator
34491 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34494 \begin_layout Plain Layout
34506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34509 \begin_layout Plain Layout
34515 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34518 \begin_layout Plain Layout
34524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34527 \begin_layout Plain Layout
34533 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34536 \begin_layout Plain Layout
34537 as TeX-Code inset box
34544 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34547 \begin_layout Plain Layout
34553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34556 \begin_layout Plain Layout
34562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34565 \begin_layout Plain Layout
34571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34574 \begin_layout Plain Layout
34582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34585 \begin_layout Plain Layout
34591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34594 \begin_layout Plain Layout
34600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34603 \begin_layout Plain Layout
34609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34612 \begin_layout Plain Layout
34631 \begin_layout Standard
34632 When you use the option
34644 dialog, only the path to the inserted file is shown in the output.
34645 \begin_inset Newline newline
34648 External material is displayed in LyX either as a box like this:
34649 \begin_inset Graphics
34650 filename clipart/ExternalMaterialQt4.png
34652 scaleBeforeRotation
34656 or as image, depending on the option
34662 LaTeX and LyX options
34667 \begin_layout Standard
34674 manual explains how you can define your own templates.
34677 \begin_layout Section
34679 \begin_inset CommandInset label
34681 name "sec:Child-Documents"
34686 \begin_inset Index idx
34689 \begin_layout Plain Layout
34690 External Document Parts ! Child Documents
34696 \begin_inset Index idx
34699 \begin_layout Plain Layout
34708 \begin_layout Standard
34709 Child documents are used if you have a long document consisting of several
34710 larger parts or sections.
34711 For maintenance it is often useful and sometimes even required to split
34712 the document into several files that can be revised separately.
34713 The different documents are then the so called
34714 \begin_inset Quotes eld
34718 \begin_inset Quotes erd
34721 , and a master document connects them to print the full document or parts
34723 A child document inherits elements of its master, for example the LaTeX
34724 preamble, the bibliography, and labels for cross-references.
34727 \begin_layout Standard
34728 To be able to work on child documents without the need to open their master,
34729 specify in the child document the master in the menu
34731 Document\SpecialChar \menuseparator
34732 Settings\SpecialChar \menuseparator
34734 \begin_inset space ~
34740 This master document will then be used in the background by LyX when you
34741 edit the child document.
34744 \begin_layout Standard
34745 Included documents are displayed in LyX as a box like this:
34746 \begin_inset Graphics
34747 filename clipart/ChildDocumentQt4.png
34749 scaleBeforeRotation
34753 To include child documents in a master document use the menu
34755 Insert\SpecialChar \menuseparator
34756 File\SpecialChar \menuseparator
34758 \begin_inset space ~
34764 A dialog pops up where you can choose between four include methods:
34767 \begin_layout Description
34768 Include You can include LyX- and LaTeX-documents.
34777 dialog, the included documents will be opened in LyX in a new file tab
34778 so that you can modify them.
34779 \begin_inset Newline newline
34785 \begin_layout Standard
34786 Here is a child document inserted using
34791 \begin_inset CommandInset include
34792 LatexCommand include
34793 filename "DummyDocument1.lyx"
34800 \begin_layout Standard
34801 The section numbering includes the sections of the included files in the
34802 order they are inserted in the master document.
34803 The included example document has for example a subsection that is numbered
34804 as a subsection of this section.
34805 Labels of included documents can be referenced: Subsection
34806 \begin_inset space ~
34810 \begin_inset CommandInset ref
34812 reference "sub:External-Subsection-1"
34819 \begin_layout Standard
34820 The preamble of the child document is ignored; only the preamble of the
34821 master document is used.
34822 Branches in child documents will be ignored by the master document when
34823 the master document does not have a branch with the same name.
34824 Included documents are inserted starting on a new page and ending with
34828 \begin_layout Standard
34829 \begin_inset Note Greyedout
34832 \begin_layout Plain Layout
34837 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34838 the document in case the child document uses another document class than
34839 the master document as this will lead to unexpected outputs.
34847 \begin_layout Description
34848 Input This method is very similar to the Include method.
34849 The differences are:
34853 \begin_layout Itemize
34854 Input files don't start with a new page and don't end with a page break.
34857 \begin_layout Itemize
34858 Input files can be previewed in LyX when
34861 \begin_inset space ~
34866 is enabled in LyX's preferences under
34869 \begin_inset space ~
34873 \begin_inset space ~
34876 feel\SpecialChar \menuseparator
34882 \begin_layout Itemize
34883 You cannot exclude Input files via the menu
34885 Document\SpecialChar \menuseparator
34886 Settings\SpecialChar \menuseparator
34893 \begin_layout Standard
34894 Here is a child document inserted using
34899 \begin_inset CommandInset include
34901 filename "DummyDocument2.lyx"
34908 \begin_layout Description
34909 Verbatim With this method any text file can be included.
34910 The file is shown in the output with its source code; no command used in
34911 the text is invoked.
34912 You can use the option
34914 Mark spaces in output
34916 that displays the character
34917 \begin_inset Quotes eld
34924 \begin_layout Plain Layout
34934 \begin_inset Quotes erd
34937 for every space character in the source code.
34938 The difference from the method via the menu
34940 Insert\SpecialChar \menuseparator
34941 File\SpecialChar \menuseparator
34943 \begin_inset space ~
34948 is that the document content is not shown in LyX.
34951 \begin_layout Standard
34952 Here is a child document inserted as Verbatim:
34953 \begin_inset CommandInset include
34954 LatexCommand verbatiminput
34955 filename "DummyTextDocument.txt"
34960 \begin_inset VSpace bigskip
34963 Here is a child document inserted as Verbatim using the
34965 Mark spaces in output
34968 \begin_inset CommandInset include
34969 LatexCommand verbatiminput*
34970 filename "DummyTextDocument.txt"
34977 \begin_layout Standard
34978 \begin_inset VSpace bigskip
34984 \begin_layout Standard
34985 \begin_inset Note Greyedout
34988 \begin_layout Plain Layout
34993 As you can see in the examples above, the text of the documents included
34998 is not broken at the end of the document lines.
35006 \begin_layout Description
35007 Listings This type is described in chapter
35008 \begin_inset space ~
35012 \begin_inset CommandInset ref
35014 reference "cha:Program-Code-Listings"
35021 \begin_layout Standard
35022 \begin_inset Note Greyedout
35025 \begin_layout Plain Layout
35030 Including the same document twice in a document using different methods
35031 could cause LaTeX-problems.
35039 \begin_layout Standard
35040 If you want to view/export only selected children of your master document,
35041 either because you want to save compiling time or because you want to distribut
35042 e single chapters of the book you are just writing, you can exclude children
35044 This is done via the menu
35046 Document\SpecialChar \menuseparator
35047 Settings\SpecialChar \menuseparator
35051 You can exclude\SpecialChar \slash{}
35052 include children by double-clicking on the
35056 column of the respective child document in the list (note that this only
35057 works for documents embedded via
35058 \begin_inset Quotes eld
35062 \begin_inset Quotes erd
35066 \begin_inset Quotes eld
35070 \begin_inset Quotes erd
35076 Maintain counters and references
35078 is enabled, LyX will assure that all page numbers, references etc.
35079 \begin_inset space ~
35082 are correct as if the whole document was processed.
35083 This is useful if you want the selected sub-documents to look exactly as
35084 in the context of the whole document.
35085 However, LyX needs to process the whole document in the background for
35087 So if you want to save compile time and if counters and references do not
35088 need to be correct, disable this checkbox.
35091 \begin_layout Standard
35092 Alternatively, you can put each included file into a branch.
35096 \begin_layout Plain Layout
35097 Branches are described in section
35110 By enabling\SpecialChar \slash{}
35111 disabling branches you can decide which included files will
35112 appear in the output.
35113 This has the advantage that it also works with Input'ed sub-documents.
35114 However, counters and references will not be maintained with this approach.
35117 \begin_layout Chapter
35118 Program Code Listings
35119 \begin_inset CommandInset label
35121 name "cha:Program-Code-Listings"
35126 \begin_inset Index idx
35129 \begin_layout Plain Layout
35136 \begin_inset Index idx
35139 \begin_layout Plain Layout
35146 \begin_inset Index idx
35149 \begin_layout Plain Layout
35158 \begin_layout Standard
35159 To include and typeset program code you can use the
35163 inset that can be inserted via the menu
35165 Insert\SpecialChar \menuseparator
35174 \begin_inset Index idx
35177 \begin_layout Plain Layout
35178 LaTeX-packages ! listings
35183 provides a powerful and flexible way to insert program source code into
35187 \begin_layout Standard
35188 Right-clicking on a listings inset opens the context menu containing where
35189 you can set the listings format.
35192 \begin_layout Standard
35193 By default, a listing starts a new paragraph in the output.
35194 The placement option
35197 \begin_inset space ~
35202 prints the listing inline like this:
35203 \begin_inset listings
35204 lstparams "language={C++}"
35208 \begin_layout Plain Layout
35216 \begin_inset Newline newline
35223 creates a listings float where you can specify the placement options
35224 \begin_inset Quotes eld
35232 \begin_inset Quotes erd
35236 \begin_inset Quotes eld
35244 \begin_inset Quotes erd
35248 \begin_inset Quotes eld
35256 \begin_inset Quotes erd
35260 \begin_inset Quotes eld
35268 \begin_inset Quotes erd
35271 corresponding to the float placement options described in section
35272 \begin_inset space ~
35276 \begin_inset CommandInset ref
35278 reference "sec:Float-Placement"
35283 The placement options can be mixed and are inserted without any separation,
35285 \begin_inset space \thinspace{}
35289 \begin_inset space \space{}
35293 \begin_inset Quotes eld
35301 \begin_inset Quotes erd
35306 \begin_inset Quotes eld
35310 \begin_inset Quotes erd
35313 has sometimes no effect, but you don't need to use the
35317 option in this case as also non-float listings can have captions and be
35321 \begin_layout Standard
35322 You can add captions to listings with the menu
35324 Insert\SpecialChar \menuseparator
35328 Listings can be referenced like floats: Listing
35329 \begin_inset space ~
35333 \begin_inset CommandInset ref
35335 reference "lst:Example-Listing"
35342 \begin_layout Standard
35343 \begin_inset listings
35344 lstparams "language=Python"
35348 \begin_layout Plain Layout
35350 \begin_inset Caption
35352 \begin_layout Plain Layout
35353 \begin_inset CommandInset label
35355 name "lst:Example-Listing"
35359 Example Listing float
35364 # Example listing float
35367 \begin_layout Plain Layout
35372 \begin_layout Plain Layout
35374 'this is a python function'
35377 \begin_layout Plain Layout
35387 \begin_layout Standard
35388 When you have set a programming language in the listings dialog, the keywords
35389 of this language will be recognized and specially typeset in the output.
35390 In the example listings the Python keyword
35391 \begin_inset Quotes eld
35395 \begin_inset Quotes erd
35398 is recognized and printed bold in the output.
35401 \begin_layout Standard
35402 \begin_inset Note Greyedout
35405 \begin_layout Plain Layout
35410 If you don't get bold keywords when using typewriter fonts, your
35414 font probably doesn't provide a bold shape.
35415 In this case select a different one in the menu
35417 Document\SpecialChar \menuseparator
35418 Settings\SpecialChar \menuseparator
35430 provide bold shapes.)
35438 \begin_layout Standard
35442 \begin_inset space ~
35447 of the listings dialog you can specify the line numbering style.
35448 You can insert a number to specify which lines are numbered in the field
35455 \begin_inset space \thinspace{}
35459 \begin_inset space \space{}
35463 \begin_inset Quotes eld
35467 \begin_inset Quotes erd
35470 , only every 3rd line will be numbered.
35473 \begin_layout Standard
35474 You can furthermore specify a range of lines; only these will then appear
35478 Extended character table
35480 should be used when you use national characters like the German umlauts
35482 \begin_inset Newline newline
35485 Here is an example listing with left line numbering, step
35486 \begin_inset Quotes eld
35490 \begin_inset Quotes erd
35494 \begin_inset Quotes eld
35498 \begin_inset Quotes erd
35502 \begin_inset Quotes eld
35505 Extended character table
35506 \begin_inset Quotes erd
35510 \begin_inset Quotes eld
35514 \begin_inset space ~
35518 \begin_inset space ~
35522 \begin_inset Quotes erd
35526 \begin_inset space \thinspace{}
35530 \begin_inset space \thinspace{}
35536 \begin_layout Standard
35537 \begin_inset listings
35538 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
35542 \begin_layout Plain Layout
35547 \begin_layout Plain Layout
35549 'this is a python function'
35552 \begin_layout Plain Layout
35557 \begin_layout Plain Layout
35562 \begin_layout Plain Layout
35564 'This is a German word: Tschüß'
35567 \begin_layout Plain Layout
35572 \begin_layout Plain Layout
35577 \begin_layout Plain Layout
35579 'this is a python function'
35582 \begin_layout Plain Layout
35592 \begin_layout Standard
35593 When you have tabulators in your listing, you can specify the number of
35594 characters that are spanned by a tabulator in the field
35597 \begin_inset space ~
35605 \begin_layout Standard
35606 \begin_inset Note Greyedout
35609 \begin_layout Plain Layout
35614 Due to a bug in the
35618 package the line numbering is shifted by a line by every previous listing.
35619 That's the reason why the lines 2 and 5 are numbered in the above listing
35620 and not the lines 3 and 6.
35628 \begin_layout Standard
35629 \begin_inset VSpace bigskip
35635 \begin_layout Standard
35636 It is also possible to print lines from a file as listing.
35637 To do this, use the menu
35639 Insert\SpecialChar \menuseparator
35640 File\SpecialChar \menuseparator
35643 and choose the type
35651 \begin_layout Plain Layout
35652 The other child document types are described in section
35653 \begin_inset space ~
35657 \begin_inset CommandInset ref
35659 reference "sec:Child-Documents"
35668 In the child document dialog you can specify the listing parameters in
35670 To show a list of all available parameters, type in a question mark
35671 \begin_inset Quotes eld
35675 \begin_inset Quotes erd
35681 \begin_layout Standard
35682 To reference child document listings, write a label text into the corresponding
35683 field of the child document dialog.
35684 The label can then be referenced using the menu
35686 Insert\SpecialChar \menuseparator
35692 \begin_layout Standard
35694 \begin_inset space ~
35698 \begin_inset CommandInset ref
35700 reference "lst:file-listing"
35704 is an example for a listing of a file; there the lines 10
35705 \begin_inset space \thinspace{}
35709 \begin_inset space \thinspace{}
35712 15 of this LyX file are listed.
35715 \begin_layout Standard
35716 \begin_inset CommandInset include
35717 LatexCommand lstinputlisting
35718 filename "EmbeddedObjects.lyx"
35719 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35726 \begin_layout Standard
35727 \begin_inset VSpace bigskip
35733 \begin_layout Standard
35734 Inserting a formula into a listing can be done the following way:
35737 \begin_layout Enumerate
35738 Open the listings dialog and add
35739 \begin_inset Newline newline
35747 \begin_inset Newline newline
35750 to the field of the
35757 \begin_layout Enumerate
35758 Create a formula outside the listing
35761 \begin_layout Enumerate
35762 Copy the content of the formula (not the formula inset) to the clipboard
35772 \begin_layout Enumerate
35773 In the listing write
35774 \begin_inset Quotes eld
35782 \begin_inset Quotes erd
35785 and copy from the clipboard between the dollar-signs (shortcut
35794 \begin_layout Standard
35795 \begin_inset listings
35796 lstparams "language=Python,mathescape=true"
35800 \begin_layout Plain Layout
35802 \begin_inset Caption
35804 \begin_layout Plain Layout
35805 Example Listing float containing a formula
35810 # Example listing float
35813 \begin_layout Plain Layout
35818 \begin_layout Plain Layout
35831 \begin_layout Plain Layout
35841 \begin_layout Standard
35842 \begin_inset VSpace bigskip
35848 \begin_layout Standard
35849 Global listings settings can be set in the
35851 Document\SpecialChar \menuseparator
35852 Settings\SpecialChar \menuseparator
35856 To get there a list of available options, type in a question mark
35857 \begin_inset Quotes eld
35861 \begin_inset Quotes erd
35867 \begin_layout Standard
35868 For more information about the
35872 package, we refer to its documentation
35873 \begin_inset CommandInset citation
35882 \begin_layout Standard
35883 \begin_inset Newpage newpage
35889 \begin_layout Chapter
35891 Units available in LyX
35892 \begin_inset Index idx
35895 \begin_layout Plain Layout
35902 \begin_inset CommandInset label
35904 name "cha:Units-available-in"
35911 \begin_layout Standard
35912 To understand the units described in this documentation, Table
35913 \begin_inset space ~
35917 \begin_inset CommandInset ref
35919 reference "tab:Units"
35923 explains all units available in LyX.
35926 \begin_layout Standard
35927 \begin_inset Float table
35933 \begin_layout Plain Layout
35934 \begin_inset Caption
35936 \begin_layout Plain Layout
35937 \begin_inset CommandInset label
35951 \begin_layout Plain Layout
35952 \begin_inset VSpace medskip
35958 \begin_layout Plain Layout
35960 \begin_inset Tabular
35961 <lyxtabular version="3" rows="20" columns="2">
35962 <features tabularvalignment="middle">
35963 <column alignment="center" valignment="top" width="0">
35964 <column alignment="center" valignment="top" width="0">
35966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35969 \begin_layout Plain Layout
35975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35978 \begin_layout Plain Layout
35986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35989 \begin_layout Plain Layout
35995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35998 \begin_layout Plain Layout
36006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36009 \begin_layout Plain Layout
36015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36018 \begin_layout Plain Layout
36026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36029 \begin_layout Plain Layout
36035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36038 \begin_layout Plain Layout
36046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36049 \begin_layout Plain Layout
36055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36058 \begin_layout Plain Layout
36060 \begin_inset space \thinspace{}
36064 \begin_inset space \thinspace{}
36074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36077 \begin_layout Plain Layout
36083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36086 \begin_layout Plain Layout
36088 \begin_inset space \thinspace{}
36092 \begin_inset space \thinspace{}
36102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36105 \begin_layout Plain Layout
36111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36114 \begin_layout Plain Layout
36115 scaled point (65536
36116 \begin_inset space \thinspace{}
36120 \begin_inset space \thinspace{}
36130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36133 \begin_layout Plain Layout
36139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36142 \begin_layout Plain Layout
36144 \begin_inset space \thinspace{}
36148 \begin_inset space \thinspace{}
36158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36161 \begin_layout Plain Layout
36167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36170 \begin_layout Plain Layout
36172 \begin_inset space \thinspace{}
36176 \begin_inset Formula $\approx$
36180 \begin_inset space \thinspace{}
36190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36193 \begin_layout Plain Layout
36199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36202 \begin_layout Plain Layout
36204 \begin_inset space \thinspace{}
36208 \begin_inset space \thinspace{}
36218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36221 \begin_layout Plain Layout
36227 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36230 \begin_layout Plain Layout
36231 % of original image width
36238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36241 \begin_layout Plain Layout
36247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36250 \begin_layout Plain Layout
36258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36261 \begin_layout Plain Layout
36267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36270 \begin_layout Plain Layout
36278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36281 \begin_layout Plain Layout
36287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36290 \begin_layout Plain Layout
36298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36301 \begin_layout Plain Layout
36307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36310 \begin_layout Plain Layout
36318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36321 \begin_layout Plain Layout
36327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36330 \begin_layout Plain Layout
36338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36341 \begin_layout Plain Layout
36347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36350 \begin_layout Plain Layout
36358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36361 \begin_layout Plain Layout
36367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36370 \begin_layout Plain Layout
36382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36385 \begin_layout Plain Layout
36391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36394 \begin_layout Plain Layout
36406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36409 \begin_layout Plain Layout
36415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36418 \begin_layout Plain Layout
36420 \begin_inset space \thinspace{}
36424 \begin_inset space \thinspace{}
36445 \begin_layout Chapter
36446 Output File Formats with Graphics
36447 \begin_inset CommandInset label
36449 name "cha:Output-File-Formats"
36456 \begin_layout Section
36458 \begin_inset Index idx
36461 \begin_layout Plain Layout
36468 \begin_inset Index idx
36471 \begin_layout Plain Layout
36476 \begin_layout Plain Layout
36487 \begin_layout Plain Layout
36502 \begin_layout Standard
36503 This file type has the extension
36504 \begin_inset Quotes eld
36512 \begin_inset Quotes erd
36517 \begin_inset Quotes eld
36521 \begin_inset Quotes erd
36524 (DVI), because it is completely portable; you can move them from one machine
36525 to another without needing to do any sort of conversion.
36526 At the time when this file-format was developed, this was no matter of
36528 DVIs are used for quick previews and as pre-stage for other output formats,
36532 \begin_layout Standard
36533 \begin_inset Note Greyedout
36536 \begin_layout Plain Layout
36541 DVI-files do not contain images; they will only be a linked.
36546 So don't forget this, if you move your
36550 file to another computer.
36551 This property can also slow down your computer when you view the DVI, because
36552 the DVI-viewer has to convert the image in the background to make it visible
36553 when you scroll in the DVI.
36554 So it is recommended that you use PDF for files with many images.
36557 \begin_layout Standard
36558 You can export your document to DVI by using the menu
36560 File\SpecialChar \menuseparator
36561 Export\SpecialChar \menuseparator
36565 You can view your document as DVI via the
36569 menu or by using the toolbar button
36570 \begin_inset Graphics
36571 filename ../images/buffer-view_dvi.png
36573 scaleBeforeRotation
36580 \begin_layout Section
36582 \begin_inset CommandInset label
36584 name "sec:PostScript"
36589 \begin_inset Index idx
36592 \begin_layout Plain Layout
36593 File Formats ! PostScript
36599 \begin_inset Index idx
36602 \begin_layout Plain Layout
36607 \begin_layout Plain Layout
36618 \begin_layout Plain Layout
36633 \begin_layout Standard
36634 This file type has the extension
36635 \begin_inset Quotes eld
36643 \begin_inset Quotes erd
36647 PostScript was developed by the company
36651 as a printer language.
36652 The file therefore contains commands that the printer uses to print the
36654 PostScript can be seen as a
36655 \begin_inset Quotes eld
36658 programming language
36659 \begin_inset Quotes erd
36662 ; you can calculate with it and draw diagrams and images
36666 \begin_layout Plain Layout
36667 If you are interested to learn more about this, have a look at the LaTeX-package
36673 \begin_inset CommandInset citation
36685 Due to this ability, the files are often bigger than PDFs.
36688 \begin_layout Standard
36689 PostScript can only contain images in the format
36690 \begin_inset Quotes eld
36693 Encapsulated PostScript
36694 \begin_inset Quotes erd
36697 (EPS, file extension
36698 \begin_inset Quotes eld
36706 \begin_inset Quotes erd
36710 As LyX allows you to use any known image format in your document, it has
36711 to convert images in the background to EPS.
36713 \begin_inset space ~
36717 \begin_inset space ~
36720 images in your document, LyX has to do 50
36721 \begin_inset space ~
36724 conversions whenever you view or export your document.
36725 This will slow down your work flow with LyX drastically.
36726 So if you plan to use PostScript, you can insert your images directly as
36727 EPS to avoid this problem.
36730 \begin_layout Standard
36731 You can export your document to PostScript using the menu
36733 File\SpecialChar \menuseparator
36734 Export\SpecialChar \menuseparator
36738 You can view your document as PostScript via the
36742 menu or by using the toolbar button
36743 \begin_inset Graphics
36744 filename ../images/buffer-view_ps.png
36746 scaleBeforeRotation
36753 \begin_layout Section
36755 \begin_inset Index idx
36758 \begin_layout Plain Layout
36765 \begin_inset Index idx
36768 \begin_layout Plain Layout
36777 \begin_layout Standard
36778 This file type has the extension
36779 \begin_inset Quotes eld
36787 \begin_inset Quotes erd
36792 \begin_inset Quotes eld
36795 Portable Document Format
36796 \begin_inset Quotes erd
36799 (PDF) was developed by
36803 as a derivative of PostScript.
36804 It is more compressed and it uses fewer commands than PostScript.
36806 \begin_inset Quotes eld
36810 \begin_inset Quotes erd
36813 implies, it can be processed at any computer system and the printed output
36814 looks exactly the same.
36817 \begin_layout Standard
36818 PDF can contain images in its own PDF format, in the format
36819 \begin_inset Quotes eld
36822 Joint Photographic Experts Group
36823 \begin_inset Quotes erd
36826 (JPG, file extension
36827 \begin_inset Quotes eld
36835 \begin_inset Quotes erd
36839 \begin_inset Quotes eld
36847 \begin_inset Quotes erd
36850 ), and in the format
36851 \begin_inset Quotes eld
36854 Portable Network Graphics
36855 \begin_inset Quotes erd
36858 (PNG, file extension
36859 \begin_inset Quotes eld
36867 \begin_inset Quotes erd
36871 Nevertheless you can use any other image format, because LyX converts them
36872 in the background to one of these formats.
36873 But as described in the section about PostScript, the image conversion
36874 will slow down your work flow.
36875 So it is recommended that you use images in one of the three mentioned
36879 \begin_layout Standard
36880 You can export your document to PDF via the menu
36882 File\SpecialChar \menuseparator
36885 in three different ways:
36888 \begin_layout Description
36890 \begin_inset space ~
36893 (ps2pdf) This uses the program
36897 that creates a PDF from a PostScript-version of your file.
36898 The PostScript-version is produced by the program
36902 which uses a DVI-version as intermediate step.
36903 So this export variant consists of three conversions.
36906 \begin_layout Description
36908 \begin_inset space ~
36911 (dvipdfm) This uses the program
36915 that converts your file in the background to DVI and in a second step to
36919 \begin_layout Description
36921 \begin_inset space ~
36924 (pdflatex) This uses the program
36928 that converts your file directly to PDF.
36931 \begin_layout Standard
36932 It is recommended that you use
36935 \begin_inset space ~
36944 supports all features of actual PDF-versions, is quick and works stable.
36949 is not under development and therefore a bit outdated.
36952 \begin_layout Standard
36953 You can view your document as PDF via the
36957 menu or by using the toolbar button
36958 \begin_inset Graphics
36959 filename ../images/buffer-view_pdf2.png
36961 scaleBeforeRotation
36972 \begin_inset space ~
36980 \begin_layout Chapter
36981 Explanation of Equation
36982 \begin_inset space ~
36986 \begin_inset CommandInset ref
36993 \begin_inset CommandInset label
36995 name "cha:Explanation-of-Equation"
37002 \begin_layout Standard
37003 We can calculate the total width of
37008 \begin_inset Formula $W_{\mathrm{tot\, n}}$
37014 \begin_layout Standard
37015 \begin_inset Formula
37017 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
37023 \begin_inset Formula $W_{g\, n}$
37026 is the given width of all cells,
37032 is the LaTeX-length between the cell text and the cell border (its default
37034 \begin_inset space \thinspace{}
37044 is the thickness of the cell border line, the default is 0.4
37045 \begin_inset space \thinspace{}
37051 \begin_layout Standard
37053 \begin_inset space ~
37057 \begin_inset CommandInset ref
37059 reference "eq:Wtot_n"
37063 , the total width of a multicolumn
37064 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
37070 \begin_layout Standard
37071 \begin_inset Formula
37073 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
37081 \begin_layout Standard
37082 By setting equation
37083 \begin_inset space ~
37087 \begin_inset CommandInset ref
37089 reference "eq:Wtot_n"
37094 \begin_inset CommandInset ref
37096 reference "eq:Wtot_mult"
37100 equal we can calculate the needed given width
37101 \begin_inset Formula $W_{g\, n}$
37108 columns are spanned, so that each column has a total width of
37109 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
37115 \begin_layout Standard
37116 \begin_inset Formula
37118 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
37126 \begin_layout Bibliography
37127 \labelwidthstring Bibliography
37128 \begin_inset CommandInset bibitem
37129 LatexCommand bibitem
37130 key "latexcompanion"
37134 Frank Mittelbach and Michel Goossens:
37136 The LaTeX Companion Second Edition.
37139 Addison-Wesley, 2004
37142 \begin_layout Bibliography
37143 \labelwidthstring Bibliography
37144 \begin_inset CommandInset bibitem
37145 LatexCommand bibitem
37150 Helmut Kopka and Patrick W.
37153 A Guide to LaTeX Fourth Edition.
37156 Addison-Wesley, 2003
37159 \begin_layout Bibliography
37160 \labelwidthstring Bibliography
37161 \begin_inset CommandInset bibitem
37162 LatexCommand bibitem
37169 LaTeX: A Document Preparation System.
37172 Addison-Wesley, second edition, 1994
37175 \begin_layout Bibliography
37176 \labelwidthstring Bibliography
37177 \begin_inset CommandInset bibitem
37178 LatexCommand bibitem
37183 Documentation of the LaTeX-package
37186 \begin_inset CommandInset href
37189 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
37196 \begin_inset Index idx
37199 \begin_layout Plain Layout
37200 LaTeX-packages ! booktabs
37208 \begin_layout Bibliography
37209 \labelwidthstring Bibliography
37210 \begin_inset CommandInset bibitem
37211 LatexCommand bibitem
37216 Documentation of the LaTeX-package
37219 \begin_inset CommandInset href
37222 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
37229 \begin_inset Index idx
37232 \begin_layout Plain Layout
37233 LaTeX-packages ! caption
37241 \begin_layout Bibliography
37242 \labelwidthstring Bibliography
37243 \begin_inset CommandInset bibitem
37244 LatexCommand bibitem
37249 Documentation of the LaTeX-package
37252 \begin_inset CommandInset href
37255 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
37262 \begin_inset Index idx
37265 \begin_layout Plain Layout
37266 LaTeX-packages ! endfloat
37274 \begin_layout Bibliography
37275 \labelwidthstring Bibliography
37276 \begin_inset CommandInset bibitem
37277 LatexCommand bibitem
37282 Documentation of the LaTeX-package
37285 \begin_inset CommandInset href
37288 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
37295 \begin_inset Index idx
37298 \begin_layout Plain Layout
37299 LaTeX-packages ! footmisc
37307 \begin_layout Bibliography
37308 \labelwidthstring Bibliography
37309 \begin_inset CommandInset bibitem
37310 LatexCommand bibitem
37315 Documentation of the LaTeX-package
37318 \begin_inset CommandInset href
37321 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
37328 \begin_inset Index idx
37331 \begin_layout Plain Layout
37332 LaTeX-packages ! hyperref
37340 \begin_layout Bibliography
37341 \labelwidthstring Bibliography
37342 \begin_inset CommandInset bibitem
37343 LatexCommand bibitem
37348 Documentation of the LaTeX-package
37351 \begin_inset CommandInset href
37354 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
37361 \begin_inset Index idx
37364 \begin_layout Plain Layout
37365 LaTeX-packages ! hyperref
37373 \begin_layout Bibliography
37374 \labelwidthstring Bibliography
37375 \begin_inset CommandInset bibitem
37376 LatexCommand bibitem
37381 Documentation of the LaTeX-package
37384 \begin_inset CommandInset href
37387 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
37394 \begin_inset Index idx
37397 \begin_layout Plain Layout
37398 LaTeX-packages ! KOMA-Script
37406 \begin_layout Bibliography
37407 \labelwidthstring Bibliography
37408 \begin_inset CommandInset bibitem
37409 LatexCommand bibitem
37414 Documentation of the LaTeX-package
37417 \begin_inset CommandInset href
37420 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
37427 \begin_inset Index idx
37430 \begin_layout Plain Layout
37431 LaTeX-packages ! listings
37439 \begin_layout Bibliography
37440 \labelwidthstring Bibliography
37441 \begin_inset CommandInset bibitem
37442 LatexCommand bibitem
37447 Documentation of the LaTeX-package
37450 \begin_inset CommandInset href
37453 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
37460 \begin_inset Index idx
37463 \begin_layout Plain Layout
37464 LaTeX-packages ! marginnote
37472 \begin_layout Bibliography
37473 \labelwidthstring Bibliography
37474 \begin_inset CommandInset bibitem
37475 LatexCommand bibitem
37480 Documentation of the LaTeX-package
37483 \begin_inset CommandInset href
37486 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
37493 \begin_inset CommandInset href
37496 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
37501 \begin_inset Index idx
37504 \begin_layout Plain Layout
37505 LaTeX-packages ! lettrine
37513 \begin_layout Bibliography
37514 \labelwidthstring Bibliography
37515 \begin_inset CommandInset bibitem
37516 LatexCommand bibitem
37521 Web page of the LaTeX-package
37524 \begin_inset CommandInset href
37527 target "http://tug.org/PSTricks/"
37534 \begin_inset Index idx
37537 \begin_layout Plain Layout
37538 LaTeX-packages ! PSTricks
37546 \begin_layout Bibliography
37547 \labelwidthstring Bibliography
37548 \begin_inset CommandInset bibitem
37549 LatexCommand bibitem
37554 Documentation of the LaTeX-package
37557 \begin_inset CommandInset href
37560 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
37567 \begin_inset Index idx
37570 \begin_layout Plain Layout
37571 LaTeX-packages ! sidecap
37579 \begin_layout Bibliography
37580 \labelwidthstring Bibliography
37581 \begin_inset CommandInset bibitem
37582 LatexCommand bibitem
37587 Documentation of the LaTeX-package
37590 \begin_inset CommandInset href
37593 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37600 \begin_inset Index idx
37603 \begin_layout Plain Layout
37604 LaTeX-packages ! prettyref
37612 \begin_layout Bibliography
37613 \labelwidthstring Bibliography
37614 \begin_inset CommandInset bibitem
37615 LatexCommand bibitem
37620 Documentation of the LaTeX-package
37623 \begin_inset CommandInset href
37626 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
37633 \begin_inset Index idx
37636 \begin_layout Plain Layout
37637 LaTeX-packages ! refstyle
37645 \begin_layout Bibliography
37646 \labelwidthstring Bibliography
37647 \begin_inset CommandInset bibitem
37648 LatexCommand bibitem
37654 \begin_inset CommandInset href
37657 target "http://wiki.lyx.org/LyX/NewInLyX20"
37661 about new features in
37668 \begin_layout Standard
37669 \begin_inset CommandInset index_print
37670 LatexCommand printindex